webpack-bootstrap-ui-kit/dist/js/app.js

2 lines
360 KiB
JavaScript

/*! For license information please see app.js.LICENSE.txt */
!function(){var e={113:function(e,t,n){var r={"./photo1.png":489,"./photo2.jpg":425,"./photo3.svg":594,".pnpm/@a2nt+meta-lightbox-js@4.0.1_debug@4.3.2/node_modules/@a2nt/meta-lightbox-js/src/img/photo1.png":489,".pnpm/@a2nt+meta-lightbox-js@4.0.1_debug@4.3.2/node_modules/@a2nt/meta-lightbox-js/src/img/photo2.jpg":425,".pnpm/@a2nt+meta-lightbox-js@4.0.1_debug@4.3.2/node_modules/@a2nt/meta-lightbox-js/src/img/photo3.svg":594,"node_modules/.pnpm/@a2nt+meta-lightbox-js@4.0.1_debug@4.3.2/node_modules/@a2nt/meta-lightbox-js/src/img/photo1.png":489,"node_modules/.pnpm/@a2nt+meta-lightbox-js@4.0.1_debug@4.3.2/node_modules/@a2nt/meta-lightbox-js/src/img/photo2.jpg":425,"node_modules/.pnpm/@a2nt+meta-lightbox-js@4.0.1_debug@4.3.2/node_modules/@a2nt/meta-lightbox-js/src/img/photo3.svg":594};function webpackContext(e){var t=webpackContextResolve(e);return n(t)}function webpackContextResolve(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}webpackContext.keys=function webpackContextKeys(){return Object.keys(r)},webpackContext.resolve=webpackContextResolve,e.exports=webpackContext,webpackContext.id=113},885:function(e,t,n){e.exports=n(855)},145:function(e,t,n){"use strict";var r=n(750),i=n(149),o=n(804),a=n(642),s=n(295),c=n(279),u=n(868),l=n(865);e.exports=function xhrAdapter(e){return new Promise((function dispatchXhrRequest(t,n){var f=e.data,p=e.headers;r.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(h+":"+m)}var y=s(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),a(y,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function handleLoad(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?c(d.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:e,request:d};i(t,n,o),d=null}},d.onabort=function handleAbort(){d&&(n(l("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function handleError(){n(l("Network Error",e,null,d)),d=null},d.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var v=(e.withCredentials||u(y))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;v&&(p[e.xsrfHeaderName]=v)}if("setRequestHeader"in d&&r.forEach(p,(function setRequestHeader(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(g){if("json"!==e.responseType)throw g}"function"===typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function onCanceled(e){d&&(d.abort(),n(e),d=null)})),f||(f=null),d.send(f)}))}},855:function(e,t,n){"use strict";var r=n(750),i=n(999),o=n(229),a=n(936);function createInstance(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var s=createInstance(n(822));s.Axios=o,s.create=function create(e){return createInstance(a(s.defaults,e))},s.Cancel=n(756),s.CancelToken=n(816),s.isCancel=n(882),s.all=function all(e){return Promise.all(e)},s.spread=n(867),s.isAxiosError=n(218),e.exports=s,e.exports.default=s},756:function(e){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,e.exports=Cancel},816:function(e,t,n){"use strict";var r=n(756);function CancelToken(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function promiseExecutor(e){t=e}));var n=this;e((function cancel(e){n.reason||(n.reason=new r(e),t(n.reason))}))}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason)throw this.reason},CancelToken.source=function source(){var e;return{token:new CancelToken((function executor(t){e=t})),cancel:e}},e.exports=CancelToken},882:function(e){"use strict";e.exports=function isCancel(e){return!(!e||!e.__CANCEL__)}},229:function(e,t,n){"use strict";var r=n(750),i=n(642),o=n(748),a=n(850),s=n(936);function Axios(e){this.defaults=e,this.interceptors={request:new o,response:new o}}Axios.prototype.request=function request(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function unshiftRequestInterceptors(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function pushResponseInterceptors(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},Axios.prototype.getUri=function getUri(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function forEachMethodNoData(e){Axios.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){Axios.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=Axios},748:function(e,t,n){"use strict";var r=n(750);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},InterceptorManager.prototype.eject=function eject(e){this.handlers[e]&&(this.handlers[e]=null)},InterceptorManager.prototype.forEach=function forEach(e){r.forEach(this.handlers,(function forEachHandler(t){null!==t&&e(t)}))},e.exports=InterceptorManager},295:function(e,t,n){"use strict";var r=n(322),i=n(567);e.exports=function buildFullPath(e,t){return e&&!r(t)?i(e,t):t}},865:function(e,t,n){"use strict";var r=n(202);e.exports=function createError(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},850:function(e,t,n){"use strict";var r=n(750),i=n(838),o=n(882),a=n(822);function throwIfCancellationRequested(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function cleanHeaderConfig(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function onAdapterResolution(t){return throwIfCancellationRequested(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function onAdapterRejection(t){return o(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},202:function(e){"use strict";e.exports=function enhanceError(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},936:function(e,t,n){"use strict";var r=n(750);e.exports=function mergeConfig(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function getMergedValue(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function mergeDeepProperties(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=getMergedValue(void 0,e[i])):n[i]=getMergedValue(e[i],t[i])}r.forEach(i,(function valueFromConfig2(e){r.isUndefined(t[e])||(n[e]=getMergedValue(void 0,t[e]))})),r.forEach(o,mergeDeepProperties),r.forEach(a,(function defaultToConfig2(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=getMergedValue(void 0,e[i])):n[i]=getMergedValue(void 0,t[i])})),r.forEach(s,(function merge(r){r in t?n[r]=getMergedValue(e[r],t[r]):r in e&&(n[r]=getMergedValue(void 0,e[r]))}));var c=i.concat(o).concat(a).concat(s),u=Object.keys(e).concat(Object.keys(t)).filter((function filterAxiosKeys(e){return-1===c.indexOf(e)}));return r.forEach(u,mergeDeepProperties),n}},149:function(e,t,n){"use strict";var r=n(865);e.exports=function settle(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},838:function(e,t,n){"use strict";var r=n(750);e.exports=function transformData(e,t,n){return r.forEach(n,(function transform(n){e=n(e,t)})),e}},822:function(e,t,n){"use strict";var r=n(750),i=n(325),o={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var a={adapter:function getDefaultAdapter(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(145)),e}(),transformRequest:[function transformRequest(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(setContentTypeIfUnset(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function transformResponse(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function forEachMethodNoData(e){a.headers[e]={}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){a.headers[e]=r.merge(o)})),e.exports=a},999:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},642:function(e,t,n){"use strict";var r=n(750);function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function buildURL(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var o=[];r.forEach(t,(function serialize(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function parseValue(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(encode(t)+"="+encode(e))})))})),i=o.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},567:function(e){"use strict";e.exports=function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},804:function(e,t,n){"use strict";var r=n(750);e.exports=r.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function read(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():{write:function write(){},read:function read(){return null},remove:function remove(){}}},322:function(e){"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},218:function(e){"use strict";function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function isAxiosError(e){return"object"===_typeof(e)&&!0===e.isAxiosError}},868:function(e,t,n){"use strict";var r=n(750);e.exports=r.isStandardBrowserEnv()?function standardBrowserEnv(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function resolveURL(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=resolveURL(window.location.href),function isURLSameOrigin(t){var n=r.isString(t)?resolveURL(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function isURLSameOrigin(){return!0}},325:function(e,t,n){"use strict";var r=n(750);e.exports=function normalizeHeaderName(e,t){r.forEach(e,(function processHeader(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},279:function(e,t,n){"use strict";var r=n(750),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function parseHeaders(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function parser(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},867:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},750:function(e,t,n){"use strict";function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=n(999),i=Object.prototype.toString;function isArray(e){return"[object Array]"===i.call(e)}function isUndefined(e){return"undefined"===typeof e}function isObject(e){return null!==e&&"object"===_typeof(e)}function isPlainObject(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function isFunction(e){return"[object Function]"===i.call(e)}function forEach(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==_typeof(e)&&(e=[e]),isArray(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:isArray,isArrayBuffer:function isArrayBuffer(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function isBuffer(e){return null!==e&&!isUndefined(e)&&null!==e.constructor&&!isUndefined(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function isFormData(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function isArrayBufferView(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function isString(e){return"string"===typeof e},isNumber:function isNumber(e){return"number"===typeof e},isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:function isDate(e){return"[object Date]"===i.call(e)},isFile:function isFile(e){return"[object File]"===i.call(e)},isBlob:function isBlob(e){return"[object Blob]"===i.call(e)},isFunction:isFunction,isStream:function isStream(e){return isObject(e)&&isFunction(e.pipe)},isURLSearchParams:function isURLSearchParams(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function isStandardBrowserEnv(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:forEach,merge:function merge(){var e={};function assignValue(t,n){isPlainObject(e[n])&&isPlainObject(t)?e[n]=merge(e[n],t):isPlainObject(t)?e[n]=merge({},t):isArray(t)?e[n]=t.slice():e[n]=t}for(var t=0,n=arguments.length;t<n;t++)forEach(arguments[t],assignValue);return e},extend:function extend(e,t,n){return forEach(t,(function assignValue(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e},trim:function trim(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function stripBOM(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},168:function(e){var t={getParents:function(e,t){for(var n=[],r=e;r&&r!==document;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentNode;return n}};e.exports=t,e.exports.default=t},489:function(e){e.exports="../img/photo1.png"},425:function(e){e.exports="../img/photo2.jpg"},594:function(e){e.exports="../img/photo3.svg"},209:function(e){e.exports="../img/bg.png"},485:function(e){e.exports="../img/logo.svg"},966:function(e){e.exports="../img/photo1.png"},887:function(e){e.exports="../img/photo3.svg"},761:function(e){function webpackEmptyContext(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}webpackEmptyContext.keys=function(){return[]},webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id=761,e.exports=webpackEmptyContext},310:function(e,t,n){var r={"./bg.png":209,"./logo.svg":485,"./photo1.png":966,"./photo3.svg":887,"bg.png":209,"img/bg.png":209,"img/logo.svg":485,"img/photo1.png":966,"img/photo3.svg":887,"logo.svg":485,"photo1.png":966,"photo3.svg":887,"src/img/bg.png":209,"src/img/logo.svg":485,"src/img/photo1.png":966,"src/img/photo3.svg":887};function webpackContext(e){var t=webpackContextResolve(e);return n(t)}function webpackContextResolve(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}webpackContext.keys=function webpackContextKeys(){return Object.keys(r)},webpackContext.resolve=webpackContextResolve,e.exports=webpackContext,webpackContext.id=310}},t={};function __webpack_require__(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,__webpack_require__),i.exports}__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e={};__webpack_require__.r(e),__webpack_require__.d(e,{afterMain:function(){return zn},afterRead:function(){return Qn},afterWrite:function(){return Kn},applyStyles:function(){return Yn},arrow:function(){return er},auto:function(){return xn},basePlacements:function(){return Dn},beforeMain:function(){return Bn},beforeRead:function(){return Vn},beforeWrite:function(){return Wn},bottom:function(){return Tn},clippingParents:function(){return Ln},computeStyles:function(){return nr},createPopper:function(){return mr},createPopperBase:function(){return hr},createPopperLite:function(){return yr},detectOverflow:function(){return detectOverflow},end:function(){return Nn},eventListeners:function(){return ir},flip:function(){return sr},hide:function(){return cr},left:function(){return An},main:function(){return Un},modifierPhases:function(){return Gn},offset:function(){return ur},placements:function(){return Fn},popper:function(){return jn},popperGenerator:function(){return popperGenerator},popperOffsets:function(){return lr},preventOverflow:function(){return fr},read:function(){return qn},reference:function(){return Rn},right:function(){return Cn},start:function(){return In},top:function(){return On},variationPlacements:function(){return Mn},viewport:function(){return Pn},write:function(){return Hn}});var t="ajax-load",n="load";function _defineProperties(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 _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=window,i=__webpack_require__(885),o=new(function(){function MetaWindow(e){var t=this;!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,MetaWindow),_defineProperty(this,"state",{content:"",type:[],shown:!1,loading:!1,error:!1,embed:!1,collections:[],current:null,target:null}),_defineProperty(this,"show",(function(){var e=t;console.log("".concat(e.name,": show")),e.setState({shown:!0}),r.dispatchEvent(new Event("{ui.name}.show"))})),_defineProperty(this,"hide",(function(){var e=t;console.log("".concat(e.name,": hide")),e.setState({shown:!1}),r.dispatchEvent(new Event("{ui.name}.hide"))})),_defineProperty(this,"next",(function(){var e=t,n=e.state.current.getAttribute("data-gallery"),i=e._currIndex();i<e.state.collections[n].length-1?i++:i=0,e.state.collections[n][i].click(),console.log("".concat(e.name,": next")),r.dispatchEvent(new Event("{ui.name}.next"))})),_defineProperty(this,"prev",(function(){var e=t,n=e.state.current.getAttribute("data-gallery"),i=e._currIndex();i>0?i--:i=e.state.collections[n].length-1,e.state.collections[n][i].click(),console.log("".concat(e.name,": prev")),r.dispatchEvent(new Event("{ui.name}.prev"))})),_defineProperty(this,"reset",(function(){t.setState({content:"",type:[],shown:!1,loading:!1,error:!1,embed:!1})})),_defineProperty(this,"load",(function(e){var n=t,i=n.axios;n.reset(),n.setState({loading:!0}),n.show(),i.get(e,{responseType:"arraybuffer"}).then((function(e){console.log("".concat(n.name,": response content-type: ").concat(e.headers["content-type"]));switch(e.headers["content-type"]){case"image/jpeg":case"image/png":case"image/svg+xml":case"image/bmp":case"image/gif":case"image/tiff":case"image/webp":case"image/jpg":case"image/svg":n.setContent('<img src="data:'.concat(e.headers["content-type"],";base64,").concat(n._imageEncode(e.data),'" />'),"image");break;case"application/json":case"application/ld+json":case"application/json; charset=UTF-8":n.setContent("".concat((!1).Content),"text html json");break;case"text/html":case"application/xhtml+xml":case"text/plain":case"text/html; charset=UTF-8":case"application/xhtml+xml; charset=UTF-8":case"text/plain; charset=UTF-8":n.setContent(n._abToString(e.data),"text html pajax");break;default:console.warn("".concat(n.name,": Unknown response content-type!"))}r.dispatchEvent(new Event("{ui.name}.loaded"))})).catch((function(e){console.error(e);var t="";if(e.response)switch(e.response.status){case 404:t="Not Found.";break;case 500:t="Server issue, please try again latter.";break;default:t="Something went wrong."}else e.request?t="No response received":console.warn("Error",e.message);n.setState({error:t}),r.dispatchEvent(new Event("{ui.name}.error"))})).then((function(){n.setState({loading:!1})}))})),_defineProperty(this,"_currIndex",(function(){var e=t,n=e.state.current,r=n.getAttribute("data-gallery");return e.state.collections[r].indexOf(n)})),_defineProperty(this,"embed",(function(e){var n=t;console.log("".concat(n.name,": embed")),n.reset(),n.setState({embed:e,loading:!1,type:["embed","video"]}),n.show()})),_defineProperty(this,"setCaption",(function(e){var n=t;console.log("".concat(n.name,": setCaption")),n.state.caption=e})),_defineProperty(this,"getCaption",(function(){return t.state.caption})),_defineProperty(this,"_abToString",(function(e){return String.fromCharCode.apply(null,new Uint8Array(e))})),_defineProperty(this,"_imageEncode",(function(e){new Uint8Array(e);return btoa([].reduce.call(new Uint8Array(e),(function(e,t){return e+String.fromCharCode(t)}),""))})),_defineProperty(this,"setContent",(function(e,n){var r=t;console.log("".concat(r.name,": setContent"));var i=n||["html","text"];Array.isArray(i)||(i=n.split(" ")),r.setState({content:e,type:i})})),_defineProperty(this,"getHtml",(function(){return t.state.content}));var n=this;n.name=n.constructor.name,console.log("".concat(n.name,": init")),n.axios=i,r.dispatchEvent(new Event("{ui.name}.init"))}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(MetaWindow,[{key:"init",value:function init(e){var t=this;console.log("MetaWindow: [links] init"),t.state.target=e,t.state.collections={},document.querySelectorAll('[data-toggle="lightbox"],[data-gallery="${gallery}"]').forEach((function(e){var n=e.getAttribute("data-gallery");n&&(t.state.collections[n]=[],document.querySelectorAll('[data-toggle="lightbox"][data-gallery="'.concat(n,'"]')).forEach((function(e){t.state.collections[n].push(e)}))),e.addEventListener("click",(function(e){e.preventDefault(),console.log("MetaWindow: [link] click");var n=e.currentTarget,r=n.getAttribute("href")||n.getAttribute("data-href"),i=n.getAttribute("data-embed");t.state.current=n,i?t.embed(r):t.load(r);var o=n.getAttribute("data-title");o&&t.setCaption(o)}))}))}},{key:"setState",value:function setState(e){var t=this;t.state=Object.assign({},t.state,e),t.render()}},{key:"render",value:function render(){var e=this,t=e.name,n=e.state.current;e.state.target.innerHTML="";var r=document.createElement("div");r.classList.add("meta-".concat(t),"meta-".concat(t,"__").concat(e.state.type.join(" meta-".concat(t,"__")))),e.state.target.append(r);var i=document.createElement("div");i.classList.add("meta-".concat(t,"-overlay")),e.state.shown&&i.classList.add("meta-".concat(t,"-overlay__open")),e.state.loading&&i.classList.add("meta-".concat(t,"-overlay__loading")),e.state.error&&i.classList.add("meta-".concat(t,"-overlay__error")),r.append(i);var o=document.createElement("div");o.classList.add("meta-content"),i.append(o);var a=document.createElement("button");if(a.classList.add("meta-nav","meta-close","a"),a.innerHTML='<i class="icon fa fas fa-times"></i> <span class="visually-hidden">Close</span>',a.addEventListener("click",(function(t){t.preventDefault(),e.hide()})),o.append(a),n){var s=n.getAttribute("data-gallery");if(s&&e.state.collections[s].length>1){var c=document.createElement("nav");c.classList.add("meta-navs");var u=document.createElement("button");u.classList.add("meta-nav","meta-nav-arrow","meta-nav-arrow__prev","a"),u.innerHTML='<i class="icon fa fas fa-chevron-left"></i> <span class="visually-hidden">Previous</span>',u.addEventListener("click",(function(t){t.preventDefault(),e.prev()})),c.append(u);var l=document.createElement("button");l.classList.add("meta-nav","meta-nav-arrow","meta-nav-arrow__prev","a"),l.innerHTML='<i class="icon fa fas fa-chevron-right"></i> <span class="visually-hidden">Next</span>',l.addEventListener("click",(function(t){t.preventDefault(),e.next()})),c.append(l),o.append(c)}}if(e.state.embed)'<section class="meta-wrap typography"><Embed url={ui.state.embed} providers={[...defaultProviders, InstagramProvider]} LoadingFallbackElement=<div className="meta-spinner_embed"> ... Loading ... </div></section>';else{var f=document.createElement("section");f.classList.add("meta-wrap","typography"),f.innerHTML=e.getHtml(),o.append(f)}if(e.state.error){var p=document.createElement("div");p.classList.add("meta-error"),p.innerHTML=e.state.error,o.append(p)}else if(e.state.caption){var d=document.createElement("div");d.classList.add("meta-caption"),d.innerHTML=e.getCaption(),o.append(d)}return e}}]),MetaWindow}()),a=document.getElementById("MetaLightboxApp");a||console.log("MetaWindow: missing container");var s=function init(){o.init(a)};window.addEventListener("".concat(n),s),window.addEventListener("".concat(t),s),window.addEventListener("MetaWindow.initLinks",s);(function importAll(e){return e.keys().map(e)})(__webpack_require__(113));var c={APOLLO_ERROR:"apollo-error",AJAX:"ajax-load",AJAXMAIN:"ajax-main-load",MAININIT:"main-init",TABHIDDEN:"tab-hidden",TABFOCUSED:"tab-focused",OFFLINE:"offline",ONLINE:"online",BACKONLINE:"back-online",TOUCHENABLE:"touch-enabled",TOUCHDISABLED:"touch-disabled",LOADED:"load",SWIPELEFT:"swipeleft panleft",SWIPERIGHT:"swiperight panright",ALLERTAPPEARED:"alert-appeared",ALERTREMOVED:"alert-removed",LODEDANDREADY:"load-ready",LAZYIMAGEREADY:"image-lazy-bg-loaded",LAZYIMAGESREADY:"images-lazy-loaded",MAPLOADED:"map-loaded",MAPAPILOADED:"map-api-loaded",MAPMARKERCLICK:"map-marker-click",MAPPOPUPCLOSE:"map-popup-close",SCROLL:"scroll",RESIZE:"resize",CAROUSEL_READY:"bs.carousel.ready",SET_TARGET_UPDATE:"set-target-update",RESTORE_FIELD:"restore-field",FORM_INIT_BASICS:"form-basics",FORM_INIT_STEPPED:"form-init-stepped",FORM_INIT_VALIDATE:"form-init-validate",FORM_INIT_VALIDATE_FIELD:"form-init-validate-field",FORM_INIT_STORAGE:"form-init-storage",FORM_VALIDATION_FAILED:"form-validation-failed",FORM_STEPPED_NEW_STEP:"form-new-step",FORM_STEPPED_FIRST_STEP:"form-first-step",FORM_STEPPED_LAST_STEP:"form-last-step",FORM_FIELDS:"input,textarea,select"},u={ENVS:["xs","sm","md","lg","xl","xxl","xxxl"]};(function(e){var t="_main.visibility",n=document,r=n.body;n.addEventListener("visibilitychange",(function(){"hidden"===n.visibilityState?(console.log("".concat(t,": Tab: hidden")),r.classList.add("is-hidden"),r.classList.remove("is-focused"),e.dispatchEvent(new Event(c.TABHIDDEN))):(console.log("".concat(t,": Tab: focused")),r.classList.add("is-focused"),r.classList.remove("is-hidden"),e.dispatchEvent(new Event(c.TABFOCUSED)))}))})(window),function(e){var t,n,r="_main.touch",i=document,o=i.body,a=function SET_TOUCH_SCREEN(i,a){n||a===t||(i?(console.log("".concat(r,": Touch screen enabled")),o.classList.add("is-touch"),o.classList.remove("is-mouse"),e.dispatchEvent(new Event(c.TOUCHENABLE))):(console.log("".concat(r,": Touch screen disabled")),o.classList.add("is-mouse"),o.classList.remove("is-touch"),e.dispatchEvent(new Event(c.TOUCHDISABLED))),t=a,n||(n=setTimeout((function(){clearTimeout(n),n=null}),500)))};a("ontouchstart"in e||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0||e.matchMedia("(hover: none)").matches,"init"),i.addEventListener("touchend",(function(e){var t=!1;"click"!==e.type&&(t=!0),a(t,"click-touchend")})),i.addEventListener("click",(function(e){var t=!1;"click"!==e.type&&(t=!0),a(t,"click-touchend")}))}(window);function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function _unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(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(e){var t=document,n=t.body,r=function detectCSSScreenSize(){var r,i=t.createElement("div");i.className="env-test",n.appendChild(i);var o=_toConsumableArray(u.ENVS).reverse(),a=o.shift();(r=n.classList).remove.apply(r,_toConsumableArray(o));for(var s=0;s<o.length;++s){var c=o[s];if(i.classList.add("d-".concat(c,"-none")),"none"===e.getComputedStyle(i).display){a=c,n.classList.add("".concat(a));break}}var l=!0;return e.innerWidth>e.innerHeight?(n.classList.add("landscape"),n.classList.remove("portrait")):(l=!1,n.classList.add("portrait"),n.classList.remove("landscape")),console.log("".concat("_main.css-screen-size",": screen size detected ").concat(a," | landscape ").concat(l)),n.removeChild(i),a};e.addEventListener("".concat(c.LOADED),r),e.addEventListener("".concat(c.RESIZE),r)}(window);function _loading_spinner_defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l="_main.loading-spinner",f=document,p=(f.body,f.getElementById("PageLoading")),d=function(){function SpinnerUI(){!function _loading_spinner_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,SpinnerUI)}return function _loading_spinner_createClass(e,t,n){return t&&_loading_spinner_defineProperties(e.prototype,t),n&&_loading_spinner_defineProperties(e,n),e}(SpinnerUI,null,[{key:"show",value:function show(){console.log("".concat(l,": show")),p.classList.remove("d-none")}},{key:"hide",value:function hide(){console.log("".concat(l,": hide")),p.classList.add("d-none")}}]),SpinnerUI}();function _main_defineProperties(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(e){var t=document,n=t.body;console.info("%cUI Kit ".concat("@a2nt/ss-bootstrap-ui-webpack-boilerplate-react"," ").concat("4.1.2"),"color:yellow;font-size:14px"),console.info("%c".concat("@a2nt/meta-lightbox-js"," ").concat("4.0.1"),"color:yellow;font-size:12px"),console.info("%chttps://github.com/a2nt/webpack-bootstrap-ui-kit by ".concat("Tony Air <tony@twma.pro>"),"color:yellow;font-size:10px"),console.info("%cENV: ".concat("production"),"color:green;font-size:10px"),console.groupCollapsed("Events"),Object.keys(c).forEach((function(e){console.info("".concat(e,": ").concat(c[e]))})),console.groupEnd("Events"),console.groupCollapsed("Consts"),Object.keys(u).forEach((function(e){console.info("".concat(e,": ").concat(u[e]))})),console.groupEnd("Events"),console.groupCollapsed("Init"),console.time("init");var r=function(){function MainUI(){!function _main_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,MainUI)}return function _main_createClass(e,t,n){return t&&_main_defineProperties(e.prototype,t),n&&_main_defineProperties(e,n),e}(MainUI,null,[{key:"init",value:function init(){e.history.replaceState({landing:e.location.href},t.title,e.location.href),this.loaded()}},{key:"loaded",value:function loaded(){console.log("".concat("_main",": loaded"))}}]),MainUI}();e.addEventListener("".concat(c.LOADED),(function(){r.init(),n.classList.add("loaded"),d.hide(),console.groupEnd("init"),console.timeEnd("init"),e.dispatchEvent(new Event(c.LODEDANDREADY))})),e.addEventListener("".concat(c.AJAX),(function(){r.loaded()})),e.MainUI=r}(window);var h=React;var m=function extendStatics(e,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function __extends(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}m(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var y=function __assign(){return(y=Object.assign||function __assign(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function __awaiter(e,t,n,r){return new(n||(n=Promise))((function(i,o){function fulfilled(e){try{step(r.next(e))}catch(t){o(t)}}function rejected(e){try{step(r.throw(e))}catch(t){o(t)}}function step(e){e.done?i(e.value):function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))}function __generator(e,t){var n,r,i,o,a={label:0,sent:function sent(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:verb(0),throw:verb(1),return:verb(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function verb(o){return function(s){return function step(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(s){o=[6,s],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.create;function __spreadArray(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||t)}Object.create;function isObjectLike_typeof(e){return(isObjectLike_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function isObjectLike(e){return"object"==isObjectLike_typeof(e)&&null!==e}"function"===typeof Symbol&&null!=Symbol.iterator&&Symbol.iterator,"function"===typeof Symbol&&null!=Symbol.asyncIterator&&Symbol.asyncIterator;var v="function"===typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function getLocation(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}function printLocation(e){return printSourceLocation(e.source,getLocation(e.source,e.start))}function printSourceLocation(e,t){var n=e.locationOffset.column-1,r=whitespace(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,c=t.column+s,u="".concat(e.name,":").concat(a,":").concat(c,"\n"),l=r.split(/\r\n|[\n\r]/g),f=l[i];if(f.length>120){for(var p=Math.floor(c/80),d=c%80,h=[],m=0;m<f.length;m+=80)h.push(f.slice(m,m+80));return u+printPrefixedLines([["".concat(a),h[0]]].concat(h.slice(1,p+1).map((function(e){return["",e]})),[[" ",whitespace(d-1)+"^"],["",h[p+1]]]))}return u+printPrefixedLines([["".concat(a-1),l[i-1]],["".concat(a),f],["",whitespace(c-1)+"^"],["".concat(a+1),l[i+1]]])}function printPrefixedLines(e){var t=e.filter((function(e){e[0];return void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t=e[0],r=e[1];return function leftPad(e,t){return whitespace(e-t.length)+t}(n,t)+(r?" | "+r:" |")})).join("\n")}function whitespace(e){return Array(e+1).join(" ")}function GraphQLError_typeof(e){return(GraphQLError_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function GraphQLError_defineProperties(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 _possibleConstructorReturn(e,t){return!t||"object"!==GraphQLError_typeof(t)&&"function"!==typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _wrapNativeSuper(e){var t="function"===typeof Map?new Map:void 0;return(_wrapNativeSuper=function _wrapNativeSuper(e){if(null===e||!function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,Wrapper)}function Wrapper(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(e.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,e)})(e)}function _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&_setPrototypeOf(i,n.prototype),i}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function _inherits(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(GraphQLError,e);var t=function _createSuper(e){var t=_isNativeReflectConstruct();return function _createSuperInternal(){var n,r=_getPrototypeOf(e);if(t){var i=_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _possibleConstructorReturn(this,n)}}(GraphQLError);function GraphQLError(e,n,r,i,o,a,s){var c,u,l,f,p;!function GraphQLError_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,GraphQLError),p=t.call(this,e);var d,h=Array.isArray(n)?0!==n.length?n:void 0:n?[n]:void 0,m=r;!m&&h&&(m=null===(d=h[0].loc)||void 0===d?void 0:d.source);var y,v=i;!v&&h&&(v=h.reduce((function(e,t){return t.loc&&e.push(t.loc.start),e}),[])),v&&0===v.length&&(v=void 0),i&&r?y=i.map((function(e){return getLocation(r,e)})):h&&(y=h.reduce((function(e,t){return t.loc&&e.push(getLocation(t.loc.source,t.loc.start)),e}),[]));var g=s;if(null==g&&null!=a){var _=a.extensions;isObjectLike(_)&&(g=_)}return Object.defineProperties(_assertThisInitialized(p),{name:{value:"GraphQLError"},message:{value:e,enumerable:!0,writable:!0},locations:{value:null!==(c=y)&&void 0!==c?c:void 0,enumerable:null!=y},path:{value:null!==o&&void 0!==o?o:void 0,enumerable:null!=o},nodes:{value:null!==h&&void 0!==h?h:void 0},source:{value:null!==(u=m)&&void 0!==u?u:void 0},positions:{value:null!==(l=v)&&void 0!==l?l:void 0},originalError:{value:a},extensions:{value:null!==(f=g)&&void 0!==f?f:void 0,enumerable:null!=g}}),null!==a&&void 0!==a&&a.stack?(Object.defineProperty(_assertThisInitialized(p),"stack",{value:a.stack,writable:!0,configurable:!0}),_possibleConstructorReturn(p)):(Error.captureStackTrace?Error.captureStackTrace(_assertThisInitialized(p),GraphQLError):Object.defineProperty(_assertThisInitialized(p),"stack",{value:Error().stack,writable:!0,configurable:!0}),p)}return function GraphQLError_createClass(e,t,n){return t&&GraphQLError_defineProperties(e.prototype,t),n&&GraphQLError_defineProperties(e,n),e}(GraphQLError,[{key:"toString",value:function toString(){return function printError(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+printLocation(i.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var s=a[o];t+="\n\n"+printSourceLocation(e.source,s)}return t}(this)}},{key:v,get:function get(){return"Object"}}]),GraphQLError}(_wrapNativeSuper(Error));function syntaxError(e,t,n){return new g("Syntax Error: ".concat(n),void 0,e,[t])}var _=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function invariant(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}var b="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function defineInspect(e){var t=e.prototype.toJSON;"function"===typeof t||invariant(0),e.prototype.inspect=t,b&&(e.prototype[b]=t)}var E=function(){function Location(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return Location.prototype.toJSON=function toJSON(){return{start:this.start,end:this.end}},Location}();defineInspect(E);var w=function(){function Token(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return Token.prototype.toJSON=function toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},Token}();function isNode(e){return null!=e&&"string"===typeof e.kind}defineInspect(w);var S=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function inspect_typeof(e){return(inspect_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function inspect_inspect(e){return formatValue(e,[])}function formatValue(e,t){switch(inspect_typeof(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function formatObjectValue(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function getCustomFn(e){var t=e[String(b)];if("function"===typeof t)return t;if("function"===typeof e.inspect)return e.inspect}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"===typeof i?i:formatValue(i,n)}else if(Array.isArray(e))return function formatArray(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(formatValue(e[o],t));1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function formatObject(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function getObjectTag(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}(e)+"]";return"{ "+n.map((function(n){return n+": "+formatValue(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function devAssert(e,t){if(!Boolean(e))throw new Error(t)}var k=function instanceOf(e,t){return e instanceof t};function source_defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var O=function(){function Source(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"===typeof e||devAssert(0,"Body must be a string. Received: ".concat(inspect_inspect(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||devAssert(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||devAssert(0,"column in locationOffset is 1-indexed and must be positive.")}return function source_createClass(e,t,n){return t&&source_defineProperties(e.prototype,t),n&&source_defineProperties(e,n),e}(Source,[{key:v,get:function get(){return"Source"}}]),Source}();var T=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function dedentBlockStringValue(e){var t=e.split(/\r\n|[\n\r]/g),n=function getBlockStringIndentation(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var i=0;i<t.length&&isBlank(t[i]);)++i;for(var o=t.length;o>i&&isBlank(t[o-1]);)--o;return t.slice(i,o).join("\n")}function isBlank(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}var C=function(){function Lexer(e){var t=new w(S.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var e=Lexer.prototype;return e.advance=function advance(){return this.lastToken=this.token,this.token=this.lookahead()},e.lookahead=function lookahead(){var e=this.token;if(e.kind!==S.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=readToken(this,e)}while(e.kind===S.COMMENT);return e},Lexer}();function printCharCode(e){return isNaN(e)?S.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function readToken(e,t){for(var n=e.source,r=n.body,i=r.length,o=t.end;o<i;){var a=r.charCodeAt(o),s=e.line,c=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new w(S.BANG,o,o+1,s,c,t);case 35:return readComment(n,o,s,c,t);case 36:return new w(S.DOLLAR,o,o+1,s,c,t);case 38:return new w(S.AMP,o,o+1,s,c,t);case 40:return new w(S.PAREN_L,o,o+1,s,c,t);case 41:return new w(S.PAREN_R,o,o+1,s,c,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new w(S.SPREAD,o,o+3,s,c,t);break;case 58:return new w(S.COLON,o,o+1,s,c,t);case 61:return new w(S.EQUALS,o,o+1,s,c,t);case 64:return new w(S.AT,o,o+1,s,c,t);case 91:return new w(S.BRACKET_L,o,o+1,s,c,t);case 93:return new w(S.BRACKET_R,o,o+1,s,c,t);case 123:return new w(S.BRACE_L,o,o+1,s,c,t);case 124:return new w(S.PIPE,o,o+1,s,c,t);case 125:return new w(S.BRACE_R,o,o+1,s,c,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?readBlockString(n,o,s,c,t,e):readString(n,o,s,c,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return readNumber(n,o,a,s,c,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return readName(n,o,s,c,t)}throw syntaxError(n,o,unexpectedCharacterMessage(a))}var u=e.line,l=1+o-e.lineStart;return new w(S.EOF,i,i,u,l,t)}function unexpectedCharacterMessage(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(printCharCode(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(printCharCode(e),".")}function readComment(e,t,n,r,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new w(S.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function readNumber(e,t,n,r,i,o){var a=e.body,s=n,c=t,u=!1;if(45===s&&(s=a.charCodeAt(++c)),48===s){if((s=a.charCodeAt(++c))>=48&&s<=57)throw syntaxError(e,c,"Invalid number, unexpected digit after 0: ".concat(printCharCode(s),"."))}else c=readDigits(e,c,s),s=a.charCodeAt(c);if(46===s&&(u=!0,s=a.charCodeAt(++c),c=readDigits(e,c,s),s=a.charCodeAt(c)),69!==s&&101!==s||(u=!0,43!==(s=a.charCodeAt(++c))&&45!==s||(s=a.charCodeAt(++c)),c=readDigits(e,c,s),s=a.charCodeAt(c)),46===s||function isNameStart(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw syntaxError(e,c,"Invalid number, expected digit but got: ".concat(printCharCode(s),"."));return new w(u?S.FLOAT:S.INT,t,c,r,i,o,a.slice(t,c))}function readDigits(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw syntaxError(e,i,"Invalid number, expected digit but got: ".concat(printCharCode(o),"."))}function readString(e,t,n,r,i){for(var o,a,s,c,u=e.body,l=t+1,f=l,p=0,d="";l<u.length&&!isNaN(p=u.charCodeAt(l))&&10!==p&&13!==p;){if(34===p)return d+=u.slice(f,l),new w(S.STRING,t,l+1,n,r,i,d);if(p<32&&9!==p)throw syntaxError(e,l,"Invalid character within String: ".concat(printCharCode(p),"."));if(++l,92===p){switch(d+=u.slice(f,l-1),p=u.charCodeAt(l)){case 34:d+='"';break;case 47:d+="/";break;case 92:d+="\\";break;case 98:d+="\b";break;case 102:d+="\f";break;case 110:d+="\n";break;case 114:d+="\r";break;case 116:d+="\t";break;case 117:var h=(o=u.charCodeAt(l+1),a=u.charCodeAt(l+2),s=u.charCodeAt(l+3),c=u.charCodeAt(l+4),char2hex(o)<<12|char2hex(a)<<8|char2hex(s)<<4|char2hex(c));if(h<0){var m=u.slice(l+1,l+5);throw syntaxError(e,l,"Invalid character escape sequence: \\u".concat(m,"."))}d+=String.fromCharCode(h),l+=4;break;default:throw syntaxError(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(p),"."))}f=++l}}throw syntaxError(e,l,"Unterminated string.")}function readBlockString(e,t,n,r,i,o){for(var a=e.body,s=t+3,c=s,u=0,l="";s<a.length&&!isNaN(u=a.charCodeAt(s));){if(34===u&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return l+=a.slice(c,s),new w(S.BLOCK_STRING,t,s+3,n,r,i,dedentBlockStringValue(l));if(u<32&&9!==u&&10!==u&&13!==u)throw syntaxError(e,s,"Invalid character within String: ".concat(printCharCode(u),"."));10===u?(++s,++o.line,o.lineStart=s):13===u?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===u&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(l+=a.slice(c,s)+'"""',c=s+=4):++s}throw syntaxError(e,s,"Unterminated string.")}function char2hex(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function readName(e,t,n,r,i){for(var o=e.body,a=o.length,s=t+1,c=0;s!==a&&!isNaN(c=o.charCodeAt(s))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++s;return new w(S.NAME,t,s,n,r,i,o.slice(t,s))}var A=function(){function Parser(e,t){var n=function isSource(e){return k(e,O)}(e)?e:new O(e);this._lexer=new C(n),this._options=t}var e=Parser.prototype;return e.parseName=function parseName(){var e=this.expectToken(S.NAME);return{kind:_.NAME,value:e.value,loc:this.loc(e)}},e.parseDocument=function parseDocument(){var e=this._lexer.token;return{kind:_.DOCUMENT,definitions:this.many(S.SOF,this.parseDefinition,S.EOF),loc:this.loc(e)}},e.parseDefinition=function parseDefinition(){if(this.peek(S.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(S.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},e.parseOperationDefinition=function parseOperationDefinition(){var e=this._lexer.token;if(this.peek(S.BRACE_L))return{kind:_.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(S.NAME)&&(t=this.parseName()),{kind:_.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},e.parseOperationType=function parseOperationType(){var e=this.expectToken(S.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},e.parseVariableDefinitions=function parseVariableDefinitions(){return this.optionalMany(S.PAREN_L,this.parseVariableDefinition,S.PAREN_R)},e.parseVariableDefinition=function parseVariableDefinition(){var e=this._lexer.token;return{kind:_.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(S.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(S.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},e.parseVariable=function parseVariable(){var e=this._lexer.token;return this.expectToken(S.DOLLAR),{kind:_.VARIABLE,name:this.parseName(),loc:this.loc(e)}},e.parseSelectionSet=function parseSelectionSet(){var e=this._lexer.token;return{kind:_.SELECTION_SET,selections:this.many(S.BRACE_L,this.parseSelection,S.BRACE_R),loc:this.loc(e)}},e.parseSelection=function parseSelection(){return this.peek(S.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function parseField(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(S.COLON)?(e=r,t=this.parseName()):t=r,{kind:_.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(S.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},e.parseArguments=function parseArguments(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(S.PAREN_L,t,S.PAREN_R)},e.parseArgument=function parseArgument(){var e=this._lexer.token,t=this.parseName();return this.expectToken(S.COLON),{kind:_.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},e.parseConstArgument=function parseConstArgument(){var e=this._lexer.token;return{kind:_.ARGUMENT,name:this.parseName(),value:(this.expectToken(S.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},e.parseFragment=function parseFragment(){var e=this._lexer.token;this.expectToken(S.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(S.NAME)?{kind:_.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:_.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},e.parseFragmentDefinition=function parseFragmentDefinition(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:_.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:_.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},e.parseFragmentName=function parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},e.parseValueLiteral=function parseValueLiteral(e){var t=this._lexer.token;switch(t.kind){case S.BRACKET_L:return this.parseList(e);case S.BRACE_L:return this.parseObject(e);case S.INT:return this._lexer.advance(),{kind:_.INT,value:t.value,loc:this.loc(t)};case S.FLOAT:return this._lexer.advance(),{kind:_.FLOAT,value:t.value,loc:this.loc(t)};case S.STRING:case S.BLOCK_STRING:return this.parseStringLiteral();case S.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:_.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:_.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:_.NULL,loc:this.loc(t)};default:return{kind:_.ENUM,value:t.value,loc:this.loc(t)}}case S.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},e.parseStringLiteral=function parseStringLiteral(){var e=this._lexer.token;return this._lexer.advance(),{kind:_.STRING,value:e.value,block:e.kind===S.BLOCK_STRING,loc:this.loc(e)}},e.parseList=function parseList(e){var t=this,n=this._lexer.token;return{kind:_.LIST,values:this.any(S.BRACKET_L,(function item(){return t.parseValueLiteral(e)}),S.BRACKET_R),loc:this.loc(n)}},e.parseObject=function parseObject(e){var t=this,n=this._lexer.token;return{kind:_.OBJECT,fields:this.any(S.BRACE_L,(function item(){return t.parseObjectField(e)}),S.BRACE_R),loc:this.loc(n)}},e.parseObjectField=function parseObjectField(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(S.COLON),{kind:_.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},e.parseDirectives=function parseDirectives(e){for(var t=[];this.peek(S.AT);)t.push(this.parseDirective(e));return t},e.parseDirective=function parseDirective(e){var t=this._lexer.token;return this.expectToken(S.AT),{kind:_.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},e.parseTypeReference=function parseTypeReference(){var e,t=this._lexer.token;return this.expectOptionalToken(S.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(S.BRACKET_R),e={kind:_.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(S.BANG)?{kind:_.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},e.parseNamedType=function parseNamedType(){var e=this._lexer.token;return{kind:_.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},e.parseTypeSystemDefinition=function parseTypeSystemDefinition(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===S.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},e.peekDescription=function peekDescription(){return this.peek(S.STRING)||this.peek(S.BLOCK_STRING)},e.parseDescription=function parseDescription(){if(this.peekDescription())return this.parseStringLiteral()},e.parseSchemaDefinition=function parseSchemaDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(S.BRACE_L,this.parseOperationTypeDefinition,S.BRACE_R);return{kind:_.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},e.parseOperationTypeDefinition=function parseOperationTypeDefinition(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(S.COLON);var n=this.parseNamedType();return{kind:_.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},e.parseScalarTypeDefinition=function parseScalarTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:_.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},e.parseObjectTypeDefinition=function parseObjectTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:_.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},e.parseImplementsInterfaces=function parseImplementsInterfaces(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(S.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(S.AMP)||this.peek(S.NAME));return t}return this.delimitedMany(S.AMP,this.parseNamedType)},e.parseFieldsDefinition=function parseFieldsDefinition(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(S.BRACE_L)&&this._lexer.lookahead().kind===S.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(S.BRACE_L,this.parseFieldDefinition,S.BRACE_R)},e.parseFieldDefinition=function parseFieldDefinition(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(S.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:_.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},e.parseArgumentDefs=function parseArgumentDefs(){return this.optionalMany(S.PAREN_L,this.parseInputValueDef,S.PAREN_R)},e.parseInputValueDef=function parseInputValueDef(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(S.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(S.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:_.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},e.parseInterfaceTypeDefinition=function parseInterfaceTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:_.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},e.parseUnionTypeDefinition=function parseUnionTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:_.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},e.parseUnionMemberTypes=function parseUnionMemberTypes(){return this.expectOptionalToken(S.EQUALS)?this.delimitedMany(S.PIPE,this.parseNamedType):[]},e.parseEnumTypeDefinition=function parseEnumTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:_.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},e.parseEnumValuesDefinition=function parseEnumValuesDefinition(){return this.optionalMany(S.BRACE_L,this.parseEnumValueDefinition,S.BRACE_R)},e.parseEnumValueDefinition=function parseEnumValueDefinition(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:_.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},e.parseInputObjectTypeDefinition=function parseInputObjectTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:_.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},e.parseInputFieldsDefinition=function parseInputFieldsDefinition(){return this.optionalMany(S.BRACE_L,this.parseInputValueDef,S.BRACE_R)},e.parseTypeSystemExtension=function parseTypeSystemExtension(){var e=this._lexer.lookahead();if(e.kind===S.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},e.parseSchemaExtension=function parseSchemaExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(S.BRACE_L,this.parseOperationTypeDefinition,S.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:_.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},e.parseScalarTypeExtension=function parseScalarTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:_.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},e.parseObjectTypeExtension=function parseObjectTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:_.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},e.parseInterfaceTypeExtension=function parseInterfaceTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:_.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},e.parseUnionTypeExtension=function parseUnionTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:_.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},e.parseEnumTypeExtension=function parseEnumTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:_.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},e.parseInputObjectTypeExtension=function parseInputObjectTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:_.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},e.parseDirectiveDefinition=function parseDirectiveDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(S.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:_.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},e.parseDirectiveLocations=function parseDirectiveLocations(){return this.delimitedMany(S.PIPE,this.parseDirectiveLocation)},e.parseDirectiveLocation=function parseDirectiveLocation(){var e=this._lexer.token,t=this.parseName();if(void 0!==T[t.value])return t;throw this.unexpected(e)},e.loc=function loc(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new E(e,this._lexer.lastToken,this._lexer.source)},e.peek=function peek(e){return this._lexer.token.kind===e},e.expectToken=function expectToken(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw syntaxError(this._lexer.source,t.start,"Expected ".concat(getTokenKindDesc(e),", found ").concat(getTokenDesc(t),"."))},e.expectOptionalToken=function expectOptionalToken(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},e.expectKeyword=function expectKeyword(e){var t=this._lexer.token;if(t.kind!==S.NAME||t.value!==e)throw syntaxError(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(getTokenDesc(t),"."));this._lexer.advance()},e.expectOptionalKeyword=function expectOptionalKeyword(e){var t=this._lexer.token;return t.kind===S.NAME&&t.value===e&&(this._lexer.advance(),!0)},e.unexpected=function unexpected(e){var t=null!==e&&void 0!==e?e:this._lexer.token;return syntaxError(this._lexer.source,t.start,"Unexpected ".concat(getTokenDesc(t),"."))},e.any=function any(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},e.optionalMany=function optionalMany(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},e.many=function many(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},e.delimitedMany=function delimitedMany(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},Parser}();function getTokenDesc(e){var t=e.value;return getTokenKindDesc(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function getTokenKindDesc(e){return function isPunctuatorTokenKind(e){return e===S.BANG||e===S.DOLLAR||e===S.AMP||e===S.PAREN_L||e===S.PAREN_R||e===S.SPREAD||e===S.COLON||e===S.EQUALS||e===S.AT||e===S.BRACKET_L||e===S.BRACKET_R||e===S.BRACE_L||e===S.PIPE||e===S.BRACE_R}(e)?'"'.concat(e,'"'):e}function lib_typeof(e){return(lib_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var x=new Map,D=new Map,I=!0,N=!1;function normalize(e){return e.replace(/[\s,]+/g," ").trim()}function processFragments(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=function cacheKeyFromLoc(e){return normalize(e.source.body.substring(e.start,e.end))}(e.loc),o=D.get(r);o&&!o.has(i)?I&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||D.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e)})),y(y({},e),{definitions:n})}function parseDocument(e){var t=normalize(e);if(!x.has(t)){var n=function parse(e,t){return new A(e,t).parseDocument()}(e,{experimentalFragmentVariables:N});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");x.set(t,function stripLoc(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"===lib_typeof(r)&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(processFragments(n)))}return x.get(t)}function gql(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]})),parseDocument(r)}var L,P=gql,j=function resetCaches(){x.clear(),D.clear()},R=function disableFragmentWarnings(){I=!1},M=function enableExperimentalFragmentVariables(){N=!0},F=function disableExperimentalFragmentVariables(){N=!1};(L=gql||(gql={})).gql=P,L.resetCaches=j,L.disableFragmentWarnings=R,L.enableExperimentalFragmentVariables=M,L.disableExperimentalFragmentVariables=F,gql.default=gql;function trie_esm_typeof(e){return(trie_esm_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var V=function defaultMakeData(){return Object.create(null)},q=Array.prototype,Q=q.forEach,B=q.slice,U=function(){function Trie(e,t){void 0===e&&(e=!0),void 0===t&&(t=V),this.weakness=e,this.makeData=t}return Trie.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},Trie.prototype.lookupArray=function(e){var t=this;return Q.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(B.call(e)))},Trie.prototype.getChildTrie=function(e){var t=this.weakness&&function isObjRef(e){switch(trie_esm_typeof(e)){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=t.get(e);return n||t.set(e,n=new Trie(this.weakness,this.makeData)),n},Trie}();var z=null,W={},H=1,K="@wry/context:Slot",G=Array,Y=G[K]||function(){var e=function makeSlotClass(){return function(){function Slot(){this.id=["slot",H++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return Slot.prototype.hasValue=function(){for(var e=z;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===W)break;return e!==z&&(z.slots[this.id]=t),!0}return z&&(z.slots[this.id]=W),!1},Slot.prototype.getValue=function(){if(this.hasValue())return z.slots[this.id]},Slot.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=z;z={parent:a,slots:o};try{return t.apply(r,n)}finally{z=a}},Slot.bind=function(e){var t=z;return function(){var n=z;try{return z=t,e.apply(this,arguments)}finally{z=n}}},Slot.noContext=function(e,t,n){if(!z)return e.apply(n,t);var r=z;try{return z=null,e.apply(n,t)}finally{z=r}},Slot}()}();try{Object.defineProperty(G,K,{value:G[K]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();Y.bind,Y.noContext;function defaultDispose(){}var J,X=function(){function Cache(e,t){void 0===e&&(e=1/0),void 0===t&&(t=defaultDispose),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return Cache.prototype.has=function(e){return this.map.has(e)},Cache.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},Cache.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},Cache.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)},Cache.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},Cache.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)},Cache}(),Z=new Y,ee=Object.prototype.hasOwnProperty,te=void 0===(J=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:J;function maybeUnsubscribe(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var ne=[];function assert(e,t){if(!e)throw new Error(t||"assertion failure")}function valueGet(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var re=function(){function Entry(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Entry.count}return Entry.prototype.peek=function(){if(1===this.value.length&&!mightBeDirty(this))return rememberParent(this),this.value[0]},Entry.prototype.recompute=function(e){return assert(!this.recomputing,"already recomputing"),rememberParent(this),mightBeDirty(this)?function reallyRecompute(e,t){forgetChildren(e),Z.withValue(e,recomputeNewValue,[e,t]),function maybeSubscribe(e,t){if("function"===typeof e.subscribe)try{maybeUnsubscribe(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(n){return e.setDirty(),!1}return!0}(e,t)&&function setClean(e){if(e.dirty=!1,mightBeDirty(e))return;reportClean(e)}(e);return valueGet(e.value)}(this,e):valueGet(this.value)},Entry.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,reportDirty(this),maybeUnsubscribe(this))},Entry.prototype.dispose=function(){var e=this;this.setDirty(),forgetChildren(this),eachParent(this,(function(t,n){t.setDirty(),forgetChild(t,e)}))},Entry.prototype.forget=function(){this.dispose()},Entry.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=ne.pop()||new Set),this.deps.add(e)},Entry.prototype.forgetDeps=function(){var e=this;this.deps&&(te(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),ne.push(this.deps),this.deps=null)},Entry.count=0,Entry}();function rememberParent(e){var t=Z.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),mightBeDirty(e)?reportDirtyChild(t,e):reportCleanChild(t,e),t}function recomputeNewValue(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function mightBeDirty(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function reportDirty(e){eachParent(e,reportDirtyChild)}function reportClean(e){eachParent(e,reportCleanChild)}function eachParent(e,t){var n=e.parents.size;if(n)for(var r=te(e.parents),i=0;i<n;++i)t(r[i],e)}function reportDirtyChild(e,t){assert(e.childValues.has(t)),assert(mightBeDirty(t));var n=!mightBeDirty(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=ne.pop()||new Set;e.dirtyChildren.add(t),n&&reportDirty(e)}function reportCleanChild(e,t){assert(e.childValues.has(t)),assert(!mightBeDirty(t));var n=e.childValues.get(t);0===n.length?e.childValues.set(t,function valueCopy(e){return e.slice(0)}(t.value)):function valueIs(e,t){var n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),removeDirtyChild(e,t),mightBeDirty(e)||reportClean(e)}function removeDirtyChild(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(ne.length<100&&ne.push(n),e.dirtyChildren=null))}function forgetChildren(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){forgetChild(e,n)})),e.forgetDeps(),assert(null===e.dirtyChildren)}function forgetChild(e,t){t.parents.delete(e),e.childValues.delete(t),removeDirtyChild(e,t)}var ie={setDirty:!0,dispose:!0,forget:!0};function dep(e){var t=new Map,n=e&&e.subscribe;function depend(e){var r=Z.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"===typeof n&&(maybeUnsubscribe(i),i.unsubscribe=n(e))}}return depend.dirty=function dirty(e,n){var r=t.get(e);if(r){var i=n&&ee.call(ie,n)?n:"setDirty";te(r).forEach((function(e){return e[i]()})),t.delete(e),maybeUnsubscribe(r)}},depend}function makeDefaultMakeCacheKeyFunction(){var e=new U("function"===typeof WeakMap);return function(){return e.lookupArray(arguments)}}makeDefaultMakeCacheKeyFunction();var oe=new Set;function wrap(e,t){void 0===t&&(t=Object.create(null));var n=new X(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||makeDefaultMakeCacheKeyFunction(),o=function optimistic(){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 re(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),oe.add(n),Z.hasValue()||(oe.forEach((function(e){return e.clean()})),oe.clear()),s};function dirtyKey(e){var t=n.get(e);t&&t.setDirty()}function peekKey(e){var t=n.get(e);if(t)return t.peek()}function forgetKey(e){return n.delete(e)}return Object.defineProperty(o,"size",{get:function get(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=dirtyKey,o.dirty=function dirty(){dirtyKey(i.apply(null,arguments))},o.peekKey=peekKey,o.peek=function peek(){return peekKey(i.apply(null,arguments))},o.forgetKey=forgetKey,o.forget=function forget(){return forgetKey(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function getKey(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}var ae=Object.prototype,se=ae.toString,ce=ae.hasOwnProperty,ue=Function.prototype.toString,le=new Map;function equal(e,t){try{return check(e,t)}finally{le.clear()}}function check(e,t){if(e===t)return!0;var n=se.call(e);if(n!==se.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(previouslyCompared(e,t))return!0;var r=definedKeys(e),i=definedKeys(t),o=r.length;if(o!==i.length)return!1;for(var a=0;a<o;++a)if(!ce.call(t,r[a]))return!1;for(a=0;a<o;++a){var s=r[a];if(!check(e[s],t[s]))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(previouslyCompared(e,t))return!0;for(var c=e.entries(),u="[object Map]"===n;;){var l=c.next();if(l.done)break;var f=l.value,p=f[0],d=f[1];if(!t.has(p))return!1;if(u&&!check(d,t.get(p)))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]":var h=e.byteLength;if(h===t.byteLength)for(;h--&&e[h]===t[h];);return-1===h;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var m=ue.call(e);return m===ue.call(t)&&!function endsWith(e,t){var n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(m,fe)}return!1}function definedKeys(e){return Object.keys(e).filter(isDefinedKey,e)}function isDefinedKey(e){return void 0!==this[e]}var fe="{ [native code] }";function previouslyCompared(e,t){var n=le.get(e);if(n){if(n.has(t))return!0}else le.set(e,n=new Set);return n.add(t),!1}var pe="Invariant Violation",de=Object.setPrototypeOf,he=void 0===de?function(e,t){return e.__proto__=t,e}:de,me=function(e){function InvariantError(t){void 0===t&&(t=pe);var n=e.call(this,"number"===typeof t?pe+": "+t+" (see https://github.com/apollographql/invariant-packages)":t)||this;return n.framesToPop=1,n.name=pe,he(n,InvariantError.prototype),n}return __extends(InvariantError,e),InvariantError}(Error);function invariant_esm_invariant(e,t){if(!e)throw new me(t)}var ye=["debug","log","warn","error","silent"],ve=ye.indexOf("log");function wrapConsoleMethod(e){return function(){if(ye.indexOf(e)>=ve){var t=console[e]||console.log;return t.apply(console,arguments)}}}!function(e){e.debug=wrapConsoleMethod("debug"),e.log=wrapConsoleMethod("log"),e.warn=wrapConsoleMethod("warn"),e.error=wrapConsoleMethod("error")}(invariant_esm_invariant||(invariant_esm_invariant={}));function getFragmentQueryDocument(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw __DEV__?new me("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 me(47);"FragmentDefinition"===e.kind&&r.push(e)})),"undefined"===typeof n&&(__DEV__?invariant_esm_invariant(1===r.length,"Found "+r.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):invariant_esm_invariant(1===r.length,48),n=r[0].name.value),y(y({},e),{definitions:__spreadArray([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function createFragmentMap(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function getFragmentFromSelection(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?invariant_esm_invariant(n,"No fragment named "+e.name.value+"."):invariant_esm_invariant(n,49),n;default:return null}}var ge=function(){function ApolloCache(){this.getFragmentDoc=wrap(getFragmentQueryDocument)}return ApolloCache.prototype.batch=function(e){var t="string"===typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;this.performTransaction(e.update,t)},ApolloCache.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},ApolloCache.prototype.transformDocument=function(e){return e},ApolloCache.prototype.identify=function(e){},ApolloCache.prototype.gc=function(){return[]},ApolloCache.prototype.modify=function(e){return!1},ApolloCache.prototype.transformForLink=function(e){return e},ApolloCache.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(y(y({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},ApolloCache.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(y(y({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},ApolloCache.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=__rest(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},ApolloCache.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=__rest(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},ApolloCache}(),_e=function(e){function MissingFieldError(t,n,r,i){var o=e.call(this,t)||this;return o.message=t,o.path=n,o.query=r,o.variables=i,o.__proto__=MissingFieldError.prototype,o}return __extends(MissingFieldError,e),MissingFieldError}(Error);function objects_typeof(e){return(objects_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function isNonNullObject(e){return null!==e&&"object"===objects_typeof(e)}function storeUtils_typeof(e){return(storeUtils_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function makeReference(e){return{__ref:String(e)}}function isReference(e){return Boolean(e&&"object"===storeUtils_typeof(e)&&"string"===typeof e.__ref)}function valueToObjectRepresentation(e,t,n,r){if(function isIntValue(e){return"IntValue"===e.kind}(n)||function isFloatValue(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function isBooleanValue(e){return"BooleanValue"===e.kind}(n)||function isStringValue(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function isObjectValue(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map((function(e){return valueToObjectRepresentation(i,e.name,e.value,r)})),e[t.value]=i}else if(function isVariable(e){return"Variable"===e.kind}(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(function isListValue(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return valueToObjectRepresentation(n,t,e,r),n[t.value]}));else if(function isEnumValue(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function isNullValue(e){return"NullValue"===e.kind}(n))throw __DEV__?new me('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new me(58);e[t.value]=null}}var be=["connection","include","skip","client","rest","export"],Ee=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+"("+we(i)+")"}return n.connection.key}var o=e;if(t){var a=we(t);o+="("+a+")"}return n&&Object.keys(n).forEach((function(e){-1===be.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@"+e+"("+we(n[e])+")":o+="@"+e)})),o}),{setStringify:function setStringify(e){var t=we;return we=e,t}}),we=function defaultStringify(e){return JSON.stringify(e,stringifyReplacer)};function stringifyReplacer(e,t){return isNonNullObject(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function argumentsObjectFromField(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return valueToObjectRepresentation(n,r,i,t)})),n}return null}function resultKeyNameFromField(e){return e.alias?e.alias.value:e.name.value}function getTypenameFromResult(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(storeUtils_isField(o)){if("__typename"===o.name.value)return e[resultKeyNameFromField(o)]}else{var a=getTypenameFromResult(e,getFragmentFromSelection(o,n).selectionSet,n);if("string"===typeof a)return a}}}function storeUtils_isField(e){return"Field"===e.kind}function isInlineFragment(e){return"InlineFragment"===e.kind}var Se={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},ke=Object.freeze({});function visit(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Se,r=void 0,i=Array.isArray(e),o=[e],a=-1,s=[],c=void 0,u=void 0,l=void 0,f=[],p=[],d=e;do{var h=++a===o.length,m=h&&0!==s.length;if(h){if(u=0===p.length?void 0:f[f.length-1],c=l,l=p.pop(),m){if(i)c=c.slice();else{for(var y={},v=0,g=Object.keys(c);v<g.length;v++){var _=g[v];y[_]=c[_]}c=y}for(var b=0,E=0;E<s.length;E++){var w=s[E][0],S=s[E][1];i&&(w-=b),i&&null===S?(c.splice(w,1),b++):c[w]=S}}a=r.index,o=r.keys,s=r.edits,i=r.inArray,r=r.prev}else{if(u=l?i?a:o[a]:void 0,null===(c=l?l[u]:d)||void 0===c)continue;l&&f.push(u)}var k,O=void 0;if(!Array.isArray(c)){if(!isNode(c))throw new Error("Invalid AST Node: ".concat(inspect_inspect(c),"."));var T=getVisitFn(t,c.kind,h);if(T){if((O=T.call(t,c,u,l,f,p))===ke)break;if(!1===O){if(!h){f.pop();continue}}else if(void 0!==O&&(s.push([u,O]),!h)){if(!isNode(O)){f.pop();continue}c=O}}}if(void 0===O&&m&&s.push([u,c]),h)f.pop();else r={inArray:i,index:a,keys:o,edits:s,prev:r},o=(i=Array.isArray(c))?c:null!==(k=n[c.kind])&&void 0!==k?k:[],a=-1,s=[],l&&p.push(l),l=c}while(void 0!==r);return 0!==s.length&&(d=s[s.length-1][1]),d}function getVisitFn(e,t,n){var r=e[t];if(r){if(!n&&"function"===typeof r)return r;var i=n?r.leave:r.enter;if("function"===typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"===typeof o)return o;var a=o[t];if("function"===typeof a)return a}}}function checkDocument(e){__DEV__?invariant_esm_invariant(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'):invariant_esm_invariant(e&&"Document"===e.kind,50);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new me('Schema type definitions not allowed in queries. Found: "'+e.kind+'"'):new me(51);return e}));return __DEV__?invariant_esm_invariant(t.length<=1,"Ambiguous GraphQL document: contains "+t.length+" operations"):invariant_esm_invariant(t.length<=1,52),e}function getOperationDefinition(e){return checkDocument(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function getOperationName(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function getFragmentDefinitions(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function getMainDefinition(e){var t;checkDocument(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 me("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new me(57)}function getDefaultValues(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&valueToObjectRepresentation(t,e.variable.name,e.defaultValue)})),t}function filterInPlace(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 Oe={kind:"Field",name:{kind:"Name",value:"__typename"}};function isEmpty(e,t){return e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&isEmpty(t[e.name.value],t)}))}function nullIfDocIsEmpty(e){return isEmpty(getOperationDefinition(e)||function getFragmentDefinition(e){__DEV__?invariant_esm_invariant("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'):invariant_esm_invariant("Document"===e.kind,54),__DEV__?invariant_esm_invariant(e.definitions.length<=1,"Fragment must have exactly one definition."):invariant_esm_invariant(e.definitions.length<=1,55);var t=e.definitions[0];return __DEV__?invariant_esm_invariant("FragmentDefinition"===t.kind,"Must be a fragment definition."):invariant_esm_invariant("FragmentDefinition"===t.kind,56),t}(e),createFragmentMap(getFragmentDefinitions(e)))?null:e}function getDirectiveMatcher(e){return function directiveMatcher(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function removeDirectivesFromDocument(e,t){var n=Object.create(null),r=[],i=Object.create(null),o=[],a=nullIfDocIsEmpty(visit(t,{Variable:{enter:function enter(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function enter(t){if(e&&t.directives&&(e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(getDirectiveMatcher(e))))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})})),t.selectionSet&&getAllFragmentSpreadsFromSelectionSet(t.selectionSet).forEach((function(e){o.push({name:e.name.value})})),null}},FragmentSpread:{enter:function enter(e){i[e.name.value]=!0}},Directive:{enter:function enter(t){if(getDirectiveMatcher(e)(t))return null}}}));return a&&filterInPlace(r,(function(e){return!!e.name&&!n[e.name]})).length&&(a=function removeArgumentsFromDocument(e,t){var n=function getArgumentMatcher(e){return function argumentMatcher(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 nullIfDocIsEmpty(visit(t,{OperationDefinition:{enter:function enter(t){return y(y({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function enter(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 enter(e){if(n(e))return null}}}))}(r,a)),a&&filterInPlace(o,(function(e){return!!e.name&&!i[e.name]})).length&&(a=function removeFragmentSpreadFromDocument(e,t){function enter(t){if(e.some((function(e){return e.name===t.name.value})))return null}return nullIfDocIsEmpty(visit(t,{FragmentSpread:{enter:enter},FragmentDefinition:{enter:enter}}))}(o,a)),a}var Te=Object.assign((function(e){return visit(checkDocument(e),{SelectionSet:{enter:function enter(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r)if(!r.some((function(e){return storeUtils_isField(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(storeUtils_isField(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return y(y({},e),{selections:__spreadArray(__spreadArray([],r),[Oe])})}}}}})}),{added:function added(e){return e===Oe}}),Ce={test:function test(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||__DEV__&&invariant_esm_invariant.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 getAllFragmentSpreadsFromSelectionSet(e){var t=[];return e.selections.forEach((function(e){(storeUtils_isField(e)||isInlineFragment(e))&&e.selectionSet?getAllFragmentSpreadsFromSelectionSet(e.selectionSet).forEach((function(e){return t.push(e)})):"FragmentSpread"===e.kind&&t.push(e)})),t}function buildQueryFromSelectionSet(e){return"query"===getMainDefinition(e).operation?e:visit(e,{OperationDefinition:{enter:function enter(e){return y(y({},e),{operation:"query"})}}})}function canUse_typeof(e){return(canUse_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Ae="function"===typeof WeakMap&&!("object"===("undefined"===typeof navigator?"undefined":canUse_typeof(navigator))&&"ReactNative"===navigator.product),xe="function"===typeof WeakSet;function shouldInclude(e,t){var n=e.directives;return!n||!n.length||function getInclusionDirectives(e){var t=[];e&&e.length&&e.forEach((function(e){if(function isInclusionDirective(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments,r=e.name.value;__DEV__?invariant_esm_invariant(n&&1===n.length,"Incorrect number of arguments for the @"+r+" directive."):invariant_esm_invariant(n&&1===n.length,44);var i=n[0];__DEV__?invariant_esm_invariant(i.name&&"if"===i.name.value,"Invalid argument for the @"+r+" directive."):invariant_esm_invariant(i.name&&"if"===i.name.value,45);var o=i.value;__DEV__?invariant_esm_invariant(o&&("Variable"===o.kind||"BooleanValue"===o.kind),"Argument for the @"+r+" directive must be a variable or a boolean value."):invariant_esm_invariant(o&&("Variable"===o.kind||"BooleanValue"===o.kind),46),t.push({directive:e,ifArgument:i})}}));return 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__?invariant_esm_invariant(void 0!==i,"Invalid variable referenced in @"+n.name.value+" directive."):invariant_esm_invariant(void 0!==i,43)):i=r.value.value,"skip"===n.name.value?!i:i}))}function hasDirectives(e,t){return function getDirectiveNames(e){var t=[];return visit(e,{Directive:function Directive(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function hasClientExports(e){return e&&hasDirectives(["client"],e)&&hasDirectives(["export"],e)}var De=Object.prototype.hasOwnProperty;function mergeDeep(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return mergeDeepArray(e)}function mergeDeepArray(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new Ne,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var Ie=function defaultReconciler(e,t,n){return this.merge(e[n],t[n])},Ne=function(){function DeepMerger(e){void 0===e&&(e=Ie),this.reconciler=e,this.isObject=isNonNullObject,this.pastCopies=new Set}return DeepMerger.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return isNonNullObject(t)&&isNonNullObject(e)?(Object.keys(t).forEach((function(i){if(De.call(e,i)){var o=e[i];if(t[i]!==o){var a=n.reconciler.apply(n,__spreadArray([e,t,i],r));a!==o&&((e=n.shallowCopyForMerge(e))[i]=a)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]})),e):t},DeepMerger.prototype.shallowCopyForMerge=function(e){return isNonNullObject(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):y({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},DeepMerger}();function maybe(e){try{return e()}catch(q){}}var Le=maybe((function(){return globalThis}))||maybe((function(){return window}))||maybe((function(){return self}))||maybe((function(){return __webpack_require__.g}))||maybe((function(){return Function("return this")()})),Pe="__",je=[Pe,Pe].join("DEV");var Re=function getDEV(){try{return Boolean(__DEV__)}catch(q){return Object.defineProperty(Le,je,{value:"production"!==maybe((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),Le[je]}}();function process_maybe(e){try{return e()}catch(t){}}var Me=process_maybe((function(){return globalThis}))||process_maybe((function(){return window}))||process_maybe((function(){return self}))||process_maybe((function(){return __webpack_require__.g}))||process_maybe((function(){return Function("return this")()})),Fe=!1;!function install(){!Me||process_maybe((function(){return"production"}))||process_maybe((function(){return process}))||(Object.defineProperty(Me,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Fe=!0)}();var Ve=Object.entries||function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))};function mapValue(e,t){for(var n=Object.create(null),r=0,i=Ve(e);r<i.length;r++){var o=i[r],a=o[0],s=o[1];n[a]=t(s,a)}return n}function toObjMap(e){if(null===Object.getPrototypeOf(e))return e;for(var t=Object.create(null),n=0,r=Ve(e);n<r.length;n++){var i=r[n],o=i[0],a=i[1];t[o]=a}return t}function keyValMap(e,t,n){return e.reduce((function(e,r){return e[t(r)]=n(r),e}),Object.create(null))}function identityFunc(e){return e}var qe=48;function isDigit(e){return!isNaN(e)&&qe<=e&&e<=57}function suggestionList(e,t){for(var n=Object.create(null),r=new Qe(e),i=Math.floor(.4*e.length)+1,o=0;o<t.length;o++){var a=t[o],s=r.measure(a,i);void 0!==s&&(n[a]=s)}return Object.keys(n).sort((function(e,t){var r=n[e]-n[t];return 0!==r?r:function naturalCompare(e,t){for(var n=0,r=0;n<e.length&&r<t.length;){var i=e.charCodeAt(n),o=t.charCodeAt(r);if(isDigit(i)&&isDigit(o)){var a=0;do{++n,a=10*a+i-qe,i=e.charCodeAt(n)}while(isDigit(i)&&a>0);var s=0;do{++r,s=10*s+o-qe,o=t.charCodeAt(r)}while(isDigit(o)&&s>0);if(a<s)return-1;if(a>s)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return e.length-t.length}(e,t)}))}var Qe=function(){function LexicalDistance(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=stringToArray(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}return LexicalDistance.prototype.measure=function measure(e,t){if(this._input===e)return 0;var n=e.toLowerCase();if(this._inputLowerCase===n)return 1;var r=stringToArray(n),i=this._inputArray;if(r.length<i.length){var o=r;r=i,i=o}var a=r.length,s=i.length;if(!(a-s>t)){for(var c=this._rows,u=0;u<=s;u++)c[0][u]=u;for(var l=1;l<=a;l++){for(var f=c[(l-1)%3],p=c[l%3],d=p[0]=l,h=1;h<=s;h++){var m=r[l-1]===i[h-1]?0:1,y=Math.min(f[h]+1,p[h-1]+1,f[h-1]+m);if(l>1&&h>1&&r[l-1]===i[h-2]&&r[l-2]===i[h-1]){var v=c[(l-2)%3][h-2];y=Math.min(y,v+1)}y<d&&(d=y),p[h]=y}if(d>t)return}var g=c[a%3][s];return g<=t?g:void 0}},LexicalDistance}();function stringToArray(e){for(var t=e.length,n=new Array(t),r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function print(e){return visit(e,{leave:Be})}var Be={Name:function Name(e){return e.value},Variable:function Variable(e){return"$"+e.name},Document:function Document(e){return join(e.definitions,"\n\n")+"\n"},OperationDefinition:function OperationDefinition(e){var t=e.operation,n=e.name,r=printer_wrap("(",join(e.variableDefinitions,", "),")"),i=join(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?join([t,join([n,r]),i,o]," "):o},VariableDefinition:function VariableDefinition(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+printer_wrap(" = ",r)+printer_wrap(" ",join(i," "))},SelectionSet:function SelectionSet(e){return block(e.selections)},Field:function Field(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=printer_wrap("",t,": ")+n,s=a+printer_wrap("(",join(r,", "),")");return s.length>80&&(s=a+printer_wrap("(\n",indent(join(r,"\n")),"\n)")),join([s,join(i," "),o]," ")},Argument:function Argument(e){return e.name+": "+e.value},FragmentSpread:function FragmentSpread(e){return"..."+e.name+printer_wrap(" ",join(e.directives," "))},InlineFragment:function InlineFragment(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return join(["...",printer_wrap("on ",t),join(n," "),r]," ")},FragmentDefinition:function FragmentDefinition(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(printer_wrap("(",join(r,", "),")")," ")+"on ".concat(n," ").concat(printer_wrap("",join(i," ")," "))+o},IntValue:function IntValue(e){return e.value},FloatValue:function FloatValue(e){return e.value},StringValue:function StringValue(e,t){var n=e.value;return e.block?function printBlockString(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,c="";return!s||r&&i||(c+="\n"+t),c+=t?e.replace(/\n/g,"\n"+t):e,s&&(c+="\n"),'"""'+c.replace(/"""/g,'\\"""')+'"""'}(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function BooleanValue(e){return e.value?"true":"false"},NullValue:function NullValue(){return"null"},EnumValue:function EnumValue(e){return e.value},ListValue:function ListValue(e){return"["+join(e.values,", ")+"]"},ObjectValue:function ObjectValue(e){return"{"+join(e.fields,", ")+"}"},ObjectField:function ObjectField(e){return e.name+": "+e.value},Directive:function Directive(e){return"@"+e.name+printer_wrap("(",join(e.arguments,", "),")")},NamedType:function NamedType(e){return e.name},ListType:function ListType(e){return"["+e.type+"]"},NonNullType:function NonNullType(e){return e.type+"!"},SchemaDefinition:addDescription((function(e){var t=e.directives,n=e.operationTypes;return join(["schema",join(t," "),block(n)]," ")})),OperationTypeDefinition:function OperationTypeDefinition(e){return e.operation+": "+e.type},ScalarTypeDefinition:addDescription((function(e){return join(["scalar",e.name,join(e.directives," ")]," ")})),ObjectTypeDefinition:addDescription((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["type",t,printer_wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")})),FieldDefinition:addDescription((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(hasMultilineItems(n)?printer_wrap("(\n",indent(join(n,"\n")),"\n)"):printer_wrap("(",join(n,", "),")"))+": "+r+printer_wrap(" ",join(i," "))})),InputValueDefinition:addDescription((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return join([t+": "+n,printer_wrap("= ",r),join(i," ")]," ")})),InterfaceTypeDefinition:addDescription((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["interface",t,printer_wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")})),UnionTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.types;return join(["union",t,join(n," "),r&&0!==r.length?"= "+join(r," | "):""]," ")})),EnumTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.values;return join(["enum",t,join(n," "),block(r)]," ")})),EnumValueDefinition:addDescription((function(e){return join([e.name,join(e.directives," ")]," ")})),InputObjectTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.fields;return join(["input",t,join(n," "),block(r)]," ")})),DirectiveDefinition:addDescription((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(hasMultilineItems(n)?printer_wrap("(\n",indent(join(n,"\n")),"\n)"):printer_wrap("(",join(n,", "),")"))+(r?" repeatable":"")+" on "+join(i," | ")})),SchemaExtension:function SchemaExtension(e){var t=e.directives,n=e.operationTypes;return join(["extend schema",join(t," "),block(n)]," ")},ScalarTypeExtension:function ScalarTypeExtension(e){return join(["extend scalar",e.name,join(e.directives," ")]," ")},ObjectTypeExtension:function ObjectTypeExtension(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["extend type",t,printer_wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},InterfaceTypeExtension:function InterfaceTypeExtension(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["extend interface",t,printer_wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},UnionTypeExtension:function UnionTypeExtension(e){var t=e.name,n=e.directives,r=e.types;return join(["extend union",t,join(n," "),r&&0!==r.length?"= "+join(r," | "):""]," ")},EnumTypeExtension:function EnumTypeExtension(e){var t=e.name,n=e.directives,r=e.values;return join(["extend enum",t,join(n," "),block(r)]," ")},InputObjectTypeExtension:function InputObjectTypeExtension(e){var t=e.name,n=e.directives,r=e.fields;return join(["extend input",t,join(n," "),block(r)]," ")}};function addDescription(e){return function(t){return join([t.description,e(t)],"\n")}}function join(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function block(e){return printer_wrap("{\n",indent(join(e,"\n")),"\n}")}function printer_wrap(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function indent(e){return printer_wrap(" ",e.replace(/\n/g,"\n "))}function isMultiline(e){return-1!==e.indexOf("\n")}function hasMultilineItems(e){return null!=e&&e.some(isMultiline)}function valueFromASTUntyped(e,t){switch(e.kind){case _.NULL:return null;case _.INT:return parseInt(e.value,10);case _.FLOAT:return parseFloat(e.value);case _.STRING:case _.ENUM:case _.BOOLEAN:return e.value;case _.LIST:return e.values.map((function(e){return valueFromASTUntyped(e,t)}));case _.OBJECT:return keyValMap(e.fields,(function(e){return e.name.value}),(function(e){return valueFromASTUntyped(e.value,t)}));case _.VARIABLE:return null===t||void 0===t?void 0:t[e.name.value]}invariant(0,"Unexpected value node: "+inspect_inspect(e))}function definition_defineProperties(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 definition_createClass(e,t,n){return t&&definition_defineProperties(e.prototype,t),n&&definition_defineProperties(e,n),e}function isType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)||isListType(e)||isNonNullType(e)}function isScalarType(e){return k(e,Ue)}function isObjectType(e){return k(e,ze)}function isInterfaceType(e){return k(e,We)}function isUnionType(e){return k(e,He)}function isEnumType(e){return k(e,Ke)}function isInputObjectType(e){return k(e,Ge)}function isListType(e){return k(e,GraphQLList)}function isNonNullType(e){return k(e,GraphQLNonNull)}function GraphQLList(e){if(!(this instanceof GraphQLList))return new GraphQLList(e);this.ofType=function assertType(e){if(!isType(e))throw new Error("Expected ".concat(inspect_inspect(e)," to be a GraphQL type."));return e}(e)}function GraphQLNonNull(e){if(!(this instanceof GraphQLNonNull))return new GraphQLNonNull(e);this.ofType=function assertNullableType(e){if(!function isNullableType(e){return isType(e)&&!isNonNullType(e)}(e))throw new Error("Expected ".concat(inspect_inspect(e)," to be a GraphQL nullable type."));return e}(e)}function resolveThunk(e){return"function"===typeof e?e():e}function undefineIfEmpty(e){return e&&e.length>0?e:void 0}GraphQLList.prototype.toString=function toString(){return"["+String(this.ofType)+"]"},GraphQLList.prototype.toJSON=function toJSON(){return this.toString()},Object.defineProperty(GraphQLList.prototype,v,{get:function get(){return"GraphQLList"}}),defineInspect(GraphQLList),GraphQLNonNull.prototype.toString=function toString(){return String(this.ofType)+"!"},GraphQLNonNull.prototype.toJSON=function toJSON(){return this.toString()},Object.defineProperty(GraphQLNonNull.prototype,v,{get:function get(){return"GraphQLNonNull"}}),defineInspect(GraphQLNonNull);var Ue=function(){function GraphQLScalarType(e){var t,n,r,i=null!==(t=e.parseValue)&&void 0!==t?t:identityFunc;this.name=e.name,this.description=e.description,this.specifiedByUrl=e.specifiedByUrl,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:identityFunc,this.parseValue=i,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:function(e,t){return i(valueFromASTUntyped(e,t))},this.extensions=e.extensions&&toObjMap(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=undefineIfEmpty(e.extensionASTNodes),"string"===typeof e.name||devAssert(0,"Must provide name."),null==e.specifiedByUrl||"string"===typeof e.specifiedByUrl||devAssert(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(inspect_inspect(e.specifiedByUrl),".")),null==e.serialize||"function"===typeof e.serialize||devAssert(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"===typeof e.parseValue&&"function"===typeof e.parseLiteral||devAssert(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var e=GraphQLScalarType.prototype;return e.toConfig=function toConfig(){var e;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},e.toString=function toString(){return this.name},e.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLScalarType,[{key:v,get:function get(){return"GraphQLScalarType"}}]),GraphQLScalarType}();defineInspect(Ue);var ze=function(){function GraphQLObjectType(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&toObjMap(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=undefineIfEmpty(e.extensionASTNodes),this._fields=defineFieldMap.bind(void 0,e),this._interfaces=defineInterfaces.bind(void 0,e),"string"===typeof e.name||devAssert(0,"Must provide name."),null==e.isTypeOf||"function"===typeof e.isTypeOf||devAssert(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(inspect_inspect(e.isTypeOf),"."))}var e=GraphQLObjectType.prototype;return e.getFields=function getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},e.getInterfaces=function getInterfaces(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},e.toConfig=function toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},e.toString=function toString(){return this.name},e.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLObjectType,[{key:v,get:function get(){return"GraphQLObjectType"}}]),GraphQLObjectType}();function defineInterfaces(e){var t,n=null!==(t=resolveThunk(e.interfaces))&&void 0!==t?t:[];return Array.isArray(n)||devAssert(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function defineFieldMap(e){var t=resolveThunk(e.fields);return isPlainObj(t)||devAssert(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),mapValue(t,(function(t,n){var r;isPlainObj(t)||devAssert(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in t)||devAssert(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"===typeof t.resolve||devAssert(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat(inspect_inspect(t.resolve),"."));var i=null!==(r=t.args)&&void 0!==r?r:{};isPlainObj(i)||devAssert(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var o=Ve(i).map((function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&toObjMap(n.extensions),astNode:n.astNode}}));return{name:n,description:t.description,type:t.type,args:o,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:null!=t.deprecationReason,deprecationReason:t.deprecationReason,extensions:t.extensions&&toObjMap(t.extensions),astNode:t.astNode}}))}function isPlainObj(e){return isObjectLike(e)&&!Array.isArray(e)}function fieldsToFieldsConfig(e){return mapValue(e,(function(e){return{description:e.description,type:e.type,args:(t=e.args,keyValMap(t,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode};var t}))}defineInspect(ze);var We=function(){function GraphQLInterfaceType(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&toObjMap(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=undefineIfEmpty(e.extensionASTNodes),this._fields=defineFieldMap.bind(void 0,e),this._interfaces=defineInterfaces.bind(void 0,e),"string"===typeof e.name||devAssert(0,"Must provide name."),null==e.resolveType||"function"===typeof e.resolveType||devAssert(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(inspect_inspect(e.resolveType),"."))}var e=GraphQLInterfaceType.prototype;return e.getFields=function getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},e.getInterfaces=function getInterfaces(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},e.toConfig=function toConfig(){var e;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},e.toString=function toString(){return this.name},e.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLInterfaceType,[{key:v,get:function get(){return"GraphQLInterfaceType"}}]),GraphQLInterfaceType}();defineInspect(We);var He=function(){function GraphQLUnionType(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&toObjMap(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=undefineIfEmpty(e.extensionASTNodes),this._types=defineTypes.bind(void 0,e),"string"===typeof e.name||devAssert(0,"Must provide name."),null==e.resolveType||"function"===typeof e.resolveType||devAssert(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(inspect_inspect(e.resolveType),"."))}var e=GraphQLUnionType.prototype;return e.getTypes=function getTypes(){return"function"===typeof this._types&&(this._types=this._types()),this._types},e.toConfig=function toConfig(){var e;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},e.toString=function toString(){return this.name},e.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLUnionType,[{key:v,get:function get(){return"GraphQLUnionType"}}]),GraphQLUnionType}();function defineTypes(e){var t=resolveThunk(e.types);return Array.isArray(t)||devAssert(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}defineInspect(He);var Ke=function(){function GraphQLEnumType(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&toObjMap(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=undefineIfEmpty(e.extensionASTNodes),this._values=function defineEnumValues(e,t){return isPlainObj(t)||devAssert(0,"".concat(e," values must be an object with value names as keys.")),Ve(t).map((function(t){var n=t[0],r=t[1];return isPlainObj(r)||devAssert(0,"".concat(e,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(inspect_inspect(r),".")),!("isDeprecated"in r)||devAssert(0,"".concat(e,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:r.description,value:void 0!==r.value?r.value:n,isDeprecated:null!=r.deprecationReason,deprecationReason:r.deprecationReason,extensions:r.extensions&&toObjMap(r.extensions),astNode:r.astNode}}))}(this.name,e.values),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=function keyMap(e,t){return e.reduce((function(e,n){return e[t(n)]=n,e}),Object.create(null))}(this._values,(function(e){return e.name})),"string"===typeof e.name||devAssert(0,"Must provide name.")}var e=GraphQLEnumType.prototype;return e.getValues=function getValues(){return this._values},e.getValue=function getValue(e){return this._nameLookup[e]},e.serialize=function serialize(e){var t=this._valueLookup.get(e);if(void 0===t)throw new g('Enum "'.concat(this.name,'" cannot represent value: ').concat(inspect_inspect(e)));return t.name},e.parseValue=function parseValue(e){if("string"!==typeof e){var t=inspect_inspect(e);throw new g('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+didYouMeanEnumValue(this,t))}var n=this.getValue(e);if(null==n)throw new g('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+didYouMeanEnumValue(this,e));return n.value},e.parseLiteral=function parseLiteral(e,t){if(e.kind!==_.ENUM){var n=print(e);throw new g('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(n,".")+didYouMeanEnumValue(this,n),e)}var r=this.getValue(e.value);if(null==r){var i=print(e);throw new g('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+didYouMeanEnumValue(this,i),e)}return r.value},e.toConfig=function toConfig(){var e,t=keyValMap(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},e.toString=function toString(){return this.name},e.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLEnumType,[{key:v,get:function get(){return"GraphQLEnumType"}}]),GraphQLEnumType}();function didYouMeanEnumValue(e,t){return function didYouMean(e,t){var n="string"===typeof e?[e,t]:[void 0,e],r=n[0],i=" Did you mean ";r&&(i+=r+" ");var o=n[1].map((function(e){return'"'.concat(e,'"')}));switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}var a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}("the enum value",suggestionList(t,e.getValues().map((function(e){return e.name}))))}defineInspect(Ke);var Ge=function(){function GraphQLInputObjectType(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&toObjMap(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=undefineIfEmpty(e.extensionASTNodes),this._fields=defineInputFieldMap.bind(void 0,e),"string"===typeof e.name||devAssert(0,"Must provide name.")}var e=GraphQLInputObjectType.prototype;return e.getFields=function getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},e.toConfig=function toConfig(){var e,t=mapValue(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},e.toString=function toString(){return this.name},e.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLInputObjectType,[{key:v,get:function get(){return"GraphQLInputObjectType"}}]),GraphQLInputObjectType}();function defineInputFieldMap(e){var t=resolveThunk(e.fields);return isPlainObj(t)||devAssert(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),mapValue(t,(function(t,n){return!("resolve"in t)||devAssert(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&toObjMap(t.extensions),astNode:t.astNode}}))}function maybeDeepFreeze(e){return __DEV__&&function deepFreeze(e){var t=new Set([e]);return t.forEach((function(e){isNonNullObject(e)&&(Object.isFrozen(e)||Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(n){isNonNullObject(e[n])&&t.add(e[n])})))})),e}(e),e}defineInspect(Ge),function removeTemporaryGlobals(){return isType(null),function remove(){Fe&&(delete Me.process,Fe=!1)}()}();var Ye=Object.prototype.hasOwnProperty;var Je=/^[_a-z][_0-9a-z]*/i;function fieldNameFromStoreName(e){var t=e.match(Je);return t?t[0]:e}function selectionSetMatchesResult(e,t,n){return!!isNonNullObject(t)&&(Array.isArray(t)?t.every((function(t){return selectionSetMatchesResult(e,t,n)})):e.selections.every((function(e){if(storeUtils_isField(e)&&shouldInclude(e,n)){var r=resultKeyNameFromField(e);return Ye.call(t,r)&&(!e.selectionSet||selectionSetMatchesResult(e.selectionSet,t[r],n))}return!0})))}function storeValueIsStoreObject(e){return isNonNullObject(e)&&!isReference(e)&&!Array.isArray(e)}function entityStore_typeof(e){return(entityStore_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Xe=Object.create(null),$e=function delModifier(){return Xe},Ze=Object.create(null),et=function(){function EntityStore(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 maybeDeepFreeze(isReference(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return isReference(e)?n.has(e.__ref):"object"===entityStore_typeof(e)},this.toReference=function(e,t){if("string"===typeof e)return makeReference(e);if(isReference(e))return e;var r=n.policies.identify(e)[0];if(r){var i=makeReference(r);return t&&n.merge(r,e),i}}}return EntityStore.prototype.toObject=function(){return y({},this.data)},EntityStore.prototype.has=function(e){return void 0!==this.lookup(e,!0)},EntityStore.prototype.get=function(e,t){if(this.group.depend(e,t),Ye.call(this.data,e)){var n=this.data[e];if(n&&Ye.call(n,t))return n[t]}return"__typename"===t&&Ye.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof nt?this.parent.get(e,t):void 0},EntityStore.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),Ye.call(this.data,e)?this.data[e]:this instanceof nt?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},EntityStore.prototype.merge=function(e,t){var n,r=this;isReference(e)&&(e=e.__ref),isReference(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__?invariant_esm_invariant("string"===typeof n,"store.merge expects a string ID"):invariant_esm_invariant("string"===typeof n,2);var a=new Ne(storeObjectReconciler).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=fieldNameFromStoreName(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof nt||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)}))}}},EntityStore.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:Xe,INVALIDATE:Ze,isReference:isReference,toReference:this.toReference,canRead:this.canRead,readField:function readField(t,r){return n.policies.readField("string"===typeof t?{fieldName:t,from:r||makeReference(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(c){var u=fieldNameFromStoreName(c),l=r[c];if(void 0!==l){var f="function"===typeof t?t:t[c]||t[u];if(f){var p=f===$e?Xe:f(maybeDeepFreeze(l),y(y({},s),{fieldName:u,storeFieldName:c,storage:n.getStorage(e,c)}));p===Ze?n.group.dirty(e,c):(p===Xe&&(p=void 0),p!==l&&(i[c]=p,o=!0,l=p))}void 0!==l&&(a=!1)}})),o)return this.merge(e,i),a&&(this instanceof nt?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},EntityStore.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]=$e,r):$e)}return!1},EntityStore.prototype.evict=function(e){var t=!1;return e.id&&(Ye.call(this.data,e.id)&&(t=this.delete(e.id,e.fieldName,e.args)),this instanceof nt&&(t=this.parent.evict(e)||t),(e.fieldName||t)&&this.group.dirty(e.id,e.fieldName||"__exists")),t},EntityStore.prototype.clear=function(){this.replace(null)},EntityStore.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){Ye.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},EntityStore.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&Ye.call(e,n)||t.delete(n)})),e){var n=e.__META,r=__rest(e,["__META"]);Object.keys(r).forEach((function(e){t.merge(e,r[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},EntityStore.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},EntityStore.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},EntityStore.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof nt?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},EntityStore.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){Ye.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 nt;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},EntityStore.prototype.findChildRefIds=function(e){if(!Ye.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){isReference(e)&&(t[e.__ref]=!0),isNonNullObject(e)&&Object.keys(e).forEach((function(t){var n=e[t];isNonNullObject(n)&&r.add(n)}))}))}return this.refs[e]},EntityStore.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},EntityStore}(),tt=function(){function CacheGroup(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return CacheGroup.prototype.resetCaching=function(){this.d=this.caching?dep():null,this.keyMaker=new U(Ae)},CacheGroup.prototype.depend=function(e,t){if(this.d){this.d(makeDepKey(e,t));var n=fieldNameFromStoreName(t);n!==t&&this.d(makeDepKey(e,n)),this.parent&&this.parent.depend(e,t)}},CacheGroup.prototype.dirty=function(e,t){this.d&&this.d.dirty(makeDepKey(e,t),"__exists"===t?"forget":"setDirty")},CacheGroup}();function makeDepKey(e,t){return t+"#"+e}function maybeDependOnExistenceOfEntity(e,t){supportsResultCaching(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function Root(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,o=t.seed,a=e.call(this,n,new tt(i))||this;return a.stump=new rt(a),a.storageTrie=new U(Ae),o&&a.replace(o),a}return __extends(Root,e),Root.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},Root.prototype.removeLayer=function(){return this},Root.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},Root}(e);e.Root=t}(et||(et={}));var nt=function(e){function Layer(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 __extends(Layer,e),Layer.prototype.addLayer=function(e,t){return new Layer(e,this,t,this.group)},Layer.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){equal(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)},Layer.prototype.toObject=function(){return y(y({},this.parent.toObject()),this.data)},Layer.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return Ye.call(this.data,t)?y(y({},n),e.prototype.findChildRefIds.call(this,t)):n},Layer.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},Layer}(et),rt=function(e){function Stump(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new tt(t.group.caching,t.group))||this}return __extends(Stump,e),Stump.prototype.removeLayer=function(){return this},Stump.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},Stump}(nt);function storeObjectReconciler(e,t,n){var r=e[n],i=t[n];return equal(r,i)?r:i}function supportsResultCaching(e){return!!(e instanceof et&&e.group.caching)}var it,ot,at=function(){function ObjectCanon(){this.known=new(xe?WeakSet:Set),this.pool=new U(Ae),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return ObjectCanon.prototype.isKnown=function(e){return isNonNullObject(e)&&this.known.has(e)},ObjectCanon.prototype.pass=function(e){if(isNonNullObject(e)){var t=function shallowCopy(e){return isNonNullObject(e)?Array.isArray(e)?e.slice(0):y({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},ObjectCanon.prototype.admit=function(e){var t=this;if(isNonNullObject(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,c=o.length;if(a.sorted.forEach((function(n){o.push(t.admit(e[n]))})),!(s=this.pool.lookupArray(o)).object){var u=s.object=Object.create(i);this.known.add(u),a.sorted.forEach((function(e,t){u[e]=o[c+t]})),__DEV__&&Object.freeze(u)}return s.object}}return e},ObjectCanon.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},ObjectCanon}(),st=Object.assign((function(e){if(isNonNullObject(e)){void 0===it&&resetCanonicalStringify();var t=it.admit(e),n=ot.get(t);return void 0===n&&ot.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:resetCanonicalStringify});function resetCanonicalStringify(){it=new at,ot=new(Ae?WeakMap:Map)}function missingFromInvariant(e,t){return new _e(e.message,t.path.slice(),t.query,t.variables)}function execSelectionSetKeyArgs(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var ct=function(){function StoreReader(e){var t=this;this.knownResults=new(Ae?WeakMap:Map),this.config=y(y({},e),{addTypename:!1!==e.addTypename}),this.canon=e.canon||new at,this.executeSelectionSet=wrap((function(e){var n,r=e.context.canonizeResults,i=execSelectionSetKeyArgs(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?y(y({},o),{result:t.canon.admit(o.result)}):o:(maybeDependOnExistenceOfEntity(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:execSelectionSetKeyArgs,makeCacheKey:function makeCacheKey(e,t,n,r){if(supportsResultCaching(n.store))return n.store.makeCacheKey(e,isReference(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=wrap((function(e){return maybeDependOnExistenceOfEntity(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function makeCacheKey(e){var t=e.field,n=e.array,r=e.context;if(supportsResultCaching(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return StoreReader.prototype.resetCanon=function(){this.canon=new at},StoreReader.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,c=e.canonizeResults,u=void 0===c||c,l=this.config.cache.policies;o=y(y({},getDefaultValues(function getQueryDefinition(e){var t=getOperationDefinition(e);return __DEV__?invariant_esm_invariant(t&&"query"===t.operation,"Must contain a query definition."):invariant_esm_invariant(t&&"query"===t.operation,53),t}(n))),o);var f=makeReference(i),p=this.executeSelectionSet({selectionSet:getMainDefinition(n).selectionSet,objectOrReference:f,enclosingRef:f,context:{store:t,query:n,policies:l,variables:o,varString:st(o),canonizeResults:u,fragmentMap:createFragmentMap(getFragmentDefinitions(n)),path:[]}}),d=p.missing&&p.missing.length>0;if(d&&!s)throw p.missing[0];return{result:p.result,missing:p.missing,complete:!d}},StoreReader.prototype.isFresh=function(e,t,n,r){if(supportsResultCaching(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},StoreReader.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,o=e.context;if(isReference(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:[missingFromInvariant(__DEV__?new me("Dangling reference to missing "+r.__ref+" object"):new me(6),o)]};var a=o.variables,s=o.policies,c=o.store,u=[],l={result:null},f=c.getFieldValue(r,"__typename");function getMissing(){return l.missing||(l.missing=[])}function handleMissing(e){var t;return e.missing&&(t=getMissing()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"===typeof f&&!s.rootIdsByTypename[f]&&u.push({__typename:f});var p=new Set(n.selections);p.forEach((function(e){var n;if(shouldInclude(e,a))if(storeUtils_isField(e)){var c=s.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),l=resultKeyNameFromField(e);o.path.push(l),void 0===c?Te.added(e)||getMissing().push(missingFromInvariant(__DEV__?new me("Can't find field '"+e.name.value+"' on "+(isReference(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2))):new me(7),o)):Array.isArray(c)?c=handleMissing(t.executeSubSelectedArray({field:e,array:c,enclosingRef:i,context:o})):e.selectionSet?null!=c&&(c=handleMissing(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:c,enclosingRef:isReference(c)?c:i,context:o}))):o.canonizeResults&&(c=t.canon.pass(c)),void 0!==c&&u.push(((n={})[l]=c,n)),invariant_esm_invariant(o.path.pop()===l)}else{var d=getFragmentFromSelection(e,o.fragmentMap);d&&s.fragmentMatches(d,f)&&d.selectionSet.selections.forEach(p.add,p)}}));var d=mergeDeepArray(u);return l.result=o.canonizeResults?this.canon.admit(d):maybeDeepFreeze(d),this.knownResults.set(l.result,n),l},StoreReader.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,a=e.context;function handleMissing(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),invariant_esm_invariant(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)?handleMissing(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?handleMissing(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:isReference(e)?e:o,context:a}),t):(__DEV__&&function assertSelectionSetForIdValue(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){isNonNullObject(n)&&(__DEV__?invariant_esm_invariant(!isReference(n),"Missing selection set for object of type "+function getTypenameFromStoreObject(e,t){return isReference(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)+" returned for query field "+t.name.value):invariant_esm_invariant(!isReference(n),8),Object.values(n).forEach(r.add,r))}))}}(a.store,r,e),invariant_esm_invariant(a.path.pop()===t),e))})),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},StoreReader}();var ut=Object.prototype.toString;function cloneDeep(e){return cloneDeepHelper(e)}function cloneDeepHelper(e,t){switch(ut.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]=cloneDeepHelper(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]=cloneDeepHelper(e[n],t)})),r;default:return e}}function writeToStore_typeof(e){return(writeToStore_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var lt=function(){function StoreWriter(e,t){this.cache=e,this.reader=t}return StoreWriter.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,c=getOperationDefinition(r),u=function makeProcessedFieldsMerger(){return new Ne}();a=y(y({},getDefaultValues(c)),a);var l={store:e,written:Object.create(null),merge:function merge(e,t){return u.merge(e,t)},variables:a,varString:st(a),fragmentMap:createFragmentMap(getFragmentDefinitions(r)),overwrite:!!s,incomingById:new Map,clientOnly:!1},f=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:l});if(!isReference(f))throw __DEV__?new me("Could not identify object "+JSON.stringify(i)):new me(9);return l.incomingById.forEach((function(t,r){var i=t.fields,o=t.mergeTree,a=t.selections,s=makeReference(r);if(o.map.size){var c=n.applyMerges(o,s,i,l);if(isReference(c))return;i=c}if(__DEV__&&!l.overwrite){var u=new Set;a.forEach((function(e){storeUtils_isField(e)&&e.selectionSet&&u.add(e.name.value)}));Object.keys(i).forEach((function(e){(function hasSelectionSet_1(e){return u.has(fieldNameFromStoreName(e))})(e)&&!function hasMergeFunction_1(e){var t=o.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function warnAboutDataLoss(e,t,n,r){var i=function getChild(e){var t=r.getFieldValue(e,n);return"object"===writeToStore_typeof(t)&&t},o=i(e);if(!o)return;var a=i(t);if(!a)return;if(isReference(o))return;if(equal(o,a))return;if(Object.keys(o).every((function(e){return void 0!==r.getFieldValue(a,e)})))return;var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),c=fieldNameFromStoreName(n),u=s+"."+c;if(pt.has(u))return;pt.add(u);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__&&invariant_esm_invariant.warn("Cache data may be lost when replacing the "+c+" 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 "+u+" 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(f.__ref),f},StoreWriter.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,c=s.identify(r,i,o.fragmentMap),u=c[0],l=c[1];if("string"===typeof(n=n||u)){var f=o.written[n]||(o.written[n]=[]),p=makeReference(n);if(f.indexOf(i)>=0)return p;if(f.push(i),this.reader&&this.reader.isFresh(r,p,i,o))return p}var d=Object.create(null);l&&(d=o.merge(d,l));var h=n&&s.rootTypenamesById[n]||getTypenameFromResult(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(shouldInclude(e,o.variables))if(storeUtils_isField(e)){var i=resultKeyNameFromField(e),c=r[i],u=o.clientOnly;if(o.clientOnly=u||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0!==c){var l=s.getStoreFieldName({typename:h,fieldName:e.name.value,field:e,variables:o.variables}),f=getChildMergeTree(a,l),p=t.processFieldValue(c,e,o,f),y=void 0;if(e.selectionSet&&!(y=o.store.getFieldValue(p,"__typename"))&&isReference(p)){var v=o.incomingById.get(p.__ref);y=v&&v.fields.__typename}var g=s.getMergeFunction(h,e.name.value,y);g?f.info={field:e,typename:h,merge:g}:maybeRecycleChildMergeTree(a,l),d=o.merge(d,((n={})[l]=p,n))}else o.clientOnly||Te.added(e)||__DEV__&&invariant_esm_invariant.error(("Missing field '"+resultKeyNameFromField(e)+"' while writing result "+JSON.stringify(r,null,2)).substring(0,1e3));o.clientOnly=u}else{var _=getFragmentFromSelection(e,o.fragmentMap);_&&s.fragmentMatches(_,h,r,o.variables)&&_.selectionSet.selections.forEach(m.add,m)}})),"string"===typeof n){var y=o.incomingById.get(n);return y?(y.fields=o.merge(y.fields,d),y.mergeTree=mergeMergeTrees(y.mergeTree,a),y.selections.forEach(m.add,m),y.selections=m):o.incomingById.set(n,{fields:d,mergeTree:a,selections:m}),makeReference(n)}return d},StoreWriter.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,getChildMergeTree(r,o));return maybeRecycleChildMergeTree(r,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?cloneDeep(e):e},StoreWriter.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!isReference(n)){var s,c=Array.isArray(n)||!isReference(t)&&!storeValueIsStoreObject(t)?void 0:t,u=n;c&&!i&&(i=[isReference(c)?c.__ref:c]);var l=function getValue_1(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(c,t),o=l(u,t);if(void 0!==o){i&&i.push(t);var f=a.applyMerges(e,n,o,r,i);f!==o&&(s=s||new Map).set(t,f),i&&invariant_esm_invariant(i.pop()===t)}})),s&&(n=Array.isArray(u)?u.slice(0):y({},u),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},StoreWriter}(),ft=[];function getChildMergeTree(e,t){var n=e.map;return n.has(t)||n.set(t,ft.pop()||{map:new Map}),n.get(t)}function mergeMergeTrees(e,t){if(e===t||!t||mergeTreeIsEmpty(t))return e;if(!e||mergeTreeIsEmpty(e))return t;var n=e.info&&t.info?y(y({},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,mergeMergeTrees(e,t.map.get(n))),o.delete(n)})),o.forEach((function(n){i.map.set(n,mergeMergeTrees(t.map.get(n),e.map.get(n)))}))}return i}function mergeTreeIsEmpty(e){return!e||!(e.info||e.map.size)}function maybeRecycleChildMergeTree(e,t){var n=e.map,r=n.get(t);r&&mergeTreeIsEmpty(r)&&(ft.push(r),n.delete(t))}var pt=new Set;var dt=new Y,ht=new WeakMap;function getCacheInfo(e){var t=ht.get(e);return t||ht.set(e,t={vars:new Set,dep:dep()}),t}function makeVar(e){var t=new Set,n=new Set,r=function rv(r){if(arguments.length>0){if(e!==r){e=r,t.forEach((function(e){getCacheInfo(e).dep.dirty(rv),broadcast(e)}));var o=Array.from(n);n.clear(),o.forEach((function(t){return t(e)}))}}else{var a=dt.getValue();a&&(i(a),getCacheInfo(a).dep(rv))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),getCacheInfo(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function broadcast(e){e.broadcastWatches&&e.broadcastWatches()}var mt=new Map;function makeUniqueId(e){var t=mt.get(e)||1;return mt.set(e,t+1),e+":"+t+":"+Math.random().toString(36).slice(2)}function stringifyForDisplay(e){var t=makeUniqueId("stringifyForDisplay");return JSON.stringify(e,(function(e,n){return void 0===n?t:n})).split(JSON.stringify(t)).join("<undefined>")}function argsFromFieldSpecifier(e){return void 0!==e.args?e.args:e.field?argumentsObjectFromField(e.field,e.variables):null}Ee.setStringify(st);var yt=function defaultDataIdFromObject(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))},vt=function nullKeyFieldsFn(){},gt=function simpleKeyArgsFn(e,t){return t.fieldName},_t=function mergeTrueFn(e,t,n){return(0,n.mergeObjects)(e,t)},bt=function mergeFalseFn(e,t){return t},Et=function(){function Policies(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=y({dataIdFromObject:yt},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 Policies.prototype.identify=function(e,t,n){var r=t&&n?getTypenameFromResult(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 c=s(e,o);if(!Array.isArray(c)){i=c;break}s=keyFieldsFnFromSpecifier(c)}return i=i?String(i):void 0,o.keyObject?[i,o.keyObject]:[i]},Policies.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=__rest(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),Ye.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]}))},Policies.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function setMerge(e,t){e.merge="function"===typeof t?t:!0===t?_t:!1===t?bt:e.merge}setMerge(r,t.merge),r.keyFn=!1===i?vt:Array.isArray(i)?keyFieldsFnFromSpecifier(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 a=i.keyArgs,s=i.read,c=i.merge;r.keyFn=!1===a?gt:Array.isArray(a)?keyArgsFnFromSpecifier(a):"function"===typeof a?a:r.keyFn,"function"===typeof s&&(r.read=s),setMerge(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||gt)}))},Policies.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?invariant_esm_invariant(!r||r===e,"Cannot change root "+e+" __typename more than once"):invariant_esm_invariant(!r||r===e,3),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},Policies.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(Je);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},Policies.prototype.getTypePolicy=function(e){var t=this;if(!Ye.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=__rest(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]},Policies.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},Policies.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},Policies.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],c=function maybeEnqueue_1(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},u=!(!n||!this.fuzzySubtypes.size),l=!1,f=0;f<s.length;++f){var p=s[f];if(p.has(o))return a.has(o)||(l&&__DEV__&&invariant_esm_invariant.warn("Inferring subtype "+t+" of supertype "+o),a.add(o)),!0;p.forEach(c),u&&f===s.length-1&&selectionSetMatchesResult(e.selectionSet,n,r)&&(u=!1,l=!0,this.fuzzySubtypes.forEach((function(e,n){var r=t.match(e);r&&r[0]===t&&c(n)})))}return!1},Policies.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!(!n||!n.keyFn)},Policies.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=argsFromFieldSpecifier(e);o;){var c=o(s,a);if(!Array.isArray(c)){t=c||r;break}o=keyArgsFnFromSpecifier(c)}return void 0===t&&(t=e.field?function storeKeyNameFromField(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 valueToObjectRepresentation(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 valueToObjectRepresentation(r,n,i,t)}))),Ee(e.name.value,r,n)}(e.field,e.variables):Ee(r,argsFromFieldSpecifier(e))),!1===t?r:r===fieldNameFromStoreName(t)?t:r+":"+t},Policies.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=fieldNameFromStoreName(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o,!1),c=s&&s.read;if(c){var u=makeFieldFunctionOptions(this,n,e,t,t.store.getStorage(isReference(n)?n.__ref:n,i));return dt.withValue(this.cache,c,[a,u])}return a}},Policies.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},Policies.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,a=n.typename,s=n.merge;return s===_t?makeMergeObjectsFunction(r.store)(e,t):s===bt?t:(r.overwrite&&(e=void 0),s(e,t,makeFieldFunctionOptions(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},Policies}();function makeFieldFunctionOptions(e,t,n,r,i){var o=e.getStoreFieldName(n),a=fieldNameFromStoreName(o),s=n.variables||r.variables,c=r.store,u=c.toReference,l=c.canRead;return{args:argsFromFieldSpecifier(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:isReference,toReference:u,storage:i,cache:e.cache,canRead:l,readField:function readField(n,i){var o;if("string"===typeof n)o={fieldName:n,from:arguments.length>1?i:t};else{if(!isNonNullObject(n))return void(__DEV__&&invariant_esm_invariant.warn("Unexpected readField arguments: "+stringifyForDisplay(Array.from(arguments))));o=y({},n),Ye.call(n,"from")||(o.from=t)}return __DEV__&&void 0===o.from&&__DEV__&&invariant_esm_invariant.warn("Undefined 'from' passed to readField with arguments "+stringifyForDisplay(Array.from(arguments))),void 0===o.variables&&(o.variables=s),e.readField(o,r)},mergeObjects:makeMergeObjectsFunction(r.store)}}function makeMergeObjectsFunction(e){return function mergeObjects(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new me("Cannot automatically merge arrays"):new me(4);if(isNonNullObject(t)&&isNonNullObject(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(isReference(t)&&storeValueIsStoreObject(n))return e.merge(t.__ref,n),t;if(storeValueIsStoreObject(t)&&isReference(n))return e.merge(t,n.__ref),n;if(storeValueIsStoreObject(t)&&storeValueIsStoreObject(n))return y(y({},t),n)}return n}}function keyArgsFnFromSpecifier(e){return function(t,n){return t?n.fieldName+":"+JSON.stringify(computeKeyObject(t,e,!1)):n.fieldName}}function keyFieldsFnFromSpecifier(e){var t=new U(Ae);return function(n,r){var i;if(r.selectionSet&&r.fragmentMap){var o=t.lookupArray([r.selectionSet,r.fragmentMap]);i=o.aliasMap||(o.aliasMap=makeAliasMap(r.selectionSet,r.fragmentMap))}var a=r.keyObject=computeKeyObject(n,e,!0,i);return r.typename+":"+JSON.stringify(a)}}function makeAliasMap(e,t){var n=Object.create(null),r=new Set([e]);return r.forEach((function(e){e.selections.forEach((function(e){if(storeUtils_isField(e)){if(e.alias){var i=e.alias.value,o=e.name.value;if(o!==i)(n.aliases||(n.aliases=Object.create(null)))[o]=i}if(e.selectionSet)(n.subsets||(n.subsets=Object.create(null)))[e.name.value]=makeAliasMap(e.selectionSet,t)}else{var a=getFragmentFromSelection(e,t);a&&r.add(a.selectionSet)}}))})),n}function computeKeyObject(e,t,n,r){var i,o=Object.create(null);return t.forEach((function(t){if(Array.isArray(t)){if("string"===typeof i){var a=r&&r.subsets,s=a&&a[i];o[i]=computeKeyObject(e[i],t,n,s)}}else{var c=r&&r.aliases,u=c&&c[t]||t;Ye.call(e,u)?o[i=t]=e[u]:(__DEV__?invariant_esm_invariant(!n,"Missing field '"+u+"' while computing key fields"):invariant_esm_invariant(!n,5),i=void 0)}})),o}var wt={dataIdFromObject:yt,addTypename:!0,resultCaching:!0,typePolicies:{}},St=function(e){function InMemoryCache(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=makeVar,n.txCount=0,n.config=y(y({},wt),t),n.addTypename=!!n.config.addTypename,n.policies=new Et({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return __extends(InMemoryCache,e),InMemoryCache.prototype.init=function(){var e=this.data=new et.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},InMemoryCache.prototype.resetResultCache=function(e){var t=this,n=this.storeReader;this.storeWriter=new lt(this,this.storeReader=new ct({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=wrap((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function makeCacheKey(e){var n=e.optimistic?t.optimisticData:t.data;if(supportsResultCaching(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,st({optimistic:r,rootId:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},InMemoryCache.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},InMemoryCache.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},InMemoryCache.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(y(y({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(r){if(r instanceof _e)return null;throw r}},InMemoryCache.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.modify=function(e){if(Ye.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()}},InMemoryCache.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(y(y({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},InMemoryCache.prototype.watch=function(e){var t=this;return this.watches.size||function recallCache(e){getCacheInfo(e).vars.forEach((function(t){return t.attachCache(e)}))}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&function forgetCache(e){getCacheInfo(e).vars.forEach((function(t){return t.forgetCache(e)}))}(t),t.maybeBroadcastWatch.forget(e)}},InMemoryCache.prototype.gc=function(e){st.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},InMemoryCache.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},InMemoryCache.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},InMemoryCache.prototype.identify=function(e){return isReference(e)?e.__ref:this.policies.identify(e)[0]},InMemoryCache.prototype.evict=function(e){if(!e.id){if(Ye.call(e,"id"))return!1;e=y(y({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.reset=function(){return this.init(),this.broadcastWatches(),st.reset(),Promise.resolve()},InMemoryCache.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},InMemoryCache.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 perform(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}},c=new Set;a&&!this.txCount&&this.broadcastWatches(y(y({},e),{onWatchUpdated:function onWatchUpdated(e){return c.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&&c.size?(this.broadcastWatches(y(y({},e),{onWatchUpdated:function onWatchUpdated(e,t){var n=a.call(this,e,t);return!1!==n&&c.delete(e),n}})),c.size&&c.forEach((function(e){return t.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e)},InMemoryCache.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},InMemoryCache.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Te(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},InMemoryCache.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},InMemoryCache.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff({query:e.query,variables:e.variables,optimistic:e.optimistic});t&&(e.optimistic&&"string"===typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&equal(n.result,r.result)||e.callback(e.lastDiff=r,n)},InMemoryCache}(ge),Log_spreadArrays=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},kt=function(){function Log(e){var t=e.debug,n=void 0!==t&&t;this.debug=n,this.lines=[]}return Log.prototype.emit=function(e,t){if(e in console){var n=Log.prefix;console[e].apply(console,Log_spreadArrays([n],t))}},Log.prototype.tailLogs=function(){var e=this;this.lines.forEach((function(t){var n=t[0],r=t[1];return e.emit(n,r)}))},Log.prototype.getLogs=function(){return this.lines},Log.prototype.write=function(e,t){var n=Log.buffer;this.lines=Log_spreadArrays(this.lines.slice(1-n),[[e,t]]),(this.debug||"log"!==e)&&this.emit(e,t)},Log.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.write("log",e)},Log.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.write("warn",e)},Log.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.write("error",e)},Log.buffer=30,Log.prefix="[apollo-cache-persist]",Log}(),Ot=function(){function Cache(e){var t=e.cache,n=e.serialize,r=void 0===n||n;this.cache=t,this.serialize=r}return Cache.prototype.extract=function(){var e=this.cache.extract();return this.serialize&&(e=JSON.stringify(e)),e},Cache.prototype.restore=function(e){this.serialize&&"string"===typeof e&&(e=JSON.parse(e)),null!=e&&this.cache.restore(e)},Cache}(),Storage_awaiter=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function fulfilled(e){try{step(r.next(e))}catch(t){o(t)}}function rejected(e){try{step(r.throw(e))}catch(t){o(t)}}function step(e){e.done?i(e.value):function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))},Storage_generator=function(e,t){var n,r,i,o,a={label:0,sent:function sent(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:verb(0),throw:verb(1),return:verb(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function verb(o){return function(s){return function step(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(s){o=[6,s],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])}}},Tt=function(){function Storage(e){var t=e.storage,n=e.key,r=void 0===n?"apollo-cache-persist":n;this.storage=t,this.key=r}return Storage.prototype.read=function(){return Storage_awaiter(this,void 0,void 0,(function(){return Storage_generator(this,(function(e){return[2,this.storage.getItem(this.key)]}))}))},Storage.prototype.write=function(e){return Storage_awaiter(this,void 0,void 0,(function(){return Storage_generator(this,(function(t){switch(t.label){case 0:return[4,this.storage.setItem(this.key,e)];case 1:return t.sent(),[2]}}))}))},Storage.prototype.purge=function(){return Storage_awaiter(this,void 0,void 0,(function(){return Storage_generator(this,(function(e){switch(e.label){case 0:return[4,this.storage.removeItem(this.key)];case 1:return e.sent(),[2]}}))}))},Storage.prototype.getSize=function(){return Storage_awaiter(this,void 0,void 0,(function(){var e;return Storage_generator(this,(function(t){switch(t.label){case 0:return[4,this.storage.getItem(this.key)];case 1:return null==(e=t.sent())?[2,0]:[2,"string"===typeof e?e.length:null]}}))}))},Storage}(),Persistor_awaiter=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function fulfilled(e){try{step(r.next(e))}catch(t){o(t)}}function rejected(e){try{step(r.throw(e))}catch(t){o(t)}}function step(e){e.done?i(e.value):function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))},Persistor_generator=function(e,t){var n,r,i,o,a={label:0,sent:function sent(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:verb(0),throw:verb(1),return:verb(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function verb(o){return function(s){return function step(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(s){o=[6,s],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])}}},Ct=function(){function Persistor(e,t){var n=e.log,r=e.cache,i=e.storage,o=t.maxSize,a=void 0===o?1048576:o,s=t.persistenceMapper;this.log=n,this.cache=r,this.storage=i,this.paused=!1,s&&(this.persistenceMapper=s),a&&(this.maxSize=a)}return Persistor.prototype.persist=function(){return Persistor_awaiter(this,void 0,void 0,(function(){var e,t;return Persistor_generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,6,,7]),e=this.cache.extract(),this.paused||!this.persistenceMapper?[3,2]:[4,this.persistenceMapper(e)];case 1:e=n.sent(),n.label=2;case 2:return null!=this.maxSize&&"string"===typeof e&&e.length>this.maxSize&&!this.paused?[4,this.purge()]:[3,4];case 3:return n.sent(),this.paused=!0,[2];case 4:return this.paused?[2]:[4,this.storage.write(e)];case 5:return n.sent(),this.log.info("string"===typeof e?"Persisted cache of size "+e.length+" characters":"Persisted cache"),[3,7];case 6:throw t=n.sent(),this.log.error("Error persisting cache",t),t;case 7:return[2]}}))}))},Persistor.prototype.restore=function(){return Persistor_awaiter(this,void 0,void 0,(function(){var e,t;return Persistor_generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,5,,6]),[4,this.storage.read()];case 1:return null==(e=n.sent())?[3,3]:[4,this.cache.restore(e)];case 2:return n.sent(),this.log.info("string"===typeof e?"Restored cache of size "+e.length+" characters":"Restored cache"),[3,4];case 3:this.log.info("No stored cache to restore"),n.label=4;case 4:return[3,6];case 5:throw t=n.sent(),this.log.error("Error restoring cache",t),t;case 6:return[2]}}))}))},Persistor.prototype.purge=function(){return Persistor_awaiter(this,void 0,void 0,(function(){var e;return Persistor_generator(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.storage.purge()];case 1:return t.sent(),this.log.info("Purged cache storage"),[3,3];case 2:throw e=t.sent(),this.log.error("Error purging cache storage",e),e;case 3:return[2]}}))}))},Persistor}(),onCacheWrite=function(e){var t=e.cache;return function(e){var n=t.write,r=t.evict,i=t.modify;return t.write=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=n.apply(t,r);return e(),o},t.evict=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=r.apply(t,n);return e(),o},t.modify=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=i.apply(t,n);return e(),o},function(){t.write=n,t.evict=r,t.modify=i}}},At=function(){function Trigger(e,t){var n=this,r=e.log,i=e.persistor;this.fire=function(){n.debounce?(null!=n.timeout&&clearTimeout(n.timeout),n.timeout=setTimeout(n.persist,n.debounce)):n.persist()},this.persist=function(){n.paused||n.persistor.persist()};var o=Trigger.defaultDebounce,a=t.cache,s=t.debounce,c=t.trigger,u=void 0===c?"write":c;if(u)switch(this.debounce=null!=s?s:o,this.persistor=i,this.paused=!1,u){case"write":this.uninstall=onCacheWrite({cache:a})(this.fire);break;case"background":s&&r.warn("Debounce is not recommended with `background` trigger"),this.debounce=s,this.uninstall=function(e){var t=e.log,n=e.cache;return function(e){return t.warn("Trigger option `background` not available on web; using `write` trigger"),onCacheWrite({cache:n})(e)}}({cache:a,log:r})(this.fire);break;default:if("function"!==typeof u)throw Error("Unrecognized trigger option: "+u);this.uninstall=u(this.fire)}}return Trigger.prototype.pause=function(){this.paused=!0},Trigger.prototype.resume=function(){this.paused=!1},Trigger.prototype.remove=function(){this.uninstall&&(this.uninstall(),this.uninstall=null,this.paused=!0)},Trigger.defaultDebounce=1e3,Trigger}(),xt=function(){function CachePersistor(e){if(!e.cache)throw new Error("In order to persist your Apollo Cache, you need to pass in a cache. Please see https://www.apollographql.com/docs/react/basics/caching.html for our default InMemoryCache.");if(!e.storage)throw new Error("In order to persist your Apollo Cache, you need to pass in an underlying storage provider. Please see https://github.com/apollographql/apollo-cache-persist#storage-providers");var t=new kt(e),n=new Ot(e),r=new Tt(e),i=new Ct({log:t,cache:n,storage:r},e),o=new At({log:t,persistor:i},e);this.log=t,this.cache=n,this.storage=r,this.persistor=i,this.trigger=o}return CachePersistor.prototype.persist=function(){return this.persistor.persist()},CachePersistor.prototype.restore=function(){return this.persistor.restore()},CachePersistor.prototype.purge=function(){return this.persistor.purge()},CachePersistor.prototype.pause=function(){this.trigger.pause()},CachePersistor.prototype.resume=function(){this.trigger.resume()},CachePersistor.prototype.remove=function(){this.trigger.remove()},CachePersistor.prototype.getLogs=function(e){if(void 0===e&&(e=!1),!e)return this.log.getLogs();this.log.tailLogs()},CachePersistor.prototype.getSize=function(){return this.storage.getSize()},CachePersistor}(),Dt=function(){var e=function extendStatics(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),It=function(e){function SynchronousCachePersistor(t){var n=e.call(this,t)||this;return n.storage=new Lt(t),n.persistor=new Nt({log:n.log,cache:n.cache,storage:n.storage},t),n}return Dt(SynchronousCachePersistor,e),SynchronousCachePersistor.prototype.restoreSync=function(){this.persistor.restoreSync()},SynchronousCachePersistor}(xt),Nt=function(e){function SynchronousPersistor(t,n){var r=t.log,i=t.cache,o=t.storage;return e.call(this,{log:r,cache:i,storage:o},n)||this}return Dt(SynchronousPersistor,e),SynchronousPersistor.prototype.restoreSync=function(){this.cache.restore(this.storage.readSync())},SynchronousPersistor}(Ct),Lt=function(e){function SynchronousStorage(t){return e.call(this,t)||this}return Dt(SynchronousStorage,e),SynchronousStorage.prototype.readSync=function(){return this.storage.getItem(this.key)},SynchronousStorage}(Tt),Pt=(function(){function AsyncStorageWrapper(e){this.storage=e}AsyncStorageWrapper.prototype.getItem=function(e){return this.storage.getItem(e)},AsyncStorageWrapper.prototype.removeItem=function(e){return this.storage.removeItem(e)},AsyncStorageWrapper.prototype.setItem=function(e,t){return this.storage.setItem(e,t)}}(),function(){function IonicStorageWrapper(e){this.storage=e}IonicStorageWrapper.prototype.getItem=function(e){return this.storage.get(e)},IonicStorageWrapper.prototype.removeItem=function(e){return this.storage.remove(e)},IonicStorageWrapper.prototype.setItem=function(e,t){return this.storage.set(e,t)}}(),function(){function LocalForageWrapper(e){this.storage=e}LocalForageWrapper.prototype.getItem=function(e){return this.storage.getItem(e)},LocalForageWrapper.prototype.removeItem=function(e){return this.storage.removeItem(e)},LocalForageWrapper.prototype.setItem=function(e,t){var n=this;return new Promise((function(r,i){n.storage.setItem(e,t).then((function(){return r()})).catch((function(){return i()}))}))}}(),function(){function LocalStorageWrapper(e){this.storage=e}return LocalStorageWrapper.prototype.getItem=function(e){return this.storage.getItem(e)},LocalStorageWrapper.prototype.removeItem=function(e){return this.storage.removeItem(e)},LocalStorageWrapper.prototype.setItem=function(e,t){return this.storage.setItem(e,t)},LocalStorageWrapper}()),jt=(function(){function MMKVStorageWrapper(e){this.storage=e}MMKVStorageWrapper.prototype.getItem=function(e){return this.storage.getItem(e)},MMKVStorageWrapper.prototype.removeItem=function(e){var t=this;return new Promise((function(n,r){t.storage.removeItem(e).then((function(){return n()})).catch((function(){return r()}))}))},MMKVStorageWrapper.prototype.setItem=function(e,t){var n=this;return new Promise((function(r,i){n.storage.setItem(e,t).then((function(){return r()})).catch((function(){return i()}))}))}}(),function(){function SessionStorageWrapper(e){this.storage=e}SessionStorageWrapper.prototype.getItem=function(e){return this.storage.getItem(e)},SessionStorageWrapper.prototype.removeItem=function(e){return this.storage.removeItem(e)},SessionStorageWrapper.prototype.setItem=function(e,t){return this.storage.setItem(e,t)}}(),new St);function module_typeof(e){return(module_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _createForOfIteratorHelperLoose(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 module_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return module_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return module_arrayLikeToArray(e,t)}(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.")}function module_arrayLikeToArray(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 module_defineProperties(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 module_createClass(e,t,n){return t&&module_defineProperties(e.prototype,t),n&&module_defineProperties(e,n),e}!function persistCacheSync(e){new It(e).restoreSync()}({cache:jt,storage:new Pt(window.localStorage),key:"web-persist",maxSize:1048576});var Rt=function hasSymbols(){return"function"===typeof Symbol},Mt=function hasSymbol(e){return Rt()&&Boolean(Symbol[e])},Ft=function getSymbol(e){return Mt(e)?Symbol[e]:"@@"+e};Rt()&&!Mt("observable")&&(Symbol.observable=Symbol("observable"));var Vt=Ft("iterator"),qt=Ft("observable"),Qt=Ft("species");function getMethod(e,t){var n=e[t];if(null!=n){if("function"!==typeof n)throw new TypeError(n+" is not a function");return n}}function getSpecies(e){var t=e.constructor;return void 0!==t&&null===(t=t[Qt])&&(t=void 0),void 0!==t?t:zt}function isObservable(e){return e instanceof zt}function hostReportError(e){hostReportError.log?hostReportError.log(e):setTimeout((function(){throw e}))}function enqueue(e){Promise.resolve().then((function(){try{e()}catch(t){hostReportError(t)}}))}function cleanupSubscription(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"===typeof t)t();else{var n=getMethod(t,"unsubscribe");n&&n.call(t)}}catch(r){hostReportError(r)}}function closeSubscription(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function notifySubscription(e,t,n){e._state="running";var r=e._observer;try{var i=getMethod(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(closeSubscription(e),!i)throw n;i.call(r,n);break;case"complete":closeSubscription(e),i&&i.call(r)}}catch(o){hostReportError(o)}"closed"===e._state?cleanupSubscription(e):"running"===e._state&&(e._state="ready")}function onNotify(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 enqueue((function(){return function flushSubscription(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(notifySubscription(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void notifySubscription(e,t,n);e._queue.push({type:t,value:n})}}var Bt=function(){function Subscription(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new Ut(this);try{this._cleanup=t.call(void 0,n)}catch(r){n.error(r)}"initializing"===this._state&&(this._state="ready")}return Subscription.prototype.unsubscribe=function unsubscribe(){"closed"!==this._state&&(closeSubscription(this),cleanupSubscription(this))},module_createClass(Subscription,[{key:"closed",get:function get(){return"closed"===this._state}}]),Subscription}(),Ut=function(){function SubscriptionObserver(e){this._subscription=e}var e=SubscriptionObserver.prototype;return e.next=function next(e){onNotify(this._subscription,"next",e)},e.error=function error(e){onNotify(this._subscription,"error",e)},e.complete=function complete(){onNotify(this._subscription,"complete")},module_createClass(SubscriptionObserver,[{key:"closed",get:function get(){return"closed"===this._subscription._state}}]),SubscriptionObserver}(),zt=function(){function Observable(e){if(!(this instanceof Observable))throw new TypeError("Observable cannot be called as a function");if("function"!==typeof e)throw new TypeError("Observable initializer must be a function");this._subscriber=e}var e=Observable.prototype;return e.subscribe=function subscribe(e){return"object"===module_typeof(e)&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new Bt(e,this._subscriber)},e.forEach=function forEach(e){var t=this;return new Promise((function(n,r){if("function"===typeof e)var i=t.subscribe({next:function next(t){try{e(t,done)}catch(n){r(n),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function done(){i.unsubscribe(),n()}}))},e.map=function map(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");return new(getSpecies(this))((function(n){return t.subscribe({next:function next(t){try{t=e(t)}catch(r){return n.error(r)}n.next(t)},error:function error(e){n.error(e)},complete:function complete(){n.complete()}})}))},e.filter=function filter(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");return new(getSpecies(this))((function(n){return t.subscribe({next:function next(t){try{if(!e(t))return}catch(r){return n.error(r)}n.next(t)},error:function error(e){n.error(e)},complete:function complete(){n.complete()}})}))},e.reduce=function reduce(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");var n=getSpecies(this),r=arguments.length>1,i=!1,o=arguments[1],a=o;return new n((function(n){return t.subscribe({next:function next(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(s){return n.error(s)}else a=t},error:function error(e){n.error(e)},complete:function complete(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))},e.concat=function concat(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=getSpecies(this);return new i((function(t){var r,o=0;return function startNext(e){r=e.subscribe({next:function next(e){t.next(e)},error:function error(e){t.error(e)},complete:function complete(){o===n.length?(r=void 0,t.complete()):startNext(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))},e.flatMap=function flatMap(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");var n=getSpecies(this);return new n((function(r){var i=[],o=t.subscribe({next:function next(t){if(e)try{t=e(t)}catch(a){return r.error(a)}var o=n.from(t).subscribe({next:function next(e){r.next(e)},error:function error(e){r.error(e)},complete:function complete(){var e=i.indexOf(o);e>=0&&i.splice(e,1),completeIfDone()}});i.push(o)},error:function error(e){r.error(e)},complete:function complete(){completeIfDone()}});function completeIfDone(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},e[qt]=function(){return this},Observable.from=function from(e){var t="function"===typeof this?this:Observable;if(null==e)throw new TypeError(e+" is not an object");var n=getMethod(e,qt);if(n){var r=n.call(e);if(Object(r)!==r)throw new TypeError(r+" is not an object");return isObservable(r)&&r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}if(Mt("iterator")&&(n=getMethod(e,Vt)))return new t((function(t){enqueue((function(){if(!t.closed){for(var r,i=_createForOfIteratorHelperLoose(n.call(e));!(r=i()).done;){var o=r.value;if(t.next(o),t.closed)return}t.complete()}}))}));if(Array.isArray(e))return new t((function(t){enqueue((function(){if(!t.closed){for(var n=0;n<e.length;++n)if(t.next(e[n]),t.closed)return;t.complete()}}))}));throw new TypeError(e+" is not observable")},Observable.of=function of(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r="function"===typeof this?this:Observable;return new r((function(e){enqueue((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}))},module_createClass(Observable,null,[{key:Qt,get:function get(){return this}}]),Observable}();function passthrough(e,t){return t?t(e):zt.of()}function toLink(e){return"function"===typeof e?new Ht(e):e}function isTerminating(e){return e.request.length<=1}Rt()&&Object.defineProperty(zt,Symbol("extensions"),{value:{symbol:qt,hostReportError:hostReportError},configurable:!0});var Wt=function(e){function LinkError(t,n){var r=e.call(this,t)||this;return r.link=n,r}return __extends(LinkError,e),LinkError}(Error),Ht=function(){function ApolloLink(e){e&&(this.request=e)}return ApolloLink.empty=function(){return new ApolloLink((function(){return zt.of()}))},ApolloLink.from=function(e){return 0===e.length?ApolloLink.empty():e.map(toLink).reduce((function(e,t){return e.concat(t)}))},ApolloLink.split=function(e,t,n){var r=toLink(t),i=toLink(n||new ApolloLink(passthrough));return isTerminating(r)&&isTerminating(i)?new ApolloLink((function(t){return e(t)?r.request(t)||zt.of():i.request(t)||zt.of()})):new ApolloLink((function(t,n){return e(t)?r.request(t,n)||zt.of():i.request(t,n)||zt.of()}))},ApolloLink.execute=function(e,t){return e.request(function createOperation(e,t){var n=y({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function setContext(e){n=y(y({},n),"function"===typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function getContext(){return y({},n)}}),t}(t.context,function transformOperation(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!==typeof t.query?getOperationName(t.query)||void 0:""),t}(function validateOperation(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 me("illegal argument: "+i):new me(29)}return e}(t))))||zt.of()},ApolloLink.concat=function(e,t){var n=toLink(e);if(isTerminating(n))return __DEV__&&invariant_esm_invariant.warn(new Wt("You are calling concat on a terminating link, which will have no effect",n)),n;var r=toLink(t);return isTerminating(r)?new ApolloLink((function(e){return n.request(e,(function(e){return r.request(e)||zt.of()}))||zt.of()})):new ApolloLink((function(e,t){return n.request(e,(function(e){return r.request(e,t)||zt.of()}))||zt.of()}))},ApolloLink.prototype.split=function(e,t,n){return this.concat(ApolloLink.split(e,t,n||new ApolloLink(passthrough)))},ApolloLink.prototype.concat=function(e){return ApolloLink.concat(this,e)},ApolloLink.prototype.request=function(e,t){throw __DEV__?new me("request is not implemented"):new me(23)},ApolloLink.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},ApolloLink.prototype.setOnError=function(e){return this.onError=e,this},ApolloLink}(),Kt=Ht.from,Gt=function serializeFetchParameter(e,t){var n;try{n=JSON.stringify(e)}catch(i){var r=__DEV__?new me("Network request failed. "+t+" is not serializable: "+i.message):new me(26);throw r.parseError=i,r}return n},Yt=function throwServerError(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},Jt=Object.prototype.hasOwnProperty;var Xt={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}};function headersToLowerCase(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 fromError(e){return new zt((function(t){t.error(e)}))}var $t=function createHttpLink(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,c=__rest(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);!function checkFetcher(e){if(!e&&"undefined"===typeof fetch)throw __DEV__?new me("\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 me(25)}(r),r||(r=fetch);var u={http:{includeExtensions:i},options:c.fetchOptions,credentials:c.credentials,headers:c.headers};return new Ht((function(e){var t=function selectURI(e,t){return e.getContext().uri||("function"===typeof t?t(e):t||"/graphql")}(e,n),i=e.getContext(),a={};if(i.clientAwareness){var c=i.clientAwareness,l=c.name,f=c.version;l&&(a["apollographql-client-name"]=l),f&&(a["apollographql-client-version"]=f)}var p,d=y(y({},a),i.headers),h={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:d},m=function selectHttpOptionsAndBody(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=y(y({},t.options),{headers:t.headers,credentials:t.credentials}),o=t.http||{};n.forEach((function(e){i=y(y(y({},i),e.options),{headers:y(y({},i.headers),headersToLowerCase(e.headers))}),e.credentials&&(i.credentials=e.credentials),o=y(y({},o),e.http)}));var a=e.operationName,s=e.extensions,c=e.variables,u=e.query,l={operationName:a,variables:c};return o.includeExtensions&&(l.extensions=s),o.includeQuery&&(l.query=print(u)),{options:i,body:l}}(e,Xt,u,h),v=m.options,g=m.body;if(g.variables&&!s){var _=new Set(Object.keys(g.variables));visit(e.query,{Variable:function Variable(e,t,n){n&&"VariableDefinition"!==n.kind&&_.delete(e.name.value)}}),_.size&&(g.variables=y({},g.variables),_.forEach((function(e){delete g.variables[e]})))}if(!v.signal){var b=function createSignalIfSupported(){if("undefined"===typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),E=b.controller,w=b.signal;(p=E)&&(v.signal=w)}if(o&&!e.query.definitions.some((function definitionIsMutation(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(v.method="GET"),"GET"===v.method){var S=function rewriteURIForGET(e,t){var n=[],r=function addQueryParam(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=Gt(t.variables,"Variables map")}catch(O){return{parseError:O}}r("variables",i)}if(t.extensions){var o=void 0;try{o=Gt(t.extensions,"Extensions map")}catch(O){return{parseError:O}}r("extensions",o)}var a="",s=e,c=e.indexOf("#");-1!==c&&(a=e.substr(c),s=e.substr(0,c));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+n.join("&")+a}}(t,g),k=S.newURI,O=S.parseError;if(O)return fromError(O);t=k}else try{v.body=Gt(g,"Payload")}catch(O){return fromError(O)}return new zt((function(n){return r(t,v).then((function(t){return e.setContext({response:t}),t})).then(function parseAndCheckHttpResponse(e){return function(t){return t.text().then((function(e){try{return JSON.parse(e)}catch(r){var n=r;throw n.name="ServerParseError",n.response=t,n.statusCode=t.status,n.bodyText=e,n}})).then((function(n){return t.status>=300&&Yt(t,n,"Response not successful: Received status code "+t.status),Array.isArray(n)||Jt.call(n,"data")||Jt.call(n,"errors")||Yt(t,n,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),n}))}}(e)).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){p&&p.abort()}}))}))},Zt=function(e){function HttpLink(t){void 0===t&&(t={});var n=e.call(this,$t(t).request)||this;return n.options=t,n}return __extends(HttpLink,e),HttpLink}(Ht),en=Ht.execute;function compact(){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}function asyncMap(e,t,n){return new zt((function(r){var i=r.next,o=r.error,a=r.complete,s=0,c=!1,u={then:function then(e){return new Promise((function(t){return t(e())}))}};function makeCallback(e,t){return e?function(t){++s;var n=function both(){return e(t)};u=u.then(n,n).then((function(e){--s,i&&i.call(r,e),c&&l.complete()}),(function(e){throw--s,e})).catch((function(e){o&&o.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var l={next:makeCallback(t,i),error:makeCallback(n,o),complete:function complete(){c=!0,s||a&&a.call(r)}},f=e.subscribe(l);return function(){return f.unsubscribe()}}))}function graphQLResultHasError(e){return e.errors&&e.errors.length>0||!1}function iterateObserversSafely(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function fixObservableSubclass(e){function set(t){Object.defineProperty(e,t,{value:zt})}return"function"===typeof Symbol&&Symbol.species&&set(Symbol.species),set("@@species"),e}function Concast_isPromiseLike(e){return e&&"function"===typeof e.then}var tn=function(e){function Concast(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 next(e){null!==n.sub&&(n.latest=["next",e],iterateObserversSafely(n.observers,"next",e))},error:function error(e){var t=n.sub;null!==t&&(t&&Promise.resolve().then((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),iterateObserversSafely(n.observers,"error",e))},complete:function complete(){if(null!==n.sub){var e=n.sources.shift();e?Concast_isPromiseLike(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(),iterateObserversSafely(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 zt(t)]),Concast_isPromiseLike(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return __extends(Concast,e),Concast.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},Concast.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()}},Concast.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},Concast.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},Concast.prototype.cleanup=function(e){var t=this,n=!1,r=function once(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},o=this.addCount;this.addObserver(i),this.addCount=o},Concast}(zt);function isNonEmptyArray(e){return Array.isArray(e)&&e.length>0}fixObservableSubclass(tn),__DEV__?invariant_esm_invariant("boolean"===typeof Re,Re):invariant_esm_invariant("boolean"===typeof Re,22);var nn,rn=function(e){function ApolloError(t){var n=t.graphQLErrors,r=t.clientErrors,i=t.networkError,o=t.errorMessage,a=t.extraInfo,s=e.call(this,o)||this;return s.graphQLErrors=n||[],s.clientErrors=r||[],s.networkError=i||null,s.message=o||function generateErrorMessage(e){var t="";return(isNonEmptyArray(e.graphQLErrors)||isNonEmptyArray(e.clientErrors))&&(e.graphQLErrors||[]).concat(e.clientErrors||[]).forEach((function(e){var n=e?e.message:"Error message not found.";t+=n+"\n"})),e.networkError&&(t+=e.networkError.message+"\n"),t=t.replace(/\n$/,"")}(s),s.extraInfo=a,s.__proto__=ApolloError.prototype,s}return __extends(ApolloError,e),ApolloError}(Error);function isNetworkRequestInFlight(e){return!!e&&e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(nn||(nn={}));var an=!1,sn=function(e){function ObservableQuery(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,(function(e){try{var n=e._subscription._observer;n&&!n.error&&(n.error=defaultSubscriptionObserverErrorCallback)}catch(t){}var r=!o.observers.size;return o.observers.add(e),o.lastError?e.error&&e.error(o.lastError):o.lastResult&&e.next&&e.next(o.lastResult),r&&o.reobserve().catch((function(){})),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}}))||this;o.observers=new Set,o.subscriptions=new Set,o.observer={next:function next(e){(o.lastError||o.isDifferentFromLastResult(e))&&(o.updateLastResult(e),iterateObserversSafely(o.observers,"next",e))},error:function error(e){o.updateLastResult(y(y({},o.lastResult),{error:e,errors:e.graphQLErrors,networkStatus:nn.error,loading:!1})),iterateObserversSafely(o.observers,"error",o.lastError=e)}},o.isTornDown=!1,o.options=i,o.queryId=r.queryId||n.generateQueryId();var a=getOperationDefinition(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 __extends(ObservableQuery,e),Object.defineProperty(ObservableQuery.prototype,"variables",{get:function get(){return this.options.variables},enumerable:!1,configurable:!0}),ObservableQuery.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function next(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)}))},ObservableQuery.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.lastResult,n=this.options.fetchPolicy,r=void 0===n?"cache-first":n,i=this.queryInfo.networkStatus||t&&t.networkStatus||nn.ready,o=y(y({},t),{loading:isNetworkRequestInFlight(i),networkStatus:i});if(!this.queryManager.transform(this.options.query).hasForcedResolvers){var a=this.queryInfo.getDiff();o.data=a.complete||this.options.returnPartialData?a.result:void 0,a.complete?(o.networkStatus!==nn.loading||"cache-first"!==r&&"cache-only"!==r||(o.networkStatus=nn.ready,o.loading=!1),delete o.partial):"no-cache"!==r&&(o.partial=!0),a.complete||this.options.partialRefetch||o.loading||o.data||o.error||(o.error=new rn({clientErrors:a.missing}))}return e&&this.updateLastResult(o),o},ObservableQuery.prototype.isDifferentFromLastResult=function(e){return!equal(this.lastResultSnapshot,e)},ObservableQuery.prototype.getLastResult=function(){return this.lastResult},ObservableQuery.prototype.getLastError=function(){return this.lastError},ObservableQuery.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},ObservableQuery.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},ObservableQuery.prototype.refetch=function(e){var t={pollInterval:0},n=this.options.fetchPolicy;return"no-cache"===n?t.fetchPolicy="no-cache":"cache-and-network"!==n&&(t.fetchPolicy="network-only"),e&&!equal(this.options.variables,e)&&(t.variables=this.options.variables=y(y({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(t,nn.refetch)},ObservableQuery.prototype.fetchMore=function(e){var t=this,n=y(y({},e.query?e:y(y(y({},this.options),e),{variables:y(y({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=nn.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,nn.fetchMore).then((function(r){var i=r.data,o=e.updateQuery;return o?(__DEV__&&!an&&(__DEV__&&invariant_esm_invariant.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."),an=!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()}))},ObservableQuery.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function next(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function error(t){e.onError?e.onError(t):__DEV__&&invariant_esm_invariant.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},ObservableQuery.prototype.setOptions=function(e){return this.reobserve(e)},ObservableQuery.prototype.setVariables=function(e){return equal(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},nn.setVariables):Promise.resolve())},ObservableQuery.prototype.updateQuery=function(e){var t,n=this.queryManager,r=e(n.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(t=this.lastResult)||void 0===t?void 0:t.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(n.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),n.broadcastQueries())},ObservableQuery.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},ObservableQuery.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},ObservableQuery.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},ObservableQuery.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__?invariant_esm_invariant(n,"Attempted to start a polling query without a polling interval."):invariant_esm_invariant(n,13),(t||(this.pollingInfo={})).interval=n;var r=function maybeFetch(){e.pollingInfo&&(isNetworkRequestInFlight(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},nn.poll).then(i,i))},i=function poll(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},ObservableQuery.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:cloneDeep(e),isNonEmptyArray(e.errors)||delete this.lastError,t},ObservableQuery.prototype.reobserve=function(e,t){this.isTornDown=!1;var n=t===nn.refetch||t===nn.fetchMore||t===nn.poll,r=this.options.variables,i=n?compact(this.options,e):Object.assign(this.options,compact(e));n||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!equal(e.variables,r)&&(i.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=nn.setVariables)));var o=this.fetch(i,t);return n||(this.concast&&this.concast.removeObserver(this.observer,!0),this.concast=o),o.addObserver(this.observer),o.promise},ObservableQuery.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},ObservableQuery.prototype.hasObservers=function(){return this.observers.size>0},ObservableQuery.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&(this.concast.removeObserver(this.observer),delete this.concast),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},ObservableQuery}(zt);function defaultSubscriptionObserverErrorCallback(e){__DEV__&&invariant_esm_invariant.error("Unhandled error",e.message,e.stack)}fixObservableSubclass(sn);var cn=function(){function LocalState(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 LocalState.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=mergeDeep(t.resolvers,e)})):this.resolvers=mergeDeep(this.resolvers,e)},LocalState.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},LocalState.prototype.getResolvers=function(){return this.resolvers||{}},LocalState.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 __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then((function(e){return y(y({},n),{data:e.result})}))]:[2,n]}))}))},LocalState.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},LocalState.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},LocalState.prototype.clientQuery=function(e){return hasDirectives(["client"],e)&&this.resolvers?e:null},LocalState.prototype.serverQuery=function(e){return function removeClientSetsFromDocument(e){checkDocument(e);var t=removeDirectivesFromDocument([{test:function test(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=visit(t,{FragmentDefinition:{enter:function enter(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return storeUtils_isField(e)&&"__typename"===e.name.value})))return null}}})),t}(e)},LocalState.prototype.prepareContext=function(e){var t=this.cache;return y(y({},e),{cache:t,getCacheKey:function getCacheKey(e){return t.identify(e)}})},LocalState.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),__awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return y(y({},t),e.exportedVariables)}))]:[2,y({},t)]}))}))},LocalState.prototype.shouldForceResolvers=function(e){var t=!1;return visit(e,{Directive:{enter:function enter(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 ke}}}),t},LocalState.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:buildQueryFromSelectionSet(e),variables:t,returnPartialData:!0,optimistic:!1}).result},LocalState.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function fragmentMatcher(){return!0}),void 0===o&&(o=!1),__awaiter(this,void 0,void 0,(function(){var a,s,c,u,l,f,p,d,h;return __generator(this,(function(m){return a=getMainDefinition(e),s=getFragmentDefinitions(e),c=createFragmentMap(s),u=a.operation,l=u?u.charAt(0).toUpperCase()+u.slice(1):"Query",p=(f=this).cache,d=f.client,h={fragmentMap:c,context:y(y({},n),{cache:p,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}}))]}))}))},LocalState.prototype.resolveSelectionSet=function(e,t,n){return __awaiter(this,void 0,void 0,(function(){var r,i,o,a,s,c=this;return __generator(this,(function(u){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function execute(e){return __awaiter(c,void 0,void 0,(function(){var s,c;return __generator(this,(function(u){return shouldInclude(e,o)?storeUtils_isField(e)?[2,this.resolveField(e,t,n).then((function(t){var n;"undefined"!==typeof t&&a.push(((n={})[resultKeyNameFromField(e)]=t,n))}))]:(isInlineFragment(e)?s=e:(s=r[e.name.value],__DEV__?invariant_esm_invariant(s,"No fragment named "+e.name.value):invariant_esm_invariant(s,12)),s&&s.typeCondition&&(c=s.typeCondition.name.value,n.fragmentMatcher(t,c,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 mergeDeepArray(a)}))]}))}))},LocalState.prototype.resolveField=function(e,t,n){return __awaiter(this,void 0,void 0,(function(){var r,i,o,a,s,c,u,l,f,p=this;return __generator(this,(function(d){return r=n.variables,i=e.name.value,o=resultKeyNameFromField(e),a=i!==o,s=t[o]||t[i],c=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(u=t.__typename||n.defaultOperationType,(l=this.resolvers&&this.resolvers[u])&&(f=l[a?i:o])&&(c=Promise.resolve(dt.withValue(this.cache,f,[t,argumentsObjectFromField(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,c.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)?p.resolveSubSelectedArray(e,t,n):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},LocalState.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})))},LocalState}(),un=new(Ae?WeakMap:Map);function wrapDestructiveCacheMethod(e,t){var n=e[t];"function"===typeof n&&(e[t]=function(){return un.set(e,(un.get(e)+1)%1e15),n.apply(this,arguments)})}function cancelNotifyTimeout(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var ln=function(){function QueryInfo(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;un.has(n)||(un.set(n,0),wrapDestructiveCacheMethod(n,"evict"),wrapDestructiveCacheMethod(n,"modify"),wrapDestructiveCacheMethod(n,"reset"))}return QueryInfo.prototype.init=function(e){var t=e.networkStatus||nn.loading;return this.variables&&this.networkStatus!==nn.loading&&!equal(this.variables,e.variables)&&(t=nn.setVariables),equal(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},QueryInfo.prototype.reset=function(){cancelNotifyTimeout(this),this.lastDiff=void 0,this.dirty=!1},QueryInfo.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&equal(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},QueryInfo.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},QueryInfo.prototype.getDiffOptions=function(e){void 0===e&&(e=this.variables);var t=this.observableQuery;return{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:!t||!1!==t.options.canonizeResults}},QueryInfo.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||equal(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},QueryInfo.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)},QueryInfo.prototype.notify=function(){var e=this;cancelNotifyTimeout(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},QueryInfo.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(isNetworkRequestInFlight(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},QueryInfo.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=QueryInfo.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var e=this.observableQuery;e&&e.stopPolling()}},QueryInfo.prototype.cancel=function(){},QueryInfo.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=y(y({},this.getDiffOptions(e)),{watcher:this,callback:function callback(e){return t.setDiff(e)}});this.lastWatch&&equal(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},QueryInfo.prototype.resetLastWrite=function(){this.lastWrite=void 0},QueryInfo.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===un.get(this.cache)&&equal(t,n.variables)&&equal(e.data,n.result.data))},QueryInfo.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=isNonEmptyArray(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(shouldWriteResult(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:un.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)},QueryInfo.prototype.markReady=function(){return this.networkError=null,this.networkStatus=nn.ready},QueryInfo.prototype.markError=function(e){return this.networkStatus=nn.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},QueryInfo}();function shouldWriteResult(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!graphQLResultHasError(e);return!r&&n&&e.data&&(r=!0),r}var pn=Object.prototype.hasOwnProperty,dn=function(){function QueryManager(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,c=e.clientAwareness,u=void 0===c?{}:c,l=e.localState,f=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Ae?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=u,this.localState=l||new cn({cache:t}),this.ssrMode=s,this.assumeImmutableResults=!!f,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return QueryManager.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(__DEV__?new me("QueryManager stopped while query was in flight"):new me(14))},QueryManager.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},QueryManager.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,c=void 0!==s&&s,u=e.update,l=e.onQueryUpdated,f=e.errorPolicy,p=void 0===f?"none":f,d=e.fetchPolicy,h=e.keepRootFields,m=e.context;return __awaiter(this,void 0,void 0,(function(){var e,o,s;return __generator(this,(function(f){switch(f.label){case 0:return __DEV__?invariant_esm_invariant(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):invariant_esm_invariant(t,15),__DEV__?invariant_esm_invariant(!d||"no-cache"===d,"Mutations only support a 'no-cache' fetchPolicy. If you don't want to disable the cache, remove your fetchPolicy setting to proceed with the default mutation behavior."):invariant_esm_invariant(!d||"no-cache"===d,16),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,m)]:[3,2];case 1:n=f.sent(),f.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:d,errorPolicy:p,context:m,updateQueries:i,update:u,keepRootFields:h}),this.broadcastQueries(),s=this,[2,new Promise((function(f,v){return asyncMap(s.getObservableFromLink(t,y(y({},m),{optimisticResponse:r}),n,!1),(function(f){if(graphQLResultHasError(f)&&"none"===p)throw new rn({graphQLErrors:f.errors});o&&(o.loading=!1,o.error=null);var v=y({},f);return"function"===typeof a&&(a=a(v)),"ignore"===p&&graphQLResultHasError(v)&&delete v.errors,s.markMutationResult({mutationId:e,result:v,document:t,variables:n,fetchPolicy:d,errorPolicy:p,context:m,update:u,updateQueries:i,awaitRefetchQueries:c,refetchQueries:a,removeOptimistic:r?e:void 0,onQueryUpdated:l,keepRootFields:h})})).subscribe({next:function next(e){s.broadcastQueries(),f(e)},error:function error(t){o&&(o.loading=!1,o.error=t),r&&s.cache.removeOptimistic(e),s.broadcastQueries(),v(t instanceof rn?t:new rn({networkError:t}))}})}))]}}))}))},QueryManager.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&&shouldWriteResult(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,c=s&&s.queryName;if(c&&pn.call(a,c)){var u=a[c],l=n.queries.get(o),f=l.document,p=l.variables,d=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),h=d.result;if(d.complete&&h){var m=u(h,{mutationResult:r,queryName:f&&getOperationName(f)||void 0,queryVariables:p});m&&i.push({result:m,dataId:"ROOT_QUERY",query:f,variables:p})}}}))}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var s=[];if(this.refetchQueries({updateCache:function updateCache(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=y(y({},r),{data:s.result}))}a(t,r,{context:e.context,variables:e.variables})}o||e.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function fields(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)},QueryManager.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(y(y({},t),{result:{data:r}}),e)}catch(i){__DEV__&&invariant_esm_invariant.error(i)}}),t.mutationId)},QueryManager.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},QueryManager.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},QueryManager.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},QueryManager.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.cache.transformDocument(e),r=function removeConnectionDirectiveFromDocument(e){return removeDirectivesFromDocument([Ce],checkDocument(e))}(this.cache.transformForLink(n)),i=this.localState.clientQuery(n),o=r&&this.localState.serverQuery(r),a={document:n,hasClientExports:hasClientExports(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:i,serverQuery:o,defaultVars:getDefaultValues(getOperationDefinition(n)),asQuery:y(y({},n),{definitions:n.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?y(y({},e),{operation:"query"}):e}))})},s=function add(e){e&&!t.has(e)&&t.set(e,a)};s(e),s(n),s(i),s(o)}return t.get(e)},QueryManager.prototype.getVariables=function(e,t){return y(y({},this.transform(e).defaultVars),t)},QueryManager.prototype.watchQuery=function(e){"undefined"===typeof(e=y(y({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new ln(this),n=new sn({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},QueryManager.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?invariant_esm_invariant(e.query,"query option is required. You must specify your GraphQL document in the query option."):invariant_esm_invariant(e.query,17),__DEV__?invariant_esm_invariant("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):invariant_esm_invariant("Document"===e.query.kind,18),__DEV__?invariant_esm_invariant(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):invariant_esm_invariant(!e.returnPartialData,19),__DEV__?invariant_esm_invariant(!e.pollInterval,"pollInterval option only supported on watchQuery."):invariant_esm_invariant(!e.pollInterval,20),this.fetchQuery(t,e).finally((function(){return n.stopQuery(t)}))},QueryManager.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},QueryManager.prototype.generateRequestId=function(){return this.requestIdCounter++},QueryManager.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},QueryManager.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},QueryManager.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},QueryManager.prototype.clearStore=function(){return this.cancelPendingFetches(__DEV__?new me("Store reset while query was in flight (not completed in link chain)"):new me(21)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=nn.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},QueryManager.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},QueryManager.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){"string"===typeof e?r.set(e,!1):!function isDocumentNode(e){return isNonNullObject(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}(e)?isNonNullObject(e)&&e.query&&i.add(e):r.set(t.transform(e).document,!1)})),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||!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=makeUniqueId("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new sn({queryManager:t,queryInfo:i,options:y(y({},e),{fetchPolicy:"network-only"})});invariant_esm_invariant(o.queryId===r),i.setObservableQuery(o),n.set(r,o)})),__DEV__&&r.size&&r.forEach((function(e,t){e||__DEV__&&invariant_esm_invariant.warn("Unknown query "+("string"===typeof t?"named ":"")+JSON.stringify(t,null,2)+" requested in refetchQueries options.include array")})),n},QueryManager.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)},QueryManager.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},QueryManager.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 c=function makeObservable(e){return t.getObservableFromLink(n,s,e).map((function(o){if("no-cache"!==r&&(shouldWriteResult(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),graphQLResultHasError(o))throw new rn({graphQLErrors:o.errors});return o}))};if(this.transform(n).hasClientExports){var u=this.localState.addExportedVariables(n,o,s).then(c);return new zt((function(e){var t=null;return u.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return c(o)},QueryManager.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},QueryManager.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},QueryManager.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).stop(),this.queries.delete(e)},QueryManager.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},QueryManager.prototype.getLocalState=function(){return this.localState},QueryManager.prototype.getObservableFromLink=function(e,t,n,r){var i,o,a=this;void 0===r&&(r=null!==(i=null===t||void 0===t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var c=this.inFlightLinkObservables,u=this.link,l={query:s,variables:n,operationName:getOperationName(s)||void 0,context:this.prepareContext(y(y({},t),{forceFetch:!r}))};if(t=l.context,r){var f=c.get(s)||new Map;c.set(s,f);var p=st(n);if(!(o=f.get(p))){var d=new tn([en(u,l)]);f.set(p,o=d),d.cleanup((function(){f.delete(p)&&f.size<1&&c.delete(s)}))}}else o=new tn([en(u,l)])}else o=new tn([zt.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=asyncMap(o,(function(e){return a.localState.runResolvers({document:h,remoteResult:e,context:t,variables:n})}))),o},QueryManager.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return asyncMap(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var o=isNonEmptyArray(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new rn({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:e.networkStatus||nn.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors),a}),(function(t){var n=function isApolloError(e){return e.hasOwnProperty("graphQLErrors")}(t)?t:new rn({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},QueryManager.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=nn.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),a=this.getQuery(e),s=t.fetchPolicy,c=void 0===s?"cache-first":s,u=t.errorPolicy,l=void 0===u?"none":u,f=t.returnPartialData,p=void 0!==f&&f,d=t.notifyOnNetworkStatusChange,h=void 0!==d&&d,m=t.context,y=void 0===m?{}:m,v=Object.assign({},t,{query:i,variables:o,fetchPolicy:c,errorPolicy:l,returnPartialData:p,notifyOnNetworkStatusChange:h,context:y}),g=function fromVariables(e){return v.variables=e,r.fetchQueryByPolicy(a,v,n)};this.fetchCancelFns.set(e,(function(e){Promise.resolve().then((function(){return _.cancel(e)}))}));var _=new tn(this.transform(v.query).hasClientExports?this.localState.addExportedVariables(v.query,v.variables,v.context).then(g):g(v.variables));return _.cleanup((function(){r.fetchCancelFns.delete(e),function applyNextFetchPolicy(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)})),_},QueryManager.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?makeUniqueId("refetchQueries"):void 0:a,c=e.onQueryUpdated,u=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){u.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 onWatchUpdated(e,t,n){var r=e.watcher instanceof ln&&e.watcher.observableQuery;if(r){if(c){u.delete(r.queryId);var i=c(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&l.set(r,i),!1}null!==c&&u.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),u.size&&u.forEach((function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(c){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=c(i,a,o)}c&&!0!==r||(r=i.refetch()),!1!==r&&l.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),l},QueryManager.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,c=t.errorPolicy,u=t.returnPartialData,l=t.context,f=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:i,variables:o,networkStatus:n});var d=function readCache(){return e.getDiff(o)},h=function resultsFromCache(t,n){void 0===n&&(n=e.networkStatus||nn.loading);var a=t.result;__DEV__&&isNonEmptyArray(t.missing)&&!equal(a,{})&&!u&&__DEV__&&invariant_esm_invariant.debug("Missing cache result fields: "+t.missing.map((function(e){return e.path.join(".")})).join(", "),t.missing);var s=function fromData(e){return zt.of(y({data:e,loading:isNetworkRequestInFlight(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===nn.refetch&&"merge"!==s?1:2,v=function resultsFromLink(){return r.getResultsFromLink(e,m,{variables:o,context:l,fetchPolicy:a,errorPolicy:c})},g=f&&"number"===typeof p&&p!==n&&isNetworkRequestInFlight(n);switch(a){default:case"cache-first":return(_=d()).complete?[h(_,e.markReady())]:u||g?[h(_),v()]:[v()];case"cache-and-network":var _;return(_=d()).complete||u||g?[h(_),v()]:[v()];case"cache-only":return[h(d(),e.markReady())];case"network-only":return g?[h(d()),v()]:[v()];case"no-cache":return g?[h(e.getDiff()),v()]:[v()];case"standby":return[]}},QueryManager.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new ln(this,e)),this.queries.get(e)},QueryManager.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return y(y({},t),{clientAwareness:this.clientAwareness})},QueryManager}();function ApolloClient_typeof(e){return(ApolloClient_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var hn=!1;function mergeOptions(e,t){return compact(e,t,t.variables&&{variables:y(y({},e.variables),t.variables)})}var mn=function(){function ApolloClient(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,c=e.ssrForceFetchDelay,u=void 0===c?0:c,l=e.connectToDevTools,f=void 0===l?"object"===("undefined"===typeof window?"undefined":ApolloClient_typeof(window))&&!window.__APOLLO_CLIENT__&&__DEV__:l,p=e.queryDeduplication,d=void 0===p||p,h=e.defaultOptions,m=e.assumeImmutableResults,y=void 0!==m&&m,v=e.resolvers,g=e.typeDefs,_=e.fragmentMatcher,b=e.name,E=e.version,w=e.link;if(w||(w=n?new Zt({uri:n,credentials:r,headers:i}):Ht.empty()),!o)throw __DEV__?new me("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 me(10);if(this.link=w,this.cache=o,this.disableNetworkFetches=s||u>0,this.queryDeduplication=d,this.defaultOptions=h||{},this.typeDefs=g,u&&setTimeout((function(){return t.disableNetworkFetches=!1}),u),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),f&&"object"===("undefined"===typeof window?"undefined":ApolloClient_typeof(window))&&(window.__APOLLO_CLIENT__=this),!hn&&__DEV__&&(hn=!0,"undefined"!==typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var S=window.navigator,k=S&&S.userAgent,O=void 0;"string"===typeof k&&(k.indexOf("Chrome/")>-1?O="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":k.indexOf("Firefox/")>-1&&(O="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),O&&__DEV__&&invariant_esm_invariant.log("Download the Apollo DevTools for a better development experience: "+O)}this.version="3.4.5",this.localState=new cn({cache:o,client:this,resolvers:v,fragmentMatcher:_}),this.queryManager=new dn({cache:this.cache,link:this.link,queryDeduplication:d,ssrMode:s,clientAwareness:{name:b,version:E},localState:this.localState,assumeImmutableResults:y,onBroadcast:f?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return ApolloClient.prototype.stop=function(){this.queryManager.stop()},ApolloClient.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=mergeOptions(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=y(y({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},ApolloClient.prototype.query=function(e){return this.defaultOptions.query&&(e=mergeOptions(this.defaultOptions.query,e)),__DEV__?invariant_esm_invariant("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."):invariant_esm_invariant("cache-and-network"!==e.fetchPolicy,11),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=y(y({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},ApolloClient.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=mergeOptions(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},ApolloClient.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},ApolloClient.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},ApolloClient.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},ApolloClient.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},ApolloClient.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},ApolloClient.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},ApolloClient.prototype.__requestRaw=function(e){return en(this.link,e)},ApolloClient.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},ApolloClient.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},ApolloClient.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},ApolloClient.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},ApolloClient.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},ApolloClient.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__&&invariant_esm_invariant.debug("In client.refetchQueries, Promise.all promise rejected with error "+e)})),i},ApolloClient.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},ApolloClient.prototype.extract=function(e){return this.cache.extract(e)},ApolloClient.prototype.restore=function(e){return this.cache.restore(e)},ApolloClient.prototype.addResolvers=function(e){this.localState.addResolvers(e)},ApolloClient.prototype.setResolvers=function(e){this.localState.setResolvers(e)},ApolloClient.prototype.getResolvers=function(){return this.localState.getResolvers()},ApolloClient.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},ApolloClient.prototype.setLink=function(e){this.link=this.queryManager.link=e},ApolloClient}();function onError(e){return new Ht((function(t,n){return new zt((function(r){var i,o,a;try{i=n(t).subscribe({next:function next(i){i.errors&&(a=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}))?o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.next(i)},error:function error(i){(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:n}))?o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.error(i)},complete:function complete(){a||r.complete.bind(r)()}})}catch(s){e({networkError:s,operation:t,forward:n}),r.error(s)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}}))}))}!function(e){function ErrorLink(t){var n=e.call(this)||this;return n.link=onError(t),n}__extends(ErrorLink,e),ErrorLink.prototype.request=function(e,t){return this.link.request(e,t)}}(Ht);var yn="_appolo",vn=document.querySelector('meta[name="api_url"]'),gn=vn?vn.getAttribute("content"):"".concat(window.location.protocol,"//").concat(window.location.host,"/graphql"),_n=new Ht((function(e,t){return e.setContext({headers:{apikey:"".concat("ApKrRSjySO4JAmX3E2Z7HvrBD0m8xdDlAiXyh4IbH3w")}}),t(e)}));console.info("%cAPI: ".concat(gn),"color:green;font-size:10px");var bn=new mn({cache:jt,link:Kt([_n,new Ht((function(e,t){return e.setContext({start:new Date}),t(e)})),onError((function(e){var t=e.operation,n=e.response,r=e.graphQLErrors,i=e.networkError;e.forward;if("IgnoreErrorsQuery"===t.operationName)return console.error("".concat(yn,": IgnoreErrorsQuery")),void(n.errors=null);r&&r.forEach((function(e){var t=e.message,n=e.locations,r=e.path;return console.error("".concat(yn,": [GraphQL error]: Message: ").concat(t,", Location: ").concat(n,", Path: ").concat(r))})),i&&console.error("".concat(yn,": [Network error] ").concat(i.statusCode)),console.error("".concat(yn,": [APOLLO_ERROR]")),window.dispatchEvent(new Event(c.APOLLO_ERROR))})),new Ht((function(e,t){return t(e).map((function(t){var n=new Date-e.getContext().start;return console.log("".concat(yn,": operation ").concat(e.operationName," took ").concat(n," ms to complete")),window.dispatchEvent(new Event(c.ONLINE)),t}))})),new Zt({uri:gn,fetch:function(e){function fetch(){return e.apply(this,arguments)}return fetch.toString=function(){return e.toString()},fetch}((function(){return fetch.apply(void 0,arguments)})),credentials:"same-origin",connectToDevTools:!1})])});function _page_typeof(e){return(_page_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _page_defineProperties(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 _page_setPrototypeOf(e,t){return(_page_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _page_createSuper(e){var t=function _page_isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function _createSuperInternal(){var n,r=_page_getPrototypeOf(e);if(t){var i=_page_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _page_possibleConstructorReturn(this,n)}}function _page_possibleConstructorReturn(e,t){return!t||"object"!==_page_typeof(t)&&"function"!==typeof t?_page_assertThisInitialized(e):t}function _page_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _page_getPrototypeOf(e){return(_page_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _page_defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var En=document,wn=document.body,Sn=function(e){!function _page_inherits(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_page_setPrototypeOf(e,t)}(Page,e);var t=_page_createSuper(Page);function Page(e){var n;!function _page_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Page),_page_defineProperty(_page_assertThisInitialized(n=t.call(this,e)),"state",{type:[],shown:!1,Title:"Loading ...",loading:!0,error:!1,current:null,ID:null,URLSegment:null,ClassName:"Page",CSSClass:null,Summary:null,Link:null,URL:null,HTML:null,Elements:[],page:null}),_page_defineProperty(_page_assertThisInitialized(n),"isOnline",(function(){return wn.classList.contains("is-online")})),_page_defineProperty(_page_assertThisInitialized(n),"load",(function(e){var t=_page_assertThisInitialized(n);return new Promise((function(n,r){var i=gql('query Pages {\n readPages(Link: "'.concat(e,'") {\n edges {\n node {\n __typename\n _id\n ID\n Title\n ClassName\n CSSClass\n Summary\n Link\n URLSegment\n HTML\n }\n }\n }\n }'));if(t.isOnline())t.state.loading||t.setState(t.empty_state),bn.query({query:i,fetchPolicy:t.isOnline()?"no-cache":"cache-first"}).then((function(e){var o=e.data;bn.writeQuery({query:i,data:o}),t.processResponse(o)?(console.log("".concat(t.name,": got the server response")),n(o)):(console.log("".concat(t.name,": not found")),r({status:404}))})).catch((function(e){r({status:500,error:e})}));else{var o=bn.readQuery({query:i});o&&t.processResponse(o)?(console.log("".concat(t.name,": Offline cached response")),n(o)):(console.log("".concat(t.name,": No offline response")),t.setState(Object.assign(t.empty_state,{Title:"Offline",CSSClass:"graphql__status-523",Summary:"You're Offline. The page is not available now.",loading:!1})),r({status:523}))}}))})),_page_defineProperty(_page_assertThisInitialized(n),"processResponse",(function(e){var t=_page_assertThisInitialized(n);if(!e.readPages.edges.length)return console.log("".concat(t.name,": not found")),t.setState(Object.assign(t.empty_state,{Title:"Not Found",CSSClass:"graphql__status-404",Summary:"The page is not found.",loading:!1})),!1;var r=e.readPages.edges[0].node;return t.setState({ID:r.ID,Title:r.Title,ClassName:r.ClassName,URLSegment:r.URLSegment,CSSClass:r.CSSClass,Summary:r.Summary,Link:r.Link,HTML:r.HTML,Elements:[],loading:!1}),!0})),_page_defineProperty(_page_assertThisInitialized(n),"getHtml",(function(e){return{__html:function decodeHtmlEntity(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}(e)}}));var r=_page_assertThisInitialized(n);return r.name=r.constructor.name,r.empty_state=r.state,console.log("".concat(r.name,": init")),n}return function _page_createClass(e,t,n){return t&&_page_defineProperties(e.prototype,t),n&&_page_defineProperties(e,n),e}(Page,[{key:"componentDidUpdate",value:function componentDidUpdate(){this.state.Title&&(document.title=this.state.Title)}},{key:"render",value:function render(){var e=this,t=(e.name,"elemental-area graphql__page page-".concat(e.state.CSSClass," url-").concat(e.state.URLSegment)),n="";if(e.state.HTML?(console.log("".concat(e.name,": HTML only")),n=e.state.HTML):e.state.Elements.length?(console.log("".concat(e.name,": render")),e.state.Elements.map((function(e){n+=e.node.Render}))):e.state.Summary&&e.state.Summary.length&&(console.log("".concat(e.name,": summary only")),n='<div class="summary">'.concat(e.state.Summary,"</div>")),e.state.loading){En.getElementById("PageLoading");n='<div class="loading">Loading ...</div>'}return React.createElement("div",{className:t,dangerouslySetInnerHTML:e.getHtml(n)})}}]),Page}(h.Component),kn=__webpack_require__(168),On="top",Tn="bottom",Cn="right",An="left",xn="auto",Dn=[On,Tn,Cn,An],In="start",Nn="end",Ln="clippingParents",Pn="viewport",jn="popper",Rn="reference",Mn=Dn.reduce((function(e,t){return e.concat([t+"-"+In,t+"-"+Nn])}),[]),Fn=[].concat(Dn,[xn]).reduce((function(e,t){return e.concat([t,t+"-"+In,t+"-"+Nn])}),[]),Vn="beforeRead",qn="read",Qn="afterRead",Bn="beforeMain",Un="main",zn="afterMain",Wn="beforeWrite",Hn="write",Kn="afterWrite",Gn=[Vn,qn,Qn,Bn,Un,zn,Wn,Hn,Kn];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function isElement(e){return e instanceof getWindow(e).Element||e instanceof Element}function isHTMLElement(e){return e instanceof getWindow(e).HTMLElement||e instanceof HTMLElement}function isShadowRoot(e){return"undefined"!==typeof ShadowRoot&&(e instanceof getWindow(e).ShadowRoot||e instanceof ShadowRoot)}var Yn={name:"applyStyles",enabled:!0,phase:"write",fn:function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];isHTMLElement(i)&&getNodeName(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function effect(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});isHTMLElement(r)&&getNodeName(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}var Jn=Math.round;function getBoundingClientRect(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;return isHTMLElement(e)&&t&&(r=n.width/e.offsetWidth||1,i=n.height/e.offsetHeight||1),{width:Jn(n.width/r),height:Jn(n.height/i),top:Jn(n.top/i),right:Jn(n.right/r),bottom:Jn(n.bottom/i),left:Jn(n.left/r),x:Jn(n.left/r),y:Jn(n.top/i)}}function getLayoutRect(e){var t=getBoundingClientRect(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function contains(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&isShadowRoot(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function getComputedStyle_getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){return"html"===getNodeName(e)?e:e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){return isHTMLElement(e)&&"fixed"!==getComputedStyle_getComputedStyle(e).position?e.offsetParent:null}function getOffsetParent(e){for(var t=getWindow(e),n=getTrueOffsetParent(e);n&&isTableElement(n)&&"static"===getComputedStyle_getComputedStyle(n).position;)n=getTrueOffsetParent(n);return n&&("html"===getNodeName(n)||"body"===getNodeName(n)&&"static"===getComputedStyle_getComputedStyle(n).position)?t:n||function getContainingBlock(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&isHTMLElement(e)&&"fixed"===getComputedStyle_getComputedStyle(e).position)return null;for(var n=getParentNode(e);isHTMLElement(n)&&["html","body"].indexOf(getNodeName(n))<0;){var r=getComputedStyle_getComputedStyle(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var Xn=Math.max,$n=Math.min,Zn=Math.round;function within(e,t,n){return Xn(e,$n(t,n))}function mergePaddingObject(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function expandToHashMap(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var er={name:"arrow",enabled:!0,phase:"main",fn:function arrow(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=getBasePlacement(n.placement),c=getMainAxisFromPlacement(s),u=[An,Cn].indexOf(s)>=0?"height":"width";if(o&&a){var l=function toPaddingObject(e,t){return mergePaddingObject("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:expandToHashMap(e,Dn))}(i.padding,n),f=getLayoutRect(o),p="y"===c?On:An,d="y"===c?Tn:Cn,h=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],y=getOffsetParent(o),v=y?"y"===c?y.clientHeight||0:y.clientWidth||0:0,g=h/2-m/2,_=l[p],b=v-f[u]-l[d],E=v/2-f[u]/2+g,w=within(_,E,b),S=c;n.modifiersData[r]=((t={})[S]=w,t.centerOffset=w-E,t)}},effect:function arrow_effect(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&contains(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},tr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mapToStyles(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.offsets,a=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,l=!0===u?function roundOffsetsByDPR(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Zn(Zn(t*r)/r)||0,y:Zn(Zn(n*r)/r)||0}}(o):"function"===typeof u?u(o):o,f=l.x,p=void 0===f?0:f,d=l.y,h=void 0===d?0:d,m=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),v=An,g=On,_=window;if(c){var b=getOffsetParent(n),E="clientHeight",w="clientWidth";b===getWindow(n)&&"static"!==getComputedStyle_getComputedStyle(b=getDocumentElement(n)).position&&(E="scrollHeight",w="scrollWidth"),b=b,i===On&&(g=Tn,h-=b[E]-r.height,h*=s?1:-1),i===An&&(v=Cn,p-=b[w]-r.width,p*=s?1:-1)}var S,k=Object.assign({position:a},c&&tr);return s?Object.assign({},k,((S={})[g]=y?"0":"",S[v]=m?"0":"",S.transform=(_.devicePixelRatio||1)<2?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",S)):Object.assign({},k,((t={})[g]=y?h+"px":"",t[v]=m?p+"px":"",t.transform="",t))}var nr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function computeStyles(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,c=void 0===s||s,u={placement:getBasePlacement(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},rr={passive:!0};var ir={name:"eventListeners",enabled:!0,phase:"write",fn:function fn(){},effect:function eventListeners_effect(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,c=getWindow(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,rr)})),s&&c.addEventListener("resize",n.update,rr),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,rr)})),s&&c.removeEventListener("resize",n.update,rr)}},data:{}},or={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return or[e]}))}var ar={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,(function(e){return ar[e]}))}function getWindowScroll(e){var t=getWindow(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function isScrollParent(e){var t=getComputedStyle_getComputedStyle(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function getScrollParent(e){return["html","body","#document"].indexOf(getNodeName(e))>=0?e.ownerDocument.body:isHTMLElement(e)&&isScrollParent(e)?e:getScrollParent(getParentNode(e))}function listScrollParents(e,t){var n;void 0===t&&(t=[]);var r=getScrollParent(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=getWindow(r),a=i?[o].concat(o.visualViewport||[],isScrollParent(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(listScrollParents(getParentNode(a)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getClientRectFromMixedType(e,t){return t===Pn?rectToClientRect(function getViewportRect(e){var t=getWindow(e),n=getDocumentElement(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+getWindowScrollBarX(e),y:s}}(e)):isHTMLElement(t)?function getInnerBoundingClientRect(e){var t=getBoundingClientRect(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):rectToClientRect(function getDocumentRect(e){var t,n=getDocumentElement(e),r=getWindowScroll(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=Xn(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Xn(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+getWindowScrollBarX(e),c=-r.scrollTop;return"rtl"===getComputedStyle_getComputedStyle(i||n).direction&&(s+=Xn(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(getDocumentElement(e)))}function getClippingRect(e,t,n){var r="clippingParents"===t?function getClippingParents(e){var t=listScrollParents(getParentNode(e)),n=["absolute","fixed"].indexOf(getComputedStyle_getComputedStyle(e).position)>=0&&isHTMLElement(e)?getOffsetParent(e):e;return isElement(n)?t.filter((function(e){return isElement(e)&&contains(e,n)&&"body"!==getNodeName(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce((function(t,n){var r=getClientRectFromMixedType(e,n);return t.top=Xn(r.top,t.top),t.right=$n(r.right,t.right),t.bottom=$n(r.bottom,t.bottom),t.left=Xn(r.left,t.left),t}),getClientRectFromMixedType(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function getVariation(e){return e.split("-")[1]}function computeOffsets(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?getBasePlacement(i):null,a=i?getVariation(i):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(o){case On:t={x:s,y:n.y-r.height};break;case Tn:t={x:s,y:n.y+n.height};break;case Cn:t={x:n.x+n.width,y:c};break;case An:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=o?getMainAxisFromPlacement(o):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case In:t[u]=t[u]-(n[l]/2-r[l]/2);break;case Nn:t[u]=t[u]+(n[l]/2-r[l]/2)}}return t}function detectOverflow(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.boundary,a=void 0===o?Ln:o,s=n.rootBoundary,c=void 0===s?Pn:s,u=n.elementContext,l=void 0===u?jn:u,f=n.altBoundary,p=void 0!==f&&f,d=n.padding,h=void 0===d?0:d,m=mergePaddingObject("number"!==typeof h?h:expandToHashMap(h,Dn)),y=l===jn?Rn:jn,v=e.elements.reference,g=e.rects.popper,_=e.elements[p?y:l],b=getClippingRect(isElement(_)?_:_.contextElement||getDocumentElement(e.elements.popper),a,c),E=getBoundingClientRect(v),w=computeOffsets({reference:E,element:g,strategy:"absolute",placement:i}),S=rectToClientRect(Object.assign({},g,w)),k=l===jn?S:E,O={top:b.top-k.top+m.top,bottom:k.bottom-b.bottom+m.bottom,left:b.left-k.left+m.left,right:k.right-b.right+m.right},T=e.modifiersData.offset;if(l===jn&&T){var C=T[i];Object.keys(O).forEach((function(e){var t=[Cn,Tn].indexOf(e)>=0?1:-1,n=[On,Tn].indexOf(e)>=0?"y":"x";O[e]+=C[n]*t}))}return O}var sr={name:"flip",enabled:!0,phase:"main",fn:function flip(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,u=n.padding,l=n.boundary,f=n.rootBoundary,p=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,y=t.options.placement,v=getBasePlacement(y),g=c||(v===y||!h?[getOppositePlacement(y)]:function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===xn)return[];var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}(y)),_=[y].concat(g).reduce((function(e,n){return e.concat(getBasePlacement(n)===xn?function computeAutoPlacement(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?Fn:c,l=getVariation(r),f=l?s?Mn:Mn.filter((function(e){return getVariation(e)===l})):Dn,p=f.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=f);var d=p.reduce((function(t,n){return t[n]=detectOverflow(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[getBasePlacement(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),b=t.rects.reference,E=t.rects.popper,w=new Map,S=!0,k=_[0],O=0;O<_.length;O++){var T=_[O],C=getBasePlacement(T),A=getVariation(T)===In,x=[On,Tn].indexOf(C)>=0,D=x?"width":"height",I=detectOverflow(t,{placement:T,boundary:l,rootBoundary:f,altBoundary:p,padding:u}),N=x?A?Cn:An:A?Tn:On;b[D]>E[D]&&(N=getOppositePlacement(N));var L=getOppositePlacement(N),P=[];if(o&&P.push(I[C]<=0),s&&P.push(I[N]<=0,I[L]<=0),P.every((function(e){return e}))){k=T,S=!1;break}w.set(T,P)}if(S)for(var j=function _loop(e){var t=_.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},R=h?3:1;R>0;R--){if("break"===j(R))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function isAnySideFullyClipped(e){return[On,Cn,Tn,An].some((function(t){return e[t]>=0}))}var cr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function hide(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=detectOverflow(t,{elementContext:"reference"}),s=detectOverflow(t,{altBoundary:!0}),c=getSideOffsets(a,r),u=getSideOffsets(s,i,o),l=isAnySideFullyClipped(c),f=isAnySideFullyClipped(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}};var ur={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function offset(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=Fn.reduce((function(e,n){return e[n]=function distanceAndSkiddingToXY(e,t,n){var r=getBasePlacement(e),i=[An,On].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[An,Cn].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var lr={name:"popperOffsets",enabled:!0,phase:"read",fn:function popperOffsets(e){var t=e.state,n=e.name;t.modifiersData[n]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var fr={name:"preventOverflow",enabled:!0,phase:"main",fn:function preventOverflow(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,f=n.padding,p=n.tether,d=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,y=detectOverflow(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:l}),v=getBasePlacement(t.placement),g=getVariation(t.placement),_=!g,b=getMainAxisFromPlacement(v),E=function getAltAxis(e){return"x"===e?"y":"x"}(b),w=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,O="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,T={x:0,y:0};if(w){if(o||s){var C="y"===b?On:An,A="y"===b?Tn:Cn,x="y"===b?"height":"width",D=w[b],I=w[b]+y[C],N=w[b]-y[A],L=d?-k[x]/2:0,P=g===In?S[x]:k[x],j=g===In?-k[x]:-S[x],R=t.elements.arrow,M=d&&R?getLayoutRect(R):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=F[C],q=F[A],Q=within(0,S[x],M[x]),B=_?S[x]/2-L-Q-V-O:P-Q-V-O,U=_?-S[x]/2+L+Q+q+O:j+Q+q+O,z=t.elements.arrow&&getOffsetParent(t.elements.arrow),W=z?"y"===b?z.clientTop||0:z.clientLeft||0:0,H=t.modifiersData.offset?t.modifiersData.offset[t.placement][b]:0,K=w[b]+B-H-W,G=w[b]+U-H;if(o){var Y=within(d?$n(I,K):I,D,d?Xn(N,G):N);w[b]=Y,T[b]=Y-D}if(s){var J="x"===b?On:An,X="x"===b?Tn:Cn,Z=w[E],ee=Z+y[J],te=Z-y[X],ne=within(d?$n(ee,K):ee,Z,d?Xn(te,G):te);w[E]=ne,T[E]=ne-Z}}t.modifiersData[r]=T}},requiresIfExists:["offset"]};function getCompositeRect(e,t,n){void 0===n&&(n=!1);var r=isHTMLElement(t),i=isHTMLElement(t)&&function isElementScaled(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return 1!==n||1!==r}(t),o=getDocumentElement(t),a=getBoundingClientRect(e,i),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==getNodeName(t)||isScrollParent(o))&&(s=function getNodeScroll(e){return e!==getWindow(e)&&isHTMLElement(e)?function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):getWindowScroll(e)}(t)),isHTMLElement(t)?((c=getBoundingClientRect(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=getWindowScrollBarX(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function order(e){var t=new Map,n=new Set,r=[];function sort(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&sort(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||sort(e)})),r}var pr={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function popperGenerator(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?pr:i;return function createPopper(e,t,n){void 0===n&&(n=o);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},pr,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,l={state:s,setOptions:function setOptions(n){cleanupModifierEffects(),s.options=Object.assign({},o,s.options,n),s.scrollParents={reference:isElement(e)?listScrollParents(e):e.contextElement?listScrollParents(e.contextElement):[],popper:listScrollParents(t)};var i=function orderModifiers(e){var t=order(e);return Gn.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function mergeByName(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,s.options.modifiers)));return s.orderedModifiers=i.filter((function(e){return e.enabled})),function runModifierEffects(){s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var o=i({state:s,name:t,instance:l,options:r}),a=function noopFn(){};c.push(o||a)}}))}(),l.update()},forceUpdate:function forceUpdate(){if(!u){var e=s.elements,t=e.reference,n=e.popper;if(areValidElements(t,n)){s.rects={reference:getCompositeRect(t,getOffsetParent(n),"fixed"===s.options.strategy),popper:getLayoutRect(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var i=s.orderedModifiers[r],o=i.fn,a=i.options,c=void 0===a?{}:a,f=i.name;"function"===typeof o&&(s=o({state:s,options:c,name:f,instance:l})||s)}else s.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){l.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(i())}))}))),a}),destroy:function destroy(){cleanupModifierEffects(),u=!0}};if(!areValidElements(e,t))return l;function cleanupModifierEffects(){c.forEach((function(e){return e()})),c=[]}return l.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var dr,hr=popperGenerator(),mr=popperGenerator({defaultModifiers:[ir,lr,nr,Yn,ur,sr,fr,er,cr]}),yr=popperGenerator({defaultModifiers:[ir,lr,nr,Yn]});function _get(e,t,n){return(_get="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function _get(e,t,n){var r=function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=bootstrap_esm_getPrototypeOf(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){bootstrap_esm_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bootstrap_esm_defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bootstrap_esm_toConsumableArray(e){return function bootstrap_esm_arrayWithoutHoles(e){if(Array.isArray(e))return bootstrap_esm_arrayLikeToArray(e)}(e)||function bootstrap_esm_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||bootstrap_esm_unsupportedIterableToArray(e)||function bootstrap_esm_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bootstrap_esm_inherits(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bootstrap_esm_setPrototypeOf(e,t)}function bootstrap_esm_setPrototypeOf(e,t){return(bootstrap_esm_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function bootstrap_esm_createSuper(e){var t=function bootstrap_esm_isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function _createSuperInternal(){var n,r=bootstrap_esm_getPrototypeOf(e);if(t){var i=bootstrap_esm_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return bootstrap_esm_possibleConstructorReturn(this,n)}}function bootstrap_esm_possibleConstructorReturn(e,t){return!t||"object"!==bootstrap_esm_typeof(t)&&"function"!==typeof t?function bootstrap_esm_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function bootstrap_esm_getPrototypeOf(e){return(bootstrap_esm_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function bootstrap_esm_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bootstrap_esm_defineProperties(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 bootstrap_esm_createClass(e,t,n){return t&&bootstrap_esm_defineProperties(e.prototype,t),n&&bootstrap_esm_defineProperties(e,n),e}function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(c){s=!0,i=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||bootstrap_esm_unsupportedIterableToArray(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bootstrap_esm_unsupportedIterableToArray(e,t){if(e){if("string"===typeof e)return bootstrap_esm_arrayLikeToArray(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)?bootstrap_esm_arrayLikeToArray(e,t):void 0}}function bootstrap_esm_arrayLikeToArray(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 bootstrap_esm_typeof(e){return(bootstrap_esm_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var vr="transitionend",gr=function getSelector(e){var t=e.getAttribute("data-bs-target");if(!t||"#"===t){var n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#".concat(n.split("#")[1])),t=n&&"#"!==n?n.trim():null}return t},_r=function getSelectorFromElement(e){var t=gr(e);return t&&document.querySelector(t)?t:null},br=function getElementFromSelector(e){var t=gr(e);return t?document.querySelector(t):null},Er=function getTransitionDurationFromElement(e){if(!e)return 0;var t=window.getComputedStyle(e),n=t.transitionDuration,r=t.transitionDelay,i=Number.parseFloat(n),o=Number.parseFloat(r);return i||o?(n=n.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(r))):0},wr=function triggerTransitionEnd(e){e.dispatchEvent(new Event(vr))},Sr=function isElement(e){return!(!e||"object"!==bootstrap_esm_typeof(e))&&("undefined"!==typeof e.jquery&&(e=e[0]),"undefined"!==typeof e.nodeType)},kr=function getElement(e){return Sr(e)?e.jquery?e[0]:e:"string"===typeof e&&e.length>0?document.querySelector(e):null},Or=function typeCheckConfig(e,t,n){Object.keys(n).forEach((function(r){var i=n[r],o=t[r],a=o&&Sr(o)?"element":function toType(e){return null===e||void 0===e?"".concat(e):{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}(o);if(!new RegExp(i).test(a))throw new TypeError("".concat(e.toUpperCase(),': Option "').concat(r,'" provided type "').concat(a,'" but expected type "').concat(i,'".'))}))},Tr=function isVisible(e){return!(!Sr(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility")},Cr=function isDisabled(e){return!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||("undefined"!==typeof e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")))},Ar=function findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"===typeof e.getRootNode){var t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?findShadowRoot(e.parentNode):null},xr=function noop(){},Dr=function reflow(e){e.offsetHeight},Ir=function getjQuery(){var jQuery=window.jQuery;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},Nr=[],Lr=function isRTL(){return"rtl"===document.documentElement.dir},Pr=function defineJQueryPlugin(e){!function onDOMContentLoaded(e){"loading"===document.readyState?(Nr.length||document.addEventListener("DOMContentLoaded",(function(){Nr.forEach((function(e){return e()}))})),Nr.push(e)):e()}((function(){var $=Ir();if($){var t=e.NAME,n=$.fn[t];$.fn[t]=e.jQueryInterface,$.fn[t].Constructor=e,$.fn[t].noConflict=function(){return $.fn[t]=n,e.jQueryInterface}}}))},jr=function execute(e){"function"===typeof e&&e()},Rr=function executeAfterTransition(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(n){var r=5,i=Er(t)+r,o=!1,a=function handler(n){n.target===t&&(o=!0,t.removeEventListener(vr,handler),jr(e))};t.addEventListener(vr,a),setTimeout((function(){o||wr(t)}),i)}else jr(e)},Mr=function getNextActiveElement(e,t,n,r){var i=e.indexOf(t);if(-1===i)return e[!n&&r?e.length-1:0];var o=e.length;return i+=n?1:-1,r&&(i=(i+o)%o),e[Math.max(0,Math.min(i,o-1))]},Fr=/[^.]*(?=\..*)\.|.*/,Vr=/\..*/,qr=/::\d+$/,Qr={},Br=1,Ur={mouseenter:"mouseover",mouseleave:"mouseout"},zr=/^(mouseenter|mouseleave)/i,Wr=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function getUidEvent(e,t){return t&&"".concat(t,"::").concat(Br++)||e.uidEvent||Br++}function getEvent(e){var t=getUidEvent(e);return e.uidEvent=t,Qr[t]=Qr[t]||{},Qr[t]}function findHandler(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=Object.keys(e),i=0,o=r.length;i<o;i++){var a=e[r[i]];if(a.originalHandler===t&&a.delegationSelector===n)return a}return null}function normalizeParams(e,t,n){var r="string"===typeof t,i=r?n:t,o=getTypeEvent(e);return Wr.has(o)||(o=e),[r,i,o]}function addHandler(e,t,n,r,i){if("string"===typeof t&&e){if(n||(n=r,r=null),zr.test(t)){var o=function wrapFn(e){return function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)}};r?r=o(r):n=o(n)}var a=_slicedToArray(normalizeParams(t,n,r),3),s=a[0],c=a[1],u=a[2],l=getEvent(e),f=l[u]||(l[u]={}),p=findHandler(f,c,s?n:null);if(p)p.oneOff=p.oneOff&&i;else{var d=getUidEvent(c,t.replace(Fr,"")),h=s?function bootstrapDelegationHandler(e,t,n){return function handler(r){for(var i=e.querySelectorAll(t),o=r.target;o&&o!==this;o=o.parentNode)for(var a=i.length;a--;)if(i[a]===o)return r.delegateTarget=o,handler.oneOff&&Hr.off(e,r.type,t,n),n.apply(o,[r]);return null}}(e,n,r):function bootstrapHandler(e,t){return function handler(n){return n.delegateTarget=e,handler.oneOff&&Hr.off(e,n.type,t),t.apply(e,[n])}}(e,n);h.delegationSelector=s?n:null,h.originalHandler=c,h.oneOff=i,h.uidEvent=d,f[d]=h,e.addEventListener(u,h,s)}}}function removeHandler(e,t,n,r,i){var o=findHandler(t[n],r,i);o&&(e.removeEventListener(n,o,Boolean(i)),delete t[n][o.uidEvent])}function getTypeEvent(e){return e=e.replace(Vr,""),Ur[e]||e}var Hr={on:function on(e,t,n,r){addHandler(e,t,n,r,!1)},one:function one(e,t,n,r){addHandler(e,t,n,r,!0)},off:function off(e,t,n,r){if("string"===typeof t&&e){var i=_slicedToArray(normalizeParams(t,n,r),3),o=i[0],a=i[1],s=i[2],c=s!==t,u=getEvent(e),l=t.startsWith(".");if("undefined"===typeof a){l&&Object.keys(u).forEach((function(n){!function removeNamespacedHandlers(e,t,n,r){var i=t[n]||{};Object.keys(i).forEach((function(o){if(o.includes(r)){var a=i[o];removeHandler(e,t,n,a.originalHandler,a.delegationSelector)}}))}(e,u,n,t.slice(1))}));var f=u[s]||{};Object.keys(f).forEach((function(n){var r=n.replace(qr,"");if(!c||t.includes(r)){var i=f[n];removeHandler(e,u,s,i.originalHandler,i.delegationSelector)}}))}else{if(!u||!u[s])return;removeHandler(e,u,s,a,o?n:null)}}},trigger:function trigger(e,t,n){if("string"!==typeof t||!e)return null;var r,$=Ir(),i=getTypeEvent(t),o=t!==i,a=Wr.has(i),s=!0,c=!0,u=!1,l=null;return o&&$&&(r=$.Event(t,n),$(e).trigger(r),s=!r.isPropagationStopped(),c=!r.isImmediatePropagationStopped(),u=r.isDefaultPrevented()),a?(l=document.createEvent("HTMLEvents")).initEvent(i,s,!0):l=new CustomEvent(t,{bubbles:s,cancelable:!0}),"undefined"!==typeof n&&Object.keys(n).forEach((function(e){Object.defineProperty(l,e,{get:function get(){return n[e]}})})),u&&l.preventDefault(),c&&e.dispatchEvent(l),l.defaultPrevented&&"undefined"!==typeof r&&r.preventDefault(),l}},Kr=new Map,Gr=function set(e,t,n){Kr.has(e)||Kr.set(e,new Map);var r=Kr.get(e);r.has(t)||0===r.size?r.set(t,n):console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(r.keys())[0],"."))},Yr=function get(e,t){return Kr.has(e)&&Kr.get(e).get(t)||null},Jr=function remove(e,t){if(Kr.has(e)){var n=Kr.get(e);n.delete(t),0===n.size&&Kr.delete(e)}},Xr=function(){function BaseComponent(e){bootstrap_esm_classCallCheck(this,BaseComponent),(e=kr(e))&&(this._element=e,Gr(this._element,this.constructor.DATA_KEY,this))}return bootstrap_esm_createClass(BaseComponent,[{key:"dispose",value:function dispose(){var e=this;Jr(this._element,this.constructor.DATA_KEY),Hr.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((function(t){e[t]=null}))}},{key:"_queueCallback",value:function _queueCallback(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Rr(e,t,n)}}],[{key:"getInstance",value:function getInstance(e){return Yr(kr(e),this.DATA_KEY)}},{key:"getOrCreateInstance",value:function getOrCreateInstance(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(e)||new this(e,"object"===bootstrap_esm_typeof(t)?t:null)}},{key:"VERSION",get:function get(){return"5.1.0"}},{key:"NAME",get:function get(){throw new Error('You have to implement the static method "NAME", for each component!')}},{key:"DATA_KEY",get:function get(){return"bs.".concat(this.NAME)}},{key:"EVENT_KEY",get:function get(){return".".concat(this.DATA_KEY)}}]),BaseComponent}(),$r=function enableDismissTrigger(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hide",n="click.dismiss".concat(e.EVENT_KEY),r=e.NAME;Hr.on(document,n,'[data-bs-dismiss="'.concat(r,'"]'),(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),!Cr(this)){var i=br(this)||this.closest(".".concat(r));e.getOrCreateInstance(i)[t]()}}))},Zr=".".concat("bs.alert"),ei="close".concat(Zr),ti="closed".concat(Zr),ni=function(e){bootstrap_esm_inherits(Alert,e);var t=bootstrap_esm_createSuper(Alert);function Alert(){return bootstrap_esm_classCallCheck(this,Alert),t.apply(this,arguments)}return bootstrap_esm_createClass(Alert,[{key:"close",value:function close(){var e=this;if(!Hr.trigger(this._element,ei).defaultPrevented){this._element.classList.remove("show");var t=this._element.classList.contains("fade");this._queueCallback((function(){return e._destroyElement()}),this._element,t)}}},{key:"_destroyElement",value:function _destroyElement(){this._element.remove(),Hr.trigger(this._element,ti),this.dispose()}}],[{key:"NAME",get:function get(){return"alert"}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Alert.getOrCreateInstance(this);if("string"===typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method named "'.concat(e,'"'));t[e](this)}}))}}]),Alert}(Xr);$r(ni,"close"),Pr(ni);var ri=".".concat("bs.button"),ii='[data-bs-toggle="button"]',oi="click".concat(ri).concat(".data-api"),ai=function(e){bootstrap_esm_inherits(Button,e);var t=bootstrap_esm_createSuper(Button);function Button(){return bootstrap_esm_classCallCheck(this,Button),t.apply(this,arguments)}return bootstrap_esm_createClass(Button,[{key:"toggle",value:function toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}}],[{key:"NAME",get:function get(){return"button"}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Button.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}]),Button}(Xr);function normalizeData(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function normalizeDataKey(e){return e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}))}Hr.on(document,oi,ii,(function(e){e.preventDefault();var t=e.target.closest(ii);ai.getOrCreateInstance(t).toggle()})),Pr(ai);var si={setDataAttribute:function setDataAttribute(e,t,n){e.setAttribute("data-bs-".concat(normalizeDataKey(t)),n)},removeDataAttribute:function removeDataAttribute(e,t){e.removeAttribute("data-bs-".concat(normalizeDataKey(t)))},getDataAttributes:function getDataAttributes(e){if(!e)return{};var t={};return Object.keys(e.dataset).filter((function(e){return e.startsWith("bs")})).forEach((function(n){var r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),t[r]=normalizeData(e.dataset[n])})),t},getDataAttribute:function getDataAttribute(e,t){return normalizeData(e.getAttribute("data-bs-".concat(normalizeDataKey(t))))},offset:function offset(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}},position:function position(e){return{top:e.offsetTop,left:e.offsetLeft}}},ci={find:function find(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(t=[]).concat.apply(t,bootstrap_esm_toConsumableArray(Element.prototype.querySelectorAll.call(n,e)))},findOne:function findOne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},children:function children(e,t){var n;return(n=[]).concat.apply(n,bootstrap_esm_toConsumableArray(e.children)).filter((function(e){return e.matches(t)}))},parents:function parents(e,t){for(var parents=[],n=e.parentNode;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(t)&&parents.push(n),n=n.parentNode;return parents},prev:function prev(e,t){for(var n=e.previousElementSibling;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next:function next(e,t){for(var next=e.nextElementSibling;next;){if(next.matches(t))return[next];next=next.nextElementSibling}return[]},focusableChildren:function focusableChildren(e){var t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((function(e){return"".concat(e,':not([tabindex^="-"])')})).join(", ");return this.find(t,e).filter((function(e){return!Cr(e)&&Tr(e)}))}},ui="carousel",li=".".concat("bs.carousel"),fi=".data-api",pi={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},di={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},hi="next",mi="prev",yi="left",vi="right",gi=(bootstrap_esm_defineProperty(dr={},"ArrowLeft",vi),bootstrap_esm_defineProperty(dr,"ArrowRight",yi),dr),_i="slide".concat(li),bi="slid".concat(li),Ei="keydown".concat(li),wi="mouseenter".concat(li),Si="mouseleave".concat(li),ki="touchstart".concat(li),Oi="touchmove".concat(li),Ti="touchend".concat(li),Ci="pointerdown".concat(li),Ai="pointerup".concat(li),xi="dragstart".concat(li),Di="load".concat(li).concat(fi),Ii="click".concat(li).concat(fi),Ni="active",Li=".active.carousel-item",Pi="touch",ji=function(e){bootstrap_esm_inherits(Carousel,e);var t=bootstrap_esm_createSuper(Carousel);function Carousel(e,n){var r;return bootstrap_esm_classCallCheck(this,Carousel),(r=t.call(this,e))._items=null,r._interval=null,r._activeElement=null,r._isPaused=!1,r._isSliding=!1,r.touchTimeout=null,r.touchStartX=0,r.touchDeltaX=0,r._config=r._getConfig(n),r._indicatorsElement=ci.findOne(".carousel-indicators",r._element),r._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,r._pointerEvent=Boolean(window.PointerEvent),r._addEventListeners(),r}return bootstrap_esm_createClass(Carousel,[{key:"next",value:function next(){this._slide(hi)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&Tr(this._element)&&this.next()}},{key:"prev",value:function prev(){this._slide(mi)}},{key:"pause",value:function pause(e){e||(this._isPaused=!0),ci.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(wr(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}},{key:"to",value:function to(e){var t=this;this._activeElement=ci.findOne(Li,this._element);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)Hr.one(this._element,bi,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?hi:mi;this._slide(r,this._items[e])}}},{key:"_getConfig",value:function _getConfig(e){return e=_objectSpread(_objectSpread(_objectSpread({},pi),si.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)?e:{}),Or(ui,e,di),e}},{key:"_handleSwipe",value:function _handleSwipe(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?vi:yi)}}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;this._config.keyboard&&Hr.on(this._element,Ei,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(Hr.on(this._element,wi,(function(t){return e.pause(t)})),Hr.on(this._element,Si,(function(t){return e.cycle(t)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function _addTouchEventListeners(){var e=this,t=function start(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==Pi?e._pointerEvent||(e.touchStartX=t.touches[0].clientX):e.touchStartX=t.clientX},n=function end(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==Pi||(e.touchDeltaX=t.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};ci.find(".carousel-item img",this._element).forEach((function(e){Hr.on(e,xi,(function(e){return e.preventDefault()}))})),this._pointerEvent?(Hr.on(this._element,Ci,(function(e){return t(e)})),Hr.on(this._element,Ai,(function(e){return n(e)})),this._element.classList.add("pointer-event")):(Hr.on(this._element,ki,(function(e){return t(e)})),Hr.on(this._element,Oi,(function(t){return function move(t){e.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-e.touchStartX}(t)})),Hr.on(this._element,Ti,(function(e){return n(e)})))}},{key:"_keydown",value:function _keydown(e){if(!/input|textarea/i.test(e.target.tagName)){var t=gi[e.key];t&&(e.preventDefault(),this._slide(t))}}},{key:"_getItemIndex",value:function _getItemIndex(e){return this._items=e&&e.parentNode?ci.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}},{key:"_getItemByOrder",value:function _getItemByOrder(e,t){var n=e===hi;return Mr(this._items,t,n,this._config.wrap)}},{key:"_triggerSlideEvent",value:function _triggerSlideEvent(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(ci.findOne(Li,this._element));return Hr.trigger(this._element,_i,{relatedTarget:e,direction:t,from:r,to:n})}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(e){if(this._indicatorsElement){var t=ci.findOne(".active",this._indicatorsElement);t.classList.remove(Ni),t.removeAttribute("aria-current");for(var n=ci.find("[data-bs-target]",this._indicatorsElement),r=0;r<n.length;r++)if(Number.parseInt(n[r].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(e)){n[r].classList.add(Ni),n[r].setAttribute("aria-current","true");break}}}},{key:"_updateInterval",value:function _updateInterval(){var e=this._activeElement||ci.findOne(Li,this._element);if(e){var t=Number.parseInt(e.getAttribute("data-bs-interval"),10);t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval}}},{key:"_slide",value:function _slide(e,t){var n=this,r=this._directionToOrder(e),i=ci.findOne(Li,this._element),o=this._getItemIndex(i),a=t||this._getItemByOrder(r,i),s=this._getItemIndex(a),c=Boolean(this._interval),u=r===hi,l=u?"carousel-item-start":"carousel-item-end",f=u?"carousel-item-next":"carousel-item-prev",p=this._orderToDirection(r);if(a&&a.classList.contains(Ni))this._isSliding=!1;else if(!this._isSliding&&!this._triggerSlideEvent(a,p).defaultPrevented&&i&&a){this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(a),this._activeElement=a;var d=function triggerSlidEvent(){Hr.trigger(n._element,bi,{relatedTarget:a,direction:p,from:o,to:s})};if(this._element.classList.contains("slide")){a.classList.add(f),Dr(a),i.classList.add(l),a.classList.add(l);this._queueCallback((function completeCallBack(){a.classList.remove(l,f),a.classList.add(Ni),i.classList.remove(Ni,f,l),n._isSliding=!1,setTimeout(d,0)}),i,!0)}else i.classList.remove(Ni),a.classList.add(Ni),this._isSliding=!1,d();c&&this.cycle()}}},{key:"_directionToOrder",value:function _directionToOrder(e){return[vi,yi].includes(e)?Lr()?e===yi?mi:hi:e===yi?hi:mi:e}},{key:"_orderToDirection",value:function _orderToDirection(e){return[hi,mi].includes(e)?Lr()?e===mi?yi:vi:e===mi?vi:yi:e}}],[{key:"Default",get:function get(){return pi}},{key:"NAME",get:function get(){return ui}},{key:"carouselInterface",value:function carouselInterface(e,t){var n=Carousel.getOrCreateInstance(e,t),r=n._config;"object"===bootstrap_esm_typeof(t)&&(r=_objectSpread(_objectSpread({},r),t));var i="string"===typeof t?t:r.slide;if("number"===typeof t)n.to(t);else if("string"===typeof i){if("undefined"===typeof n[i])throw new TypeError('No method named "'.concat(i,'"'));n[i]()}else r.interval&&r.ride&&(n.pause(),n.cycle())}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){Carousel.carouselInterface(this,e)}))}},{key:"dataApiClickHandler",value:function dataApiClickHandler(e){var t=br(this);if(t&&t.classList.contains("carousel")){var n=_objectSpread(_objectSpread({},si.getDataAttributes(t)),si.getDataAttributes(this)),r=this.getAttribute("data-bs-slide-to");r&&(n.interval=!1),Carousel.carouselInterface(t,n),r&&Carousel.getInstance(t).to(r),e.preventDefault()}}}]),Carousel}(Xr);Hr.on(document,Ii,"[data-bs-slide], [data-bs-slide-to]",ji.dataApiClickHandler),Hr.on(window,Di,(function(){for(var e=ci.find('[data-bs-ride="carousel"]'),t=0,n=e.length;t<n;t++)ji.carouselInterface(e[t],ji.getInstance(e[t]))})),Pr(ji);var Ri="collapse",Mi="bs.collapse",Fi=".".concat(Mi),Vi={toggle:!0,parent:null},qi={toggle:"boolean",parent:"(null|element)"},Qi="show".concat(Fi),Bi="shown".concat(Fi),Ui="hide".concat(Fi),zi="hidden".concat(Fi),Wi="click".concat(Fi).concat(".data-api"),Hi="show",Ki="collapse",Gi="collapsing",Yi="collapsed",Ji='[data-bs-toggle="collapse"]',Xi=function(e){bootstrap_esm_inherits(Collapse,e);var t=bootstrap_esm_createSuper(Collapse);function Collapse(e,n){var r;bootstrap_esm_classCallCheck(this,Collapse),(r=t.call(this,e))._isTransitioning=!1,r._config=r._getConfig(n),r._triggerArray=[];for(var i=ci.find(Ji),o=0,a=i.length;o<a;o++){var s=i[o],c=_r(s),u=ci.find(c).filter((function(e){return e===r._element}));null!==c&&u.length&&(r._selector=c,r._triggerArray.push(s))}return r._initializeChildren(),r._config.parent||r._addAriaAndCollapsedClass(r._triggerArray,r._isShown()),r._config.toggle&&r.toggle(),r}return bootstrap_esm_createClass(Collapse,[{key:"toggle",value:function toggle(){this._isShown()?this.hide():this.show()}},{key:"show",value:function show(){var e=this;if(!this._isTransitioning&&!this._isShown()){var t,n=[];if(this._config.parent){var r=ci.find(".".concat(Ki," .").concat(Ki),this._config.parent);n=ci.find(".show, .collapsing",this._config.parent).filter((function(e){return!r.includes(e)}))}var i=ci.findOne(this._selector);if(n.length){var o=n.find((function(e){return i!==e}));if((t=o?Collapse.getInstance(o):null)&&t._isTransitioning)return}if(!Hr.trigger(this._element,Qi).defaultPrevented){n.forEach((function(e){i!==e&&Collapse.getOrCreateInstance(e,{toggle:!1}).hide(),t||Gr(e,Mi,null)}));var a=this._getDimension();this._element.classList.remove(Ki),this._element.classList.add(Gi),this._element.style[a]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;var s=a[0].toUpperCase()+a.slice(1),c="scroll".concat(s);this._queueCallback((function complete(){e._isTransitioning=!1,e._element.classList.remove(Gi),e._element.classList.add(Ki,Hi),e._element.style[a]="",Hr.trigger(e._element,Bi)}),this._element,!0),this._element.style[a]="".concat(this._element[c],"px")}}}},{key:"hide",value:function hide(){var e=this;if(!this._isTransitioning&&this._isShown()&&!Hr.trigger(this._element,Ui).defaultPrevented){var t=this._getDimension();this._element.style[t]="".concat(this._element.getBoundingClientRect()[t],"px"),Dr(this._element),this._element.classList.add(Gi),this._element.classList.remove(Ki,Hi);for(var n=this._triggerArray.length,r=0;r<n;r++){var i=this._triggerArray[r],o=br(i);o&&!this._isShown(o)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;this._element.style[t]="",this._queueCallback((function complete(){e._isTransitioning=!1,e._element.classList.remove(Gi),e._element.classList.add(Ki),Hr.trigger(e._element,zi)}),this._element,!0)}}},{key:"_isShown",value:function _isShown(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._element;return e.classList.contains(Hi)}},{key:"_getConfig",value:function _getConfig(e){return(e=_objectSpread(_objectSpread(_objectSpread({},Vi),si.getDataAttributes(this._element)),e)).toggle=Boolean(e.toggle),e.parent=kr(e.parent),Or(Ri,e,qi),e}},{key:"_getDimension",value:function _getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}},{key:"_initializeChildren",value:function _initializeChildren(){var e=this;if(this._config.parent){var t=ci.find(".".concat(Ki," .").concat(Ki),this._config.parent);ci.find(Ji,this._config.parent).filter((function(e){return!t.includes(e)})).forEach((function(t){var n=br(t);n&&e._addAriaAndCollapsedClass([t],e._isShown(n))}))}}},{key:"_addAriaAndCollapsedClass",value:function _addAriaAndCollapsedClass(e,t){e.length&&e.forEach((function(e){t?e.classList.remove(Yi):e.classList.add(Yi),e.setAttribute("aria-expanded",t)}))}}],[{key:"Default",get:function get(){return Vi}},{key:"NAME",get:function get(){return Ri}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t={};"string"===typeof e&&/show|hide/.test(e)&&(t.toggle=!1);var n=Collapse.getOrCreateInstance(this,t);if("string"===typeof e){if("undefined"===typeof n[e])throw new TypeError('No method named "'.concat(e,'"'));n[e]()}}))}}]),Collapse}(Xr);Hr.on(document,Wi,Ji,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();var t=_r(this);ci.find(t).forEach((function(e){Xi.getOrCreateInstance(e,{toggle:!1}).toggle()}))})),Pr(Xi);var $i="dropdown",Zi=".".concat("bs.dropdown"),eo=".data-api",no="Escape",ro="Space",io="ArrowUp",oo="ArrowDown",ao=new RegExp("".concat(io,"|").concat(oo,"|").concat(no)),so="hide".concat(Zi),co="hidden".concat(Zi),uo="show".concat(Zi),lo="shown".concat(Zi),fo="click".concat(Zi).concat(eo),po="keydown".concat(Zi).concat(eo),ho="keyup".concat(Zi).concat(eo),mo="show",yo='[data-bs-toggle="dropdown"]',vo=".dropdown-menu",go=Lr()?"top-end":"top-start",_o=Lr()?"top-start":"top-end",bo=Lr()?"bottom-end":"bottom-start",Eo=Lr()?"bottom-start":"bottom-end",wo=Lr()?"left-start":"right-start",So=Lr()?"right-start":"left-start",ko={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},Oo={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"},To=function(t){bootstrap_esm_inherits(Dropdown,t);var n=bootstrap_esm_createSuper(Dropdown);function Dropdown(e,t){var r;return bootstrap_esm_classCallCheck(this,Dropdown),(r=n.call(this,e))._popper=null,r._config=r._getConfig(t),r._menu=r._getMenuElement(),r._inNavbar=r._detectNavbar(),r}return bootstrap_esm_createClass(Dropdown,[{key:"toggle",value:function toggle(){return this._isShown()?this.hide():this.show()}},{key:"show",value:function show(){if(!Cr(this._element)&&!this._isShown(this._menu)){var e={relatedTarget:this._element};if(!Hr.trigger(this._element,uo,e).defaultPrevented){var t,n=Dropdown.getParentFromElement(this._element);if(this._inNavbar?si.setDataAttribute(this._menu,"popper","none"):this._createPopper(n),"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav"))(t=[]).concat.apply(t,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){return Hr.on(e,"mouseover",xr)}));this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(mo),this._element.classList.add(mo),Hr.trigger(this._element,lo,e)}}}},{key:"hide",value:function hide(){if(!Cr(this._element)&&this._isShown(this._menu)){var e={relatedTarget:this._element};this._completeHide(e)}}},{key:"dispose",value:function dispose(){this._popper&&this._popper.destroy(),_get(bootstrap_esm_getPrototypeOf(Dropdown.prototype),"dispose",this).call(this)}},{key:"update",value:function update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}},{key:"_completeHide",value:function _completeHide(e){if(!Hr.trigger(this._element,so,e).defaultPrevented){var t;if("ontouchstart"in document.documentElement)(t=[]).concat.apply(t,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){return Hr.off(e,"mouseover",xr)}));this._popper&&this._popper.destroy(),this._menu.classList.remove(mo),this._element.classList.remove(mo),this._element.setAttribute("aria-expanded","false"),si.removeDataAttribute(this._menu,"popper"),Hr.trigger(this._element,co,e)}}},{key:"_getConfig",value:function _getConfig(e){if(e=_objectSpread(_objectSpread(_objectSpread({},this.constructor.Default),si.getDataAttributes(this._element)),e),Or($i,e,this.constructor.DefaultType),"object"===bootstrap_esm_typeof(e.reference)&&!Sr(e.reference)&&"function"!==typeof e.reference.getBoundingClientRect)throw new TypeError("".concat($i.toUpperCase(),': Option "reference" provided type "object" without a required "getBoundingClientRect" method.'));return e}},{key:"_createPopper",value:function _createPopper(t){if("undefined"===typeof e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var n=this._element;"parent"===this._config.reference?n=t:Sr(this._config.reference)?n=kr(this._config.reference):"object"===bootstrap_esm_typeof(this._config.reference)&&(n=this._config.reference);var r=this._getPopperConfig(),i=r.modifiers.find((function(e){return"applyStyles"===e.name&&!1===e.enabled}));this._popper=mr(n,this._menu,r),i&&si.setDataAttribute(this._menu,"popper","static")}},{key:"_isShown",value:function _isShown(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._element;return e.classList.contains(mo)}},{key:"_getMenuElement",value:function _getMenuElement(){return ci.next(this._element,vo)[0]}},{key:"_getPlacement",value:function _getPlacement(){var e=this._element.parentNode;if(e.classList.contains("dropend"))return wo;if(e.classList.contains("dropstart"))return So;var t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?_o:go:t?Eo:bo}},{key:"_detectNavbar",value:function _detectNavbar(){return null!==this._element.closest(".".concat("navbar"))}},{key:"_getOffset",value:function _getOffset(){var e=this,t=this._config.offset;return"string"===typeof t?t.split(",").map((function(e){return Number.parseInt(e,10)})):"function"===typeof t?function(n){return t(n,e._element)}:t}},{key:"_getPopperConfig",value:function _getPopperConfig(){var e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(e.modifiers=[{name:"applyStyles",enabled:!1}]),_objectSpread(_objectSpread({},e),"function"===typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig)}},{key:"_selectMenuItem",value:function _selectMenuItem(e){var t=e.key,n=e.target,r=ci.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(Tr);r.length&&Mr(r,n,t===oo,!r.includes(n)).focus()}}],[{key:"Default",get:function get(){return ko}},{key:"DefaultType",get:function get(){return Oo}},{key:"NAME",get:function get(){return $i}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Dropdown.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}},{key:"clearMenus",value:function clearMenus(e){if(!e||2!==e.button&&("keyup"!==e.type||"Tab"===e.key))for(var t=ci.find(yo),n=0,r=t.length;n<r;n++){var i=Dropdown.getInstance(t[n]);if(i&&!1!==i._config.autoClose&&i._isShown()){var o={relatedTarget:i._element};if(e){var a=e.composedPath(),s=a.includes(i._menu);if(a.includes(i._element)||"inside"===i._config.autoClose&&!s||"outside"===i._config.autoClose&&s)continue;if(i._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;"click"===e.type&&(o.clickEvent=e)}i._completeHide(o)}}}},{key:"getParentFromElement",value:function getParentFromElement(e){return br(e)||e.parentNode}},{key:"dataApiKeydownHandler",value:function dataApiKeydownHandler(e){if(!(/input|textarea/i.test(e.target.tagName)?e.key===ro||e.key!==no&&(e.key!==oo&&e.key!==io||e.target.closest(vo)):!ao.test(e.key))){var t=this.classList.contains(mo);if((t||e.key!==no)&&(e.preventDefault(),e.stopPropagation(),!Cr(this))){var n=this.matches(yo)?this:ci.prev(this,yo)[0],r=Dropdown.getOrCreateInstance(n);if(e.key!==no)return e.key===io||e.key===oo?(t||r.show(),void r._selectMenuItem(e)):void(t&&e.key!==ro||Dropdown.clearMenus());r.hide()}}}}]),Dropdown}(Xr);Hr.on(document,po,yo,To.dataApiKeydownHandler),Hr.on(document,po,vo,To.dataApiKeydownHandler),Hr.on(document,fo,To.clearMenus),Hr.on(document,ho,To.clearMenus),Hr.on(document,fo,yo,(function(e){e.preventDefault(),To.getOrCreateInstance(this).toggle()})),Pr(To);var Co=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ao=".sticky-top",xo=function(){function ScrollBarHelper(){bootstrap_esm_classCallCheck(this,ScrollBarHelper),this._element=document.body}return bootstrap_esm_createClass(ScrollBarHelper,[{key:"getWidth",value:function getWidth(){var e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}},{key:"hide",value:function hide(){var e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",(function(t){return t+e})),this._setElementAttributes(Co,"paddingRight",(function(t){return t+e})),this._setElementAttributes(Ao,"marginRight",(function(t){return t-e}))}},{key:"_disableOverFlow",value:function _disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}},{key:"_setElementAttributes",value:function _setElementAttributes(e,t,n){var r=this,i=this.getWidth();this._applyManipulationCallback(e,(function manipulationCallBack(e){if(!(e!==r._element&&window.innerWidth>e.clientWidth+i)){r._saveInitialAttribute(e,t);var o=window.getComputedStyle(e)[t];e.style[t]="".concat(n(Number.parseFloat(o)),"px")}}))}},{key:"reset",value:function reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(Co,"paddingRight"),this._resetElementAttributes(Ao,"marginRight")}},{key:"_saveInitialAttribute",value:function _saveInitialAttribute(e,t){var n=e.style[t];n&&si.setDataAttribute(e,t,n)}},{key:"_resetElementAttributes",value:function _resetElementAttributes(e,t){this._applyManipulationCallback(e,(function manipulationCallBack(e){var n=si.getDataAttribute(e,t);"undefined"===typeof n?e.style.removeProperty(t):(si.removeDataAttribute(e,t),e.style[t]=n)}))}},{key:"_applyManipulationCallback",value:function _applyManipulationCallback(e,t){Sr(e)?t(e):ci.find(e,this._element).forEach(t)}},{key:"isOverflowing",value:function isOverflowing(){return this.getWidth()>0}}]),ScrollBarHelper}(),Do={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},Io={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},No="backdrop",Lo="show",Po="mousedown.bs.".concat(No),jo=function(){function Backdrop(e){bootstrap_esm_classCallCheck(this,Backdrop),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}return bootstrap_esm_createClass(Backdrop,[{key:"show",value:function show(e){this._config.isVisible?(this._append(),this._config.isAnimated&&Dr(this._getElement()),this._getElement().classList.add(Lo),this._emulateAnimation((function(){jr(e)}))):jr(e)}},{key:"hide",value:function hide(e){var t=this;this._config.isVisible?(this._getElement().classList.remove(Lo),this._emulateAnimation((function(){t.dispose(),jr(e)}))):jr(e)}},{key:"_getElement",value:function _getElement(){if(!this._element){var e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}},{key:"_getConfig",value:function _getConfig(e){return(e=_objectSpread(_objectSpread({},Do),"object"===bootstrap_esm_typeof(e)?e:{})).rootElement=kr(e.rootElement),Or(No,e,Io),e}},{key:"_append",value:function _append(){var e=this;this._isAppended||(this._config.rootElement.append(this._getElement()),Hr.on(this._getElement(),Po,(function(){jr(e._config.clickCallback)})),this._isAppended=!0)}},{key:"dispose",value:function dispose(){this._isAppended&&(Hr.off(this._element,Po),this._element.remove(),this._isAppended=!1)}},{key:"_emulateAnimation",value:function _emulateAnimation(e){Rr(e,this._getElement(),this._config.isAnimated)}}]),Backdrop}(),Ro={trapElement:null,autofocus:!0},Mo={trapElement:"element",autofocus:"boolean"},Fo=".".concat("bs.focustrap"),Vo="focusin".concat(Fo),qo="keydown.tab".concat(Fo),Qo="backward",Bo=function(){function FocusTrap(e){bootstrap_esm_classCallCheck(this,FocusTrap),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}return bootstrap_esm_createClass(FocusTrap,[{key:"activate",value:function activate(){var e=this,t=this._config,n=t.trapElement,r=t.autofocus;this._isActive||(r&&n.focus(),Hr.off(document,Fo),Hr.on(document,Vo,(function(t){return e._handleFocusin(t)})),Hr.on(document,qo,(function(t){return e._handleKeydown(t)})),this._isActive=!0)}},{key:"deactivate",value:function deactivate(){this._isActive&&(this._isActive=!1,Hr.off(document,Fo))}},{key:"_handleFocusin",value:function _handleFocusin(e){var t=e.target,n=this._config.trapElement;if(t!==document&&t!==n&&!n.contains(t)){var r=ci.focusableChildren(n);0===r.length?n.focus():this._lastTabNavDirection===Qo?r[r.length-1].focus():r[0].focus()}}},{key:"_handleKeydown",value:function _handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?Qo:"forward")}},{key:"_getConfig",value:function _getConfig(e){return e=_objectSpread(_objectSpread({},Ro),"object"===bootstrap_esm_typeof(e)?e:{}),Or("focustrap",e,Mo),e}}]),FocusTrap}(),Uo="modal",zo=".".concat("bs.modal"),Wo="Escape",Ho={backdrop:!0,keyboard:!0,focus:!0},Ko={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},Go="hide".concat(zo),Yo="hidePrevented".concat(zo),Jo="hidden".concat(zo),Xo="show".concat(zo),$o="shown".concat(zo),Zo="resize".concat(zo),ea="click.dismiss".concat(zo),ta="keydown.dismiss".concat(zo),na="mouseup.dismiss".concat(zo),ra="mousedown.dismiss".concat(zo),ia="click".concat(zo).concat(".data-api"),oa="modal-open",aa="show",sa="modal-static",ca=function(e){bootstrap_esm_inherits(Modal,e);var t=bootstrap_esm_createSuper(Modal);function Modal(e,n){var r;return bootstrap_esm_classCallCheck(this,Modal),(r=t.call(this,e))._config=r._getConfig(n),r._dialog=ci.findOne(".modal-dialog",r._element),r._backdrop=r._initializeBackDrop(),r._focustrap=r._initializeFocusTrap(),r._isShown=!1,r._ignoreBackdropClick=!1,r._isTransitioning=!1,r._scrollBar=new xo,r}return bootstrap_esm_createClass(Modal,[{key:"toggle",value:function toggle(e){return this._isShown?this.hide():this.show(e)}},{key:"show",value:function show(e){var t=this;this._isShown||this._isTransitioning||(Hr.trigger(this._element,Xo,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(oa),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),Hr.on(this._dialog,ra,(function(){Hr.one(t._element,na,(function(e){e.target===t._element&&(t._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return t._showElement(e)}))))}},{key:"hide",value:function hide(){var e=this;if(this._isShown&&!this._isTransitioning&&!Hr.trigger(this._element,Go).defaultPrevented){this._isShown=!1;var t=this._isAnimated();t&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(aa),Hr.off(this._element,ea),Hr.off(this._dialog,ra),this._queueCallback((function(){return e._hideModal()}),this._element,t)}}},{key:"dispose",value:function dispose(){[window,this._dialog].forEach((function(e){return Hr.off(e,zo)})),this._backdrop.dispose(),this._focustrap.deactivate(),_get(bootstrap_esm_getPrototypeOf(Modal.prototype),"dispose",this).call(this)}},{key:"handleUpdate",value:function handleUpdate(){this._adjustDialog()}},{key:"_initializeBackDrop",value:function _initializeBackDrop(){return new jo({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}},{key:"_initializeFocusTrap",value:function _initializeFocusTrap(){return new Bo({trapElement:this._element})}},{key:"_getConfig",value:function _getConfig(e){return e=_objectSpread(_objectSpread(_objectSpread({},Ho),si.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)?e:{}),Or(Uo,e,Ko),e}},{key:"_showElement",value:function _showElement(e){var t=this,n=this._isAnimated(),r=ci.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,r&&(r.scrollTop=0),n&&Dr(this._element),this._element.classList.add(aa);this._queueCallback((function transitionComplete(){t._config.focus&&t._focustrap.activate(),t._isTransitioning=!1,Hr.trigger(t._element,$o,{relatedTarget:e})}),this._dialog,n)}},{key:"_setEscapeEvent",value:function _setEscapeEvent(){var e=this;this._isShown?Hr.on(this._element,ta,(function(t){e._config.keyboard&&t.key===Wo?(t.preventDefault(),e.hide()):e._config.keyboard||t.key!==Wo||e._triggerBackdropTransition()})):Hr.off(this._element,ta)}},{key:"_setResizeEvent",value:function _setResizeEvent(){var e=this;this._isShown?Hr.on(window,Zo,(function(){return e._adjustDialog()})):Hr.off(window,Zo)}},{key:"_hideModal",value:function _hideModal(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((function(){document.body.classList.remove(oa),e._resetAdjustments(),e._scrollBar.reset(),Hr.trigger(e._element,Jo)}))}},{key:"_showBackdrop",value:function _showBackdrop(e){var t=this;Hr.on(this._element,ea,(function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&(!0===t._config.backdrop?t.hide():"static"===t._config.backdrop&&t._triggerBackdropTransition())})),this._backdrop.show(e)}},{key:"_isAnimated",value:function _isAnimated(){return this._element.classList.contains("fade")}},{key:"_triggerBackdropTransition",value:function _triggerBackdropTransition(){var e=this;if(!Hr.trigger(this._element,Yo).defaultPrevented){var t=this._element,n=t.classList,r=t.scrollHeight,i=t.style,o=r>document.documentElement.clientHeight;!o&&"hidden"===i.overflowY||n.contains(sa)||(o||(i.overflowY="hidden"),n.add(sa),this._queueCallback((function(){n.remove(sa),o||e._queueCallback((function(){i.overflowY=""}),e._dialog)}),this._dialog),this._element.focus())}}},{key:"_adjustDialog",value:function _adjustDialog(){var e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;(!n&&e&&!Lr()||n&&!e&&Lr())&&(this._element.style.paddingLeft="".concat(t,"px")),(n&&!e&&!Lr()||!n&&e&&Lr())&&(this._element.style.paddingRight="".concat(t,"px"))}},{key:"_resetAdjustments",value:function _resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}}],[{key:"Default",get:function get(){return Ho}},{key:"NAME",get:function get(){return Uo}},{key:"jQueryInterface",value:function jQueryInterface(e,t){return this.each((function(){var n=Modal.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof n[e])throw new TypeError('No method named "'.concat(e,'"'));n[e](t)}}))}}]),Modal}(Xr);Hr.on(document,ia,'[data-bs-toggle="modal"]',(function(e){var t=this,n=br(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),Hr.one(n,Xo,(function(e){e.defaultPrevented||Hr.one(n,Jo,(function(){Tr(t)&&t.focus()}))})),ca.getOrCreateInstance(n).toggle(this)})),$r(ca),Pr(ca);var ua="offcanvas",la=".".concat("bs.offcanvas"),fa=".data-api",pa="load".concat(la).concat(fa),da={backdrop:!0,keyboard:!0,scroll:!1},ha={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},ma="show",ya=".offcanvas.show",va="show".concat(la),ga="shown".concat(la),_a="hide".concat(la),ba="hidden".concat(la),Ea="click".concat(la).concat(fa),wa="keydown.dismiss".concat(la),Sa=function(e){bootstrap_esm_inherits(Offcanvas,e);var t=bootstrap_esm_createSuper(Offcanvas);function Offcanvas(e,n){var r;return bootstrap_esm_classCallCheck(this,Offcanvas),(r=t.call(this,e))._config=r._getConfig(n),r._isShown=!1,r._backdrop=r._initializeBackDrop(),r._focustrap=r._initializeFocusTrap(),r._addEventListeners(),r}return bootstrap_esm_createClass(Offcanvas,[{key:"toggle",value:function toggle(e){return this._isShown?this.hide():this.show(e)}},{key:"show",value:function show(e){var t=this;if(!this._isShown&&!Hr.trigger(this._element,va,{relatedTarget:e}).defaultPrevented){this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new xo).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ma);this._queueCallback((function completeCallBack(){t._config.scroll||t._focustrap.activate(),Hr.trigger(t._element,ga,{relatedTarget:e})}),this._element,!0)}}},{key:"hide",value:function hide(){var e=this;if(this._isShown&&!Hr.trigger(this._element,_a).defaultPrevented){this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(ma),this._backdrop.hide();this._queueCallback((function completeCallback(){e._element.setAttribute("aria-hidden",!0),e._element.removeAttribute("aria-modal"),e._element.removeAttribute("role"),e._element.style.visibility="hidden",e._config.scroll||(new xo).reset(),Hr.trigger(e._element,ba)}),this._element,!0)}}},{key:"dispose",value:function dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),_get(bootstrap_esm_getPrototypeOf(Offcanvas.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function _getConfig(e){return e=_objectSpread(_objectSpread(_objectSpread({},da),si.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)?e:{}),Or(ua,e,ha),e}},{key:"_initializeBackDrop",value:function _initializeBackDrop(){var e=this;return new jo({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:function clickCallback(){return e.hide()}})}},{key:"_initializeFocusTrap",value:function _initializeFocusTrap(){return new Bo({trapElement:this._element})}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;Hr.on(this._element,wa,(function(t){e._config.keyboard&&"Escape"===t.key&&e.hide()}))}}],[{key:"NAME",get:function get(){return ua}},{key:"Default",get:function get(){return da}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Offcanvas.getOrCreateInstance(this,e);if("string"===typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method named "'.concat(e,'"'));t[e](this)}}))}}]),Offcanvas}(Xr);Hr.on(document,Ea,'[data-bs-toggle="offcanvas"]',(function(e){var t=this,n=br(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),!Cr(this)){Hr.one(n,ba,(function(){Tr(t)&&t.focus()}));var r=ci.findOne(ya);r&&r!==n&&Sa.getInstance(r).hide(),Sa.getOrCreateInstance(n).toggle(this)}})),Hr.on(window,pa,(function(){return ci.find(ya).forEach((function(e){return Sa.getOrCreateInstance(e).show()}))})),$r(Sa),Pr(Sa);var ka=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Oa=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,Ta=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Ca={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function sanitizeHtml(e,t,n){var r;if(!e.length)return e;if(n&&"function"===typeof n)return n(e);for(var i=(new window.DOMParser).parseFromString(e,"text/html"),o=Object.keys(t),a=(r=[]).concat.apply(r,bootstrap_esm_toConsumableArray(i.body.querySelectorAll("*"))),s=function _loop(e,n){var r,i=a[e],s=i.nodeName.toLowerCase();if(!o.includes(s))return i.remove(),"continue";var c=(r=[]).concat.apply(r,bootstrap_esm_toConsumableArray(i.attributes)),u=[].concat(t["*"]||[],t[s]||[]);c.forEach((function(e){(function allowedAttribute(e,t){var n=e.nodeName.toLowerCase();if(t.includes(n))return!ka.has(n)||Boolean(Oa.test(e.nodeValue)||Ta.test(e.nodeValue));for(var r=t.filter((function(e){return e instanceof RegExp})),i=0,o=r.length;i<o;i++)if(r[i].test(n))return!0;return!1})(e,u)||i.removeAttribute(e.nodeName)}))},c=0,u=a.length;c<u;c++)s(c);return i.body.innerHTML}var Aa="tooltip",xa=".".concat("bs.tooltip"),Da=new Set(["sanitize","allowList","sanitizeFn"]),Ia={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Na={AUTO:"auto",TOP:"top",RIGHT:Lr()?"left":"right",BOTTOM:"bottom",LEFT:Lr()?"right":"left"},La={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:Ca,popperConfig:null},Pa={HIDE:"hide".concat(xa),HIDDEN:"hidden".concat(xa),SHOW:"show".concat(xa),SHOWN:"shown".concat(xa),INSERTED:"inserted".concat(xa),CLICK:"click".concat(xa),FOCUSIN:"focusin".concat(xa),FOCUSOUT:"focusout".concat(xa),MOUSEENTER:"mouseenter".concat(xa),MOUSELEAVE:"mouseleave".concat(xa)},ja="fade",Ra="show",Ma="show",Fa="out",Va=".".concat("modal"),qa="hide.bs.modal",Qa="hover",Ba="focus",Ua=function(t){bootstrap_esm_inherits(Tooltip,t);var n=bootstrap_esm_createSuper(Tooltip);function Tooltip(t,r){var i;if(bootstrap_esm_classCallCheck(this,Tooltip),"undefined"===typeof e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");return(i=n.call(this,t))._isEnabled=!0,i._timeout=0,i._hoverState="",i._activeTrigger={},i._popper=null,i._config=i._getConfig(r),i.tip=null,i._setListeners(),i}return bootstrap_esm_createClass(Tooltip,[{key:"enable",value:function enable(){this._isEnabled=!0}},{key:"disable",value:function disable(){this._isEnabled=!1}},{key:"toggleEnabled",value:function toggleEnabled(){this._isEnabled=!this._isEnabled}},{key:"toggle",value:function toggle(e){if(this._isEnabled)if(e){var t=this._initializeOnDelegatedTarget(e);t._activeTrigger.click=!t._activeTrigger.click,t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(this.getTipElement().classList.contains(Ra))return void this._leave(null,this);this._enter(null,this)}}},{key:"dispose",value:function dispose(){clearTimeout(this._timeout),Hr.off(this._element.closest(Va),qa,this._hideModalHandler),this.tip&&this.tip.remove(),this._popper&&this._popper.destroy(),_get(bootstrap_esm_getPrototypeOf(Tooltip.prototype),"dispose",this).call(this)}},{key:"show",value:function show(){var e=this;if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this._isEnabled){var t=Hr.trigger(this._element,this.constructor.Event.SHOW),n=Ar(this._element),r=null===n?this._element.ownerDocument.documentElement.contains(this._element):n.contains(this._element);if(!t.defaultPrevented&&r){var i=this.getTipElement(),o=function getUID(e){do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e}(this.constructor.NAME);i.setAttribute("id",o),this._element.setAttribute("aria-describedby",o),this._config.animation&&i.classList.add(ja);var a="function"===typeof this._config.placement?this._config.placement.call(this,i,this._element):this._config.placement,s=this._getAttachment(a);this._addAttachmentClass(s);var c=this._config.container;Gr(i,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(c.append(i),Hr.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=mr(this._element,i,this._getPopperConfig(s)),i.classList.add(Ra);var u,l,f=this._resolvePossibleFunction(this._config.customClass);if(f)(u=i.classList).add.apply(u,bootstrap_esm_toConsumableArray(f.split(" ")));if("ontouchstart"in document.documentElement)(l=[]).concat.apply(l,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){Hr.on(e,"mouseover",xr)}));var p=this.tip.classList.contains(ja);this._queueCallback((function complete(){var t=e._hoverState;e._hoverState=null,Hr.trigger(e._element,e.constructor.Event.SHOWN),t===Fa&&e._leave(null,e)}),this.tip,p)}}}},{key:"hide",value:function hide(){var e=this;if(this._popper){var t=this.getTipElement();if(!Hr.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented){var n;if(t.classList.remove(Ra),"ontouchstart"in document.documentElement)(n=[]).concat.apply(n,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){return Hr.off(e,"mouseover",xr)}));this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;var r=this.tip.classList.contains(ja);this._queueCallback((function complete(){e._isWithActiveTrigger()||(e._hoverState!==Ma&&t.remove(),e._cleanTipClass(),e._element.removeAttribute("aria-describedby"),Hr.trigger(e._element,e.constructor.Event.HIDDEN),e._popper&&(e._popper.destroy(),e._popper=null))}),this.tip,r),this._hoverState=""}}}},{key:"update",value:function update(){null!==this._popper&&this._popper.update()}},{key:"isWithContent",value:function isWithContent(){return Boolean(this.getTitle())}},{key:"getTipElement",value:function getTipElement(){if(this.tip)return this.tip;var e=document.createElement("div");e.innerHTML=this._config.template;var t=e.children[0];return this.setContent(t),t.classList.remove(ja,Ra),this.tip=t,this.tip}},{key:"setContent",value:function setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),".tooltip-inner")}},{key:"_sanitizeAndSetContent",value:function _sanitizeAndSetContent(e,t,n){var r=ci.findOne(n,e);t||!r?this.setElementContent(r,t):r.remove()}},{key:"setElementContent",value:function setElementContent(e,t){if(null!==e)return Sr(t)?(t=kr(t),void(this._config.html?t.parentNode!==e&&(e.innerHTML="",e.append(t)):e.textContent=t.textContent)):void(this._config.html?(this._config.sanitize&&(t=sanitizeHtml(t,this._config.allowList,this._config.sanitizeFn)),e.innerHTML=t):e.textContent=t)}},{key:"getTitle",value:function getTitle(){var e=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(e)}},{key:"updateAttachment",value:function updateAttachment(e){return"right"===e?"end":"left"===e?"start":e}},{key:"_initializeOnDelegatedTarget",value:function _initializeOnDelegatedTarget(e,t){return t||this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}},{key:"_getOffset",value:function _getOffset(){var e=this,t=this._config.offset;return"string"===typeof t?t.split(",").map((function(e){return Number.parseInt(e,10)})):"function"===typeof t?function(n){return t(n,e._element)}:t}},{key:"_resolvePossibleFunction",value:function _resolvePossibleFunction(e){return"function"===typeof e?e.call(this._element):e}},{key:"_getPopperConfig",value:function _getPopperConfig(e){var t=this,n={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:".".concat(this.constructor.NAME,"-arrow")}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:function fn(e){return t._handlePopperPlacementChange(e)}}],onFirstUpdate:function onFirstUpdate(e){e.options.placement!==e.placement&&t._handlePopperPlacementChange(e)}};return _objectSpread(_objectSpread({},n),"function"===typeof this._config.popperConfig?this._config.popperConfig(n):this._config.popperConfig)}},{key:"_addAttachmentClass",value:function _addAttachmentClass(e){this.getTipElement().classList.add("".concat(this._getBasicClassPrefix(),"-").concat(this.updateAttachment(e)))}},{key:"_getAttachment",value:function _getAttachment(e){return Na[e.toUpperCase()]}},{key:"_setListeners",value:function _setListeners(){var e=this;this._config.trigger.split(" ").forEach((function(t){if("click"===t)Hr.on(e._element,e.constructor.Event.CLICK,e._config.selector,(function(t){return e.toggle(t)}));else if("manual"!==t){var n=t===Qa?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,r=t===Qa?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;Hr.on(e._element,n,e._config.selector,(function(t){return e._enter(t)})),Hr.on(e._element,r,e._config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e._element&&e.hide()},Hr.on(this._element.closest(Va),qa,this._hideModalHandler),this._config.selector?this._config=_objectSpread(_objectSpread({},this._config),{},{trigger:"manual",selector:""}):this._fixTitle()}},{key:"_fixTitle",value:function _fixTitle(){var e=this._element.getAttribute("title"),t=bootstrap_esm_typeof(this._element.getAttribute("data-bs-original-title"));(e||"string"!==t)&&(this._element.setAttribute("data-bs-original-title",e||""),!e||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}},{key:"_enter",value:function _enter(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusin"===e.type?Ba:Qa]=!0),t.getTipElement().classList.contains(Ra)||t._hoverState===Ma?t._hoverState=Ma:(clearTimeout(t._timeout),t._hoverState=Ma,t._config.delay&&t._config.delay.show?t._timeout=setTimeout((function(){t._hoverState===Ma&&t.show()}),t._config.delay.show):t.show())}},{key:"_leave",value:function _leave(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusout"===e.type?Ba:Qa]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=Fa,t._config.delay&&t._config.delay.hide?t._timeout=setTimeout((function(){t._hoverState===Fa&&t.hide()}),t._config.delay.hide):t.hide())}},{key:"_isWithActiveTrigger",value:function _isWithActiveTrigger(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}},{key:"_getConfig",value:function _getConfig(e){var t=si.getDataAttributes(this._element);return Object.keys(t).forEach((function(e){Da.has(e)&&delete t[e]})),(e=_objectSpread(_objectSpread(_objectSpread({},this.constructor.Default),t),"object"===bootstrap_esm_typeof(e)&&e?e:{})).container=!1===e.container?document.body:kr(e.container),"number"===typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"===typeof e.title&&(e.title=e.title.toString()),"number"===typeof e.content&&(e.content=e.content.toString()),Or(Aa,e,this.constructor.DefaultType),e.sanitize&&(e.template=sanitizeHtml(e.template,e.allowList,e.sanitizeFn)),e}},{key:"_getDelegateConfig",value:function _getDelegateConfig(){var e={};for(var t in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e}},{key:"_cleanTipClass",value:function _cleanTipClass(){var e=this.getTipElement(),t=new RegExp("(^|\\s)".concat(this._getBasicClassPrefix(),"\\S+"),"g"),n=e.getAttribute("class").match(t);null!==n&&n.length>0&&n.map((function(e){return e.trim()})).forEach((function(t){return e.classList.remove(t)}))}},{key:"_getBasicClassPrefix",value:function _getBasicClassPrefix(){return"bs-tooltip"}},{key:"_handlePopperPlacementChange",value:function _handlePopperPlacementChange(e){var t=e.state;t&&(this.tip=t.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement)))}}],[{key:"Default",get:function get(){return La}},{key:"NAME",get:function get(){return Aa}},{key:"Event",get:function get(){return Pa}},{key:"DefaultType",get:function get(){return Ia}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Tooltip.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),Tooltip}(Xr);Pr(Ua);var za=".".concat("bs.popover"),Wa=_objectSpread(_objectSpread({},Ua.Default),{},{placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Ha=_objectSpread(_objectSpread({},Ua.DefaultType),{},{content:"(string|element|function)"}),Ka={HIDE:"hide".concat(za),HIDDEN:"hidden".concat(za),SHOW:"show".concat(za),SHOWN:"shown".concat(za),INSERTED:"inserted".concat(za),CLICK:"click".concat(za),FOCUSIN:"focusin".concat(za),FOCUSOUT:"focusout".concat(za),MOUSEENTER:"mouseenter".concat(za),MOUSELEAVE:"mouseleave".concat(za)};Pr(function(e){bootstrap_esm_inherits(Popover,e);var t=bootstrap_esm_createSuper(Popover);function Popover(){return bootstrap_esm_classCallCheck(this,Popover),t.apply(this,arguments)}return bootstrap_esm_createClass(Popover,[{key:"isWithContent",value:function isWithContent(){return this.getTitle()||this._getContent()}},{key:"setContent",value:function setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(e,this._getContent(),".popover-body")}},{key:"_getContent",value:function _getContent(){return this._resolvePossibleFunction(this._config.content)}},{key:"_getBasicClassPrefix",value:function _getBasicClassPrefix(){return"bs-popover"}}],[{key:"Default",get:function get(){return Wa}},{key:"NAME",get:function get(){return"popover"}},{key:"Event",get:function get(){return Ka}},{key:"DefaultType",get:function get(){return Ha}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Popover.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),Popover}(Ua));var Ga="scrollspy",Ya=".".concat("bs.scrollspy"),Ja={offset:10,method:"auto",target:""},Xa={offset:"number",method:"string",target:"(string|element)"},$a="activate".concat(Ya),Za="scroll".concat(Ya),es="load".concat(Ya).concat(".data-api"),ts="dropdown-item",ns="active",rs=".nav-link",is=".list-group-item",os="".concat(rs,", ").concat(is,", .").concat(ts),as="position",ss=function(e){bootstrap_esm_inherits(ScrollSpy,e);var t=bootstrap_esm_createSuper(ScrollSpy);function ScrollSpy(e,n){var r;return bootstrap_esm_classCallCheck(this,ScrollSpy),(r=t.call(this,e))._scrollElement="BODY"===r._element.tagName?window:r._element,r._config=r._getConfig(n),r._offsets=[],r._targets=[],r._activeTarget=null,r._scrollHeight=0,Hr.on(r._scrollElement,Za,(function(){return r._process()})),r.refresh(),r._process(),r}return bootstrap_esm_createClass(ScrollSpy,[{key:"refresh",value:function refresh(){var e=this,t=this._scrollElement===this._scrollElement.window?"offset":as,n="auto"===this._config.method?t:this._config.method,r=n===as?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),ci.find(os,this._config.target).map((function(e){var t=_r(e),i=t?ci.findOne(t):null;if(i){var o=i.getBoundingClientRect();if(o.width||o.height)return[si[n](i).top+r,t]}return null})).filter((function(e){return e})).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))}},{key:"dispose",value:function dispose(){Hr.off(this._scrollElement,Ya),_get(bootstrap_esm_getPrototypeOf(ScrollSpy.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function _getConfig(e){return(e=_objectSpread(_objectSpread(_objectSpread({},Ja),si.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)&&e?e:{})).target=kr(e.target)||document.documentElement,Or(Ga,e,Xa),e}},{key:"_getScrollTop",value:function _getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}},{key:"_getScrollHeight",value:function _getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}},{key:"_getOffsetHeight",value:function _getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}},{key:"_process",value:function _process(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;){this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&("undefined"===typeof this._offsets[i+1]||e<this._offsets[i+1])&&this._activate(this._targets[i])}}}},{key:"_activate",value:function _activate(e){this._activeTarget=e,this._clear();var t=os.split(",").map((function(t){return"".concat(t,'[data-bs-target="').concat(e,'"],').concat(t,'[href="').concat(e,'"]')})),n=ci.findOne(t.join(","),this._config.target);n.classList.add(ns),n.classList.contains(ts)?ci.findOne(".dropdown-toggle",n.closest(".dropdown")).classList.add(ns):ci.parents(n,".nav, .list-group").forEach((function(e){ci.prev(e,"".concat(rs,", ").concat(is)).forEach((function(e){return e.classList.add(ns)})),ci.prev(e,".nav-item").forEach((function(e){ci.children(e,rs).forEach((function(e){return e.classList.add(ns)}))}))})),Hr.trigger(this._scrollElement,$a,{relatedTarget:e})}},{key:"_clear",value:function _clear(){ci.find(os,this._config.target).filter((function(e){return e.classList.contains(ns)})).forEach((function(e){return e.classList.remove(ns)}))}}],[{key:"Default",get:function get(){return Ja}},{key:"NAME",get:function get(){return Ga}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=ScrollSpy.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),ScrollSpy}(Xr);Hr.on(window,es,(function(){ci.find('[data-bs-spy="scroll"]').forEach((function(e){return new ss(e)}))})),Pr(ss);var cs=".".concat("bs.tab"),us="hide".concat(cs),ls="hidden".concat(cs),fs="show".concat(cs),ps="shown".concat(cs),ds="click".concat(cs).concat(".data-api"),hs="active",ms="fade",ys="show",vs=".active",gs=":scope > li > .active",_s=function(e){bootstrap_esm_inherits(Tab,e);var t=bootstrap_esm_createSuper(Tab);function Tab(){return bootstrap_esm_classCallCheck(this,Tab),t.apply(this,arguments)}return bootstrap_esm_createClass(Tab,[{key:"show",value:function show(){var e=this;if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE||!this._element.classList.contains(hs)){var t,n=br(this._element),r=this._element.closest(".nav, .list-group");if(r){var i="UL"===r.nodeName||"OL"===r.nodeName?gs:vs;t=(t=ci.find(i,r))[t.length-1]}var o=t?Hr.trigger(t,us,{relatedTarget:this._element}):null;if(!(Hr.trigger(this._element,fs,{relatedTarget:t}).defaultPrevented||null!==o&&o.defaultPrevented)){this._activate(this._element,r);var a=function complete(){Hr.trigger(t,ls,{relatedTarget:e._element}),Hr.trigger(e._element,ps,{relatedTarget:t})};n?this._activate(n,n.parentNode,a):a()}}}},{key:"_activate",value:function _activate(e,t,n){var r=this,i=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?ci.children(t,vs):ci.find(gs,t))[0],o=n&&i&&i.classList.contains(ms),a=function complete(){return r._transitionComplete(e,i,n)};i&&o?(i.classList.remove(ys),this._queueCallback(a,e,!0)):a()}},{key:"_transitionComplete",value:function _transitionComplete(e,t,n){if(t){t.classList.remove(hs);var r=ci.findOne(":scope > .dropdown-menu .active",t.parentNode);r&&r.classList.remove(hs),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}e.classList.add(hs),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),Dr(e),e.classList.contains(ms)&&e.classList.add(ys);var i=e.parentNode;if(i&&"LI"===i.nodeName&&(i=i.parentNode),i&&i.classList.contains("dropdown-menu")){var o=e.closest(".dropdown");o&&ci.find(".dropdown-toggle",o).forEach((function(e){return e.classList.add(hs)})),e.setAttribute("aria-expanded",!0)}n&&n()}}],[{key:"NAME",get:function get(){return"tab"}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Tab.getOrCreateInstance(this);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),Tab}(Xr);Hr.on(document,ds,'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(e){(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Cr(this))||_s.getOrCreateInstance(this).show()})),Pr(_s);var bs="toast",Es=".".concat("bs.toast"),ws="mouseover".concat(Es),Ss="mouseout".concat(Es),ks="focusin".concat(Es),Os="focusout".concat(Es),Ts="hide".concat(Es),Cs="hidden".concat(Es),As="show".concat(Es),xs="shown".concat(Es),Ds="hide",Is="show",Ns="showing",Ls={animation:"boolean",autohide:"boolean",delay:"number"},Ps={animation:!0,autohide:!0,delay:5e3},js=function(e){bootstrap_esm_inherits(Toast,e);var t=bootstrap_esm_createSuper(Toast);function Toast(e,n){var r;return bootstrap_esm_classCallCheck(this,Toast),(r=t.call(this,e))._config=r._getConfig(n),r._timeout=null,r._hasMouseInteraction=!1,r._hasKeyboardInteraction=!1,r._setListeners(),r}return bootstrap_esm_createClass(Toast,[{key:"show",value:function show(){var e=this;if(!Hr.trigger(this._element,As).defaultPrevented){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(Ds),Dr(this._element),this._element.classList.add(Is),this._element.classList.add(Ns),this._queueCallback((function complete(){e._element.classList.remove(Ns),Hr.trigger(e._element,xs),e._maybeScheduleHide()}),this._element,this._config.animation)}}},{key:"hide",value:function hide(){var e=this;if(this._element.classList.contains(Is)&&!Hr.trigger(this._element,Ts).defaultPrevented){this._element.classList.add(Ns),this._queueCallback((function complete(){e._element.classList.add(Ds),e._element.classList.remove(Ns),e._element.classList.remove(Is),Hr.trigger(e._element,Cs)}),this._element,this._config.animation)}}},{key:"dispose",value:function dispose(){this._clearTimeout(),this._element.classList.contains(Is)&&this._element.classList.remove(Is),_get(bootstrap_esm_getPrototypeOf(Toast.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function _getConfig(e){return e=_objectSpread(_objectSpread(_objectSpread({},Ps),si.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)&&e?e:{}),Or(bs,e,this.constructor.DefaultType),e}},{key:"_maybeScheduleHide",value:function _maybeScheduleHide(){var e=this;this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((function(){e.hide()}),this._config.delay)))}},{key:"_onInteraction",value:function _onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)this._clearTimeout();else{var n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}}},{key:"_setListeners",value:function _setListeners(){var e=this;Hr.on(this._element,ws,(function(t){return e._onInteraction(t,!0)})),Hr.on(this._element,Ss,(function(t){return e._onInteraction(t,!1)})),Hr.on(this._element,ks,(function(t){return e._onInteraction(t,!0)})),Hr.on(this._element,Os,(function(t){return e._onInteraction(t,!1)}))}},{key:"_clearTimeout",value:function _clearTimeout(){clearTimeout(this._timeout),this._timeout=null}}],[{key:"DefaultType",get:function get(){return Ls}},{key:"Default",get:function get(){return Ps}},{key:"NAME",get:function get(){return bs}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Toast.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e](this)}}))}}]),Toast}(Xr);function _links_defineProperties(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)}}$r(js),Pr(js);!function(e){var t="_main.links",n=document,r=n.body,i=function(){function MainUILinks(){!function _links_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,MainUILinks),function _links_defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(this,"window",void 0)}return function _links_createClass(e,t,n){return t&&_links_defineProperties(e.prototype,t),n&&_links_defineProperties(e,n),e}(MainUILinks,null,[{key:"init",value:function init(){var n=this;n.GraphPage=null,console.log("".concat(t,": init")),n.loaded(),e.addEventListener("popstate",(function(e){n.popState(e)}))}},{key:"loaded",value:function loaded(){var e=this;n.querySelectorAll(".graphql-page").forEach((function(t,n){var r=t.getAttribute("href");t.setAttribute("data-".concat(e.name,"-id"),r),t.addEventListener("click",e.loadClick)}))}},{key:"setActiveLinks",value:function setActiveLinks(e){n.querySelectorAll("[data-".concat(this.name,'-id="').concat(e,'"]')).forEach((function(e){e.classList.add("active")}))}},{key:"reset",value:function reset(){n.activeElement.blur(),n.querySelectorAll(".graphql-page,.nav-item").forEach((function(e){e.classList.remove("active","loading")}))}},{key:"popState",value:function popState(n){var r=this;if(d.show(),n.state&&n.state.page){console.log("".concat(t,": [popstate] load"));var i=JSON.parse(n.state.page);i.current=null,i.popstate=!0,r.reset(),r.setActiveLinks(n.state.link),r.GraphPage||(console.log("".concat(t,": [popstate] GraphPage is missing. Have to render it first")),r.GraphPage=ReactDOM.render(React.createElement(Sn,null),document.getElementById("MainContent"))),r.GraphPage.setState(i),d.hide(),window.dispatchEvent(new Event(c.AJAX))}else n.state&&n.state.landing?(console.log("".concat(t,": [popstate] go to landing")),e.location.href=n.state.landing):(console.warn("".concat(t,": [popstate] state is missing")),console.log(n),d.hide())}},{key:"loadClick",value:function loadClick(i){console.groupCollapsed("".concat(t,": load on click")),i.preventDefault();var o=MainUILinks,a=i.currentTarget;d.show(),o.reset(),a.classList.add("loading"),a.classList.remove("response-404","response-500","response-523"),r.classList.add("ajax-loading");var s=(0,kn.getParents)(a,".collapse");s.length&&s.forEach((function(e){var t=Xi.getInstance(e);t&&t.hide()})),o.GraphPage||(o.GraphPage=ReactDOM.render(React.createElement(Sn,null),document.getElementById("MainContent")));var u=a.getAttribute("href")||a.getAttribute("data-href");o.GraphPage.state.current=a,o.GraphPage.load(u).then((function(e){r.classList.remove("ajax-loading"),a.classList.remove("loading"),a.classList.add("active"),n.loading_apollo_link=null,o.GraphPage.state.Link&&(window.history.pushState({page:JSON.stringify(o.GraphPage.state),link:a.getAttribute("data-".concat(o.name,"-id"))},o.GraphPage.state.Title,o.GraphPage.state.Link),o.setActiveLinks(o.GraphPage.state.Link)),d.hide(),window.dispatchEvent(new Event(c.AJAX)),console.groupEnd("".concat(t,": load on click"))})).catch((function(n){console.error("".concat(t,": loading error")),console.log(n),a.classList.add("error","response-".concat(n.status)),console.groupEnd("".concat(t,": load on click")),console.log("".concat(t,": reloading page ").concat(u)),e.location.href=u}))}}]),MainUILinks}();e.addEventListener("".concat(c.LOADED),(function(){i.init()})),e.addEventListener("".concat(c.AJAX),(function(){i.loaded()}))}(window);var Rs=__webpack_require__(885),Ms=(function(e){var t,n="_main.online",r=document,i=r.body,o=r.querySelector('meta[name="ping"]'),a=!1,s=function UPDATE_ONLINE_STATUS(r){a||(a=!0,r?(i.classList.contains("is-offline")?(console.log("".concat(n,": back Online")),e.dispatchEvent(new Event(c.BACKONLINE))):(console.log("".concat(n,": Online")),e.dispatchEvent(new Event(c.ONLINE))),i.classList.add("is-online"),i.classList.remove("is-offline"),o&&!t&&(console.log("".concat(n,": SESSION_PING is active")),t=setInterval(l,3e5))):(console.log("".concat(n,": Offline")),i.classList.add("is-offline"),i.classList.remove("is-online"),clearInterval(t),t=null,e.dispatchEvent(new Event(c.OFFLINE))),a=!1)},u=!1,l=function SESSION_PING(){if(!u&&!i.classList.contains("is-offline")){var e=o.getAttribute("content");console.log("".concat(n,": session ping")),u=!0,Rs.post(e,{}).then((function(e){u=!1,s(!0)})).catch((function(e){console.error(e),console.warn("".concat(n,": SESSION_PING failed")),u=!1,s(!1)}))}},f=function navigatorStateUpdate(){"undefined"!==typeof navigator.onLine&&(navigator.onLine?s(!0):s(!1))};e.addEventListener("".concat(c.OFFLINE),(function(){s(!1)})),e.addEventListener("".concat(c.ONLINE),(function(){s(!0)})),e.addEventListener("".concat(c.LOADED),f),e.addEventListener("".concat(c.AJAX),f)}(window),__webpack_require__(885));(function(e){var t="_main.lazy-images",n=document,r=(n.body,document.querySelector('meta[name="api_static_domain"]')),i=r?r.getAttribute("content"):"".concat(window.location.protocol,"//").concat(window.location.host);console.log("".concat(t," [static url]: ").concat(i));var o=function loadLazyImages(){console.log("".concat(t,": Load lazy images")),n.querySelectorAll("[data-lazy-src]").forEach((function(e){e.classList.remove("empty"),e.classList.add("loading"),e.classList.remove("loading__network-error");var n=e.getAttribute("data-lazy-src"),r=n.startsWith("http")?n:i+n;Ms.get(r,{responseType:"blob"}).then((function(t){var n=new FileReader;n.readAsDataURL(t.data),n.onload=function(){var t=n.result;e.setAttribute("src",t),e.classList.remove("loading"),e.classList.add("loading__success")}})).catch((function(n){if(n.response){switch(n.response.status){case 404:msg="Not Found.";break;case 500:msg="Server issue, please try again latter.";break;default:msg="Something went wrong."}console.error("".concat(t," [").concat(r,"]: ").concat(msg))}else n.request?(msg="No response received",console.error("".concat(t," [").concat(r,"]: ").concat(msg))):console.error("".concat(t," [").concat(r,"]: ").concat(n.message));e.classList.remove("loading"),e.classList.add("loading__network-error"),e.classList.add("empty")}))}))};e.addEventListener("".concat(c.LODEDANDREADY),o),e.addEventListener("".concat(c.AJAX),o)})(window),function(e){var t="_layout",n=document;n.body;e.addEventListener("".concat(c.LOADED),(function(){!function init_fonts(){console.log("".concat(t,": init_fonts"));var e=n.createElement("link");e.rel="stylesheet",e.type="text/css",e.media="all",e.href="https://fonts.googleapis.com/css?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap",n.getElementsByTagName("head")[0].appendChild(e)}()}))}(window);function test_build_importAll(e){return e.keys().map(e)}test_build_importAll(__webpack_require__(310)),test_build_importAll(__webpack_require__(761))}()}();