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

2 lines
434 KiB
JavaScript

/*! For license information please see app.js.LICENSE.txt */
!function(){var e={163:function(e,t,n){e.exports=n(900)},641:function(e,t,n){"use strict";var r=n(233),i=n(858),d=n(194),h=n(588),y=n(972),v=n(33),g=n(980),_=n(224);e.exports=function xhrAdapter(e){return new Promise((function dispatchXhrRequest(t,n){var b=e.data,w=e.headers;r.isFormData(b)&&delete w["Content-Type"];var E=new XMLHttpRequest;if(e.auth){var S=e.auth.username||"",k=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";w.Authorization="Basic "+btoa(S+":"+k)}var O=y(e.baseURL,e.url);if(E.open(e.method.toUpperCase(),h(O,e.params,e.paramsSerializer),!0),E.timeout=e.timeout,E.onreadystatechange=function handleLoad(){if(E&&4===E.readyState&&(0!==E.status||E.responseURL&&0===E.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in E?v(E.getAllResponseHeaders()):null,d={data:e.responseType&&"text"!==e.responseType?E.response:E.responseText,status:E.status,statusText:E.statusText,headers:r,config:e,request:E};i(t,n,d),E=null}},E.onabort=function handleAbort(){E&&(n(_("Request aborted",e,"ECONNABORTED",E)),E=null)},E.onerror=function handleError(){n(_("Network Error",e,null,E)),E=null},E.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(_(t,e,"ECONNABORTED",E)),E=null},r.isStandardBrowserEnv()){var C=(e.withCredentials||g(O))&&e.xsrfCookieName?d.read(e.xsrfCookieName):void 0;C&&(w[e.xsrfHeaderName]=C)}if("setRequestHeader"in E&&r.forEach(w,(function setRequestHeader(e,t){"undefined"===typeof b&&"content-type"===t.toLowerCase()?delete w[t]:E.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(E.withCredentials=!!e.withCredentials),e.responseType)try{E.responseType=e.responseType}catch(T){if("json"!==e.responseType)throw T}"function"===typeof e.onDownloadProgress&&E.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&E.upload&&E.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function onCanceled(e){E&&(E.abort(),n(e),E=null)})),b||(b=null),E.send(b)}))}},900:function(e,t,n){"use strict";var r=n(233),i=n(813),d=n(947),h=n(545);function createInstance(e){var t=new d(e),n=i(d.prototype.request,t);return r.extend(n,d.prototype,t),r.extend(n,t),n}var y=createInstance(n(840));y.Axios=d,y.create=function create(e){return createInstance(h(y.defaults,e))},y.Cancel=n(215),y.CancelToken=n(269),y.isCancel=n(989),y.all=function all(e){return Promise.all(e)},y.spread=n(115),y.isAxiosError=n(749),e.exports=y,e.exports.default=y},215: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},269:function(e,t,n){"use strict";var r=n(215);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},989:function(e){"use strict";e.exports=function isCancel(e){return!(!e||!e.__CANCEL__)}},947:function(e,t,n){"use strict";var r=n(233),i=n(588),d=n(462),h=n(216),y=n(545);function Axios(e){this.defaults=e,this.interceptors={request:new d,response:new d}}Axios.prototype.request=function request(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=y(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[h,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=y(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(y(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(y(r||{},{method:e,url:t,data:n}))}})),e.exports=Axios},462:function(e,t,n){"use strict";var r=n(233);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},972:function(e,t,n){"use strict";var r=n(877),i=n(20);e.exports=function buildFullPath(e,t){return e&&!r(t)?i(e,t):t}},224:function(e,t,n){"use strict";var r=n(872);e.exports=function createError(e,t,n,i,d){var h=new Error(e);return r(h,t,n,i,d)}},216:function(e,t,n){"use strict";var r=n(233),i=n(824),d=n(989),h=n(840);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||h.adapter)(e).then((function onAdapterResolution(t){return throwIfCancellationRequested(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function onAdapterRejection(t){return d(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},872: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}},545:function(e,t,n){"use strict";var r=n(233);e.exports=function mergeConfig(e,t){t=t||{};var n={},i=["url","method","data"],d=["headers","auth","proxy","params"],h=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],y=["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(d,mergeDeepProperties),r.forEach(h,(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(y,(function merge(r){r in t?n[r]=getMergedValue(e[r],t[r]):r in e&&(n[r]=getMergedValue(void 0,e[r]))}));var v=i.concat(d).concat(h).concat(y),g=Object.keys(e).concat(Object.keys(t)).filter((function filterAxiosKeys(e){return-1===v.indexOf(e)}));return r.forEach(g,mergeDeepProperties),n}},858:function(e,t,n){"use strict";var r=n(224);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)}},824:function(e,t,n){"use strict";var r=n(233);e.exports=function transformData(e,t,n){return r.forEach(n,(function transform(n){e=n(e,t)})),e}},840:function(e,t,n){"use strict";var r=n(233),i=n(904),d={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var h={adapter:function getDefaultAdapter(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(641)),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){h.headers[e]={}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){h.headers[e]=r.merge(d)})),e.exports=h},813: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)}}},588:function(e,t,n){"use strict";var r=n(233);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 d=[];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)),d.push(encode(t)+"="+encode(e))})))})),i=d.join("&")}if(i){var h=e.indexOf("#");-1!==h&&(e=e.slice(0,h)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},20:function(e){"use strict";e.exports=function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},194:function(e,t,n){"use strict";var r=n(233);e.exports=r.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,t,n,i,d,h){var y=[];y.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&y.push("expires="+new Date(n).toGMTString()),r.isString(i)&&y.push("path="+i),r.isString(d)&&y.push("domain="+d),!0===h&&y.push("secure"),document.cookie=y.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(){}}},877:function(e){"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},749: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}},980:function(e,t,n){"use strict";var r=n(233);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}},904:function(e,t,n){"use strict";var r=n(233);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])}))}},33:function(e,t,n){"use strict";var r=n(233),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,d,h={};return e?(r.forEach(e.split("\n"),(function parser(e){if(d=e.indexOf(":"),t=r.trim(e.substr(0,d)).toLowerCase(),n=r.trim(e.substr(d+1)),t){if(h[t]&&i.indexOf(t)>=0)return;h[t]="set-cookie"===t?(h[t]?h[t]:[]).concat([n]):h[t]?h[t]+", "+n:n}})),h):h}},115:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},233: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(813),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}}},261:function(e){"use strict";function balanced(e,t,n){e instanceof RegExp&&(e=maybeMatch(e,n)),t instanceof RegExp&&(t=maybeMatch(t,n));var r=range(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function maybeMatch(e,t){var n=t.match(e);return n?n[0]:null}function range(e,t,n){var r,i,d,h,y,v=n.indexOf(e),g=n.indexOf(t,v+1),_=v;if(v>=0&&g>0){if(e===t)return[v,g];for(r=[],d=n.length;_>=0&&!y;)_===v?(r.push(_),v=n.indexOf(e,_+1)):1===r.length?y=[r.pop(),g]:((i=r.pop())<d&&(d=i,h=g),g=n.indexOf(t,_+1)),_=v<g&&v>=0?v:g;r.length&&(y=[d,h])}return y}e.exports=balanced,balanced.range=range},570:function(e,t,n){var r=n(261);e.exports=function expandTop(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return expand(function escapeBraces(e){return e.split("\\\\").join(i).split("\\{").join(d).split("\\}").join(h).split("\\,").join(y).split("\\.").join(v)}(e),!0).map(unescapeBraces)};var i="\0SLASH"+Math.random()+"\0",d="\0OPEN"+Math.random()+"\0",h="\0CLOSE"+Math.random()+"\0",y="\0COMMA"+Math.random()+"\0",v="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function unescapeBraces(e){return e.split(i).join("\\").split(d).join("{").split(h).join("}").split(y).join(",").split(v).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[],n=r("{","}",e);if(!n)return e.split(",");var i=n.pre,d=n.body,h=n.post,y=i.split(",");y[y.length-1]+="{"+d+"}";var v=parseCommaParts(h);return h.length&&(y[y.length-1]+=v.shift(),y.push.apply(y,v)),t.push.apply(t,y),t}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var n=[],i=r("{","}",e);if(!i)return[e];var d=i.pre,y=i.post.length?expand(i.post,!1):[""];if(/\$$/.test(i.pre))for(var v=0;v<y.length;v++){var g=d+"{"+i.body+"}"+y[v];n.push(g)}else{var _,b,w=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),E=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),S=w||E,k=i.body.indexOf(",")>=0;if(!S&&!k)return i.post.match(/,.*\}/)?expand(e=i.pre+"{"+i.body+h+i.post):[e];if(S)_=i.body.split(/\.\./);else if(1===(_=parseCommaParts(i.body)).length&&1===(_=expand(_[0],!1).map(embrace)).length)return y.map((function(e){return i.pre+_[0]+e}));if(S){var O=numeric(_[0]),C=numeric(_[1]),T=Math.max(_[0].length,_[1].length),A=3==_.length?Math.abs(numeric(_[2])):1,x=lte;C<O&&(A*=-1,x=gte);var I=_.some(isPadded);b=[];for(var D=O;x(D,C);D+=A){var L;if(E)"\\"===(L=String.fromCharCode(D))&&(L="");else if(L=String(D),I){var N=T-L.length;if(N>0){var P=new Array(N+1).join("0");L=D<0?"-"+P+L.slice(1):P+L}}b.push(L)}}else{b=[];for(var j=0;j<_.length;j++)b.push.apply(b,expand(_[j],!1))}for(j=0;j<b.length;j++)for(v=0;v<y.length;v++){g=d+b[j]+y[v];(!t||S||g)&&n.push(g)}}return n}},316:function(e,t,n){var r,i,d;function _typeof2(e){return(_typeof2="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof2(e){return typeof e}:function _typeof2(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}d=function(){"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)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function _unsupportedIterableToArray(e,t){if(e){if("string"===typeof e)return _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)?_arrayLikeToArray(e,t):void 0}}(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}var e=function(){function KeyCombo(e){_classCallCheck(this,KeyCombo),this.sourceStr=e,this.subCombos=KeyCombo.parseComboStr(e),this.keyNames=this.subCombos.reduce((function(e,t){return e.concat(t)}),[])}return _createClass(KeyCombo,[{key:"check",value:function check(e){for(var t=0,n=0;n<this.subCombos.length;n+=1)if(-1===(t=this._checkSubCombo(this.subCombos[n],t,e)))return!1;return!0}},{key:"isEqual",value:function isEqual(e){if(!e||"string"!==typeof e&&"object"!==_typeof(e))return!1;if("string"===typeof e&&(e=new KeyCombo(e)),this.subCombos.length!==e.subCombos.length)return!1;for(var t=0;t<this.subCombos.length;t+=1)if(this.subCombos[t].length!==e.subCombos[t].length)return!1;for(var n=0;n<this.subCombos.length;n+=1){for(var r=this.subCombos[n],i=e.subCombos[n].slice(0),d=0;d<r.length;d+=1){var h=r[d],y=i.indexOf(h);y>-1&&i.splice(y,1)}if(0!==i.length)return!1}return!0}},{key:"_checkSubCombo",value:function _checkSubCombo(e,t,n){e=e.slice(0),n=n.slice(t);for(var r=t,i=0;i<e.length;i+=1){var d=e[i];if("\\"===d[0]){var h=d.slice(1);h!==KeyCombo.comboDeliminator&&h!==KeyCombo.keyDeliminator||(d=h)}var y=n.indexOf(d);if(y>-1&&(e.splice(i,1),i-=1,y>r&&(r=y),0===e.length))return r}return-1}}]),KeyCombo}();e.comboDeliminator=">",e.keyDeliminator="+",e.parseComboStr=function(t){for(var n=e._splitStr(t,e.comboDeliminator),r=[],i=0;i<n.length;i+=1)r.push(e._splitStr(n[i],e.keyDeliminator));return r},e._splitStr=function(e,t){for(var n=e,r=t,i="",d=[],h=0;h<n.length;h+=1)h>0&&n[h]===r&&"\\"!==n[h-1]&&(d.push(i.trim()),i="",h+=1),i+=n[h];return i&&d.push(i.trim()),d};var t=function(){function Locale(e){_classCallCheck(this,Locale),this.localeName=e,this.activeTargetKeys=[],this.pressedKeys=[],this._appliedMacros=[],this._keyMap={},this._killKeyCodes=[],this._macros=[]}return _createClass(Locale,[{key:"bindKeyCode",value:function bindKeyCode(e,t){"string"===typeof t&&(t=[t]),this._keyMap[e]=t}},{key:"bindMacro",value:function bindMacro(t,n){"string"===typeof n&&(n=[n]);var r=null;"function"===typeof n&&(r=n,n=null);var i={keyCombo:new e(t),keyNames:n,handler:r};this._macros.push(i)}},{key:"getKeyCodes",value:function getKeyCodes(e){var t=[];for(var n in this._keyMap)this._keyMap[n].indexOf(e)>-1&&t.push(0|n);return t}},{key:"getKeyNames",value:function getKeyNames(e){return this._keyMap[e]||[]}},{key:"setKillKey",value:function setKillKey(e){if("string"!==typeof e)this._killKeyCodes.push(e);else for(var t=this.getKeyCodes(e),n=0;n<t.length;n+=1)this.setKillKey(t[n])}},{key:"pressKey",value:function pressKey(e){if("string"!==typeof e){this.activeTargetKeys.length=0;for(var t=this.getKeyNames(e),n=0;n<t.length;n+=1)this.activeTargetKeys.push(t[n]),-1===this.pressedKeys.indexOf(t[n])&&this.pressedKeys.push(t[n]);this._applyMacros()}else for(var r=this.getKeyCodes(e),i=0;i<r.length;i+=1)this.pressKey(r[i])}},{key:"releaseKey",value:function releaseKey(e){if("string"===typeof e)for(var t=this.getKeyCodes(e),n=0;n<t.length;n+=1)this.releaseKey(t[n]);else{var r=this.getKeyNames(e);if(-1!==this._killKeyCodes.indexOf(e))this.pressedKeys.length=0;else for(var i=0;i<r.length;i+=1){var d=this.pressedKeys.indexOf(r[i]);d>-1&&this.pressedKeys.splice(d,1)}this.activeTargetKeys.length=0,this._clearMacros()}}},{key:"_applyMacros",value:function _applyMacros(){for(var e=this._macros.slice(0),t=0;t<e.length;t+=1){var n=e[t];if(n.keyCombo.check(this.pressedKeys)){n.handler&&(n.keyNames=n.handler(this.pressedKeys));for(var r=0;r<n.keyNames.length;r+=1)-1===this.pressedKeys.indexOf(n.keyNames[r])&&this.pressedKeys.push(n.keyNames[r]);this._appliedMacros.push(n)}}}},{key:"_clearMacros",value:function _clearMacros(){for(var e=0;e<this._appliedMacros.length;e+=1){var t=this._appliedMacros[e];if(!t.keyCombo.check(this.pressedKeys)){for(var n=0;n<t.keyNames.length;n+=1){var r=this.pressedKeys.indexOf(t.keyNames[n]);r>-1&&this.pressedKeys.splice(r,1)}t.handler&&(t.keyNames=null),this._appliedMacros.splice(e,1),e-=1}}}}]),Locale}(),r=function(){function Keyboard(e,t,n,r){_classCallCheck(this,Keyboard),this._locale=null,this._currentContext="",this._contexts={},this._listeners=[],this._appliedListeners=[],this._locales={},this._targetElement=null,this._targetWindow=null,this._targetPlatform="",this._targetUserAgent="",this._isModernBrowser=!1,this._targetKeyDownBinding=null,this._targetKeyUpBinding=null,this._targetResetBinding=null,this._paused=!1,this._contexts.global={listeners:this._listeners,targetWindow:e,targetElement:t,targetPlatform:n,targetUserAgent:r},this.setContext("global")}return _createClass(Keyboard,[{key:"setLocale",value:function setLocale(e,n){var r=null;return"string"===typeof e?n?n(r=new t(e),this._targetPlatform,this._targetUserAgent):r=this._locales[e]||null:e=(r=e)._localeName,this._locale=r,this._locales[e]=r,r&&(this._locale.pressedKeys=r.pressedKeys),this}},{key:"getLocale",value:function getLocale(e){return e||(e=this._locale.localeName),this._locales[e]||null}},{key:"bind",value:function bind(t,n,r,i){if(null!==t&&"function"!==typeof t||(i=r,r=n,n=t,t=null),t&&"object"===_typeof(t)&&"number"===typeof t.length){for(var d=0;d<t.length;d+=1)this.bind(t[d],n,r);return this}return this._listeners.push({keyCombo:t?new e(t):null,pressHandler:n||null,releaseHandler:r||null,preventRepeat:i||!1,preventRepeatByDefault:i||!1,executingHandler:!1}),this}},{key:"addListener",value:function addListener(e,t,n,r){return this.bind(e,t,n,r)}},{key:"on",value:function on(e,t,n,r){return this.bind(e,t,n,r)}},{key:"bindPress",value:function bindPress(e,t,n){return this.bind(e,t,null,n)}},{key:"bindRelease",value:function bindRelease(e,t){return this.bind(e,null,t,preventRepeatByDefault)}},{key:"unbind",value:function unbind(e,t,n){if(null!==e&&"function"!==typeof e||(n=t,t=e,e=null),e&&"object"===_typeof(e)&&"number"===typeof e.length){for(var r=0;r<e.length;r+=1)this.unbind(e[r],t,n);return this}for(var i=0;i<this._listeners.length;i+=1){var d=this._listeners[i],h=!e&&!d.keyCombo||d.keyCombo&&d.keyCombo.isEqual(e),y=!t&&!n||!t&&!d.pressHandler||t===d.pressHandler,v=!t&&!n||!n&&!d.releaseHandler||n===d.releaseHandler;h&&y&&v&&(this._listeners.splice(i,1),i-=1)}return this}},{key:"removeListener",value:function removeListener(e,t,n){return this.unbind(e,t,n)}},{key:"off",value:function off(e,t,n){return this.unbind(e,t,n)}},{key:"setContext",value:function setContext(e){if(this._locale&&this.releaseAllKeys(),!this._contexts[e]){var t=this._contexts.global;this._contexts[e]={listeners:[],targetWindow:t.targetWindow,targetElement:t.targetElement,targetPlatform:t.targetPlatform,targetUserAgent:t.targetUserAgent}}var n=this._contexts[e];return this._currentContext=e,this._listeners=n.listeners,this.stop(),this.watch(n.targetWindow,n.targetElement,n.targetPlatform,n.targetUserAgent),this}},{key:"getContext",value:function getContext(){return this._currentContext}},{key:"withContext",value:function withContext(e,t){var n=this.getContext();return this.setContext(e),t(),this.setContext(n),this}},{key:"watch",value:function watch(e,t,r,i){var d=this;this.stop();var h="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof n.g?n.g:"undefined"!==typeof window?window:{};if(!e){if(!h.addEventListener&&!h.attachEvent)throw new Error("Cannot find window functions addEventListener or attachEvent.");e=h}if("number"===typeof e.nodeType&&(i=r,r=t,t=e,e=h),!e.addEventListener&&!e.attachEvent)throw new Error("Cannot find addEventListener or attachEvent methods on targetWindow.");this._isModernBrowser=!!e.addEventListener;var y=e.navigator&&e.navigator.userAgent||"",v=e.navigator&&e.navigator.platform||"";t&&null!==t||(t=e.document),r&&null!==r||(r=v),i&&null!==i||(i=y),this._targetKeyDownBinding=function(e){d.pressKey(e.keyCode,e),d._handleCommandBug(e,v)},this._targetKeyUpBinding=function(e){d.releaseKey(e.keyCode,e)},this._targetResetBinding=function(e){d.releaseAllKeys(e)},this._bindEvent(t,"keydown",this._targetKeyDownBinding),this._bindEvent(t,"keyup",this._targetKeyUpBinding),this._bindEvent(e,"focus",this._targetResetBinding),this._bindEvent(e,"blur",this._targetResetBinding),this._targetElement=t,this._targetWindow=e,this._targetPlatform=r,this._targetUserAgent=i;var g=this._contexts[this._currentContext];return g.targetWindow=this._targetWindow,g.targetElement=this._targetElement,g.targetPlatform=this._targetPlatform,g.targetUserAgent=this._targetUserAgent,this}},{key:"stop",value:function stop(){if(this._targetElement&&this._targetWindow)return this._unbindEvent(this._targetElement,"keydown",this._targetKeyDownBinding),this._unbindEvent(this._targetElement,"keyup",this._targetKeyUpBinding),this._unbindEvent(this._targetWindow,"focus",this._targetResetBinding),this._unbindEvent(this._targetWindow,"blur",this._targetResetBinding),this._targetWindow=null,this._targetElement=null,this}},{key:"pressKey",value:function pressKey(e,t){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.pressKey(e),this._applyBindings(t),this}},{key:"releaseKey",value:function releaseKey(e,t){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.releaseKey(e),this._clearBindings(t),this}},{key:"releaseAllKeys",value:function releaseAllKeys(e){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.pressedKeys.length=0,this._clearBindings(e),this}},{key:"pause",value:function pause(){return this._paused||(this._locale&&this.releaseAllKeys(),this._paused=!0),this}},{key:"resume",value:function resume(){return this._paused=!1,this}},{key:"reset",value:function reset(){return this.releaseAllKeys(),this._listeners.length=0,this}},{key:"_bindEvent",value:function _bindEvent(e,t,n){return this._isModernBrowser?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}},{key:"_unbindEvent",value:function _unbindEvent(e,t,n){return this._isModernBrowser?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}},{key:"_getGroupedListeners",value:function _getGroupedListeners(){var e=[],t=[],n=this._listeners;return"global"!==this._currentContext&&(n=[].concat(_toConsumableArray(n),_toConsumableArray(this._contexts.global.listeners))),n.sort((function(e,t){return(t.keyCombo?t.keyCombo.keyNames.length:0)-(e.keyCombo?e.keyCombo.keyNames.length:0)})).forEach((function(n){for(var r=-1,i=0;i<t.length;i+=1)(null===t[i]&&null===n.keyCombo||null!==t[i]&&t[i].isEqual(n.keyCombo))&&(r=i);-1===r&&(r=t.length,t.push(n.keyCombo)),e[r]||(e[r]=[]),e[r].push(n)})),e}},{key:"_applyBindings",value:function _applyBindings(e){var t=this,n=!1;e||(e={}),e.preventRepeat=function(){n=!0},e.pressedKeys=this._locale.pressedKeys.slice(0);for(var r=this._locale.activeTargetKeys,i=this._locale.pressedKeys.slice(0),d=this._getGroupedListeners(),h=function _loop(h){var y=d[h],v=y[0].keyCombo;if(null===v||v.check(i)&&r.some((function(e){return v.keyNames.includes(e)}))){for(var g=0;g<y.length;g+=1){var _=y[g];_.executingHandler||!_.pressHandler||_.preventRepeat||(_.executingHandler=!0,_.pressHandler.call(t,e),_.executingHandler=!1,(n||_.preventRepeatByDefault)&&(_.preventRepeat=!0,n=!1)),-1===t._appliedListeners.indexOf(_)&&t._appliedListeners.push(_)}if(v)for(var b=0;b<v.keyNames.length;b+=1){var w=i.indexOf(v.keyNames[b]);-1!==w&&(i.splice(w,1),b-=1)}}},y=0;y<d.length;y+=1)h(y)}},{key:"_clearBindings",value:function _clearBindings(e){e||(e={}),e.pressedKeys=this._locale.pressedKeys.slice(0);for(var t=0;t<this._appliedListeners.length;t+=1){var n=this._appliedListeners[t],r=n.keyCombo;null!==r&&r.check(this._locale.pressedKeys)||(n.preventRepeat=!1,null===r&&0!==e.pressedKeys.length||(this._appliedListeners.splice(t,1),t-=1),!n.executingHandler&&n.releaseHandler&&(n.executingHandler=!0,n.releaseHandler.call(this,e),n.executingHandler=!1))}}},{key:"_handleCommandBug",value:function _handleCommandBug(e,t){t.match("Mac")&&this._locale.pressedKeys.includes("command")&&!["shift","ctrl","alt","capslock","tab","command"].includes(this._locale.getKeyNames(e.keyCode)[0])&&this._targetKeyUpBinding(e)}}]),Keyboard}(),i=new r;return i.setLocale("us",(function us(e,t,n){e.bindKeyCode(3,["cancel"]),e.bindKeyCode(8,["backspace"]),e.bindKeyCode(9,["tab"]),e.bindKeyCode(12,["clear"]),e.bindKeyCode(13,["enter"]),e.bindKeyCode(16,["shift"]),e.bindKeyCode(17,["ctrl"]),e.bindKeyCode(18,["alt","menu"]),e.bindKeyCode(19,["pause","break"]),e.bindKeyCode(20,["capslock"]),e.bindKeyCode(27,["escape","esc"]),e.bindKeyCode(32,["space","spacebar"]),e.bindKeyCode(33,["pageup"]),e.bindKeyCode(34,["pagedown"]),e.bindKeyCode(35,["end"]),e.bindKeyCode(36,["home"]),e.bindKeyCode(37,["left"]),e.bindKeyCode(38,["up"]),e.bindKeyCode(39,["right"]),e.bindKeyCode(40,["down"]),e.bindKeyCode(41,["select"]),e.bindKeyCode(42,["printscreen"]),e.bindKeyCode(43,["execute"]),e.bindKeyCode(44,["snapshot"]),e.bindKeyCode(45,["insert","ins"]),e.bindKeyCode(46,["delete","del"]),e.bindKeyCode(47,["help"]),e.bindKeyCode(145,["scrolllock","scroll"]),e.bindKeyCode(188,["comma",","]),e.bindKeyCode(190,["period","."]),e.bindKeyCode(191,["slash","forwardslash","/"]),e.bindKeyCode(192,["graveaccent","`"]),e.bindKeyCode(219,["openbracket","["]),e.bindKeyCode(220,["backslash","\\"]),e.bindKeyCode(221,["closebracket","]"]),e.bindKeyCode(222,["apostrophe","'"]),e.bindKeyCode(48,["zero","0"]),e.bindKeyCode(49,["one","1"]),e.bindKeyCode(50,["two","2"]),e.bindKeyCode(51,["three","3"]),e.bindKeyCode(52,["four","4"]),e.bindKeyCode(53,["five","5"]),e.bindKeyCode(54,["six","6"]),e.bindKeyCode(55,["seven","7"]),e.bindKeyCode(56,["eight","8"]),e.bindKeyCode(57,["nine","9"]),e.bindKeyCode(96,["numzero","num0"]),e.bindKeyCode(97,["numone","num1"]),e.bindKeyCode(98,["numtwo","num2"]),e.bindKeyCode(99,["numthree","num3"]),e.bindKeyCode(100,["numfour","num4"]),e.bindKeyCode(101,["numfive","num5"]),e.bindKeyCode(102,["numsix","num6"]),e.bindKeyCode(103,["numseven","num7"]),e.bindKeyCode(104,["numeight","num8"]),e.bindKeyCode(105,["numnine","num9"]),e.bindKeyCode(106,["nummultiply","num*"]),e.bindKeyCode(107,["numadd","num+"]),e.bindKeyCode(108,["numenter"]),e.bindKeyCode(109,["numsubtract","num-"]),e.bindKeyCode(110,["numdecimal","num."]),e.bindKeyCode(111,["numdivide","num/"]),e.bindKeyCode(144,["numlock","num"]),e.bindKeyCode(112,["f1"]),e.bindKeyCode(113,["f2"]),e.bindKeyCode(114,["f3"]),e.bindKeyCode(115,["f4"]),e.bindKeyCode(116,["f5"]),e.bindKeyCode(117,["f6"]),e.bindKeyCode(118,["f7"]),e.bindKeyCode(119,["f8"]),e.bindKeyCode(120,["f9"]),e.bindKeyCode(121,["f10"]),e.bindKeyCode(122,["f11"]),e.bindKeyCode(123,["f12"]),e.bindKeyCode(124,["f13"]),e.bindKeyCode(125,["f14"]),e.bindKeyCode(126,["f15"]),e.bindKeyCode(127,["f16"]),e.bindKeyCode(128,["f17"]),e.bindKeyCode(129,["f18"]),e.bindKeyCode(130,["f19"]),e.bindKeyCode(131,["f20"]),e.bindKeyCode(132,["f21"]),e.bindKeyCode(133,["f22"]),e.bindKeyCode(134,["f23"]),e.bindKeyCode(135,["f24"]),e.bindMacro("shift + `",["tilde","~"]),e.bindMacro("shift + 1",["exclamation","exclamationpoint","!"]),e.bindMacro("shift + 2",["at","@"]),e.bindMacro("shift + 3",["number","#"]),e.bindMacro("shift + 4",["dollar","dollars","dollarsign","$"]),e.bindMacro("shift + 5",["percent","%"]),e.bindMacro("shift + 6",["caret","^"]),e.bindMacro("shift + 7",["ampersand","and","&"]),e.bindMacro("shift + 8",["asterisk","*"]),e.bindMacro("shift + 9",["openparen","("]),e.bindMacro("shift + 0",["closeparen",")"]),e.bindMacro("shift + -",["underscore","_"]),e.bindMacro("shift + =",["plus","+"]),e.bindMacro("shift + [",["opencurlybrace","opencurlybracket","{"]),e.bindMacro("shift + ]",["closecurlybrace","closecurlybracket","}"]),e.bindMacro("shift + \\",["verticalbar","|"]),e.bindMacro("shift + ;",["colon",":"]),e.bindMacro("shift + '",["quotationmark","'"]),e.bindMacro("shift + !,",["openanglebracket","<"]),e.bindMacro("shift + .",["closeanglebracket",">"]),e.bindMacro("shift + /",["questionmark","?"]),t.match("Mac")?e.bindMacro("command",["mod","modifier"]):e.bindMacro("ctrl",["mod","modifier"]);for(var r=65;r<=90;r+=1){var i=String.fromCharCode(r+32),d=String.fromCharCode(r);e.bindKeyCode(r,i),e.bindMacro("shift + "+i,d),e.bindMacro("capslock + "+i,d)}var h,y,v=n.match("Firefox")?59:186,g=n.match("Firefox")?173:189,_=n.match("Firefox")?61:187;t.match("Mac")&&(n.match("Safari")||n.match("Chrome"))?(h=91,y=93):t.match("Mac")&&n.match("Opera")?(h=17,y=17):t.match("Mac")&&n.match("Firefox")&&(h=224,y=224),e.bindKeyCode(v,["semicolon",";"]),e.bindKeyCode(g,["dash","-"]),e.bindKeyCode(_,["equal","equalsign","="]),e.bindKeyCode(h,["command","windows","win","super","leftcommand","leftwindows","leftwin","leftsuper"]),e.bindKeyCode(y,["command","windows","win","super","rightcommand","rightwindows","rightwin","rightsuper"]),e.setKillKey("command")})),i.Keyboard=r,i.Locale=t,i.KeyCombo=e,i},"object"===_typeof2(t)?e.exports=d():void 0===(i="function"===typeof(r=d)?r.call(t,n,t,e):r)||(e.exports=i)},356:function(e,t,n){e.exports=minimatch,minimatch.Minimatch=Minimatch;var r={sep:"/"};try{r=n(61)}catch(w){}var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={},d=n(570),h={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},y="[^/]",v="[^/]*?",g=function charSet(e){return e.split("").reduce((function(e,t){return e[t]=!0,e}),{})}("().*{}+?[]^$\\!");var _=/\/+/;function ext(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function minimatch(e,t,n){if("string"!==typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new Minimatch(t,n).match(e))}function Minimatch(e,t){if(!(this instanceof Minimatch))return new Minimatch(e,t);if("string"!==typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function braceExpand(e,t){if(t||(t=this instanceof Minimatch?this.options:{}),"undefined"===typeof(e="undefined"===typeof e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:d(e)}minimatch.filter=function filter(e,t){return t=t||{},function(n,r,i){return minimatch(n,e,t)}},minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return minimatch;var t=minimatch,n=function minimatch(n,r,i){return t.minimatch(n,r,ext(e,i))};return n.Minimatch=function Minimatch(n,r){return new t.Minimatch(n,ext(e,r))},n},Minimatch.defaults=function(e){return e&&Object.keys(e).length?minimatch.defaults(e).Minimatch:Minimatch},Minimatch.prototype.debug=function(){},Minimatch.prototype.make=function make(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(_)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n},Minimatch.prototype.parseNegate=function parseNegate(){var e=this.pattern,t=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,d=e.length;i<d&&"!"===e.charAt(i);i++)t=!t,r++;r&&(this.pattern=e.substr(r));this.negate=t},minimatch.braceExpand=function(e,t){return braceExpand(e,t)},Minimatch.prototype.braceExpand=braceExpand,Minimatch.prototype.parse=function parse(e,t){if(e.length>65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,d="",_=!!n.nocase,E=!1,S=[],k=[],O=!1,C=-1,T=-1,A="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",x=this;function clearStateChar(){if(r){switch(r){case"*":d+=v,_=!0;break;case"?":d+=y,_=!0;break;default:d+="\\"+r}x.debug("clearStateChar %j %j",r,d),r=!1}}for(var I,D=0,L=e.length;D<L&&(I=e.charAt(D));D++)if(this.debug("%s\t%s %s %j",e,D,d,I),E&&g[I])d+="\\"+I,E=!1;else switch(I){case"/":return!1;case"\\":clearStateChar(),E=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,D,d,I),O){this.debug(" in class"),"!"===I&&D===T+1&&(I="^"),d+=I;continue}x.debug("call clearStateChar %j",r),clearStateChar(),r=I,n.noext&&clearStateChar();continue;case"(":if(O){d+="(";continue}if(!r){d+="\\(";continue}S.push({type:r,start:D-1,reStart:d.length,open:h[r].open,close:h[r].close}),d+="!"===r?"(?:(?!(?:":"(?:",this.debug("plType %j %j",r,d),r=!1;continue;case")":if(O||!S.length){d+="\\)";continue}clearStateChar(),_=!0;var N=S.pop();d+=N.close,"!"===N.type&&k.push(N),N.reEnd=d.length;continue;case"|":if(O||!S.length||E){d+="\\|",E=!1;continue}clearStateChar(),d+="|";continue;case"[":if(clearStateChar(),O){d+="\\"+I;continue}O=!0,T=D,C=d.length,d+=I;continue;case"]":if(D===T+1||!O){d+="\\"+I,E=!1;continue}if(O){var P=e.substring(T+1,D);try{RegExp("["+P+"]")}catch(w){var j=this.parse(P,b);d=d.substr(0,C)+"\\["+j[0]+"\\]",_=_||j[1],O=!1;continue}}_=!0,O=!1,d+=I;continue;default:clearStateChar(),E?E=!1:!g[I]||"^"===I&&O||(d+="\\"),d+=I}O&&(P=e.substr(T+1),j=this.parse(P,b),d=d.substr(0,C)+"\\["+j[0],_=_||j[1]);for(N=S.pop();N;N=S.pop()){var M=d.slice(N.reStart+N.open.length);this.debug("setting tail",d,N),M=M.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,n){return n||(n="\\"),t+t+n+"|"})),this.debug("tail=%j\n %s",M,M,N,d);var R="*"===N.type?v:"?"===N.type?y:"\\"+N.type;_=!0,d=d.slice(0,N.reStart)+R+"\\("+M}clearStateChar(),E&&(d+="\\\\");var F=!1;switch(d.charAt(0)){case".":case"[":case"(":F=!0}for(var q=k.length-1;q>-1;q--){var Q=k[q],V=d.slice(0,Q.reStart),B=d.slice(Q.reStart,Q.reEnd-8),K=d.slice(Q.reEnd-8,Q.reEnd),U=d.slice(Q.reEnd);K+=U;var z=V.split("(").length-1,H=U;for(D=0;D<z;D++)H=H.replace(/\)[+*?]?/,"");var W="";""===(U=H)&&t!==b&&(W="$"),d=V+B+U+W+K}""!==d&&_&&(d="(?=.)"+d);F&&(d=A+d);if(t===b)return[d,_];if(!_)return function globUnescape(e){return e.replace(/\\(.)/g,"$1")}(e);var G=n.nocase?"i":"";try{var Y=new RegExp("^"+d+"$",G)}catch(w){return new RegExp("$.")}return Y._glob=e,Y._src=d,Y};var b={};minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()},Minimatch.prototype.makeRe=function makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,n=t.noglobstar?v:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",r=t.nocase?"i":"",d=e.map((function(e){return e.map((function(e){return e===i?n:"string"===typeof e?function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(e):e._src})).join("\\/")})).join("|");d="^(?:"+d+")$",this.negate&&(d="^(?!"+d+").*$");try{this.regexp=new RegExp(d,r)}catch(h){this.regexp=!1}return this.regexp},minimatch.match=function(e,t,n){var r=new Minimatch(t,n=n||{});return e=e.filter((function(e){return r.match(e)})),r.options.nonull&&!e.length&&e.push(t),e},Minimatch.prototype.match=function match(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var n=this.options;"/"!==r.sep&&(e=e.split(r.sep).join("/"));e=e.split(_),this.debug(this.pattern,"split",e);var i,d,h=this.set;for(this.debug(this.pattern,"set",h),d=e.length-1;d>=0&&!(i=e[d]);d--);for(d=0;d<h.length;d++){var y=h[d],v=e;if(n.matchBase&&1===y.length&&(v=[i]),this.matchOne(v,y,t))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate},Minimatch.prototype.matchOne=function(e,t,n){var r=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var d=0,h=0,y=e.length,v=t.length;d<y&&h<v;d++,h++){this.debug("matchOne loop");var g,_=t[h],b=e[d];if(this.debug(t,_,b),!1===_)return!1;if(_===i){this.debug("GLOBSTAR",[t,_,b]);var w=d,E=h+1;if(E===v){for(this.debug("** at the end");d<y;d++)if("."===e[d]||".."===e[d]||!r.dot&&"."===e[d].charAt(0))return!1;return!0}for(;w<y;){var S=e[w];if(this.debug("\nglobstar while",e,w,t,E,S),this.matchOne(e.slice(w),t.slice(E),n))return this.debug("globstar found match!",w,y,S),!0;if("."===S||".."===S||!r.dot&&"."===S.charAt(0)){this.debug("dot detected!",e,w,t,E);break}this.debug("globstar swallow a segment, and continue"),w++}return!(!n||(this.debug("\n>>> no match, partial?",e,w,t,E),w!==y))}if("string"===typeof _?(g=r.nocase?b.toLowerCase()===_.toLowerCase():b===_,this.debug("string match",_,b,g)):(g=b.match(_),this.debug("pattern match",_,b,g)),!g)return!1}if(d===y&&h===v)return!0;if(d===y)return n;if(h===v)return d===y-1&&""===e[d];throw new Error("wtf?")}},408:function(e,t,n){"use strict";var r=n(119);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,t,n,i,d,h){if(h!==r){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},734:function(e,t,n){e.exports=n(408)()},119:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},24:function(e,t,n){var r,i,d;i=[t,n(938)],void 0===(d="function"===typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=_interopRequireDefault(t);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}e.default=n.default})?r.apply(t,i):r)||(e.exports=d)},938:function(e,t,n){var r,i,d;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)}i=[t,n(804),n(734)],void 0===(d="function"===typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setHasSupportToCaptureOption=setHasSupportToCaptureOption;var r=_interopRequireDefault(t),i=_interopRequireDefault(n);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function _objectWithoutProperties(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var h=function(){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)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}();function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==_typeof(t)&&"function"!==typeof t?e:t}function _inherits(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+_typeof(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=!1;function setHasSupportToCaptureOption(e){y=e}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function get(){setHasSupportToCaptureOption(!0)}}))}catch(g){}function getSafeEventHandlerOpts(){return!!y&&(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{capture:!0})}function getPosition(e){if("touches"in e){var t=e.touches[0];return{x:t.pageX,y:t.pageY}}return{x:e.screenX,y:e.screenY}}var v=function(e){function ReactSwipe(){var e;_classCallCheck(this,ReactSwipe);for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=_possibleConstructorReturn(this,(e=ReactSwipe.__proto__||Object.getPrototypeOf(ReactSwipe)).call.apply(e,[this].concat(n)));return i._handleSwipeStart=i._handleSwipeStart.bind(i),i._handleSwipeMove=i._handleSwipeMove.bind(i),i._handleSwipeEnd=i._handleSwipeEnd.bind(i),i._onMouseDown=i._onMouseDown.bind(i),i._onMouseMove=i._onMouseMove.bind(i),i._onMouseUp=i._onMouseUp.bind(i),i._setSwiperRef=i._setSwiperRef.bind(i),i}return _inherits(ReactSwipe,e),h(ReactSwipe,[{key:"componentDidMount",value:function componentDidMount(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,getSafeEventHandlerOpts({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,getSafeEventHandlerOpts({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function _onMouseDown(e){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(e))}},{key:"_onMouseMove",value:function _onMouseMove(e){this.mouseDown&&this._handleSwipeMove(e)}},{key:"_onMouseUp",value:function _onMouseUp(e){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(e)}},{key:"_handleSwipeStart",value:function _handleSwipeStart(e){var t=getPosition(e),n=t.x,r=t.y;this.moveStart={x:n,y:r},this.props.onSwipeStart(e)}},{key:"_handleSwipeMove",value:function _handleSwipeMove(e){if(this.moveStart){var t=getPosition(e),n=t.x,r=t.y,i=n-this.moveStart.x,d=r-this.moveStart.y;this.moving=!0,this.props.onSwipeMove({x:i,y:d},e)&&e.cancelable&&e.preventDefault(),this.movePosition={deltaX:i,deltaY:d}}}},{key:"_handleSwipeEnd",value:function _handleSwipeEnd(e){this.props.onSwipeEnd(e);var t=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-t?this.props.onSwipeLeft(1,e):this.movePosition.deltaX>t&&this.props.onSwipeRight(1,e),this.movePosition.deltaY<-t?this.props.onSwipeUp(1,e):this.movePosition.deltaY>t&&this.props.onSwipeDown(1,e)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function _setSwiperRef(e){this.swiper=e,this.props.innerRef(e)}},{key:"render",value:function render(){var e=this.props,t=(e.tagName,e.className),n=e.style,i=e.children,h=(e.allowMouseEvents,e.onSwipeUp,e.onSwipeDown,e.onSwipeLeft,e.onSwipeRight,e.onSwipeStart,e.onSwipeMove,e.onSwipeEnd,e.innerRef,e.tolerance,_objectWithoutProperties(e,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]));return r.default.createElement(this.props.tagName,d({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:t,style:n},h),i)}}]),ReactSwipe}(t.Component);v.displayName="ReactSwipe",v.propTypes={tagName:i.default.string,className:i.default.string,style:i.default.object,children:i.default.node,allowMouseEvents:i.default.bool,onSwipeUp:i.default.func,onSwipeDown:i.default.func,onSwipeLeft:i.default.func,onSwipeRight:i.default.func,onSwipeStart:i.default.func,onSwipeMove:i.default.func,onSwipeEnd:i.default.func,innerRef:i.default.func,tolerance:i.default.number.isRequired},v.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function onSwipeUp(){},onSwipeDown:function onSwipeDown(){},onSwipeLeft:function onSwipeLeft(){},onSwipeRight:function onSwipeRight(){},onSwipeStart:function onSwipeStart(){},onSwipeMove:function onSwipeMove(){},onSwipeEnd:function onSwipeEnd(){},innerRef:function innerRef(){},tolerance:0},e.default=v})?r.apply(t,i):r)||(e.exports=d)},528:function(e,t,n){var r,i,d,h;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)}h=function(e,t,n,r){"use strict";function o(e){return e&&"object"==_typeof(e)&&"default"in e?e:{default:e}}var i=o(t),d=o(n),h=o(r),y=function u(){return(y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t,n,r){return new(n||(n=Promise))((function(i,d){function c(e){try{u(r.next(e))}catch(e){d(e)}}function s(e){try{u(r.throw(e))}catch(e){d(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(c,s)}u((r=r.apply(e,t||[])).next())}))}function l(e,t){var n,r,i,d,h={label:0,sent:function sent(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return d={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(d[Symbol.iterator]=function(){return this}),d;function s(d){return function(y){return function(d){if(n)throw new TypeError("Generator is already executing.");for(;h;)try{if(n=1,r&&(i=2&d[0]?r.return:d[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,d[1])).done)return i;switch(r=0,i&&(d=[2&d[0],i.value]),d[0]){case 0:case 1:i=d;break;case 4:return h.label++,{value:d[1],done:!1};case 5:h.label++,r=d[1],d=[0];continue;case 7:d=h.ops.pop(),h.trys.pop();continue;default:if(!((i=(i=h.trys).length>0&&i[i.length-1])||6!==d[0]&&2!==d[0])){h=0;continue}if(3===d[0]&&(!i||d[1]>i[0]&&d[1]<i[3])){h.label=d[1];break}if(6===d[0]&&h.label<i[1]){h.label=i[1],i=d;break}if(i&&h.label<i[2]){h.label=i[2],h.ops.push(d);break}i[2]&&h.ops.pop(),h.trys.pop();continue}d=t.call(e,h)}catch(e){d=[6,e],r=0}finally{n=i=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([d,y])}}}var v=[{provider_name:"YouTube",provider_url:"https://www.youtube.com/",endpoints:[{schemes:["https://*.youtube.com/watch*","https://*.youtube.com/v/*","https://youtu.be/*"],url:"https://www.youtube.com/oembed",discovery:!0}]},{provider_name:"Reddit",provider_url:"https://reddit.com/",endpoints:[{schemes:["https://reddit.com/r/*/comments/*/*","https://www.reddit.com/r/*/comments/*/*"],url:"https://www.reddit.com/oembed"}]},{provider_name:"Flickr",provider_url:"https://www.flickr.com/",endpoints:[{schemes:["http://*.flickr.com/photos/*","http://flic.kr/p/*","https://*.flickr.com/photos/*","https://flic.kr/p/*"],url:"https://www.flickr.com/services/oembed/",discovery:!0}]},{provider_name:"Vimeo",provider_url:"https://vimeo.com/",endpoints:[{schemes:["https://vimeo.com/*","https://vimeo.com/album/*/video/*","https://vimeo.com/channels/*/*","https://vimeo.com/groups/*/videos/*","https://vimeo.com/ondemand/*/*","https://player.vimeo.com/video/*"],url:"https://vimeo.com/api/oembed.{format}",discovery:!0}]},{provider_name:"SoundCloud",provider_url:"http://soundcloud.com/",endpoints:[{schemes:["http://soundcloud.com/*","https://soundcloud.com/*","https://soundcloud.app.goog.gl/*"],url:"https://soundcloud.com/oembed"}]},{provider_name:"Twitter",provider_url:"http://www.twitter.com/",endpoints:[{schemes:["https://twitter.com/*/status/*","https://*.twitter.com/*/status/*","https://twitter.com/*/moments/*","https://*.twitter.com/*/moments/*"],url:"https://publish.twitter.com/oembed"}]},{provider_name:"GIPHY",provider_url:"https://giphy.com",endpoints:[{schemes:["https://giphy.com/gifs/*","http://gph.is/*","https://media.giphy.com/media/*/giphy.gif"],url:"https://giphy.com/services/oembed",discovery:!0}]}];function p(e,t,n){return a(this,void 0,void 0,(function(){var r,i,d,y,v,g,_;return l(this,(function(b){switch(b.label){case 0:if(r=m(n.url,t),i=r.base_url,d=r.requestInterceptor,y=r.responceInterceptor,v=r.getResponce,!i)throw Error("Invalid url: cannot guess oembed endpoint");return"OVERRIDE"===i?[2,null==v?void 0:v(n)]:(g=function(e,t){e.endsWith("/")&&(e=e.slice(0,-1));var n=/\{format\}/gi;if(e.match(n)&&(e=e.replace(n,"json")),!t)return e;var r=/\{url\}/gi,i=/\{raw_url\}/gi;return t.match(i)?t.replace(i,e):t.match(r)?(e=encodeURIComponent(e),t.replace(r,e)):(t.endsWith("/")&&(t=t.slice(0,-1)),t+"/"+e)}(i,e),_=h.default.create(),d&&_.interceptors.request.use(d),y&&_.interceptors.response.use(y),[4,_.get(g,{params:n})]);case 1:return[2,b.sent().data]}}))}))}function m(e,t){var n,r,i,h;return(t=t||v).forEach((function(t){var y;t.endpoints.forEach((function(t){(function(e,t){return Boolean(t.find((function(t){return d.default(e,t,{nocase:!0})})))||Boolean(t.find((function(t){return d.default(e,t.replace(/\*/g,"**"),{nocase:!0})})))})(e,t.schemes)&&(y=t)})),y&&(n=y.url,r=t.requestInterceptor,i=t.responceInterceptor,h=t.getResponce)})),{base_url:n,requestInterceptor:r,responceInterceptor:i,getResponce:h}}function f(e,n,r){var i=[];t.useEffect((function(){var t=document.createElement("div");return t.innerHTML=e,t.querySelectorAll("script").forEach((function(e){var t=document.createElement("script");Array.from(e.attributes).forEach((function(e){"id"!==e.nodeName&&t.setAttribute(e.nodeName,e.nodeValue||"")})),t.innerHTML=e.innerHTML,Object.entries(n||{}).forEach((function(e){var n=e[0],r=e[1];t.setAttribute(n,r)})),document.body.appendChild(t),i=i.concat(t)})),function(){i.forEach((function(e){document.body.removeChild(e)})),i=[]}}),r||[e])}e.default=function(e){var n=e.url,r=e.proxy,d=e.style,h=e.options,v=e.providers,g=e.ImgComponent,_=e.LinkComponent,b=e.FallbackElement,w=e.LoadingFallbackElement,E=t.useState(void 0),S=E[0],k=E[1],O=t.useState("idle"),C=O[0],T=O[1],A=t.useState(""),x=A[0],I=A[1];f(x,{defer:""}),t.useEffect((function(){"idle"===C&&function(){a(this,void 0,void 0,(function(){var e,t;return l(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),T("loading"),[4,p(r,v,y(y({url:n,maxwidth:700,maxheight:500,align:"center"},h),{format:"json"}))];case 1:if(!(e=i.sent()))throw Error("Nill embed responce");return T("done"),k(e),e.html&&I(e.html),[3,3];case 2:return t=i.sent(),console.error("Error",t),T("error"),[3,3];case 3:return[2]}}))}))}()}),[C]);var D,L=i.default.createElement("a",{href:n,target:"_blank",rel:"nofollow noreferrer noopener"},n);return S&&!S.html&&("photo"===S.type?D=g?i.default.createElement(g,{responce:S}):i.default.createElement("img",{alt:"",src:S.url}):"link"===S.type&&(D=_?i.default.createElement(_,{responce:S}):i.default.createElement("a",{href:n,target:"_blank",rel:"nofollow noreferrer noopener"},n))),"loading"===C||"idle"===C?w||L:"error"===C?b||L:i.default.createElement("span",{style:d,className:"__embed __embed_column"},D,x&&i.default.createElement("span",{className:"__embed_column",dangerouslySetInnerHTML:{__html:x}}),i.default.createElement("style",null,".__embed {\n margin: auto;\n width: 100%;\n max-width: 700px;\n} \n.__embed iframe {\n width: 100%;\n margin: auto;\n}\n.__embed img, .__embed video {\n width: 100%;\n margin: 0;\n}\n.__embed blockquote {\n margin: 0;\n}\n.__embed span {\n border: 0;\n} \n.__embed_column {\n width: 100%;\n display: flex;\n flex-direction: column;\n}"))},e.defaultProviders=v,e.getEndpoint=m,e.requestEmbed=p,e.useScript=f,Object.defineProperty(e,"__esModule",{value:!0})},"object"==_typeof(t)?h(t,n(804),n(356),n(163)):(i=[t,n(804),n(356),n(163)],void 0===(d="function"===typeof(r=h)?r.apply(t,i):r)||(e.exports=d))},138: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},295:function(e){e.exports="../img/bg.png"},951:function(e){e.exports="../img/logo.svg"},811:function(e){e.exports="../img/photo1.png"},248: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":295,"./logo.svg":951,"./photo1.png":811,"./photo3.svg":248,"bg.png":295,"img/bg.png":295,"img/logo.svg":951,"img/photo1.png":811,"img/photo3.svg":248,"logo.svg":951,"photo1.png":811,"photo3.svg":248,"src/img/bg.png":295,"src/img/logo.svg":951,"src/img/photo1.png":811,"src/img/photo3.svg":248};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},804:function(e){"use strict";e.exports=React},61:function(){}},t={};function __webpack_require__(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,__webpack_require__),i.exports}__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__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 ui},afterRead:function(){return ai},afterWrite:function(){return pi},applyStyles:function(){return hi},arrow:function(){return gi},auto:function(){return Gr},basePlacements:function(){return Yr},beforeMain:function(){return si},beforeRead:function(){return ii},beforeWrite:function(){return li},bottom:function(){return zr},clippingParents:function(){return $r},computeStyles:function(){return bi},createPopper:function(){return Ni},createPopperBase:function(){return Li},createPopperLite:function(){return Pi},detectOverflow:function(){return detectOverflow},end:function(){return Xr},eventListeners:function(){return Ei},flip:function(){return Oi},hide:function(){return Ci},left:function(){return Wr},main:function(){return ci},modifierPhases:function(){return di},offset:function(){return Ti},placements:function(){return ri},popper:function(){return ei},popperGenerator:function(){return popperGenerator},popperOffsets:function(){return Ai},preventOverflow:function(){return xi},read:function(){return oi},reference:function(){return ti},right:function(){return Hr},start:function(){return Jr},top:function(){return Ur},variationPlacements:function(){return ni},viewport:function(){return Zr},write:function(){return fi}});var t={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"},n={ENVS:["xs","sm","md","lg","xl","xxl","xxxl"]};(function(e){var n="_main.visibility",r=document,i=r.body;r.addEventListener("visibilitychange",(function(){"hidden"===r.visibilityState?(console.log("".concat(n,": Tab: hidden")),i.classList.add("is-hidden"),i.classList.remove("is-focused"),e.dispatchEvent(new Event(t.TABHIDDEN))):(console.log("".concat(n,": Tab: focused")),i.classList.add("is-focused"),i.classList.remove("is-hidden"),e.dispatchEvent(new Event(t.TABFOCUSED)))}))})(window),function(e){var n,r,i="_main.touch",d=document,h=d.body,y=function SET_TOUCH_SCREEN(d,y){r||y===n||(d?(console.log("".concat(i,": Touch screen enabled")),h.classList.add("is-touch"),h.classList.remove("is-mouse"),e.dispatchEvent(new Event(t.TOUCHENABLE))):(console.log("".concat(i,": Touch screen disabled")),h.classList.add("is-mouse"),h.classList.remove("is-touch"),e.dispatchEvent(new Event(t.TOUCHDISABLED))),n=y,r||(r=setTimeout((function(){clearTimeout(r),r=null}),500)))};y("ontouchstart"in e||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0||e.matchMedia("(hover: none)").matches,"init"),d.addEventListener("touchend",(function(e){var t=!1;"click"!==e.type&&(t=!0),y(t,"click-touchend")})),d.addEventListener("click",(function(e){var t=!1;"click"!==e.type&&(t=!0),y(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 r=document,i=r.body,d=function detectCSSScreenSize(){var t,d=r.createElement("div");d.className="env-test",i.appendChild(d);var h=_toConsumableArray(n.ENVS).reverse(),y=h.shift();(t=i.classList).remove.apply(t,_toConsumableArray(h));for(var v=0;v<h.length;++v){var g=h[v];if(d.classList.add("d-".concat(g,"-none")),"none"===e.getComputedStyle(d).display){y=g,i.classList.add("".concat(y));break}}var _=!0;return e.innerWidth>e.innerHeight?(i.classList.add("landscape"),i.classList.remove("portrait")):(_=!1,i.classList.add("portrait"),i.classList.remove("landscape")),console.log("".concat("_main.css-screen-size",": screen size detected ").concat(y," | landscape ").concat(_)),i.removeChild(d),y};e.addEventListener("".concat(t.LOADED),d),e.addEventListener("".concat(t.RESIZE),d)}(window);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)}}var r="_main.loading-spinner",i=document,d=(i.body,i.getElementById("PageLoading")),h=function(){function SpinnerUI(){!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,SpinnerUI)}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(SpinnerUI,null,[{key:"show",value:function show(){console.log("".concat(r,": show")),d.classList.remove("d-none")}},{key:"hide",value:function hide(){console.log("".concat(r,": hide")),d.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 r=document,i=r.body;console.info("%cUI Kit ".concat("@a2nt/ss-bootstrap-ui-webpack-boilerplate-react"," ").concat("4.0.5"),"color:yellow;font-size:14px"),console.info("%c".concat("@a2nt/meta-lightbox-react"," ").concat("3.1.4"),"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(t).forEach((function(e){console.info("".concat(e,": ").concat(t[e]))})),console.groupEnd("Events"),console.groupCollapsed("Consts"),Object.keys(n).forEach((function(e){console.info("".concat(e,": ").concat(n[e]))})),console.groupEnd("Events"),console.groupCollapsed("Init"),console.time("init");var d=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},r.title,e.location.href),this.loaded()}},{key:"loaded",value:function loaded(){console.log("".concat("_main",": loaded"))}}]),MainUI}();e.addEventListener("".concat(t.LOADED),(function(){d.init(),i.classList.add("loaded"),h.hide(),console.groupEnd("init"),console.timeEnd("init"),e.dispatchEvent(new Event(t.LODEDANDREADY))})),e.addEventListener("".concat(t.AJAX),(function(){d.loaded()})),e.MainUI=d}(window);var y="ajax-load",v="load",g=__webpack_require__(804),_=__webpack_require__.n(g),b=ReactDOM,w=__webpack_require__.n(b),E=__webpack_require__(24),S=__webpack_require__.n(E),k=__webpack_require__(316),O=__webpack_require__.n(k),C=__webpack_require__(528),T=__webpack_require__.n(C);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)}function _window_toConsumableArray(e){return function _window_arrayWithoutHoles(e){if(Array.isArray(e))return _window_arrayLikeToArray(e)}(e)||function _window_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function _window_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return _window_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 _window_arrayLikeToArray(e,t)}(e)||function _window_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 _window_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 _window_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 _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=function _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=_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)}}function _possibleConstructorReturn(e,t){return!t||"object"!==_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 _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}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 A=window,x={provider_name:"Instagram",provider_url:"https://instagram.com",endpoints:[{schemes:["http://instagram.com/*/p/*,","http://www.instagram.com/*/p/*,","https://instagram.com/*/p/*,","https://www.instagram.com/*/p/*,","http://instagram.com/p/*","http://instagr.am/p/*","http://www.instagram.com/p/*","http://www.instagr.am/p/*","https://instagram.com/p/*","https://instagr.am/p/*","https://www.instagram.com/p/*","https://www.instagr.am/p/*","http://instagram.com/tv/*","http://instagr.am/tv/*","http://www.instagram.com/tv/*","http://www.instagr.am/tv/*","https://instagram.com/tv/*","https://instagr.am/tv/*","https://www.instagram.com/tv/*","https://www.instagr.am/tv/*"],url:"https://graph.facebook.com/v9.0/instagram_oembed",formats:["json"]},{schemes:["http://instagram.com/*/p/*,","http://www.instagram.com/*/p/*,","https://instagram.com/*/p/*,","https://www.instagram.com/*/p/*,","http://instagram.com/p/*","http://instagr.am/p/*","http://www.instagram.com/p/*","http://www.instagr.am/p/*","https://instagram.com/p/*","https://instagr.am/p/*","https://www.instagram.com/p/*","https://www.instagr.am/p/*","http://instagram.com/tv/*","http://instagr.am/tv/*","http://www.instagram.com/tv/*","http://www.instagr.am/tv/*","https://instagram.com/tv/*","https://instagr.am/tv/*","https://www.instagram.com/tv/*","https://www.instagr.am/tv/*"],url:"https://api.instagram.com/oembed",formats:["json"]}]},I=__webpack_require__(163),D=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)}(MetaWindow,e);var t=_createSuper(MetaWindow);function MetaWindow(e){var n;!function _window_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,MetaWindow),_defineProperty(_assertThisInitialized(n=t.call(this,e)),"state",{content:"",type:[],shown:!1,loading:!1,error:!1,embed:!1,collections:[],current:null}),_defineProperty(_assertThisInitialized(n),"_currIndex",(function(){var e=_assertThisInitialized(n),t=e.state.current,r=t.getAttribute("data-gallery");return e.state.collections[r].indexOf(t)})),_defineProperty(_assertThisInitialized(n),"next",(function(){var e=_assertThisInitialized(n),t=e.state.current.getAttribute("data-gallery"),r=e._currIndex();r<e.state.collections[t].length-1?r++:r=0,e.state.collections[t][r].click(),console.log("".concat(e.name,": next")),A.dispatchEvent(new Event("{ui.name}.next"))})),_defineProperty(_assertThisInitialized(n),"prev",(function(){var e=_assertThisInitialized(n),t=e.state.current.getAttribute("data-gallery"),r=e._currIndex();r>0?r--:r=e.state.collections[t].length-1,e.state.collections[t][r].click(),console.log("".concat(e.name,": prev")),A.dispatchEvent(new Event("{ui.name}.prev"))})),_defineProperty(_assertThisInitialized(n),"reset",(function(){_assertThisInitialized(n).setState({content:"",type:[],shown:!1,loading:!1,error:!1,embed:!1})})),_defineProperty(_assertThisInitialized(n),"embed",(function(e){var t=_assertThisInitialized(n);console.log("".concat(t.name,": embed")),t.reset(),t.setState({embed:e,loading:!1,type:["embed","video"]}),t.show()})),_defineProperty(_assertThisInitialized(n),"setCaption",(function(e){var t=_assertThisInitialized(n);console.log("".concat(t.name,": setCaption")),t.state.caption=e})),_defineProperty(_assertThisInitialized(n),"getCaption",(function(){return{__html:_assertThisInitialized(n).state.caption}})),_defineProperty(_assertThisInitialized(n),"load",(function(e){var t=_assertThisInitialized(n),r=t.axios;t.reset(),t.setState({loading:!0}),t.show(),r.get(e,{responseType:"arraybuffer"}).then((function(e){switch(console.log("".concat(t.name,": response content-type: ").concat(e.headers["content-type"])),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":t.setContent('<img src="data:'.concat(e.headers["content-type"],";base64,").concat(t._imageEncode(e.data),'" />'),"image");break;case"application/json":case"application/ld+json":case"application/json; charset=UTF-8":var n=JSON.parse(t._abToString(e.data));t.setContent("".concat(n.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":t.setContent(t._abToString(e.data),"text html pajax");break;default:console.warn("".concat(t.name,": Unknown response content-type!"))}A.dispatchEvent(new Event("{ui.name}.loaded"))})).catch((function(e){console.error(e);var n="";if(e.response)switch(e.response.status){case 404:n="Not Found.";break;case 500:n="Server issue, please try again latter.";break;default:n="Something went wrong."}else e.request?n="No response received":console.warn("Error",e.message);t.setState({error:n}),A.dispatchEvent(new Event("{ui.name}.error"))})).then((function(){t.setState({loading:!1})}))})),_defineProperty(_assertThisInitialized(n),"_abToString",(function(e){return String.fromCharCode.apply(null,new Uint8Array(e))})),_defineProperty(_assertThisInitialized(n),"_imageEncode",(function(e){new Uint8Array(e);return btoa([].reduce.call(new Uint8Array(e),(function(e,t){return e+String.fromCharCode(t)}),""))})),_defineProperty(_assertThisInitialized(n),"setContent",(function(e,t){var r=_assertThisInitialized(n);console.log("".concat(r.name,": setContent"));var i=t||["html","text"];Array.isArray(i)||(i=t.split(" ")),r.setState({content:e,type:i})})),_defineProperty(_assertThisInitialized(n),"show",(function(){var e=_assertThisInitialized(n);console.log("".concat(e.name,": show")),e.setState({shown:!0}),A.dispatchEvent(new Event("{ui.name}.show"))})),_defineProperty(_assertThisInitialized(n),"hide",(function(){var e=_assertThisInitialized(n);console.log("".concat(e.name,": hide")),O().withContext(name,(function(){O().unbind("left",e.prev),O().unbind("right",e.next)})),O().setContext("index"),e.setState({shown:!1}),A.dispatchEvent(new Event("{ui.name}.hide"))})),_defineProperty(_assertThisInitialized(n),"getHtml",(function(){return{__html:_assertThisInitialized(n).state.content}}));var r=_assertThisInitialized(n);return r.name=r.constructor.name,console.log("".concat(r.name,": init")),r.axios=I,A.dispatchEvent(new Event("{ui.name}.init")),n}return function _window_createClass(e,t,n){return t&&_window_defineProperties(e.prototype,t),n&&_window_defineProperties(e,n),e}(MetaWindow,[{key:"onSwipeMove",value:function onSwipeMove(e,t){var n=this.ui,r=e.x;n.locked||Math.abs(r)<50||(n.locked=!0,setTimeout((function(){n.locked=!1}),1e3),r>0?(console.log("".concat(n.name,": swipe right")),n.prev()):(console.log("".concat(n.name,": swipe left")),n.next()))}},{key:"render",value:function render(){var e=this,t=e.name,n=null,r=e.state.current;if(O().setContext(t),O().withContext(t,(function(){O().unbind("left",e.prev),O().unbind("right",e.next)})),r){var i=r.getAttribute("data-gallery");i&&e.state.collections[i].length>1&&(n=React.createElement("nav",{className:"meta-navs"},React.createElement("button",{className:"meta-nav meta-nav-arrow meta-nav-arrow__prev a",onClick:e.prev},React.createElement("i",{className:"fa fas fa-chevron-left"}),React.createElement("span",{className:"sr-only"},"Previous")),React.createElement("button",{className:"meta-nav meta-nav-arrow meta-nav-arrow__next a",onClick:e.next},React.createElement("i",{className:"fa fas fa-chevron-right"}),React.createElement("span",{className:"sr-only"},"Next"))),O().withContext(t,(function(){O().bind("left",e.prev),O().bind("right",e.next)})))}var d=e.state.embed?React.createElement("section",{className:"meta-wrap typography"},React.createElement(T(),{url:e.state.embed,providers:[].concat(_window_toConsumableArray(C.defaultProviders),[x]),LoadingFallbackElement:React.createElement("div",{className:"meta-spinner_embed"},"... Loading ...")})):React.createElement("section",{className:"meta-wrap typography",dangerouslySetInnerHTML:e.getHtml()}),h="meta-".concat(t," meta-").concat(t,"__").concat(e.state.type.join(" meta-".concat(t,"__"))),y="meta-".concat(t,"-overlay").concat(e.state.shown?" meta-".concat(t,"-overlay__open"):"").concat(e.state.loading?" meta-".concat(t,"-overlay__loading"):"").concat(e.state.error?" meta-".concat(t,"-overlay__error"):""),v=e.state.caption?React.createElement("div",{className:"meta-caption",dangerouslySetInnerHTML:e.getCaption()}):"";return React.createElement(S(),{className:h,ui:e,onSwipeMove:e.onSwipeMove},React.createElement("div",{className:y},React.createElement("article",{className:"meta-content"},n,React.createElement("button",{className:"meta-nav meta-close a",onClick:e.hide},React.createElement("i",{className:"fa fas fa-times"}),React.createElement("span",{className:"sr-only"},"Close")),React.createElement("div",{className:"meta-spinner"},"... Loading ..."),React.createElement("div",{className:"meta-error alert alert-danger"},e.state.error),d,v)))}}]),MetaWindow}(g.Component);!function(e){var t=w().render(_().createElement(D,null),document.getElementById("MetaLightboxApp")),n=function initMetaWindowLinks(){var e=t;console.log("MetaWindow: [links] init"),document.querySelectorAll('[data-toggle="lightbox"],[data-gallery="${gallery}"]').forEach((function(t){var n=t.getAttribute("data-gallery");n&&(e.state.collections[n]=[],document.querySelectorAll('[data-toggle="lightbox"][data-gallery="'.concat(n,'"]')).forEach((function(t){e.state.collections[n].push(t)}))),t.addEventListener("click",(function(t){t.preventDefault(),console.log("MetaWindow: [link] click");var n=t.currentTarget,r=n.getAttribute("href")||n.getAttribute("data-href"),i=n.getAttribute("data-embed");e.state.current=n,i?e.embed(r):e.load(r);var d=n.getAttribute("data-title");d&&e.setCaption(d)}))}))};e.addEventListener("".concat(v),n),e.addEventListener("".concat(y),n),e.addEventListener("MetaWindow.initLinks",n)}(window);function selector_engine_toConsumableArray(e){return function selector_engine_arrayWithoutHoles(e){if(Array.isArray(e))return selector_engine_arrayLikeToArray(e)}(e)||function selector_engine_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function selector_engine_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return selector_engine_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 selector_engine_arrayLikeToArray(e,t)}(e)||function selector_engine_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 selector_engine_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}var L={find:function find(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(t=[]).concat.apply(t,selector_engine_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,selector_engine_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[]}};function util_typeof(e){return(util_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 N="transitionend",P=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},j=function getTransitionDurationFromElement(e){if(!e)return 0;var t=window.getComputedStyle(e),n=t.transitionDuration,r=t.transitionDelay,i=Number.parseFloat(n),d=Number.parseFloat(r);return i||d?(n=n.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(r))):0},M=function triggerTransitionEnd(e){e.dispatchEvent(new Event(N))},R=function isElement(e){return!(!e||"object"!==util_typeof(e))&&("undefined"!==typeof e.jquery&&(e=e[0]),"undefined"!==typeof e.nodeType)},F=function getjQuery(){var jQuery=window.jQuery;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},q=[],Q=function isRTL(){return"rtl"===document.documentElement.dir},V=function execute(e){"function"===typeof e&&e()},B=function executeAfterTransition(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(n){var r=5,i=j(t)+r,d=!1,h=function handler(n){n.target===t&&(d=!0,t.removeEventListener(N,handler),V(e))};t.addEventListener(N,h),setTimeout((function(){d||M(t)}),i)}else V(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,d=[],h=!0,y=!1;try{for(n=n.call(e);!(h=(r=n.next()).done)&&(d.push(r.value),!t||d.length!==t);h=!0);}catch(v){y=!0,i=v}finally{try{h||null==n.return||n.return()}finally{if(y)throw i}}return d}(e,t)||function event_handler_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return event_handler_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 event_handler_arrayLikeToArray(e,t)}(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 event_handler_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}var K=/[^.]*(?=\..*)\.|.*/,U=/\..*/,z=/::\d+$/,H={},W=1,G={mouseenter:"mouseover",mouseleave:"mouseout"},Y=/^(mouseenter|mouseleave)/i,J=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(W++)||e.uidEvent||W++}function getEvent(e){var t=getUidEvent(e);return e.uidEvent=t,H[t]=H[t]||{},H[t]}function findHandler(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=Object.keys(e),i=0,d=r.length;i<d;i++){var h=e[r[i]];if(h.originalHandler===t&&h.delegationSelector===n)return h}return null}function normalizeParams(e,t,n){var r="string"===typeof t,i=r?n:t,d=getTypeEvent(e);return J.has(d)||(d=e),[r,i,d]}function addHandler(e,t,n,r,i){if("string"===typeof t&&e){if(n||(n=r,r=null),Y.test(t)){var d=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=d(r):n=d(n)}var h=_slicedToArray(normalizeParams(t,n,r),3),y=h[0],v=h[1],g=h[2],_=getEvent(e),b=_[g]||(_[g]={}),w=findHandler(b,v,y?n:null);if(w)w.oneOff=w.oneOff&&i;else{var E=getUidEvent(v,t.replace(K,"")),S=y?function bootstrapDelegationHandler(e,t,n){return function handler(r){for(var i=e.querySelectorAll(t),d=r.target;d&&d!==this;d=d.parentNode)for(var h=i.length;h--;)if(i[h]===d)return r.delegateTarget=d,handler.oneOff&&X.off(e,r.type,t,n),n.apply(d,[r]);return null}}(e,n,r):function bootstrapHandler(e,t){return function handler(n){return n.delegateTarget=e,handler.oneOff&&X.off(e,n.type,t),t.apply(e,[n])}}(e,n);S.delegationSelector=y?n:null,S.originalHandler=v,S.oneOff=i,S.uidEvent=E,b[E]=S,e.addEventListener(g,S,y)}}}function removeHandler(e,t,n,r,i){var d=findHandler(t[n],r,i);d&&(e.removeEventListener(n,d,Boolean(i)),delete t[n][d.uidEvent])}function getTypeEvent(e){return e=e.replace(U,""),G[e]||e}var X={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),d=i[0],h=i[1],y=i[2],v=y!==t,g=getEvent(e),_=t.startsWith(".");if("undefined"===typeof h){_&&Object.keys(g).forEach((function(n){!function removeNamespacedHandlers(e,t,n,r){var i=t[n]||{};Object.keys(i).forEach((function(d){if(d.includes(r)){var h=i[d];removeHandler(e,t,n,h.originalHandler,h.delegationSelector)}}))}(e,g,n,t.slice(1))}));var b=g[y]||{};Object.keys(b).forEach((function(n){var r=n.replace(z,"");if(!v||t.includes(r)){var i=b[n];removeHandler(e,g,y,i.originalHandler,i.delegationSelector)}}))}else{if(!g||!g[y])return;removeHandler(e,g,y,h,d?n:null)}}},trigger:function trigger(e,t,n){if("string"!==typeof t||!e)return null;var r,$=F(),i=getTypeEvent(t),d=t!==i,h=J.has(i),y=!0,v=!0,g=!1,_=null;return d&&$&&(r=$.Event(t,n),$(e).trigger(r),y=!r.isPropagationStopped(),v=!r.isImmediatePropagationStopped(),g=r.isDefaultPrevented()),h?(_=document.createEvent("HTMLEvents")).initEvent(i,y,!0):_=new CustomEvent(t,{bubbles:y,cancelable:!0}),"undefined"!==typeof n&&Object.keys(n).forEach((function(e){Object.defineProperty(_,e,{get:function get(){return n[e]}})})),g&&_.preventDefault(),v&&e.dispatchEvent(_),_.defaultPrevented&&"undefined"!==typeof r&&r.preventDefault(),_}},Z=X;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())}))}var ee={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+document.body.scrollTop,left:t.left+document.body.scrollLeft}},position:function position(e){return{top:e.offsetTop,left:e.offsetLeft}}},te=new Map,ne=function set(e,t,n){te.has(e)||te.set(e,new Map);var r=te.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],"."))},re=function get(e,t){return te.has(e)&&te.get(e).get(t)||null},ie=function remove(e,t){if(te.has(e)){var n=te.get(e);n.delete(t),0===n.size&&te.delete(e)}};function base_component_typeof(e){return(base_component_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 base_component_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 oe,ae=function(){function BaseComponent(e){!function base_component_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,BaseComponent),(e=function getElement(e){return R(e)?e.jquery?e[0]:e:"string"===typeof e&&e.length>0?L.findOne(e):null}(e))&&(this._element=e,ne(this._element,this.constructor.DATA_KEY,this))}return function base_component_createClass(e,t,n){return t&&base_component_defineProperties(e.prototype,t),n&&base_component_defineProperties(e,n),e}(BaseComponent,[{key:"dispose",value:function dispose(){var e=this;ie(this._element,this.constructor.DATA_KEY),Z.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];B(e,t,n)}}],[{key:"getInstance",value:function getInstance(e){return re(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"===base_component_typeof(t)?t:null)}},{key:"VERSION",get:function get(){return"5.0.2"}},{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}();function carousel_typeof(e){return(carousel_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 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){carousel_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 carousel_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 carousel_setPrototypeOf(e,t){return(carousel_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function carousel_createSuper(e){var t=function carousel_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=carousel_getPrototypeOf(e);if(t){var i=carousel_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return carousel_possibleConstructorReturn(this,n)}}function carousel_possibleConstructorReturn(e,t){return!t||"object"!==carousel_typeof(t)&&"function"!==typeof t?function carousel_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function carousel_getPrototypeOf(e){return(carousel_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function carousel_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 se="carousel",ce=".".concat("bs.carousel"),ue=".data-api",le={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},fe={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},pe="next",de="prev",he="left",me="right",ye=(carousel_defineProperty(oe={},"ArrowLeft",me),carousel_defineProperty(oe,"ArrowRight",he),oe),ve="slide".concat(ce),ge="slid".concat(ce),_e="keydown".concat(ce),be="mouseenter".concat(ce),we="mouseleave".concat(ce),Ee="touchstart".concat(ce),Se="touchmove".concat(ce),ke="touchend".concat(ce),Oe="pointerdown".concat(ce),Ce="pointerup".concat(ce),Te="dragstart".concat(ce),Ae="load".concat(ce).concat(ue),xe="click".concat(ce).concat(ue),Ie="active",De=".active.carousel-item",Le="touch",Ne=function(e){!function carousel_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&&carousel_setPrototypeOf(e,t)}(Carousel,e);var t=carousel_createSuper(Carousel);function Carousel(e,n){var r;return function carousel_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(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=L.findOne(".carousel-indicators",r._element),r._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,r._pointerEvent=Boolean(window.PointerEvent),r._addEventListeners(),r}return function carousel_createClass(e,t,n){return t&&carousel_defineProperties(e.prototype,t),n&&carousel_defineProperties(e,n),e}(Carousel,[{key:"next",value:function next(){this._slide(pe)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&function isVisible(e){return!(!R(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility")}(this._element)&&this.next()}},{key:"prev",value:function prev(){this._slide(de)}},{key:"pause",value:function pause(e){e||(this._isPaused=!0),L.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(M(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=L.findOne(De,this._element);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)Z.one(this._element,ge,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?pe:de;this._slide(r,this._items[e])}}},{key:"_getConfig",value:function _getConfig(e){return e=_objectSpread(_objectSpread(_objectSpread({},le),ee.getDataAttributes(this._element)),"object"===carousel_typeof(e)?e:{}),function typeCheckConfig(e,t,n){Object.keys(n).forEach((function(r){var i=n[r],d=t[r],h=d&&R(d)?"element":function toType(e){return null===e||void 0===e?"".concat(e):{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}(d);if(!new RegExp(i).test(h))throw new TypeError("".concat(e.toUpperCase(),': Option "').concat(r,'" provided type "').concat(h,'" but expected type "').concat(i,'".'))}))}(se,e,fe),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?me:he)}}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;this._config.keyboard&&Z.on(this._element,_e,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(Z.on(this._element,be,(function(t){return e.pause(t)})),Z.on(this._element,we,(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!==Le?e._pointerEvent||(e.touchStartX=t.touches[0].clientX):e.touchStartX=t.clientX},n=function end(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==Le||(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))};L.find(".carousel-item img",this._element).forEach((function(e){Z.on(e,Te,(function(e){return e.preventDefault()}))})),this._pointerEvent?(Z.on(this._element,Oe,(function(e){return t(e)})),Z.on(this._element,Ce,(function(e){return n(e)})),this._element.classList.add("pointer-event")):(Z.on(this._element,Ee,(function(e){return t(e)})),Z.on(this._element,Se,(function(t){return function move(t){e.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-e.touchStartX}(t)})),Z.on(this._element,ke,(function(e){return n(e)})))}},{key:"_keydown",value:function _keydown(e){if(!/input|textarea/i.test(e.target.tagName)){var t=ye[e.key];t&&(e.preventDefault(),this._slide(t))}}},{key:"_getItemIndex",value:function _getItemIndex(e){return this._items=e&&e.parentNode?L.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}},{key:"_getItemByOrder",value:function _getItemByOrder(e,t){var n=e===pe;return function getNextActiveElement(e,t,n,r){var i=e.indexOf(t);if(-1===i)return e[!n&&r?e.length-1:0];var d=e.length;return i+=n?1:-1,r&&(i=(i+d)%d),e[Math.max(0,Math.min(i,d-1))]}(this._items,t,n,this._config.wrap)}},{key:"_triggerSlideEvent",value:function _triggerSlideEvent(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(L.findOne(De,this._element));return Z.trigger(this._element,ve,{relatedTarget:e,direction:t,from:r,to:n})}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(e){if(this._indicatorsElement){var t=L.findOne(".active",this._indicatorsElement);t.classList.remove(Ie),t.removeAttribute("aria-current");for(var n=L.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(Ie),n[r].setAttribute("aria-current","true");break}}}},{key:"_updateInterval",value:function _updateInterval(){var e=this._activeElement||L.findOne(De,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=L.findOne(De,this._element),d=this._getItemIndex(i),h=t||this._getItemByOrder(r,i),y=this._getItemIndex(h),v=Boolean(this._interval),g=r===pe,_=g?"carousel-item-start":"carousel-item-end",b=g?"carousel-item-next":"carousel-item-prev",w=this._orderToDirection(r);if(h&&h.classList.contains(Ie))this._isSliding=!1;else if(!this._isSliding&&!this._triggerSlideEvent(h,w).defaultPrevented&&i&&h){this._isSliding=!0,v&&this.pause(),this._setActiveIndicatorElement(h),this._activeElement=h;var E=function triggerSlidEvent(){Z.trigger(n._element,ge,{relatedTarget:h,direction:w,from:d,to:y})};if(this._element.classList.contains("slide")){h.classList.add(b),function reflow(e){e.offsetHeight}(h),i.classList.add(_),h.classList.add(_);this._queueCallback((function completeCallBack(){h.classList.remove(_,b),h.classList.add(Ie),i.classList.remove(Ie,b,_),n._isSliding=!1,setTimeout(E,0)}),i,!0)}else i.classList.remove(Ie),h.classList.add(Ie),this._isSliding=!1,E();v&&this.cycle()}}},{key:"_directionToOrder",value:function _directionToOrder(e){return[me,he].includes(e)?Q()?e===he?de:pe:e===he?pe:de:e}},{key:"_orderToDirection",value:function _orderToDirection(e){return[pe,de].includes(e)?Q()?e===de?he:me:e===de?me:he:e}}],[{key:"Default",get:function get(){return le}},{key:"NAME",get:function get(){return se}},{key:"carouselInterface",value:function carouselInterface(e,t){var n=Carousel.getOrCreateInstance(e,t),r=n._config;"object"===carousel_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=function getElementFromSelector(e){var t=P(e);return t?document.querySelector(t):null}(this);if(t&&t.classList.contains("carousel")){var n=_objectSpread(_objectSpread({},ee.getDataAttributes(t)),ee.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}(ae);Z.on(document,xe,"[data-bs-slide], [data-bs-slide-to]",Ne.dataApiClickHandler),Z.on(window,Ae,(function(){for(var e=L.find('[data-bs-ride="carousel"]'),t=0,n=e.length;t<n;t++)Ne.carouselInterface(e[t],Ne.getInstance(e[t]))})),function defineJQueryPlugin(e){!function onDOMContentLoaded(e){"loading"===document.readyState?(q.length||document.addEventListener("DOMContentLoaded",(function(){q.forEach((function(e){return e()}))})),q.push(e)):e()}((function(){var $=F();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}}}))}(Ne);var Pe=Ne;!function(e){var n="js-carousel",r=function init(){console.log("".concat(n,": init")),document.querySelectorAll(".".concat(n)).forEach((function(e,t){var r=new Pe(e);if(e.dataset.bsArrows){var i=document.createElement("button");i.classList.add("carousel-control-next"),i.setAttribute("type","button"),i.setAttribute("data-bs-target",e.getAttribute("id")),i.setAttribute("data-bs-slide","next"),i.addEventListener("click",(function(e){r.next()})),i.innerHTML='<span class="carousel-control-next-icon" aria-hidden="true"></span><span class="visually-hidden">Next</span>',e.appendChild(i);var d=document.createElement("button");d.setAttribute("type","button"),d.classList.add("carousel-control-prev"),d.setAttribute("data-bs-target",e.getAttribute("id")),d.setAttribute("data-bs-slide","prev"),d.addEventListener("click",(function(e){r.prev()})),d.innerHTML='<span class="carousel-control-prev-icon" aria-hidden="true"></span><span class="visually-hidden">Previous</span>',e.appendChild(d)}e.dataset.bsIndicators&&function(){var t=document.createElement("div");t.classList.add("carousel-indicators");for(var n=e.querySelectorAll(".carousel-item"),i=0;i<n.length;){var d=document.createElement("button");d.setAttribute("type","button"),0==i&&d.classList.add("active"),d.setAttribute("data-bs-target",e.getAttribute("id")),d.setAttribute("data-bs-slide-to",i),d.addEventListener("click",(function(e){var n=e.target;r.to(n.getAttribute("data-bs-slide-to")),t.querySelectorAll(".active").forEach((function(e){e.classList.remove("active")})),n.classList.add("active")})),t.appendChild(d),i++}e.appendChild(t),e.addEventListener("slide.bs.carousel",(function(t){e.querySelectorAll(".carousel-indicators .active").forEach((function(e){e.classList.remove("active")})),e.querySelectorAll('.carousel-indicators [data-bs-slide-to="'.concat(t.to,'"]')).forEach((function(e){e.classList.add("active")}))}))}(),e.classList.add("".concat(n,"-active"))}))};e.addEventListener("".concat(t.LODEDANDREADY),r),e.addEventListener("".concat(t.AJAX),r)}(window);var je=function extendStatics(e,t){return(je=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}je(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var Me=function __assign(){return(Me=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,d){function fulfilled(e){try{step(r.next(e))}catch(t){d(t)}}function rejected(e){try{step(r.throw(e))}catch(t){d(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,d,h={label:0,sent:function sent(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return d={next:verb(0),throw:verb(1),return:verb(2)},"function"===typeof Symbol&&(d[Symbol.iterator]=function(){return this}),d;function verb(d){return function(y){return function step(d){if(n)throw new TypeError("Generator is already executing.");for(;h;)try{if(n=1,r&&(i=2&d[0]?r.return:d[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,d[1])).done)return i;switch(r=0,i&&(d=[2&d[0],i.value]),d[0]){case 0:case 1:i=d;break;case 4:return h.label++,{value:d[1],done:!1};case 5:h.label++,r=d[1],d=[0];continue;case 7:d=h.ops.pop(),h.trys.pop();continue;default:if(!(i=(i=h.trys).length>0&&i[i.length-1])&&(6===d[0]||2===d[0])){h=0;continue}if(3===d[0]&&(!i||d[1]>i[0]&&d[1]<i[3])){h.label=d[1];break}if(6===d[0]&&h.label<i[1]){h.label=i[1],i=d;break}if(i&&h.label<i[2]){h.label=i[2],h.ops.push(d);break}i[2]&&h.ops.pop(),h.trys.pop();continue}d=t.call(e,h)}catch(y){d=[6,y],r=0}finally{n=i=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([d,y])}}}Object.create;function __spreadArray(e,t,n){if(n||2===arguments.length)for(var r,i=0,d=t.length;i<d;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 Re="function"===typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function getLocation(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,d=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,d=t+1-(n.index+n[0].length);return{line:i,column:d}}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,d=e.locationOffset.line-1,h=t.line+d,y=1===t.line?n:0,v=t.column+y,g="".concat(e.name,":").concat(h,":").concat(v,"\n"),_=r.split(/\r\n|[\n\r]/g),b=_[i];if(b.length>120){for(var w=Math.floor(v/80),E=v%80,S=[],k=0;k<b.length;k+=80)S.push(b.slice(k,k+80));return g+printPrefixedLines([["".concat(h),S[0]]].concat(S.slice(1,w+1).map((function(e){return["",e]})),[[" ",whitespace(E-1)+"^"],["",S[w+1]]]))}return g+printPrefixedLines([["".concat(h-1),_[i-1]],["".concat(h),b],["",whitespace(v-1)+"^"],["".concat(h+1),_[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 GraphQLError_possibleConstructorReturn(e,t){return!t||"object"!==GraphQLError_typeof(t)&&"function"!==typeof t?GraphQLError_assertThisInitialized(e):t}function GraphQLError_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,GraphQLError_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(e.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),GraphQLError_setPrototypeOf(Wrapper,e)})(e)}function _construct(e,t,n){return(_construct=GraphQLError_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&&GraphQLError_setPrototypeOf(i,n.prototype),i}).apply(null,arguments)}function GraphQLError_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 GraphQLError_setPrototypeOf(e,t){return(GraphQLError_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function GraphQLError_getPrototypeOf(e){return(GraphQLError_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fe=function(e){!function GraphQLError_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&&GraphQLError_setPrototypeOf(e,t)}(GraphQLError,e);var t=function GraphQLError_createSuper(e){var t=GraphQLError_isNativeReflectConstruct();return function _createSuperInternal(){var n,r=GraphQLError_getPrototypeOf(e);if(t){var i=GraphQLError_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return GraphQLError_possibleConstructorReturn(this,n)}}(GraphQLError);function GraphQLError(e,n,r,i,d,h,y){var v,g,_,b,w;!function GraphQLError_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,GraphQLError),w=t.call(this,e);var E,S=Array.isArray(n)?0!==n.length?n:void 0:n?[n]:void 0,k=r;!k&&S&&(k=null===(E=S[0].loc)||void 0===E?void 0:E.source);var O,C=i;!C&&S&&(C=S.reduce((function(e,t){return t.loc&&e.push(t.loc.start),e}),[])),C&&0===C.length&&(C=void 0),i&&r?O=i.map((function(e){return getLocation(r,e)})):S&&(O=S.reduce((function(e,t){return t.loc&&e.push(getLocation(t.loc.source,t.loc.start)),e}),[]));var T=y;if(null==T&&null!=h){var A=h.extensions;isObjectLike(A)&&(T=A)}return Object.defineProperties(GraphQLError_assertThisInitialized(w),{name:{value:"GraphQLError"},message:{value:e,enumerable:!0,writable:!0},locations:{value:null!==(v=O)&&void 0!==v?v:void 0,enumerable:null!=O},path:{value:null!==d&&void 0!==d?d:void 0,enumerable:null!=d},nodes:{value:null!==S&&void 0!==S?S:void 0},source:{value:null!==(g=k)&&void 0!==g?g:void 0},positions:{value:null!==(_=C)&&void 0!==_?_:void 0},originalError:{value:h},extensions:{value:null!==(b=T)&&void 0!==b?b:void 0,enumerable:null!=T}}),null!==h&&void 0!==h&&h.stack?(Object.defineProperty(GraphQLError_assertThisInitialized(w),"stack",{value:h.stack,writable:!0,configurable:!0}),GraphQLError_possibleConstructorReturn(w)):(Error.captureStackTrace?Error.captureStackTrace(GraphQLError_assertThisInitialized(w),GraphQLError):Object.defineProperty(GraphQLError_assertThisInitialized(w),"stack",{value:Error().stack,writable:!0,configurable:!0}),w)}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 d=0,h=e.locations;d<h.length;d++){var y=h[d];t+="\n\n"+printSourceLocation(e.source,y)}return t}(this)}},{key:Re,get:function get(){return"Object"}}]),GraphQLError}(_wrapNativeSuper(Error));function syntaxError(e,t,n){return new Fe("Syntax Error: ".concat(n),void 0,e,[t])}var qe=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 Qe="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,Qe&&(e.prototype[Qe]=t)}var Ve=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(Ve);var Be=function(){function Token(e,t,n,r,i,d,h){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=h,this.prev=d,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(Be);var Ke=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(Qe)];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=[],d=0;d<n;++d)i.push(formatValue(e[d],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 Ue=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 ze=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:Re,get:function get(){return"Source"}}]),Source}();var He=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,d=null,h=0;h<e.length;++h)switch(e.charCodeAt(h)){case 13:10===e.charCodeAt(h+1)&&++h;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===d||i<d)&&(d=i),r=!1}return null!==(t=d)&&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 d=t.length;d>i&&isBlank(t[d-1]);)--d;return t.slice(i,d).join("\n")}function isBlank(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}var We=function(){function Lexer(e){var t=new Be(Ke.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!==Ke.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=readToken(this,e)}while(e.kind===Ke.COMMENT);return e},Lexer}();function printCharCode(e){return isNaN(e)?Ke.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,d=t.end;d<i;){var h=r.charCodeAt(d),y=e.line,v=1+d-e.lineStart;switch(h){case 65279:case 9:case 32:case 44:++d;continue;case 10:++d,++e.line,e.lineStart=d;continue;case 13:10===r.charCodeAt(d+1)?d+=2:++d,++e.line,e.lineStart=d;continue;case 33:return new Be(Ke.BANG,d,d+1,y,v,t);case 35:return readComment(n,d,y,v,t);case 36:return new Be(Ke.DOLLAR,d,d+1,y,v,t);case 38:return new Be(Ke.AMP,d,d+1,y,v,t);case 40:return new Be(Ke.PAREN_L,d,d+1,y,v,t);case 41:return new Be(Ke.PAREN_R,d,d+1,y,v,t);case 46:if(46===r.charCodeAt(d+1)&&46===r.charCodeAt(d+2))return new Be(Ke.SPREAD,d,d+3,y,v,t);break;case 58:return new Be(Ke.COLON,d,d+1,y,v,t);case 61:return new Be(Ke.EQUALS,d,d+1,y,v,t);case 64:return new Be(Ke.AT,d,d+1,y,v,t);case 91:return new Be(Ke.BRACKET_L,d,d+1,y,v,t);case 93:return new Be(Ke.BRACKET_R,d,d+1,y,v,t);case 123:return new Be(Ke.BRACE_L,d,d+1,y,v,t);case 124:return new Be(Ke.PIPE,d,d+1,y,v,t);case 125:return new Be(Ke.BRACE_R,d,d+1,y,v,t);case 34:return 34===r.charCodeAt(d+1)&&34===r.charCodeAt(d+2)?readBlockString(n,d,y,v,t,e):readString(n,d,y,v,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,d,h,y,v,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,d,y,v,t)}throw syntaxError(n,d,unexpectedCharacterMessage(h))}var g=e.line,_=1+d-e.lineStart;return new Be(Ke.EOF,i,i,g,_,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 d,h=e.body,y=t;do{d=h.charCodeAt(++y)}while(!isNaN(d)&&(d>31||9===d));return new Be(Ke.COMMENT,t,y,n,r,i,h.slice(t+1,y))}function readNumber(e,t,n,r,i,d){var h=e.body,y=n,v=t,g=!1;if(45===y&&(y=h.charCodeAt(++v)),48===y){if((y=h.charCodeAt(++v))>=48&&y<=57)throw syntaxError(e,v,"Invalid number, unexpected digit after 0: ".concat(printCharCode(y),"."))}else v=readDigits(e,v,y),y=h.charCodeAt(v);if(46===y&&(g=!0,y=h.charCodeAt(++v),v=readDigits(e,v,y),y=h.charCodeAt(v)),69!==y&&101!==y||(g=!0,43!==(y=h.charCodeAt(++v))&&45!==y||(y=h.charCodeAt(++v)),v=readDigits(e,v,y),y=h.charCodeAt(v)),46===y||function isNameStart(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(y))throw syntaxError(e,v,"Invalid number, expected digit but got: ".concat(printCharCode(y),"."));return new Be(g?Ke.FLOAT:Ke.INT,t,v,r,i,d,h.slice(t,v))}function readDigits(e,t,n){var r=e.body,i=t,d=n;if(d>=48&&d<=57){do{d=r.charCodeAt(++i)}while(d>=48&&d<=57);return i}throw syntaxError(e,i,"Invalid number, expected digit but got: ".concat(printCharCode(d),"."))}function readString(e,t,n,r,i){for(var d,h,y,v,g=e.body,_=t+1,b=_,w=0,E="";_<g.length&&!isNaN(w=g.charCodeAt(_))&&10!==w&&13!==w;){if(34===w)return E+=g.slice(b,_),new Be(Ke.STRING,t,_+1,n,r,i,E);if(w<32&&9!==w)throw syntaxError(e,_,"Invalid character within String: ".concat(printCharCode(w),"."));if(++_,92===w){switch(E+=g.slice(b,_-1),w=g.charCodeAt(_)){case 34:E+='"';break;case 47:E+="/";break;case 92:E+="\\";break;case 98:E+="\b";break;case 102:E+="\f";break;case 110:E+="\n";break;case 114:E+="\r";break;case 116:E+="\t";break;case 117:var S=(d=g.charCodeAt(_+1),h=g.charCodeAt(_+2),y=g.charCodeAt(_+3),v=g.charCodeAt(_+4),char2hex(d)<<12|char2hex(h)<<8|char2hex(y)<<4|char2hex(v));if(S<0){var k=g.slice(_+1,_+5);throw syntaxError(e,_,"Invalid character escape sequence: \\u".concat(k,"."))}E+=String.fromCharCode(S),_+=4;break;default:throw syntaxError(e,_,"Invalid character escape sequence: \\".concat(String.fromCharCode(w),"."))}b=++_}}throw syntaxError(e,_,"Unterminated string.")}function readBlockString(e,t,n,r,i,d){for(var h=e.body,y=t+3,v=y,g=0,_="";y<h.length&&!isNaN(g=h.charCodeAt(y));){if(34===g&&34===h.charCodeAt(y+1)&&34===h.charCodeAt(y+2))return _+=h.slice(v,y),new Be(Ke.BLOCK_STRING,t,y+3,n,r,i,dedentBlockStringValue(_));if(g<32&&9!==g&&10!==g&&13!==g)throw syntaxError(e,y,"Invalid character within String: ".concat(printCharCode(g),"."));10===g?(++y,++d.line,d.lineStart=y):13===g?(10===h.charCodeAt(y+1)?y+=2:++y,++d.line,d.lineStart=y):92===g&&34===h.charCodeAt(y+1)&&34===h.charCodeAt(y+2)&&34===h.charCodeAt(y+3)?(_+=h.slice(v,y)+'"""',v=y+=4):++y}throw syntaxError(e,y,"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 d=e.body,h=d.length,y=t+1,v=0;y!==h&&!isNaN(v=d.charCodeAt(y))&&(95===v||v>=48&&v<=57||v>=65&&v<=90||v>=97&&v<=122);)++y;return new Be(Ke.NAME,t,y,n,r,i,d.slice(t,y))}var Ge=function(){function Parser(e,t){var n=function isSource(e){return Ue(e,ze)}(e)?e:new ze(e);this._lexer=new We(n),this._options=t}var e=Parser.prototype;return e.parseName=function parseName(){var e=this.expectToken(Ke.NAME);return{kind:qe.NAME,value:e.value,loc:this.loc(e)}},e.parseDocument=function parseDocument(){var e=this._lexer.token;return{kind:qe.DOCUMENT,definitions:this.many(Ke.SOF,this.parseDefinition,Ke.EOF),loc:this.loc(e)}},e.parseDefinition=function parseDefinition(){if(this.peek(Ke.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(Ke.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(Ke.BRACE_L))return{kind:qe.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(Ke.NAME)&&(t=this.parseName()),{kind:qe.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(Ke.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(Ke.PAREN_L,this.parseVariableDefinition,Ke.PAREN_R)},e.parseVariableDefinition=function parseVariableDefinition(){var e=this._lexer.token;return{kind:qe.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Ke.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Ke.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(Ke.DOLLAR),{kind:qe.VARIABLE,name:this.parseName(),loc:this.loc(e)}},e.parseSelectionSet=function parseSelectionSet(){var e=this._lexer.token;return{kind:qe.SELECTION_SET,selections:this.many(Ke.BRACE_L,this.parseSelection,Ke.BRACE_R),loc:this.loc(e)}},e.parseSelection=function parseSelection(){return this.peek(Ke.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function parseField(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(Ke.COLON)?(e=r,t=this.parseName()):t=r,{kind:qe.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Ke.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(Ke.PAREN_L,t,Ke.PAREN_R)},e.parseArgument=function parseArgument(){var e=this._lexer.token,t=this.parseName();return this.expectToken(Ke.COLON),{kind:qe.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},e.parseConstArgument=function parseConstArgument(){var e=this._lexer.token;return{kind:qe.ARGUMENT,name:this.parseName(),value:(this.expectToken(Ke.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},e.parseFragment=function parseFragment(){var e=this._lexer.token;this.expectToken(Ke.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(Ke.NAME)?{kind:qe.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:qe.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:qe.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:qe.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 Ke.BRACKET_L:return this.parseList(e);case Ke.BRACE_L:return this.parseObject(e);case Ke.INT:return this._lexer.advance(),{kind:qe.INT,value:t.value,loc:this.loc(t)};case Ke.FLOAT:return this._lexer.advance(),{kind:qe.FLOAT,value:t.value,loc:this.loc(t)};case Ke.STRING:case Ke.BLOCK_STRING:return this.parseStringLiteral();case Ke.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:qe.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:qe.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:qe.NULL,loc:this.loc(t)};default:return{kind:qe.ENUM,value:t.value,loc:this.loc(t)}}case Ke.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},e.parseStringLiteral=function parseStringLiteral(){var e=this._lexer.token;return this._lexer.advance(),{kind:qe.STRING,value:e.value,block:e.kind===Ke.BLOCK_STRING,loc:this.loc(e)}},e.parseList=function parseList(e){var t=this,n=this._lexer.token;return{kind:qe.LIST,values:this.any(Ke.BRACKET_L,(function item(){return t.parseValueLiteral(e)}),Ke.BRACKET_R),loc:this.loc(n)}},e.parseObject=function parseObject(e){var t=this,n=this._lexer.token;return{kind:qe.OBJECT,fields:this.any(Ke.BRACE_L,(function item(){return t.parseObjectField(e)}),Ke.BRACE_R),loc:this.loc(n)}},e.parseObjectField=function parseObjectField(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(Ke.COLON),{kind:qe.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},e.parseDirectives=function parseDirectives(e){for(var t=[];this.peek(Ke.AT);)t.push(this.parseDirective(e));return t},e.parseDirective=function parseDirective(e){var t=this._lexer.token;return this.expectToken(Ke.AT),{kind:qe.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(Ke.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(Ke.BRACKET_R),e={kind:qe.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(Ke.BANG)?{kind:qe.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},e.parseNamedType=function parseNamedType(){var e=this._lexer.token;return{kind:qe.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===Ke.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(Ke.STRING)||this.peek(Ke.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(Ke.BRACE_L,this.parseOperationTypeDefinition,Ke.BRACE_R);return{kind:qe.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(Ke.COLON);var n=this.parseNamedType();return{kind:qe.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:qe.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),d=this.parseFieldsDefinition();return{kind:qe.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:d,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(Ke.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(Ke.AMP)||this.peek(Ke.NAME));return t}return this.delimitedMany(Ke.AMP,this.parseNamedType)},e.parseFieldsDefinition=function parseFieldsDefinition(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(Ke.BRACE_L)&&this._lexer.lookahead().kind===Ke.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(Ke.BRACE_L,this.parseFieldDefinition,Ke.BRACE_R)},e.parseFieldDefinition=function parseFieldDefinition(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(Ke.COLON);var i=this.parseTypeReference(),d=this.parseDirectives(!0);return{kind:qe.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:d,loc:this.loc(e)}},e.parseArgumentDefs=function parseArgumentDefs(){return this.optionalMany(Ke.PAREN_L,this.parseInputValueDef,Ke.PAREN_R)},e.parseInputValueDef=function parseInputValueDef(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(Ke.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(Ke.EQUALS)&&(r=this.parseValueLiteral(!0));var d=this.parseDirectives(!0);return{kind:qe.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:d,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),d=this.parseFieldsDefinition();return{kind:qe.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:d,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:qe.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},e.parseUnionMemberTypes=function parseUnionMemberTypes(){return this.expectOptionalToken(Ke.EQUALS)?this.delimitedMany(Ke.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:qe.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},e.parseEnumValuesDefinition=function parseEnumValuesDefinition(){return this.optionalMany(Ke.BRACE_L,this.parseEnumValueDefinition,Ke.BRACE_R)},e.parseEnumValueDefinition=function parseEnumValueDefinition(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:qe.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:qe.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},e.parseInputFieldsDefinition=function parseInputFieldsDefinition(){return this.optionalMany(Ke.BRACE_L,this.parseInputValueDef,Ke.BRACE_R)},e.parseTypeSystemExtension=function parseTypeSystemExtension(){var e=this._lexer.lookahead();if(e.kind===Ke.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(Ke.BRACE_L,this.parseOperationTypeDefinition,Ke.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:qe.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:qe.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:qe.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:qe.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:qe.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:qe.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:qe.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(Ke.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var d=this.parseDirectiveLocations();return{kind:qe.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:d,loc:this.loc(e)}},e.parseDirectiveLocations=function parseDirectiveLocations(){return this.delimitedMany(Ke.PIPE,this.parseDirectiveLocation)},e.parseDirectiveLocation=function parseDirectiveLocation(){var e=this._lexer.token,t=this.parseName();if(void 0!==He[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 Ve(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!==Ke.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===Ke.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===Ke.BANG||e===Ke.DOLLAR||e===Ke.AMP||e===Ke.PAREN_L||e===Ke.PAREN_R||e===Ke.SPREAD||e===Ke.COLON||e===Ke.EQUALS||e===Ke.AT||e===Ke.BRACKET_L||e===Ke.BRACKET_R||e===Ke.BRACE_L||e===Ke.PIPE||e===Ke.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 Ye=new Map,Je=new Map,Xe=!0,$e=!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),d=Je.get(r);d&&!d.has(i)?Xe&&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"):d||Je.set(r,d=new Set),d.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e)})),Me(Me({},e),{definitions:n})}function parseDocument(e){var t=normalize(e);if(!Ye.has(t)){var n=function parse(e,t){return new Ge(e,t).parseDocument()}(e,{experimentalFragmentVariables:$e});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Ye.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 Ye.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 Ze,et=gql,tt=function resetCaches(){Ye.clear(),Je.clear()},nt=function disableFragmentWarnings(){Xe=!1},rt=function enableExperimentalFragmentVariables(){$e=!0},it=function disableExperimentalFragmentVariables(){$e=!1};(Ze=gql||(gql={})).gql=et,Ze.resetCaches=tt,Ze.disableFragmentWarnings=nt,Ze.enableExperimentalFragmentVariables=rt,Ze.disableExperimentalFragmentVariables=it,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 ot=function defaultMakeData(){return Object.create(null)},at=Array.prototype,st=at.forEach,ct=at.slice,ut=function(){function Trie(e,t){void 0===e&&(e=!0),void 0===t&&(t=ot),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 st.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(ct.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 lt=null,ft={},pt=1,dt="@wry/context:Slot",ht=Array,mt=ht[dt]||function(){var e=function makeSlotClass(){return function(){function Slot(){this.id=["slot",pt++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return Slot.prototype.hasValue=function(){for(var e=lt;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===ft)break;return e!==lt&&(lt.slots[this.id]=t),!0}return lt&&(lt.slots[this.id]=ft),!1},Slot.prototype.getValue=function(){if(this.hasValue())return lt.slots[this.id]},Slot.prototype.withValue=function(e,t,n,r){var i,d=((i={__proto__:null})[this.id]=e,i),h=lt;lt={parent:h,slots:d};try{return t.apply(r,n)}finally{lt=h}},Slot.bind=function(e){var t=lt;return function(){var n=lt;try{return lt=t,e.apply(this,arguments)}finally{lt=n}}},Slot.noContext=function(e,t,n){if(!lt)return e.apply(n,t);var r=lt;try{return lt=null,e.apply(n,t)}finally{lt=r}},Slot}()}();try{Object.defineProperty(ht,dt,{value:ht[dt]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();mt.bind,mt.noContext;function defaultDispose(){}var yt,vt=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}(),gt=new mt,_t=Object.prototype.hasOwnProperty,bt=void 0===(yt=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:yt;function maybeUnsubscribe(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var wt=[];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 Et=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),gt.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=wt.pop()||new Set),this.deps.add(e)},Entry.prototype.forgetDeps=function(){var e=this;this.deps&&(bt(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),wt.push(this.deps),this.deps=null)},Entry.count=0,Entry}();function rememberParent(e){var t=gt.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=bt(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=wt.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&&(wt.length<100&&wt.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 St={setDirty:!0,dispose:!0,forget:!0};function dep(e){var t=new Map,n=e&&e.subscribe;function depend(e){var r=gt.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&&_t.call(St,n)?n:"setDirty";bt(r).forEach((function(e){return e[i]()})),t.delete(e),maybeUnsubscribe(r)}},depend}function makeDefaultMakeCacheKeyFunction(){var e=new ut("function"===typeof WeakMap);return function(){return e.lookupArray(arguments)}}makeDefaultMakeCacheKeyFunction();var kt=new Set;function wrap(e,t){void 0===t&&(t=Object.create(null));var n=new vt(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||makeDefaultMakeCacheKeyFunction(),d=function optimistic(){var d=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===d)return e.apply(null,arguments);var h=n.get(d);h||(n.set(d,h=new Et(e)),h.subscribe=t.subscribe,h.forget=function(){return n.delete(d)});var y=h.recompute(Array.prototype.slice.call(arguments));return n.set(d,h),kt.add(n),gt.hasValue()||(kt.forEach((function(e){return e.clean()})),kt.clear()),y};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(d,"size",{get:function get(){return n.map.size},configurable:!1,enumerable:!1}),d.dirtyKey=dirtyKey,d.dirty=function dirty(){dirtyKey(i.apply(null,arguments))},d.peekKey=peekKey,d.peek=function peek(){return peekKey(i.apply(null,arguments))},d.forgetKey=forgetKey,d.forget=function forget(){return forgetKey(i.apply(null,arguments))},d.makeCacheKey=i,d.getKey=r?function getKey(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(d)}var Ot=Object.prototype,Ct=Ot.toString,Tt=Ot.hasOwnProperty,At=Function.prototype.toString,xt=new Map;function equal(e,t){try{return check(e,t)}finally{xt.clear()}}function check(e,t){if(e===t)return!0;var n=Ct.call(e);if(n!==Ct.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),d=r.length;if(d!==i.length)return!1;for(var h=0;h<d;++h)if(!Tt.call(t,r[h]))return!1;for(h=0;h<d;++h){var y=r[h];if(!check(e[y],t[y]))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 v=e.entries(),g="[object Map]"===n;;){var _=v.next();if(_.done)break;var b=_.value,w=b[0],E=b[1];if(!t.has(w))return!1;if(g&&!check(E,t.get(w)))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 S=e.byteLength;if(S===t.byteLength)for(;S--&&e[S]===t[S];);return-1===S;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var k=At.call(e);return k===At.call(t)&&!function endsWith(e,t){var n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(k,It)}return!1}function definedKeys(e){return Object.keys(e).filter(isDefinedKey,e)}function isDefinedKey(e){return void 0!==this[e]}var It="{ [native code] }";function previouslyCompared(e,t){var n=xt.get(e);if(n){if(n.has(t))return!0}else xt.set(e,n=new Set);return n.add(t),!1}var Dt="Invariant Violation",Lt=Object.setPrototypeOf,Nt=void 0===Lt?function(e,t){return e.__proto__=t,e}:Lt,Pt=function(e){function InvariantError(t){void 0===t&&(t=Dt);var n=e.call(this,"number"===typeof t?Dt+": "+t+" (see https://github.com/apollographql/invariant-packages)":t)||this;return n.framesToPop=1,n.name=Dt,Nt(n,InvariantError.prototype),n}return __extends(InvariantError,e),InvariantError}(Error);function invariant_esm_invariant(e,t){if(!e)throw new Pt(t)}var jt=["debug","log","warn","error","silent"],Mt=jt.indexOf("log");function wrapConsoleMethod(e){return function(){if(jt.indexOf(e)>=Mt){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 Pt("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 Pt(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),Me(Me({},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 Rt=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(Me(Me({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},ApolloCache.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(Me(Me({},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,d=__rest(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(d,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},ApolloCache}(),Ft=function(e){function MissingFieldError(t,n,r,i){var d=e.call(this,t)||this;return d.message=t,d.path=n,d.query=r,d.variables=i,d.__proto__=MissingFieldError.prototype,d}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 d=(r||{})[n.name.value];e[t.value]=d}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 Pt('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new Pt(58);e[t.value]=null}}var qt=["connection","include","skip","client","rest","export"],Qt=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+"("+Vt(i)+")"}return n.connection.key}var d=e;if(t){var h=Vt(t);d+="("+h+")"}return n&&Object.keys(n).forEach((function(e){-1===qt.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?d+="@"+e+"("+Vt(n[e])+")":d+="@"+e)})),d}),{setStringify:function setStringify(e){var t=Vt;return Vt=e,t}}),Vt=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 d=i[r];if(storeUtils_isField(d)){if("__typename"===d.name.value)return e[resultKeyNameFromField(d)]}else{var h=getTypenameFromResult(e,getFragmentFromSelection(d,n).selectionSet,n);if("string"===typeof h)return h}}}function storeUtils_isField(e){return"Field"===e.kind}function isInlineFragment(e){return"InlineFragment"===e.kind}var Bt={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"]},Kt=Object.freeze({});function visit(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Bt,r=void 0,i=Array.isArray(e),d=[e],h=-1,y=[],v=void 0,g=void 0,_=void 0,b=[],w=[],E=e;do{var S=++h===d.length,k=S&&0!==y.length;if(S){if(g=0===w.length?void 0:b[b.length-1],v=_,_=w.pop(),k){if(i)v=v.slice();else{for(var O={},C=0,T=Object.keys(v);C<T.length;C++){var A=T[C];O[A]=v[A]}v=O}for(var x=0,I=0;I<y.length;I++){var D=y[I][0],L=y[I][1];i&&(D-=x),i&&null===L?(v.splice(D,1),x++):v[D]=L}}h=r.index,d=r.keys,y=r.edits,i=r.inArray,r=r.prev}else{if(g=_?i?h:d[h]:void 0,null===(v=_?_[g]:E)||void 0===v)continue;_&&b.push(g)}var N,P=void 0;if(!Array.isArray(v)){if(!isNode(v))throw new Error("Invalid AST Node: ".concat(inspect_inspect(v),"."));var j=getVisitFn(t,v.kind,S);if(j){if((P=j.call(t,v,g,_,b,w))===Kt)break;if(!1===P){if(!S){b.pop();continue}}else if(void 0!==P&&(y.push([g,P]),!S)){if(!isNode(P)){b.pop();continue}v=P}}}if(void 0===P&&k&&y.push([g,v]),S)b.pop();else r={inArray:i,index:h,keys:d,edits:y,prev:r},d=(i=Array.isArray(v))?v:null!==(N=n[v.kind])&&void 0!==N?N:[],h=-1,y=[],_&&w.push(_),_=v}while(void 0!==r);return 0!==y.length&&(E=y[y.length-1][1]),E}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 d=n?e.leave:e.enter;if(d){if("function"===typeof d)return d;var h=d[t];if("function"===typeof h)return h}}}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 Pt('Schema type definitions not allowed in queries. Found: "'+e.kind+'"'):new Pt(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 d=i.operation;if("query"===d||"mutation"===d||"subscription"===d)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw __DEV__?new Pt("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new Pt(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 Ut={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),d=[],h=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){d.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 h&&filterInPlace(r,(function(e){return!!e.name&&!n[e.name]})).length&&(h=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 Me(Me({},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,h)),h&&filterInPlace(d,(function(e){return!!e.name&&!i[e.name]})).length&&(h=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}}))}(d,h)),h}var zt=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 Me(Me({},e),{selections:__spreadArray(__spreadArray([],r),[Ut])})}}}}})}),{added:function added(e){return e===Ut}}),Ht={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 Me(Me({},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 Wt="function"===typeof WeakMap&&!("object"===("undefined"===typeof navigator?"undefined":canUse_typeof(navigator))&&"ReactNative"===navigator.product),Gt="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 d=i.value;__DEV__?invariant_esm_invariant(d&&("Variable"===d.kind||"BooleanValue"===d.kind),"Argument for the @"+r+" directive must be a variable or a boolean value."):invariant_esm_invariant(d&&("Variable"===d.kind||"BooleanValue"===d.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 Yt=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 Xt,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var Jt=function defaultReconciler(e,t,n){return this.merge(e[n],t[n])},Xt=function(){function DeepMerger(e){void 0===e&&(e=Jt),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(Yt.call(e,i)){var d=e[i];if(t[i]!==d){var h=n.reconciler.apply(n,__spreadArray([e,t,i],r));h!==d&&((e=n.shallowCopyForMerge(e))[i]=h)}}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):Me({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},DeepMerger}();function maybe(e){try{return e()}catch(at){}}var $t=maybe((function(){return globalThis}))||maybe((function(){return window}))||maybe((function(){return self}))||maybe((function(){return __webpack_require__.g}))||maybe((function(){return Function("return this")()})),Zt="__",en=[Zt,Zt].join("DEV");var tn=function getDEV(){try{return Boolean(__DEV__)}catch(at){return Object.defineProperty($t,en,{value:"production"!==maybe((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),$t[en]}}();function process_maybe(e){try{return e()}catch(t){}}var nn=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")()})),rn=!1;!function install(){!nn||process_maybe((function(){return"production"}))||process_maybe((function(){return process}))||(Object.defineProperty(nn,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),rn=!0)}();var an=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=an(e);r<i.length;r++){var d=i[r],h=d[0],y=d[1];n[h]=t(y,h)}return n}function toObjMap(e){if(null===Object.getPrototypeOf(e))return e;for(var t=Object.create(null),n=0,r=an(e);n<r.length;n++){var i=r[n],d=i[0],h=i[1];t[d]=h}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 sn=48;function isDigit(e){return!isNaN(e)&&sn<=e&&e<=57}function suggestionList(e,t){for(var n=Object.create(null),r=new cn(e),i=Math.floor(.4*e.length)+1,d=0;d<t.length;d++){var h=t[d],y=r.measure(h,i);void 0!==y&&(n[h]=y)}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),d=t.charCodeAt(r);if(isDigit(i)&&isDigit(d)){var h=0;do{++n,h=10*h+i-sn,i=e.charCodeAt(n)}while(isDigit(i)&&h>0);var y=0;do{++r,y=10*y+d-sn,d=t.charCodeAt(r)}while(isDigit(d)&&y>0);if(h<y)return-1;if(h>y)return 1}else{if(i<d)return-1;if(i>d)return 1;++n,++r}}return e.length-t.length}(e,t)}))}var cn=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 d=r;r=i,i=d}var h=r.length,y=i.length;if(!(h-y>t)){for(var v=this._rows,g=0;g<=y;g++)v[0][g]=g;for(var _=1;_<=h;_++){for(var b=v[(_-1)%3],w=v[_%3],E=w[0]=_,S=1;S<=y;S++){var k=r[_-1]===i[S-1]?0:1,O=Math.min(b[S]+1,w[S-1]+1,b[S-1]+k);if(_>1&&S>1&&r[_-1]===i[S-2]&&r[_-2]===i[S-1]){var C=v[(_-2)%3][S-2];O=Math.min(O,C+1)}O<E&&(E=O),w[S]=O}if(E>t)return}var T=v[h%3][y];return T<=t?T: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:un})}var un={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," "),d=e.selectionSet;return n||i||r||"query"!==t?join([t,join([n,r]),i,d]," "):d},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,d=e.selectionSet,h=printer_wrap("",t,": ")+n,y=h+printer_wrap("(",join(r,", "),")");return y.length>80&&(y=h+printer_wrap("(\n",indent(join(r,"\n")),"\n)")),join([y,join(i," "),d]," ")},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,d=e.selectionSet;return"fragment ".concat(t).concat(printer_wrap("(",join(r,", "),")")," ")+"on ".concat(n," ").concat(printer_wrap("",join(i," ")," "))+d},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],d='"'===e[e.length-1],h="\\"===e[e.length-1],y=!r||d||h||n,v="";return!y||r&&i||(v+="\n"+t),v+=t?e.replace(/\n/g,"\n"+t):e,y&&(v+="\n"),'"""'+v.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 qe.NULL:return null;case qe.INT:return parseInt(e.value,10);case qe.FLOAT:return parseFloat(e.value);case qe.STRING:case qe.ENUM:case qe.BOOLEAN:return e.value;case qe.LIST:return e.values.map((function(e){return valueFromASTUntyped(e,t)}));case qe.OBJECT:return keyValMap(e.fields,(function(e){return e.name.value}),(function(e){return valueFromASTUntyped(e.value,t)}));case qe.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 Ue(e,ln)}function isObjectType(e){return Ue(e,pn)}function isInterfaceType(e){return Ue(e,dn)}function isUnionType(e){return Ue(e,hn)}function isEnumType(e){return Ue(e,mn)}function isInputObjectType(e){return Ue(e,yn)}function isListType(e){return Ue(e,GraphQLList)}function isNonNullType(e){return Ue(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,Re,{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,Re,{get:function get(){return"GraphQLNonNull"}}),defineInspect(GraphQLNonNull);var ln=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:Re,get:function get(){return"GraphQLScalarType"}}]),GraphQLScalarType}();defineInspect(ln);var pn=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:Re,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 d=an(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:d,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(pn);var dn=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:Re,get:function get(){return"GraphQLInterfaceType"}}]),GraphQLInterfaceType}();defineInspect(dn);var hn=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:Re,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(hn);var mn=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.")),an(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 Fe('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 Fe('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+didYouMeanEnumValue(this,t))}var n=this.getValue(e);if(null==n)throw new Fe('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!==qe.ENUM){var n=print(e);throw new Fe('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 Fe('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:Re,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 d=n[1].map((function(e){return'"'.concat(e,'"')}));switch(d.length){case 0:return"";case 1:return i+d[0]+"?";case 2:return i+d[0]+" or "+d[1]+"?"}var h=d.slice(0,5),y=h.pop();return i+h.join(", ")+", or "+y+"?"}("the enum value",suggestionList(t,e.getValues().map((function(e){return e.name}))))}defineInspect(mn);var yn=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:Re,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(yn),function removeTemporaryGlobals(){return isType(null),function remove(){rn&&(delete nn.process,rn=!1)}()}();var vn=Object.prototype.hasOwnProperty;var gn=/^[_a-z][_0-9a-z]*/i;function fieldNameFromStoreName(e){var t=e.match(gn);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 vn.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 _n=Object.create(null),bn=function delModifier(){return _n},wn=Object.create(null),En=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 Me({},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),vn.call(this.data,e)){var n=this.data[e];if(n&&vn.call(n,t))return n[t]}return"__typename"===t&&vn.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof kn?this.parent.get(e,t):void 0},EntityStore.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),vn.call(this.data,e)?this.data[e]:this instanceof kn?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,d="string"===typeof t?this.lookup(n=t):t;if(d){__DEV__?invariant_esm_invariant("string"===typeof n,"store.merge expects a string ID"):invariant_esm_invariant("string"===typeof n,2);var h=new Xt(storeObjectReconciler).merge(i,d);if(this.data[n]=h,h!==i&&(delete this.refs[n],this.group.caching)){var y=Object.create(null);i||(y.__exists=1),Object.keys(d).forEach((function(e){if(!i||i[e]!==h[e]){y[e]=1;var t=fieldNameFromStoreName(e);t===e||r.policies.hasKeyArgs(h.__typename,t)||(y[t]=1),void 0!==h[e]||r instanceof kn||delete h[e]}})),!y.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==h.__typename||delete y.__typename,Object.keys(y).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),d=!1,h=!0,y={DELETE:_n,INVALIDATE:wn,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(v){var g=fieldNameFromStoreName(v),_=r[v];if(void 0!==_){var b="function"===typeof t?t:t[v]||t[g];if(b){var w=b===bn?_n:b(maybeDeepFreeze(_),Me(Me({},y),{fieldName:g,storeFieldName:v,storage:n.getStorage(e,v)}));w===wn?n.group.dirty(e,v):(w===_n&&(w=void 0),w!==_&&(i[v]=w,d=!0,_=w))}void 0!==_&&(h=!1)}})),d)return this.merge(e,i),h&&(this instanceof kn?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 d=this.getFieldValue(i,"__typename"),h=t&&n?this.policies.getStoreFieldName({typename:d,fieldName:t,args:n}):t;return this.modify(e,h?((r={})[h]=bn,r):bn)}return!1},EntityStore.prototype.evict=function(e){var t=!1;return e.id&&(vn.call(this.data,e.id)&&(t=this.delete(e.id,e.fieldName,e.args)),this instanceof kn&&(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){vn.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&&vn.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 kn?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){vn.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 kn;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},EntityStore.prototype.findChildRefIds=function(e){if(!vn.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}(),Sn=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 ut(Wt)},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,d=t.seed,h=e.call(this,n,new Sn(i))||this;return h.stump=new On(h),h.storageTrie=new ut(Wt),d&&h.replace(d),h}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}(En||(En={}));var kn=function(e){function Layer(t,n,r,i){var d=e.call(this,n.policies,i)||this;return d.id=t,d.parent=n,d.replay=r,d.group=i,r(d),d}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 Me(Me({},this.parent.toObject()),this.data)},Layer.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return vn.call(this.data,t)?Me(Me({},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}(En),On=function(e){function Stump(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new Sn(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}(kn);function storeObjectReconciler(e,t,n){var r=e[n],i=t[n];return equal(r,i)?r:i}function supportsResultCaching(e){return!!(e instanceof En&&e.group.caching)}var Cn,Tn,An=function(){function ObjectCanon(){this.known=new(Gt?WeakSet:Set),this.pool=new ut(Wt),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):Me({__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(y=this.pool.lookupArray(r)).array||(this.known.add(y.array=r),__DEV__&&Object.freeze(r)),y.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),d=[i],h=this.sortedKeys(e);d.push(h.json);var y,v=d.length;if(h.sorted.forEach((function(n){d.push(t.admit(e[n]))})),!(y=this.pool.lookupArray(d)).object){var g=y.object=Object.create(i);this.known.add(g),h.sorted.forEach((function(e,t){g[e]=d[v+t]})),__DEV__&&Object.freeze(g)}return y.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}(),xn=Object.assign((function(e){if(isNonNullObject(e)){void 0===Cn&&resetCanonicalStringify();var t=Cn.admit(e),n=Tn.get(t);return void 0===n&&Tn.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:resetCanonicalStringify});function resetCanonicalStringify(){Cn=new An,Tn=new(Wt?WeakMap:Map)}function missingFromInvariant(e,t){return new Ft(e.message,t.path.slice(),t.query,t.variables)}function execSelectionSetKeyArgs(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var In=function(){function StoreReader(e){var t=this;this.knownResults=new(Wt?WeakMap:Map),this.config=Me(Me({},e),{addTypename:!1!==e.addTypename}),this.canon=e.canon||new An,this.executeSelectionSet=wrap((function(e){var n,r=e.context.canonizeResults,i=execSelectionSetKeyArgs(e);i[3]=!r;var d=(n=t.executeSelectionSet).peek.apply(n,i);return d?r?Me(Me({},d),{result:t.canon.admit(d.result)}):d:(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 An},StoreReader.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,d=e.variables,h=e.returnPartialData,y=void 0===h||h,v=e.canonizeResults,g=void 0===v||v,_=this.config.cache.policies;d=Me(Me({},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))),d);var b=makeReference(i),w=this.executeSelectionSet({selectionSet:getMainDefinition(n).selectionSet,objectOrReference:b,enclosingRef:b,context:{store:t,query:n,policies:_,variables:d,varString:xn(d),canonizeResults:g,fragmentMap:createFragmentMap(getFragmentDefinitions(n)),path:[]}}),E=w.missing&&w.missing.length>0;if(E&&!y)throw w.missing[0];return{result:w.result,missing:w.missing,complete:!E}},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,d=e.context;if(isReference(r)&&!d.policies.rootTypenamesById[r.__ref]&&!d.store.has(r.__ref))return{result:this.canon.empty,missing:[missingFromInvariant(__DEV__?new Pt("Dangling reference to missing "+r.__ref+" object"):new Pt(6),d)]};var h=d.variables,y=d.policies,v=d.store,g=[],_={result:null},b=v.getFieldValue(r,"__typename");function getMissing(){return _.missing||(_.missing=[])}function handleMissing(e){var t;return e.missing&&(t=getMissing()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"===typeof b&&!y.rootIdsByTypename[b]&&g.push({__typename:b});var w=new Set(n.selections);w.forEach((function(e){var n;if(shouldInclude(e,h))if(storeUtils_isField(e)){var v=y.readField({fieldName:e.name.value,field:e,variables:d.variables,from:r},d),_=resultKeyNameFromField(e);d.path.push(_),void 0===v?zt.added(e)||getMissing().push(missingFromInvariant(__DEV__?new Pt("Can't find field '"+e.name.value+"' on "+(isReference(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2))):new Pt(7),d)):Array.isArray(v)?v=handleMissing(t.executeSubSelectedArray({field:e,array:v,enclosingRef:i,context:d})):e.selectionSet?null!=v&&(v=handleMissing(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:v,enclosingRef:isReference(v)?v:i,context:d}))):d.canonizeResults&&(v=t.canon.pass(v)),void 0!==v&&g.push(((n={})[_]=v,n)),invariant_esm_invariant(d.path.pop()===_)}else{var E=getFragmentFromSelection(e,d.fragmentMap);E&&y.fragmentMatches(E,b)&&E.selectionSet.selections.forEach(w.add,w)}}));var E=mergeDeepArray(g);return _.result=d.canonizeResults?this.canon.admit(E):maybeDeepFreeze(E),this.knownResults.set(_.result,n),_},StoreReader.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,d=e.enclosingRef,h=e.context;function handleMissing(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),invariant_esm_invariant(h.path.pop()===n),e.result}return r.selectionSet&&(i=i.filter(h.store.canRead)),i=i.map((function(e,t){return null===e?null:(h.path.push(t),Array.isArray(e)?handleMissing(n.executeSubSelectedArray({field:r,array:e,enclosingRef:d,context:h}),t):r.selectionSet?handleMissing(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:isReference(e)?e:d,context:h}),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))}))}}(h.store,r,e),invariant_esm_invariant(h.path.pop()===t),e))})),{result:h.canonizeResults?this.canon.admit(i):i,missing:t}},StoreReader}();var Dn=Object.prototype.toString;function cloneDeep(e){return cloneDeepHelper(e)}function cloneDeepHelper(e,t){switch(Dn.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 Ln=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,d=t.dataId,h=t.variables,y=t.overwrite,v=getOperationDefinition(r),g=function makeProcessedFieldsMerger(){return new Xt}();h=Me(Me({},getDefaultValues(v)),h);var _={store:e,written:Object.create(null),merge:function merge(e,t){return g.merge(e,t)},variables:h,varString:xn(h),fragmentMap:createFragmentMap(getFragmentDefinitions(r)),overwrite:!!y,incomingById:new Map,clientOnly:!1},b=this.processSelectionSet({result:i||Object.create(null),dataId:d,selectionSet:v.selectionSet,mergeTree:{map:new Map},context:_});if(!isReference(b))throw __DEV__?new Pt("Could not identify object "+JSON.stringify(i)):new Pt(9);return _.incomingById.forEach((function(t,r){var i=t.fields,d=t.mergeTree,h=t.selections,y=makeReference(r);if(d.map.size){var v=n.applyMerges(d,y,i,_);if(isReference(v))return;i=v}if(__DEV__&&!_.overwrite){var g=new Set;h.forEach((function(e){storeUtils_isField(e)&&e.selectionSet&&g.add(e.name.value)}));Object.keys(i).forEach((function(e){(function hasSelectionSet_1(e){return g.has(fieldNameFromStoreName(e))})(e)&&!function hasMergeFunction_1(e){var t=d.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},d=i(e);if(!d)return;var h=i(t);if(!h)return;if(isReference(d))return;if(equal(d,h))return;if(Object.keys(d).every((function(e){return void 0!==r.getFieldValue(h,e)})))return;var y=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),v=fieldNameFromStoreName(n),g=y+"."+v;if(Pn.has(g))return;Pn.add(g);var _=[];Array.isArray(d)||Array.isArray(h)||[d,h].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!==typeof t||_.includes(t)||_.push(t)}));__DEV__&&invariant_esm_invariant.warn("Cache data may be lost when replacing the "+v+" field of a "+y+" object.\n\nTo address this problem (which is not a bug in Apollo Client), "+(_.length?"either ensure all objects of type "+_.join(" and ")+" have an ID or a custom merge function, or ":"")+"define a custom merge function for the "+g+" field, so InMemoryCache can safely merge these objects:\n\n existing: "+JSON.stringify(d).slice(0,1e3)+"\n incoming: "+JSON.stringify(h).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")}(y,i,e,_.store)}))}e.merge(r,i)})),e.retain(b.__ref),b},StoreWriter.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,d=e.context,h=e.mergeTree,y=this.cache.policies,v=y.identify(r,i,d.fragmentMap),g=v[0],_=v[1];if("string"===typeof(n=n||g)){var b=d.written[n]||(d.written[n]=[]),w=makeReference(n);if(b.indexOf(i)>=0)return w;if(b.push(i),this.reader&&this.reader.isFresh(r,w,i,d))return w}var E=Object.create(null);_&&(E=d.merge(E,_));var S=n&&y.rootTypenamesById[n]||getTypenameFromResult(r,i,d.fragmentMap)||n&&d.store.get(n,"__typename");"string"===typeof S&&(E.__typename=S);var k=new Set(i.selections);if(k.forEach((function(e){var n;if(shouldInclude(e,d.variables))if(storeUtils_isField(e)){var i=resultKeyNameFromField(e),v=r[i],g=d.clientOnly;if(d.clientOnly=g||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0!==v){var _=y.getStoreFieldName({typename:S,fieldName:e.name.value,field:e,variables:d.variables}),b=getChildMergeTree(h,_),w=t.processFieldValue(v,e,d,b),O=void 0;if(e.selectionSet&&!(O=d.store.getFieldValue(w,"__typename"))&&isReference(w)){var C=d.incomingById.get(w.__ref);O=C&&C.fields.__typename}var T=y.getMergeFunction(S,e.name.value,O);T?b.info={field:e,typename:S,merge:T}:maybeRecycleChildMergeTree(h,_),E=d.merge(E,((n={})[_]=w,n))}else d.clientOnly||zt.added(e)||__DEV__&&invariant_esm_invariant.error(("Missing field '"+resultKeyNameFromField(e)+"' while writing result "+JSON.stringify(r,null,2)).substring(0,1e3));d.clientOnly=g}else{var A=getFragmentFromSelection(e,d.fragmentMap);A&&y.fragmentMatches(A,S,r,d.variables)&&A.selectionSet.selections.forEach(k.add,k)}})),"string"===typeof n){var O=d.incomingById.get(n);return O?(O.fields=d.merge(O.fields,E),O.mergeTree=mergeMergeTrees(O.mergeTree,h),O.selections.forEach(k.add,k),O.selections=k):d.incomingById.set(n,{fields:E,mergeTree:h,selections:k}),makeReference(n)}return E},StoreWriter.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,d){var h=i.processFieldValue(e,t,n,getChildMergeTree(r,d));return maybeRecycleChildMergeTree(r,d),h})):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 d,h=this;if(e.map.size&&!isReference(n)){var y,v=Array.isArray(n)||!isReference(t)&&!storeValueIsStoreObject(t)?void 0:t,g=n;v&&!i&&(i=[isReference(v)?v.__ref:v]);var _=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=_(v,t),d=_(g,t);if(void 0!==d){i&&i.push(t);var b=h.applyMerges(e,n,d,r,i);b!==d&&(y=y||new Map).set(t,b),i&&invariant_esm_invariant(i.pop()===t)}})),y&&(n=Array.isArray(g)?g.slice(0):Me({},g),y.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(d=r.store).getStorage.apply(d,i)):n},StoreWriter}(),Nn=[];function getChildMergeTree(e,t){var n=e.map;return n.has(t)||n.set(t,Nn.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?Me(Me({},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 d=new Set(t.map.keys());e.map.forEach((function(e,n){i.map.set(n,mergeMergeTrees(e,t.map.get(n))),d.delete(n)})),d.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)&&(Nn.push(r),n.delete(t))}var Pn=new Set;var jn=new mt,Mn=new WeakMap;function getCacheInfo(e){var t=Mn.get(e);return t||Mn.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 d=Array.from(n);n.clear(),d.forEach((function(t){return t(e)}))}}else{var h=jn.getValue();h&&(i(h),getCacheInfo(h).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 Rn=new Map;function makeUniqueId(e){var t=Rn.get(e)||1;return Rn.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}Qt.setStringify(xn);var Fn=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))},qn=function nullKeyFieldsFn(){},Qn=function simpleKeyArgsFn(e,t){return t.fieldName},Vn=function mergeTrueFn(e,t,n){return(0,n.mergeObjects)(e,t)},Bn=function mergeFalseFn(e,t){return t},Kn=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=Me({dataIdFromObject:Fn},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,d={typename:r,selectionSet:t,fragmentMap:n},h=r&&this.getTypePolicy(r),y=h&&h.keyFn||this.config.dataIdFromObject;y;){var v=y(e,d);if(!Array.isArray(v)){i=v;break}y=keyFieldsFnFromSpecifier(v)}return i=i?String(i):void 0,d.keyObject?[i,d.keyObject]:[i]},Policies.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,d=r.mutationType,h=r.subscriptionType,y=__rest(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),d&&t.setRootTypename("Mutation",n),h&&t.setRootTypename("Subscription",n),vn.call(t.toBeAdded,n)?t.toBeAdded[n].push(y):t.toBeAdded[n]=[y]}))},Policies.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,d=t.fields;function setMerge(e,t){e.merge="function"===typeof t?t:!0===t?Vn:!1===t?Bn:e.merge}setMerge(r,t.merge),r.keyFn=!1===i?qn:Array.isArray(i)?keyFieldsFnFromSpecifier(i):"function"===typeof i?i:r.keyFn,d&&Object.keys(d).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=d[t];if("function"===typeof i)r.read=i;else{var h=i.keyArgs,y=i.read,v=i.merge;r.keyFn=!1===h?Qn:Array.isArray(h)?keyArgsFnFromSpecifier(h):"function"===typeof h?h:r.keyFn,"function"===typeof y&&(r.read=y),setMerge(r,v)}r.read&&r.merge&&(r.keyFn=r.keyFn||Qn)}))},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(gn);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},Policies.prototype.getTypePolicy=function(e){var t=this;if(!vn.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,d=__rest(r,["fields"]);Object.assign(n,d),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 d=e.typeCondition.name.value;if(t===d)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(d))for(var h=this.getSupertypeSet(t,!0),y=[h],v=function maybeEnqueue_1(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&y.indexOf(t)<0&&y.push(t)},g=!(!n||!this.fuzzySubtypes.size),_=!1,b=0;b<y.length;++b){var w=y[b];if(w.has(d))return h.has(d)||(_&&__DEV__&&invariant_esm_invariant.warn("Inferring subtype "+t+" of supertype "+d),h.add(d)),!0;w.forEach(v),g&&b===y.length-1&&selectionSetMatchesResult(e.selectionSet,n,r)&&(g=!1,_=!0,this.fuzzySubtypes.forEach((function(e,n){var r=t.match(e);r&&r[0]===t&&v(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),d=i&&i.keyFn;if(d&&n)for(var h={typename:n,fieldName:r,field:e.field||null,variables:e.variables},y=argsFromFieldSpecifier(e);d;){var v=d(y,h);if(!Array.isArray(v)){t=v||r;break}d=keyArgsFnFromSpecifier(v)}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,d=r.value;return valueToObjectRepresentation(n[e.name.value],i,d,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)}))),Qt(e.name.value,r,n)}(e.field,e.variables):Qt(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),d=fieldNameFromStoreName(i),h=t.store.getFieldValue(n,i),y=this.getFieldPolicy(e.typename,d,!1),v=y&&y.read;if(v){var g=makeFieldFunctionOptions(this,n,e,t,t.store.getStorage(isReference(n)?n.__ref:n,i));return jn.withValue(this.cache,v,[h,g])}return h}},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 d=n.field,h=n.typename,y=n.merge;return y===Vn?makeMergeObjectsFunction(r.store)(e,t):y===Bn?t:(r.overwrite&&(e=void 0),y(e,t,makeFieldFunctionOptions(this,void 0,{typename:h,fieldName:d.name.value,field:d,variables:r.variables},r,i||Object.create(null))))},Policies}();function makeFieldFunctionOptions(e,t,n,r,i){var d=e.getStoreFieldName(n),h=fieldNameFromStoreName(d),y=n.variables||r.variables,v=r.store,g=v.toReference,_=v.canRead;return{args:argsFromFieldSpecifier(n),field:n.field||null,fieldName:h,storeFieldName:d,variables:y,isReference:isReference,toReference:g,storage:i,cache:e.cache,canRead:_,readField:function readField(n,i){var d;if("string"===typeof n)d={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))));d=Me({},n),vn.call(n,"from")||(d.from=t)}return __DEV__&&void 0===d.from&&__DEV__&&invariant_esm_invariant.warn("Undefined 'from' passed to readField with arguments "+stringifyForDisplay(Array.from(arguments))),void 0===d.variables&&(d.variables=y),e.readField(d,r)},mergeObjects:makeMergeObjectsFunction(r.store)}}function makeMergeObjectsFunction(e){return function mergeObjects(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new Pt("Cannot automatically merge arrays"):new Pt(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 Me(Me({},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 ut(Wt);return function(n,r){var i;if(r.selectionSet&&r.fragmentMap){var d=t.lookupArray([r.selectionSet,r.fragmentMap]);i=d.aliasMap||(d.aliasMap=makeAliasMap(r.selectionSet,r.fragmentMap))}var h=r.keyObject=computeKeyObject(n,e,!0,i);return r.typename+":"+JSON.stringify(h)}}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,d=e.name.value;if(d!==i)(n.aliases||(n.aliases=Object.create(null)))[d]=i}if(e.selectionSet)(n.subsets||(n.subsets=Object.create(null)))[e.name.value]=makeAliasMap(e.selectionSet,t)}else{var h=getFragmentFromSelection(e,t);h&&r.add(h.selectionSet)}}))})),n}function computeKeyObject(e,t,n,r){var i,d=Object.create(null);return t.forEach((function(t){if(Array.isArray(t)){if("string"===typeof i){var h=r&&r.subsets,y=h&&h[i];d[i]=computeKeyObject(e[i],t,n,y)}}else{var v=r&&r.aliases,g=v&&v[t]||t;vn.call(e,g)?d[i=t]=e[g]:(__DEV__?invariant_esm_invariant(!n,"Missing field '"+g+"' while computing key fields"):invariant_esm_invariant(!n,5),i=void 0)}})),d}var Un={dataIdFromObject:Fn,addTypename:!0,resultCaching:!0,typePolicies:{}},zn=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=Me(Me({},Un),t),n.addTypename=!!n.config.addTypename,n.policies=new Kn({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 En.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 Ln(this,this.storeReader=new In({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,d=e.variables;return n.makeCacheKey(e.query,e.callback,xn({optimistic:r,rootId:i,variables:d}))}}}),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(Me(Me({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(r){if(r instanceof Ft)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(vn.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(Me(Me({},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){xn.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(vn.call(e,"id"))return!1;e=Me(Me({},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(),xn.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,d=e.removeOptimistic,h=e.onWatchUpdated,y=function perform(e){var r=t,i=r.data,d=r.optimisticData;++t.txCount,e&&(t.data=t.optimisticData=e);try{n(t)}finally{--t.txCount,t.data=i,t.optimisticData=d}},v=new Set;h&&!this.txCount&&this.broadcastWatches(Me(Me({},e),{onWatchUpdated:function onWatchUpdated(e){return v.add(e),!1}})),"string"===typeof i?this.optimisticData=this.optimisticData.addLayer(i,y):!1===i?y(this.data):y(),"string"===typeof d&&(this.optimisticData=this.optimisticData.removeLayer(d)),h&&v.size?(this.broadcastWatches(Me(Me({},e),{onWatchUpdated:function onWatchUpdated(e,t){var n=h.call(this,e,t);return!1!==n&&v.delete(e),n}})),v.size&&v.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=zt(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}(Rt),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 d=arguments[t],h=0,y=d.length;h<y;h++,i++)r[i]=d[h];return r},Hn=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}(),Wn=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,d){function fulfilled(e){try{step(r.next(e))}catch(t){d(t)}}function rejected(e){try{step(r.throw(e))}catch(t){d(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,d,h={label:0,sent:function sent(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return d={next:verb(0),throw:verb(1),return:verb(2)},"function"===typeof Symbol&&(d[Symbol.iterator]=function(){return this}),d;function verb(d){return function(y){return function step(d){if(n)throw new TypeError("Generator is already executing.");for(;h;)try{if(n=1,r&&(i=2&d[0]?r.return:d[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,d[1])).done)return i;switch(r=0,i&&(d=[2&d[0],i.value]),d[0]){case 0:case 1:i=d;break;case 4:return h.label++,{value:d[1],done:!1};case 5:h.label++,r=d[1],d=[0];continue;case 7:d=h.ops.pop(),h.trys.pop();continue;default:if(!(i=(i=h.trys).length>0&&i[i.length-1])&&(6===d[0]||2===d[0])){h=0;continue}if(3===d[0]&&(!i||d[1]>i[0]&&d[1]<i[3])){h.label=d[1];break}if(6===d[0]&&h.label<i[1]){h.label=i[1],i=d;break}if(i&&h.label<i[2]){h.label=i[2],h.ops.push(d);break}i[2]&&h.ops.pop(),h.trys.pop();continue}d=t.call(e,h)}catch(y){d=[6,y],r=0}finally{n=i=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([d,y])}}},Gn=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,d){function fulfilled(e){try{step(r.next(e))}catch(t){d(t)}}function rejected(e){try{step(r.throw(e))}catch(t){d(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,d,h={label:0,sent:function sent(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return d={next:verb(0),throw:verb(1),return:verb(2)},"function"===typeof Symbol&&(d[Symbol.iterator]=function(){return this}),d;function verb(d){return function(y){return function step(d){if(n)throw new TypeError("Generator is already executing.");for(;h;)try{if(n=1,r&&(i=2&d[0]?r.return:d[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,d[1])).done)return i;switch(r=0,i&&(d=[2&d[0],i.value]),d[0]){case 0:case 1:i=d;break;case 4:return h.label++,{value:d[1],done:!1};case 5:h.label++,r=d[1],d=[0];continue;case 7:d=h.ops.pop(),h.trys.pop();continue;default:if(!(i=(i=h.trys).length>0&&i[i.length-1])&&(6===d[0]||2===d[0])){h=0;continue}if(3===d[0]&&(!i||d[1]>i[0]&&d[1]<i[3])){h.label=d[1];break}if(6===d[0]&&h.label<i[1]){h.label=i[1],i=d;break}if(i&&h.label<i[2]){h.label=i[2],h.ops.push(d);break}i[2]&&h.ops.pop(),h.trys.pop();continue}d=t.call(e,h)}catch(y){d=[6,y],r=0}finally{n=i=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([d,y])}}},Yn=function(){function Persistor(e,t){var n=e.log,r=e.cache,i=e.storage,d=t.maxSize,h=void 0===d?1048576:d,y=t.persistenceMapper;this.log=n,this.cache=r,this.storage=i,this.paused=!1,y&&(this.persistenceMapper=y),h&&(this.maxSize=h)}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 d=n.apply(t,r);return e(),d},t.evict=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var d=r.apply(t,n);return e(),d},t.modify=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var d=i.apply(t,n);return e(),d},function(){t.write=n,t.evict=r,t.modify=i}}},Jn=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 d=Trigger.defaultDebounce,h=t.cache,y=t.debounce,v=t.trigger,g=void 0===v?"write":v;if(g)switch(this.debounce=null!=y?y:d,this.persistor=i,this.paused=!1,g){case"write":this.uninstall=onCacheWrite({cache:h})(this.fire);break;case"background":y&&r.warn("Debounce is not recommended with `background` trigger"),this.debounce=y,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:h,log:r})(this.fire);break;default:if("function"!==typeof g)throw Error("Unrecognized trigger option: "+g);this.uninstall=g(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}(),Xn=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 Hn(e),n=new Wn(e),r=new Gn(e),i=new Yn({log:t,cache:n,storage:r},e),d=new Jn({log:t,persistor:i},e);this.log=t,this.cache=n,this.storage=r,this.persistor=i,this.trigger=d}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}(),$n=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 __)}}(),Zn=function(e){function SynchronousCachePersistor(t){var n=e.call(this,t)||this;return n.storage=new tr(t),n.persistor=new er({log:n.log,cache:n.cache,storage:n.storage},t),n}return $n(SynchronousCachePersistor,e),SynchronousCachePersistor.prototype.restoreSync=function(){this.persistor.restoreSync()},SynchronousCachePersistor}(Xn),er=function(e){function SynchronousPersistor(t,n){var r=t.log,i=t.cache,d=t.storage;return e.call(this,{log:r,cache:i,storage:d},n)||this}return $n(SynchronousPersistor,e),SynchronousPersistor.prototype.restoreSync=function(){this.cache.restore(this.storage.readSync())},SynchronousPersistor}(Yn),tr=function(e){function SynchronousStorage(t){return e.call(this,t)||this}return $n(SynchronousStorage,e),SynchronousStorage.prototype.readSync=function(){return this.storage.getItem(this.key)},SynchronousStorage}(Gn),nr=(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}()),rr=(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 zn);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 Zn(e).restoreSync()}({cache:rr,storage:new nr(window.localStorage),key:"web-persist",maxSize:1048576});var ir=function hasSymbols(){return"function"===typeof Symbol},or=function hasSymbol(e){return ir()&&Boolean(Symbol[e])},ar=function getSymbol(e){return or(e)?Symbol[e]:"@@"+e};ir()&&!or("observable")&&(Symbol.observable=Symbol("observable"));var sr=ar("iterator"),cr=ar("observable"),ur=ar("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[ur])&&(t=void 0),void 0!==t?t:pr}function isObservable(e){return e instanceof pr}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(d){hostReportError(d)}"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 lr=function(){function Subscription(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new fr(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}(),fr=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}(),pr=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 lr(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,d=arguments[1],h=d;return new n((function(n){return t.subscribe({next:function next(t){var d=!i;if(i=!0,!d||r)try{h=e(h,t)}catch(y){return n.error(y)}else h=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(h),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,d=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(){d===n.length?(r=void 0,t.complete()):startNext(i.from(n[d++]))}})}(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=[],d=t.subscribe({next:function next(t){if(e)try{t=e(t)}catch(h){return r.error(h)}var d=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(d);e>=0&&i.splice(e,1),completeIfDone()}});i.push(d)},error:function error(e){r.error(e)},complete:function complete(){completeIfDone()}});function completeIfDone(){d.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),d.unsubscribe()}}))},e[cr]=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,cr);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(or("iterator")&&(n=getMethod(e,sr)))return new t((function(t){enqueue((function(){if(!t.closed){for(var r,i=_createForOfIteratorHelperLoose(n.call(e));!(r=i()).done;){var d=r.value;if(t.next(d),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:ur,get:function get(){return this}}]),Observable}();function passthrough(e,t){return t?t(e):pr.of()}function toLink(e){return"function"===typeof e?new hr(e):e}function isTerminating(e){return e.request.length<=1}ir()&&Object.defineProperty(pr,Symbol("extensions"),{value:{symbol:cr,hostReportError:hostReportError},configurable:!0});var dr=function(e){function LinkError(t,n){var r=e.call(this,t)||this;return r.link=n,r}return __extends(LinkError,e),LinkError}(Error),hr=function(){function ApolloLink(e){e&&(this.request=e)}return ApolloLink.empty=function(){return new ApolloLink((function(){return pr.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)||pr.of():i.request(t)||pr.of()})):new ApolloLink((function(t,n){return e(t)?r.request(t,n)||pr.of():i.request(t,n)||pr.of()}))},ApolloLink.execute=function(e,t){return e.request(function createOperation(e,t){var n=Me({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function setContext(e){n=Me(Me({},n),"function"===typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function getContext(){return Me({},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 Pt("illegal argument: "+i):new Pt(29)}return e}(t))))||pr.of()},ApolloLink.concat=function(e,t){var n=toLink(e);if(isTerminating(n))return __DEV__&&invariant_esm_invariant.warn(new dr("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)||pr.of()}))||pr.of()})):new ApolloLink((function(e,t){return n.request(e,(function(e){return r.request(e,t)||pr.of()}))||pr.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 Pt("request is not implemented"):new Pt(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}(),mr=hr.from,yr=function serializeFetchParameter(e,t){var n;try{n=JSON.stringify(e)}catch(i){var r=__DEV__?new Pt("Network request failed. "+t+" is not serializable: "+i.message):new Pt(26);throw r.parseError=i,r}return n},vr=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},gr=Object.prototype.hasOwnProperty;var _r={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 pr((function(t){t.error(e)}))}var br=function createHttpLink(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.includeExtensions,d=e.useGETForQueries,h=e.includeUnusedVariables,y=void 0!==h&&h,v=__rest(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);!function checkFetcher(e){if(!e&&"undefined"===typeof fetch)throw __DEV__?new Pt("\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 Pt(25)}(r),r||(r=fetch);var g={http:{includeExtensions:i},options:v.fetchOptions,credentials:v.credentials,headers:v.headers};return new hr((function(e){var t=function selectURI(e,t){return e.getContext().uri||("function"===typeof t?t(e):t||"/graphql")}(e,n),i=e.getContext(),h={};if(i.clientAwareness){var v=i.clientAwareness,_=v.name,b=v.version;_&&(h["apollographql-client-name"]=_),b&&(h["apollographql-client-version"]=b)}var w,E=Me(Me({},h),i.headers),S={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:E},k=function selectHttpOptionsAndBody(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Me(Me({},t.options),{headers:t.headers,credentials:t.credentials}),d=t.http||{};n.forEach((function(e){i=Me(Me(Me({},i),e.options),{headers:Me(Me({},i.headers),headersToLowerCase(e.headers))}),e.credentials&&(i.credentials=e.credentials),d=Me(Me({},d),e.http)}));var h=e.operationName,y=e.extensions,v=e.variables,g=e.query,_={operationName:h,variables:v};return d.includeExtensions&&(_.extensions=y),d.includeQuery&&(_.query=print(g)),{options:i,body:_}}(e,_r,g,S),O=k.options,C=k.body;if(C.variables&&!y){var T=new Set(Object.keys(C.variables));visit(e.query,{Variable:function Variable(e,t,n){n&&"VariableDefinition"!==n.kind&&T.delete(e.name.value)}}),T.size&&(C.variables=Me({},C.variables),T.forEach((function(e){delete C.variables[e]})))}if(!O.signal){var A=function createSignalIfSupported(){if("undefined"===typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),x=A.controller,I=A.signal;(w=x)&&(O.signal=I)}if(d&&!e.query.definitions.some((function definitionIsMutation(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(O.method="GET"),"GET"===O.method){var D=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=yr(t.variables,"Variables map")}catch(N){return{parseError:N}}r("variables",i)}if(t.extensions){var d=void 0;try{d=yr(t.extensions,"Extensions map")}catch(N){return{parseError:N}}r("extensions",d)}var h="",y=e,v=e.indexOf("#");-1!==v&&(h=e.substr(v),y=e.substr(0,v));var g=-1===y.indexOf("?")?"?":"&";return{newURI:y+g+n.join("&")+h}}(t,C),L=D.newURI,N=D.parseError;if(N)return fromError(N);t=L}else try{O.body=yr(C,"Payload")}catch(N){return fromError(N)}return new pr((function(n){return r(t,O).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&&vr(t,n,"Response not successful: Received status code "+t.status),Array.isArray(n)||gr.call(n,"data")||gr.call(n,"errors")||vr(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(){w&&w.abort()}}))}))},wr=function(e){function HttpLink(t){void 0===t&&(t={});var n=e.call(this,br(t).request)||this;return n.options=t,n}return __extends(HttpLink,e),HttpLink}(hr),Er=hr.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 pr((function(r){var i=r.next,d=r.error,h=r.complete,y=0,v=!1,g={then:function then(e){return new Promise((function(t){return t(e())}))}};function makeCallback(e,t){return e?function(t){++y;var n=function both(){return e(t)};g=g.then(n,n).then((function(e){--y,i&&i.call(r,e),v&&_.complete()}),(function(e){throw--y,e})).catch((function(e){d&&d.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var _={next:makeCallback(t,i),error:makeCallback(n,d),complete:function complete(){v=!0,y||h&&h.call(r)}},b=e.subscribe(_);return function(){return b.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:pr})}return"function"===typeof Symbol&&Symbol.species&&set(Symbol.species),set("@@species"),e}function Concast_isPromiseLike(e){return e&&"function"===typeof e.then}var Sr=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 pr(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},d=this.addCount;this.addObserver(i),this.addCount=d},Concast}(pr);function isNonEmptyArray(e){return Array.isArray(e)&&e.length>0}fixObservableSubclass(Sr),__DEV__?invariant_esm_invariant("boolean"===typeof tn,tn):invariant_esm_invariant("boolean"===typeof tn,22);var kr,Or=function(e){function ApolloError(t){var n=t.graphQLErrors,r=t.clientErrors,i=t.networkError,d=t.errorMessage,h=t.extraInfo,y=e.call(this,d)||this;return y.graphQLErrors=n||[],y.clientErrors=r||[],y.networkError=i||null,y.message=d||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$/,"")}(y),y.extraInfo=h,y.__proto__=ApolloError.prototype,y}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"}(kr||(kr={}));var Cr=!1,Tr=function(e){function ObservableQuery(t){var n=t.queryManager,r=t.queryInfo,i=t.options,d=e.call(this,(function(e){try{var n=e._subscription._observer;n&&!n.error&&(n.error=defaultSubscriptionObserverErrorCallback)}catch(t){}var r=!d.observers.size;return d.observers.add(e),d.lastError?e.error&&e.error(d.lastError):d.lastResult&&e.next&&e.next(d.lastResult),r&&d.reobserve().catch((function(){})),function(){d.observers.delete(e)&&!d.observers.size&&d.tearDownQuery()}}))||this;d.observers=new Set,d.subscriptions=new Set,d.observer={next:function next(e){(d.lastError||d.isDifferentFromLastResult(e))&&(d.updateLastResult(e),iterateObserversSafely(d.observers,"next",e))},error:function error(e){d.updateLastResult(Me(Me({},d.lastResult),{error:e,errors:e.graphQLErrors,networkStatus:kr.error,loading:!1})),iterateObserversSafely(d.observers,"error",d.lastError=e)}},d.isTornDown=!1,d.options=i,d.queryId=n.generateQueryId();var h=getOperationDefinition(i.query);return d.queryName=h&&h.name&&h.name.value,d.initialFetchPolicy=i.fetchPolicy||"cache-first",d.queryManager=n,d.queryInfo=r,d}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||kr.ready,d=Me(Me({},t),{loading:isNetworkRequestInFlight(i),networkStatus:i});if(!this.queryManager.transform(this.options.query).hasForcedResolvers){var h=this.queryInfo.getDiff();d.data=h.complete||this.options.returnPartialData?h.result:void 0,h.complete?(d.networkStatus!==kr.loading||"cache-first"!==r&&"cache-only"!==r||(d.networkStatus=kr.ready,d.loading=!1),delete d.partial):"no-cache"!==r&&(d.partial=!0),h.complete||this.options.partialRefetch||d.loading||d.data||d.error||(d.error=new Or({clientErrors:h.missing}))}return e&&this.updateLastResult(d),d},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=Me(Me({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(t,kr.refetch)},ObservableQuery.prototype.fetchMore=function(e){var t=this,n=Me(Me({},e.query?e:Me(Me(Me({},this.options),e),{variables:Me(Me({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=kr.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,kr.fetchMore).then((function(r){var i=r.data,d=e.updateQuery;return d?(__DEV__&&!Cr&&(__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."),Cr=!0),t.updateQuery((function(e){return d(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},kr.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"},kr.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===kr.refetch||t===kr.fetchMore||t===kr.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=kr.setVariables)));var d=this.fetch(i,t);return n||(this.concast&&this.concast.removeObserver(this.observer,!0),this.concast=d),d.addObserver(this.observer),d.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}(pr);function defaultSubscriptionObserverErrorCallback(e){__DEV__&&invariant_esm_invariant.error("Unhandled error",e.message,e.stack)}fixObservableSubclass(Tr);var Ar=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,d=e.onlyRunForcedResolvers,h=void 0!==d&&d;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,h).then((function(e){return Me(Me({},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 Me(Me({},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 Me(Me({},t),e.exportedVariables)}))]:[2,Me({},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 Kt}}}),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,d){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function fragmentMatcher(){return!0}),void 0===d&&(d=!1),__awaiter(this,void 0,void 0,(function(){var h,y,v,g,_,b,w,E,S;return __generator(this,(function(k){return h=getMainDefinition(e),y=getFragmentDefinitions(e),v=createFragmentMap(y),g=h.operation,_=g?g.charAt(0).toUpperCase()+g.slice(1):"Query",w=(b=this).cache,E=b.client,S={fragmentMap:v,context:Me(Me({},n),{cache:w,client:E}),variables:r,fragmentMatcher:i,defaultOperationType:_,exportedVariables:{},onlyRunForcedResolvers:d},[2,this.resolveSelectionSet(h.selectionSet,t,S).then((function(e){return{result:e,exportedVariables:S.exportedVariables}}))]}))}))},LocalState.prototype.resolveSelectionSet=function(e,t,n){return __awaiter(this,void 0,void 0,(function(){var r,i,d,h,y,v=this;return __generator(this,(function(g){return r=n.fragmentMap,i=n.context,d=n.variables,h=[t],y=function execute(e){return __awaiter(v,void 0,void 0,(function(){var y,v;return __generator(this,(function(g){return shouldInclude(e,d)?storeUtils_isField(e)?[2,this.resolveField(e,t,n).then((function(t){var n;"undefined"!==typeof t&&h.push(((n={})[resultKeyNameFromField(e)]=t,n))}))]:(isInlineFragment(e)?y=e:(y=r[e.name.value],__DEV__?invariant_esm_invariant(y,"No fragment named "+e.name.value):invariant_esm_invariant(y,12)),y&&y.typeCondition&&(v=y.typeCondition.name.value,n.fragmentMatcher(t,v,i))?[2,this.resolveSelectionSet(y.selectionSet,t,n).then((function(e){h.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(y)).then((function(){return mergeDeepArray(h)}))]}))}))},LocalState.prototype.resolveField=function(e,t,n){return __awaiter(this,void 0,void 0,(function(){var r,i,d,h,y,v,g,_,b,w=this;return __generator(this,(function(E){return r=n.variables,i=e.name.value,d=resultKeyNameFromField(e),h=i!==d,y=t[d]||t[i],v=Promise.resolve(y),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(g=t.__typename||n.defaultOperationType,(_=this.resolvers&&this.resolvers[g])&&(b=_[h?i:d])&&(v=Promise.resolve(jn.withValue(this.cache,b,[t,argumentsObjectFromField(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,v.then((function(t){return void 0===t&&(t=y),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)?w.resolveSubSelectedArray(e,t,n):e.selectionSet?w.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}(),xr=new(Wt?WeakMap:Map);function wrapDestructiveCacheMethod(e,t){var n=e[t];"function"===typeof n&&(e[t]=function(){return xr.set(e,(xr.get(e)+1)%1e15),n.apply(this,arguments)})}function cancelNotifyTimeout(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Ir=function(){function QueryInfo(e){this.cache=e,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null,xr.has(e)||(xr.set(e,0),wrapDestructiveCacheMethod(e,"evict"),wrapDestructiveCacheMethod(e,"modify"),wrapDestructiveCacheMethod(e,"reset"))}return QueryInfo.prototype.init=function(e){var t=e.networkStatus||kr.loading;return this.variables&&this.networkStatus!==kr.loading&&!equal(this.variables,e.variables)&&(t=kr.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=Me(Me({},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===xr.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:xr.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete)return void(e.data=r.lastDiff.diff.result);var d=r.getDiffOptions(t.variables),h=i.diff(d);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(h,d),h.complete&&(e.data=h.result)})):this.lastWrite=void 0)},QueryInfo.prototype.markReady=function(){return this.networkError=null,this.networkStatus=kr.ready},QueryInfo.prototype.markError=function(e){return this.networkStatus=kr.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 Dr=Object.prototype.hasOwnProperty,Lr=function(){function QueryManager(e){var t=e.cache,n=e.link,r=e.queryDeduplication,i=void 0!==r&&r,d=e.onBroadcast,h=e.ssrMode,y=void 0!==h&&h,v=e.clientAwareness,g=void 0===v?{}:v,_=e.localState,b=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Wt?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=g,this.localState=_||new Ar({cache:t}),this.ssrMode=y,this.assumeImmutableResults=!!b,(this.onBroadcast=d)&&(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 Pt("QueryManager stopped while query was in flight"):new Pt(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,d=e.refetchQueries,h=void 0===d?[]:d,y=e.awaitRefetchQueries,v=void 0!==y&&y,g=e.update,_=e.onQueryUpdated,b=e.errorPolicy,w=void 0===b?"none":b,E=e.fetchPolicy,S=e.keepRootFields,k=e.context;return __awaiter(this,void 0,void 0,(function(){var e,d,y;return __generator(this,(function(b){switch(b.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(!E||"no-cache"===E,"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(!E||"no-cache"===E,16),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,k)]:[3,2];case 1:n=b.sent(),b.label=2;case 2:return d=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),r&&this.markMutationOptimistic(r,{mutationId:e,document:t,variables:n,fetchPolicy:E,errorPolicy:w,context:k,updateQueries:i,update:g,keepRootFields:S}),this.broadcastQueries(),y=this,[2,new Promise((function(b,O){return asyncMap(y.getObservableFromLink(t,Me(Me({},k),{optimisticResponse:r}),n,!1),(function(b){if(graphQLResultHasError(b)&&"none"===w)throw new Or({graphQLErrors:b.errors});d&&(d.loading=!1,d.error=null);var O=Me({},b);return"function"===typeof h&&(h=h(O)),"ignore"===w&&graphQLResultHasError(O)&&delete O.errors,y.markMutationResult({mutationId:e,result:O,document:t,variables:n,fetchPolicy:E,errorPolicy:w,context:k,update:g,updateQueries:i,awaitRefetchQueries:v,refetchQueries:h,removeOptimistic:r?e:void 0,onQueryUpdated:_,keepRootFields:S})})).subscribe({next:function next(e){y.broadcastQueries(),b(e)},error:function error(t){d&&(d.loading=!1,d.error=t),r&&y.cache.removeOptimistic(e),y.broadcastQueries(),O(t instanceof Or?t:new Or({networkError:t}))}})}))]}}))}))},QueryManager.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],d="no-cache"===e.fetchPolicy;if(!d&&shouldWriteResult(r,e.errorPolicy)){i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var h=e.updateQueries;h&&this.queries.forEach((function(e,d){var y=e.observableQuery,v=y&&y.queryName;if(v&&Dr.call(h,v)){var g=h[v],_=n.queries.get(d),b=_.document,w=_.variables,E=t.diff({query:b,variables:w,returnPartialData:!0,optimistic:!1}),S=E.result;if(E.complete&&S){var k=g(S,{mutationResult:r,queryName:b&&getOperationName(b)||void 0,queryVariables:w});k&&i.push({result:k,dataId:"ROOT_QUERY",query:b,variables:w})}}}))}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var y=[];if(this.refetchQueries({updateCache:function updateCache(t){d||i.forEach((function(e){return t.write(e)}));var h=e.update;if(h){if(!d){var y=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});y.complete&&(r=Me(Me({},r),{data:y.result}))}h(t,r,{context:e.context,variables:e.variables})}d||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 y.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(y).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(Me(Me({},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([Ht],checkDocument(e))}(this.cache.transformForLink(n)),i=this.localState.clientQuery(n),d=r&&this.localState.serverQuery(r),h={document:n,hasClientExports:hasClientExports(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:i,serverQuery:d,defaultVars:getDefaultValues(getOperationDefinition(n)),asQuery:Me(Me({},n),{definitions:n.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?Me(Me({},e),{operation:"query"}):e}))})},y=function add(e){e&&!t.has(e)&&t.set(e,h)};y(e),y(n),y(i),y(d)}return t.get(e)},QueryManager.prototype.getVariables=function(e,t){return Me(Me({},this.transform(e).defaultVars),t)},QueryManager.prototype.watchQuery=function(e){"undefined"===typeof(e=Me(Me({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new Ir(this.cache),n=new Tr({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 Pt("Store reset while query was in flight (not completed in link chain)"):new Pt(21)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=kr.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 d=t.observableQuery,h=t.document;if(d){if("all"===e)return void n.set(i,d);var y=d.queryName;if("standby"===d.options.fetchPolicy||!d.hasObservers())return;("active"===e||y&&r.has(y)||h&&r.has(h))&&(n.set(i,d),y&&r.set(y,!0),h&&r.set(h,!0))}})),i.size&&i.forEach((function(e){var r=makeUniqueId("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),d=new Tr({queryManager:t,queryInfo:i,options:Me(Me({},e),{fetchPolicy:"network-only"})});i.setObservableQuery(d),n.set(r,d)})),__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 d=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==d&&"cache-only"!==d)&&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,d=e.variables,h=e.context,y=void 0===h?{}:h;n=this.transform(n).document,d=this.getVariables(n,d);var v=function makeObservable(e){return t.getObservableFromLink(n,y,e).map((function(d){if("no-cache"!==r&&(shouldWriteResult(d,i)&&t.cache.write({query:n,result:d.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),graphQLResultHasError(d))throw new Or({graphQLErrors:d.errors});return d}))};if(this.transform(n).hasClientExports){var g=this.localState.addExportedVariables(n,d,y).then(v);return new pr((function(e){var t=null;return g.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return v(d)},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,d,h=this;void 0===r&&(r=null!==(i=null===t||void 0===t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var y=this.transform(e).serverQuery;if(y){var v=this.inFlightLinkObservables,g=this.link,_={query:y,variables:n,operationName:getOperationName(y)||void 0,context:this.prepareContext(Me(Me({},t),{forceFetch:!r}))};if(t=_.context,r){var b=v.get(y)||new Map;v.set(y,b);var w=xn(n);if(!(d=b.get(w))){var E=new Sr([Er(g,_)]);b.set(w,d=E),E.cleanup((function(){b.delete(w)&&b.size<1&&v.delete(y)}))}}else d=new Sr([Er(g,_)])}else d=new Sr([pr.of({data:{}})]),t=this.prepareContext(t);var S=this.transform(e).clientQuery;return S&&(d=asyncMap(d,(function(e){return h.localState.runResolvers({document:S,remoteResult:e,context:t,variables:n})}))),d},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 d=isNonEmptyArray(i.errors);if(r>=e.lastRequestId){if(d&&"none"===n.errorPolicy)throw e.markError(new Or({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var h={data:i.data,loading:!1,networkStatus:e.networkStatus||kr.ready};return d&&"ignore"!==n.errorPolicy&&(h.errors=i.errors),h}),(function(t){var n=function isApolloError(e){return e.hasOwnProperty("graphQLErrors")}(t)?t:new Or({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},QueryManager.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=kr.loading);var i=this.transform(t.query).document,d=this.getVariables(i,t.variables),h=this.getQuery(e),y=t.fetchPolicy,v=void 0===y?"cache-first":y,g=t.errorPolicy,_=void 0===g?"none":g,b=t.returnPartialData,w=void 0!==b&&b,E=t.notifyOnNetworkStatusChange,S=void 0!==E&&E,k=t.context,O=void 0===k?{}:k,C=Object.assign({},t,{query:i,variables:d,fetchPolicy:v,errorPolicy:_,returnPartialData:w,notifyOnNetworkStatusChange:S,context:O}),T=function fromVariables(e){return C.variables=e,r.fetchQueryByPolicy(h,C,n)};this.fetchCancelFns.set(e,(function(e){Promise.resolve().then((function(){return A.cancel(e)}))}));var A=new Sr(this.transform(C.query).hasClientExports?this.localState.addExportedVariables(C.query,C.variables,C.context).then(T):T(C.variables));return A.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)})),A},QueryManager.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,d=void 0!==i&&i,h=e.removeOptimistic,y=void 0===h?d?makeUniqueId("refetchQueries"):void 0:h,v=e.onQueryUpdated,g=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){g.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var _=new Map;return n&&this.cache.batch({update:n,optimistic:d&&y||!1,removeOptimistic:y,onWatchUpdated:function onWatchUpdated(e,t,n){var r=e.watcher instanceof Ir&&e.watcher.observableQuery;if(r){if(v){g.delete(r.queryId);var i=v(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&_.set(r,i),!1}null!==v&&g.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),g.size&&g.forEach((function(e,n){var r,i=e.oq,d=e.lastDiff,h=e.diff;if(v){if(!h){var y=i.queryInfo;y.reset(),h=y.getDiff()}r=v(i,h,d)}v&&!0!==r||(r=i.refetch()),!1!==r&&_.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),y&&this.cache.removeOptimistic(y),_},QueryManager.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,d=t.variables,h=t.fetchPolicy,y=t.refetchWritePolicy,v=t.errorPolicy,g=t.returnPartialData,_=t.context,b=t.notifyOnNetworkStatusChange,w=e.networkStatus;e.init({document:i,variables:d,networkStatus:n});var E=function readCache(){return e.getDiff(d)},S=function resultsFromCache(t,n){void 0===n&&(n=e.networkStatus||kr.loading);var h=t.result;__DEV__&&isNonEmptyArray(t.missing)&&!equal(h,{})&&!g&&__DEV__&&invariant_esm_invariant.debug("Missing cache result fields: "+t.missing.map((function(e){return e.path.join(".")})).join(", "),t.missing);var y=function fromData(e){return pr.of(Me({data:e,loading:isNetworkRequestInFlight(n),networkStatus:n},t.complete?null:{partial:!0}))};return h&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:h},context:_,variables:d,onlyRunForcedResolvers:!0}).then((function(e){return y(e.data||void 0)})):y(h)},k="no-cache"===h?0:n===kr.refetch&&"merge"!==y?1:2,O=function resultsFromLink(){return r.getResultsFromLink(e,k,{variables:d,context:_,fetchPolicy:h,errorPolicy:v})},C=b&&"number"===typeof w&&w!==n&&isNetworkRequestInFlight(n);switch(h){default:case"cache-first":return(T=E()).complete?[S(T,e.markReady())]:g||C?[S(T),O()]:[O()];case"cache-and-network":var T;return(T=E()).complete||g||C?[S(T),O()]:[O()];case"cache-only":return[S(E(),e.markReady())];case"network-only":return C?[S(E()),O()]:[O()];case"no-cache":return C?[S(e.getDiff()),O()]:[O()];case"standby":return[]}},QueryManager.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Ir(this.cache)),this.queries.get(e)},QueryManager.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Me(Me({},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 Nr=!1;function mergeOptions(e,t){return compact(e,t,t.variables&&{variables:Me(Me({},e.variables),t.variables)})}var Pr=function(){function ApolloClient(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,d=e.cache,h=e.ssrMode,y=void 0!==h&&h,v=e.ssrForceFetchDelay,g=void 0===v?0:v,_=e.connectToDevTools,b=void 0===_?"object"===("undefined"===typeof window?"undefined":ApolloClient_typeof(window))&&!window.__APOLLO_CLIENT__&&__DEV__:_,w=e.queryDeduplication,E=void 0===w||w,S=e.defaultOptions,k=e.assumeImmutableResults,O=void 0!==k&&k,C=e.resolvers,T=e.typeDefs,A=e.fragmentMatcher,x=e.name,I=e.version,D=e.link;if(D||(D=n?new wr({uri:n,credentials:r,headers:i}):hr.empty()),!d)throw __DEV__?new Pt("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 Pt(10);if(this.link=D,this.cache=d,this.disableNetworkFetches=y||g>0,this.queryDeduplication=E,this.defaultOptions=S||{},this.typeDefs=T,g&&setTimeout((function(){return t.disableNetworkFetches=!1}),g),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),b&&"object"===("undefined"===typeof window?"undefined":ApolloClient_typeof(window))&&(window.__APOLLO_CLIENT__=this),!Nr&&__DEV__&&(Nr=!0,"undefined"!==typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var L=window.navigator,N=L&&L.userAgent,P=void 0;"string"===typeof N&&(N.indexOf("Chrome/")>-1?P="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":N.indexOf("Firefox/")>-1&&(P="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),P&&__DEV__&&invariant_esm_invariant.log("Download the Apollo DevTools for a better development experience: "+P)}this.version="3.4.2",this.localState=new Ar({cache:d,client:this,resolvers:C,fragmentMatcher:A}),this.queryManager=new Lr({cache:this.cache,link:this.link,queryDeduplication:E,ssrMode:y,clientAwareness:{name:x,version:I},localState:this.localState,assumeImmutableResults:O,onBroadcast:b?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=Me(Me({},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=Me(Me({},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 Er(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 hr((function(t,n){return new pr((function(r){var i,d,h;try{i=n(t).subscribe({next:function next(i){i.errors&&(h=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}))?d=h.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.next(i)},error:function error(i){(h=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:n}))?d=h.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.error(i)},complete:function complete(){h||r.complete.bind(r)()}})}catch(y){e({networkError:y,operation:t,forward:n}),r.error(y)}return function(){i&&i.unsubscribe(),d&&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)}}(hr);var jr="_appolo",Mr=document.querySelector('meta[name="api_url"]'),Rr=Mr?Mr.getAttribute("content"):"".concat(window.location.protocol,"//").concat(window.location.host,"/graphql"),Fr=new hr((function(e,t){return e.setContext({headers:{apikey:"".concat("ApKrRSjySO4JAmX3E2Z7HvrBD0m8xdDlAiXyh4IbH3w")}}),t(e)}));console.info("%cAPI: ".concat(Rr),"color:green;font-size:10px");var qr=new Pr({cache:rr,link:mr([Fr,new hr((function(e,t){return e.setContext({start:new Date}),t(e)})),onError((function(e){var n=e.operation,r=e.response,i=e.graphQLErrors,d=e.networkError;e.forward;if("IgnoreErrorsQuery"===n.operationName)return console.error("".concat(jr,": IgnoreErrorsQuery")),void(r.errors=null);i&&i.forEach((function(e){var t=e.message,n=e.locations,r=e.path;return console.error("".concat(jr,": [GraphQL error]: Message: ").concat(t,", Location: ").concat(n,", Path: ").concat(r))})),d&&console.error("".concat(jr,": [Network error] ").concat(d.statusCode)),console.error("".concat(jr,": [APOLLO_ERROR]")),window.dispatchEvent(new Event(t.APOLLO_ERROR))})),new hr((function(e,n){return n(e).map((function(n){var r=new Date-e.getContext().start;return console.log("".concat(jr,": operation ").concat(e.operationName," took ").concat(r," ms to complete")),window.dispatchEvent(new Event(t.ONLINE)),n}))})),new wr({uri:Rr,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 Qr=document,Vr=document.body,Br=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 Vr.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),qr.query({query:i,fetchPolicy:t.isOnline()?"no-cache":"cache-first"}).then((function(e){var d=e.data;qr.writeQuery({query:i,data:d}),t.processResponse(d)?(console.log("".concat(t.name,": got the server response")),n(d)):(console.log("".concat(t.name,": not found")),r({status:404}))})).catch((function(e){r({status:500,error:e})}));else{var d=qr.readQuery({query:i});d&&t.processResponse(d)?(console.log("".concat(t.name,": Offline cached response")),n(d)):(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){Qr.getElementById("PageLoading");n='<div class="loading">Loading ...</div>'}return React.createElement("div",{className:t,dangerouslySetInnerHTML:e.getHtml(n)})}}]),Page}(g.Component),Kr=__webpack_require__(138),Ur="top",zr="bottom",Hr="right",Wr="left",Gr="auto",Yr=[Ur,zr,Hr,Wr],Jr="start",Xr="end",$r="clippingParents",Zr="viewport",ei="popper",ti="reference",ni=Yr.reduce((function(e,t){return e.concat([t+"-"+Jr,t+"-"+Xr])}),[]),ri=[].concat(Yr,[Gr]).reduce((function(e,t){return e.concat([t,t+"-"+Jr,t+"-"+Xr])}),[]),ii="beforeRead",oi="read",ai="afterRead",si="beforeMain",ci="main",ui="afterMain",li="beforeWrite",fi="write",pi="afterWrite",di=[ii,oi,ai,si,ci,ui,li,fi,pi];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 instanceOf_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 hi={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]||{},d=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,d),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}function getBoundingClientRect(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}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((instanceOf_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 mi=Math.max,yi=Math.min,vi=Math.round;function within(e,t,n){return mi(e,yi(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 gi={name:"arrow",enabled:!0,phase:"main",fn:function arrow(e){var t,n=e.state,r=e.name,i=e.options,d=n.elements.arrow,h=n.modifiersData.popperOffsets,y=getBasePlacement(n.placement),v=getMainAxisFromPlacement(y),g=[Wr,Hr].indexOf(y)>=0?"height":"width";if(d&&h){var _=function toPaddingObject(e,t){return mergePaddingObject("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:expandToHashMap(e,Yr))}(i.padding,n),b=getLayoutRect(d),w="y"===v?Ur:Wr,E="y"===v?zr:Hr,S=n.rects.reference[g]+n.rects.reference[v]-h[v]-n.rects.popper[g],k=h[v]-n.rects.reference[v],O=getOffsetParent(d),C=O?"y"===v?O.clientHeight||0:O.clientWidth||0:0,T=S/2-k/2,A=_[w],x=C-b[g]-_[E],I=C/2-b[g]/2+T,D=within(A,I,x),L=v;n.modifiersData[r]=((t={})[L]=D,t.centerOffset=D-I,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"]},_i={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mapToStyles(e){var t,n=e.popper,r=e.popperRect,i=e.placement,d=e.offsets,h=e.position,y=e.gpuAcceleration,v=e.adaptive,g=e.roundOffsets,_=!0===g?function roundOffsetsByDPR(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:vi(vi(t*r)/r)||0,y:vi(vi(n*r)/r)||0}}(d):"function"===typeof g?g(d):d,b=_.x,w=void 0===b?0:b,E=_.y,S=void 0===E?0:E,k=d.hasOwnProperty("x"),O=d.hasOwnProperty("y"),C=Wr,T=Ur,A=window;if(v){var x=getOffsetParent(n),I="clientHeight",D="clientWidth";x===getWindow(n)&&"static"!==getComputedStyle_getComputedStyle(x=getDocumentElement(n)).position&&(I="scrollHeight",D="scrollWidth"),x=x,i===Ur&&(T=zr,S-=x[I]-r.height,S*=y?1:-1),i===Wr&&(C=Hr,w-=x[D]-r.width,w*=y?1:-1)}var L,N=Object.assign({position:h},v&&_i);return y?Object.assign({},N,((L={})[T]=O?"0":"",L[C]=k?"0":"",L.transform=(A.devicePixelRatio||1)<2?"translate("+w+"px, "+S+"px)":"translate3d("+w+"px, "+S+"px, 0)",L)):Object.assign({},N,((t={})[T]=O?S+"px":"",t[C]=k?w+"px":"",t.transform="",t))}var bi={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,d=n.adaptive,h=void 0===d||d,y=n.roundOffsets,v=void 0===y||y,g={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({},g,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:h,roundOffsets:v})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},g,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:v})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},wi={passive:!0};var Ei={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,d=void 0===i||i,h=r.resize,y=void 0===h||h,v=getWindow(t.elements.popper),g=[].concat(t.scrollParents.reference,t.scrollParents.popper);return d&&g.forEach((function(e){e.addEventListener("scroll",n.update,wi)})),y&&v.addEventListener("resize",n.update,wi),function(){d&&g.forEach((function(e){e.removeEventListener("scroll",n.update,wi)})),y&&v.removeEventListener("resize",n.update,wi)}},data:{}},Si={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return Si[e]}))}var ki={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,(function(e){return ki[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),d=getWindow(r),h=i?[d].concat(d.visualViewport||[],isScrollParent(r)?r:[]):r,y=t.concat(h);return i?y:y.concat(listScrollParents(getParentNode(h)))}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===Zr?rectToClientRect(function getViewportRect(e){var t=getWindow(e),n=getDocumentElement(e),r=t.visualViewport,i=n.clientWidth,d=n.clientHeight,h=0,y=0;return r&&(i=r.width,d=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(h=r.offsetLeft,y=r.offsetTop)),{width:i,height:d,x:h+getWindowScrollBarX(e),y:y}}(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,d=mi(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),h=mi(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),y=-r.scrollLeft+getWindowScrollBarX(e),v=-r.scrollTop;return"rtl"===getComputedStyle_getComputedStyle(i||n).direction&&(y+=mi(n.clientWidth,i?i.clientWidth:0)-d),{width:d,height:h,x:y,y:v}}(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 instanceOf_isElement(n)?t.filter((function(e){return instanceOf_isElement(e)&&contains(e,n)&&"body"!==getNodeName(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),d=i[0],h=i.reduce((function(t,n){var r=getClientRectFromMixedType(e,n);return t.top=mi(r.top,t.top),t.right=yi(r.right,t.right),t.bottom=yi(r.bottom,t.bottom),t.left=mi(r.left,t.left),t}),getClientRectFromMixedType(e,d));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}function getVariation(e){return e.split("-")[1]}function computeOffsets(e){var t,n=e.reference,r=e.element,i=e.placement,d=i?getBasePlacement(i):null,h=i?getVariation(i):null,y=n.x+n.width/2-r.width/2,v=n.y+n.height/2-r.height/2;switch(d){case Ur:t={x:y,y:n.y-r.height};break;case zr:t={x:y,y:n.y+n.height};break;case Hr:t={x:n.x+n.width,y:v};break;case Wr:t={x:n.x-r.width,y:v};break;default:t={x:n.x,y:n.y}}var g=d?getMainAxisFromPlacement(d):null;if(null!=g){var _="y"===g?"height":"width";switch(h){case Jr:t[g]=t[g]-(n[_]/2-r[_]/2);break;case Xr:t[g]=t[g]+(n[_]/2-r[_]/2)}}return t}function detectOverflow(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,d=n.boundary,h=void 0===d?$r:d,y=n.rootBoundary,v=void 0===y?Zr:y,g=n.elementContext,_=void 0===g?ei:g,b=n.altBoundary,w=void 0!==b&&b,E=n.padding,S=void 0===E?0:E,k=mergePaddingObject("number"!==typeof S?S:expandToHashMap(S,Yr)),O=_===ei?ti:ei,C=e.elements.reference,T=e.rects.popper,A=e.elements[w?O:_],x=getClippingRect(instanceOf_isElement(A)?A:A.contextElement||getDocumentElement(e.elements.popper),h,v),I=getBoundingClientRect(C),D=computeOffsets({reference:I,element:T,strategy:"absolute",placement:i}),L=rectToClientRect(Object.assign({},T,D)),N=_===ei?L:I,P={top:x.top-N.top+k.top,bottom:N.bottom-x.bottom+k.bottom,left:x.left-N.left+k.left,right:N.right-x.right+k.right},j=e.modifiersData.offset;if(_===ei&&j){var M=j[i];Object.keys(P).forEach((function(e){var t=[Hr,zr].indexOf(e)>=0?1:-1,n=[Ur,zr].indexOf(e)>=0?"y":"x";P[e]+=M[n]*t}))}return P}var Oi={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,d=void 0===i||i,h=n.altAxis,y=void 0===h||h,v=n.fallbackPlacements,g=n.padding,_=n.boundary,b=n.rootBoundary,w=n.altBoundary,E=n.flipVariations,S=void 0===E||E,k=n.allowedAutoPlacements,O=t.options.placement,C=getBasePlacement(O),T=v||(C===O||!S?[getOppositePlacement(O)]:function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===Gr)return[];var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}(O)),A=[O].concat(T).reduce((function(e,n){return e.concat(getBasePlacement(n)===Gr?function computeAutoPlacement(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,d=n.rootBoundary,h=n.padding,y=n.flipVariations,v=n.allowedAutoPlacements,g=void 0===v?ri:v,_=getVariation(r),b=_?y?ni:ni.filter((function(e){return getVariation(e)===_})):Yr,w=b.filter((function(e){return g.indexOf(e)>=0}));0===w.length&&(w=b);var E=w.reduce((function(t,n){return t[n]=detectOverflow(e,{placement:n,boundary:i,rootBoundary:d,padding:h})[getBasePlacement(n)],t}),{});return Object.keys(E).sort((function(e,t){return E[e]-E[t]}))}(t,{placement:n,boundary:_,rootBoundary:b,padding:g,flipVariations:S,allowedAutoPlacements:k}):n)}),[]),x=t.rects.reference,I=t.rects.popper,D=new Map,L=!0,N=A[0],P=0;P<A.length;P++){var j=A[P],M=getBasePlacement(j),R=getVariation(j)===Jr,F=[Ur,zr].indexOf(M)>=0,q=F?"width":"height",Q=detectOverflow(t,{placement:j,boundary:_,rootBoundary:b,altBoundary:w,padding:g}),V=F?R?Hr:Wr:R?zr:Ur;x[q]>I[q]&&(V=getOppositePlacement(V));var B=getOppositePlacement(V),K=[];if(d&&K.push(Q[M]<=0),y&&K.push(Q[V]<=0,Q[B]<=0),K.every((function(e){return e}))){N=j,L=!1;break}D.set(j,K)}if(L)for(var U=function _loop(e){var t=A.find((function(t){var n=D.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return N=t,"break"},z=S?3:1;z>0;z--){if("break"===U(z))break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,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[Ur,Hr,zr,Wr].some((function(t){return e[t]>=0}))}var Ci={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,d=t.modifiersData.preventOverflow,h=detectOverflow(t,{elementContext:"reference"}),y=detectOverflow(t,{altBoundary:!0}),v=getSideOffsets(h,r),g=getSideOffsets(y,i,d),_=isAnySideFullyClipped(v),b=isAnySideFullyClipped(g);t.modifiersData[n]={referenceClippingOffsets:v,popperEscapeOffsets:g,isReferenceHidden:_,hasPopperEscaped:b},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":_,"data-popper-escaped":b})}};var Ti={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,d=void 0===i?[0,0]:i,h=ri.reduce((function(e,n){return e[n]=function distanceAndSkiddingToXY(e,t,n){var r=getBasePlacement(e),i=[Wr,Ur].indexOf(r)>=0?-1:1,d="function"===typeof n?n(Object.assign({},t,{placement:e})):n,h=d[0],y=d[1];return h=h||0,y=(y||0)*i,[Wr,Hr].indexOf(r)>=0?{x:y,y:h}:{x:h,y:y}}(n,t.rects,d),e}),{}),y=h[t.placement],v=y.x,g=y.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=v,t.modifiersData.popperOffsets.y+=g),t.modifiersData[r]=h}};var Ai={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 xi={name:"preventOverflow",enabled:!0,phase:"main",fn:function preventOverflow(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,d=void 0===i||i,h=n.altAxis,y=void 0!==h&&h,v=n.boundary,g=n.rootBoundary,_=n.altBoundary,b=n.padding,w=n.tether,E=void 0===w||w,S=n.tetherOffset,k=void 0===S?0:S,O=detectOverflow(t,{boundary:v,rootBoundary:g,padding:b,altBoundary:_}),C=getBasePlacement(t.placement),T=getVariation(t.placement),A=!T,x=getMainAxisFromPlacement(C),I=function getAltAxis(e){return"x"===e?"y":"x"}(x),D=t.modifiersData.popperOffsets,L=t.rects.reference,N=t.rects.popper,P="function"===typeof k?k(Object.assign({},t.rects,{placement:t.placement})):k,j={x:0,y:0};if(D){if(d||y){var M="y"===x?Ur:Wr,R="y"===x?zr:Hr,F="y"===x?"height":"width",q=D[x],Q=D[x]+O[M],V=D[x]-O[R],B=E?-N[F]/2:0,K=T===Jr?L[F]:N[F],U=T===Jr?-N[F]:-L[F],z=t.elements.arrow,H=E&&z?getLayoutRect(z):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},G=W[M],Y=W[R],J=within(0,L[F],H[F]),X=A?L[F]/2-B-J-G-P:K-J-G-P,Z=A?-L[F]/2+B+J+Y+P:U+J+Y+P,ee=t.elements.arrow&&getOffsetParent(t.elements.arrow),te=ee?"y"===x?ee.clientTop||0:ee.clientLeft||0:0,ne=t.modifiersData.offset?t.modifiersData.offset[t.placement][x]:0,re=D[x]+X-ne-te,ie=D[x]+Z-ne;if(d){var oe=within(E?yi(Q,re):Q,q,E?mi(V,ie):V);D[x]=oe,j[x]=oe-q}if(y){var ae="x"===x?Ur:Wr,se="x"===x?zr:Hr,ce=D[I],ue=ce+O[ae],le=ce-O[se],fe=within(E?yi(ue,re):ue,ce,E?mi(le,ie):le);D[I]=fe,j[I]=fe-ce}}t.modifiersData[r]=j}},requiresIfExists:["offset"]};function getCompositeRect(e,t,n){void 0===n&&(n=!1);var r=getDocumentElement(t),i=getBoundingClientRect(e),d=isHTMLElement(t),h={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(d||!d&&!n)&&(("body"!==getNodeName(t)||isScrollParent(r))&&(h=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)?((y=getBoundingClientRect(t)).x+=t.clientLeft,y.y+=t.clientTop):r&&(y.x=getWindowScrollBarX(r))),{x:i.left+h.scrollLeft-y.x,y:i.top+h.scrollTop-y.y,width:i.width,height:i.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 Ii={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,d=void 0===i?Ii:i;return function createPopper(e,t,n){void 0===n&&(n=d);var i,h,y={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ii,d),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},v=[],g=!1,_={state:y,setOptions:function setOptions(n){cleanupModifierEffects(),y.options=Object.assign({},d,y.options,n),y.scrollParents={reference:instanceOf_isElement(e)?listScrollParents(e):e.contextElement?listScrollParents(e.contextElement):[],popper:listScrollParents(t)};var i=function orderModifiers(e){var t=order(e);return di.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,y.options.modifiers)));return y.orderedModifiers=i.filter((function(e){return e.enabled})),function runModifierEffects(){y.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var d=i({state:y,name:t,instance:_,options:r}),h=function noopFn(){};v.push(d||h)}}))}(),_.update()},forceUpdate:function forceUpdate(){if(!g){var e=y.elements,t=e.reference,n=e.popper;if(areValidElements(t,n)){y.rects={reference:getCompositeRect(t,getOffsetParent(n),"fixed"===y.options.strategy),popper:getLayoutRect(n)},y.reset=!1,y.placement=y.options.placement,y.orderedModifiers.forEach((function(e){return y.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<y.orderedModifiers.length;r++)if(!0!==y.reset){var i=y.orderedModifiers[r],d=i.fn,h=i.options,v=void 0===h?{}:h,b=i.name;"function"===typeof d&&(y=d({state:y,options:v,name:b,instance:_})||y)}else y.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){_.forceUpdate(),e(y)}))},function(){return h||(h=new Promise((function(e){Promise.resolve().then((function(){h=void 0,e(i())}))}))),h}),destroy:function destroy(){cleanupModifierEffects(),g=!0}};if(!areValidElements(e,t))return _;function cleanupModifierEffects(){v.forEach((function(e){return e()})),v=[]}return _.setOptions(n).then((function(e){!g&&n.onFirstUpdate&&n.onFirstUpdate(e)})),_}}var Di,Li=popperGenerator(),Ni=popperGenerator({defaultModifiers:[Ei,Ai,bi,hi,Ti,Oi,xi,gi,Ci]}),Pi=popperGenerator({defaultModifiers:[Ei,Ai,bi,hi]});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 bootstrap_esm_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 bootstrap_esm_objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bootstrap_esm_ownKeys(Object(n),!0).forEach((function(t){bootstrap_esm_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bootstrap_esm_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_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 bootstrap_esm_slicedToArray(e,t){return function bootstrap_esm_arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function bootstrap_esm_iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,d=[],h=!0,y=!1;try{for(n=n.call(e);!(h=(r=n.next()).done)&&(d.push(r.value),!t||d.length!==t);h=!0);}catch(v){y=!0,i=v}finally{try{h||null==n.return||n.return()}finally{if(y)throw i}}return d}(e,t)||bootstrap_esm_unsupportedIterableToArray(e,t)||function bootstrap_esm_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_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)}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_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}var ji=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)))},Mi=function findOne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},Ri=function children(e,t){var n;return(n=[]).concat.apply(n,bootstrap_esm_toConsumableArray(e.children)).filter((function(e){return e.matches(t)}))},Fi=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},qi=function prev(e,t){for(var n=e.previousElementSibling;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},Qi=function next(e,t){for(var next=e.nextElementSibling;next;){if(next.matches(t))return[next];next=next.nextElementSibling}return[]},Vi="transitionend",Bi=function getUID(e){do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e},Ki=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},Ui=function getSelectorFromElement(e){var t=Ki(e);return t&&document.querySelector(t)?t:null},zi=function getElementFromSelector(e){var t=Ki(e);return t?document.querySelector(t):null},Hi=function getTransitionDurationFromElement(e){if(!e)return 0;var t=window.getComputedStyle(e),n=t.transitionDuration,r=t.transitionDelay,i=Number.parseFloat(n),d=Number.parseFloat(r);return i||d?(n=n.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(r))):0},Wi=function triggerTransitionEnd(e){e.dispatchEvent(new Event(Vi))},Gi=function isElement(e){return!(!e||"object"!==bootstrap_esm_typeof(e))&&("undefined"!==typeof e.jquery&&(e=e[0]),"undefined"!==typeof e.nodeType)},Yi=function getElement(e){return Gi(e)?e.jquery?e[0]:e:"string"===typeof e&&e.length>0?Mi(e):null},Ji=function typeCheckConfig(e,t,n){Object.keys(n).forEach((function(r){var i=n[r],d=t[r],h=d&&Gi(d)?"element":function toType(e){return null===e||void 0===e?"".concat(e):{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}(d);if(!new RegExp(i).test(h))throw new TypeError("".concat(e.toUpperCase(),': Option "').concat(r,'" provided type "').concat(h,'" but expected type "').concat(i,'".'))}))},Xi=function isVisible(e){return!(!Gi(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility")},$i=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")))},Zi=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},eo=function noop(){},no=function reflow(e){return e.offsetHeight},ro=function getjQuery(){var jQuery=window.jQuery;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},io=[],oo=function isRTL(){return"rtl"===document.documentElement.dir},ao=function defineJQueryPlugin(e){!function onDOMContentLoaded(e){"loading"===document.readyState?(io.length||document.addEventListener("DOMContentLoaded",(function(){io.forEach((function(e){return e()}))})),io.push(e)):e()}((function(){var $=ro();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}}}))},so=function execute(e){"function"===typeof e&&e()},co=function executeAfterTransition(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(n){var r=5,i=Hi(t)+r,d=!1,h=function handler(n){n.target===t&&(d=!0,t.removeEventListener(Vi,handler),so(e))};t.addEventListener(Vi,h),setTimeout((function(){d||Wi(t)}),i)}else so(e)},uo=function getNextActiveElement(e,t,n,r){var i=e.indexOf(t);if(-1===i)return e[!n&&r?e.length-1:0];var d=e.length;return i+=n?1:-1,r&&(i=(i+d)%d),e[Math.max(0,Math.min(i,d-1))]},lo=/[^.]*(?=\..*)\.|.*/,fo=/\..*/,po=/::\d+$/,ho={},mo=1,yo={mouseenter:"mouseover",mouseleave:"mouseout"},vo=/^(mouseenter|mouseleave)/i,go=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 bootstrap_esm_getUidEvent(e,t){return t&&"".concat(t,"::").concat(mo++)||e.uidEvent||mo++}function bootstrap_esm_getEvent(e){var t=bootstrap_esm_getUidEvent(e);return e.uidEvent=t,ho[t]=ho[t]||{},ho[t]}function bootstrap_esm_findHandler(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=Object.keys(e),i=0,d=r.length;i<d;i++){var h=e[r[i]];if(h.originalHandler===t&&h.delegationSelector===n)return h}return null}function bootstrap_esm_normalizeParams(e,t,n){var r="string"===typeof t,i=r?n:t,d=bootstrap_esm_getTypeEvent(e);return go.has(d)||(d=e),[r,i,d]}function bootstrap_esm_addHandler(e,t,n,r,i){if("string"===typeof t&&e){if(n||(n=r,r=null),vo.test(t)){var d=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=d(r):n=d(n)}var h=bootstrap_esm_slicedToArray(bootstrap_esm_normalizeParams(t,n,r),3),y=h[0],v=h[1],g=h[2],_=bootstrap_esm_getEvent(e),b=_[g]||(_[g]={}),w=bootstrap_esm_findHandler(b,v,y?n:null);if(w)w.oneOff=w.oneOff&&i;else{var E=bootstrap_esm_getUidEvent(v,t.replace(lo,"")),S=y?function bootstrap_esm_bootstrapDelegationHandler(e,t,n){return function handler(r){for(var i=e.querySelectorAll(t),d=r.target;d&&d!==this;d=d.parentNode)for(var h=i.length;h--;)if(i[h]===d)return r.delegateTarget=d,handler.oneOff&&_o.off(e,r.type,t,n),n.apply(d,[r]);return null}}(e,n,r):function bootstrap_esm_bootstrapHandler(e,t){return function handler(n){return n.delegateTarget=e,handler.oneOff&&_o.off(e,n.type,t),t.apply(e,[n])}}(e,n);S.delegationSelector=y?n:null,S.originalHandler=v,S.oneOff=i,S.uidEvent=E,b[E]=S,e.addEventListener(g,S,y)}}}function bootstrap_esm_removeHandler(e,t,n,r,i){var d=bootstrap_esm_findHandler(t[n],r,i);d&&(e.removeEventListener(n,d,Boolean(i)),delete t[n][d.uidEvent])}function bootstrap_esm_getTypeEvent(e){return e=e.replace(fo,""),yo[e]||e}var _o={on:function on(e,t,n,r){bootstrap_esm_addHandler(e,t,n,r,!1)},one:function one(e,t,n,r){bootstrap_esm_addHandler(e,t,n,r,!0)},off:function off(e,t,n,r){if("string"===typeof t&&e){var i=bootstrap_esm_slicedToArray(bootstrap_esm_normalizeParams(t,n,r),3),d=i[0],h=i[1],y=i[2],v=y!==t,g=bootstrap_esm_getEvent(e),_=t.startsWith(".");if("undefined"===typeof h){_&&Object.keys(g).forEach((function(n){!function bootstrap_esm_removeNamespacedHandlers(e,t,n,r){var i=t[n]||{};Object.keys(i).forEach((function(d){if(d.includes(r)){var h=i[d];bootstrap_esm_removeHandler(e,t,n,h.originalHandler,h.delegationSelector)}}))}(e,g,n,t.slice(1))}));var b=g[y]||{};Object.keys(b).forEach((function(n){var r=n.replace(po,"");if(!v||t.includes(r)){var i=b[n];bootstrap_esm_removeHandler(e,g,y,i.originalHandler,i.delegationSelector)}}))}else{if(!g||!g[y])return;bootstrap_esm_removeHandler(e,g,y,h,d?n:null)}}},trigger:function trigger(e,t,n){if("string"!==typeof t||!e)return null;var r,$=ro(),i=bootstrap_esm_getTypeEvent(t),d=t!==i,h=go.has(i),y=!0,v=!0,g=!1,_=null;return d&&$&&(r=$.Event(t,n),$(e).trigger(r),y=!r.isPropagationStopped(),v=!r.isImmediatePropagationStopped(),g=r.isDefaultPrevented()),h?(_=document.createEvent("HTMLEvents")).initEvent(i,y,!0):_=new CustomEvent(t,{bubbles:y,cancelable:!0}),"undefined"!==typeof n&&Object.keys(n).forEach((function(e){Object.defineProperty(_,e,{get:function get(){return n[e]}})})),g&&_.preventDefault(),v&&e.dispatchEvent(_),_.defaultPrevented&&"undefined"!==typeof r&&r.preventDefault(),_}},bo=new Map,wo=function set(e,t,n){bo.has(e)||bo.set(e,new Map);var r=bo.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],"."))},Eo=function get(e,t){return bo.has(e)&&bo.get(e).get(t)||null},So=function remove(e,t){if(bo.has(e)){var n=bo.get(e);n.delete(t),0===n.size&&bo.delete(e)}},ko=function(){function BaseComponent(e){bootstrap_esm_classCallCheck(this,BaseComponent),(e=Yi(e))&&(this._element=e,wo(this._element,this.constructor.DATA_KEY,this))}return bootstrap_esm_createClass(BaseComponent,[{key:"dispose",value:function dispose(){var e=this;So(this._element,this.constructor.DATA_KEY),_o.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];co(e,t,n)}}],[{key:"getInstance",value:function getInstance(e){return Eo(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.0.2"}},{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}(),Oo=".".concat("bs.alert"),Co="close".concat(Oo),To="closed".concat(Oo),Ao="click".concat(Oo).concat(".data-api"),xo=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(e){var t=e?this._getRootElement(e):this._element,n=this._triggerCloseEvent(t);null===n||n.defaultPrevented||this._removeElement(t)}},{key:"_getRootElement",value:function _getRootElement(e){return zi(e)||e.closest(".".concat("alert"))}},{key:"_triggerCloseEvent",value:function _triggerCloseEvent(e){return _o.trigger(e,Co)}},{key:"_removeElement",value:function _removeElement(e){var t=this;e.classList.remove("show");var n=e.classList.contains("fade");this._queueCallback((function(){return t._destroyElement(e)}),e,n)}},{key:"_destroyElement",value:function _destroyElement(e){e.remove(),_o.trigger(e,To)}}],[{key:"NAME",get:function get(){return"alert"}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Alert.getOrCreateInstance(this);"close"===e&&t[e](this)}))}},{key:"handleDismiss",value:function handleDismiss(e){return function(t){t&&t.preventDefault(),e.close(this)}}}]),Alert}(ko);_o.on(document,Ao,'[data-bs-dismiss="alert"]',xo.handleDismiss(new xo)),ao(xo);var Io=".".concat("bs.button"),Do='[data-bs-toggle="button"]',Lo="click".concat(Io).concat(".data-api"),No=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}(ko);function bootstrap_esm_normalizeData(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function bootstrap_esm_normalizeDataKey(e){return e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}))}_o.on(document,Lo,Do,(function(e){e.preventDefault();var t=e.target.closest(Do);No.getOrCreateInstance(t).toggle()})),ao(No);var Po={setDataAttribute:function setDataAttribute(e,t,n){e.setAttribute("data-bs-".concat(bootstrap_esm_normalizeDataKey(t)),n)},removeDataAttribute:function removeDataAttribute(e,t){e.removeAttribute("data-bs-".concat(bootstrap_esm_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]=bootstrap_esm_normalizeData(e.dataset[n])})),t},getDataAttribute:function getDataAttribute(e,t){return bootstrap_esm_normalizeData(e.getAttribute("data-bs-".concat(bootstrap_esm_normalizeDataKey(t))))},offset:function offset(e){var t=e.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},position:function position(e){return{top:e.offsetTop,left:e.offsetLeft}}},jo="carousel",Mo=".".concat("bs.carousel"),Ro=".data-api",Fo={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},qo={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Qo="next",Vo="prev",Bo="left",Ko="right",Uo=(bootstrap_esm_defineProperty(Di={},"ArrowLeft",Ko),bootstrap_esm_defineProperty(Di,"ArrowRight",Bo),Di),zo="slide".concat(Mo),Ho="slid".concat(Mo),Wo="keydown".concat(Mo),Go="mouseenter".concat(Mo),Yo="mouseleave".concat(Mo),Jo="touchstart".concat(Mo),Xo="touchmove".concat(Mo),$o="touchend".concat(Mo),Zo="pointerdown".concat(Mo),ea="pointerup".concat(Mo),ta="dragstart".concat(Mo),na="load".concat(Mo).concat(Ro),ra="click".concat(Mo).concat(Ro),ia="active",oa=".active.carousel-item",aa="touch",sa=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=Mi(".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(Qo)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&Xi(this._element)&&this.next()}},{key:"prev",value:function prev(){this._slide(Vo)}},{key:"pause",value:function pause(e){e||(this._isPaused=!0),Mi(".carousel-item-next, .carousel-item-prev",this._element)&&(Wi(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=Mi(oa,this._element);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)_o.one(this._element,Ho,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?Qo:Vo;this._slide(r,this._items[e])}}},{key:"_getConfig",value:function _getConfig(e){return e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},Fo),Po.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)?e:{}),Ji(jo,e,qo),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?Ko:Bo)}}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;this._config.keyboard&&_o.on(this._element,Wo,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(_o.on(this._element,Go,(function(t){return e.pause(t)})),_o.on(this._element,Yo,(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!==aa?e._pointerEvent||(e.touchStartX=t.touches[0].clientX):e.touchStartX=t.clientX},n=function end(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==aa||(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))};ji(".carousel-item img",this._element).forEach((function(e){_o.on(e,ta,(function(e){return e.preventDefault()}))})),this._pointerEvent?(_o.on(this._element,Zo,(function(e){return t(e)})),_o.on(this._element,ea,(function(e){return n(e)})),this._element.classList.add("pointer-event")):(_o.on(this._element,Jo,(function(e){return t(e)})),_o.on(this._element,Xo,(function(t){return function move(t){e.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-e.touchStartX}(t)})),_o.on(this._element,$o,(function(e){return n(e)})))}},{key:"_keydown",value:function _keydown(e){if(!/input|textarea/i.test(e.target.tagName)){var t=Uo[e.key];t&&(e.preventDefault(),this._slide(t))}}},{key:"_getItemIndex",value:function _getItemIndex(e){return this._items=e&&e.parentNode?ji(".carousel-item",e.parentNode):[],this._items.indexOf(e)}},{key:"_getItemByOrder",value:function _getItemByOrder(e,t){var n=e===Qo;return uo(this._items,t,n,this._config.wrap)}},{key:"_triggerSlideEvent",value:function _triggerSlideEvent(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(Mi(oa,this._element));return _o.trigger(this._element,zo,{relatedTarget:e,direction:t,from:r,to:n})}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(e){if(this._indicatorsElement){var t=Mi(".active",this._indicatorsElement);t.classList.remove(ia),t.removeAttribute("aria-current");for(var n=ji("[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(ia),n[r].setAttribute("aria-current","true");break}}}},{key:"_updateInterval",value:function _updateInterval(){var e=this._activeElement||Mi(oa,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=Mi(oa,this._element),d=this._getItemIndex(i),h=t||this._getItemByOrder(r,i),y=this._getItemIndex(h),v=Boolean(this._interval),g=r===Qo,_=g?"carousel-item-start":"carousel-item-end",b=g?"carousel-item-next":"carousel-item-prev",w=this._orderToDirection(r);if(h&&h.classList.contains(ia))this._isSliding=!1;else if(!this._isSliding&&!this._triggerSlideEvent(h,w).defaultPrevented&&i&&h){this._isSliding=!0,v&&this.pause(),this._setActiveIndicatorElement(h),this._activeElement=h;var E=function triggerSlidEvent(){_o.trigger(n._element,Ho,{relatedTarget:h,direction:w,from:d,to:y})};if(this._element.classList.contains("slide")){h.classList.add(b),no(h),i.classList.add(_),h.classList.add(_);this._queueCallback((function completeCallBack(){h.classList.remove(_,b),h.classList.add(ia),i.classList.remove(ia,b,_),n._isSliding=!1,setTimeout(E,0)}),i,!0)}else i.classList.remove(ia),h.classList.add(ia),this._isSliding=!1,E();v&&this.cycle()}}},{key:"_directionToOrder",value:function _directionToOrder(e){return[Ko,Bo].includes(e)?oo()?e===Bo?Vo:Qo:e===Bo?Qo:Vo:e}},{key:"_orderToDirection",value:function _orderToDirection(e){return[Qo,Vo].includes(e)?oo()?e===Vo?Bo:Ko:e===Vo?Ko:Bo:e}}],[{key:"Default",get:function get(){return Fo}},{key:"NAME",get:function get(){return jo}},{key:"carouselInterface",value:function carouselInterface(e,t){var n=Carousel.getOrCreateInstance(e,t),r=n._config;"object"===bootstrap_esm_typeof(t)&&(r=bootstrap_esm_objectSpread(bootstrap_esm_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=zi(this);if(t&&t.classList.contains("carousel")){var n=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},Po.getDataAttributes(t)),Po.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}(ko);_o.on(document,ra,"[data-bs-slide], [data-bs-slide-to]",sa.dataApiClickHandler),_o.on(window,na,(function(){for(var e=ji('[data-bs-ride="carousel"]'),t=0,n=e.length;t<n;t++)sa.carouselInterface(e[t],sa.getInstance(e[t]))})),ao(sa);var ca="collapse",ua="bs.collapse",la=".".concat(ua),fa={toggle:!0,parent:""},pa={toggle:"boolean",parent:"(string|element)"},da="show".concat(la),ha="shown".concat(la),ma="hide".concat(la),ya="hidden".concat(la),va="click".concat(la).concat(".data-api"),ga="show",_a="collapse",ba="collapsing",wa="collapsed",Ea="width",Sa='[data-bs-toggle="collapse"]',ka=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=ji("".concat(Sa,'[href="#').concat(r._element.id,'"],')+"".concat(Sa,'[data-bs-target="#').concat(r._element.id,'"]'));for(var i=ji(Sa),d=0,h=i.length;d<h;d++){var y=i[d],v=Ui(y),g=ji(v).filter((function(e){return e===r._element}));null!==v&&g.length&&(r._selector=v,r._triggerArray.push(y))}return r._parent=r._config.parent?r._getParent():null,r._config.parent||r._addAriaAndCollapsedClass(r._element,r._triggerArray),r._config.toggle&&r.toggle(),r}return bootstrap_esm_createClass(Collapse,[{key:"toggle",value:function toggle(){this._element.classList.contains(ga)?this.hide():this.show()}},{key:"show",value:function show(){var e=this;if(!this._isTransitioning&&!this._element.classList.contains(ga)){var t,n;this._parent&&0===(t=ji(".show, .collapsing",this._parent).filter((function(t){return"string"===typeof e._config.parent?t.getAttribute("data-bs-parent")===e._config.parent:t.classList.contains(_a)}))).length&&(t=null);var r=Mi(this._selector);if(t){var i=t.find((function(e){return r!==e}));if((n=i?Collapse.getInstance(i):null)&&n._isTransitioning)return}if(!_o.trigger(this._element,da).defaultPrevented){t&&t.forEach((function(e){r!==e&&Collapse.collapseInterface(e,"hide"),n||wo(e,ua,null)}));var d=this._getDimension();this._element.classList.remove(_a),this._element.classList.add(ba),this._element.style[d]=0,this._triggerArray.length&&this._triggerArray.forEach((function(e){e.classList.remove(wa),e.setAttribute("aria-expanded",!0)})),this.setTransitioning(!0);var h=d[0].toUpperCase()+d.slice(1),y="scroll".concat(h);this._queueCallback((function complete(){e._element.classList.remove(ba),e._element.classList.add(_a,ga),e._element.style[d]="",e.setTransitioning(!1),_o.trigger(e._element,ha)}),this._element,!0),this._element.style[d]="".concat(this._element[y],"px")}}}},{key:"hide",value:function hide(){var e=this;if(!this._isTransitioning&&this._element.classList.contains(ga)&&!_o.trigger(this._element,ma).defaultPrevented){var t=this._getDimension();this._element.style[t]="".concat(this._element.getBoundingClientRect()[t],"px"),no(this._element),this._element.classList.add(ba),this._element.classList.remove(_a,ga);var n=this._triggerArray.length;if(n>0)for(var r=0;r<n;r++){var i=this._triggerArray[r],d=zi(i);d&&!d.classList.contains(ga)&&(i.classList.add(wa),i.setAttribute("aria-expanded",!1))}this.setTransitioning(!0);this._element.style[t]="",this._queueCallback((function complete(){e.setTransitioning(!1),e._element.classList.remove(ba),e._element.classList.add(_a),_o.trigger(e._element,ya)}),this._element,!0)}}},{key:"setTransitioning",value:function setTransitioning(e){this._isTransitioning=e}},{key:"_getConfig",value:function _getConfig(e){return(e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},fa),e)).toggle=Boolean(e.toggle),Ji(ca,e,pa),e}},{key:"_getDimension",value:function _getDimension(){return this._element.classList.contains(Ea)?Ea:"height"}},{key:"_getParent",value:function _getParent(){var e=this,t=this._config.parent;t=Yi(t);var n="".concat(Sa,'[data-bs-parent="').concat(t,'"]');return ji(n,t).forEach((function(t){var n=zi(t);e._addAriaAndCollapsedClass(n,[t])})),t}},{key:"_addAriaAndCollapsedClass",value:function _addAriaAndCollapsedClass(e,t){if(e&&t.length){var n=e.classList.contains(ga);t.forEach((function(e){n?e.classList.remove(wa):e.classList.add(wa),e.setAttribute("aria-expanded",n)}))}}}],[{key:"Default",get:function get(){return fa}},{key:"NAME",get:function get(){return ca}},{key:"collapseInterface",value:function collapseInterface(e,t){var n=Collapse.getInstance(e),r=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},fa),Po.getDataAttributes(e)),"object"===bootstrap_esm_typeof(t)&&t?t:{});if(!n&&r.toggle&&"string"===typeof t&&/show|hide/.test(t)&&(r.toggle=!1),n||(n=new Collapse(e,r)),"string"===typeof t){if("undefined"===typeof n[t])throw new TypeError('No method named "'.concat(t,'"'));n[t]()}}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){Collapse.collapseInterface(this,e)}))}}]),Collapse}(ko);_o.on(document,va,Sa,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();var t=Po.getDataAttributes(this),n=Ui(this);ji(n).forEach((function(e){var n,r=ka.getInstance(e);r?(null===r._parent&&"string"===typeof t.parent&&(r._config.parent=t.parent,r._parent=r._getParent()),n="toggle"):n=t,ka.collapseInterface(e,n)}))})),ao(ka);var Oa="dropdown",Ca=".".concat("bs.dropdown"),Ta=".data-api",Aa="Escape",xa="Space",Ia="ArrowUp",Da="ArrowDown",La=new RegExp("".concat(Ia,"|").concat(Da,"|").concat(Aa)),Na="hide".concat(Ca),Pa="hidden".concat(Ca),ja="show".concat(Ca),Ma="shown".concat(Ca),Ra="click".concat(Ca),Fa="click".concat(Ca).concat(Ta),qa="keydown".concat(Ca).concat(Ta),Qa="keyup".concat(Ca).concat(Ta),Va="show",Ba='[data-bs-toggle="dropdown"]',Ka=".dropdown-menu",Ua=oo()?"top-end":"top-start",za=oo()?"top-start":"top-end",Ha=oo()?"bottom-end":"bottom-start",Wa=oo()?"bottom-start":"bottom-end",Ga=oo()?"left-start":"right-start",Ya=oo()?"right-start":"left-start",Ja={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},Xa={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"},$a=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._addEventListeners(),r}return bootstrap_esm_createClass(Dropdown,[{key:"toggle",value:function toggle(){$i(this._element)||(this._element.classList.contains(Va)?this.hide():this.show())}},{key:"show",value:function show(){if(!$i(this._element)&&!this._menu.classList.contains(Va)){var t=Dropdown.getParentFromElement(this._element),n={relatedTarget:this._element};if(!_o.trigger(this._element,ja,n).defaultPrevented){if(this._inNavbar)Po.setDataAttribute(this._menu,"popper","none");else{if("undefined"===typeof e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var r=this._element;"parent"===this._config.reference?r=t:Gi(this._config.reference)?r=Yi(this._config.reference):"object"===bootstrap_esm_typeof(this._config.reference)&&(r=this._config.reference);var i=this._getPopperConfig(),d=i.modifiers.find((function(e){return"applyStyles"===e.name&&!1===e.enabled}));this._popper=Ni(r,this._menu,i),d&&Po.setDataAttribute(this._menu,"popper","static")}var h;if("ontouchstart"in document.documentElement&&!t.closest(".navbar-nav"))(h=[]).concat.apply(h,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){return _o.on(e,"mouseover",eo)}));this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle(Va),this._element.classList.toggle(Va),_o.trigger(this._element,Ma,n)}}}},{key:"hide",value:function hide(){if(!$i(this._element)&&this._menu.classList.contains(Va)){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:"_addEventListeners",value:function _addEventListeners(){var e=this;_o.on(this._element,Ra,(function(t){t.preventDefault(),e.toggle()}))}},{key:"_completeHide",value:function _completeHide(e){if(!_o.trigger(this._element,Na,e).defaultPrevented){var t;if("ontouchstart"in document.documentElement)(t=[]).concat.apply(t,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){return _o.off(e,"mouseover",eo)}));this._popper&&this._popper.destroy(),this._menu.classList.remove(Va),this._element.classList.remove(Va),this._element.setAttribute("aria-expanded","false"),Po.removeDataAttribute(this._menu,"popper"),_o.trigger(this._element,Pa,e)}}},{key:"_getConfig",value:function _getConfig(e){if(e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},this.constructor.Default),Po.getDataAttributes(this._element)),e),Ji(Oa,e,this.constructor.DefaultType),"object"===bootstrap_esm_typeof(e.reference)&&!Gi(e.reference)&&"function"!==typeof e.reference.getBoundingClientRect)throw new TypeError("".concat(Oa.toUpperCase(),': Option "reference" provided type "object" without a required "getBoundingClientRect" method.'));return e}},{key:"_getMenuElement",value:function _getMenuElement(){return Qi(this._element,Ka)[0]}},{key:"_getPlacement",value:function _getPlacement(){var e=this._element.parentNode;if(e.classList.contains("dropend"))return Ga;if(e.classList.contains("dropstart"))return Ya;var t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?za:Ua:t?Wa:Ha}},{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}]),bootstrap_esm_objectSpread(bootstrap_esm_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=ji(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(Xi);r.length&&uo(r,n,t===Da,!r.includes(n)).focus()}}],[{key:"Default",get:function get(){return Ja}},{key:"DefaultType",get:function get(){return Xa}},{key:"NAME",get:function get(){return Oa}},{key:"dropdownInterface",value:function dropdownInterface(e,t){var n=Dropdown.getOrCreateInstance(e,t);if("string"===typeof t){if("undefined"===typeof n[t])throw new TypeError('No method named "'.concat(t,'"'));n[t]()}}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){Dropdown.dropdownInterface(this,e)}))}},{key:"clearMenus",value:function clearMenus(e){if(!e||2!==e.button&&("keyup"!==e.type||"Tab"===e.key))for(var t=ji(Ba),n=0,r=t.length;n<r;n++){var i=Dropdown.getInstance(t[n]);if(i&&!1!==i._config.autoClose&&i._element.classList.contains(Va)){var d={relatedTarget:i._element};if(e){var h=e.composedPath(),y=h.includes(i._menu);if(h.includes(i._element)||"inside"===i._config.autoClose&&!y||"outside"===i._config.autoClose&&y)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&&(d.clickEvent=e)}i._completeHide(d)}}}},{key:"getParentFromElement",value:function getParentFromElement(e){return zi(e)||e.parentNode}},{key:"dataApiKeydownHandler",value:function dataApiKeydownHandler(e){var t=this;if(!(/input|textarea/i.test(e.target.tagName)?e.key===xa||e.key!==Aa&&(e.key!==Da&&e.key!==Ia||e.target.closest(Ka)):!La.test(e.key))){var n=this.classList.contains(Va);if((n||e.key!==Aa)&&(e.preventDefault(),e.stopPropagation(),!$i(this))){var r=function getToggleButton(){return t.matches(Ba)?t:qi(t,Ba)[0]};return e.key===Aa?(r().focus(),void Dropdown.clearMenus()):e.key===Ia||e.key===Da?(n||r().click(),void Dropdown.getInstance(r())._selectMenuItem(e)):void(n&&e.key!==xa||Dropdown.clearMenus())}}}}]),Dropdown}(ko);_o.on(document,qa,Ba,$a.dataApiKeydownHandler),_o.on(document,qa,Ka,$a.dataApiKeydownHandler),_o.on(document,Fa,$a.clearMenus),_o.on(document,Qa,$a.clearMenus),_o.on(document,Fa,Ba,(function(e){e.preventDefault(),$a.dropdownInterface(this)})),ao($a);var Za=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",es=".sticky-top",ts=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(Za,"paddingRight",(function(t){return t+e})),this._setElementAttributes(es,"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 d=window.getComputedStyle(e)[t];e.style[t]="".concat(n(Number.parseFloat(d)),"px")}}))}},{key:"reset",value:function reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(Za,"paddingRight"),this._resetElementAttributes(es,"marginRight")}},{key:"_saveInitialAttribute",value:function _saveInitialAttribute(e,t){var n=e.style[t];n&&Po.setDataAttribute(e,t,n)}},{key:"_resetElementAttributes",value:function _resetElementAttributes(e,t){this._applyManipulationCallback(e,(function manipulationCallBack(e){var n=Po.getDataAttribute(e,t);"undefined"===typeof n?e.style.removeProperty(t):(Po.removeDataAttribute(e,t),e.style[t]=n)}))}},{key:"_applyManipulationCallback",value:function _applyManipulationCallback(e,t){Gi(e)?t(e):ji(e,this._element).forEach(t)}},{key:"isOverflowing",value:function isOverflowing(){return this.getWidth()>0}}]),ScrollBarHelper}(),ns={isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},rs={isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},is="backdrop",os="show",as="mousedown.bs.".concat(is),ss=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&&no(this._getElement()),this._getElement().classList.add(os),this._emulateAnimation((function(){so(e)}))):so(e)}},{key:"hide",value:function hide(e){var t=this;this._config.isVisible?(this._getElement().classList.remove(os),this._emulateAnimation((function(){t.dispose(),so(e)}))):so(e)}},{key:"_getElement",value:function _getElement(){if(!this._element){var e=document.createElement("div");e.className="modal-backdrop",this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}},{key:"_getConfig",value:function _getConfig(e){return(e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},ns),"object"===bootstrap_esm_typeof(e)?e:{})).rootElement=Yi(e.rootElement),Ji(is,e,rs),e}},{key:"_append",value:function _append(){var e=this;this._isAppended||(this._config.rootElement.appendChild(this._getElement()),_o.on(this._getElement(),as,(function(){so(e._config.clickCallback)})),this._isAppended=!0)}},{key:"dispose",value:function dispose(){this._isAppended&&(_o.off(this._element,as),this._element.remove(),this._isAppended=!1)}},{key:"_emulateAnimation",value:function _emulateAnimation(e){co(e,this._getElement(),this._config.isAnimated)}}]),Backdrop}(),cs="modal",ls=".".concat("bs.modal"),fs="Escape",ps={backdrop:!0,keyboard:!0,focus:!0},ds={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},hs="hide".concat(ls),ms="hidePrevented".concat(ls),ys="hidden".concat(ls),vs="show".concat(ls),gs="shown".concat(ls),_s="focusin".concat(ls),bs="resize".concat(ls),ws="click.dismiss".concat(ls),Es="keydown.dismiss".concat(ls),Ss="mouseup.dismiss".concat(ls),ks="mousedown.dismiss".concat(ls),Os="click".concat(ls).concat(".data-api"),Cs="modal-open",Ts="show",As="modal-static",xs=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=Mi(".modal-dialog",r._element),r._backdrop=r._initializeBackDrop(),r._isShown=!1,r._ignoreBackdropClick=!1,r._isTransitioning=!1,r._scrollBar=new ts,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||(_o.trigger(this._element,vs,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(Cs),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),_o.on(this._element,ws,'[data-bs-dismiss="modal"]',(function(e){return t.hide(e)})),_o.on(this._dialog,ks,(function(){_o.one(t._element,Ss,(function(e){e.target===t._element&&(t._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return t._showElement(e)}))))}},{key:"hide",value:function hide(e){var t=this;if((e&&["A","AREA"].includes(e.target.tagName)&&e.preventDefault(),this._isShown&&!this._isTransitioning)&&!_o.trigger(this._element,hs).defaultPrevented){this._isShown=!1;var n=this._isAnimated();n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),_o.off(document,_s),this._element.classList.remove(Ts),_o.off(this._element,ws),_o.off(this._dialog,ks),this._queueCallback((function(){return t._hideModal()}),this._element,n)}}},{key:"dispose",value:function dispose(){[window,this._dialog].forEach((function(e){return _o.off(e,ls)})),this._backdrop.dispose(),_get(bootstrap_esm_getPrototypeOf(Modal.prototype),"dispose",this).call(this),_o.off(document,_s)}},{key:"handleUpdate",value:function handleUpdate(){this._adjustDialog()}},{key:"_initializeBackDrop",value:function _initializeBackDrop(){return new ss({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}},{key:"_getConfig",value:function _getConfig(e){return e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},ps),Po.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)?e:{}),Ji(cs,e,ds),e}},{key:"_showElement",value:function _showElement(e){var t=this,n=this._isAnimated(),r=Mi(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(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&&no(this._element),this._element.classList.add(Ts),this._config.focus&&this._enforceFocus();this._queueCallback((function transitionComplete(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,_o.trigger(t._element,gs,{relatedTarget:e})}),this._dialog,n)}},{key:"_enforceFocus",value:function _enforceFocus(){var e=this;_o.off(document,_s),_o.on(document,_s,(function(t){document===t.target||e._element===t.target||e._element.contains(t.target)||e._element.focus()}))}},{key:"_setEscapeEvent",value:function _setEscapeEvent(){var e=this;this._isShown?_o.on(this._element,Es,(function(t){e._config.keyboard&&t.key===fs?(t.preventDefault(),e.hide()):e._config.keyboard||t.key!==fs||e._triggerBackdropTransition()})):_o.off(this._element,Es)}},{key:"_setResizeEvent",value:function _setResizeEvent(){var e=this;this._isShown?_o.on(window,bs,(function(){return e._adjustDialog()})):_o.off(window,bs)}},{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(Cs),e._resetAdjustments(),e._scrollBar.reset(),_o.trigger(e._element,ys)}))}},{key:"_showBackdrop",value:function _showBackdrop(e){var t=this;_o.on(this._element,ws,(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(!_o.trigger(this._element,ms).defaultPrevented){var t=this._element,n=t.classList,r=t.scrollHeight,i=t.style,d=r>document.documentElement.clientHeight;!d&&"hidden"===i.overflowY||n.contains(As)||(d||(i.overflowY="hidden"),n.add(As),this._queueCallback((function(){n.remove(As),d||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&&!oo()||n&&!e&&oo())&&(this._element.style.paddingLeft="".concat(t,"px")),(n&&!e&&!oo()||!n&&e&&oo())&&(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 ps}},{key:"NAME",get:function get(){return cs}},{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}(ko);_o.on(document,Os,'[data-bs-toggle="modal"]',(function(e){var t=this,n=zi(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),_o.one(n,vs,(function(e){e.defaultPrevented||_o.one(n,ys,(function(){Xi(t)&&t.focus()}))})),xs.getOrCreateInstance(n).toggle(this)})),ao(xs);var Is="offcanvas",Ds=".".concat("bs.offcanvas"),Ls=".data-api",Ns="load".concat(Ds).concat(Ls),Ps={backdrop:!0,keyboard:!0,scroll:!1},js={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},Ms="show",Rs=".offcanvas.show",Fs="show".concat(Ds),qs="shown".concat(Ds),Qs="hide".concat(Ds),Vs="hidden".concat(Ds),Bs="focusin".concat(Ds),Ks="click".concat(Ds).concat(Ls),Us="click.dismiss".concat(Ds),zs="keydown.dismiss".concat(Ds),Hs=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._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&&!_o.trigger(this._element,Fs,{relatedTarget:e}).defaultPrevented){this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||((new ts).hide(),this._enforceFocusOnElement(this._element)),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ms);this._queueCallback((function completeCallBack(){_o.trigger(t._element,qs,{relatedTarget:e})}),this._element,!0)}}},{key:"hide",value:function hide(){var e=this;if(this._isShown&&!_o.trigger(this._element,Qs).defaultPrevented){_o.off(document,Bs),this._element.blur(),this._isShown=!1,this._element.classList.remove(Ms),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 ts).reset(),_o.trigger(e._element,Vs)}),this._element,!0)}}},{key:"dispose",value:function dispose(){this._backdrop.dispose(),_get(bootstrap_esm_getPrototypeOf(Offcanvas.prototype),"dispose",this).call(this),_o.off(document,Bs)}},{key:"_getConfig",value:function _getConfig(e){return e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},Ps),Po.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)?e:{}),Ji(Is,e,js),e}},{key:"_initializeBackDrop",value:function _initializeBackDrop(){var e=this;return new ss({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:function clickCallback(){return e.hide()}})}},{key:"_enforceFocusOnElement",value:function _enforceFocusOnElement(e){_o.off(document,Bs),_o.on(document,Bs,(function(t){document===t.target||e===t.target||e.contains(t.target)||e.focus()})),e.focus()}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;_o.on(this._element,Us,'[data-bs-dismiss="offcanvas"]',(function(){return e.hide()})),_o.on(this._element,zs,(function(t){e._config.keyboard&&"Escape"===t.key&&e.hide()}))}}],[{key:"NAME",get:function get(){return Is}},{key:"Default",get:function get(){return Ps}},{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}(ko);_o.on(document,Ks,'[data-bs-toggle="offcanvas"]',(function(e){var t=this,n=zi(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),!$i(this)){_o.one(n,Vs,(function(){Xi(t)&&t.focus()}));var r=Mi(Rs);r&&r!==n&&Hs.getInstance(r).hide(),Hs.getOrCreateInstance(n).toggle(this)}})),_o.on(window,Ns,(function(){return ji(Rs).forEach((function(e){return Hs.getOrCreateInstance(e).show()}))})),ao(Hs);var Ws=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Gs=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,Ys=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Js={"*":["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"),d=Object.keys(t),h=(r=[]).concat.apply(r,bootstrap_esm_toConsumableArray(i.body.querySelectorAll("*"))),y=function _loop(e,n){var r,i=h[e],y=i.nodeName.toLowerCase();if(!d.includes(y))return i.remove(),"continue";var v=(r=[]).concat.apply(r,bootstrap_esm_toConsumableArray(i.attributes)),g=[].concat(t["*"]||[],t[y]||[]);v.forEach((function(e){(function allowedAttribute(e,t){var n=e.nodeName.toLowerCase();if(t.includes(n))return!Ws.has(n)||Boolean(Gs.test(e.nodeValue)||Ys.test(e.nodeValue));for(var r=t.filter((function(e){return e instanceof RegExp})),i=0,d=r.length;i<d;i++)if(r[i].test(n))return!0;return!1})(e,g)||i.removeAttribute(e.nodeName)}))},v=0,g=h.length;v<g;v++)y(v);return i.body.innerHTML}var Xs="tooltip",$s=".".concat("bs.tooltip"),Zs="bs-tooltip",ec=new RegExp("(^|\\s)".concat(Zs,"\\S+"),"g"),tc=new Set(["sanitize","allowList","sanitizeFn"]),nc={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)"},rc={AUTO:"auto",TOP:"top",RIGHT:oo()?"left":"right",BOTTOM:"bottom",LEFT:oo()?"right":"left"},ic={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:Js,popperConfig:null},oc={HIDE:"hide".concat($s),HIDDEN:"hidden".concat($s),SHOW:"show".concat($s),SHOWN:"shown".concat($s),INSERTED:"inserted".concat($s),CLICK:"click".concat($s),FOCUSIN:"focusin".concat($s),FOCUSOUT:"focusout".concat($s),MOUSEENTER:"mouseenter".concat($s),MOUSELEAVE:"mouseleave".concat($s)},ac="fade",sc="modal",cc="show",uc="show",lc="out",fc="hover",pc="focus",dc=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(cc))return void this._leave(null,this);this._enter(null,this)}}},{key:"dispose",value:function dispose(){clearTimeout(this._timeout),_o.off(this._element.closest(".".concat(sc)),"hide.bs.modal",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=_o.trigger(this._element,this.constructor.Event.SHOW),n=Zi(this._element),r=null===n?this._element.ownerDocument.documentElement.contains(this._element):n.contains(this._element);if(!t.defaultPrevented&&r){var i=this.getTipElement(),d=Bi(this.constructor.NAME);i.setAttribute("id",d),this._element.setAttribute("aria-describedby",d),this.setContent(),this._config.animation&&i.classList.add(ac);var h="function"===typeof this._config.placement?this._config.placement.call(this,i,this._element):this._config.placement,y=this._getAttachment(h);this._addAttachmentClass(y);var v=this._config.container;wo(i,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(v.appendChild(i),_o.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Ni(this._element,i,this._getPopperConfig(y)),i.classList.add(cc);var g,_,b="function"===typeof this._config.customClass?this._config.customClass():this._config.customClass;if(b)(g=i.classList).add.apply(g,bootstrap_esm_toConsumableArray(b.split(" ")));if("ontouchstart"in document.documentElement)(_=[]).concat.apply(_,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){_o.on(e,"mouseover",eo)}));var w=this.tip.classList.contains(ac);this._queueCallback((function complete(){var t=e._hoverState;e._hoverState=null,_o.trigger(e._element,e.constructor.Event.SHOWN),t===lc&&e._leave(null,e)}),this.tip,w)}}}},{key:"hide",value:function hide(){var e=this;if(this._popper){var t=this.getTipElement();if(!_o.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented){var n;if(t.classList.remove(cc),"ontouchstart"in document.documentElement)(n=[]).concat.apply(n,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){return _o.off(e,"mouseover",eo)}));this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;var r=this.tip.classList.contains(ac);this._queueCallback((function complete(){e._isWithActiveTrigger()||(e._hoverState!==uc&&t.remove(),e._cleanTipClass(),e._element.removeAttribute("aria-describedby"),_o.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");return e.innerHTML=this._config.template,this.tip=e.children[0],this.tip}},{key:"setContent",value:function setContent(){var e=this.getTipElement();this.setElementContent(Mi(".tooltip-inner",e),this.getTitle()),e.classList.remove(ac,cc)}},{key:"setElementContent",value:function setElementContent(e,t){if(null!==e)return Gi(t)?(t=Yi(t),void(this._config.html?t.parentNode!==e&&(e.innerHTML="",e.appendChild(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");return e||(e="function"===typeof this._config.title?this._config.title.call(this._element):this._config.title),e}},{key:"updateAttachment",value:function updateAttachment(e){return"right"===e?"end":"left"===e?"start":e}},{key:"_initializeOnDelegatedTarget",value:function _initializeOnDelegatedTarget(e,t){var n=this.constructor.DATA_KEY;return(t=t||Eo(e.delegateTarget,n))||(t=new this.constructor(e.delegateTarget,this._getDelegateConfig()),wo(e.delegateTarget,n,t)),t}},{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(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 bootstrap_esm_objectSpread(bootstrap_esm_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(Zs,"-").concat(this.updateAttachment(e)))}},{key:"_getAttachment",value:function _getAttachment(e){return rc[e.toUpperCase()]}},{key:"_setListeners",value:function _setListeners(){var e=this;this._config.trigger.split(" ").forEach((function(t){if("click"===t)_o.on(e._element,e.constructor.Event.CLICK,e._config.selector,(function(t){return e.toggle(t)}));else if("manual"!==t){var n=t===fc?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,r=t===fc?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;_o.on(e._element,n,e._config.selector,(function(t){return e._enter(t)})),_o.on(e._element,r,e._config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e._element&&e.hide()},_o.on(this._element.closest(".".concat(sc)),"hide.bs.modal",this._hideModalHandler),this._config.selector?this._config=bootstrap_esm_objectSpread(bootstrap_esm_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?pc:fc]=!0),t.getTipElement().classList.contains(cc)||t._hoverState===uc?t._hoverState=uc:(clearTimeout(t._timeout),t._hoverState=uc,t._config.delay&&t._config.delay.show?t._timeout=setTimeout((function(){t._hoverState===uc&&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?pc:fc]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=lc,t._config.delay&&t._config.delay.hide?t._timeout=setTimeout((function(){t._hoverState===lc&&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=Po.getDataAttributes(this._element);return Object.keys(t).forEach((function(e){tc.has(e)&&delete t[e]})),(e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},this.constructor.Default),t),"object"===bootstrap_esm_typeof(e)&&e?e:{})).container=!1===e.container?document.body:Yi(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()),Ji(Xs,e,this.constructor.DefaultType),e.sanitize&&(e.template=sanitizeHtml(e.template,e.allowList,e.sanitizeFn)),e}},{key:"_getDelegateConfig",value:function _getDelegateConfig(){var e={};if(this._config)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=e.getAttribute("class").match(ec);null!==t&&t.length>0&&t.map((function(e){return e.trim()})).forEach((function(t){return e.classList.remove(t)}))}},{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 ic}},{key:"NAME",get:function get(){return Xs}},{key:"Event",get:function get(){return oc}},{key:"DefaultType",get:function get(){return nc}},{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}(ko);ao(dc);var hc=".".concat("bs.popover"),mc="bs-popover",yc=new RegExp("(^|\\s)".concat(mc,"\\S+"),"g"),vc=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},dc.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>'}),gc=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},dc.DefaultType),{},{content:"(string|element|function)"}),_c={HIDE:"hide".concat(hc),HIDDEN:"hidden".concat(hc),SHOW:"show".concat(hc),SHOWN:"shown".concat(hc),INSERTED:"inserted".concat(hc),CLICK:"click".concat(hc),FOCUSIN:"focusin".concat(hc),FOCUSOUT:"focusout".concat(hc),MOUSEENTER:"mouseenter".concat(hc),MOUSELEAVE:"mouseleave".concat(hc)},bc=".popover-header",wc=".popover-body";ao(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:"getTipElement",value:function getTipElement(){return this.tip||(this.tip=_get(bootstrap_esm_getPrototypeOf(Popover.prototype),"getTipElement",this).call(this),this.getTitle()||Mi(bc,this.tip).remove(),this._getContent()||Mi(wc,this.tip).remove()),this.tip}},{key:"setContent",value:function setContent(){var e=this.getTipElement();this.setElementContent(Mi(bc,e),this.getTitle());var t=this._getContent();"function"===typeof t&&(t=t.call(this._element)),this.setElementContent(Mi(wc,e),t),e.classList.remove("fade","show")}},{key:"_addAttachmentClass",value:function _addAttachmentClass(e){this.getTipElement().classList.add("".concat(mc,"-").concat(this.updateAttachment(e)))}},{key:"_getContent",value:function _getContent(){return this._element.getAttribute("data-bs-content")||this._config.content}},{key:"_cleanTipClass",value:function _cleanTipClass(){var e=this.getTipElement(),t=e.getAttribute("class").match(yc);null!==t&&t.length>0&&t.map((function(e){return e.trim()})).forEach((function(t){return e.classList.remove(t)}))}}],[{key:"Default",get:function get(){return vc}},{key:"NAME",get:function get(){return"popover"}},{key:"Event",get:function get(){return _c}},{key:"DefaultType",get:function get(){return gc}},{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}(dc));var Ec="scrollspy",Sc=".".concat("bs.scrollspy"),kc={offset:10,method:"auto",target:""},Oc={offset:"number",method:"string",target:"(string|element)"},Cc="activate".concat(Sc),Tc="scroll".concat(Sc),Ac="load".concat(Sc).concat(".data-api"),xc="dropdown-item",Ic="active",Dc=".nav-link",Lc=".list-group-item",Nc="position",Pc=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._selector="".concat(r._config.target," ").concat(Dc,", ").concat(r._config.target," ").concat(Lc,", ").concat(r._config.target," .").concat(xc),r._offsets=[],r._targets=[],r._activeTarget=null,r._scrollHeight=0,_o.on(r._scrollElement,Tc,(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":Nc,n="auto"===this._config.method?t:this._config.method,r=n===Nc?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),ji(this._selector).map((function(e){var t=Ui(e),i=t?Mi(t):null;if(i){var d=i.getBoundingClientRect();if(d.width||d.height)return[Po[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(){_o.off(this._scrollElement,Sc),_get(bootstrap_esm_getPrototypeOf(ScrollSpy.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function _getConfig(e){if("string"!==typeof(e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},kc),Po.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)&&e?e:{})).target&&Gi(e.target)){var t=e.target.id;t||(t=Bi(Ec),e.target.id=t),e.target="#".concat(t)}return Ji(Ec,e,Oc),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=this._selector.split(",").map((function(t){return"".concat(t,'[data-bs-target="').concat(e,'"],').concat(t,'[href="').concat(e,'"]')})),n=Mi(t.join(","));n.classList.contains(xc)?(Mi(".dropdown-toggle",n.closest(".dropdown")).classList.add(Ic),n.classList.add(Ic)):(n.classList.add(Ic),Fi(n,".nav, .list-group").forEach((function(e){qi(e,"".concat(Dc,", ").concat(Lc)).forEach((function(e){return e.classList.add(Ic)})),qi(e,".nav-item").forEach((function(e){Ri(e,Dc).forEach((function(e){return e.classList.add(Ic)}))}))}))),_o.trigger(this._scrollElement,Cc,{relatedTarget:e})}},{key:"_clear",value:function _clear(){ji(this._selector).filter((function(e){return e.classList.contains(Ic)})).forEach((function(e){return e.classList.remove(Ic)}))}}],[{key:"Default",get:function get(){return kc}},{key:"NAME",get:function get(){return Ec}},{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}(ko);_o.on(window,Ac,(function(){ji('[data-bs-spy="scroll"]').forEach((function(e){return new Pc(e)}))})),ao(Pc);var jc=".".concat("bs.tab"),Mc="hide".concat(jc),Rc="hidden".concat(jc),Fc="show".concat(jc),qc="shown".concat(jc),Qc="click".concat(jc).concat(".data-api"),Vc="active",Bc="fade",Kc="show",Uc=".active",zc=":scope > li > .active",Hc=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(Vc)){var t,n=zi(this._element),r=this._element.closest(".nav, .list-group");if(r){var i="UL"===r.nodeName||"OL"===r.nodeName?zc:Uc;t=(t=ji(i,r))[t.length-1]}var d=t?_o.trigger(t,Mc,{relatedTarget:this._element}):null;if(!(_o.trigger(this._element,Fc,{relatedTarget:t}).defaultPrevented||null!==d&&d.defaultPrevented)){this._activate(this._element,r);var h=function complete(){_o.trigger(t,Rc,{relatedTarget:e._element}),_o.trigger(e._element,qc,{relatedTarget:t})};n?this._activate(n,n.parentNode,h):h()}}}},{key:"_activate",value:function _activate(e,t,n){var r=this,i=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?Ri(t,Uc):ji(zc,t))[0],d=n&&i&&i.classList.contains(Bc),h=function complete(){return r._transitionComplete(e,i,n)};i&&d?(i.classList.remove(Kc),this._queueCallback(h,e,!0)):h()}},{key:"_transitionComplete",value:function _transitionComplete(e,t,n){if(t){t.classList.remove(Vc);var r=Mi(":scope > .dropdown-menu .active",t.parentNode);r&&r.classList.remove(Vc),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}e.classList.add(Vc),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),no(e),e.classList.contains(Bc)&&e.classList.add(Kc);var i=e.parentNode;if(i&&"LI"===i.nodeName&&(i=i.parentNode),i&&i.classList.contains("dropdown-menu")){var d=e.closest(".dropdown");d&&ji(".dropdown-toggle",d).forEach((function(e){return e.classList.add(Vc)})),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}(ko);_o.on(document,Qc,'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(e){(["A","AREA"].includes(this.tagName)&&e.preventDefault(),$i(this))||Hc.getOrCreateInstance(this).show()})),ao(Hc);var Wc="toast",Gc=".".concat("bs.toast"),Yc="click.dismiss".concat(Gc),Jc="mouseover".concat(Gc),Xc="mouseout".concat(Gc),$c="focusin".concat(Gc),Zc="focusout".concat(Gc),eu="hide".concat(Gc),tu="hidden".concat(Gc),nu="show".concat(Gc),ru="shown".concat(Gc),iu="hide",ou="show",au="showing",su={animation:"boolean",autohide:"boolean",delay:"number"},cu={animation:!0,autohide:!0,delay:5e3};function _main_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)}}ao(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(!_o.trigger(this._element,nu).defaultPrevented){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(iu),no(this._element),this._element.classList.add(au),this._queueCallback((function complete(){e._element.classList.remove(au),e._element.classList.add(ou),_o.trigger(e._element,ru),e._maybeScheduleHide()}),this._element,this._config.animation)}}},{key:"hide",value:function hide(){var e=this;if(this._element.classList.contains(ou)&&!_o.trigger(this._element,eu).defaultPrevented){this._element.classList.remove(ou),this._queueCallback((function complete(){e._element.classList.add(iu),_o.trigger(e._element,tu)}),this._element,this._config.animation)}}},{key:"dispose",value:function dispose(){this._clearTimeout(),this._element.classList.contains(ou)&&this._element.classList.remove(ou),_get(bootstrap_esm_getPrototypeOf(Toast.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function _getConfig(e){return e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},cu),Po.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)&&e?e:{}),Ji(Wc,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;_o.on(this._element,Yc,'[data-bs-dismiss="toast"]',(function(){return e.hide()})),_o.on(this._element,Jc,(function(t){return e._onInteraction(t,!0)})),_o.on(this._element,Xc,(function(t){return e._onInteraction(t,!1)})),_o.on(this._element,$c,(function(t){return e._onInteraction(t,!0)})),_o.on(this._element,Zc,(function(t){return e._onInteraction(t,!1)}))}},{key:"_clearTimeout",value:function _clearTimeout(){clearTimeout(this._timeout),this._timeout=null}}],[{key:"DefaultType",get:function get(){return su}},{key:"Default",get:function get(){return cu}},{key:"NAME",get:function get(){return Wc}},{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}(ko));!function(e){var n="_main.links",r=document,i=r.body,d=function(){function MainUILinks(){!function _main_links_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,MainUILinks),function _main_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 _main_links_createClass(e,t,n){return t&&_main_links_defineProperties(e.prototype,t),n&&_main_links_defineProperties(e,n),e}(MainUILinks,null,[{key:"init",value:function init(){var t=this;t.GraphPage=null,console.log("".concat(n,": init")),t.loaded(),e.addEventListener("popstate",(function(e){t.popState(e)}))}},{key:"loaded",value:function loaded(){var e=this;r.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){r.querySelectorAll("[data-".concat(this.name,'-id="').concat(e,'"]')).forEach((function(e){e.classList.add("active")}))}},{key:"reset",value:function reset(){r.activeElement.blur(),r.querySelectorAll(".graphql-page,.nav-item").forEach((function(e){e.classList.remove("active","loading")}))}},{key:"popState",value:function popState(r){var i=this;if(h.show(),r.state&&r.state.page){console.log("".concat(n,": [popstate] load"));var d=JSON.parse(r.state.page);d.current=null,d.popstate=!0,i.reset(),i.setActiveLinks(r.state.link),i.GraphPage||(console.log("".concat(n,": [popstate] GraphPage is missing. Have to render it first")),i.GraphPage=ReactDOM.render(React.createElement(Br,null),document.getElementById("MainContent"))),i.GraphPage.setState(d),h.hide(),window.dispatchEvent(new Event(t.AJAX))}else r.state&&r.state.landing?(console.log("".concat(n,": [popstate] go to landing")),e.location.href=r.state.landing):(console.warn("".concat(n,": [popstate] state is missing")),console.log(r),h.hide())}},{key:"loadClick",value:function loadClick(d){console.groupCollapsed("".concat(n,": load on click")),d.preventDefault();var y=MainUILinks,v=d.currentTarget;h.show(),y.reset(),v.classList.add("loading"),v.classList.remove("response-404","response-500","response-523"),i.classList.add("ajax-loading");var g=(0,Kr.getParents)(v,".collapse");g.length&&g.forEach((function(e){var t=ka.getInstance(e);t&&t.hide()})),y.GraphPage||(y.GraphPage=ReactDOM.render(React.createElement(Br,null),document.getElementById("MainContent")));var _=v.getAttribute("href")||v.getAttribute("data-href");y.GraphPage.state.current=v,y.GraphPage.load(_).then((function(e){i.classList.remove("ajax-loading"),v.classList.remove("loading"),v.classList.add("active"),r.loading_apollo_link=null,y.GraphPage.state.Link&&(window.history.pushState({page:JSON.stringify(y.GraphPage.state),link:v.getAttribute("data-".concat(y.name,"-id"))},y.GraphPage.state.Title,y.GraphPage.state.Link),y.setActiveLinks(y.GraphPage.state.Link)),h.hide(),window.dispatchEvent(new Event(t.AJAX)),console.groupEnd("".concat(n,": load on click"))})).catch((function(t){console.error("".concat(n,": loading error")),console.log(t),v.classList.add("error","response-".concat(t.status)),console.groupEnd("".concat(n,": load on click")),console.log("".concat(n,": reloading page ").concat(_)),e.location.href=_}))}}]),MainUILinks}();e.addEventListener("".concat(t.LOADED),(function(){d.init()})),e.addEventListener("".concat(t.AJAX),(function(){d.loaded()}))}(window);var uu=__webpack_require__(163),lu=(function(e){var n,r="_main.online",i=document,d=i.body,h=i.querySelector('meta[name="ping"]'),y=!1,v=function UPDATE_ONLINE_STATUS(i){y||(y=!0,i?(d.classList.contains("is-offline")?(console.log("".concat(r,": back Online")),e.dispatchEvent(new Event(t.BACKONLINE))):(console.log("".concat(r,": Online")),e.dispatchEvent(new Event(t.ONLINE))),d.classList.add("is-online"),d.classList.remove("is-offline"),h&&!n&&(console.log("".concat(r,": SESSION_PING is active")),n=setInterval(_,3e5))):(console.log("".concat(r,": Offline")),d.classList.add("is-offline"),d.classList.remove("is-online"),clearInterval(n),n=null,e.dispatchEvent(new Event(t.OFFLINE))),y=!1)},g=!1,_=function SESSION_PING(){if(!g&&!d.classList.contains("is-offline")){var e=h.getAttribute("content");console.log("".concat(r,": session ping")),g=!0,uu.post(e,{}).then((function(e){g=!1,v(!0)})).catch((function(e){console.error(e),console.warn("".concat(r,": SESSION_PING failed")),g=!1,v(!1)}))}},b=function navigatorStateUpdate(){"undefined"!==typeof navigator.onLine&&(navigator.onLine?v(!0):v(!1))};e.addEventListener("".concat(t.OFFLINE),(function(){v(!1)})),e.addEventListener("".concat(t.ONLINE),(function(){v(!0)})),e.addEventListener("".concat(t.LOADED),b),e.addEventListener("".concat(t.AJAX),b)}(window),__webpack_require__(163));(function(e){var n="_main.lazy-images",r=document,i=(r.body,document.querySelector('meta[name="api_static_domain"]')),d=i?i.getAttribute("content"):"".concat(window.location.protocol,"//").concat(window.location.host);console.log("".concat(n," [static url]: ").concat(d));var h=function loadLazyImages(){console.log("".concat(n,": Load lazy images")),r.querySelectorAll("[data-lazy-src]").forEach((function(e){e.classList.remove("empty"),e.classList.add("loading"),e.classList.remove("loading__network-error");var t=e.getAttribute("data-lazy-src"),r=t.startsWith("http")?t:d+t;lu.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(t){if(t.response){switch(t.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(n," [").concat(r,"]: ").concat(msg))}else t.request?(msg="No response received",console.error("".concat(n," [").concat(r,"]: ").concat(msg))):console.error("".concat(n," [").concat(r,"]: ").concat(t.message));e.classList.remove("loading"),e.classList.add("loading__network-error"),e.classList.add("empty")}))}))};e.addEventListener("".concat(t.LODEDANDREADY),h),e.addEventListener("".concat(t.AJAX),h)})(window),function(e){var n="_layout",r=document;r.body;e.addEventListener("".concat(t.LOADED),(function(){!function init_fonts(){console.log("".concat(n,": init_fonts"));var e=r.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",r.getElementsByTagName("head")[0].appendChild(e)}()}))}(window);function importAll(e){return e.keys().map(e)}importAll(__webpack_require__(310)),importAll(__webpack_require__(761))}()}();