contentful 11.5.4 → 11.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3571,7 +3571,7 @@ var contentful = (function (exports) {
|
|
|
3571
3571
|
return Promise.reject(reason);
|
|
3572
3572
|
});
|
|
3573
3573
|
}
|
|
3574
|
-
var VERSION = "1.8.
|
|
3574
|
+
var VERSION = "1.8.2";
|
|
3575
3575
|
var validators$1 = {};
|
|
3576
3576
|
|
|
3577
3577
|
// eslint-disable-next-line func-names
|
|
@@ -10089,7 +10089,7 @@ var contentful = (function (exports) {
|
|
|
10089
10089
|
http.defaults.baseURL = getGlobalOptions().environmentBaseUrl;
|
|
10090
10090
|
}
|
|
10091
10091
|
return {
|
|
10092
|
-
version: "11.5.
|
|
10092
|
+
version: "11.5.5",
|
|
10093
10093
|
getSpace: getSpace,
|
|
10094
10094
|
getContentType: getContentType,
|
|
10095
10095
|
getContentTypes: getContentTypes,
|
|
@@ -10216,7 +10216,7 @@ var contentful = (function (exports) {
|
|
|
10216
10216
|
environment: 'master'
|
|
10217
10217
|
};
|
|
10218
10218
|
var config = Object.assign(Object.assign({}, defaultConfig), params);
|
|
10219
|
-
var userAgentHeader = getUserAgentHeader("contentful.js/".concat("11.5.
|
|
10219
|
+
var userAgentHeader = getUserAgentHeader("contentful.js/".concat("11.5.5"), config.application, config.integration);
|
|
10220
10220
|
config.headers = Object.assign(Object.assign({}, config.headers), {
|
|
10221
10221
|
'Content-Type': 'application/vnd.contentful.delivery.v1+json',
|
|
10222
10222
|
'X-Contentful-User-Agent': userAgentHeader
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var contentful=function(e){"use strict";function t(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function r(e){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=e.apply(r,n);function u(e){t(a,o,i,u,c,"next",e)}function c(e){t(a,o,i,u,c,"throw",e)}u(void 0)}))}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function i(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}function a(e){return function(e){if(Array.isArray(e))return n(e)}(e)||o(e)||i(e)||function(){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 u(e){if(Array.isArray(e))return e}function c(){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 s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function f(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function d(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e,t){return u(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||i(e,t)||c()}function v(e,t){this.v=e,this.k=t}function b(e){return function(){return new m(e.apply(this,arguments))}}function m(e){var t,r;function n(t,r){try{var i=e[t](r),a=i.value,u=a instanceof v;Promise.resolve(u?a.v:a).then((function(r){if(u){var c="return"===t?"return":"next";if(!a.k||r.done)return n(c,r);r=e[c](r).value}o(i.done?"return":"normal",r)}),(function(e){n("throw",e)}))}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,o){return new Promise((function(i,a){var u={key:e,arg:o,resolve:i,reject:a,next:null};r?r=r.next=u:(t=r=u,n(e,o))}))},"function"!=typeof e.return&&(this.return=void 0)}function g(e){return new v(e,0)}function w(e){var t={},r=!1;function n(t,n){return r=!0,n=new Promise((function(r){r(e[t](n))})),{done:!1,value:new v(n,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return r?(r=!1,e):n("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(r)throw r=!1,e;return n("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return r?(r=!1,e):n("return",e)}),t}function O(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function S(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&1===Object.keys(e).length?e.default:e}m.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},m.prototype.next=function(e){return this._invoke("next",e)},m.prototype.throw=function(e){return this._invoke("throw",e)},m.prototype.return=function(e){return this._invoke("return",e)};var x={exports:{}},j={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(j);var A=j.exports;!function(e){var t=A.default;function r(){e.exports=r=function(){return o},e.exports.__esModule=!0,e.exports.default=e.exports;var n,o={},i=Object.prototype,a=i.hasOwnProperty,u=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function p(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(n){p=function(e,t,r){return e[t]=r}}function y(e,t,r,n){var o=Object.create((t&&t.prototype instanceof w?t:w).prototype);return u(o,"_invoke",{value:T(e,r,new U(n||[]))}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}o.wrap=y;var h="suspendedStart",v="suspendedYield",b="executing",m="completed",g={};function w(){}function O(){}function S(){}var x={};p(x,s,(function(){return this}));var j=Object.getPrototypeOf,A=j&&j(j(I([])));A&&A!==i&&a.call(A,s)&&(x=A);var E=S.prototype=w.prototype=Object.create(x);function k(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,r){function n(o,i,u,c){var s=d(e[o],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==t(f)&&a.call(f,"__await")?r.resolve(f.__await).then((function(e){n("next",e,u,c)}),(function(e){n("throw",e,u,c)})):r.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return n("throw",e,u,c)}))}c(s.arg)}var o;u(this,"_invoke",{value:function(e,t){function i(){return new r((function(r,o){n(e,t,r,o)}))}return o=o?o.then(i,i):i()}})}function T(e,t,r){var o=h;return function(i,a){if(o===b)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:n,done:!0}}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var c=R(u,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=b;var s=d(e,t,r);if("normal"===s.type){if(o=r.done?m:v,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=m,r.method="throw",r.arg=s.arg)}}}function R(e,t){var r=t.method,o=e.iterator[r];if(o===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=n,R(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function U(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function t(){for(;++o<e.length;)if(a.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=n,t.done=!0,t};return i.next=i}}throw new TypeError(t(e)+" is not iterable")}return O.prototype=S,u(E,"constructor",{value:S,configurable:!0}),u(S,"constructor",{value:O,configurable:!0}),O.displayName=p(S,f,"GeneratorFunction"),o.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===O||"GeneratorFunction"===(t.displayName||t.name))},o.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,p(e,f,"GeneratorFunction")),e.prototype=Object.create(E),e},o.awrap=function(e){return{__await:e}},k(P.prototype),p(P.prototype,l,(function(){return this})),o.AsyncIterator=P,o.async=function(e,t,r,n,i){void 0===i&&(i=Promise);var a=new P(y(e,t,r,n),i);return o.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(E),p(E,f,"Generator"),p(E,s,(function(){return this})),p(E,"toString",(function(){return"[object Generator]"})),o.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},o.values=I,U.prototype={constructor:U,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return u.type="throw",u.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),s=a.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:I(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}},o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(x);var E=(0,x.exports)(),k=E;try{regeneratorRuntime=E}catch(e){"object"===("undefined"==typeof globalThis?"undefined":s(globalThis))?globalThis.regeneratorRuntime=E:Function("r","regeneratorRuntime = r")(E)}var P=O(k);function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _(e){var t,r,n,o=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);o--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new U(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function U(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return U=function(e){this.s=e,this.n=e.next},U.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new U(e)}function I(e,t){return function(){return e.apply(t,arguments)}}var C,N=Object.prototype.toString,B=Object.getPrototypeOf,D=(C=Object.create(null),function(e){var t=N.call(e);return C[t]||(C[t]=t.slice(8,-1).toLowerCase())}),F=function(e){return e=e.toLowerCase(),function(t){return D(t)===e}},M=function(e){return function(t){return s(t)===e}},q=Array.isArray,W=M("undefined"),z=F("ArrayBuffer"),H=M("string"),K=M("function"),G=M("number"),J=function(e){return null!==e&&"object"===s(e)},V=function(e){if("object"!==D(e))return!1;var t=B(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},$=F("Date"),Q=F("File"),X=F("Blob"),Y=F("FileList"),Z=F("URLSearchParams"),ee=h(["ReadableStream","Request","Response","Headers"].map(F),4),te=ee[0],re=ee[1],ne=ee[2],oe=ee[3];function ie(e,t){var r,n,o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,i=void 0!==o&&o;if(null!=e)if("object"!==s(e)&&(e=[e]),q(e))for(r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else{var a,u=i?Object.getOwnPropertyNames(e):Object.keys(e),c=u.length;for(r=0;r<c;r++)t.call(null,e[a=u[r]],a,e)}}function ae(e,t){t=t.toLowerCase();for(var r,n=Object.keys(e),o=n.length;o-- >0;)if(t===(r=n[o]).toLowerCase())return r;return null}var ue,ce,se,le,fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,pe=function(e){return!W(e)&&e!==fe},ye=function(e){return function(t){return e&&t instanceof e}}("undefined"!=typeof Uint8Array&&B(Uint8Array)),de=F("HTMLFormElement"),he=function(){var e=Object.prototype.hasOwnProperty;return function(t,r){return e.call(t,r)}}(),ve=F("RegExp"),be=function(e,t){var r=Object.getOwnPropertyDescriptors(e),n={};ie(r,(function(r,o){var i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)},me=F("AsyncFunction"),ge=(ue="function"==typeof setImmediate,ce=K(fe.postMessage),ue?setImmediate:ce?(se="axios@".concat(Math.random()),le=[],fe.addEventListener("message",(function(e){e.source===fe&&e.data===se&&le.length&&le.shift()()}),!1),function(e){le.push(e),fe.postMessage(se,"*")}):function(e){return setTimeout(e)}),we="undefined"!=typeof queueMicrotask?queueMicrotask.bind(fe):"undefined"!=typeof process&&process.nextTick||ge,Oe={isArray:q,isArrayBuffer:z,isBuffer:function(e){return null!==e&&!W(e)&&null!==e.constructor&&!W(e.constructor)&&K(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t;return e&&("function"==typeof FormData&&e instanceof FormData||K(e.append)&&("formdata"===(t=D(e))||"object"===t&&K(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&z(e.buffer)},isString:H,isNumber:G,isBoolean:function(e){return!0===e||!1===e},isObject:J,isPlainObject:V,isReadableStream:te,isRequest:re,isResponse:ne,isHeaders:oe,isUndefined:W,isDate:$,isFile:Q,isBlob:X,isRegExp:ve,isFunction:K,isStream:function(e){return J(e)&&K(e.pipe)},isURLSearchParams:Z,isTypedArray:ye,isFileList:Y,forEach:ie,merge:function e(){for(var t=(pe(this)&&this||{}).caseless,r={},n=function(n,o){var i=t&&ae(r,o)||o;r[i]=V(r[i])&&V(n)?e(r[i],n):V(n)?e({},n):q(n)?n.slice():n},o=0,i=arguments.length;o<i;o++)arguments[o]&&ie(arguments[o],n);return r},extend:function(e,t,r){return ie(t,(function(t,n){e[n]=r&&K(t)?I(t,r):t}),{allOwnKeys:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r,n){var o,i,a,u={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],n&&!n(a,e,t)||u[a]||(t[a]=e[a],u[a]=!0);e=!1!==r&&B(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:D,kindOfTest:F,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length);var n=e.indexOf(t,r-=t.length);return-1!==n&&n===r},toArray:function(e){if(!e)return null;if(q(e))return e;var t=e.length;if(!G(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},forEachEntry:function(e,t){for(var r,n=(e&&e[Symbol.iterator]).call(e);(r=n.next())&&!r.done;){var o=r.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var r,n=[];null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:de,hasOwnProperty:he,hasOwnProp:he,reduceDescriptors:be,freezeMethods:function(e){be(e,(function(t,r){if(K(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;K(e[r])&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:function(e,t){var r={},n=function(e){e.forEach((function(e){r[e]=!0}))};return q(e)?n(e):n(String(e).split(t)),r},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))},noop:function(){},toFiniteNumber:function(e,t){return null!=e&&Number.isFinite(e=+e)?e:t},findKey:ae,global:fe,isContextDefined:pe,isSpecCompliantForm:function(e){return!!(e&&K(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var t=new Array(10),r=function(e,n){if(J(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;var o=q(e)?[]:{};return ie(e,(function(e,t){var i=r(e,n+1);!W(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:me,isThenable:function(e){return e&&(J(e)||K(e))&&K(e.then)&&K(e.catch)},setImmediate:ge,asap:we};function Se(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}Oe.inherits(Se,Error,{toJSON:function(){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:Oe.toJSONObject(this.config),code:this.code,status:this.status}}});var xe=Se.prototype,je={};function Ae(e){return Oe.isPlainObject(e)||Oe.isArray(e)}function Ee(e){return Oe.endsWith(e,"[]")?e.slice(0,-2):e}function ke(e,t,r){return e?e.concat(t).map((function(e,t){return e=Ee(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){je[e]={value:e}})),Object.defineProperties(Se,je),Object.defineProperty(xe,"isAxiosError",{value:!0}),Se.from=function(e,t,r,n,o,i){var a=Object.create(xe);return Oe.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),Se.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var Pe=Oe.toFlatObject(Oe,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Te(e,t,r){if(!Oe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var n=(r=Oe.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Oe.isUndefined(t[e])}))).metaTokens,o=r.visitor||l,i=r.dots,a=r.indexes,u=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Oe.isSpecCompliantForm(t);if(!Oe.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Oe.isDate(e))return e.toISOString();if(!u&&Oe.isBlob(e))throw new Se("Blob is not supported. Use a Buffer instead.");return Oe.isArrayBuffer(e)||Oe.isTypedArray(e)?u&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,r,o){var u=e;if(e&&!o&&"object"===s(e))if(Oe.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(Oe.isArray(e)&&function(e){return Oe.isArray(e)&&!e.some(Ae)}(e)||(Oe.isFileList(e)||Oe.endsWith(r,"[]"))&&(u=Oe.toArray(e)))return r=Ee(r),u.forEach((function(e,n){!Oe.isUndefined(e)&&null!==e&&t.append(!0===a?ke([r],n,i):null===a?r:r+"[]",c(e))})),!1;return!!Ae(e)||(t.append(ke(o,r,i),c(e)),!1)}var f=[],p=Object.assign(Pe,{defaultVisitor:l,convertValue:c,isVisitable:Ae});if(!Oe.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!Oe.isUndefined(r)){if(-1!==f.indexOf(r))throw Error("Circular reference detected in "+n.join("."));f.push(r),Oe.forEach(r,(function(r,i){!0===(!(Oe.isUndefined(r)||null===r)&&o.call(t,r,Oe.isString(i)?i.trim():i,n,p))&&e(r,n?n.concat(i):[i])})),f.pop()}}(e),t}function Re(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Le(e,t){this._pairs=[],e&&Te(e,this,t)}var _e=Le.prototype;function Ue(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ie(e,t,r){if(!t)return e;var n=r&&r.encode||Ue;Oe.isFunction(r)&&(r={serialize:r});var o,i=r&&r.serialize;if(o=i?i(t,r):Oe.isURLSearchParams(t)?t.toString():new Le(t,r).toString(n)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}_e.append=function(e,t){this._pairs.push([e,t])},_e.toString=function(e){var t=e?function(t){return e.call(this,t,Re)}:Re;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Ce=function(){return d((function e(){p(this,e),this.handlers=[]}),[{key:"use",value:function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){Oe.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}])}(),Ne={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Be={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Le,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},De="undefined"!=typeof window&&"undefined"!=typeof document,Fe="object"===("undefined"==typeof navigator?"undefined":s(navigator))&&navigator||void 0,Me=De&&(!Fe||["ReactNative","NativeScript","NS"].indexOf(Fe.product)<0),qe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,We=De&&window.location.href||"http://localhost",ze=L(L({},Object.freeze({__proto__:null,hasBrowserEnv:De,hasStandardBrowserWebWorkerEnv:qe,hasStandardBrowserEnv:Me,navigator:Fe,origin:We})),Be);function He(e){function t(e,r,n,o){var i=e[o++];if("__proto__"===i)return!0;var a=Number.isFinite(+i),u=o>=e.length;return i=!i&&Oe.isArray(n)?n.length:i,u?(n[i]=Oe.hasOwnProp(n,i)?[n[i],r]:r,!a):(n[i]&&Oe.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&Oe.isArray(n[i])&&(n[i]=function(e){var t,r,n={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)n[r=o[t]]=e[r];return n}(n[i])),!a)}if(Oe.isFormData(e)&&Oe.isFunction(e.entries)){var r={};return Oe.forEachEntry(e,(function(e,n){t(function(e){return Oe.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e),n,r,0)})),r}return null}var Ke={transitional:Ne,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var r,n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=Oe.isObject(e);if(i&&Oe.isHTMLForm(e)&&(e=new FormData(e)),Oe.isFormData(e))return o?JSON.stringify(He(e)):e;if(Oe.isArrayBuffer(e)||Oe.isBuffer(e)||Oe.isStream(e)||Oe.isFile(e)||Oe.isBlob(e)||Oe.isReadableStream(e))return e;if(Oe.isArrayBufferView(e))return e.buffer;if(Oe.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Te(e,new ze.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return ze.isNode&&Oe.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((r=Oe.isFileList(e))||n.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return Te(r?{"files[]":e}:e,a&&new a,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e){if(Oe.isString(e))try{return(0,JSON.parse)(e),Oe.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||Ke.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(Oe.isResponse(e)||Oe.isReadableStream(e))return e;if(e&&Oe.isString(e)&&(r&&!this.responseType||n)){var o=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw Se.from(e,Se.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ze.classes.FormData,Blob:ze.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Oe.forEach(["delete","get","head","post","put","patch"],(function(e){Ke.headers[e]={}}));var Ge=Ke,Je=Oe.toObjectSet(["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"]),Ve=Symbol("internals");function $e(e){return e&&String(e).trim().toLowerCase()}function Qe(e){return!1===e||null==e?e:Oe.isArray(e)?e.map(Qe):String(e)}function Xe(e,t,r,n,o){return Oe.isFunction(n)?n.call(this,t,r):(o&&(t=r),Oe.isString(t)?Oe.isString(n)?-1!==t.indexOf(n):Oe.isRegExp(n)?n.test(t):void 0:void 0)}var Ye=function(){return d((function e(t){p(this,e),t&&this.set(t)}),[{key:"set",value:function(e,t,r){var n=this;function o(e,t,r){var o=$e(t);if(!o)throw new Error("header name must be a non-empty string");var i=Oe.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=Qe(e))}var i,a,u,c,s,l=function(e,t){return Oe.forEach(e,(function(e,r){return o(e,r,t)}))};if(Oe.isPlainObject(e)||e instanceof this.constructor)l(e,t);else if(Oe.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))l((s={},(i=e)&&i.split("\n").forEach((function(e){c=e.indexOf(":"),a=e.substring(0,c).trim().toLowerCase(),u=e.substring(c+1).trim(),!a||s[a]&&Je[a]||("set-cookie"===a?s[a]?s[a].push(u):s[a]=[u]:s[a]=s[a]?s[a]+", "+u:u)})),s),t);else if(Oe.isHeaders(e)){var f,p=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,t){if(e){if("string"==typeof e)return T(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(e,t):void 0}}(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(e.entries());try{for(p.s();!(f=p.n()).done;){var y=h(f.value,2);o(y[1],y[0],r)}}catch(e){p.e(e)}finally{p.f()}}else null!=e&&o(t,e,r);return this}},{key:"get",value:function(e,t){if(e=$e(e)){var r=Oe.findKey(this,e);if(r){var n=this[r];if(!t)return n;if(!0===t)return function(e){for(var t,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=n.exec(e);)r[t[1]]=t[2];return r}(n);if(Oe.isFunction(t))return t.call(this,n,r);if(Oe.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=$e(e)){var r=Oe.findKey(this,e);return!(!r||void 0===this[r]||t&&!Xe(0,this[r],r,t))}return!1}},{key:"delete",value:function(e,t){var r=this,n=!1;function o(e){if(e=$e(e)){var o=Oe.findKey(r,e);!o||t&&!Xe(0,r[o],o,t)||(delete r[o],n=!0)}}return Oe.isArray(e)?e.forEach(o):o(e),n}},{key:"clear",value:function(e){for(var t=Object.keys(this),r=t.length,n=!1;r--;){var o=t[r];e&&!Xe(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}},{key:"normalize",value:function(e){var t=this,r={};return Oe.forEach(this,(function(n,o){var i=Oe.findKey(r,o);if(i)return t[i]=Qe(n),void delete t[o];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Qe(n),r[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=this.constructor).concat.apply(e,[this].concat(r))}},{key:"toJSON",value:function(e){var t=Object.create(null);return Oe.forEach(this,(function(r,n){null!=r&&!1!==r&&(t[n]=e&&Oe.isArray(r)?r.join(", "):r)})),t}},{key:Symbol.iterator,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(e){var t=h(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:Symbol.toStringTag,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"concat",value:function(e){for(var t=new this(e),r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((function(e){return t.set(e)})),t}},{key:"accessor",value:function(e){var t=(this[Ve]=this[Ve]={accessors:{}}).accessors,r=this.prototype;function n(e){var n=$e(e);t[n]||(function(e,t){var r=Oe.toCamelCase(" "+t);["get","set","has"].forEach((function(n){Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return Oe.isArray(e)?e.forEach(n):n(e),this}}])}();Ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Oe.reduceDescriptors(Ye.prototype,(function(e,t){var r=e.value,n=t[0].toUpperCase()+t.slice(1);return{get:function(){return r},set:function(e){this[n]=e}}})),Oe.freezeMethods(Ye);var Ze=Ye;function et(e,t){var r=this||Ge,n=t||r,o=Ze.from(n.headers),i=n.data;return Oe.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function tt(e){return!(!e||!e.__CANCEL__)}function rt(e,t,r){Se.call(this,null==e?"canceled":e,Se.ERR_CANCELED,t,r),this.name="CanceledError"}function nt(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new Se("Request failed with status code "+r.status,[Se.ERR_BAD_REQUEST,Se.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}Oe.inherits(rt,Se,{__CANCEL__:!0});var ot=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,n=0,o=function(e,t){e=e||10;var r,n=new Array(e),o=new Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(u){var c=Date.now(),s=o[a];r||(r=c),n[i]=u,o[i]=c;for(var l=a,f=0;l!==i;)f+=n[l++],l%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),!(c-r<t)){var p=s&&c-s;return p?Math.round(1e3*f/p):void 0}}}(50,250);return function(e,t){var r,n,o=0,i=1e3/t,a=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[function(){for(var e=Date.now(),t=e-o,u=arguments.length,c=new Array(u),s=0;s<u;s++)c[s]=arguments[s];t>=i?a(c,e):(r=c,n||(n=setTimeout((function(){n=null,a(r)}),i-t)))},function(){return r&&a(r)}]}((function(r){var i=r.loaded,a=r.lengthComputable?r.total:void 0,u=i-n,c=o(u);n=i;var s=f({loaded:i,total:a,progress:a?i/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:r,lengthComputable:null!=a},t?"download":"upload",!0);e(s)}),r)},it=function(e,t){var r=null!=e;return[function(n){return t[0]({lengthComputable:r,total:e,loaded:n})},t[1]]},at=function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Oe.asap((function(){return e.apply(void 0,r)}))}},ut=ze.hasStandardBrowserEnv?function(e,t){return function(r){return e.protocol===(r=new URL(r,ze.origin)).protocol&&e.host===r.host&&(t||e.port===r.port)}}(new URL(ze.origin),ze.navigator&&/(msie|trident)/i.test(ze.navigator.userAgent)):function(){return!0},ct=ze.hasStandardBrowserEnv?{write:function(e,t,r,n,o,i){var a=[e+"="+encodeURIComponent(t)];Oe.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Oe.isString(n)&&a.push("path="+n),Oe.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function st(e,t,r){var n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&n||0==r?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var lt=function(e){return e instanceof Ze?L({},e):e};function ft(e,t){t=t||{};var r={};function n(e,t,r,n){return Oe.isPlainObject(e)&&Oe.isPlainObject(t)?Oe.merge.call({caseless:n},e,t):Oe.isPlainObject(t)?Oe.merge({},t):Oe.isArray(t)?t.slice():t}function o(e,t,r,o){return Oe.isUndefined(t)?Oe.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!Oe.isUndefined(t))return n(void 0,t)}function a(e,t){return Oe.isUndefined(t)?Oe.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function u(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}var c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:function(e,t){return o(lt(e),lt(t),0,!0)}};return Oe.forEach(Object.keys(Object.assign({},e,t)),(function(n){var i=c[n]||o,a=i(e[n],t[n],n);Oe.isUndefined(a)&&i!==u||(r[n]=a)})),r}var pt,yt,dt=function(e){var t,r,n=ft({},e),s=n.data,l=n.withXSRFToken,f=n.xsrfHeaderName,p=n.xsrfCookieName,y=n.headers,d=n.auth;if(n.headers=y=Ze.from(y),n.url=Ie(st(n.baseURL,n.url),e.params,e.paramsSerializer),d&&y.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):""))),Oe.isFormData(s))if(ze.hasStandardBrowserEnv||ze.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if(!1!==(t=y.getContentType())){var h=t?t.split(";").map((function(e){return e.trim()})).filter(Boolean):[],v=u(r=h)||o(r)||i(r)||c(),b=v[0],m=v.slice(1);y.setContentType([b||"multipart/form-data"].concat(a(m)).join("; "))}if(ze.hasStandardBrowserEnv&&(l&&Oe.isFunction(l)&&(l=l(n)),l||!1!==l&&ut(n.url))){var g=f&&p&&ct.read(p);g&&y.set(f,g)}return n},ht="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){var n,o,i,a=dt(e),u=a.data,c=Ze.from(a.headers).normalize(),s=a.responseType,l=a.onUploadProgress,f=a.onDownloadProgress;function p(){o&&o(),i&&i(),a.cancelToken&&a.cancelToken.unsubscribe(n),a.signal&&a.signal.removeEventListener("abort",n)}var y=new XMLHttpRequest;function d(){if(y){var n=Ze.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());nt((function(e){t(e),p()}),(function(e){r(e),p()}),{data:s&&"text"!==s&&"json"!==s?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:e,request:y}),y=null}}if(y.open(a.method.toUpperCase(),a.url,!0),y.timeout=a.timeout,"onloadend"in y?y.onloadend=d:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(d)},y.onabort=function(){y&&(r(new Se("Request aborted",Se.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new Se("Network Error",Se.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){var t=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";a.timeoutErrorMessage&&(t=a.timeoutErrorMessage),r(new Se(t,(a.transitional||Ne).clarifyTimeoutError?Se.ETIMEDOUT:Se.ECONNABORTED,e,y)),y=null},void 0===u&&c.setContentType(null),"setRequestHeader"in y&&Oe.forEach(c.toJSON(),(function(e,t){y.setRequestHeader(t,e)})),Oe.isUndefined(a.withCredentials)||(y.withCredentials=!!a.withCredentials),s&&"json"!==s&&(y.responseType=a.responseType),f){var v=h(ot(f,!0),2);i=v[1],y.addEventListener("progress",v[0])}if(l&&y.upload){var b=h(ot(l),2);o=b[1],y.upload.addEventListener("progress",b[0]),y.upload.addEventListener("loadend",o)}(a.cancelToken||a.signal)&&(n=function(t){y&&(r(!t||t.type?new rt(null,e,y):t),y.abort(),y=null)},a.cancelToken&&a.cancelToken.subscribe(n),a.signal&&(a.signal.aborted?n():a.signal.addEventListener("abort",n)));var m,g=(m=/^([-+\w]{1,25})(:?\/\/|:)/.exec(a.url))&&m[1]||"";g&&-1===ze.protocols.indexOf(g)?r(new Se("Unsupported protocol "+g+":",Se.ERR_BAD_REQUEST,e)):y.send(u||null)}))},vt=function(e,t){var r=e=e?e.filter(Boolean):[];if(t||r.length){var n,o=new AbortController,i=function(e){if(!n){n=!0,u();var t=e instanceof Error?e:this.reason;o.abort(t instanceof Se?t:new rt(t instanceof Error?t.message:t))}},a=t&&setTimeout((function(){a=null,i(new Se("timeout ".concat(t," of ms exceeded"),Se.ETIMEDOUT))}),t),u=function(){e&&(a&&clearTimeout(a),a=null,e.forEach((function(e){e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((function(e){return e.addEventListener("abort",i)}));var c=o.signal;return c.unsubscribe=function(){return Oe.asap(u)},c}},bt=P.mark((function e(t,r){var n,o,i;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.byteLength,r&&!(n<r)){e.next=5;break}return e.next=4,t;case 4:return e.abrupt("return");case 5:o=0;case 6:if(!(o<n)){e.next=13;break}return i=o+r,e.next=10,t.slice(o,i);case 10:o=i,e.next=6;break;case 13:case"end":return e.stop()}}),e)})),mt=function(){var e=b(P.mark((function e(t,r){var n,o,i,a,u;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=!1,o=!1,e.prev=2,a=_(gt(t));case 4:return e.next=6,g(a.next());case 6:if(!(n=!(u=e.sent).done)){e.next=12;break}return e.delegateYield(w(_(bt(u.value,r))),"t0",9);case 9:n=!1,e.next=4;break;case 12:e.next=18;break;case 14:e.prev=14,e.t1=e.catch(2),o=!0,i=e.t1;case 18:if(e.prev=18,e.prev=19,!n||null==a.return){e.next=23;break}return e.next=23,g(a.return());case 23:if(e.prev=23,!o){e.next=26;break}throw i;case 26:return e.finish(23);case 27:return e.finish(18);case 28:case"end":return e.stop()}}),e,null,[[2,14,18,28],[19,,23,27]])})));return function(t,r){return e.apply(this,arguments)}}(),gt=function(){var e=b(P.mark((function e(t){var r,n,o;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t[Symbol.asyncIterator]){e.next=3;break}return e.delegateYield(w(_(t)),"t0",2);case 2:return e.abrupt("return");case 3:r=t.getReader(),e.prev=4;case 5:return e.next=7,g(r.read());case 7:if(o=(n=e.sent).value,!n.done){e.next=12;break}return e.abrupt("break",16);case 12:return e.next=14,o;case 14:e.next=5;break;case 16:return e.prev=16,e.next=19,g(r.cancel());case 19:return e.finish(16);case 20:case"end":return e.stop()}}),e,null,[[4,,16,20]])})));return function(t){return e.apply(this,arguments)}}(),wt=function(e,t,n,o){var i,a=mt(e,t),u=0,c=function(e){i||(i=!0,o&&o(e))};return new ReadableStream({pull:function(e){return r(P.mark((function t(){var r,o,i,s;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,a.next();case 3:if(o=(r=t.sent).value,!r.done){t.next=10;break}return c(),e.close(),t.abrupt("return");case 10:i=o.byteLength,n&&(s=u+=i,n(s)),e.enqueue(new Uint8Array(o)),t.next=19;break;case 15:throw t.prev=15,t.t0=t.catch(0),c(t.t0),t.t0;case 19:case"end":return t.stop()}}),t,null,[[0,15]])})))()},cancel:function(e){return c(e),a.return()}},{highWaterMark:2})},Ot="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,St=Ot&&"function"==typeof ReadableStream,xt=Ot&&("function"==typeof TextEncoder?(pt=new TextEncoder,function(e){return pt.encode(e)}):function(){var e=r(P.mark((function e(t){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Uint8Array,e.next=3,new Response(t).arrayBuffer();case 3:return e.t1=e.sent,e.abrupt("return",new e.t0(e.t1));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),jt=function(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return!!e.apply(void 0,r)}catch(e){return!1}},At=St&&jt((function(){var e=!1,t=new Request(ze.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Et=St&&jt((function(){return Oe.isReadableStream(new Response("").body)})),kt={stream:Et&&function(e){return e.body}};Ot&&(yt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((function(e){!kt[e]&&(kt[e]=Oe.isFunction(yt[e])?function(t){return t[e]()}:function(t,r){throw new Se("Response type '".concat(e,"' is not supported"),Se.ERR_NOT_SUPPORT,r)})})));var Pt=function(){var e=r(P.mark((function e(t){var r;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t){e.next=2;break}return e.abrupt("return",0);case 2:if(!Oe.isBlob(t)){e.next=4;break}return e.abrupt("return",t.size);case 4:if(!Oe.isSpecCompliantForm(t)){e.next=9;break}return r=new Request(ze.origin,{method:"POST",body:t}),e.next=8,r.arrayBuffer();case 8:case 15:return e.abrupt("return",e.sent.byteLength);case 9:if(!Oe.isArrayBufferView(t)&&!Oe.isArrayBuffer(t)){e.next=11;break}return e.abrupt("return",t.byteLength);case 11:if(Oe.isURLSearchParams(t)&&(t+=""),!Oe.isString(t)){e.next=16;break}return e.next=15,xt(t);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Tt=function(){var e=r(P.mark((function e(t,r){var n;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Oe.toFiniteNumber(t.getContentLength()),e.abrupt("return",null==n?Pt(r):n);case 2:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),Rt=Ot&&function(){var e=r(P.mark((function e(t){var r,n,o,i,a,u,c,s,l,f,p,y,d,v,b,m,g,w,O,S,x,j,A,E,k,T,R,_,U,I,C;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=dt(t),n=r.url,o=r.method,i=r.data,a=r.signal,u=r.cancelToken,c=r.timeout,s=r.onDownloadProgress,l=r.onUploadProgress,p=r.headers,d=void 0===(y=r.withCredentials)?"same-origin":y,v=r.fetchOptions,f=(f=r.responseType)?(f+"").toLowerCase():"text",b=vt([a,u&&u.toAbortSignal()],c),g=b&&b.unsubscribe&&function(){b.unsubscribe()},e.prev=4,e.t0=l&&At&&"get"!==o&&"head"!==o,!e.t0){e.next=11;break}return e.next=9,Tt(p,i);case 9:e.t1=w=e.sent,e.t0=0!==e.t1;case 11:if(!e.t0){e.next=15;break}O=new Request(n,{method:"POST",body:i,duplex:"half"}),Oe.isFormData(i)&&(S=O.headers.get("content-type"))&&p.setContentType(S),O.body&&(x=it(w,ot(at(l))),j=h(x,2),i=wt(O.body,65536,j[0],j[1]));case 15:return Oe.isString(d)||(d=d?"include":"omit"),A="credentials"in Request.prototype,m=new Request(n,L(L({},v),{},{signal:b,method:o.toUpperCase(),headers:p.normalize().toJSON(),body:i,duplex:"half",credentials:A?d:void 0})),e.next=20,fetch(m);case 20:return E=e.sent,k=Et&&("stream"===f||"response"===f),Et&&(s||k&&g)&&(T={},["status","statusText","headers"].forEach((function(e){T[e]=E[e]})),R=Oe.toFiniteNumber(E.headers.get("content-length")),_=s&&it(R,ot(at(s),!0))||[],U=h(_,2),I=U[1],E=new Response(wt(E.body,65536,U[0],(function(){I&&I(),g&&g()})),T)),f=f||"text",e.next=26,kt[Oe.findKey(kt,f)||"text"](E,t);case 26:return C=e.sent,!k&&g&&g(),e.next=30,new Promise((function(e,r){nt(e,r,{data:C,headers:Ze.from(E.headers),status:E.status,statusText:E.statusText,config:t,request:m})}));case 30:return e.abrupt("return",e.sent);case 33:if(e.prev=33,e.t2=e.catch(4),g&&g(),!e.t2||"TypeError"!==e.t2.name||!/fetch/i.test(e.t2.message)){e.next=38;break}throw Object.assign(new Se("Network Error",Se.ERR_NETWORK,t,m),{cause:e.t2.cause||e.t2});case 38:throw Se.from(e.t2,e.t2&&e.t2.code,t,m);case 39:case"end":return e.stop()}}),e,null,[[4,33]])})));return function(t){return e.apply(this,arguments)}}(),Lt={http:null,xhr:ht,fetch:Rt};Oe.forEach(Lt,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var _t=function(e){return"- ".concat(e)},Ut=function(e){return Oe.isFunction(e)||null===e||!1===e},It=function(e){for(var t,r,n=(e=Oe.isArray(e)?e:[e]).length,o={},i=0;i<n;i++){var a=void 0;if(r=t=e[i],!Ut(t)&&void 0===(r=Lt[(a=String(t)).toLowerCase()]))throw new Se("Unknown adapter '".concat(a,"'"));if(r)break;o[a||"#"+i]=r}if(!r){var u=Object.entries(o).map((function(e){var t=h(e,2),r=t[1];return"adapter ".concat(t[0]," ")+(!1===r?"is not supported by the environment":"is not available in the build")}));throw new Se("There is no suitable adapter to dispatch the request "+(n?u.length>1?"since :\n"+u.map(_t).join("\n"):" "+_t(u[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Ct(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rt(null,e)}function Nt(e){return Ct(e),e.headers=Ze.from(e.headers),e.data=et.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),It(e.adapter||Ge.adapter)(e).then((function(t){return Ct(e),t.data=et.call(e,e.transformResponse,t),t.headers=Ze.from(t.headers),t}),(function(t){return tt(t)||(Ct(e),t&&t.response&&(t.response.data=et.call(e,e.transformResponse,t.response),t.response.headers=Ze.from(t.response.headers))),Promise.reject(t)}))}var Bt={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Bt[e]=function(r){return s(r)===e||"a"+(t<1?"n ":" ")+e}}));var Dt={};Bt.transitional=function(e,t,r){return function(n,o,i){if(!1===e)throw new Se(function(e,t){return"[Axios v1.8.1] Transitional option '"+e+"'"+t+(r?". "+r:"")}(o," has been removed"+(t?" in "+t:"")),Se.ERR_DEPRECATED);return t&&!Dt[o]&&(Dt[o]=!0),!e||e(n,o,i)}},Bt.spelling=function(){return function(){return!0}};var Ft={assertOptions:function(e,t,r){if("object"!==s(e))throw new Se("options must be an object",Se.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],a=t[i];if(a){var u=e[i],c=void 0===u||a(u,i,e);if(!0!==c)throw new Se("option "+i+" must be "+c,Se.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Se("Unknown option "+i,Se.ERR_BAD_OPTION)}},validators:Bt},Mt=Ft.validators,qt=function(){return d((function e(t){p(this,e),this.defaults=t,this.interceptors={request:new Ce,response:new Ce}}),[{key:"request",value:(e=r(P.mark((function e(t,r){var n,o;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._request(t,r);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),e.t0 instanceof Error){n={},Error.captureStackTrace?Error.captureStackTrace(n):n=new Error,o=n.stack?n.stack.replace(/^.+\n/,""):"";try{e.t0.stack?o&&!String(e.t0.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(e.t0.stack+="\n"+o):e.t0.stack=o}catch(e){}}throw e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(t,r){return e.apply(this,arguments)})},{key:"_request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var r=(t=ft(this.defaults,t)).transitional,n=t.paramsSerializer,o=t.headers;void 0!==r&&Ft.assertOptions(r,{silentJSONParsing:Mt.transitional(Mt.boolean),forcedJSONParsing:Mt.transitional(Mt.boolean),clarifyTimeoutError:Mt.transitional(Mt.boolean)},!1),null!=n&&(Oe.isFunction(n)?t.paramsSerializer={serialize:n}:Ft.assertOptions(n,{encode:Mt.function,serialize:Mt.function},!0)),void 0!==t.allowAbsoluteUrls||(t.allowAbsoluteUrls=void 0===this.defaults.allowAbsoluteUrls||this.defaults.allowAbsoluteUrls),Ft.assertOptions(t,{baseUrl:Mt.spelling("baseURL"),withXsrfToken:Mt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();var i=o&&Oe.merge(o.common,o[t.method]);o&&Oe.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete o[e]})),t.headers=Ze.concat(i,o);var a=[],u=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(u=u&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));var c,s=[];this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)}));var l,f=0;if(!u){var p=[Nt.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,s),l=p.length,c=Promise.resolve(t);f<l;)c=c.then(p[f++],p[f++]);return c}l=a.length;var y=t;for(f=0;f<l;){var d=a[f++],h=a[f++];try{y=d(y)}catch(e){h.call(this,e);break}}try{c=Nt.call(this,y)}catch(e){return Promise.reject(e)}for(f=0,l=s.length;f<l;)c=c.then(s[f++],s[f++]);return c}},{key:"getUri",value:function(e){return Ie(st((e=ft(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}]);var e}();Oe.forEach(["delete","get","head","options"],(function(e){qt.prototype[e]=function(t,r){return this.request(ft(r||{},{method:e,url:t,data:(r||{}).data}))}})),Oe.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(ft(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}qt.prototype[e]=t(),qt.prototype[e+"Form"]=t(!0)}));var Wt=qt,zt=function(){function e(t){if(p(this,e),"function"!=typeof t)throw new TypeError("executor must be a function.");var r;this.promise=new Promise((function(e){r=e}));var n=this;this.promise.then((function(e){if(n._listeners){for(var t=n._listeners.length;t-- >0;)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},t((function(e,t,o){n.reason||(n.reason=new rt(e,t,o),r(n.reason))}))}return d(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}},{key:"toAbortSignal",value:function(){var e=this,t=new AbortController,r=function(e){t.abort(e)};return this.subscribe(r),t.signal.unsubscribe=function(){return e.unsubscribe(r)},t.signal}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}])}(),Ht=zt,Kt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Kt).forEach((function(e){var t=h(e,2);Kt[t[1]]=t[0]}));var Gt=Kt,Jt=function e(t){var r=new Wt(t),n=I(Wt.prototype.request,r);return Oe.extend(n,Wt.prototype,r,{allOwnKeys:!0}),Oe.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(ft(t,r))},n}(Ge);Jt.Axios=Wt,Jt.CanceledError=rt,Jt.CancelToken=Ht,Jt.isCancel=tt,Jt.VERSION="1.8.1",Jt.toFormData=Te,Jt.AxiosError=Se,Jt.Cancel=Jt.CanceledError,Jt.all=function(e){return Promise.all(e)},Jt.spread=function(e){return function(t){return e.apply(null,t)}},Jt.isAxiosError=function(e){return Oe.isObject(e)&&!0===e.isAxiosError},Jt.mergeConfig=ft,Jt.AxiosHeaders=Ze,Jt.formToJSON=function(e){return He(Oe.isHTMLForm(e)?new FormData(e):e)},Jt.getAdapter=It,Jt.HttpStatusCode=Gt,Jt.default=Jt;var Vt=O(Jt),$t=Function.prototype.toString,Qt=Object.create,Xt=Object.prototype.toString,Yt=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(e){return!!~this._keys.indexOf(e)},e.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},e.prototype.set=function(e,t){this._keys.push(e),this._values.push(t)},e}(),Zt="undefined"!=typeof WeakMap?function(){return new WeakMap}:function(){return new Yt};function er(e){if(!e)return Qt(null);var t=e.constructor;if(t===Object)return e===Object.prototype?{}:Qt(e);if(t&&~$t.call(t).indexOf("[native code]"))try{return new t}catch(e){}return Qt(e)}var tr="g"===/test/g.flags?function(e){return e.flags}:function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function rr(e){var t=Xt.call(e);return t.substring(8,t.length-1)}var nr="undefined"!=typeof Symbol?function(e){return e[Symbol.toStringTag]||rr(e)}:rr,or=Object.defineProperty,ir=Object.getOwnPropertyDescriptor,ar=Object.getOwnPropertyNames,ur=Object.getOwnPropertySymbols,cr=Object.prototype,sr=cr.hasOwnProperty,lr=cr.propertyIsEnumerable,fr="function"==typeof ur,pr=fr?function(e){return ar(e).concat(ur(e))}:ar;function yr(e,t,r){for(var n=pr(e),o=0,i=n.length,a=void 0,u=void 0;o<i;++o)if("callee"!==(a=n[o])&&"caller"!==a)if(u=ir(e,a)){u.get||u.set||(u.value=r.copier(u.value,r));try{or(t,a,u)}catch(e){t[a]=u.value}}else t[a]=r.copier(e[a],r);return t}function dr(e){return e.slice(0)}function hr(e,t){var r=new t.Constructor;return t.cache.set(e,r),e.forEach((function(e,n){r.set(n,t.copier(e,t))})),r}var vr=fr?function(e,t){var r=er(t.prototype);for(var n in t.cache.set(e,r),e)sr.call(e,n)&&(r[n]=t.copier(e[n],t));for(var o=ur(e),i=0,a=o.length,u=void 0;i<a;++i)lr.call(e,u=o[i])&&(r[u]=t.copier(e[u],t));return r}:function(e,t){var r=er(t.prototype);for(var n in t.cache.set(e,r),e)sr.call(e,n)&&(r[n]=t.copier(e[n],t));return r};function br(e,t){return new t.Constructor(e.valueOf())}function mr(e){return e}function gr(e,t){var r=new t.Constructor;return t.cache.set(e,r),e.forEach((function(e){r.add(t.copier(e,t))})),r}var wr=Array.isArray,Or=Object.assign,Sr=Object.getPrototypeOf||function(e){return e.__proto__},xr={array:function(e,t){var r=new t.Constructor;t.cache.set(e,r);for(var n=0,o=e.length;n<o;++n)r[n]=t.copier(e[n],t);return r},arrayBuffer:dr,blob:function(e){return e.slice(0,e.size,e.type)},dataView:function(e,t){return new t.Constructor(dr(e.buffer))},date:function(e,t){return new t.Constructor(e.getTime())},error:mr,map:hr,object:vr,regExp:function(e,t){var r=new t.Constructor(e.source,tr(e));return r.lastIndex=e.lastIndex,r},set:gr},jr=Or({},xr,{array:function(e,t){var r=new t.Constructor;return t.cache.set(e,r),yr(e,r,t)},map:function(e,t){return yr(e,hr(e,t),t)},object:function(e,t){var r=er(t.prototype);return t.cache.set(e,r),yr(e,r,t)},set:function(e,t){return yr(e,gr(e,t),t)}});function Ar(e){var t=function(e){return{Arguments:e.object,Array:e.array,ArrayBuffer:e.arrayBuffer,Blob:e.blob,Boolean:br,DataView:e.dataView,Date:e.date,Error:e.error,Float32Array:e.arrayBuffer,Float64Array:e.arrayBuffer,Int8Array:e.arrayBuffer,Int16Array:e.arrayBuffer,Int32Array:e.arrayBuffer,Map:e.map,Number:br,Object:e.object,Promise:mr,RegExp:e.regExp,Set:e.set,String:br,WeakMap:mr,WeakSet:mr,Uint8Array:e.arrayBuffer,Uint8ClampedArray:e.arrayBuffer,Uint16Array:e.arrayBuffer,Uint32Array:e.arrayBuffer,Uint64Array:e.arrayBuffer}}(Or({},xr,e)),r=t.Array,n=t.Object;function o(e,o){if(o.prototype=o.Constructor=void 0,!e||"object"!==s(e))return e;if(o.cache.has(e))return o.cache.get(e);if(o.prototype=Sr(e),o.Constructor=o.prototype&&o.prototype.constructor,!o.Constructor||o.Constructor===Object)return n(e,o);if(wr(e))return r(e,o);var i=t[nr(e)];return i?i(e,o):"function"==typeof e.then?e:n(e,o)}return function(e){return o(e,{Constructor:void 0,cache:Zt(),copier:o,prototype:void 0})}}Ar(Or({},jr,{}));var Er,kr,Pr=Ar({}),Tr={exports:{}},Rr=Tr.exports={};function Lr(){throw new Error("setTimeout has not been defined")}function _r(){throw new Error("clearTimeout has not been defined")}function Ur(e){if(Er===setTimeout)return setTimeout(e,0);if((Er===Lr||!Er)&&setTimeout)return Er=setTimeout,setTimeout(e,0);try{return Er(e,0)}catch(t){try{return Er.call(null,e,0)}catch(t){return Er.call(this,e,0)}}}!function(){try{Er="function"==typeof setTimeout?setTimeout:Lr}catch(e){Er=Lr}try{kr="function"==typeof clearTimeout?clearTimeout:_r}catch(e){kr=_r}}();var Ir,Cr=[],Nr=!1,Br=-1;function Dr(){Nr&&Ir&&(Nr=!1,Ir.length?Cr=Ir.concat(Cr):Br=-1,Cr.length&&Fr())}function Fr(){if(!Nr){var e=Ur(Dr);Nr=!0;for(var t=Cr.length;t;){for(Ir=Cr,Cr=[];++Br<t;)Ir&&Ir[Br].run();Br=-1,t=Cr.length}Ir=null,Nr=!1,function(e){if(kr===clearTimeout)return clearTimeout(e);if((kr===_r||!kr)&&clearTimeout)return kr=clearTimeout,clearTimeout(e);try{return kr(e)}catch(t){try{return kr.call(null,e)}catch(t){return kr.call(this,e)}}}(e)}}function Mr(e,t){this.fun=e,this.array=t}function qr(){}Rr.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Cr.push(new Mr(e,t)),1!==Cr.length||Nr||Ur(Fr)},Mr.prototype.run=function(){this.fun.apply(null,this.array)},Rr.title="browser",Rr.browser=!0,Rr.env={},Rr.argv=[],Rr.version="",Rr.versions={},Rr.on=qr,Rr.addListener=qr,Rr.once=qr,Rr.off=qr,Rr.removeListener=qr,Rr.removeAllListeners=qr,Rr.emit=qr,Rr.prependListener=qr,Rr.prependOnceListener=qr,Rr.listeners=function(){return[]},Rr.binding=function(){throw new Error("process.binding is not supported")},Rr.cwd=function(){return"/"},Rr.chdir=function(){throw new Error("process.chdir is not supported")},Rr.umask=function(){return 0};var Wr=O(Tr.exports);function zr(){}var Hr=function(e){return new Promise((function(t){setTimeout(t,e)}))};function Kr(e,t){return Kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kr(e,t)}function Gr(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kr(e,t)}var Jr="object"==("undefined"==typeof global?"undefined":s(global))&&global&&global.Object===Object&&global,Vr="object"==("undefined"==typeof self?"undefined":s(self))&&self&&self.Object===Object&&self,$r=(Jr||Vr||Function("return this")()).Symbol,Qr=Object.prototype,Xr=Qr.hasOwnProperty,Yr=Qr.toString,Zr=$r?$r.toStringTag:void 0,en=Object.prototype.toString,tn=$r?$r.toStringTag:void 0,rn=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":tn&&tn in Object(e)?function(e){var t=Xr.call(e,Zr),r=e[Zr];try{e[Zr]=void 0;var n=!0}catch(e){}var o=Yr.call(e);return n&&(t?e[Zr]=r:delete e[Zr]),o}(e):function(e){return en.call(e)}(e)},nn=function(e){return null!=e&&"object"==s(e)},on=rn,an=Array.isArray,un=nn,cn=O((function(e){return"string"==typeof e||!an(e)&&un(e)&&"[object String]"==on(e)}));function sn(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ln(e){return ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ln(e)}function fn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fn=function(){return!!e})()}function pn(e){var t="function"==typeof Map?new Map:void 0;return pn=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(fn())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Kr(o,r.prototype),o}(e,arguments,ln(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Kr(r,e)},pn(e)}function yn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function dn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dn=function(){return!!e})()}var hn=function(e){function t(){var e,r,n,o;return p(this,t),r=this,o=["Throttled function aborted"],n=ln(n=t),(e=sn(r,dn()?Reflect.construct(n,o||[],ln(r).constructor):n.apply(r,o))).name="AbortError",e}return Gr(t,e),d(t)}(pn(Error));function vn(){vn=function(e,t){return new r(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function r(e,n,o){var i=RegExp(e,n);return t.set(i,o||t.get(e)),Kr(i,r.prototype)}function n(e,r){var n=t.get(r);return Object.keys(n).reduce((function(t,r){var o=n[r];if("number"==typeof o)t[r]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;t[r]=e[o[i]]}return t}),Object.create(null))}return Gr(r,RegExp),r.prototype.exec=function(t){var r=e.exec.call(this,t);if(r){r.groups=n(r,this);var o=r.indices;o&&(o.groups=n(o,this))}return r},r.prototype[Symbol.replace]=function(r,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,r,o.replace(/\$<([^>]+)>/g,(function(e,t){var r=i[t];return"$"+(Array.isArray(r)?r.join("$"):r)})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,r,(function(){var e=arguments;return"object"!=s(e[e.length-1])&&(e=[].slice.call(e)).push(n(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,r,o)},vn.apply(this,arguments)}var bn=vn(/(\d+)(%)/,{value:1});function mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:7,r=t;if(bn.test(e)){var n,o=null===(n=e.match(bn))||void 0===n?void 0:n.groups;if(o&&o.value){var i=parseInt(o.value)/100;r=Math.round(t*i)}}return Math.min(30,Math.max(1,r))}function gn(e,t){return t("info","Throttle request to ".concat(e,"/s")),function(e){var t=e.limit,n=e.interval,o=e.onDelay;if(!Number.isFinite(t))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(n))throw new TypeError("Expected `interval` to be a finite number");var i=new Map,a=0,u=0;return function(e){var c=function(){for(var s,l=this,f=arguments.length,p=new Array(f),y=0;y<f;y++)p[y]=arguments[y];return c.isEnabled?new Promise((function(r,c){var f,y=function(){r(e.apply(l,p)),i.delete(s)},d=(f=Date.now())-a>n?(u=1,a=f,0):(u<t?u++:(a+=n,u=1),a-f);d>0?(s=setTimeout(y,d),i.set(s,c),null==o||o.apply(void 0,p)):y()})):r(P.mark((function t(){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.apply(l,p));case 1:case"end":return t.stop()}}),t)})))()};return c.abort=function(){var e,t=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,t){if(e){if("string"==typeof e)return yn(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yn(e,t):void 0}}(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(i.keys());try{for(t.s();!(e=t.n()).done;){var r=e.value;clearTimeout(r),i.get(r)(new hn)}}catch(e){t.e(e)}finally{t.f()}i.clear()},c.isEnabled=!0,Object.defineProperty(c,"queueSize",{get:function(){return i.size}}),c}}({limit:e,interval:1e3})}var wn,On=Error,Sn=EvalError,xn=RangeError,jn=ReferenceError,An=SyntaxError,En=TypeError,kn=URIError,Pn="undefined"!=typeof Symbol&&Symbol,Tn={__proto__:null,foo:{}},Rn=Object,Ln=Object.prototype.toString,_n=Math.max,Un=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r},In=Function.prototype.bind||function(e){var t=this;if("function"!=typeof t||"[object Function]"!==Ln.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,n=function(e){for(var t=[],r=1,n=0;r<e.length;r+=1,n+=1)t[n]=e[r];return t}(arguments),o=_n(0,t.length-n.length),i=[],a=0;a<o;a++)i[a]="$"+a;if(r=Function("binder","return function ("+function(e){for(var t="",r=0;r<e.length;r+=1)t+=e[r],r+1<e.length&&(t+=",");return t}(i)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var o=t.apply(this,Un(n,arguments));return Object(o)===o?o:this}return t.apply(e,Un(n,arguments))})),t.prototype){var u=function(){};u.prototype=t.prototype,r.prototype=new u,u.prototype=null}return r},Cn=In.call(Function.prototype.call,Object.prototype.hasOwnProperty),Nn=On,Bn=Sn,Dn=xn,Fn=jn,Mn=An,qn=En,Wn=kn,zn=Function,Hn=function(e){try{return zn('"use strict"; return ('+e+").constructor;")()}catch(e){}},Kn=Object.getOwnPropertyDescriptor;if(Kn)try{Kn({},"")}catch(e){Kn=null}var Gn=function(){throw new qn},Jn=Kn?function(){try{return Gn}catch(e){try{return Kn(arguments,"callee").get}catch(e){return Gn}}}():Gn,Vn="function"==typeof Pn&&"function"==typeof Symbol&&"symbol"===s(Pn("foo"))&&"symbol"===s(Symbol("bar"))&&function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===s(Symbol.iterator))return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}(),$n=Object.getPrototypeOf||({__proto__:Tn}.foo!==Tn.foo||Tn instanceof Rn?null:function(e){return e.__proto__}),Qn={},Xn="undefined"!=typeof Uint8Array&&$n?$n(Uint8Array):wn,Yn={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?wn:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?wn:ArrayBuffer,"%ArrayIteratorPrototype%":Vn&&$n?$n([][Symbol.iterator]()):wn,"%AsyncFromSyncIteratorPrototype%":wn,"%AsyncFunction%":Qn,"%AsyncGenerator%":Qn,"%AsyncGeneratorFunction%":Qn,"%AsyncIteratorPrototype%":Qn,"%Atomics%":"undefined"==typeof Atomics?wn:Atomics,"%BigInt%":"undefined"==typeof BigInt?wn:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?wn:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?wn:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?wn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Nn,"%eval%":eval,"%EvalError%":Bn,"%Float32Array%":"undefined"==typeof Float32Array?wn:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?wn:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?wn:FinalizationRegistry,"%Function%":zn,"%GeneratorFunction%":Qn,"%Int8Array%":"undefined"==typeof Int8Array?wn:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?wn:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?wn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Vn&&$n?$n($n([][Symbol.iterator]())):wn,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":s(JSON))?JSON:wn,"%Map%":"undefined"==typeof Map?wn:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Vn&&$n?$n((new Map)[Symbol.iterator]()):wn,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?wn:Promise,"%Proxy%":"undefined"==typeof Proxy?wn:Proxy,"%RangeError%":Dn,"%ReferenceError%":Fn,"%Reflect%":"undefined"==typeof Reflect?wn:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?wn:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Vn&&$n?$n((new Set)[Symbol.iterator]()):wn,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?wn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Vn&&$n?$n(""[Symbol.iterator]()):wn,"%Symbol%":Vn?Symbol:wn,"%SyntaxError%":Mn,"%ThrowTypeError%":Jn,"%TypedArray%":Xn,"%TypeError%":qn,"%Uint8Array%":"undefined"==typeof Uint8Array?wn:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?wn:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?wn:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?wn:Uint32Array,"%URIError%":Wn,"%WeakMap%":"undefined"==typeof WeakMap?wn:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?wn:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?wn:WeakSet};if($n)try{null.error}catch(e){var Zn=$n($n(e));Yn["%Error.prototype%"]=Zn}var eo,to,ro=function e(t){var r;if("%AsyncFunction%"===t)r=Hn("async function () {}");else if("%GeneratorFunction%"===t)r=Hn("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=Hn("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&$n&&(r=$n(o.prototype))}return Yn[t]=r,r},no={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},oo=In,io=Cn,ao=oo.call(Function.call,Array.prototype.concat),uo=oo.call(Function.apply,Array.prototype.splice),co=oo.call(Function.call,String.prototype.replace),so=oo.call(Function.call,String.prototype.slice),lo=oo.call(Function.call,RegExp.prototype.exec),fo=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,po=/\\(\\)?/g,yo=function(e,t){var r,n=e;if(io(no,n)&&(n="%"+(r=no[n])[0]+"%"),io(Yn,n)){var o=Yn[n];if(o===Qn&&(o=ro(n)),void 0===o&&!t)throw new qn("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Mn("intrinsic "+e+" does not exist!")},ho=function(e,t){if("string"!=typeof e||0===e.length)throw new qn("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new qn('"allowMissing" argument must be a boolean');if(null===lo(/^%?[^%]*%?$/,e))throw new Mn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=so(e,0,1),r=so(e,-1);if("%"===t&&"%"!==r)throw new Mn("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new Mn("invalid intrinsic syntax, expected opening `%`");var n=[];return co(e,fo,(function(e,t,r,o){n[n.length]=r?co(o,po,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=yo("%"+n+"%",t),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],uo(r,ao([0,1],c)));for(var s=1,l=!0;s<r.length;s+=1){var f=r[s],p=so(f,0,1),y=so(f,-1);if(('"'===p||"'"===p||"`"===p||'"'===y||"'"===y||"`"===y)&&p!==y)throw new Mn("property names with quotes must have matching quotes");if("constructor"!==f&&l||(u=!0),io(Yn,i="%"+(n+="."+f)+"%"))a=Yn[i];else if(null!=a){if(!(f in a)){if(!t)throw new qn("base intrinsic for "+e+" exists, but the property is not available.");return}if(Kn&&s+1>=r.length){var d=Kn(a,f);a=(l=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[f]}else l=io(a,f),a=a[f];l&&!u&&(Yn[i]=a)}}return a},vo={exports:{}};function bo(){if(to)return eo;to=1;var e=ho("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}return eo=e}var mo=ho("%Object.getOwnPropertyDescriptor%",!0);if(mo)try{mo([],"length")}catch(e){mo=null}var go=mo,wo=bo(),Oo=An,So=En,xo=go,jo=bo(),Ao=function(){return!!jo};Ao.hasArrayLengthDefineBug=function(){if(!jo)return null;try{return 1!==jo([],"length",{value:1}).length}catch(e){return!0}};var Eo=ho,ko=function(e,t,r){if(!e||"object"!==s(e)&&"function"!=typeof e)throw new So("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!==s(t))throw new So("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new So("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new So("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new So("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new So("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,a=arguments.length>6&&arguments[6],u=!!xo&&xo(e,t);if(wo)wo(e,t,{configurable:null===i&&u?u.configurable:!i,enumerable:null===n&&u?u.enumerable:!n,value:r,writable:null===o&&u?u.writable:!o});else{if(!a&&(n||o||i))throw new Oo("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}},Po=Ao(),To=go,Ro=En,Lo=Eo("%Math.floor%"),_o=function(e,t){if("function"!=typeof e)throw new Ro("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||Lo(t)!==t)throw new Ro("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in e&&To){var i=To(e,"length");i&&!i.configurable&&(n=!1),i&&!i.writable&&(o=!1)}return(n||o||!r)&&(Po?ko(e,"length",t,!0,!0):ko(e,"length",t)),e};!function(e){var t=In,r=ho,n=_o,o=En,i=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),u=r("%Reflect.apply%",!0)||t.call(a,i),c=bo(),s=r("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new o("a function is required");var r=u(t,a,arguments);return n(r,1+s(0,e.length-(arguments.length-1)),!0)};var l=function(){return u(t,i,arguments)};c?c(e.exports,"apply",{value:l}):e.exports.apply=l}(vo);var Uo=ho,Io=vo.exports,Co=Io(Uo("String.prototype.indexOf")),No=S(Object.freeze({__proto__:null,default:{}})),Bo="function"==typeof Map&&Map.prototype,Do=Object.getOwnPropertyDescriptor&&Bo?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Fo=Bo&&Do&&"function"==typeof Do.get?Do.get:null,Mo=Bo&&Map.prototype.forEach,qo="function"==typeof Set&&Set.prototype,Wo=Object.getOwnPropertyDescriptor&&qo?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,zo=qo&&Wo&&"function"==typeof Wo.get?Wo.get:null,Ho=qo&&Set.prototype.forEach,Ko="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Go="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Jo="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Vo=Boolean.prototype.valueOf,$o=Object.prototype.toString,Qo=Function.prototype.toString,Xo=String.prototype.match,Yo=String.prototype.slice,Zo=String.prototype.replace,ei=String.prototype.toUpperCase,ti=String.prototype.toLowerCase,ri=RegExp.prototype.test,ni=Array.prototype.concat,oi=Array.prototype.join,ii=Array.prototype.slice,ai=Math.floor,ui="function"==typeof BigInt?BigInt.prototype.valueOf:null,ci=Object.getOwnPropertySymbols,si="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?Symbol.prototype.toString:null,li="function"==typeof Symbol&&"object"===s(Symbol.iterator),fi="function"==typeof Symbol&&Symbol.toStringTag&&(s(Symbol.toStringTag),1)?Symbol.toStringTag:null,pi=Object.prototype.propertyIsEnumerable,yi=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function di(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||ri.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-ai(-e):ai(e);if(n!==e){var o=String(n),i=Yo.call(t,o.length+1);return Zo.call(o,r,"$&_")+"."+Zo.call(Zo.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Zo.call(t,r,"$&_")}var hi=No,vi=hi.custom,bi=Si(vi)?vi:null;function mi(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function gi(e){return Zo.call(String(e),/"/g,""")}function wi(e){return!("[object Array]"!==Ai(e)||fi&&"object"===s(e)&&fi in e)}function Oi(e){return!("[object RegExp]"!==Ai(e)||fi&&"object"===s(e)&&fi in e)}function Si(e){if(li)return e&&"object"===s(e)&&e instanceof Symbol;if("symbol"===s(e))return!0;if(!e||"object"!==s(e)||!si)return!1;try{return si.call(e),!0}catch(e){}return!1}var xi=Object.prototype.hasOwnProperty||function(e){return e in this};function ji(e,t){return xi.call(e,t)}function Ai(e){return $o.call(e)}function Ei(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function ki(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return ki(Yo.call(e,0,t.maxStringLength),t)+n}return mi(Zo.call(Zo.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Pi),"single",t)}function Pi(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+ei.call(t.toString(16))}function Ti(e){return"Object("+e+")"}function Ri(e){return e+" { ? }"}function Li(e,t,r,n){return e+" ("+t+") {"+(n?_i(r,n):oi.call(r,", "))+"}"}function _i(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+oi.call(e,","+r)+"\n"+t.prev}function Ui(e,t){var r=wi(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=ji(e,o)?t(e[o],e):""}var i,a="function"==typeof ci?ci(e):[];if(li){i={};for(var u=0;u<a.length;u++)i["$"+a[u]]=a[u]}for(var c in e)ji(e,c)&&(r&&String(Number(c))===c&&c<e.length||li&&i["$"+c]instanceof Symbol||(ri.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof ci)for(var s=0;s<a.length;s++)pi.call(e,a[s])&&n.push("["+t(a[s])+"]: "+t(e[a[s]],e));return n}var Ii=ho,Ci=function(e,t){var r=Uo(e,!!t);return"function"==typeof r&&Co(e,".prototype.")>-1?Io(r):r},Ni=function e(t,r,n,o){var i=r||{};if(ji(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ji(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!ji(i,"customInspect")||i.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ji(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ji(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=i.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return ki(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return u?di(t,c):c}if("bigint"==typeof t){var l=String(t)+"n";return u?di(t,l):l}var f=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=f&&f>0&&"object"===s(t))return wi(t)?"[Array]":"[Object]";var p=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=oi.call(Array(e.indent+1)," ")}return{base:r,prev:oi.call(Array(t+1),r)}}(i,n);if(void 0===o)o=[];else if(Ei(o,t)>=0)return"[Circular]";function y(t,r,a){if(r&&(o=ii.call(o)).push(r),a){var u={depth:i.depth};return ji(i,"quoteStyle")&&(u.quoteStyle=i.quoteStyle),e(t,u,n+1,o)}return e(t,i,n+1,o)}if("function"==typeof t&&!Oi(t)){var d=function(e){if(e.name)return e.name;var t=Xo.call(Qo.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),h=Ui(t,y);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(h.length>0?" { "+oi.call(h,", ")+" }":"")}if(Si(t)){var v=li?Zo.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):si.call(t);return"object"!==s(t)||li?v:Ti(v)}if(function(e){return!(!e||"object"!==s(e))&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}(t)){for(var b="<"+ti.call(String(t.nodeName)),m=t.attributes||[],g=0;g<m.length;g++)b+=" "+m[g].name+"="+mi(gi(m[g].value),"double",i);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+"</"+ti.call(String(t.nodeName))+">"}if(wi(t)){if(0===t.length)return"[]";var w=Ui(t,y);return p&&!function(e){for(var t=0;t<e.length;t++)if(Ei(e[t],"\n")>=0)return!1;return!0}(w)?"["+_i(w,p)+"]":"[ "+oi.call(w,", ")+" ]"}if(function(e){return!("[object Error]"!==Ai(e)||fi&&"object"===s(e)&&fi in e)}(t)){var O=Ui(t,y);return"cause"in Error.prototype||!("cause"in t)||pi.call(t,"cause")?0===O.length?"["+String(t)+"]":"{ ["+String(t)+"] "+oi.call(O,", ")+" }":"{ ["+String(t)+"] "+oi.call(ni.call("[cause]: "+y(t.cause),O),", ")+" }"}if("object"===s(t)&&a){if(bi&&"function"==typeof t[bi]&&hi)return hi(t,{depth:f-n});if("symbol"!==a&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Fo||!e||"object"!==s(e))return!1;try{Fo.call(e);try{zo.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var S=[];return Mo&&Mo.call(t,(function(e,r){S.push(y(r,t,!0)+" => "+y(e,t))})),Li("Map",Fo.call(t),S,p)}if(function(e){if(!zo||!e||"object"!==s(e))return!1;try{zo.call(e);try{Fo.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var x=[];return Ho&&Ho.call(t,(function(e){x.push(y(e,t))})),Li("Set",zo.call(t),x,p)}if(function(e){if(!Ko||!e||"object"!==s(e))return!1;try{Ko.call(e,Ko);try{Go.call(e,Go)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Ri("WeakMap");if(function(e){if(!Go||!e||"object"!==s(e))return!1;try{Go.call(e,Go);try{Ko.call(e,Ko)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Ri("WeakSet");if(function(e){if(!Jo||!e||"object"!==s(e))return!1;try{return Jo.call(e),!0}catch(e){}return!1}(t))return Ri("WeakRef");if(function(e){return!("[object Number]"!==Ai(e)||fi&&"object"===s(e)&&fi in e)}(t))return Ti(y(Number(t)));if(function(e){if(!e||"object"!==s(e)||!ui)return!1;try{return ui.call(e),!0}catch(e){}return!1}(t))return Ti(y(ui.call(t)));if(function(e){return!("[object Boolean]"!==Ai(e)||fi&&"object"===s(e)&&fi in e)}(t))return Ti(Vo.call(t));if(function(e){return!("[object String]"!==Ai(e)||fi&&"object"===s(e)&&fi in e)}(t))return Ti(y(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||"undefined"!=typeof global&&t===global)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==Ai(e)||fi&&"object"===s(e)&&fi in e)}(t)&&!Oi(t)){var j=Ui(t,y),A=yi?yi(t)===Object.prototype:t instanceof Object||t.constructor===Object,E=t instanceof Object?"":"null prototype",k=!A&&fi&&Object(t)===t&&fi in t?Yo.call(Ai(t),8,-1):E?"Object":"",P=(A||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(k||E?"["+oi.call(ni.call([],k||[],E||[]),": ")+"] ":"");return 0===j.length?P+"{}":p?P+"{"+_i(j,p)+"}":P+"{ "+oi.call(j,", ")+" }"}return String(t)},Bi=En,Di=Ii("%WeakMap%",!0),Fi=Ii("%Map%",!0),Mi=Ci("WeakMap.prototype.get",!0),qi=Ci("WeakMap.prototype.set",!0),Wi=Ci("WeakMap.prototype.has",!0),zi=Ci("Map.prototype.get",!0),Hi=Ci("Map.prototype.set",!0),Ki=Ci("Map.prototype.has",!0),Gi=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},Ji=String.prototype.replace,Vi=/%20/g,$i="RFC3986",Qi={default:$i,formatters:{RFC1738:function(e){return Ji.call(e,Vi,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:$i},Xi=Qi,Yi=Object.prototype.hasOwnProperty,Zi=Array.isArray,ea=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),ta=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},ra=1024,na={arrayToObject:ta,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),u=0;u<a.length;++u){var c=a[u],l=i[c];"object"===s(l)&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:i,prop:c}),r.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(Zi(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,n,o){if(0===e.length)return e;var i=e;if("symbol"===s(e)?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",u=0;u<i.length;u+=ra){for(var c=i.length>=ra?i.slice(u,u+ra):i,l=[],f=0;f<c.length;++f){var p=c.charCodeAt(f);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===Xi.RFC1738&&(40===p||41===p)?l[l.length]=c.charAt(f):p<128?l[l.length]=ea[p]:p<2048?l[l.length]=ea[192|p>>6]+ea[128|63&p]:p<55296||p>=57344?l[l.length]=ea[224|p>>12]+ea[128|p>>6&63]+ea[128|63&p]:(p=65536+((1023&p)<<10|1023&c.charCodeAt(f+=1)),l[l.length]=ea[240|p>>18]+ea[128|p>>12&63]+ea[128|p>>6&63]+ea[128|63&p])}a+=l.join("")}return a},isBuffer:function(e){return!(!e||"object"!==s(e)||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Zi(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!==s(r)){if(Zi(t))t.push(r);else{if(!t||"object"!==s(t))return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!Yi.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==s(t))return[t].concat(r);var o=t;return Zi(t)&&!Zi(r)&&(o=ta(t,n)),Zi(t)&&Zi(r)?(r.forEach((function(r,o){if(Yi.call(t,o)){var i=t[o];i&&"object"===s(i)&&r&&"object"===s(r)?t[o]=e(i,r,n):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];return t[o]=Yi.call(t,o)?e(t[o],i,n):i,t}),o)}},oa=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new Bi("Side channel does not contain "+Ni(e))},get:function(n){if(Di&&n&&("object"===s(n)||"function"==typeof n)){if(e)return Mi(e,n)}else if(Fi){if(t)return zi(t,n)}else if(r)return function(e,t){var r=Gi(e,t);return r&&r.value}(r,n)},has:function(n){if(Di&&n&&("object"===s(n)||"function"==typeof n)){if(e)return Wi(e,n)}else if(Fi){if(t)return Ki(t,n)}else if(r)return function(e,t){return!!Gi(e,t)}(r,n);return!1},set:function(n,o){Di&&n&&("object"===s(n)||"function"==typeof n)?(e||(e=new Di),qi(e,n,o)):Fi?(t||(t=new Fi),Hi(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=Gi(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n},ia=na,aa=Qi,ua=Object.prototype.hasOwnProperty,ca={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},sa=Array.isArray,la=Array.prototype.push,fa=function(e,t){la.apply(e,sa(t)?t:[t])},pa=Date.prototype.toISOString,ya=aa.default,da={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ia.encode,encodeValuesOnly:!1,format:ya,formatter:aa.formatters[ya],indices:!1,serializeDate:function(e){return pa.call(e)},skipNulls:!1,strictNullHandling:!1},ha={},va=function e(t,r,n,o,i,a,u,c,l,f,p,y,d,h,v,b,m,g){for(var w,O=t,S=g,x=0,j=!1;void 0!==(S=S.get(ha))&&!j;){var A=S.get(t);if(x+=1,void 0!==A){if(A===x)throw new RangeError("Cyclic object value");j=!0}void 0===S.get(ha)&&(x=0)}if("function"==typeof f?O=f(r,O):O instanceof Date?O=d(O):"comma"===n&&sa(O)&&(O=ia.maybeMap(O,(function(e){return e instanceof Date?d(e):e}))),null===O){if(a)return l&&!b?l(r,da.encoder,m,"key",h):r;O=""}if("string"==typeof(w=O)||"number"==typeof w||"boolean"==typeof w||"symbol"===s(w)||"bigint"==typeof w||ia.isBuffer(O))return l?[v(b?r:l(r,da.encoder,m,"key",h))+"="+v(l(O,da.encoder,m,"value",h))]:[v(r)+"="+v(String(O))];var E,k=[];if(void 0===O)return k;if("comma"===n&&sa(O))b&&l&&(O=ia.maybeMap(O,l)),E=[{value:O.length>0?O.join(",")||null:void 0}];else if(sa(f))E=f;else{var P=Object.keys(O);E=p?P.sort(p):P}var T=c?r.replace(/\./g,"%2E"):r,R=o&&sa(O)&&1===O.length?T+"[]":T;if(i&&sa(O)&&0===O.length)return R+"[]";for(var L=0;L<E.length;++L){var _=E[L],U="object"===s(_)&&void 0!==_.value?_.value:O[_];if(!u||null!==U){var I=y&&c?_.replace(/\./g,"%2E"):_,C=sa(O)?"function"==typeof n?n(R,I):R:R+(y?"."+I:"["+I+"]");g.set(t,x);var N=oa();N.set(ha,g),fa(k,e(U,C,n,o,i,a,u,c,"comma"===n&&b&&sa(O)?null:l,f,p,y,d,h,v,b,m,N))}}return k},ba=na,ma=Object.prototype.hasOwnProperty,ga=Array.isArray,wa={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:ba.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},Oa=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Sa=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},xa=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),u=a?o.slice(0,a.index):o,c=[];if(u){if(!r.plainObjects&&ma.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(u)}for(var s=0;r.depth>0&&null!==(a=i.exec(o))&&s<r.depth;){if(s+=1,!r.plainObjects&&ma.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}if(a){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");c.push("["+o.slice(a.index)+"]")}return function(e,t,r,n){for(var o=n?t:Sa(t,r),i=e.length-1;i>=0;--i){var a,u=e[i];if("[]"===u&&r.parseArrays)a=r.allowEmptyArrays&&(""===o||r.strictNullHandling&&null===o)?[]:[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,s=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,l=parseInt(s,10);r.parseArrays||""!==s?!isNaN(l)&&u!==s&&String(l)===s&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=o:"__proto__"!==s&&(a[s]=o):a={0:o}}o=a}return o}(c,t,r,n)}},ja=O({formats:Qi,parse:function(e,t){var r=function(e){if(!e)return wa;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!=e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?wa.charset:e.charset,r=void 0===e.duplicates?wa.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||wa.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:wa.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:wa.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:wa.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:wa.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:wa.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:wa.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:wa.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:wa.decoder,delimiter:"string"==typeof e.delimiter||ba.isRegExp(e.delimiter)?e.delimiter:wa.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:wa.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:wa.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:wa.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:wa.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:wa.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:wa.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){var r,n={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=(o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]")).split(t.delimiter,t.parameterLimit===1/0?void 0:t.parameterLimit),a=-1,u=t.charset;if(t.charsetSentinel)for(r=0;r<i.length;++r)0===i[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===i[r]?u="utf-8":"utf8=%26%2310003%3B"===i[r]&&(u="iso-8859-1"),a=r,r=i.length);for(r=0;r<i.length;++r)if(r!==a){var c,s,l=i[r],f=l.indexOf("]="),p=-1===f?l.indexOf("="):f+1;-1===p?(c=t.decoder(l,wa.decoder,u,"key"),s=t.strictNullHandling?null:""):(c=t.decoder(l.slice(0,p),wa.decoder,u,"key"),s=ba.maybeMap(Sa(l.slice(p+1),t),(function(e){return t.decoder(e,wa.decoder,u,"value")}))),s&&t.interpretNumericEntities&&"iso-8859-1"===u&&(s=Oa(s)),l.indexOf("[]=")>-1&&(s=ga(s)?[s]:s);var y=ma.call(n,c);y&&"combine"===t.duplicates?n[c]=ba.combine(n[c],s):y&&"last"!==t.duplicates||(n[c]=s)}return n}(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var u=i[a],c=xa(u,n[u],r,"string"==typeof e);o=ba.merge(o,c,r)}return!0===r.allowSparse?o:ba.compact(o)},stringify:function(e,t){var r,n=e,o=function(e){if(!e)return da;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!=e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||da.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=aa.default;if(void 0!==e.format){if(!ua.call(aa.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,o=aa.formatters[r],i=da.filter;if(("function"==typeof e.filter||sa(e.filter))&&(i=e.filter),n=e.arrayFormat in ca?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":da.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:da.addQueryPrefix,allowDots:void 0===e.allowDots?!0===e.encodeDotInKeys||da.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:da.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:da.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?da.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:da.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:da.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:da.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:da.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:da.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:da.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:da.strictNullHandling}}(t);"function"==typeof o.filter?n=(0,o.filter)("",n):sa(o.filter)&&(r=o.filter);var i=[];if("object"!==s(n)||null===n)return"";var a=ca[o.arrayFormat],u="comma"===a&&o.commaRoundTrip;r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var c=oa(),l=0;l<r.length;++l){var f=r[l];o.skipNulls&&null===n[f]||fa(i,va(n[f],f,a,u,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var p=i.join(o.delimiter),y=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&(y+="iso-8859-1"===o.charset?"utf8=%26%2310003%3B&":"utf8=%E2%9C%93&"),p.length>0?y+p:""}});function Aa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ea(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Aa(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Aa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ka=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function Pa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ta(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pa(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ra(e,t){var n=function(e){var t=Ea(Ea({},{insecure:!1,retryOnError:!0,logHandler:function(e,t){"error"===e&&t&&[t.name,t.message].filter((function(e){return e})).join(" - ")},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824}),e);if(!t.accessToken){var r=new TypeError("Expected parameter accessToken");throw t.logHandler("error",r),r}var n=t.insecure?"http":"https",o=t.space?"".concat(t.space,"/"):"",i=t.defaultHostname,a=t.insecure?80:443;if(t.host&&ka.test(t.host)){var u=t.host.split(":");if(2===u.length){var c=h(u,2);i=c[0],a=c[1]}else i=u[0]}t.basePath&&(t.basePath="/".concat(t.basePath.split("/").filter(Boolean).join("/")));var s=e.baseURL||"".concat(n,"://").concat(i,":").concat(a).concat(t.basePath,"/spaces/").concat(o);return t.headers.Authorization||"function"==typeof t.accessToken||(t.headers.Authorization="Bearer "+t.accessToken),{baseURL:s,headers:t.headers,httpAgent:t.httpAgent,httpsAgent:t.httpsAgent,proxy:t.proxy,timeout:t.timeout,adapter:t.adapter,maxContentLength:t.maxContentLength,maxBodyLength:t.maxBodyLength,paramsSerializer:{serialize:function(e){return ja.stringify(e)}},logHandler:t.logHandler,responseLogger:t.responseLogger,requestLogger:t.requestLogger,retryOnError:t.retryOnError}}(t),o=e.create(n);return o.httpClientParams=t,o.cloneWithNewParams=function(r){return Ra(e,Ta(Ta({},function(e){var t=Pr(e);return t.httpAgent=e.httpAgent,t.httpsAgent=e.httpsAgent,t}(t)),r))},t.onBeforeRequest&&o.interceptors.request.use(t.onBeforeRequest),"function"==typeof t.accessToken&&function(e,t){e.interceptors.request.use((function(e){return t().then((function(t){return e.headers.set("Authorization","Bearer ".concat(t)),e}))}))}(o,t.accessToken),t.throttle&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",r=e.defaults.logHandler,n=void 0===r?zr:r,o=cn(t)?mn(t):mn("auto",t),i=gn(o,n),a=!1,u=e.interceptors.request.use((function(e){return i((function(){return e}))()}),(function(e){return Promise.reject(e)}));e.interceptors.response.use((function(r){if(!a&&cn(t)&&("auto"===t||bn.test(t))&&r.headers&&r.headers["x-contentful-ratelimit-second-limit"]){var c=parseInt(r.headers["x-contentful-ratelimit-second-limit"]),s=mn(t,c);s!==o&&(u&&e.interceptors.request.eject(u),o=s,i=gn(s,n),u=e.interceptors.request.use((function(e){return i((function(){return e}))()}),(function(e){return Promise.reject(e)}))),a=!0}return r}),(function(e){return Promise.reject(e)}))}(o,t.throttle),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=e.defaults,o=n.responseLogger,i=void 0===o?zr:o,a=n.requestLogger,u=void 0===a?zr:a;e.interceptors.request.use((function(e){return u(e),e}),(function(e){return u(e),Promise.reject(e)})),e.interceptors.response.use((function(e){return i(e),e}),function(){var n=r(P.mark((function r(n){var o,a,u,c,s;return P.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=n.response,a=n.config,i(n),a&&e.defaults.retryOnError){r.next=5;break}return r.abrupt("return",Promise.reject(n));case 5:if(!((u=a.attempts||1)>t)){r.next=9;break}return n.attempts=a.attempts,r.abrupt("return",Promise.reject(n));case 9:if(c=null,s=Math.pow(Math.SQRT2,u),o?o.status>=500&&o.status<600?c="Server ".concat(o.status):429===o.status&&(c="Rate limit",o.headers&&n.response.headers["x-contentful-ratelimit-reset"]&&(s=o.headers["x-contentful-ratelimit-reset"])):c="Connection",!c){r.next=19;break}return s=Math.floor(1e3*s+200*Math.random()+500),e.defaults.logHandler("warning","".concat(c," error occurred. Waiting for ").concat(s," ms before retrying...")),a.attempts=u+1,delete a.httpAgent,delete a.httpsAgent,r.abrupt("return",Hr(s).then((function(){return e(a)})));case 19:return r.abrupt("return",Promise.reject(n));case 20:case"end":return r.stop()}}),r)})));return function(e){return n.apply(this,arguments)}}())}(o,t.retryLimit),t.onError&&o.interceptors.response.use((function(e){return e}),t.onError),o}function La(e){var t=e.query,r={};return delete t.resolveLinks,r.params=Pr(t),r}function _a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ua(e){var t,r=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,t){if(e){if("string"==typeof e)return _a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_a(e,t):void 0}}(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(Object.getOwnPropertyNames(e));try{for(r.s();!(t=r.n()).done;){var n=e[t.value];n&&"object"===s(n)&&Ua(n)}}catch(e){r.e(e)}finally{r.f()}return Object.freeze(e)}function Ia(){var e=window;if(!e)return null;var t=e.navigator.userAgent,r=e.navigator.platform;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(r)?"macOS":-1!==["iPhone","iPad","iPod"].indexOf(r)?"iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(r)?"Windows":/Android/.test(t)?"Android":/Linux/.test(r)?"Linux":null}function Ca(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return Pr(this)}})}var Na,Ba,Da=(Na=Object.getPrototypeOf,Ba=Object,function(e){return Na(Ba(e))}),Fa=rn,Ma=Da,qa=nn,Wa=Function.prototype.toString,za=Object.prototype.hasOwnProperty,Ha=Wa.call(Object),Ka=O((function(e){if(!qa(e)||"[object Object]"!=Fa(e))return!1;var t=Ma(e);if(null===t)return!0;var r=za.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Wa.call(r)==Ha}));function Ga(e){var t,r=e.config,n=e.response;if(r&&r.headers&&r.headers.Authorization){var o="...".concat(r.headers.Authorization.toString().substr(-5));r.headers.Authorization="Bearer ".concat(o)}if(!Ka(n)||!Ka(r))throw e;var i,a=null==n?void 0:n.data,u={status:null==n?void 0:n.status,statusText:null==n?void 0:n.statusText,message:"",details:{}};r&&Ka(r)&&(u.request={url:r.url,headers:r.headers,method:r.method,payloadData:r.data}),a&&"object"===s(a)&&("requestId"in a&&(u.requestId=a.requestId||"UNKNOWN"),"message"in a&&(u.message=a.message||""),"details"in a&&(u.details=a.details||{}),t=null===(i=a.sys)||void 0===i?void 0:i.id);var c=new Error;c.name=t&&"Unknown"!==t?t:"".concat(null==n?void 0:n.status," ").concat(null==n?void 0:n.statusText);try{c.message=JSON.stringify(u,null," ")}catch(e){var l;c.message=null!==(l=null==u?void 0:u.message)&&void 0!==l?l:""}throw c}function Ja(e){return function(t){return Object.assign({},e,t)}}function Va(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return $a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$a(e,t):void 0}}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function $a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Qa,Xa,Ya,Za,eu={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},tu={0:8203,1:8204,2:8205,3:65279},ru=new Array(4).fill(String.fromCodePoint(tu[0])).join("");function nu(e,t){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto";return!0===r||"auto"===r&&(function(e){return!(!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e)||!Date.parse(e))}(e)||function(e){try{e.startsWith("/")}catch(e){return!1}return!0}(e))?e:"".concat(e).concat(function(e){var t=JSON.stringify(e);return"".concat(ru).concat(Array.from(t).map((function(e){var r=e.charCodeAt(0);if(r>255)throw new Error("Only ASCII edit info can be encoded. Error attempting to encode ".concat(t," on character ").concat(e," (").concat(r,")"));return Array.from(r.toString(4).padStart(4,"0")).map((function(e){return String.fromCodePoint(tu[e])})).join("")})).join(""))}(t))}(e,t)}Object.fromEntries(Object.entries(tu).map((function(e){return e.reverse()}))),Object.fromEntries(Object.entries(eu).map((function(e){return e.reverse()}))),"".concat(Object.values(eu).map((function(e){return"\\u{".concat(e.toString(16),"}")})).join(""));var ou=function(){if(Za)return Ya;Za=1;var e=function(){if(Xa)return Qa;Xa=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString;return Qa=function(r,n,o){if("[object Function]"!==t.call(n))throw new TypeError("iterator must be a function");var i=r.length;if(i===+i)for(var a=0;a<i;a++)n.call(o,r[a],a,r);else for(var u in r)e.call(r,u)&&n.call(o,r[u],u,r)}}();function t(e,r,n){if(3===arguments.length)return t.set(e,r,n);if(2===arguments.length)return t.get(e,r);var o=t.bind(t,e);for(var i in t)t.hasOwnProperty(i)&&(o[i]=t[i].bind(o,e));return o}return Ya=t,t.get=function(e,r){for(var n=Array.isArray(r)?r:t.parse(r),o=0;o<n.length;++o){var i=n[o];if("object"!=s(e)||!(i in e))throw new Error("Invalid reference token: "+i);e=e[i]}return e},t.set=function(e,r,n){var o=Array.isArray(r)?r:t.parse(r),i=o[0];if(0===o.length)throw Error("Can not set the root object");for(var a=0;a<o.length-1;++a){var u=o[a];"string"!=typeof u&&"number"!=typeof u&&(u=String(u)),"__proto__"!==u&&"constructor"!==u&&"prototype"!==u&&("-"===u&&Array.isArray(e)&&(u=e.length),i=o[a+1],u in e||(e[u]=i.match(/^(\d+|-)$/)?[]:{}),e=e[u])}return"-"===i&&Array.isArray(e)&&(i=e.length),e[i]=n,this},t.remove=function(e,r){var n=Array.isArray(r)?r:t.parse(r),o=n[n.length-1];if(void 0===o)throw new Error('Invalid JSON pointer for remove: "'+r+'"');var i=t.get(e,n.slice(0,-1));if(Array.isArray(i)){var a=+o;if(""===o&&isNaN(a))throw new Error('Invalid array index: "'+o+'"');Array.prototype.splice.call(i,a,1)}else delete i[o]},t.dict=function(e,r){var n={};return t.walk(e,(function(e,t){n[t]=e}),r),n},t.walk=function(r,n,o){var i=[];o=o||function(e){var t=Object.prototype.toString.call(e);return"[object Object]"===t||"[object Array]"===t},function r(a){e(a,(function(e,a){i.push(String(a)),o(e)?r(e):n(e,t.compile(i)),i.pop()}))}(r)},t.has=function(e,r){try{t.get(e,r)}catch(e){return!1}return!0},t.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")},t.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")},t.parse=function(e){if(""===e)return[];if("/"!==e.charAt(0))throw new Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(t.unescape)},t.compile=function(e){return 0===e.length?"":"/"+e.map(t.escape).join("/")},Ya}(),iu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[],n=ou.get(e,t);if(n.content)for(var o=0;o<n.content.length;o++)"text"===n.content[o].nodeType?r.push("".concat(t,"/content/").concat(o,"/value")):r.push.apply(r,a(iu(e,"".concat(t,"/content/").concat(o))));return r},au=function(e){var t=e.entityId,r=e.entityType,n=e.space,o=e.environment,i=e.field,a=e.locale,u=e.editorInterface,c=e.fieldType,s=e.platform,l={origin:"contentful.com",href:"".concat("".concat(e.targetOrigin||"https://app.contentful.com","/spaces/").concat(n,"/environments/").concat(o),"/","Entry"===r?"entries":"assets","/").concat(t,"/?focusedField=").concat(i,"&focusedLocale=").concat(a,"&source=vercel-content-link"),contentful:{editorInterface:u,fieldType:c}};return"vercel"===s&&delete l.contentful,l},uu=["singleLine","tagEditor","listInput","checkbox","richTextEditor","multipleLine"];function cu(e,t,r,n,o,i,a){var u=a?t[a]:t;switch(e){case"Symbol":var c=nu(u,r);ou.set(n,o,c);break;case"Text":var s=nu(u,r);ou.set(n,o,s);break;case"RichText":!function(e){var t=e.pointer,r=e.mappings,n=e.data,o=e.hiddenStrings,i=r[t];if(i){delete r[t];var a,u=Va(iu(n,t));try{for(u.s();!(a=u.n()).done;){var c=a.value;r[c]=i;var s=nu(ou.get(n,c),o);ou.set(n,c,s)}}catch(e){u.e(e)}finally{u.f()}}else{var l,f=Va(iu(n,t));try{for(f.s();!(l=f.n()).done;){var p=l.value,y=nu(ou.get(n,p),o);ou.set(n,p,y)}}catch(e){f.e(e)}finally{f.f()}}}({pointer:"",mappings:i,data:u,hiddenStrings:r});break;case"Array":var l=u.map((function(e){return"string"==typeof e?nu(e,r):e}));ou.set(n,o,l)}}var su,lu=function(e,t,r,n,o){if(e.fields){var i=e.sys.contentSourceMaps;if(i){var a,u=i.mappings,c=function(){var i=u[s].source,a=e.sys.space.sys.id,c=e.sys.environment.sys.id,l=e.sys.id,f=e.sys.type,p=t[i.fieldType],y=r[i.editorInterface];if(function(e){return["builtin","sidebar-builtin","editor-builtin"].includes(e)}(y.widgetNamespace)&&!function(e){return uu.includes(e)}(y.widgetId))return 0;var d=s.startsWith("/")?s:"/".concat(s);if(ou.has(e,d)){var h=ou.get(e,d);if(null===h)return{v:void 0};var v=d.split("/").pop();if(!v)return{v:void 0};var b=e.sys.locale;if(b){var m=au({entityId:l,entityType:f,space:a,environment:c,field:v,locale:b,editorInterface:y,fieldType:p,targetOrigin:n,platform:o});cu(p,h,m,e,d,u)}else Object.keys(h).forEach((function(t){var r=au({entityId:l,entityType:f,space:a,environment:c,field:v,locale:t,editorInterface:y,fieldType:p,targetOrigin:n,platform:o});cu(p,h,r,e,"".concat(d,"/").concat(t),u,t)}))}};for(var s in u)if(0!==(a=c())&&a)return a.v}}},fu={exports:{}};su=function(){var e=Function.prototype.toString,t=Object.create,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,a=Object.getPrototypeOf,u=Object.prototype,c=u.hasOwnProperty,l=u.propertyIsEnumerable,f="function"==typeof i,p="function"==typeof WeakMap,y=function(){if(p)return function(){return new WeakMap};var e=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(e){return!!~this._keys.indexOf(e)},e.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},e.prototype.set=function(e,t){this._keys.push(e),this._values.push(t)},e}();return function(){return new e}}(),d=function(r,n){var o=r.__proto__||a(r);if(!o)return t(null);var i=o.constructor;if(i===n.Object)return o===n.Object.prototype?{}:t(o);if(~e.call(i).indexOf("[native code]"))try{return new i}catch(e){}return t(o)},h=function(e,t,r,n){var o=d(e,t);for(var a in n.set(e,o),e)c.call(e,a)&&(o[a]=r(e[a],n));if(f)for(var u=i(e),s=0,p=u.length,y=void 0;s<p;++s)l.call(e,y=u[s])&&(o[y]=r(e[y],n));return o},v=function(e,t,a,u){var c=d(e,t);u.set(e,c);for(var s=f?o(e).concat(i(e)):o(e),l=0,p=s.length,y=void 0,h=void 0;l<p;++l)if("callee"!==(y=s[l])&&"caller"!==y)if(h=n(e,y)){h.get||h.set||(h.value=a(e[y],u));try{r(c,y,h)}catch(e){c[y]=h.value}}else c[y]=a(e[y],u);return c},b=Array.isArray,m=Object.getPrototypeOf,g=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:(console&&console,this)}();function w(e,t){var r=!(!t||!t.isStrict),n=t&&t.realm||g,o=r?v:h,i=function(e,t){if(!e||"object"!==s(e))return e;if(t.has(e))return t.get(e);var a,u,c,l=e.__proto__||m(e),f=l&&l.constructor;if(!f||f===n.Object)return o(e,n,i,t);if(b(e)){if(r)return v(e,n,i,t);t.set(e,a=new f);for(var p=0,y=e.length;p<y;++p)a[p]=i(e[p],t);return a}if(e instanceof n.Date)return new f(e.getTime());if(e instanceof n.RegExp)return(a=new f(e.source,e.flags||(c="",(u=e).global&&(c+="g"),u.ignoreCase&&(c+="i"),u.multiline&&(c+="m"),u.unicode&&(c+="u"),u.sticky&&(c+="y"),c))).lastIndex=e.lastIndex,a;if(n.Map&&e instanceof n.Map)return t.set(e,a=new f),e.forEach((function(e,r){a.set(r,i(e,t))})),a;if(n.Set&&e instanceof n.Set)return t.set(e,a=new f),e.forEach((function(e){a.add(i(e,t))})),a;if(n.Blob&&e instanceof n.Blob)return e.slice(0,e.size,e.type);if(n.Buffer&&n.Buffer.isBuffer(e))return a=n.Buffer.allocUnsafe?n.Buffer.allocUnsafe(e.length):new f(e.length),t.set(e,a),e.copy(a),a;if(n.ArrayBuffer){if(n.ArrayBuffer.isView(e))return a=new f(e.buffer.slice(0)),t.set(e,a),a;if(e instanceof n.ArrayBuffer)return a=e.slice(0),t.set(e,a),a}return"function"==typeof e.then||e instanceof Error||n.WeakMap&&e instanceof n.WeakMap||n.WeakSet&&e instanceof n.WeakSet?e:o(e,n,i,t)};return i(e,y())}return w.default=w,w.strict=function(e,t){return w(e,{isStrict:!0,realm:t?t.realm:void 0})},w},fu.exports=su();var pu=O(fu.exports),yu="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(e){return s(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":s(e)};function du(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var hu={},vu=function(e,t){var r=t.entryId,n=t.linkType,o=t.spaceId,i=t.environmentId;return e.get(o&&i?o+"!"+i+"!"+n+"!"+r:n+"!"+r)},bu=function e(t,r,n,o){if(r(t))return n(t);if(t&&"object"===(void 0===t?"undefined":yu(t))){for(var i in t)t.hasOwnProperty(i)&&(t[i]=e(t[i],r,n,o));o&&(t=function(e){if(Array.isArray(e))return e.filter((function(e){return e!==hu}));for(var t in e)e[t]===hu&&delete e[t];return e}(t))}return t},mu=function(e,t){if(t=t||{},!e.items)return[];var r=pu(e),n=Object.keys(r.includes||{}).reduce((function(t,r){return[].concat(du(t),du(e.includes[r]))}),[]),o=[].concat(du(r.items),du(n)).filter((function(e){return Boolean(e.sys)})),i=new Map(o.reduce((function(e,t){var r,n=(r=t.sys,r.space&&r.environment?[r.type+"!"+r.id,r.space.sys.id+"!"+r.environment.sys.id+"!"+r.type+"!"+r.id]:[r.type+"!"+r.id]).map((function(e){return[e,t]}));return e.push.apply(e,du(n)),e}),[]));return o.forEach((function(e){var r=function(e,t){return Array.isArray(t)?Object.keys(e).filter((function(e){return-1!==t.indexOf(e)})).reduce((function(t,r){return t[r]=e[r],t}),{}):e}(e,t.itemEntryPoints);Object.assign(e,bu(r,(function(e){return(t=e)&&t.sys&&"Link"===t.sys.type||function(e){return e&&e.sys&&"ResourceLink"===e.sys.type}(e);var t}),(function(e){return function(e,t,r){var n=function(e,t){var r=t.sys,n=r.linkType;if("ResourceLink"===r.type){if(!n.startsWith("Contentful:"))return t;var o=function(e){var t=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(t.test(e)){var r=function(e){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e){var t=[],r=!0,n=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(t.push(i.value),4!==t.length);r=!0);}catch(e){n=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(n)throw o}}return t}(e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e.match(t)),n=r[2];return{spaceId:r[1],environmentId:void 0===n?"master":n,entryId:r[3]}}}(t.sys.urn),i=o.spaceId,a=o.environmentId,u=o.entryId,c=n.split(":")[1];return vu(e,{linkType:c,entryId:u,spaceId:i,environmentId:a})||hu}return vu(e,{linkType:n,entryId:t.sys.id})||hu}(e,t);return n===hu?r?n:t:n}(i,e,t.removeUnresolved)}),t.removeUnresolved))})),r.items},gu={exports:{}};!function(e){function t(e,t){var r=[],n=[];return null==t&&(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(t)).join(".")+"]"}),function(o,i){if(r.length>0){var a=r.indexOf(this);~a?r.splice(a+1):r.push(this),~a?n.splice(a,1/0,o):n.push(o),~r.indexOf(i)&&(i=t.call(this,o,i))}else r.push(i);return null==e?i:e.call(this,o,i)}}(e.exports=function(e,r,n,o){return JSON.stringify(e,t(r,o),n)}).getSerialize=t}(gu);var wu=O(gu.exports);function Ou(e){return Object.defineProperty(e,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(){return wu(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",(function(e,t){return{sys:{type:"Link",linkType:"Entry",id:t.sys.id,circular:!0}}}))}})}function Su(){return xu.apply(this,arguments)}function xu(){return xu=r(P.mark((function e(t,r,n){var o,i,a,u,c,s;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r&&(r.initial||r.nextSyncToken||r.nextPageToken)){e.next=2;break}throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");case 2:if(!r.content_type||r.type){e.next=6;break}r.type="Entry",e.next=8;break;case 6:if(!r.content_type||!r.type||"Entry"===r.type){e.next=8;break}throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");case 8:return o=Object.assign(Object.assign({},{withoutLinkResolution:!1,withoutUnresolvableLinks:!1,paginate:!0}),n),i=o.withoutLinkResolution,a=o.withoutUnresolvableLinks,u=o.paginate,e.next=12,ju(t,[],r,{paginate:u});case 12:return c=e.sent,i||(c.items=mu(c,{removeUnresolved:a,itemEntryPoints:["fields"]})),p=function(e){return function(t,r){return r.sys.type===e&&t.push(Ca(r)),t}},s={entries:(f=c.items).reduce(p("Entry"),[]),assets:f.reduce(p("Asset"),[]),deletedEntries:f.reduce(p("DeletedEntry"),[]),deletedAssets:f.reduce(p("DeletedAsset"),[])},c.nextSyncToken&&(s.nextSyncToken=c.nextSyncToken),c.nextPageToken&&(s.nextPageToken=c.nextPageToken),e.abrupt("return",(Ua((l=Ou(Ca(s))).sys||{}),l));case 18:case"end":return e.stop()}var l,f,p}),e)}))),xu.apply(this,arguments)}function ju(){return Au.apply(this,arguments)}function Au(){return(Au=r(P.mark((function e(t,r,n,o){var i,a,u;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=o.paginate,a=(c=n).nextPageToken?{sync_token:c.nextPageToken}:c.nextSyncToken?{sync_token:c.nextSyncToken}:c.sync_token?{sync_token:c.sync_token}:c,e.next=4,t.get("sync",La({query:a}));case 4:if(r=r.concat((u=e.sent.data||{}).items||[]),!u.nextPageUrl){e.next=15;break}if(!i){e.next=12;break}return delete a.initial,a.sync_token=Eu(u.nextPageUrl),e.abrupt("return",ju(t,r,a,{paginate:i}));case 12:return e.abrupt("return",{items:r,nextPageToken:Eu(u.nextPageUrl)});case 15:if(!u.nextSyncUrl){e.next=19;break}return e.abrupt("return",{items:r,nextSyncToken:Eu(u.nextSyncUrl)});case 19:return e.abrupt("return",{items:[]});case 20:case"end":return e.stop()}var c}),e)})))).apply(this,arguments)}function Eu(e){var t=e.split("?");return t.length>0?t[1].replace("sync_token=",""):""}function ku(e){var t={},r=!1;for(var n in e)Array.isArray(e[n])&&(t[n]=e[n].join(","),r=!0);return r?Object.assign(Object.assign({},e),t):e}function Pu(e){if(!e.select)return new Set;var t=Array.isArray(e.select)?e.select:e.select.split(",").map((function(e){return e.trim()}));return new Set(t)}function Tu(e){if(!e.select)return e;var t=Pu(e);return t.has("sys")?e:(t.add("sys.id"),t.add("sys.type"),Object.assign(Object.assign({},e),{select:a(t).join(",")}))}function Ru(e,t){var r=t.resolveLinks,n=t.removeUnresolved,o=Ou(e);return r&&(o.items=mu(o,{removeUnresolved:n,itemEntryPoints:["fields"]})),o}function Lu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Lu=function(){return!!e})()}var _u=function(e){function t(e,r){var n,o,i,a;return p(this,t),o=this,i=t,a=['Invalid "'.concat(e,'" provided, ')+r],i=ln(i),(n=sn(o,Lu()?Reflect.construct(i,a||[],ln(o).constructor):i.apply(o,a))).name="ValidationError",n}return Gr(t,e),d(t)}(pn(Error));function Uu(e,t,r){if(r=r||{},"number"!=typeof t)throw new _u(e,'only numeric values are allowed for timestamps, provided type was "'.concat(s(t),'"'));if(r.maximum&&t>r.maximum)throw new _u(e,"value (".concat(t,") cannot be further in the future than expected maximum (").concat(r.maximum,")"));if(r.now&&t<r.now)throw new _u(e,"value (".concat(t,") cannot be in the past, current time was ").concat(r.now))}function Iu(e,t){t?function(e){if(e.locale)throw new _u("locale","The `locale` parameter is not allowed")}(e):function(e){if("*"===e.locale)throw new _u("locale","The use of locale='*' is no longer supported.To fetch an entry in all existing locales,\n use client.withAllLocales instead of the locale='*' parameter.")}(e)}function Cu(e){if("resolveLinks"in e)throw new _u("resolveLinks","The use of the 'resolveLinks' parameter is no longer supported. By default, links are resolved.\n If you do not want to resolve links, use client.withoutLinkResolution.")}function Nu(e){if("removeUnresolved"in e)throw new _u("removeUnresolved","The use of the 'removeUnresolved' parameter is no longer supported. By default, unresolved links are kept as link objects.\n If you do not want to include unresolved links, use client.withoutUnresolvableLinks.")}function Bu(e){for(var t in e){var r=e[t];if("object"===s(r)&&null!==r&&!Array.isArray(r))throw new Error('Objects are not supported as value for the "'.concat(t,'" query parameter.'))}}function Du(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Du=function(){return!!e})()}var Fu=function(e){function t(e,r,n){var o,i,a,u;return p(this,t),i=this,u=["The resource could not be found."],a=ln(a=t),(o=sn(i,Du()?Reflect.construct(a,u||[],ln(i).constructor):a.apply(i,u))).sys={type:"Error",id:"NotFound"},o.details={type:"Entry",id:e,environment:r,space:n},o}return Gr(t,e),d(t)}(pn(Error));function Mu(e,t){var n=e.http,o=e.getGlobalOptions,i=function(){return new Fu(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unknown",o().environment,o().space)},a=function(e){var t="space"===e?o().spaceBaseUrl:o().environmentBaseUrl;if(!t)throw new Error("Please define baseUrl for "+e);return t.endsWith("/")||(t+="/"),t};function u(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.httpClientParams,i=null!==(e=null==o?void 0:o.includeContentSourceMaps)&&void 0!==e?e:null===(t=null==o?void 0:o.alphaFeatures)||void 0===t?void 0:t.includeContentSourceMaps,a=function(e,t){if(void 0===t)return!1;if("boolean"!=typeof t)throw new _u("includeContentSourceMaps","The 'includeContentSourceMaps' parameter must be a boolean.");if(t&&"preview.contentful.com"!==e)throw new _u("includeContentSourceMaps","The 'includeContentSourceMaps' parameter can only be used with the CPA. Please set host to 'preview.contentful.com' to include Content Source Maps.\n ");return t}(null==o?void 0:o.host,i);if(a&&(r.includeContentSourceMaps=!0,r.select)){var u=Pu(r);u.add("sys"),r.select=Array.from(u).join(",")}return r}function c(e,t){var r;return(null===(r=null==t?void 0:t.params)||void 0===r?void 0:r.includeContentSourceMaps)?function(e,t,r){var n,o=function(e){if("function"==typeof structuredClone)return structuredClone(e);try{return JSON.parse(JSON.stringify(e))}catch(t){return e}}(e);if(o.sys&&"items"in o){if(null==(n=o.sys)||!n.contentSourceMapsLookup)return o;var i=o.sys.contentSourceMapsLookup,a=i.fieldTypes,u=i.editorInterfaces,c=o.includes;o.items.forEach((function(e){return lu(e,a,u,t,r)})),c&&c.Entry&&c.Entry.forEach((function(e){return lu(e,a,u,t,r)})),c&&c.Asset&&c.Asset.forEach((function(e){return lu(e,a,u,t,r)}))}else{if(!o.sys.contentSourceMapsLookup)return o;lu(o,o.sys.contentSourceMapsLookup.fieldTypes,o.sys.contentSourceMapsLookup.editorInterfaces,t,r)}return o}(e):e}function s(e){return l.apply(this,arguments)}function l(){return(l=r(P.mark((function e(t){var r,o,i;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.path,o=t.config,i=a(t.context),e.prev=2,e.next=5,n.get(i+r,o);case 5:return e.abrupt("return",c(e.sent.data,o));case 9:e.prev=9,e.t0=e.catch(2),Ga(e.t0);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}function f(e){return p.apply(this,arguments)}function p(){return(p=r(P.mark((function e(t){var r,o,i,u;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.path,o=t.data,i=t.config,u=a(t.context),e.prev=2,e.next=5,n.post(u+r,o,i);case 5:return e.abrupt("return",e.sent.data);case 9:e.prev=9,e.t0=e.catch(2),Ga(e.t0);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}function y(){return(y=r(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s({context:"space",path:""}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(){return(d=r(P.mark((function e(t){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s({context:"environment",path:"content_types/".concat(t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(){return h=r(P.mark((function e(){var t=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s({context:"environment",path:"content_types",config:La({query:t.length>0&&void 0!==t[0]?t[0]:{}})}));case 2:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function v(){return v=r(P.mark((function e(r){var n=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",m(r,n.length>1&&void 0!==n[1]?n[1]:{},t));case 2:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}function b(){return b=r(P.mark((function e(){var r=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",S(r.length>0&&void 0!==r[0]?r[0]:{},t));case 2:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}function m(e,t){return g.apply(this,arguments)}function g(){return g=r(P.mark((function e(t,r){var n,o,i=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Iu(r,o=(n=i.length>2&&void 0!==i[2]?i[2]:{withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}).withAllLocales),Cu(r),Nu(r),Bu(r),e.abrupt("return",w(t,o?Object.assign(Object.assign({},r),{locale:"*"}):r,n));case 7:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}function w(e,t,r){return O.apply(this,arguments)}function O(){return O=r(P.mark((function e(t,r,n){var o;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw i(t);case 2:return e.prev=2,e.next=5,j(Object.assign({"sys.id":t},u(r)),n);case 5:if(!((o=e.sent).items.length>0)){e.next=10;break}return e.abrupt("return",o.items[0]);case 10:throw i(t);case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),Ga(e.t0);case 16:case"end":return e.stop()}}),e,null,[[2,13]])}))),O.apply(this,arguments)}function S(e){return x.apply(this,arguments)}function x(){return x=r(P.mark((function e(t){var r,n,o=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Iu(t,n=(r=o.length>1&&void 0!==o[1]?o[1]:{withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}).withAllLocales),Cu(t),Nu(t),Bu(t),e.abrupt("return",j(n?Object.assign(Object.assign({},t),{locale:"*"}):t,r));case 7:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function j(e,t){return A.apply(this,arguments)}function A(){return A=r(P.mark((function e(t,r){var n,o;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.withoutLinkResolution,o=r.withoutUnresolvableLinks,e.prev=1,e.next=4,s({context:"environment",path:"entries",config:La({query:u(ku(Tu(t)))})});case 4:return e.abrupt("return",Ru(e.sent,{resolveLinks:!n,removeUnresolved:null!=o&&o}));case 8:e.prev=8,e.t0=e.catch(1),Ga(e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),A.apply(this,arguments)}function E(){return E=r(P.mark((function e(r){var n=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",U(r,n.length>1&&void 0!==n[1]?n[1]:{},t));case 2:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function k(){return k=r(P.mark((function e(){var r=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",T(r.length>0&&void 0!==r[0]?r[0]:{},t));case 2:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}function T(e){return R.apply(this,arguments)}function R(){return R=r(P.mark((function e(t){var r,n,o=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Iu(t,r=(o.length>1&&void 0!==o[1]?o[1]:{withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}).withAllLocales),Bu(t),n=r?Object.assign(Object.assign({},t),{locale:"*"}):t,e.abrupt("return",C(n));case 6:case"end":return e.stop()}}),e)}))),R.apply(this,arguments)}function L(e,t){return _.apply(this,arguments)}function _(){return(_=r(P.mark((function e(t,r){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",s({context:"environment",path:"assets/".concat(t),config:La({query:u(Tu(r))})}));case 4:e.prev=4,e.t0=e.catch(0),Ga(e.t0);case 7:case"end":return e.stop()}}),e,null,[[0,4]])})))).apply(this,arguments)}function U(e,t){return I.apply(this,arguments)}function I(){return I=r(P.mark((function e(t,r){var n,o,i=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Iu(r,n=(i.length>2&&void 0!==i[2]?i[2]:{withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}).withAllLocales),Bu(r),o=n?Object.assign(Object.assign({},r),{locale:"*"}):r,e.abrupt("return",L(t,o));case 6:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function C(e){return N.apply(this,arguments)}function N(){return(N=r(P.mark((function e(t){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",s({context:"environment",path:"assets",config:La({query:u(ku(Tu(t)))})}));case 4:e.prev=4,e.t0=e.catch(0),Ga(e.t0);case 7:case"end":return e.stop()}}),e,null,[[0,4]])})))).apply(this,arguments)}function B(){return(B=r(P.mark((function e(t){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s({context:"environment",path:"tags/".concat(t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function D(){return D=r(P.mark((function e(){var t,r=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Bu(t=r.length>0&&void 0!==r[0]?r[0]:{}),e.abrupt("return",s({context:"environment",path:"tags",config:La({query:ku(Tu(t))})}));case 3:case"end":return e.stop()}}),e)}))),D.apply(this,arguments)}function F(){return(F=r(P.mark((function e(t){var r;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{r=Math.floor(Date.now()/1e3),Uu("expiresAt",t,{maximum:r+172800,now:r})}catch(e){Ga(e)}return e.abrupt("return",f({context:"environment",path:"asset_keys",data:{expiresAt:t}}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(){return M=r(P.mark((function e(){var t,r=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Bu(t=r.length>0&&void 0!==r[0]?r[0]:{}),e.abrupt("return",s({context:"environment",path:"locales",config:La({query:Tu(t)})}));case 3:case"end":return e.stop()}}),e)}))),M.apply(this,arguments)}function q(){return q=r(P.mark((function e(r){var n=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",W(r,n.length>1&&void 0!==n[1]?n[1]:{paginate:!0},t));case 2:case"end":return e.stop()}}),e)}))),q.apply(this,arguments)}function W(e,t){return z.apply(this,arguments)}function z(){return z=r(P.mark((function e(t,r){var o,i,a=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=a.length>2&&void 0!==a[2]?a[2]:{withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1},Cu(t),Nu(t),i=Object.assign(Object.assign({},r),o),V(n),e.abrupt("return",Su(n,t,i));case 6:case"end":return e.stop()}}),e)}))),z.apply(this,arguments)}function H(){return H=r(P.mark((function e(t){var r,n=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:{},e.prev=1,e.abrupt("return",s({context:"environment",path:"taxonomy/concept-schemes/".concat(t),config:La({query:ku(Tu(r))})}));case 5:e.prev=5,e.t0=e.catch(1),Ga(e.t0);case 8:case"end":return e.stop()}}),e,null,[[1,5]])}))),H.apply(this,arguments)}function K(){return K=r(P.mark((function e(){var t,r=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.prev=1,e.abrupt("return",s({context:"environment",path:"taxonomy/concept-schemes",config:La({query:ku(Tu(t))})}));case 5:e.prev=5,e.t0=e.catch(1),Ga(e.t0);case 8:case"end":return e.stop()}}),e,null,[[1,5]])}))),K.apply(this,arguments)}function G(){return G=r(P.mark((function e(t){var r,n=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:{},e.prev=1,e.abrupt("return",s({context:"environment",path:"taxonomy/concepts/".concat(t),config:La({query:ku(Tu(r))})}));case 5:e.prev=5,e.t0=e.catch(1),Ga(e.t0);case 8:case"end":return e.stop()}}),e,null,[[1,5]])}))),G.apply(this,arguments)}function J(){return J=r(P.mark((function e(){var t,r=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.prev=1,e.abrupt("return",s({context:"environment",path:"taxonomy/concepts",config:La({query:ku(Tu(t))})}));case 5:e.prev=5,e.t0=e.catch(1),Ga(e.t0);case 8:case"end":return e.stop()}}),e,null,[[1,5]])}))),J.apply(this,arguments)}function V(e){e.defaults.baseURL=o().environmentBaseUrl}return{version:"11.5.4",getSpace:function(){return y.apply(this,arguments)},getContentType:function(e){return d.apply(this,arguments)},getContentTypes:function(){return h.apply(this,arguments)},getAsset:function(e){return E.apply(this,arguments)},getAssets:function(){return k.apply(this,arguments)},getTag:function(e){return B.apply(this,arguments)},getTags:function(){return D.apply(this,arguments)},getLocales:function(){return M.apply(this,arguments)},parseEntries:function(e){return function(e){return function(e,t){var r=t.withoutUnresolvableLinks;return Ru(e,{resolveLinks:!t.withoutLinkResolution,removeUnresolved:null!=r&&r})}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withoutLinkResolution:!1,withoutUnresolvableLinks:!1})}(e,t)},sync:function(e){return q.apply(this,arguments)},getEntry:function(e){return v.apply(this,arguments)},getEntries:function(){return b.apply(this,arguments)},getConceptScheme:function(e){return function(e){return H.apply(this,arguments)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})},getConceptSchemes:function(){return function(){return K.apply(this,arguments)}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})},getConcept:function(e){return function(e){return G.apply(this,arguments)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})},getConcepts:function(){return function(){return J.apply(this,arguments)}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})},createAssetKey:function(e){return F.apply(this,arguments)}}}return e.createClient=function(e){if(!e.accessToken)throw new TypeError("Expected parameter accessToken");if(!e.space)throw new TypeError("Expected parameter space");Cu(e),Nu(e);var t=Object.assign(Object.assign({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"}),e),r=function(e,t,r){var n=[];t&&n.push("app ".concat(t)),r&&n.push("integration ".concat(r)),n.push("sdk ".concat(e));var o=null;try{"undefined"!=typeof window&&"navigator"in window&&"product"in window.navigator&&"ReactNative"===window.navigator.product?(o=Ia(),n.push("platform ReactNative")):void 0===Wr||Wr.browser?(o=Ia(),n.push("platform browser")):(o=function(){var e=Wr.platform||"linux",t=Wr.version||"0.0.0",r={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in r?"".concat(r[e]||"Linux","/").concat(t):null}(),n.push("platform node.js/".concat(Wr.versions&&Wr.versions.node?"v".concat(Wr.versions.node):Wr.version)))}catch(e){o=null}return o&&n.push("os ".concat(o)),"".concat(n.filter((function(e){return""!==e})).join("; "),";")}("contentful.js/".concat("11.5.4"),t.application,t.integration);t.headers=Object.assign(Object.assign({},t.headers),{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":r});var n=Ra(Vt,t);if(!n.defaults.baseURL)throw new Error("Please define a baseURL");var o=Ja({space:t.space,environment:t.environment,spaceBaseUrl:n.defaults.baseURL,environmentBaseUrl:"".concat(n.defaults.baseURL,"environments/").concat(t.environment)});return n.defaults.baseURL=o({}).environmentBaseUrl,function(e){var t=e.http,r=e.getGlobalOptions;function n(e){return function(e,t,r){var n=Mu({http:e.http,getGlobalOptions:e.getGlobalOptions},t)||{};return Object.defineProperty(n,"withAllLocales",{get:function(){return r(Object.assign(Object.assign({},t),{withAllLocales:!0}))}}),Object.defineProperty(n,"withoutLinkResolution",{get:function(){return r(Object.assign(Object.assign({},t),{withoutLinkResolution:!0}))}}),Object.defineProperty(n,"withoutUnresolvableLinks",{get:function(){return r(Object.assign(Object.assign({},t),{withoutUnresolvableLinks:!0}))}}),Object.create(n)}({http:t,getGlobalOptions:r},e,n)}var o=Mu({http:t,getGlobalOptions:r},{withoutLinkResolution:!1,withAllLocales:!1,withoutUnresolvableLinks:!1});return Object.assign(Object.assign({},o),{get withAllLocales(){return n({withAllLocales:!0,withoutLinkResolution:!1,withoutUnresolvableLinks:!1})},get withoutLinkResolution(){return n({withAllLocales:!1,withoutLinkResolution:!0,withoutUnresolvableLinks:!1})},get withoutUnresolvableLinks(){return n({withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!0})}})}({http:n,getGlobalOptions:o})},e.createGlobalOptions=Ja,e}({});
|
|
1
|
+
var contentful=function(e){"use strict";function t(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function r(e){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=e.apply(r,n);function u(e){t(a,o,i,u,c,"next",e)}function c(e){t(a,o,i,u,c,"throw",e)}u(void 0)}))}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function i(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}function a(e){return function(e){if(Array.isArray(e))return n(e)}(e)||o(e)||i(e)||function(){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 u(e){if(Array.isArray(e))return e}function c(){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 s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function f(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function d(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e,t){return u(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||i(e,t)||c()}function v(e,t){this.v=e,this.k=t}function b(e){return function(){return new m(e.apply(this,arguments))}}function m(e){var t,r;function n(t,r){try{var i=e[t](r),a=i.value,u=a instanceof v;Promise.resolve(u?a.v:a).then((function(r){if(u){var c="return"===t?"return":"next";if(!a.k||r.done)return n(c,r);r=e[c](r).value}o(i.done?"return":"normal",r)}),(function(e){n("throw",e)}))}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,o){return new Promise((function(i,a){var u={key:e,arg:o,resolve:i,reject:a,next:null};r?r=r.next=u:(t=r=u,n(e,o))}))},"function"!=typeof e.return&&(this.return=void 0)}function g(e){return new v(e,0)}function w(e){var t={},r=!1;function n(t,n){return r=!0,n=new Promise((function(r){r(e[t](n))})),{done:!1,value:new v(n,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return r?(r=!1,e):n("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(r)throw r=!1,e;return n("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return r?(r=!1,e):n("return",e)}),t}function O(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function S(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&1===Object.keys(e).length?e.default:e}m.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},m.prototype.next=function(e){return this._invoke("next",e)},m.prototype.throw=function(e){return this._invoke("throw",e)},m.prototype.return=function(e){return this._invoke("return",e)};var x={exports:{}},j={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(j);var A=j.exports;!function(e){var t=A.default;function r(){e.exports=r=function(){return o},e.exports.__esModule=!0,e.exports.default=e.exports;var n,o={},i=Object.prototype,a=i.hasOwnProperty,u=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function p(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(n){p=function(e,t,r){return e[t]=r}}function y(e,t,r,n){var o=Object.create((t&&t.prototype instanceof w?t:w).prototype);return u(o,"_invoke",{value:T(e,r,new U(n||[]))}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}o.wrap=y;var h="suspendedStart",v="suspendedYield",b="executing",m="completed",g={};function w(){}function O(){}function S(){}var x={};p(x,s,(function(){return this}));var j=Object.getPrototypeOf,A=j&&j(j(I([])));A&&A!==i&&a.call(A,s)&&(x=A);var E=S.prototype=w.prototype=Object.create(x);function k(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,r){function n(o,i,u,c){var s=d(e[o],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==t(f)&&a.call(f,"__await")?r.resolve(f.__await).then((function(e){n("next",e,u,c)}),(function(e){n("throw",e,u,c)})):r.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return n("throw",e,u,c)}))}c(s.arg)}var o;u(this,"_invoke",{value:function(e,t){function i(){return new r((function(r,o){n(e,t,r,o)}))}return o=o?o.then(i,i):i()}})}function T(e,t,r){var o=h;return function(i,a){if(o===b)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:n,done:!0}}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var c=R(u,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=b;var s=d(e,t,r);if("normal"===s.type){if(o=r.done?m:v,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=m,r.method="throw",r.arg=s.arg)}}}function R(e,t){var r=t.method,o=e.iterator[r];if(o===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=n,R(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function U(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function t(){for(;++o<e.length;)if(a.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=n,t.done=!0,t};return i.next=i}}throw new TypeError(t(e)+" is not iterable")}return O.prototype=S,u(E,"constructor",{value:S,configurable:!0}),u(S,"constructor",{value:O,configurable:!0}),O.displayName=p(S,f,"GeneratorFunction"),o.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===O||"GeneratorFunction"===(t.displayName||t.name))},o.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,p(e,f,"GeneratorFunction")),e.prototype=Object.create(E),e},o.awrap=function(e){return{__await:e}},k(P.prototype),p(P.prototype,l,(function(){return this})),o.AsyncIterator=P,o.async=function(e,t,r,n,i){void 0===i&&(i=Promise);var a=new P(y(e,t,r,n),i);return o.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(E),p(E,f,"Generator"),p(E,s,(function(){return this})),p(E,"toString",(function(){return"[object Generator]"})),o.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},o.values=I,U.prototype={constructor:U,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return u.type="throw",u.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),s=a.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:I(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}},o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(x);var E=(0,x.exports)(),k=E;try{regeneratorRuntime=E}catch(e){"object"===("undefined"==typeof globalThis?"undefined":s(globalThis))?globalThis.regeneratorRuntime=E:Function("r","regeneratorRuntime = r")(E)}var P=O(k);function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _(e){var t,r,n,o=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);o--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new U(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function U(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return U=function(e){this.s=e,this.n=e.next},U.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new U(e)}function I(e,t){return function(){return e.apply(t,arguments)}}var C,N=Object.prototype.toString,B=Object.getPrototypeOf,D=(C=Object.create(null),function(e){var t=N.call(e);return C[t]||(C[t]=t.slice(8,-1).toLowerCase())}),F=function(e){return e=e.toLowerCase(),function(t){return D(t)===e}},M=function(e){return function(t){return s(t)===e}},q=Array.isArray,W=M("undefined"),z=F("ArrayBuffer"),H=M("string"),K=M("function"),G=M("number"),J=function(e){return null!==e&&"object"===s(e)},V=function(e){if("object"!==D(e))return!1;var t=B(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},$=F("Date"),Q=F("File"),X=F("Blob"),Y=F("FileList"),Z=F("URLSearchParams"),ee=h(["ReadableStream","Request","Response","Headers"].map(F),4),te=ee[0],re=ee[1],ne=ee[2],oe=ee[3];function ie(e,t){var r,n,o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,i=void 0!==o&&o;if(null!=e)if("object"!==s(e)&&(e=[e]),q(e))for(r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else{var a,u=i?Object.getOwnPropertyNames(e):Object.keys(e),c=u.length;for(r=0;r<c;r++)t.call(null,e[a=u[r]],a,e)}}function ae(e,t){t=t.toLowerCase();for(var r,n=Object.keys(e),o=n.length;o-- >0;)if(t===(r=n[o]).toLowerCase())return r;return null}var ue,ce,se,le,fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,pe=function(e){return!W(e)&&e!==fe},ye=function(e){return function(t){return e&&t instanceof e}}("undefined"!=typeof Uint8Array&&B(Uint8Array)),de=F("HTMLFormElement"),he=function(){var e=Object.prototype.hasOwnProperty;return function(t,r){return e.call(t,r)}}(),ve=F("RegExp"),be=function(e,t){var r=Object.getOwnPropertyDescriptors(e),n={};ie(r,(function(r,o){var i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)},me=F("AsyncFunction"),ge=(ue="function"==typeof setImmediate,ce=K(fe.postMessage),ue?setImmediate:ce?(se="axios@".concat(Math.random()),le=[],fe.addEventListener("message",(function(e){e.source===fe&&e.data===se&&le.length&&le.shift()()}),!1),function(e){le.push(e),fe.postMessage(se,"*")}):function(e){return setTimeout(e)}),we="undefined"!=typeof queueMicrotask?queueMicrotask.bind(fe):"undefined"!=typeof process&&process.nextTick||ge,Oe={isArray:q,isArrayBuffer:z,isBuffer:function(e){return null!==e&&!W(e)&&null!==e.constructor&&!W(e.constructor)&&K(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t;return e&&("function"==typeof FormData&&e instanceof FormData||K(e.append)&&("formdata"===(t=D(e))||"object"===t&&K(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&z(e.buffer)},isString:H,isNumber:G,isBoolean:function(e){return!0===e||!1===e},isObject:J,isPlainObject:V,isReadableStream:te,isRequest:re,isResponse:ne,isHeaders:oe,isUndefined:W,isDate:$,isFile:Q,isBlob:X,isRegExp:ve,isFunction:K,isStream:function(e){return J(e)&&K(e.pipe)},isURLSearchParams:Z,isTypedArray:ye,isFileList:Y,forEach:ie,merge:function e(){for(var t=(pe(this)&&this||{}).caseless,r={},n=function(n,o){var i=t&&ae(r,o)||o;r[i]=V(r[i])&&V(n)?e(r[i],n):V(n)?e({},n):q(n)?n.slice():n},o=0,i=arguments.length;o<i;o++)arguments[o]&&ie(arguments[o],n);return r},extend:function(e,t,r){return ie(t,(function(t,n){e[n]=r&&K(t)?I(t,r):t}),{allOwnKeys:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r,n){var o,i,a,u={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],n&&!n(a,e,t)||u[a]||(t[a]=e[a],u[a]=!0);e=!1!==r&&B(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:D,kindOfTest:F,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length);var n=e.indexOf(t,r-=t.length);return-1!==n&&n===r},toArray:function(e){if(!e)return null;if(q(e))return e;var t=e.length;if(!G(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},forEachEntry:function(e,t){for(var r,n=(e&&e[Symbol.iterator]).call(e);(r=n.next())&&!r.done;){var o=r.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var r,n=[];null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:de,hasOwnProperty:he,hasOwnProp:he,reduceDescriptors:be,freezeMethods:function(e){be(e,(function(t,r){if(K(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;K(e[r])&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:function(e,t){var r={},n=function(e){e.forEach((function(e){r[e]=!0}))};return q(e)?n(e):n(String(e).split(t)),r},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))},noop:function(){},toFiniteNumber:function(e,t){return null!=e&&Number.isFinite(e=+e)?e:t},findKey:ae,global:fe,isContextDefined:pe,isSpecCompliantForm:function(e){return!!(e&&K(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var t=new Array(10),r=function(e,n){if(J(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;var o=q(e)?[]:{};return ie(e,(function(e,t){var i=r(e,n+1);!W(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:me,isThenable:function(e){return e&&(J(e)||K(e))&&K(e.then)&&K(e.catch)},setImmediate:ge,asap:we};function Se(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}Oe.inherits(Se,Error,{toJSON:function(){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:Oe.toJSONObject(this.config),code:this.code,status:this.status}}});var xe=Se.prototype,je={};function Ae(e){return Oe.isPlainObject(e)||Oe.isArray(e)}function Ee(e){return Oe.endsWith(e,"[]")?e.slice(0,-2):e}function ke(e,t,r){return e?e.concat(t).map((function(e,t){return e=Ee(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){je[e]={value:e}})),Object.defineProperties(Se,je),Object.defineProperty(xe,"isAxiosError",{value:!0}),Se.from=function(e,t,r,n,o,i){var a=Object.create(xe);return Oe.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),Se.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var Pe=Oe.toFlatObject(Oe,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Te(e,t,r){if(!Oe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var n=(r=Oe.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Oe.isUndefined(t[e])}))).metaTokens,o=r.visitor||l,i=r.dots,a=r.indexes,u=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Oe.isSpecCompliantForm(t);if(!Oe.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Oe.isDate(e))return e.toISOString();if(!u&&Oe.isBlob(e))throw new Se("Blob is not supported. Use a Buffer instead.");return Oe.isArrayBuffer(e)||Oe.isTypedArray(e)?u&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,r,o){var u=e;if(e&&!o&&"object"===s(e))if(Oe.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(Oe.isArray(e)&&function(e){return Oe.isArray(e)&&!e.some(Ae)}(e)||(Oe.isFileList(e)||Oe.endsWith(r,"[]"))&&(u=Oe.toArray(e)))return r=Ee(r),u.forEach((function(e,n){!Oe.isUndefined(e)&&null!==e&&t.append(!0===a?ke([r],n,i):null===a?r:r+"[]",c(e))})),!1;return!!Ae(e)||(t.append(ke(o,r,i),c(e)),!1)}var f=[],p=Object.assign(Pe,{defaultVisitor:l,convertValue:c,isVisitable:Ae});if(!Oe.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!Oe.isUndefined(r)){if(-1!==f.indexOf(r))throw Error("Circular reference detected in "+n.join("."));f.push(r),Oe.forEach(r,(function(r,i){!0===(!(Oe.isUndefined(r)||null===r)&&o.call(t,r,Oe.isString(i)?i.trim():i,n,p))&&e(r,n?n.concat(i):[i])})),f.pop()}}(e),t}function Re(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Le(e,t){this._pairs=[],e&&Te(e,this,t)}var _e=Le.prototype;function Ue(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ie(e,t,r){if(!t)return e;var n=r&&r.encode||Ue;Oe.isFunction(r)&&(r={serialize:r});var o,i=r&&r.serialize;if(o=i?i(t,r):Oe.isURLSearchParams(t)?t.toString():new Le(t,r).toString(n)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}_e.append=function(e,t){this._pairs.push([e,t])},_e.toString=function(e){var t=e?function(t){return e.call(this,t,Re)}:Re;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Ce=function(){return d((function e(){p(this,e),this.handlers=[]}),[{key:"use",value:function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){Oe.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}])}(),Ne={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Be={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Le,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},De="undefined"!=typeof window&&"undefined"!=typeof document,Fe="object"===("undefined"==typeof navigator?"undefined":s(navigator))&&navigator||void 0,Me=De&&(!Fe||["ReactNative","NativeScript","NS"].indexOf(Fe.product)<0),qe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,We=De&&window.location.href||"http://localhost",ze=L(L({},Object.freeze({__proto__:null,hasBrowserEnv:De,hasStandardBrowserWebWorkerEnv:qe,hasStandardBrowserEnv:Me,navigator:Fe,origin:We})),Be);function He(e){function t(e,r,n,o){var i=e[o++];if("__proto__"===i)return!0;var a=Number.isFinite(+i),u=o>=e.length;return i=!i&&Oe.isArray(n)?n.length:i,u?(n[i]=Oe.hasOwnProp(n,i)?[n[i],r]:r,!a):(n[i]&&Oe.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&Oe.isArray(n[i])&&(n[i]=function(e){var t,r,n={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)n[r=o[t]]=e[r];return n}(n[i])),!a)}if(Oe.isFormData(e)&&Oe.isFunction(e.entries)){var r={};return Oe.forEachEntry(e,(function(e,n){t(function(e){return Oe.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e),n,r,0)})),r}return null}var Ke={transitional:Ne,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var r,n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=Oe.isObject(e);if(i&&Oe.isHTMLForm(e)&&(e=new FormData(e)),Oe.isFormData(e))return o?JSON.stringify(He(e)):e;if(Oe.isArrayBuffer(e)||Oe.isBuffer(e)||Oe.isStream(e)||Oe.isFile(e)||Oe.isBlob(e)||Oe.isReadableStream(e))return e;if(Oe.isArrayBufferView(e))return e.buffer;if(Oe.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Te(e,new ze.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return ze.isNode&&Oe.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((r=Oe.isFileList(e))||n.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return Te(r?{"files[]":e}:e,a&&new a,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e){if(Oe.isString(e))try{return(0,JSON.parse)(e),Oe.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||Ke.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(Oe.isResponse(e)||Oe.isReadableStream(e))return e;if(e&&Oe.isString(e)&&(r&&!this.responseType||n)){var o=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw Se.from(e,Se.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ze.classes.FormData,Blob:ze.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Oe.forEach(["delete","get","head","post","put","patch"],(function(e){Ke.headers[e]={}}));var Ge=Ke,Je=Oe.toObjectSet(["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"]),Ve=Symbol("internals");function $e(e){return e&&String(e).trim().toLowerCase()}function Qe(e){return!1===e||null==e?e:Oe.isArray(e)?e.map(Qe):String(e)}function Xe(e,t,r,n,o){return Oe.isFunction(n)?n.call(this,t,r):(o&&(t=r),Oe.isString(t)?Oe.isString(n)?-1!==t.indexOf(n):Oe.isRegExp(n)?n.test(t):void 0:void 0)}var Ye=function(){return d((function e(t){p(this,e),t&&this.set(t)}),[{key:"set",value:function(e,t,r){var n=this;function o(e,t,r){var o=$e(t);if(!o)throw new Error("header name must be a non-empty string");var i=Oe.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=Qe(e))}var i,a,u,c,s,l=function(e,t){return Oe.forEach(e,(function(e,r){return o(e,r,t)}))};if(Oe.isPlainObject(e)||e instanceof this.constructor)l(e,t);else if(Oe.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))l((s={},(i=e)&&i.split("\n").forEach((function(e){c=e.indexOf(":"),a=e.substring(0,c).trim().toLowerCase(),u=e.substring(c+1).trim(),!a||s[a]&&Je[a]||("set-cookie"===a?s[a]?s[a].push(u):s[a]=[u]:s[a]=s[a]?s[a]+", "+u:u)})),s),t);else if(Oe.isHeaders(e)){var f,p=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,t){if(e){if("string"==typeof e)return T(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(e,t):void 0}}(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(e.entries());try{for(p.s();!(f=p.n()).done;){var y=h(f.value,2);o(y[1],y[0],r)}}catch(e){p.e(e)}finally{p.f()}}else null!=e&&o(t,e,r);return this}},{key:"get",value:function(e,t){if(e=$e(e)){var r=Oe.findKey(this,e);if(r){var n=this[r];if(!t)return n;if(!0===t)return function(e){for(var t,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=n.exec(e);)r[t[1]]=t[2];return r}(n);if(Oe.isFunction(t))return t.call(this,n,r);if(Oe.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=$e(e)){var r=Oe.findKey(this,e);return!(!r||void 0===this[r]||t&&!Xe(0,this[r],r,t))}return!1}},{key:"delete",value:function(e,t){var r=this,n=!1;function o(e){if(e=$e(e)){var o=Oe.findKey(r,e);!o||t&&!Xe(0,r[o],o,t)||(delete r[o],n=!0)}}return Oe.isArray(e)?e.forEach(o):o(e),n}},{key:"clear",value:function(e){for(var t=Object.keys(this),r=t.length,n=!1;r--;){var o=t[r];e&&!Xe(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}},{key:"normalize",value:function(e){var t=this,r={};return Oe.forEach(this,(function(n,o){var i=Oe.findKey(r,o);if(i)return t[i]=Qe(n),void delete t[o];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Qe(n),r[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=this.constructor).concat.apply(e,[this].concat(r))}},{key:"toJSON",value:function(e){var t=Object.create(null);return Oe.forEach(this,(function(r,n){null!=r&&!1!==r&&(t[n]=e&&Oe.isArray(r)?r.join(", "):r)})),t}},{key:Symbol.iterator,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(e){var t=h(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:Symbol.toStringTag,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"concat",value:function(e){for(var t=new this(e),r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((function(e){return t.set(e)})),t}},{key:"accessor",value:function(e){var t=(this[Ve]=this[Ve]={accessors:{}}).accessors,r=this.prototype;function n(e){var n=$e(e);t[n]||(function(e,t){var r=Oe.toCamelCase(" "+t);["get","set","has"].forEach((function(n){Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return Oe.isArray(e)?e.forEach(n):n(e),this}}])}();Ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Oe.reduceDescriptors(Ye.prototype,(function(e,t){var r=e.value,n=t[0].toUpperCase()+t.slice(1);return{get:function(){return r},set:function(e){this[n]=e}}})),Oe.freezeMethods(Ye);var Ze=Ye;function et(e,t){var r=this||Ge,n=t||r,o=Ze.from(n.headers),i=n.data;return Oe.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function tt(e){return!(!e||!e.__CANCEL__)}function rt(e,t,r){Se.call(this,null==e?"canceled":e,Se.ERR_CANCELED,t,r),this.name="CanceledError"}function nt(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new Se("Request failed with status code "+r.status,[Se.ERR_BAD_REQUEST,Se.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}Oe.inherits(rt,Se,{__CANCEL__:!0});var ot=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,n=0,o=function(e,t){e=e||10;var r,n=new Array(e),o=new Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(u){var c=Date.now(),s=o[a];r||(r=c),n[i]=u,o[i]=c;for(var l=a,f=0;l!==i;)f+=n[l++],l%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),!(c-r<t)){var p=s&&c-s;return p?Math.round(1e3*f/p):void 0}}}(50,250);return function(e,t){var r,n,o=0,i=1e3/t,a=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[function(){for(var e=Date.now(),t=e-o,u=arguments.length,c=new Array(u),s=0;s<u;s++)c[s]=arguments[s];t>=i?a(c,e):(r=c,n||(n=setTimeout((function(){n=null,a(r)}),i-t)))},function(){return r&&a(r)}]}((function(r){var i=r.loaded,a=r.lengthComputable?r.total:void 0,u=i-n,c=o(u);n=i;var s=f({loaded:i,total:a,progress:a?i/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:r,lengthComputable:null!=a},t?"download":"upload",!0);e(s)}),r)},it=function(e,t){var r=null!=e;return[function(n){return t[0]({lengthComputable:r,total:e,loaded:n})},t[1]]},at=function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Oe.asap((function(){return e.apply(void 0,r)}))}},ut=ze.hasStandardBrowserEnv?function(e,t){return function(r){return e.protocol===(r=new URL(r,ze.origin)).protocol&&e.host===r.host&&(t||e.port===r.port)}}(new URL(ze.origin),ze.navigator&&/(msie|trident)/i.test(ze.navigator.userAgent)):function(){return!0},ct=ze.hasStandardBrowserEnv?{write:function(e,t,r,n,o,i){var a=[e+"="+encodeURIComponent(t)];Oe.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Oe.isString(n)&&a.push("path="+n),Oe.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function st(e,t,r){var n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&n||0==r?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var lt=function(e){return e instanceof Ze?L({},e):e};function ft(e,t){t=t||{};var r={};function n(e,t,r,n){return Oe.isPlainObject(e)&&Oe.isPlainObject(t)?Oe.merge.call({caseless:n},e,t):Oe.isPlainObject(t)?Oe.merge({},t):Oe.isArray(t)?t.slice():t}function o(e,t,r,o){return Oe.isUndefined(t)?Oe.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!Oe.isUndefined(t))return n(void 0,t)}function a(e,t){return Oe.isUndefined(t)?Oe.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function u(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}var c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:function(e,t){return o(lt(e),lt(t),0,!0)}};return Oe.forEach(Object.keys(Object.assign({},e,t)),(function(n){var i=c[n]||o,a=i(e[n],t[n],n);Oe.isUndefined(a)&&i!==u||(r[n]=a)})),r}var pt,yt,dt=function(e){var t,r,n=ft({},e),s=n.data,l=n.withXSRFToken,f=n.xsrfHeaderName,p=n.xsrfCookieName,y=n.headers,d=n.auth;if(n.headers=y=Ze.from(y),n.url=Ie(st(n.baseURL,n.url),e.params,e.paramsSerializer),d&&y.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):""))),Oe.isFormData(s))if(ze.hasStandardBrowserEnv||ze.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if(!1!==(t=y.getContentType())){var h=t?t.split(";").map((function(e){return e.trim()})).filter(Boolean):[],v=u(r=h)||o(r)||i(r)||c(),b=v[0],m=v.slice(1);y.setContentType([b||"multipart/form-data"].concat(a(m)).join("; "))}if(ze.hasStandardBrowserEnv&&(l&&Oe.isFunction(l)&&(l=l(n)),l||!1!==l&&ut(n.url))){var g=f&&p&&ct.read(p);g&&y.set(f,g)}return n},ht="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){var n,o,i,a=dt(e),u=a.data,c=Ze.from(a.headers).normalize(),s=a.responseType,l=a.onUploadProgress,f=a.onDownloadProgress;function p(){o&&o(),i&&i(),a.cancelToken&&a.cancelToken.unsubscribe(n),a.signal&&a.signal.removeEventListener("abort",n)}var y=new XMLHttpRequest;function d(){if(y){var n=Ze.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());nt((function(e){t(e),p()}),(function(e){r(e),p()}),{data:s&&"text"!==s&&"json"!==s?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:e,request:y}),y=null}}if(y.open(a.method.toUpperCase(),a.url,!0),y.timeout=a.timeout,"onloadend"in y?y.onloadend=d:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(d)},y.onabort=function(){y&&(r(new Se("Request aborted",Se.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new Se("Network Error",Se.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){var t=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";a.timeoutErrorMessage&&(t=a.timeoutErrorMessage),r(new Se(t,(a.transitional||Ne).clarifyTimeoutError?Se.ETIMEDOUT:Se.ECONNABORTED,e,y)),y=null},void 0===u&&c.setContentType(null),"setRequestHeader"in y&&Oe.forEach(c.toJSON(),(function(e,t){y.setRequestHeader(t,e)})),Oe.isUndefined(a.withCredentials)||(y.withCredentials=!!a.withCredentials),s&&"json"!==s&&(y.responseType=a.responseType),f){var v=h(ot(f,!0),2);i=v[1],y.addEventListener("progress",v[0])}if(l&&y.upload){var b=h(ot(l),2);o=b[1],y.upload.addEventListener("progress",b[0]),y.upload.addEventListener("loadend",o)}(a.cancelToken||a.signal)&&(n=function(t){y&&(r(!t||t.type?new rt(null,e,y):t),y.abort(),y=null)},a.cancelToken&&a.cancelToken.subscribe(n),a.signal&&(a.signal.aborted?n():a.signal.addEventListener("abort",n)));var m,g=(m=/^([-+\w]{1,25})(:?\/\/|:)/.exec(a.url))&&m[1]||"";g&&-1===ze.protocols.indexOf(g)?r(new Se("Unsupported protocol "+g+":",Se.ERR_BAD_REQUEST,e)):y.send(u||null)}))},vt=function(e,t){var r=e=e?e.filter(Boolean):[];if(t||r.length){var n,o=new AbortController,i=function(e){if(!n){n=!0,u();var t=e instanceof Error?e:this.reason;o.abort(t instanceof Se?t:new rt(t instanceof Error?t.message:t))}},a=t&&setTimeout((function(){a=null,i(new Se("timeout ".concat(t," of ms exceeded"),Se.ETIMEDOUT))}),t),u=function(){e&&(a&&clearTimeout(a),a=null,e.forEach((function(e){e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((function(e){return e.addEventListener("abort",i)}));var c=o.signal;return c.unsubscribe=function(){return Oe.asap(u)},c}},bt=P.mark((function e(t,r){var n,o,i;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.byteLength,r&&!(n<r)){e.next=5;break}return e.next=4,t;case 4:return e.abrupt("return");case 5:o=0;case 6:if(!(o<n)){e.next=13;break}return i=o+r,e.next=10,t.slice(o,i);case 10:o=i,e.next=6;break;case 13:case"end":return e.stop()}}),e)})),mt=function(){var e=b(P.mark((function e(t,r){var n,o,i,a,u;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=!1,o=!1,e.prev=2,a=_(gt(t));case 4:return e.next=6,g(a.next());case 6:if(!(n=!(u=e.sent).done)){e.next=12;break}return e.delegateYield(w(_(bt(u.value,r))),"t0",9);case 9:n=!1,e.next=4;break;case 12:e.next=18;break;case 14:e.prev=14,e.t1=e.catch(2),o=!0,i=e.t1;case 18:if(e.prev=18,e.prev=19,!n||null==a.return){e.next=23;break}return e.next=23,g(a.return());case 23:if(e.prev=23,!o){e.next=26;break}throw i;case 26:return e.finish(23);case 27:return e.finish(18);case 28:case"end":return e.stop()}}),e,null,[[2,14,18,28],[19,,23,27]])})));return function(t,r){return e.apply(this,arguments)}}(),gt=function(){var e=b(P.mark((function e(t){var r,n,o;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t[Symbol.asyncIterator]){e.next=3;break}return e.delegateYield(w(_(t)),"t0",2);case 2:return e.abrupt("return");case 3:r=t.getReader(),e.prev=4;case 5:return e.next=7,g(r.read());case 7:if(o=(n=e.sent).value,!n.done){e.next=12;break}return e.abrupt("break",16);case 12:return e.next=14,o;case 14:e.next=5;break;case 16:return e.prev=16,e.next=19,g(r.cancel());case 19:return e.finish(16);case 20:case"end":return e.stop()}}),e,null,[[4,,16,20]])})));return function(t){return e.apply(this,arguments)}}(),wt=function(e,t,n,o){var i,a=mt(e,t),u=0,c=function(e){i||(i=!0,o&&o(e))};return new ReadableStream({pull:function(e){return r(P.mark((function t(){var r,o,i,s;return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,a.next();case 3:if(o=(r=t.sent).value,!r.done){t.next=10;break}return c(),e.close(),t.abrupt("return");case 10:i=o.byteLength,n&&(s=u+=i,n(s)),e.enqueue(new Uint8Array(o)),t.next=19;break;case 15:throw t.prev=15,t.t0=t.catch(0),c(t.t0),t.t0;case 19:case"end":return t.stop()}}),t,null,[[0,15]])})))()},cancel:function(e){return c(e),a.return()}},{highWaterMark:2})},Ot="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,St=Ot&&"function"==typeof ReadableStream,xt=Ot&&("function"==typeof TextEncoder?(pt=new TextEncoder,function(e){return pt.encode(e)}):function(){var e=r(P.mark((function e(t){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Uint8Array,e.next=3,new Response(t).arrayBuffer();case 3:return e.t1=e.sent,e.abrupt("return",new e.t0(e.t1));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),jt=function(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return!!e.apply(void 0,r)}catch(e){return!1}},At=St&&jt((function(){var e=!1,t=new Request(ze.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Et=St&&jt((function(){return Oe.isReadableStream(new Response("").body)})),kt={stream:Et&&function(e){return e.body}};Ot&&(yt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((function(e){!kt[e]&&(kt[e]=Oe.isFunction(yt[e])?function(t){return t[e]()}:function(t,r){throw new Se("Response type '".concat(e,"' is not supported"),Se.ERR_NOT_SUPPORT,r)})})));var Pt=function(){var e=r(P.mark((function e(t){var r;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t){e.next=2;break}return e.abrupt("return",0);case 2:if(!Oe.isBlob(t)){e.next=4;break}return e.abrupt("return",t.size);case 4:if(!Oe.isSpecCompliantForm(t)){e.next=9;break}return r=new Request(ze.origin,{method:"POST",body:t}),e.next=8,r.arrayBuffer();case 8:case 15:return e.abrupt("return",e.sent.byteLength);case 9:if(!Oe.isArrayBufferView(t)&&!Oe.isArrayBuffer(t)){e.next=11;break}return e.abrupt("return",t.byteLength);case 11:if(Oe.isURLSearchParams(t)&&(t+=""),!Oe.isString(t)){e.next=16;break}return e.next=15,xt(t);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Tt=function(){var e=r(P.mark((function e(t,r){var n;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Oe.toFiniteNumber(t.getContentLength()),e.abrupt("return",null==n?Pt(r):n);case 2:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),Rt=Ot&&function(){var e=r(P.mark((function e(t){var r,n,o,i,a,u,c,s,l,f,p,y,d,v,b,m,g,w,O,S,x,j,A,E,k,T,R,_,U,I,C;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=dt(t),n=r.url,o=r.method,i=r.data,a=r.signal,u=r.cancelToken,c=r.timeout,s=r.onDownloadProgress,l=r.onUploadProgress,p=r.headers,d=void 0===(y=r.withCredentials)?"same-origin":y,v=r.fetchOptions,f=(f=r.responseType)?(f+"").toLowerCase():"text",b=vt([a,u&&u.toAbortSignal()],c),g=b&&b.unsubscribe&&function(){b.unsubscribe()},e.prev=4,e.t0=l&&At&&"get"!==o&&"head"!==o,!e.t0){e.next=11;break}return e.next=9,Tt(p,i);case 9:e.t1=w=e.sent,e.t0=0!==e.t1;case 11:if(!e.t0){e.next=15;break}O=new Request(n,{method:"POST",body:i,duplex:"half"}),Oe.isFormData(i)&&(S=O.headers.get("content-type"))&&p.setContentType(S),O.body&&(x=it(w,ot(at(l))),j=h(x,2),i=wt(O.body,65536,j[0],j[1]));case 15:return Oe.isString(d)||(d=d?"include":"omit"),A="credentials"in Request.prototype,m=new Request(n,L(L({},v),{},{signal:b,method:o.toUpperCase(),headers:p.normalize().toJSON(),body:i,duplex:"half",credentials:A?d:void 0})),e.next=20,fetch(m);case 20:return E=e.sent,k=Et&&("stream"===f||"response"===f),Et&&(s||k&&g)&&(T={},["status","statusText","headers"].forEach((function(e){T[e]=E[e]})),R=Oe.toFiniteNumber(E.headers.get("content-length")),_=s&&it(R,ot(at(s),!0))||[],U=h(_,2),I=U[1],E=new Response(wt(E.body,65536,U[0],(function(){I&&I(),g&&g()})),T)),f=f||"text",e.next=26,kt[Oe.findKey(kt,f)||"text"](E,t);case 26:return C=e.sent,!k&&g&&g(),e.next=30,new Promise((function(e,r){nt(e,r,{data:C,headers:Ze.from(E.headers),status:E.status,statusText:E.statusText,config:t,request:m})}));case 30:return e.abrupt("return",e.sent);case 33:if(e.prev=33,e.t2=e.catch(4),g&&g(),!e.t2||"TypeError"!==e.t2.name||!/fetch/i.test(e.t2.message)){e.next=38;break}throw Object.assign(new Se("Network Error",Se.ERR_NETWORK,t,m),{cause:e.t2.cause||e.t2});case 38:throw Se.from(e.t2,e.t2&&e.t2.code,t,m);case 39:case"end":return e.stop()}}),e,null,[[4,33]])})));return function(t){return e.apply(this,arguments)}}(),Lt={http:null,xhr:ht,fetch:Rt};Oe.forEach(Lt,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var _t=function(e){return"- ".concat(e)},Ut=function(e){return Oe.isFunction(e)||null===e||!1===e},It=function(e){for(var t,r,n=(e=Oe.isArray(e)?e:[e]).length,o={},i=0;i<n;i++){var a=void 0;if(r=t=e[i],!Ut(t)&&void 0===(r=Lt[(a=String(t)).toLowerCase()]))throw new Se("Unknown adapter '".concat(a,"'"));if(r)break;o[a||"#"+i]=r}if(!r){var u=Object.entries(o).map((function(e){var t=h(e,2),r=t[1];return"adapter ".concat(t[0]," ")+(!1===r?"is not supported by the environment":"is not available in the build")}));throw new Se("There is no suitable adapter to dispatch the request "+(n?u.length>1?"since :\n"+u.map(_t).join("\n"):" "+_t(u[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Ct(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rt(null,e)}function Nt(e){return Ct(e),e.headers=Ze.from(e.headers),e.data=et.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),It(e.adapter||Ge.adapter)(e).then((function(t){return Ct(e),t.data=et.call(e,e.transformResponse,t),t.headers=Ze.from(t.headers),t}),(function(t){return tt(t)||(Ct(e),t&&t.response&&(t.response.data=et.call(e,e.transformResponse,t.response),t.response.headers=Ze.from(t.response.headers))),Promise.reject(t)}))}var Bt={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Bt[e]=function(r){return s(r)===e||"a"+(t<1?"n ":" ")+e}}));var Dt={};Bt.transitional=function(e,t,r){return function(n,o,i){if(!1===e)throw new Se(function(e,t){return"[Axios v1.8.2] Transitional option '"+e+"'"+t+(r?". "+r:"")}(o," has been removed"+(t?" in "+t:"")),Se.ERR_DEPRECATED);return t&&!Dt[o]&&(Dt[o]=!0),!e||e(n,o,i)}},Bt.spelling=function(){return function(){return!0}};var Ft={assertOptions:function(e,t,r){if("object"!==s(e))throw new Se("options must be an object",Se.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],a=t[i];if(a){var u=e[i],c=void 0===u||a(u,i,e);if(!0!==c)throw new Se("option "+i+" must be "+c,Se.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Se("Unknown option "+i,Se.ERR_BAD_OPTION)}},validators:Bt},Mt=Ft.validators,qt=function(){return d((function e(t){p(this,e),this.defaults=t,this.interceptors={request:new Ce,response:new Ce}}),[{key:"request",value:(e=r(P.mark((function e(t,r){var n,o;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._request(t,r);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),e.t0 instanceof Error){n={},Error.captureStackTrace?Error.captureStackTrace(n):n=new Error,o=n.stack?n.stack.replace(/^.+\n/,""):"";try{e.t0.stack?o&&!String(e.t0.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(e.t0.stack+="\n"+o):e.t0.stack=o}catch(e){}}throw e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(t,r){return e.apply(this,arguments)})},{key:"_request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var r=(t=ft(this.defaults,t)).transitional,n=t.paramsSerializer,o=t.headers;void 0!==r&&Ft.assertOptions(r,{silentJSONParsing:Mt.transitional(Mt.boolean),forcedJSONParsing:Mt.transitional(Mt.boolean),clarifyTimeoutError:Mt.transitional(Mt.boolean)},!1),null!=n&&(Oe.isFunction(n)?t.paramsSerializer={serialize:n}:Ft.assertOptions(n,{encode:Mt.function,serialize:Mt.function},!0)),void 0!==t.allowAbsoluteUrls||(t.allowAbsoluteUrls=void 0===this.defaults.allowAbsoluteUrls||this.defaults.allowAbsoluteUrls),Ft.assertOptions(t,{baseUrl:Mt.spelling("baseURL"),withXsrfToken:Mt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();var i=o&&Oe.merge(o.common,o[t.method]);o&&Oe.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete o[e]})),t.headers=Ze.concat(i,o);var a=[],u=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(u=u&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));var c,s=[];this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)}));var l,f=0;if(!u){var p=[Nt.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,s),l=p.length,c=Promise.resolve(t);f<l;)c=c.then(p[f++],p[f++]);return c}l=a.length;var y=t;for(f=0;f<l;){var d=a[f++],h=a[f++];try{y=d(y)}catch(e){h.call(this,e);break}}try{c=Nt.call(this,y)}catch(e){return Promise.reject(e)}for(f=0,l=s.length;f<l;)c=c.then(s[f++],s[f++]);return c}},{key:"getUri",value:function(e){return Ie(st((e=ft(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}]);var e}();Oe.forEach(["delete","get","head","options"],(function(e){qt.prototype[e]=function(t,r){return this.request(ft(r||{},{method:e,url:t,data:(r||{}).data}))}})),Oe.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(ft(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}qt.prototype[e]=t(),qt.prototype[e+"Form"]=t(!0)}));var Wt=qt,zt=function(){function e(t){if(p(this,e),"function"!=typeof t)throw new TypeError("executor must be a function.");var r;this.promise=new Promise((function(e){r=e}));var n=this;this.promise.then((function(e){if(n._listeners){for(var t=n._listeners.length;t-- >0;)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},t((function(e,t,o){n.reason||(n.reason=new rt(e,t,o),r(n.reason))}))}return d(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}},{key:"toAbortSignal",value:function(){var e=this,t=new AbortController,r=function(e){t.abort(e)};return this.subscribe(r),t.signal.unsubscribe=function(){return e.unsubscribe(r)},t.signal}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}])}(),Ht=zt,Kt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Kt).forEach((function(e){var t=h(e,2);Kt[t[1]]=t[0]}));var Gt=Kt,Jt=function e(t){var r=new Wt(t),n=I(Wt.prototype.request,r);return Oe.extend(n,Wt.prototype,r,{allOwnKeys:!0}),Oe.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(ft(t,r))},n}(Ge);Jt.Axios=Wt,Jt.CanceledError=rt,Jt.CancelToken=Ht,Jt.isCancel=tt,Jt.VERSION="1.8.2",Jt.toFormData=Te,Jt.AxiosError=Se,Jt.Cancel=Jt.CanceledError,Jt.all=function(e){return Promise.all(e)},Jt.spread=function(e){return function(t){return e.apply(null,t)}},Jt.isAxiosError=function(e){return Oe.isObject(e)&&!0===e.isAxiosError},Jt.mergeConfig=ft,Jt.AxiosHeaders=Ze,Jt.formToJSON=function(e){return He(Oe.isHTMLForm(e)?new FormData(e):e)},Jt.getAdapter=It,Jt.HttpStatusCode=Gt,Jt.default=Jt;var Vt=O(Jt),$t=Function.prototype.toString,Qt=Object.create,Xt=Object.prototype.toString,Yt=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(e){return!!~this._keys.indexOf(e)},e.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},e.prototype.set=function(e,t){this._keys.push(e),this._values.push(t)},e}(),Zt="undefined"!=typeof WeakMap?function(){return new WeakMap}:function(){return new Yt};function er(e){if(!e)return Qt(null);var t=e.constructor;if(t===Object)return e===Object.prototype?{}:Qt(e);if(t&&~$t.call(t).indexOf("[native code]"))try{return new t}catch(e){}return Qt(e)}var tr="g"===/test/g.flags?function(e){return e.flags}:function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function rr(e){var t=Xt.call(e);return t.substring(8,t.length-1)}var nr="undefined"!=typeof Symbol?function(e){return e[Symbol.toStringTag]||rr(e)}:rr,or=Object.defineProperty,ir=Object.getOwnPropertyDescriptor,ar=Object.getOwnPropertyNames,ur=Object.getOwnPropertySymbols,cr=Object.prototype,sr=cr.hasOwnProperty,lr=cr.propertyIsEnumerable,fr="function"==typeof ur,pr=fr?function(e){return ar(e).concat(ur(e))}:ar;function yr(e,t,r){for(var n=pr(e),o=0,i=n.length,a=void 0,u=void 0;o<i;++o)if("callee"!==(a=n[o])&&"caller"!==a)if(u=ir(e,a)){u.get||u.set||(u.value=r.copier(u.value,r));try{or(t,a,u)}catch(e){t[a]=u.value}}else t[a]=r.copier(e[a],r);return t}function dr(e){return e.slice(0)}function hr(e,t){var r=new t.Constructor;return t.cache.set(e,r),e.forEach((function(e,n){r.set(n,t.copier(e,t))})),r}var vr=fr?function(e,t){var r=er(t.prototype);for(var n in t.cache.set(e,r),e)sr.call(e,n)&&(r[n]=t.copier(e[n],t));for(var o=ur(e),i=0,a=o.length,u=void 0;i<a;++i)lr.call(e,u=o[i])&&(r[u]=t.copier(e[u],t));return r}:function(e,t){var r=er(t.prototype);for(var n in t.cache.set(e,r),e)sr.call(e,n)&&(r[n]=t.copier(e[n],t));return r};function br(e,t){return new t.Constructor(e.valueOf())}function mr(e){return e}function gr(e,t){var r=new t.Constructor;return t.cache.set(e,r),e.forEach((function(e){r.add(t.copier(e,t))})),r}var wr=Array.isArray,Or=Object.assign,Sr=Object.getPrototypeOf||function(e){return e.__proto__},xr={array:function(e,t){var r=new t.Constructor;t.cache.set(e,r);for(var n=0,o=e.length;n<o;++n)r[n]=t.copier(e[n],t);return r},arrayBuffer:dr,blob:function(e){return e.slice(0,e.size,e.type)},dataView:function(e,t){return new t.Constructor(dr(e.buffer))},date:function(e,t){return new t.Constructor(e.getTime())},error:mr,map:hr,object:vr,regExp:function(e,t){var r=new t.Constructor(e.source,tr(e));return r.lastIndex=e.lastIndex,r},set:gr},jr=Or({},xr,{array:function(e,t){var r=new t.Constructor;return t.cache.set(e,r),yr(e,r,t)},map:function(e,t){return yr(e,hr(e,t),t)},object:function(e,t){var r=er(t.prototype);return t.cache.set(e,r),yr(e,r,t)},set:function(e,t){return yr(e,gr(e,t),t)}});function Ar(e){var t=function(e){return{Arguments:e.object,Array:e.array,ArrayBuffer:e.arrayBuffer,Blob:e.blob,Boolean:br,DataView:e.dataView,Date:e.date,Error:e.error,Float32Array:e.arrayBuffer,Float64Array:e.arrayBuffer,Int8Array:e.arrayBuffer,Int16Array:e.arrayBuffer,Int32Array:e.arrayBuffer,Map:e.map,Number:br,Object:e.object,Promise:mr,RegExp:e.regExp,Set:e.set,String:br,WeakMap:mr,WeakSet:mr,Uint8Array:e.arrayBuffer,Uint8ClampedArray:e.arrayBuffer,Uint16Array:e.arrayBuffer,Uint32Array:e.arrayBuffer,Uint64Array:e.arrayBuffer}}(Or({},xr,e)),r=t.Array,n=t.Object;function o(e,o){if(o.prototype=o.Constructor=void 0,!e||"object"!==s(e))return e;if(o.cache.has(e))return o.cache.get(e);if(o.prototype=Sr(e),o.Constructor=o.prototype&&o.prototype.constructor,!o.Constructor||o.Constructor===Object)return n(e,o);if(wr(e))return r(e,o);var i=t[nr(e)];return i?i(e,o):"function"==typeof e.then?e:n(e,o)}return function(e){return o(e,{Constructor:void 0,cache:Zt(),copier:o,prototype:void 0})}}Ar(Or({},jr,{}));var Er,kr,Pr=Ar({}),Tr={exports:{}},Rr=Tr.exports={};function Lr(){throw new Error("setTimeout has not been defined")}function _r(){throw new Error("clearTimeout has not been defined")}function Ur(e){if(Er===setTimeout)return setTimeout(e,0);if((Er===Lr||!Er)&&setTimeout)return Er=setTimeout,setTimeout(e,0);try{return Er(e,0)}catch(t){try{return Er.call(null,e,0)}catch(t){return Er.call(this,e,0)}}}!function(){try{Er="function"==typeof setTimeout?setTimeout:Lr}catch(e){Er=Lr}try{kr="function"==typeof clearTimeout?clearTimeout:_r}catch(e){kr=_r}}();var Ir,Cr=[],Nr=!1,Br=-1;function Dr(){Nr&&Ir&&(Nr=!1,Ir.length?Cr=Ir.concat(Cr):Br=-1,Cr.length&&Fr())}function Fr(){if(!Nr){var e=Ur(Dr);Nr=!0;for(var t=Cr.length;t;){for(Ir=Cr,Cr=[];++Br<t;)Ir&&Ir[Br].run();Br=-1,t=Cr.length}Ir=null,Nr=!1,function(e){if(kr===clearTimeout)return clearTimeout(e);if((kr===_r||!kr)&&clearTimeout)return kr=clearTimeout,clearTimeout(e);try{return kr(e)}catch(t){try{return kr.call(null,e)}catch(t){return kr.call(this,e)}}}(e)}}function Mr(e,t){this.fun=e,this.array=t}function qr(){}Rr.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Cr.push(new Mr(e,t)),1!==Cr.length||Nr||Ur(Fr)},Mr.prototype.run=function(){this.fun.apply(null,this.array)},Rr.title="browser",Rr.browser=!0,Rr.env={},Rr.argv=[],Rr.version="",Rr.versions={},Rr.on=qr,Rr.addListener=qr,Rr.once=qr,Rr.off=qr,Rr.removeListener=qr,Rr.removeAllListeners=qr,Rr.emit=qr,Rr.prependListener=qr,Rr.prependOnceListener=qr,Rr.listeners=function(){return[]},Rr.binding=function(){throw new Error("process.binding is not supported")},Rr.cwd=function(){return"/"},Rr.chdir=function(){throw new Error("process.chdir is not supported")},Rr.umask=function(){return 0};var Wr=O(Tr.exports);function zr(){}var Hr=function(e){return new Promise((function(t){setTimeout(t,e)}))};function Kr(e,t){return Kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kr(e,t)}function Gr(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kr(e,t)}var Jr="object"==("undefined"==typeof global?"undefined":s(global))&&global&&global.Object===Object&&global,Vr="object"==("undefined"==typeof self?"undefined":s(self))&&self&&self.Object===Object&&self,$r=(Jr||Vr||Function("return this")()).Symbol,Qr=Object.prototype,Xr=Qr.hasOwnProperty,Yr=Qr.toString,Zr=$r?$r.toStringTag:void 0,en=Object.prototype.toString,tn=$r?$r.toStringTag:void 0,rn=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":tn&&tn in Object(e)?function(e){var t=Xr.call(e,Zr),r=e[Zr];try{e[Zr]=void 0;var n=!0}catch(e){}var o=Yr.call(e);return n&&(t?e[Zr]=r:delete e[Zr]),o}(e):function(e){return en.call(e)}(e)},nn=function(e){return null!=e&&"object"==s(e)},on=rn,an=Array.isArray,un=nn,cn=O((function(e){return"string"==typeof e||!an(e)&&un(e)&&"[object String]"==on(e)}));function sn(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ln(e){return ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ln(e)}function fn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fn=function(){return!!e})()}function pn(e){var t="function"==typeof Map?new Map:void 0;return pn=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(fn())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Kr(o,r.prototype),o}(e,arguments,ln(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Kr(r,e)},pn(e)}function yn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function dn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dn=function(){return!!e})()}var hn=function(e){function t(){var e,r,n,o;return p(this,t),r=this,o=["Throttled function aborted"],n=ln(n=t),(e=sn(r,dn()?Reflect.construct(n,o||[],ln(r).constructor):n.apply(r,o))).name="AbortError",e}return Gr(t,e),d(t)}(pn(Error));function vn(){vn=function(e,t){return new r(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function r(e,n,o){var i=RegExp(e,n);return t.set(i,o||t.get(e)),Kr(i,r.prototype)}function n(e,r){var n=t.get(r);return Object.keys(n).reduce((function(t,r){var o=n[r];if("number"==typeof o)t[r]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;t[r]=e[o[i]]}return t}),Object.create(null))}return Gr(r,RegExp),r.prototype.exec=function(t){var r=e.exec.call(this,t);if(r){r.groups=n(r,this);var o=r.indices;o&&(o.groups=n(o,this))}return r},r.prototype[Symbol.replace]=function(r,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,r,o.replace(/\$<([^>]+)>/g,(function(e,t){var r=i[t];return"$"+(Array.isArray(r)?r.join("$"):r)})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,r,(function(){var e=arguments;return"object"!=s(e[e.length-1])&&(e=[].slice.call(e)).push(n(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,r,o)},vn.apply(this,arguments)}var bn=vn(/(\d+)(%)/,{value:1});function mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:7,r=t;if(bn.test(e)){var n,o=null===(n=e.match(bn))||void 0===n?void 0:n.groups;if(o&&o.value){var i=parseInt(o.value)/100;r=Math.round(t*i)}}return Math.min(30,Math.max(1,r))}function gn(e,t){return t("info","Throttle request to ".concat(e,"/s")),function(e){var t=e.limit,n=e.interval,o=e.onDelay;if(!Number.isFinite(t))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(n))throw new TypeError("Expected `interval` to be a finite number");var i=new Map,a=0,u=0;return function(e){var c=function(){for(var s,l=this,f=arguments.length,p=new Array(f),y=0;y<f;y++)p[y]=arguments[y];return c.isEnabled?new Promise((function(r,c){var f,y=function(){r(e.apply(l,p)),i.delete(s)},d=(f=Date.now())-a>n?(u=1,a=f,0):(u<t?u++:(a+=n,u=1),a-f);d>0?(s=setTimeout(y,d),i.set(s,c),null==o||o.apply(void 0,p)):y()})):r(P.mark((function t(){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.apply(l,p));case 1:case"end":return t.stop()}}),t)})))()};return c.abort=function(){var e,t=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,t){if(e){if("string"==typeof e)return yn(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yn(e,t):void 0}}(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(i.keys());try{for(t.s();!(e=t.n()).done;){var r=e.value;clearTimeout(r),i.get(r)(new hn)}}catch(e){t.e(e)}finally{t.f()}i.clear()},c.isEnabled=!0,Object.defineProperty(c,"queueSize",{get:function(){return i.size}}),c}}({limit:e,interval:1e3})}var wn,On=Error,Sn=EvalError,xn=RangeError,jn=ReferenceError,An=SyntaxError,En=TypeError,kn=URIError,Pn="undefined"!=typeof Symbol&&Symbol,Tn={__proto__:null,foo:{}},Rn=Object,Ln=Object.prototype.toString,_n=Math.max,Un=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r},In=Function.prototype.bind||function(e){var t=this;if("function"!=typeof t||"[object Function]"!==Ln.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,n=function(e){for(var t=[],r=1,n=0;r<e.length;r+=1,n+=1)t[n]=e[r];return t}(arguments),o=_n(0,t.length-n.length),i=[],a=0;a<o;a++)i[a]="$"+a;if(r=Function("binder","return function ("+function(e){for(var t="",r=0;r<e.length;r+=1)t+=e[r],r+1<e.length&&(t+=",");return t}(i)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var o=t.apply(this,Un(n,arguments));return Object(o)===o?o:this}return t.apply(e,Un(n,arguments))})),t.prototype){var u=function(){};u.prototype=t.prototype,r.prototype=new u,u.prototype=null}return r},Cn=In.call(Function.prototype.call,Object.prototype.hasOwnProperty),Nn=On,Bn=Sn,Dn=xn,Fn=jn,Mn=An,qn=En,Wn=kn,zn=Function,Hn=function(e){try{return zn('"use strict"; return ('+e+").constructor;")()}catch(e){}},Kn=Object.getOwnPropertyDescriptor;if(Kn)try{Kn({},"")}catch(e){Kn=null}var Gn=function(){throw new qn},Jn=Kn?function(){try{return Gn}catch(e){try{return Kn(arguments,"callee").get}catch(e){return Gn}}}():Gn,Vn="function"==typeof Pn&&"function"==typeof Symbol&&"symbol"===s(Pn("foo"))&&"symbol"===s(Symbol("bar"))&&function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===s(Symbol.iterator))return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}(),$n=Object.getPrototypeOf||({__proto__:Tn}.foo!==Tn.foo||Tn instanceof Rn?null:function(e){return e.__proto__}),Qn={},Xn="undefined"!=typeof Uint8Array&&$n?$n(Uint8Array):wn,Yn={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?wn:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?wn:ArrayBuffer,"%ArrayIteratorPrototype%":Vn&&$n?$n([][Symbol.iterator]()):wn,"%AsyncFromSyncIteratorPrototype%":wn,"%AsyncFunction%":Qn,"%AsyncGenerator%":Qn,"%AsyncGeneratorFunction%":Qn,"%AsyncIteratorPrototype%":Qn,"%Atomics%":"undefined"==typeof Atomics?wn:Atomics,"%BigInt%":"undefined"==typeof BigInt?wn:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?wn:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?wn:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?wn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Nn,"%eval%":eval,"%EvalError%":Bn,"%Float32Array%":"undefined"==typeof Float32Array?wn:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?wn:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?wn:FinalizationRegistry,"%Function%":zn,"%GeneratorFunction%":Qn,"%Int8Array%":"undefined"==typeof Int8Array?wn:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?wn:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?wn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Vn&&$n?$n($n([][Symbol.iterator]())):wn,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":s(JSON))?JSON:wn,"%Map%":"undefined"==typeof Map?wn:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Vn&&$n?$n((new Map)[Symbol.iterator]()):wn,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?wn:Promise,"%Proxy%":"undefined"==typeof Proxy?wn:Proxy,"%RangeError%":Dn,"%ReferenceError%":Fn,"%Reflect%":"undefined"==typeof Reflect?wn:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?wn:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Vn&&$n?$n((new Set)[Symbol.iterator]()):wn,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?wn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Vn&&$n?$n(""[Symbol.iterator]()):wn,"%Symbol%":Vn?Symbol:wn,"%SyntaxError%":Mn,"%ThrowTypeError%":Jn,"%TypedArray%":Xn,"%TypeError%":qn,"%Uint8Array%":"undefined"==typeof Uint8Array?wn:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?wn:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?wn:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?wn:Uint32Array,"%URIError%":Wn,"%WeakMap%":"undefined"==typeof WeakMap?wn:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?wn:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?wn:WeakSet};if($n)try{null.error}catch(e){var Zn=$n($n(e));Yn["%Error.prototype%"]=Zn}var eo,to,ro=function e(t){var r;if("%AsyncFunction%"===t)r=Hn("async function () {}");else if("%GeneratorFunction%"===t)r=Hn("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=Hn("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&$n&&(r=$n(o.prototype))}return Yn[t]=r,r},no={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},oo=In,io=Cn,ao=oo.call(Function.call,Array.prototype.concat),uo=oo.call(Function.apply,Array.prototype.splice),co=oo.call(Function.call,String.prototype.replace),so=oo.call(Function.call,String.prototype.slice),lo=oo.call(Function.call,RegExp.prototype.exec),fo=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,po=/\\(\\)?/g,yo=function(e,t){var r,n=e;if(io(no,n)&&(n="%"+(r=no[n])[0]+"%"),io(Yn,n)){var o=Yn[n];if(o===Qn&&(o=ro(n)),void 0===o&&!t)throw new qn("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Mn("intrinsic "+e+" does not exist!")},ho=function(e,t){if("string"!=typeof e||0===e.length)throw new qn("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new qn('"allowMissing" argument must be a boolean');if(null===lo(/^%?[^%]*%?$/,e))throw new Mn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=so(e,0,1),r=so(e,-1);if("%"===t&&"%"!==r)throw new Mn("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new Mn("invalid intrinsic syntax, expected opening `%`");var n=[];return co(e,fo,(function(e,t,r,o){n[n.length]=r?co(o,po,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=yo("%"+n+"%",t),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],uo(r,ao([0,1],c)));for(var s=1,l=!0;s<r.length;s+=1){var f=r[s],p=so(f,0,1),y=so(f,-1);if(('"'===p||"'"===p||"`"===p||'"'===y||"'"===y||"`"===y)&&p!==y)throw new Mn("property names with quotes must have matching quotes");if("constructor"!==f&&l||(u=!0),io(Yn,i="%"+(n+="."+f)+"%"))a=Yn[i];else if(null!=a){if(!(f in a)){if(!t)throw new qn("base intrinsic for "+e+" exists, but the property is not available.");return}if(Kn&&s+1>=r.length){var d=Kn(a,f);a=(l=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[f]}else l=io(a,f),a=a[f];l&&!u&&(Yn[i]=a)}}return a},vo={exports:{}};function bo(){if(to)return eo;to=1;var e=ho("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}return eo=e}var mo=ho("%Object.getOwnPropertyDescriptor%",!0);if(mo)try{mo([],"length")}catch(e){mo=null}var go=mo,wo=bo(),Oo=An,So=En,xo=go,jo=bo(),Ao=function(){return!!jo};Ao.hasArrayLengthDefineBug=function(){if(!jo)return null;try{return 1!==jo([],"length",{value:1}).length}catch(e){return!0}};var Eo=ho,ko=function(e,t,r){if(!e||"object"!==s(e)&&"function"!=typeof e)throw new So("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!==s(t))throw new So("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new So("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new So("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new So("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new So("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,a=arguments.length>6&&arguments[6],u=!!xo&&xo(e,t);if(wo)wo(e,t,{configurable:null===i&&u?u.configurable:!i,enumerable:null===n&&u?u.enumerable:!n,value:r,writable:null===o&&u?u.writable:!o});else{if(!a&&(n||o||i))throw new Oo("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}},Po=Ao(),To=go,Ro=En,Lo=Eo("%Math.floor%"),_o=function(e,t){if("function"!=typeof e)throw new Ro("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||Lo(t)!==t)throw new Ro("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in e&&To){var i=To(e,"length");i&&!i.configurable&&(n=!1),i&&!i.writable&&(o=!1)}return(n||o||!r)&&(Po?ko(e,"length",t,!0,!0):ko(e,"length",t)),e};!function(e){var t=In,r=ho,n=_o,o=En,i=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),u=r("%Reflect.apply%",!0)||t.call(a,i),c=bo(),s=r("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new o("a function is required");var r=u(t,a,arguments);return n(r,1+s(0,e.length-(arguments.length-1)),!0)};var l=function(){return u(t,i,arguments)};c?c(e.exports,"apply",{value:l}):e.exports.apply=l}(vo);var Uo=ho,Io=vo.exports,Co=Io(Uo("String.prototype.indexOf")),No=S(Object.freeze({__proto__:null,default:{}})),Bo="function"==typeof Map&&Map.prototype,Do=Object.getOwnPropertyDescriptor&&Bo?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Fo=Bo&&Do&&"function"==typeof Do.get?Do.get:null,Mo=Bo&&Map.prototype.forEach,qo="function"==typeof Set&&Set.prototype,Wo=Object.getOwnPropertyDescriptor&&qo?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,zo=qo&&Wo&&"function"==typeof Wo.get?Wo.get:null,Ho=qo&&Set.prototype.forEach,Ko="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Go="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Jo="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Vo=Boolean.prototype.valueOf,$o=Object.prototype.toString,Qo=Function.prototype.toString,Xo=String.prototype.match,Yo=String.prototype.slice,Zo=String.prototype.replace,ei=String.prototype.toUpperCase,ti=String.prototype.toLowerCase,ri=RegExp.prototype.test,ni=Array.prototype.concat,oi=Array.prototype.join,ii=Array.prototype.slice,ai=Math.floor,ui="function"==typeof BigInt?BigInt.prototype.valueOf:null,ci=Object.getOwnPropertySymbols,si="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?Symbol.prototype.toString:null,li="function"==typeof Symbol&&"object"===s(Symbol.iterator),fi="function"==typeof Symbol&&Symbol.toStringTag&&(s(Symbol.toStringTag),1)?Symbol.toStringTag:null,pi=Object.prototype.propertyIsEnumerable,yi=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function di(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||ri.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-ai(-e):ai(e);if(n!==e){var o=String(n),i=Yo.call(t,o.length+1);return Zo.call(o,r,"$&_")+"."+Zo.call(Zo.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Zo.call(t,r,"$&_")}var hi=No,vi=hi.custom,bi=Si(vi)?vi:null;function mi(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function gi(e){return Zo.call(String(e),/"/g,""")}function wi(e){return!("[object Array]"!==Ai(e)||fi&&"object"===s(e)&&fi in e)}function Oi(e){return!("[object RegExp]"!==Ai(e)||fi&&"object"===s(e)&&fi in e)}function Si(e){if(li)return e&&"object"===s(e)&&e instanceof Symbol;if("symbol"===s(e))return!0;if(!e||"object"!==s(e)||!si)return!1;try{return si.call(e),!0}catch(e){}return!1}var xi=Object.prototype.hasOwnProperty||function(e){return e in this};function ji(e,t){return xi.call(e,t)}function Ai(e){return $o.call(e)}function Ei(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function ki(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return ki(Yo.call(e,0,t.maxStringLength),t)+n}return mi(Zo.call(Zo.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Pi),"single",t)}function Pi(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+ei.call(t.toString(16))}function Ti(e){return"Object("+e+")"}function Ri(e){return e+" { ? }"}function Li(e,t,r,n){return e+" ("+t+") {"+(n?_i(r,n):oi.call(r,", "))+"}"}function _i(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+oi.call(e,","+r)+"\n"+t.prev}function Ui(e,t){var r=wi(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=ji(e,o)?t(e[o],e):""}var i,a="function"==typeof ci?ci(e):[];if(li){i={};for(var u=0;u<a.length;u++)i["$"+a[u]]=a[u]}for(var c in e)ji(e,c)&&(r&&String(Number(c))===c&&c<e.length||li&&i["$"+c]instanceof Symbol||(ri.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof ci)for(var s=0;s<a.length;s++)pi.call(e,a[s])&&n.push("["+t(a[s])+"]: "+t(e[a[s]],e));return n}var Ii=ho,Ci=function(e,t){var r=Uo(e,!!t);return"function"==typeof r&&Co(e,".prototype.")>-1?Io(r):r},Ni=function e(t,r,n,o){var i=r||{};if(ji(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ji(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!ji(i,"customInspect")||i.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ji(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ji(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=i.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return ki(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return u?di(t,c):c}if("bigint"==typeof t){var l=String(t)+"n";return u?di(t,l):l}var f=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=f&&f>0&&"object"===s(t))return wi(t)?"[Array]":"[Object]";var p=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=oi.call(Array(e.indent+1)," ")}return{base:r,prev:oi.call(Array(t+1),r)}}(i,n);if(void 0===o)o=[];else if(Ei(o,t)>=0)return"[Circular]";function y(t,r,a){if(r&&(o=ii.call(o)).push(r),a){var u={depth:i.depth};return ji(i,"quoteStyle")&&(u.quoteStyle=i.quoteStyle),e(t,u,n+1,o)}return e(t,i,n+1,o)}if("function"==typeof t&&!Oi(t)){var d=function(e){if(e.name)return e.name;var t=Xo.call(Qo.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),h=Ui(t,y);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(h.length>0?" { "+oi.call(h,", ")+" }":"")}if(Si(t)){var v=li?Zo.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):si.call(t);return"object"!==s(t)||li?v:Ti(v)}if(function(e){return!(!e||"object"!==s(e))&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}(t)){for(var b="<"+ti.call(String(t.nodeName)),m=t.attributes||[],g=0;g<m.length;g++)b+=" "+m[g].name+"="+mi(gi(m[g].value),"double",i);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+"</"+ti.call(String(t.nodeName))+">"}if(wi(t)){if(0===t.length)return"[]";var w=Ui(t,y);return p&&!function(e){for(var t=0;t<e.length;t++)if(Ei(e[t],"\n")>=0)return!1;return!0}(w)?"["+_i(w,p)+"]":"[ "+oi.call(w,", ")+" ]"}if(function(e){return!("[object Error]"!==Ai(e)||fi&&"object"===s(e)&&fi in e)}(t)){var O=Ui(t,y);return"cause"in Error.prototype||!("cause"in t)||pi.call(t,"cause")?0===O.length?"["+String(t)+"]":"{ ["+String(t)+"] "+oi.call(O,", ")+" }":"{ ["+String(t)+"] "+oi.call(ni.call("[cause]: "+y(t.cause),O),", ")+" }"}if("object"===s(t)&&a){if(bi&&"function"==typeof t[bi]&&hi)return hi(t,{depth:f-n});if("symbol"!==a&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Fo||!e||"object"!==s(e))return!1;try{Fo.call(e);try{zo.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var S=[];return Mo&&Mo.call(t,(function(e,r){S.push(y(r,t,!0)+" => "+y(e,t))})),Li("Map",Fo.call(t),S,p)}if(function(e){if(!zo||!e||"object"!==s(e))return!1;try{zo.call(e);try{Fo.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var x=[];return Ho&&Ho.call(t,(function(e){x.push(y(e,t))})),Li("Set",zo.call(t),x,p)}if(function(e){if(!Ko||!e||"object"!==s(e))return!1;try{Ko.call(e,Ko);try{Go.call(e,Go)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Ri("WeakMap");if(function(e){if(!Go||!e||"object"!==s(e))return!1;try{Go.call(e,Go);try{Ko.call(e,Ko)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Ri("WeakSet");if(function(e){if(!Jo||!e||"object"!==s(e))return!1;try{return Jo.call(e),!0}catch(e){}return!1}(t))return Ri("WeakRef");if(function(e){return!("[object Number]"!==Ai(e)||fi&&"object"===s(e)&&fi in e)}(t))return Ti(y(Number(t)));if(function(e){if(!e||"object"!==s(e)||!ui)return!1;try{return ui.call(e),!0}catch(e){}return!1}(t))return Ti(y(ui.call(t)));if(function(e){return!("[object Boolean]"!==Ai(e)||fi&&"object"===s(e)&&fi in e)}(t))return Ti(Vo.call(t));if(function(e){return!("[object String]"!==Ai(e)||fi&&"object"===s(e)&&fi in e)}(t))return Ti(y(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||"undefined"!=typeof global&&t===global)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==Ai(e)||fi&&"object"===s(e)&&fi in e)}(t)&&!Oi(t)){var j=Ui(t,y),A=yi?yi(t)===Object.prototype:t instanceof Object||t.constructor===Object,E=t instanceof Object?"":"null prototype",k=!A&&fi&&Object(t)===t&&fi in t?Yo.call(Ai(t),8,-1):E?"Object":"",P=(A||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(k||E?"["+oi.call(ni.call([],k||[],E||[]),": ")+"] ":"");return 0===j.length?P+"{}":p?P+"{"+_i(j,p)+"}":P+"{ "+oi.call(j,", ")+" }"}return String(t)},Bi=En,Di=Ii("%WeakMap%",!0),Fi=Ii("%Map%",!0),Mi=Ci("WeakMap.prototype.get",!0),qi=Ci("WeakMap.prototype.set",!0),Wi=Ci("WeakMap.prototype.has",!0),zi=Ci("Map.prototype.get",!0),Hi=Ci("Map.prototype.set",!0),Ki=Ci("Map.prototype.has",!0),Gi=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},Ji=String.prototype.replace,Vi=/%20/g,$i="RFC3986",Qi={default:$i,formatters:{RFC1738:function(e){return Ji.call(e,Vi,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:$i},Xi=Qi,Yi=Object.prototype.hasOwnProperty,Zi=Array.isArray,ea=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),ta=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},ra=1024,na={arrayToObject:ta,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),u=0;u<a.length;++u){var c=a[u],l=i[c];"object"===s(l)&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:i,prop:c}),r.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(Zi(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,n,o){if(0===e.length)return e;var i=e;if("symbol"===s(e)?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",u=0;u<i.length;u+=ra){for(var c=i.length>=ra?i.slice(u,u+ra):i,l=[],f=0;f<c.length;++f){var p=c.charCodeAt(f);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===Xi.RFC1738&&(40===p||41===p)?l[l.length]=c.charAt(f):p<128?l[l.length]=ea[p]:p<2048?l[l.length]=ea[192|p>>6]+ea[128|63&p]:p<55296||p>=57344?l[l.length]=ea[224|p>>12]+ea[128|p>>6&63]+ea[128|63&p]:(p=65536+((1023&p)<<10|1023&c.charCodeAt(f+=1)),l[l.length]=ea[240|p>>18]+ea[128|p>>12&63]+ea[128|p>>6&63]+ea[128|63&p])}a+=l.join("")}return a},isBuffer:function(e){return!(!e||"object"!==s(e)||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Zi(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!==s(r)){if(Zi(t))t.push(r);else{if(!t||"object"!==s(t))return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!Yi.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==s(t))return[t].concat(r);var o=t;return Zi(t)&&!Zi(r)&&(o=ta(t,n)),Zi(t)&&Zi(r)?(r.forEach((function(r,o){if(Yi.call(t,o)){var i=t[o];i&&"object"===s(i)&&r&&"object"===s(r)?t[o]=e(i,r,n):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];return t[o]=Yi.call(t,o)?e(t[o],i,n):i,t}),o)}},oa=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new Bi("Side channel does not contain "+Ni(e))},get:function(n){if(Di&&n&&("object"===s(n)||"function"==typeof n)){if(e)return Mi(e,n)}else if(Fi){if(t)return zi(t,n)}else if(r)return function(e,t){var r=Gi(e,t);return r&&r.value}(r,n)},has:function(n){if(Di&&n&&("object"===s(n)||"function"==typeof n)){if(e)return Wi(e,n)}else if(Fi){if(t)return Ki(t,n)}else if(r)return function(e,t){return!!Gi(e,t)}(r,n);return!1},set:function(n,o){Di&&n&&("object"===s(n)||"function"==typeof n)?(e||(e=new Di),qi(e,n,o)):Fi?(t||(t=new Fi),Hi(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=Gi(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n},ia=na,aa=Qi,ua=Object.prototype.hasOwnProperty,ca={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},sa=Array.isArray,la=Array.prototype.push,fa=function(e,t){la.apply(e,sa(t)?t:[t])},pa=Date.prototype.toISOString,ya=aa.default,da={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ia.encode,encodeValuesOnly:!1,format:ya,formatter:aa.formatters[ya],indices:!1,serializeDate:function(e){return pa.call(e)},skipNulls:!1,strictNullHandling:!1},ha={},va=function e(t,r,n,o,i,a,u,c,l,f,p,y,d,h,v,b,m,g){for(var w,O=t,S=g,x=0,j=!1;void 0!==(S=S.get(ha))&&!j;){var A=S.get(t);if(x+=1,void 0!==A){if(A===x)throw new RangeError("Cyclic object value");j=!0}void 0===S.get(ha)&&(x=0)}if("function"==typeof f?O=f(r,O):O instanceof Date?O=d(O):"comma"===n&&sa(O)&&(O=ia.maybeMap(O,(function(e){return e instanceof Date?d(e):e}))),null===O){if(a)return l&&!b?l(r,da.encoder,m,"key",h):r;O=""}if("string"==typeof(w=O)||"number"==typeof w||"boolean"==typeof w||"symbol"===s(w)||"bigint"==typeof w||ia.isBuffer(O))return l?[v(b?r:l(r,da.encoder,m,"key",h))+"="+v(l(O,da.encoder,m,"value",h))]:[v(r)+"="+v(String(O))];var E,k=[];if(void 0===O)return k;if("comma"===n&&sa(O))b&&l&&(O=ia.maybeMap(O,l)),E=[{value:O.length>0?O.join(",")||null:void 0}];else if(sa(f))E=f;else{var P=Object.keys(O);E=p?P.sort(p):P}var T=c?r.replace(/\./g,"%2E"):r,R=o&&sa(O)&&1===O.length?T+"[]":T;if(i&&sa(O)&&0===O.length)return R+"[]";for(var L=0;L<E.length;++L){var _=E[L],U="object"===s(_)&&void 0!==_.value?_.value:O[_];if(!u||null!==U){var I=y&&c?_.replace(/\./g,"%2E"):_,C=sa(O)?"function"==typeof n?n(R,I):R:R+(y?"."+I:"["+I+"]");g.set(t,x);var N=oa();N.set(ha,g),fa(k,e(U,C,n,o,i,a,u,c,"comma"===n&&b&&sa(O)?null:l,f,p,y,d,h,v,b,m,N))}}return k},ba=na,ma=Object.prototype.hasOwnProperty,ga=Array.isArray,wa={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:ba.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},Oa=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Sa=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},xa=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),u=a?o.slice(0,a.index):o,c=[];if(u){if(!r.plainObjects&&ma.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(u)}for(var s=0;r.depth>0&&null!==(a=i.exec(o))&&s<r.depth;){if(s+=1,!r.plainObjects&&ma.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}if(a){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");c.push("["+o.slice(a.index)+"]")}return function(e,t,r,n){for(var o=n?t:Sa(t,r),i=e.length-1;i>=0;--i){var a,u=e[i];if("[]"===u&&r.parseArrays)a=r.allowEmptyArrays&&(""===o||r.strictNullHandling&&null===o)?[]:[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,s=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,l=parseInt(s,10);r.parseArrays||""!==s?!isNaN(l)&&u!==s&&String(l)===s&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=o:"__proto__"!==s&&(a[s]=o):a={0:o}}o=a}return o}(c,t,r,n)}},ja=O({formats:Qi,parse:function(e,t){var r=function(e){if(!e)return wa;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!=e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?wa.charset:e.charset,r=void 0===e.duplicates?wa.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||wa.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:wa.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:wa.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:wa.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:wa.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:wa.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:wa.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:wa.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:wa.decoder,delimiter:"string"==typeof e.delimiter||ba.isRegExp(e.delimiter)?e.delimiter:wa.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:wa.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:wa.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:wa.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:wa.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:wa.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:wa.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){var r,n={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=(o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]")).split(t.delimiter,t.parameterLimit===1/0?void 0:t.parameterLimit),a=-1,u=t.charset;if(t.charsetSentinel)for(r=0;r<i.length;++r)0===i[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===i[r]?u="utf-8":"utf8=%26%2310003%3B"===i[r]&&(u="iso-8859-1"),a=r,r=i.length);for(r=0;r<i.length;++r)if(r!==a){var c,s,l=i[r],f=l.indexOf("]="),p=-1===f?l.indexOf("="):f+1;-1===p?(c=t.decoder(l,wa.decoder,u,"key"),s=t.strictNullHandling?null:""):(c=t.decoder(l.slice(0,p),wa.decoder,u,"key"),s=ba.maybeMap(Sa(l.slice(p+1),t),(function(e){return t.decoder(e,wa.decoder,u,"value")}))),s&&t.interpretNumericEntities&&"iso-8859-1"===u&&(s=Oa(s)),l.indexOf("[]=")>-1&&(s=ga(s)?[s]:s);var y=ma.call(n,c);y&&"combine"===t.duplicates?n[c]=ba.combine(n[c],s):y&&"last"!==t.duplicates||(n[c]=s)}return n}(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var u=i[a],c=xa(u,n[u],r,"string"==typeof e);o=ba.merge(o,c,r)}return!0===r.allowSparse?o:ba.compact(o)},stringify:function(e,t){var r,n=e,o=function(e){if(!e)return da;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!=e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||da.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=aa.default;if(void 0!==e.format){if(!ua.call(aa.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,o=aa.formatters[r],i=da.filter;if(("function"==typeof e.filter||sa(e.filter))&&(i=e.filter),n=e.arrayFormat in ca?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":da.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:da.addQueryPrefix,allowDots:void 0===e.allowDots?!0===e.encodeDotInKeys||da.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:da.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:da.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?da.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:da.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:da.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:da.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:da.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:da.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:da.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:da.strictNullHandling}}(t);"function"==typeof o.filter?n=(0,o.filter)("",n):sa(o.filter)&&(r=o.filter);var i=[];if("object"!==s(n)||null===n)return"";var a=ca[o.arrayFormat],u="comma"===a&&o.commaRoundTrip;r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var c=oa(),l=0;l<r.length;++l){var f=r[l];o.skipNulls&&null===n[f]||fa(i,va(n[f],f,a,u,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var p=i.join(o.delimiter),y=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&(y+="iso-8859-1"===o.charset?"utf8=%26%2310003%3B&":"utf8=%E2%9C%93&"),p.length>0?y+p:""}});function Aa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ea(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Aa(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Aa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ka=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function Pa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ta(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pa(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ra(e,t){var n=function(e){var t=Ea(Ea({},{insecure:!1,retryOnError:!0,logHandler:function(e,t){"error"===e&&t&&[t.name,t.message].filter((function(e){return e})).join(" - ")},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824}),e);if(!t.accessToken){var r=new TypeError("Expected parameter accessToken");throw t.logHandler("error",r),r}var n=t.insecure?"http":"https",o=t.space?"".concat(t.space,"/"):"",i=t.defaultHostname,a=t.insecure?80:443;if(t.host&&ka.test(t.host)){var u=t.host.split(":");if(2===u.length){var c=h(u,2);i=c[0],a=c[1]}else i=u[0]}t.basePath&&(t.basePath="/".concat(t.basePath.split("/").filter(Boolean).join("/")));var s=e.baseURL||"".concat(n,"://").concat(i,":").concat(a).concat(t.basePath,"/spaces/").concat(o);return t.headers.Authorization||"function"==typeof t.accessToken||(t.headers.Authorization="Bearer "+t.accessToken),{baseURL:s,headers:t.headers,httpAgent:t.httpAgent,httpsAgent:t.httpsAgent,proxy:t.proxy,timeout:t.timeout,adapter:t.adapter,maxContentLength:t.maxContentLength,maxBodyLength:t.maxBodyLength,paramsSerializer:{serialize:function(e){return ja.stringify(e)}},logHandler:t.logHandler,responseLogger:t.responseLogger,requestLogger:t.requestLogger,retryOnError:t.retryOnError}}(t),o=e.create(n);return o.httpClientParams=t,o.cloneWithNewParams=function(r){return Ra(e,Ta(Ta({},function(e){var t=Pr(e);return t.httpAgent=e.httpAgent,t.httpsAgent=e.httpsAgent,t}(t)),r))},t.onBeforeRequest&&o.interceptors.request.use(t.onBeforeRequest),"function"==typeof t.accessToken&&function(e,t){e.interceptors.request.use((function(e){return t().then((function(t){return e.headers.set("Authorization","Bearer ".concat(t)),e}))}))}(o,t.accessToken),t.throttle&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",r=e.defaults.logHandler,n=void 0===r?zr:r,o=cn(t)?mn(t):mn("auto",t),i=gn(o,n),a=!1,u=e.interceptors.request.use((function(e){return i((function(){return e}))()}),(function(e){return Promise.reject(e)}));e.interceptors.response.use((function(r){if(!a&&cn(t)&&("auto"===t||bn.test(t))&&r.headers&&r.headers["x-contentful-ratelimit-second-limit"]){var c=parseInt(r.headers["x-contentful-ratelimit-second-limit"]),s=mn(t,c);s!==o&&(u&&e.interceptors.request.eject(u),o=s,i=gn(s,n),u=e.interceptors.request.use((function(e){return i((function(){return e}))()}),(function(e){return Promise.reject(e)}))),a=!0}return r}),(function(e){return Promise.reject(e)}))}(o,t.throttle),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=e.defaults,o=n.responseLogger,i=void 0===o?zr:o,a=n.requestLogger,u=void 0===a?zr:a;e.interceptors.request.use((function(e){return u(e),e}),(function(e){return u(e),Promise.reject(e)})),e.interceptors.response.use((function(e){return i(e),e}),function(){var n=r(P.mark((function r(n){var o,a,u,c,s;return P.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=n.response,a=n.config,i(n),a&&e.defaults.retryOnError){r.next=5;break}return r.abrupt("return",Promise.reject(n));case 5:if(!((u=a.attempts||1)>t)){r.next=9;break}return n.attempts=a.attempts,r.abrupt("return",Promise.reject(n));case 9:if(c=null,s=Math.pow(Math.SQRT2,u),o?o.status>=500&&o.status<600?c="Server ".concat(o.status):429===o.status&&(c="Rate limit",o.headers&&n.response.headers["x-contentful-ratelimit-reset"]&&(s=o.headers["x-contentful-ratelimit-reset"])):c="Connection",!c){r.next=19;break}return s=Math.floor(1e3*s+200*Math.random()+500),e.defaults.logHandler("warning","".concat(c," error occurred. Waiting for ").concat(s," ms before retrying...")),a.attempts=u+1,delete a.httpAgent,delete a.httpsAgent,r.abrupt("return",Hr(s).then((function(){return e(a)})));case 19:return r.abrupt("return",Promise.reject(n));case 20:case"end":return r.stop()}}),r)})));return function(e){return n.apply(this,arguments)}}())}(o,t.retryLimit),t.onError&&o.interceptors.response.use((function(e){return e}),t.onError),o}function La(e){var t=e.query,r={};return delete t.resolveLinks,r.params=Pr(t),r}function _a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ua(e){var t,r=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,t){if(e){if("string"==typeof e)return _a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_a(e,t):void 0}}(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(Object.getOwnPropertyNames(e));try{for(r.s();!(t=r.n()).done;){var n=e[t.value];n&&"object"===s(n)&&Ua(n)}}catch(e){r.e(e)}finally{r.f()}return Object.freeze(e)}function Ia(){var e=window;if(!e)return null;var t=e.navigator.userAgent,r=e.navigator.platform;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(r)?"macOS":-1!==["iPhone","iPad","iPod"].indexOf(r)?"iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(r)?"Windows":/Android/.test(t)?"Android":/Linux/.test(r)?"Linux":null}function Ca(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return Pr(this)}})}var Na,Ba,Da=(Na=Object.getPrototypeOf,Ba=Object,function(e){return Na(Ba(e))}),Fa=rn,Ma=Da,qa=nn,Wa=Function.prototype.toString,za=Object.prototype.hasOwnProperty,Ha=Wa.call(Object),Ka=O((function(e){if(!qa(e)||"[object Object]"!=Fa(e))return!1;var t=Ma(e);if(null===t)return!0;var r=za.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Wa.call(r)==Ha}));function Ga(e){var t,r=e.config,n=e.response;if(r&&r.headers&&r.headers.Authorization){var o="...".concat(r.headers.Authorization.toString().substr(-5));r.headers.Authorization="Bearer ".concat(o)}if(!Ka(n)||!Ka(r))throw e;var i,a=null==n?void 0:n.data,u={status:null==n?void 0:n.status,statusText:null==n?void 0:n.statusText,message:"",details:{}};r&&Ka(r)&&(u.request={url:r.url,headers:r.headers,method:r.method,payloadData:r.data}),a&&"object"===s(a)&&("requestId"in a&&(u.requestId=a.requestId||"UNKNOWN"),"message"in a&&(u.message=a.message||""),"details"in a&&(u.details=a.details||{}),t=null===(i=a.sys)||void 0===i?void 0:i.id);var c=new Error;c.name=t&&"Unknown"!==t?t:"".concat(null==n?void 0:n.status," ").concat(null==n?void 0:n.statusText);try{c.message=JSON.stringify(u,null," ")}catch(e){var l;c.message=null!==(l=null==u?void 0:u.message)&&void 0!==l?l:""}throw c}function Ja(e){return function(t){return Object.assign({},e,t)}}function Va(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return $a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$a(e,t):void 0}}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function $a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Qa,Xa,Ya,Za,eu={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},tu={0:8203,1:8204,2:8205,3:65279},ru=new Array(4).fill(String.fromCodePoint(tu[0])).join("");function nu(e,t){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto";return!0===r||"auto"===r&&(function(e){return!(!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e)||!Date.parse(e))}(e)||function(e){try{e.startsWith("/")}catch(e){return!1}return!0}(e))?e:"".concat(e).concat(function(e){var t=JSON.stringify(e);return"".concat(ru).concat(Array.from(t).map((function(e){var r=e.charCodeAt(0);if(r>255)throw new Error("Only ASCII edit info can be encoded. Error attempting to encode ".concat(t," on character ").concat(e," (").concat(r,")"));return Array.from(r.toString(4).padStart(4,"0")).map((function(e){return String.fromCodePoint(tu[e])})).join("")})).join(""))}(t))}(e,t)}Object.fromEntries(Object.entries(tu).map((function(e){return e.reverse()}))),Object.fromEntries(Object.entries(eu).map((function(e){return e.reverse()}))),"".concat(Object.values(eu).map((function(e){return"\\u{".concat(e.toString(16),"}")})).join(""));var ou=function(){if(Za)return Ya;Za=1;var e=function(){if(Xa)return Qa;Xa=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString;return Qa=function(r,n,o){if("[object Function]"!==t.call(n))throw new TypeError("iterator must be a function");var i=r.length;if(i===+i)for(var a=0;a<i;a++)n.call(o,r[a],a,r);else for(var u in r)e.call(r,u)&&n.call(o,r[u],u,r)}}();function t(e,r,n){if(3===arguments.length)return t.set(e,r,n);if(2===arguments.length)return t.get(e,r);var o=t.bind(t,e);for(var i in t)t.hasOwnProperty(i)&&(o[i]=t[i].bind(o,e));return o}return Ya=t,t.get=function(e,r){for(var n=Array.isArray(r)?r:t.parse(r),o=0;o<n.length;++o){var i=n[o];if("object"!=s(e)||!(i in e))throw new Error("Invalid reference token: "+i);e=e[i]}return e},t.set=function(e,r,n){var o=Array.isArray(r)?r:t.parse(r),i=o[0];if(0===o.length)throw Error("Can not set the root object");for(var a=0;a<o.length-1;++a){var u=o[a];"string"!=typeof u&&"number"!=typeof u&&(u=String(u)),"__proto__"!==u&&"constructor"!==u&&"prototype"!==u&&("-"===u&&Array.isArray(e)&&(u=e.length),i=o[a+1],u in e||(e[u]=i.match(/^(\d+|-)$/)?[]:{}),e=e[u])}return"-"===i&&Array.isArray(e)&&(i=e.length),e[i]=n,this},t.remove=function(e,r){var n=Array.isArray(r)?r:t.parse(r),o=n[n.length-1];if(void 0===o)throw new Error('Invalid JSON pointer for remove: "'+r+'"');var i=t.get(e,n.slice(0,-1));if(Array.isArray(i)){var a=+o;if(""===o&&isNaN(a))throw new Error('Invalid array index: "'+o+'"');Array.prototype.splice.call(i,a,1)}else delete i[o]},t.dict=function(e,r){var n={};return t.walk(e,(function(e,t){n[t]=e}),r),n},t.walk=function(r,n,o){var i=[];o=o||function(e){var t=Object.prototype.toString.call(e);return"[object Object]"===t||"[object Array]"===t},function r(a){e(a,(function(e,a){i.push(String(a)),o(e)?r(e):n(e,t.compile(i)),i.pop()}))}(r)},t.has=function(e,r){try{t.get(e,r)}catch(e){return!1}return!0},t.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")},t.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")},t.parse=function(e){if(""===e)return[];if("/"!==e.charAt(0))throw new Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(t.unescape)},t.compile=function(e){return 0===e.length?"":"/"+e.map(t.escape).join("/")},Ya}(),iu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[],n=ou.get(e,t);if(n.content)for(var o=0;o<n.content.length;o++)"text"===n.content[o].nodeType?r.push("".concat(t,"/content/").concat(o,"/value")):r.push.apply(r,a(iu(e,"".concat(t,"/content/").concat(o))));return r},au=function(e){var t=e.entityId,r=e.entityType,n=e.space,o=e.environment,i=e.field,a=e.locale,u=e.editorInterface,c=e.fieldType,s=e.platform,l={origin:"contentful.com",href:"".concat("".concat(e.targetOrigin||"https://app.contentful.com","/spaces/").concat(n,"/environments/").concat(o),"/","Entry"===r?"entries":"assets","/").concat(t,"/?focusedField=").concat(i,"&focusedLocale=").concat(a,"&source=vercel-content-link"),contentful:{editorInterface:u,fieldType:c}};return"vercel"===s&&delete l.contentful,l},uu=["singleLine","tagEditor","listInput","checkbox","richTextEditor","multipleLine"];function cu(e,t,r,n,o,i,a){var u=a?t[a]:t;switch(e){case"Symbol":var c=nu(u,r);ou.set(n,o,c);break;case"Text":var s=nu(u,r);ou.set(n,o,s);break;case"RichText":!function(e){var t=e.pointer,r=e.mappings,n=e.data,o=e.hiddenStrings,i=r[t];if(i){delete r[t];var a,u=Va(iu(n,t));try{for(u.s();!(a=u.n()).done;){var c=a.value;r[c]=i;var s=nu(ou.get(n,c),o);ou.set(n,c,s)}}catch(e){u.e(e)}finally{u.f()}}else{var l,f=Va(iu(n,t));try{for(f.s();!(l=f.n()).done;){var p=l.value,y=nu(ou.get(n,p),o);ou.set(n,p,y)}}catch(e){f.e(e)}finally{f.f()}}}({pointer:"",mappings:i,data:u,hiddenStrings:r});break;case"Array":var l=u.map((function(e){return"string"==typeof e?nu(e,r):e}));ou.set(n,o,l)}}var su,lu=function(e,t,r,n,o){if(e.fields){var i=e.sys.contentSourceMaps;if(i){var a,u=i.mappings,c=function(){var i=u[s].source,a=e.sys.space.sys.id,c=e.sys.environment.sys.id,l=e.sys.id,f=e.sys.type,p=t[i.fieldType],y=r[i.editorInterface];if(function(e){return["builtin","sidebar-builtin","editor-builtin"].includes(e)}(y.widgetNamespace)&&!function(e){return uu.includes(e)}(y.widgetId))return 0;var d=s.startsWith("/")?s:"/".concat(s);if(ou.has(e,d)){var h=ou.get(e,d);if(null===h)return{v:void 0};var v=d.split("/").pop();if(!v)return{v:void 0};var b=e.sys.locale;if(b){var m=au({entityId:l,entityType:f,space:a,environment:c,field:v,locale:b,editorInterface:y,fieldType:p,targetOrigin:n,platform:o});cu(p,h,m,e,d,u)}else Object.keys(h).forEach((function(t){var r=au({entityId:l,entityType:f,space:a,environment:c,field:v,locale:t,editorInterface:y,fieldType:p,targetOrigin:n,platform:o});cu(p,h,r,e,"".concat(d,"/").concat(t),u,t)}))}};for(var s in u)if(0!==(a=c())&&a)return a.v}}},fu={exports:{}};su=function(){var e=Function.prototype.toString,t=Object.create,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,a=Object.getPrototypeOf,u=Object.prototype,c=u.hasOwnProperty,l=u.propertyIsEnumerable,f="function"==typeof i,p="function"==typeof WeakMap,y=function(){if(p)return function(){return new WeakMap};var e=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(e){return!!~this._keys.indexOf(e)},e.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},e.prototype.set=function(e,t){this._keys.push(e),this._values.push(t)},e}();return function(){return new e}}(),d=function(r,n){var o=r.__proto__||a(r);if(!o)return t(null);var i=o.constructor;if(i===n.Object)return o===n.Object.prototype?{}:t(o);if(~e.call(i).indexOf("[native code]"))try{return new i}catch(e){}return t(o)},h=function(e,t,r,n){var o=d(e,t);for(var a in n.set(e,o),e)c.call(e,a)&&(o[a]=r(e[a],n));if(f)for(var u=i(e),s=0,p=u.length,y=void 0;s<p;++s)l.call(e,y=u[s])&&(o[y]=r(e[y],n));return o},v=function(e,t,a,u){var c=d(e,t);u.set(e,c);for(var s=f?o(e).concat(i(e)):o(e),l=0,p=s.length,y=void 0,h=void 0;l<p;++l)if("callee"!==(y=s[l])&&"caller"!==y)if(h=n(e,y)){h.get||h.set||(h.value=a(e[y],u));try{r(c,y,h)}catch(e){c[y]=h.value}}else c[y]=a(e[y],u);return c},b=Array.isArray,m=Object.getPrototypeOf,g=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:(console&&console,this)}();function w(e,t){var r=!(!t||!t.isStrict),n=t&&t.realm||g,o=r?v:h,i=function(e,t){if(!e||"object"!==s(e))return e;if(t.has(e))return t.get(e);var a,u,c,l=e.__proto__||m(e),f=l&&l.constructor;if(!f||f===n.Object)return o(e,n,i,t);if(b(e)){if(r)return v(e,n,i,t);t.set(e,a=new f);for(var p=0,y=e.length;p<y;++p)a[p]=i(e[p],t);return a}if(e instanceof n.Date)return new f(e.getTime());if(e instanceof n.RegExp)return(a=new f(e.source,e.flags||(c="",(u=e).global&&(c+="g"),u.ignoreCase&&(c+="i"),u.multiline&&(c+="m"),u.unicode&&(c+="u"),u.sticky&&(c+="y"),c))).lastIndex=e.lastIndex,a;if(n.Map&&e instanceof n.Map)return t.set(e,a=new f),e.forEach((function(e,r){a.set(r,i(e,t))})),a;if(n.Set&&e instanceof n.Set)return t.set(e,a=new f),e.forEach((function(e){a.add(i(e,t))})),a;if(n.Blob&&e instanceof n.Blob)return e.slice(0,e.size,e.type);if(n.Buffer&&n.Buffer.isBuffer(e))return a=n.Buffer.allocUnsafe?n.Buffer.allocUnsafe(e.length):new f(e.length),t.set(e,a),e.copy(a),a;if(n.ArrayBuffer){if(n.ArrayBuffer.isView(e))return a=new f(e.buffer.slice(0)),t.set(e,a),a;if(e instanceof n.ArrayBuffer)return a=e.slice(0),t.set(e,a),a}return"function"==typeof e.then||e instanceof Error||n.WeakMap&&e instanceof n.WeakMap||n.WeakSet&&e instanceof n.WeakSet?e:o(e,n,i,t)};return i(e,y())}return w.default=w,w.strict=function(e,t){return w(e,{isStrict:!0,realm:t?t.realm:void 0})},w},fu.exports=su();var pu=O(fu.exports),yu="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(e){return s(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":s(e)};function du(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var hu={},vu=function(e,t){var r=t.entryId,n=t.linkType,o=t.spaceId,i=t.environmentId;return e.get(o&&i?o+"!"+i+"!"+n+"!"+r:n+"!"+r)},bu=function e(t,r,n,o){if(r(t))return n(t);if(t&&"object"===(void 0===t?"undefined":yu(t))){for(var i in t)t.hasOwnProperty(i)&&(t[i]=e(t[i],r,n,o));o&&(t=function(e){if(Array.isArray(e))return e.filter((function(e){return e!==hu}));for(var t in e)e[t]===hu&&delete e[t];return e}(t))}return t},mu=function(e,t){if(t=t||{},!e.items)return[];var r=pu(e),n=Object.keys(r.includes||{}).reduce((function(t,r){return[].concat(du(t),du(e.includes[r]))}),[]),o=[].concat(du(r.items),du(n)).filter((function(e){return Boolean(e.sys)})),i=new Map(o.reduce((function(e,t){var r,n=(r=t.sys,r.space&&r.environment?[r.type+"!"+r.id,r.space.sys.id+"!"+r.environment.sys.id+"!"+r.type+"!"+r.id]:[r.type+"!"+r.id]).map((function(e){return[e,t]}));return e.push.apply(e,du(n)),e}),[]));return o.forEach((function(e){var r=function(e,t){return Array.isArray(t)?Object.keys(e).filter((function(e){return-1!==t.indexOf(e)})).reduce((function(t,r){return t[r]=e[r],t}),{}):e}(e,t.itemEntryPoints);Object.assign(e,bu(r,(function(e){return(t=e)&&t.sys&&"Link"===t.sys.type||function(e){return e&&e.sys&&"ResourceLink"===e.sys.type}(e);var t}),(function(e){return function(e,t,r){var n=function(e,t){var r=t.sys,n=r.linkType;if("ResourceLink"===r.type){if(!n.startsWith("Contentful:"))return t;var o=function(e){var t=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(t.test(e)){var r=function(e){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e){var t=[],r=!0,n=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(t.push(i.value),4!==t.length);r=!0);}catch(e){n=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(n)throw o}}return t}(e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e.match(t)),n=r[2];return{spaceId:r[1],environmentId:void 0===n?"master":n,entryId:r[3]}}}(t.sys.urn),i=o.spaceId,a=o.environmentId,u=o.entryId,c=n.split(":")[1];return vu(e,{linkType:c,entryId:u,spaceId:i,environmentId:a})||hu}return vu(e,{linkType:n,entryId:t.sys.id})||hu}(e,t);return n===hu?r?n:t:n}(i,e,t.removeUnresolved)}),t.removeUnresolved))})),r.items},gu={exports:{}};!function(e){function t(e,t){var r=[],n=[];return null==t&&(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(t)).join(".")+"]"}),function(o,i){if(r.length>0){var a=r.indexOf(this);~a?r.splice(a+1):r.push(this),~a?n.splice(a,1/0,o):n.push(o),~r.indexOf(i)&&(i=t.call(this,o,i))}else r.push(i);return null==e?i:e.call(this,o,i)}}(e.exports=function(e,r,n,o){return JSON.stringify(e,t(r,o),n)}).getSerialize=t}(gu);var wu=O(gu.exports);function Ou(e){return Object.defineProperty(e,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(){return wu(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",(function(e,t){return{sys:{type:"Link",linkType:"Entry",id:t.sys.id,circular:!0}}}))}})}function Su(){return xu.apply(this,arguments)}function xu(){return xu=r(P.mark((function e(t,r,n){var o,i,a,u,c,s;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r&&(r.initial||r.nextSyncToken||r.nextPageToken)){e.next=2;break}throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");case 2:if(!r.content_type||r.type){e.next=6;break}r.type="Entry",e.next=8;break;case 6:if(!r.content_type||!r.type||"Entry"===r.type){e.next=8;break}throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");case 8:return o=Object.assign(Object.assign({},{withoutLinkResolution:!1,withoutUnresolvableLinks:!1,paginate:!0}),n),i=o.withoutLinkResolution,a=o.withoutUnresolvableLinks,u=o.paginate,e.next=12,ju(t,[],r,{paginate:u});case 12:return c=e.sent,i||(c.items=mu(c,{removeUnresolved:a,itemEntryPoints:["fields"]})),p=function(e){return function(t,r){return r.sys.type===e&&t.push(Ca(r)),t}},s={entries:(f=c.items).reduce(p("Entry"),[]),assets:f.reduce(p("Asset"),[]),deletedEntries:f.reduce(p("DeletedEntry"),[]),deletedAssets:f.reduce(p("DeletedAsset"),[])},c.nextSyncToken&&(s.nextSyncToken=c.nextSyncToken),c.nextPageToken&&(s.nextPageToken=c.nextPageToken),e.abrupt("return",(Ua((l=Ou(Ca(s))).sys||{}),l));case 18:case"end":return e.stop()}var l,f,p}),e)}))),xu.apply(this,arguments)}function ju(){return Au.apply(this,arguments)}function Au(){return(Au=r(P.mark((function e(t,r,n,o){var i,a,u;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=o.paginate,a=(c=n).nextPageToken?{sync_token:c.nextPageToken}:c.nextSyncToken?{sync_token:c.nextSyncToken}:c.sync_token?{sync_token:c.sync_token}:c,e.next=4,t.get("sync",La({query:a}));case 4:if(r=r.concat((u=e.sent.data||{}).items||[]),!u.nextPageUrl){e.next=15;break}if(!i){e.next=12;break}return delete a.initial,a.sync_token=Eu(u.nextPageUrl),e.abrupt("return",ju(t,r,a,{paginate:i}));case 12:return e.abrupt("return",{items:r,nextPageToken:Eu(u.nextPageUrl)});case 15:if(!u.nextSyncUrl){e.next=19;break}return e.abrupt("return",{items:r,nextSyncToken:Eu(u.nextSyncUrl)});case 19:return e.abrupt("return",{items:[]});case 20:case"end":return e.stop()}var c}),e)})))).apply(this,arguments)}function Eu(e){var t=e.split("?");return t.length>0?t[1].replace("sync_token=",""):""}function ku(e){var t={},r=!1;for(var n in e)Array.isArray(e[n])&&(t[n]=e[n].join(","),r=!0);return r?Object.assign(Object.assign({},e),t):e}function Pu(e){if(!e.select)return new Set;var t=Array.isArray(e.select)?e.select:e.select.split(",").map((function(e){return e.trim()}));return new Set(t)}function Tu(e){if(!e.select)return e;var t=Pu(e);return t.has("sys")?e:(t.add("sys.id"),t.add("sys.type"),Object.assign(Object.assign({},e),{select:a(t).join(",")}))}function Ru(e,t){var r=t.resolveLinks,n=t.removeUnresolved,o=Ou(e);return r&&(o.items=mu(o,{removeUnresolved:n,itemEntryPoints:["fields"]})),o}function Lu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Lu=function(){return!!e})()}var _u=function(e){function t(e,r){var n,o,i,a;return p(this,t),o=this,i=t,a=['Invalid "'.concat(e,'" provided, ')+r],i=ln(i),(n=sn(o,Lu()?Reflect.construct(i,a||[],ln(o).constructor):i.apply(o,a))).name="ValidationError",n}return Gr(t,e),d(t)}(pn(Error));function Uu(e,t,r){if(r=r||{},"number"!=typeof t)throw new _u(e,'only numeric values are allowed for timestamps, provided type was "'.concat(s(t),'"'));if(r.maximum&&t>r.maximum)throw new _u(e,"value (".concat(t,") cannot be further in the future than expected maximum (").concat(r.maximum,")"));if(r.now&&t<r.now)throw new _u(e,"value (".concat(t,") cannot be in the past, current time was ").concat(r.now))}function Iu(e,t){t?function(e){if(e.locale)throw new _u("locale","The `locale` parameter is not allowed")}(e):function(e){if("*"===e.locale)throw new _u("locale","The use of locale='*' is no longer supported.To fetch an entry in all existing locales,\n use client.withAllLocales instead of the locale='*' parameter.")}(e)}function Cu(e){if("resolveLinks"in e)throw new _u("resolveLinks","The use of the 'resolveLinks' parameter is no longer supported. By default, links are resolved.\n If you do not want to resolve links, use client.withoutLinkResolution.")}function Nu(e){if("removeUnresolved"in e)throw new _u("removeUnresolved","The use of the 'removeUnresolved' parameter is no longer supported. By default, unresolved links are kept as link objects.\n If you do not want to include unresolved links, use client.withoutUnresolvableLinks.")}function Bu(e){for(var t in e){var r=e[t];if("object"===s(r)&&null!==r&&!Array.isArray(r))throw new Error('Objects are not supported as value for the "'.concat(t,'" query parameter.'))}}function Du(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Du=function(){return!!e})()}var Fu=function(e){function t(e,r,n){var o,i,a,u;return p(this,t),i=this,u=["The resource could not be found."],a=ln(a=t),(o=sn(i,Du()?Reflect.construct(a,u||[],ln(i).constructor):a.apply(i,u))).sys={type:"Error",id:"NotFound"},o.details={type:"Entry",id:e,environment:r,space:n},o}return Gr(t,e),d(t)}(pn(Error));function Mu(e,t){var n=e.http,o=e.getGlobalOptions,i=function(){return new Fu(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unknown",o().environment,o().space)},a=function(e){var t="space"===e?o().spaceBaseUrl:o().environmentBaseUrl;if(!t)throw new Error("Please define baseUrl for "+e);return t.endsWith("/")||(t+="/"),t};function u(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.httpClientParams,i=null!==(e=null==o?void 0:o.includeContentSourceMaps)&&void 0!==e?e:null===(t=null==o?void 0:o.alphaFeatures)||void 0===t?void 0:t.includeContentSourceMaps,a=function(e,t){if(void 0===t)return!1;if("boolean"!=typeof t)throw new _u("includeContentSourceMaps","The 'includeContentSourceMaps' parameter must be a boolean.");if(t&&"preview.contentful.com"!==e)throw new _u("includeContentSourceMaps","The 'includeContentSourceMaps' parameter can only be used with the CPA. Please set host to 'preview.contentful.com' to include Content Source Maps.\n ");return t}(null==o?void 0:o.host,i);if(a&&(r.includeContentSourceMaps=!0,r.select)){var u=Pu(r);u.add("sys"),r.select=Array.from(u).join(",")}return r}function c(e,t){var r;return(null===(r=null==t?void 0:t.params)||void 0===r?void 0:r.includeContentSourceMaps)?function(e,t,r){var n,o=function(e){if("function"==typeof structuredClone)return structuredClone(e);try{return JSON.parse(JSON.stringify(e))}catch(t){return e}}(e);if(o.sys&&"items"in o){if(null==(n=o.sys)||!n.contentSourceMapsLookup)return o;var i=o.sys.contentSourceMapsLookup,a=i.fieldTypes,u=i.editorInterfaces,c=o.includes;o.items.forEach((function(e){return lu(e,a,u,t,r)})),c&&c.Entry&&c.Entry.forEach((function(e){return lu(e,a,u,t,r)})),c&&c.Asset&&c.Asset.forEach((function(e){return lu(e,a,u,t,r)}))}else{if(!o.sys.contentSourceMapsLookup)return o;lu(o,o.sys.contentSourceMapsLookup.fieldTypes,o.sys.contentSourceMapsLookup.editorInterfaces,t,r)}return o}(e):e}function s(e){return l.apply(this,arguments)}function l(){return(l=r(P.mark((function e(t){var r,o,i;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.path,o=t.config,i=a(t.context),e.prev=2,e.next=5,n.get(i+r,o);case 5:return e.abrupt("return",c(e.sent.data,o));case 9:e.prev=9,e.t0=e.catch(2),Ga(e.t0);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}function f(e){return p.apply(this,arguments)}function p(){return(p=r(P.mark((function e(t){var r,o,i,u;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.path,o=t.data,i=t.config,u=a(t.context),e.prev=2,e.next=5,n.post(u+r,o,i);case 5:return e.abrupt("return",e.sent.data);case 9:e.prev=9,e.t0=e.catch(2),Ga(e.t0);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}function y(){return(y=r(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s({context:"space",path:""}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(){return(d=r(P.mark((function e(t){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s({context:"environment",path:"content_types/".concat(t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(){return h=r(P.mark((function e(){var t=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s({context:"environment",path:"content_types",config:La({query:t.length>0&&void 0!==t[0]?t[0]:{}})}));case 2:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function v(){return v=r(P.mark((function e(r){var n=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",m(r,n.length>1&&void 0!==n[1]?n[1]:{},t));case 2:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}function b(){return b=r(P.mark((function e(){var r=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",S(r.length>0&&void 0!==r[0]?r[0]:{},t));case 2:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}function m(e,t){return g.apply(this,arguments)}function g(){return g=r(P.mark((function e(t,r){var n,o,i=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Iu(r,o=(n=i.length>2&&void 0!==i[2]?i[2]:{withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}).withAllLocales),Cu(r),Nu(r),Bu(r),e.abrupt("return",w(t,o?Object.assign(Object.assign({},r),{locale:"*"}):r,n));case 7:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}function w(e,t,r){return O.apply(this,arguments)}function O(){return O=r(P.mark((function e(t,r,n){var o;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw i(t);case 2:return e.prev=2,e.next=5,j(Object.assign({"sys.id":t},u(r)),n);case 5:if(!((o=e.sent).items.length>0)){e.next=10;break}return e.abrupt("return",o.items[0]);case 10:throw i(t);case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),Ga(e.t0);case 16:case"end":return e.stop()}}),e,null,[[2,13]])}))),O.apply(this,arguments)}function S(e){return x.apply(this,arguments)}function x(){return x=r(P.mark((function e(t){var r,n,o=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Iu(t,n=(r=o.length>1&&void 0!==o[1]?o[1]:{withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}).withAllLocales),Cu(t),Nu(t),Bu(t),e.abrupt("return",j(n?Object.assign(Object.assign({},t),{locale:"*"}):t,r));case 7:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function j(e,t){return A.apply(this,arguments)}function A(){return A=r(P.mark((function e(t,r){var n,o;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.withoutLinkResolution,o=r.withoutUnresolvableLinks,e.prev=1,e.next=4,s({context:"environment",path:"entries",config:La({query:u(ku(Tu(t)))})});case 4:return e.abrupt("return",Ru(e.sent,{resolveLinks:!n,removeUnresolved:null!=o&&o}));case 8:e.prev=8,e.t0=e.catch(1),Ga(e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),A.apply(this,arguments)}function E(){return E=r(P.mark((function e(r){var n=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",U(r,n.length>1&&void 0!==n[1]?n[1]:{},t));case 2:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function k(){return k=r(P.mark((function e(){var r=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",T(r.length>0&&void 0!==r[0]?r[0]:{},t));case 2:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}function T(e){return R.apply(this,arguments)}function R(){return R=r(P.mark((function e(t){var r,n,o=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Iu(t,r=(o.length>1&&void 0!==o[1]?o[1]:{withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}).withAllLocales),Bu(t),n=r?Object.assign(Object.assign({},t),{locale:"*"}):t,e.abrupt("return",C(n));case 6:case"end":return e.stop()}}),e)}))),R.apply(this,arguments)}function L(e,t){return _.apply(this,arguments)}function _(){return(_=r(P.mark((function e(t,r){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",s({context:"environment",path:"assets/".concat(t),config:La({query:u(Tu(r))})}));case 4:e.prev=4,e.t0=e.catch(0),Ga(e.t0);case 7:case"end":return e.stop()}}),e,null,[[0,4]])})))).apply(this,arguments)}function U(e,t){return I.apply(this,arguments)}function I(){return I=r(P.mark((function e(t,r){var n,o,i=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Iu(r,n=(i.length>2&&void 0!==i[2]?i[2]:{withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}).withAllLocales),Bu(r),o=n?Object.assign(Object.assign({},r),{locale:"*"}):r,e.abrupt("return",L(t,o));case 6:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function C(e){return N.apply(this,arguments)}function N(){return(N=r(P.mark((function e(t){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",s({context:"environment",path:"assets",config:La({query:u(ku(Tu(t)))})}));case 4:e.prev=4,e.t0=e.catch(0),Ga(e.t0);case 7:case"end":return e.stop()}}),e,null,[[0,4]])})))).apply(this,arguments)}function B(){return(B=r(P.mark((function e(t){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s({context:"environment",path:"tags/".concat(t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function D(){return D=r(P.mark((function e(){var t,r=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Bu(t=r.length>0&&void 0!==r[0]?r[0]:{}),e.abrupt("return",s({context:"environment",path:"tags",config:La({query:ku(Tu(t))})}));case 3:case"end":return e.stop()}}),e)}))),D.apply(this,arguments)}function F(){return(F=r(P.mark((function e(t){var r;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{r=Math.floor(Date.now()/1e3),Uu("expiresAt",t,{maximum:r+172800,now:r})}catch(e){Ga(e)}return e.abrupt("return",f({context:"environment",path:"asset_keys",data:{expiresAt:t}}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(){return M=r(P.mark((function e(){var t,r=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Bu(t=r.length>0&&void 0!==r[0]?r[0]:{}),e.abrupt("return",s({context:"environment",path:"locales",config:La({query:Tu(t)})}));case 3:case"end":return e.stop()}}),e)}))),M.apply(this,arguments)}function q(){return q=r(P.mark((function e(r){var n=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",W(r,n.length>1&&void 0!==n[1]?n[1]:{paginate:!0},t));case 2:case"end":return e.stop()}}),e)}))),q.apply(this,arguments)}function W(e,t){return z.apply(this,arguments)}function z(){return z=r(P.mark((function e(t,r){var o,i,a=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=a.length>2&&void 0!==a[2]?a[2]:{withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1},Cu(t),Nu(t),i=Object.assign(Object.assign({},r),o),V(n),e.abrupt("return",Su(n,t,i));case 6:case"end":return e.stop()}}),e)}))),z.apply(this,arguments)}function H(){return H=r(P.mark((function e(t){var r,n=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:{},e.prev=1,e.abrupt("return",s({context:"environment",path:"taxonomy/concept-schemes/".concat(t),config:La({query:ku(Tu(r))})}));case 5:e.prev=5,e.t0=e.catch(1),Ga(e.t0);case 8:case"end":return e.stop()}}),e,null,[[1,5]])}))),H.apply(this,arguments)}function K(){return K=r(P.mark((function e(){var t,r=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.prev=1,e.abrupt("return",s({context:"environment",path:"taxonomy/concept-schemes",config:La({query:ku(Tu(t))})}));case 5:e.prev=5,e.t0=e.catch(1),Ga(e.t0);case 8:case"end":return e.stop()}}),e,null,[[1,5]])}))),K.apply(this,arguments)}function G(){return G=r(P.mark((function e(t){var r,n=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:{},e.prev=1,e.abrupt("return",s({context:"environment",path:"taxonomy/concepts/".concat(t),config:La({query:ku(Tu(r))})}));case 5:e.prev=5,e.t0=e.catch(1),Ga(e.t0);case 8:case"end":return e.stop()}}),e,null,[[1,5]])}))),G.apply(this,arguments)}function J(){return J=r(P.mark((function e(){var t,r=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.prev=1,e.abrupt("return",s({context:"environment",path:"taxonomy/concepts",config:La({query:ku(Tu(t))})}));case 5:e.prev=5,e.t0=e.catch(1),Ga(e.t0);case 8:case"end":return e.stop()}}),e,null,[[1,5]])}))),J.apply(this,arguments)}function V(e){e.defaults.baseURL=o().environmentBaseUrl}return{version:"11.5.5",getSpace:function(){return y.apply(this,arguments)},getContentType:function(e){return d.apply(this,arguments)},getContentTypes:function(){return h.apply(this,arguments)},getAsset:function(e){return E.apply(this,arguments)},getAssets:function(){return k.apply(this,arguments)},getTag:function(e){return B.apply(this,arguments)},getTags:function(){return D.apply(this,arguments)},getLocales:function(){return M.apply(this,arguments)},parseEntries:function(e){return function(e){return function(e,t){var r=t.withoutUnresolvableLinks;return Ru(e,{resolveLinks:!t.withoutLinkResolution,removeUnresolved:null!=r&&r})}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withoutLinkResolution:!1,withoutUnresolvableLinks:!1})}(e,t)},sync:function(e){return q.apply(this,arguments)},getEntry:function(e){return v.apply(this,arguments)},getEntries:function(){return b.apply(this,arguments)},getConceptScheme:function(e){return function(e){return H.apply(this,arguments)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})},getConceptSchemes:function(){return function(){return K.apply(this,arguments)}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})},getConcept:function(e){return function(e){return G.apply(this,arguments)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})},getConcepts:function(){return function(){return J.apply(this,arguments)}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})},createAssetKey:function(e){return F.apply(this,arguments)}}}return e.createClient=function(e){if(!e.accessToken)throw new TypeError("Expected parameter accessToken");if(!e.space)throw new TypeError("Expected parameter space");Cu(e),Nu(e);var t=Object.assign(Object.assign({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"}),e),r=function(e,t,r){var n=[];t&&n.push("app ".concat(t)),r&&n.push("integration ".concat(r)),n.push("sdk ".concat(e));var o=null;try{"undefined"!=typeof window&&"navigator"in window&&"product"in window.navigator&&"ReactNative"===window.navigator.product?(o=Ia(),n.push("platform ReactNative")):void 0===Wr||Wr.browser?(o=Ia(),n.push("platform browser")):(o=function(){var e=Wr.platform||"linux",t=Wr.version||"0.0.0",r={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in r?"".concat(r[e]||"Linux","/").concat(t):null}(),n.push("platform node.js/".concat(Wr.versions&&Wr.versions.node?"v".concat(Wr.versions.node):Wr.version)))}catch(e){o=null}return o&&n.push("os ".concat(o)),"".concat(n.filter((function(e){return""!==e})).join("; "),";")}("contentful.js/".concat("11.5.5"),t.application,t.integration);t.headers=Object.assign(Object.assign({},t.headers),{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":r});var n=Ra(Vt,t);if(!n.defaults.baseURL)throw new Error("Please define a baseURL");var o=Ja({space:t.space,environment:t.environment,spaceBaseUrl:n.defaults.baseURL,environmentBaseUrl:"".concat(n.defaults.baseURL,"environments/").concat(t.environment)});return n.defaults.baseURL=o({}).environmentBaseUrl,function(e){var t=e.http,r=e.getGlobalOptions;function n(e){return function(e,t,r){var n=Mu({http:e.http,getGlobalOptions:e.getGlobalOptions},t)||{};return Object.defineProperty(n,"withAllLocales",{get:function(){return r(Object.assign(Object.assign({},t),{withAllLocales:!0}))}}),Object.defineProperty(n,"withoutLinkResolution",{get:function(){return r(Object.assign(Object.assign({},t),{withoutLinkResolution:!0}))}}),Object.defineProperty(n,"withoutUnresolvableLinks",{get:function(){return r(Object.assign(Object.assign({},t),{withoutUnresolvableLinks:!0}))}}),Object.create(n)}({http:t,getGlobalOptions:r},e,n)}var o=Mu({http:t,getGlobalOptions:r},{withoutLinkResolution:!1,withAllLocales:!1,withoutUnresolvableLinks:!1});return Object.assign(Object.assign({},o),{get withAllLocales(){return n({withAllLocales:!0,withoutLinkResolution:!1,withoutUnresolvableLinks:!1})},get withoutLinkResolution(){return n({withAllLocales:!1,withoutLinkResolution:!0,withoutUnresolvableLinks:!1})},get withoutUnresolvableLinks(){return n({withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!0})}})}({http:n,getGlobalOptions:o})},e.createGlobalOptions=Ja,e}({});
|
package/dist/contentful.cjs
CHANGED
|
@@ -15676,7 +15676,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
15676
15676
|
}
|
|
15677
15677
|
return requestedURL;
|
|
15678
15678
|
}
|
|
15679
|
-
const VERSION = "1.8.
|
|
15679
|
+
const VERSION = "1.8.2";
|
|
15680
15680
|
function parseProtocol(url) {
|
|
15681
15681
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
15682
15682
|
return match && match[1] || '';
|
|
@@ -16272,7 +16272,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
16272
16272
|
}
|
|
16273
16273
|
|
|
16274
16274
|
// Parse url
|
|
16275
|
-
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
16275
|
+
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
16276
16276
|
const parsed = new URL(fullPath, platform.hasBrowserEnv ? platform.origin : undefined);
|
|
16277
16277
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
16278
16278
|
if (protocol === 'data:') {
|
|
@@ -22975,7 +22975,7 @@ function createContentfulApi({
|
|
|
22975
22975
|
http.defaults.baseURL = getGlobalOptions().environmentBaseUrl;
|
|
22976
22976
|
}
|
|
22977
22977
|
return {
|
|
22978
|
-
version: "11.5.
|
|
22978
|
+
version: "11.5.5",
|
|
22979
22979
|
getSpace,
|
|
22980
22980
|
getContentType,
|
|
22981
22981
|
getContentTypes,
|
|
@@ -23098,7 +23098,7 @@ function createClient(params) {
|
|
|
23098
23098
|
environment: 'master'
|
|
23099
23099
|
};
|
|
23100
23100
|
const config = Object.assign(Object.assign({}, defaultConfig), params);
|
|
23101
|
-
const userAgentHeader = getUserAgentHeader(`contentful.js/${"11.5.
|
|
23101
|
+
const userAgentHeader = getUserAgentHeader(`contentful.js/${"11.5.5"}`, config.application, config.integration);
|
|
23102
23102
|
config.headers = Object.assign(Object.assign({}, config.headers), {
|
|
23103
23103
|
'Content-Type': 'application/vnd.contentful.delivery.v1+json',
|
|
23104
23104
|
'X-Contentful-User-Agent': userAgentHeader
|
package/dist/esm/contentful.js
CHANGED
|
@@ -37,7 +37,7 @@ function createClient(params) {
|
|
|
37
37
|
environment: 'master',
|
|
38
38
|
};
|
|
39
39
|
const config = Object.assign(Object.assign({}, defaultConfig), params);
|
|
40
|
-
const userAgentHeader = getUserAgentHeader(`contentful.js/${"11.5.
|
|
40
|
+
const userAgentHeader = getUserAgentHeader(`contentful.js/${"11.5.5"}`, config.application, config.integration);
|
|
41
41
|
config.headers = Object.assign(Object.assign({}, config.headers), { 'Content-Type': 'application/vnd.contentful.delivery.v1+json', 'X-Contentful-User-Agent': userAgentHeader });
|
|
42
42
|
const http = createHttpClient(axios, config);
|
|
43
43
|
if (!http.defaults.baseURL) {
|
|
@@ -368,7 +368,7 @@ function createContentfulApi({ http, getGlobalOptions }, options) {
|
|
|
368
368
|
http.defaults.baseURL = getGlobalOptions().environmentBaseUrl;
|
|
369
369
|
}
|
|
370
370
|
return {
|
|
371
|
-
version: "11.5.
|
|
371
|
+
version: "11.5.5",
|
|
372
372
|
getSpace,
|
|
373
373
|
getContentType,
|
|
374
374
|
getContentTypes,
|
package/package.json
CHANGED