contentful 11.12.6 → 11.12.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contentful.browser.js +2720 -4089
- package/dist/contentful.browser.min.js +1 -1
- package/dist/contentful.cjs +563 -180
- package/dist/stats-browser-min.html +1 -1
- package/package.json +1 -1
|
@@ -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){return n="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},n(e)}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function i(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(t&&("object"==n(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 u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function s(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&&c(e,t)}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function f(e){var t="function"==typeof Map?new Map:void 0;return f=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(l())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&c(o,r.prototype),o}(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)},f(e)}function p(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 y(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(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 h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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,o(n.key),n)}}function b(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function m(e,t){return function(e){if(Array.isArray(e))return e}(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)||y(e,t)||function(){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 g(e,t){this.v=e,this.k=t}function w(e){return function(){return new O(e.apply(this,arguments))}}function O(e){var t,r;function n(t,r){try{var i=e[t](r),a=i.value,u=a instanceof g;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 x(e){return new g(e,0)}function S(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 g(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 j(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function E(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&1===Object.keys(e).length?e.default:e}O.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},O.prototype.next=function(e){return this._invoke("next",e)},O.prototype.throw=function(e){return this._invoke("throw",e)},O.prototype.return=function(e){return this._invoke("return",e)};var A,P={exports:{}},k={exports:{}};(A=k).exports=function(e,t){this.v=e,this.k=t},A.exports.__esModule=!0,A.exports.default=A.exports;var R=k.exports,_={exports:{}},T={exports:{}};!function(e){function t(r,n,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(r){a=0}e.exports=t=function(e,r,n,o){function i(r,n){t(e,r,(function(e){return this._invoke(r,n,e)}))}r?a?a(e,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[r]=n:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(T);var L=T.exports;!function(e){var t=L;function r(){var n,o,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.toStringTag||"@@toStringTag";function c(e,r,i,a){var u=Object.create((r&&r.prototype instanceof l?r:l).prototype);return t(u,"_invoke",function(e,t,r){var i,a,u,c=0,l=r||[],f=!1,p={p:0,n:0,v:n,a:y,f:y.bind(n,4),d:function(e,t){return i=e,a=0,u=n,p.n=t,s}};function y(e,t){for(a=e,u=t,o=0;!f&&c&&!r&&o<l.length;o++){var r,i=l[o],y=p.p,d=i[2];e>3?(r=d===t)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=n):i[0]<=y&&((r=e<2&&y<i[1])?(a=0,p.v=t,p.n=i[1]):y<d&&(r=e<3||i[0]>t||t>d)&&(i[4]=e,i[5]=t,p.n=d,a=0))}if(r||e>1)return s;throw f=!0,t}return function(r,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),a=l,u=d;(o=a<2?n:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),y(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(r="next"),o=i[r]){if(!(o=o.call(i,u)))throw TypeError("iterator result is not an object");if(!o.done)return o;u=o.value,a<2&&(a=0)}else 1===a&&(o=i.return)&&o.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),a=1);i=n}else if((o=(f=p.n<0)?u:e.call(t,p))!==s)break}catch(e){i=n,a=1,u=e}finally{c=1}}return{value:o,done:f}}}(e,i,a),!0),u}var s={};function l(){}function f(){}function p(){}o=Object.getPrototypeOf;var y=[][a]?o(o([][a]())):(t(o={},a,(function(){return this})),o),d=p.prototype=l.prototype=Object.create(y);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,t(e,u,"GeneratorFunction")),e.prototype=Object.create(d),e}return f.prototype=p,t(d,"constructor",p),t(p,"constructor",f),f.displayName="GeneratorFunction",t(p,u,"GeneratorFunction"),t(d),t(d,u,"Generator"),t(d,a,(function(){return this})),t(d,"toString",(function(){return"[object Generator]"})),(e.exports=r=function(){return{w:c,m:h}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(_);var C=_.exports,N={exports:{}},U={exports:{}},I={exports:{}};!function(e){var t=R,r=L;e.exports=function e(n,o){function i(e,r,a,u){try{var c=n[e](r),s=c.value;return s instanceof t?o.resolve(s.v).then((function(e){i("next",e,a,u)}),(function(e){i("throw",e,a,u)})):o.resolve(s).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,u)}))}catch(e){u(e)}}var a;this.next||(r(e.prototype),r(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),r(this,"_invoke",(function(e,t,r){function n(){return new o((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}),!0)},e.exports.__esModule=!0,e.exports.default=e.exports}(I);var D=I.exports;!function(e){var t=C,r=D;e.exports=function(e,n,o,i,a){return new r(t().w(e,n,o,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports}(U);var B=U.exports;!function(e){var t=B;e.exports=function(e,r,n,o,i){var a=t(e,r,n,o,i);return a.next().then((function(e){return e.done?e.value:a.next()}))},e.exports.__esModule=!0,e.exports.default=e.exports}(N);var F=N.exports,M={exports:{}};!function(e){e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports}(M);var q=M.exports,W={exports:{}},z={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}(z);var H=z.exports;!function(e){var t=H.default;e.exports=function(e){if(null!=e){var r=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(t(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports}(W);var K=W.exports;!function(e){var t=R,r=C,n=F,o=B,i=D,a=q,u=K;function c(){var s=r(),l=s.m(c),f=(Object.getPrototypeOf?Object.getPrototypeOf(l):l.__proto__).constructor;function p(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))}var y={throw:1,return:2,break:3,continue:3};function d(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,y[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,u(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=c=function(){return{wrap:function(e,t,r,n){return s.w(d(e),t,r,n&&n.reverse())},isGeneratorFunction:p,mark:s.m,awrap:function(e,r){return new t(e,r)},AsyncIterator:i,async:function(e,t,r,i,a){return(p(t)?o:n)(d(e),t,r,i,a)},keys:a,values:u}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports}(P);var J=(0,P.exports)(),G=J;try{regeneratorRuntime=J}catch(e){"object"===("undefined"==typeof globalThis?"undefined":n(globalThis))?globalThis.regeneratorRuntime=J:Function("r","regeneratorRuntime = r")(J)}var $=j(G);function V(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 X(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Q(e,t,r){return t=u(t),a(e,Y()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}function Y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Y=function(){return!!e})()}function Z(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 ee(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 te(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function te(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 te=function(e){this.s=e,this.n=e.next},te.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 te(e)}function re(e,t){return function(){return e.apply(t,arguments)}}var ne,oe=Object.prototype.toString,ie=Object.getPrototypeOf,ae=Symbol.iterator,ue=Symbol.toStringTag,ce=(ne=Object.create(null),function(e){var t=oe.call(e);return ne[t]||(ne[t]=t.slice(8,-1).toLowerCase())}),se=function(e){return e=e.toLowerCase(),function(t){return ce(t)===e}},le=function(e){return function(t){return n(t)===e}},fe=Array.isArray,pe=le("undefined");function ye(e){return null!==e&&!pe(e)&&null!==e.constructor&&!pe(e.constructor)&&ve(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var de=se("ArrayBuffer"),he=le("string"),ve=le("function"),be=le("number"),me=function(e){return null!==e&&"object"===n(e)},ge=function(e){if("object"!==ce(e))return!1;var t=ie(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||ue in e||ae in e)},we=se("Date"),Oe=se("File"),xe=se("Blob"),Se=se("FileList"),je="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Ee=void 0!==je.FormData?je.FormData:void 0,Ae=se("URLSearchParams"),Pe=m(["ReadableStream","Request","Response","Headers"].map(se),4),ke=Pe[0],Re=Pe[1],_e=Pe[2],Te=Pe[3];function Le(e,t){var r,o,i=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,a=void 0!==i&&i;if(null!=e)if("object"!==n(e)&&(e=[e]),fe(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(ye(e))return;var u,c=a?Object.getOwnPropertyNames(e):Object.keys(e),s=c.length;for(r=0;r<s;r++)t.call(null,e[u=c[r]],u,e)}}function Ce(e,t){if(ye(e))return null;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 Ne,Ue,Ie,De,Be="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Fe=function(e){return!pe(e)&&e!==Be},Me=function(e){return function(t){return e&&t instanceof e}}("undefined"!=typeof Uint8Array&&ie(Uint8Array)),qe=se("HTMLFormElement"),We=function(){var e=Object.prototype.hasOwnProperty;return function(t,r){return e.call(t,r)}}(),ze=Object.prototype.propertyIsEnumerable,He=se("RegExp"),Ke=function(e,t){var r=Object.getOwnPropertyDescriptors(e),n={};Le(r,(function(r,o){var i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)},Je=se("AsyncFunction"),Ge=(Ne="function"==typeof setImmediate,Ue=ve(Be.postMessage),Ne?setImmediate:Ue?(Ie="axios@".concat(Math.random()),De=[],Be.addEventListener("message",(function(e){e.source===Be&&e.data===Ie&&De.length&&De.shift()()}),!1),function(e){De.push(e),Be.postMessage(Ie,"*")}):function(e){return setTimeout(e)}),$e="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Be):"undefined"!=typeof process&&process.nextTick||Ge,Ve={isArray:fe,isArrayBuffer:de,isBuffer:ye,isFormData:function(e){if(!e)return!1;if(Ee&&e instanceof Ee)return!0;var t=ie(e);if(!t||t===Object.prototype)return!1;if(!ve(e.append))return!1;var r=ce(e);return"formdata"===r||"object"===r&&ve(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&de(e.buffer)},isString:he,isNumber:be,isBoolean:function(e){return!0===e||!1===e},isObject:me,isPlainObject:ge,isEmptyObject:function(e){if(!me(e)||ye(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:ke,isRequest:Re,isResponse:_e,isHeaders:Te,isUndefined:pe,isDate:we,isFile:Oe,isReactNativeBlob:function(e){return!(!e||void 0===e.uri)},isReactNative:function(e){return e&&void 0!==e.getParts},isBlob:xe,isRegExp:He,isFunction:ve,isStream:function(e){return me(e)&&ve(e.pipe)},isURLSearchParams:Ae,isTypedArray:Me,isFileList:Se,forEach:Le,merge:function e(){for(var t=Fe(this)&&this||{},r=t.caseless,o=t.skipUndefined,i={},a=function(t,n){if("__proto__"!==n&&"constructor"!==n&&"prototype"!==n){var a=r&&"string"==typeof n&&Ce(i,n)||n,u=We(i,a)?i[a]:void 0;ge(u)&&ge(t)?i[a]=e(u,t):ge(t)?i[a]=e({},t):fe(t)?i[a]=t.slice():o&&pe(t)||(i[a]=t)}},u=0,c=arguments.length;u<c;u++){var s=u<0||arguments.length<=u?void 0:arguments[u];if(s&&!ye(s)&&(Le(s,a),"object"===n(s)&&!fe(s)))for(var l=Object.getOwnPropertySymbols(s),f=0;f<l.length;f++){var p=l[f];ze.call(s,p)&&a(s[p],p)}}return i},extend:function(e,t,r){return Le(t,(function(t,n){r&&ve(t)?Object.defineProperty(e,n,{__proto__:null,value:re(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})}),{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),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,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&&ie(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:ce,kindOfTest:se,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(fe(e))return e;var t=e.length;if(!be(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[ae]).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:qe,hasOwnProperty:We,hasOwnProp:We,reduceDescriptors:Ke,freezeMethods:function(e){Ke(e,(function(t,r){if(ve(e)&&["arguments","caller","callee"].includes(r))return!1;ve(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 fe(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:Ce,global:Be,isContextDefined:Fe,isSpecCompliantForm:function(e){return!!(e&&ve(e.append)&&"FormData"===e[ue]&&e[ae])},toJSONObject:function(e){var t=new WeakSet,r=function(e){if(me(e)){if(t.has(e))return;if(ye(e))return e;if(!("toJSON"in e)){t.add(e);var n=fe(e)?[]:{};return Le(e,(function(e,t){var o=r(e);!pe(o)&&(n[t]=o)})),t.delete(e),n}}return e};return r(e)},isAsyncFn:Je,isThenable:function(e){return e&&(me(e)||ve(e))&&ve(e.then)&&ve(e.catch)},setImmediate:Ge,asap:$e,isIterable:function(e){return null!=e&&ve(e[ae])}},Xe=Ve.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"]),Qe=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Ye=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ze(e,t){return Ve.isArray(e)?e.map((function(e){return Ze(e,t)})):function(e){for(var t=0,r=e.length;t<r;){var n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;r>t;){var o=e.charCodeAt(r-1);if(9!==o&&32!==o)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}(String(e).replace(t,""))}function et(e){var t=Object.create(null);return Ve.forEach(e.toJSON(),(function(e,r){t[r]=function(e){return Ze(e,Ye)}(e)})),t}var tt=Symbol("internals");function rt(e){return e&&String(e).trim().toLowerCase()}function nt(e){return!1===e||null==e?e:Ve.isArray(e)?e.map(nt):function(e){return Ze(e,Qe)}(String(e))}function ot(e,t,r,n,o){return Ve.isFunction(n)?n.call(this,t,r):(o&&(t=r),Ve.isString(t)?Ve.isString(n)?-1!==t.indexOf(n):Ve.isRegExp(n)?n.test(t):void 0:void 0)}var it=function(){return b((function e(t){h(this,e),t&&this.set(t)}),[{key:"set",value:function(e,t,r){var n=this;function o(e,t,r){var o=rt(t);if(o){var i=Ve.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=nt(e))}}var i=function(e,t){return Ve.forEach(e,(function(e,r){return o(e,r,t)}))};if(Ve.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ve.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i(function(e){var t,r,n,o={};return e&&e.split("\n").forEach((function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||o[t]&&Xe[t]||("set-cookie"===t?o[t]?o[t].push(r):o[t]=[r]:o[t]=o[t]?o[t]+", "+r:r)})),o}(e),t);else if(Ve.isObject(e)&&Ve.isIterable(e)){var a,u,c,s={},l=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 Z(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)?Z(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);try{for(l.s();!(c=l.n()).done;){var f=c.value;if(!Ve.isArray(f))throw new TypeError("Object iterator must return a key-value pair");s[u=f[0]]=(a=s[u])?Ve.isArray(a)?[].concat(d(a),[f[1]]):[a,f[1]]:f[1]}}catch(e){l.e(e)}finally{l.f()}i(s,t)}else null!=e&&o(t,e,r);return this}},{key:"get",value:function(e,t){if(e=rt(e)){var r=Ve.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(Ve.isFunction(t))return t.call(this,n,r);if(Ve.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=rt(e)){var r=Ve.findKey(this,e);return!(!r||void 0===this[r]||t&&!ot(0,this[r],r,t))}return!1}},{key:"delete",value:function(e,t){var r=this,n=!1;function o(e){if(e=rt(e)){var o=Ve.findKey(r,e);!o||t&&!ot(0,r[o],o,t)||(delete r[o],n=!0)}}return Ve.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&&!ot(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}},{key:"normalize",value:function(e){var t=this,r={};return Ve.forEach(this,(function(n,o){var i=Ve.findKey(r,o);if(i)return t[i]=nt(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]=nt(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 Ve.forEach(this,(function(r,n){null!=r&&!1!==r&&(t[n]=e&&Ve.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=m(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:"getSetCookie",value:function(){return this.get("set-cookie")||[]}},{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[tt]=this[tt]={accessors:{}}).accessors,r=this.prototype;function n(e){var n=rt(e);t[n]||(function(e,t){var r=Ve.toCamelCase(" "+t);["get","set","has"].forEach((function(n){Object.defineProperty(e,n+r,{__proto__:null,value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return Ve.isArray(e)?e.forEach(n):n(e),this}}])}();it.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ve.reduceDescriptors(it.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}}})),Ve.freezeMethods(it);var at=function(e){function t(e,r,n,o,i){var a;return h(this,t),a=Q(this,t,[e]),Object.defineProperty(a,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),a.name="AxiosError",a.isAxiosError=!0,r&&(a.code=r),n&&(a.config=n),o&&(a.request=o),i&&(a.response=i,a.status=i.status),a}return s(t,e),b(t,[{key:"toJSON",value:function(){var e=this.config,t=e&&Ve.hasOwnProp(e,"redact")?e.redact:void 0,r=Ve.isArray(t)&&t.length>0?function(e,t){var r=new Set(t.map((function(e){return String(e).toLowerCase()}))),o=[],i=function(e){if(null===e||"object"!==n(e))return e;if(Ve.isBuffer(e))return e;if(-1===o.indexOf(e)){var t;if(e instanceof it&&(e=e.toJSON()),o.push(e),Ve.isArray(e))t=[],e.forEach((function(e,r){var n=i(e);Ve.isUndefined(n)||(t[r]=n)}));else{if(!Ve.isPlainObject(e)&&function(e){if(Ve.hasOwnProp(e,"toJSON"))return!0;for(var t=Object.getPrototypeOf(e);t&&t!==Object.prototype;){if(Ve.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return o.pop(),e;t=Object.create(null);for(var a=0,u=Object.entries(e);a<u.length;a++){var c=m(u[a],2),s=c[0],l=c[1],f=r.has(s.toLowerCase())?"[REDACTED ****]":i(l);Ve.isUndefined(f)||(t[s]=f)}}return o.pop(),t}};return i(e)}(e,t):Ve.toJSONObject(e);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:r,code:this.code,status:this.status}}}],[{key:"from",value:function(e,r,n,o,i,a){var u=new t(e.message,r||e.code,n,o,i);return u.cause=e,u.name=e.name,null!=e.status&&null==u.status&&(u.status=e.status),a&&Object.assign(u,a),u}}])}(f(Error));function ut(e){return Ve.isPlainObject(e)||Ve.isArray(e)}function ct(e){return Ve.endsWith(e,"[]")?e.slice(0,-2):e}function st(e,t,r){return e?e.concat(t).map((function(e,t){return e=ct(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}at.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",at.ERR_BAD_OPTION="ERR_BAD_OPTION",at.ECONNABORTED="ECONNABORTED",at.ETIMEDOUT="ETIMEDOUT",at.ECONNREFUSED="ECONNREFUSED",at.ERR_NETWORK="ERR_NETWORK",at.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",at.ERR_DEPRECATED="ERR_DEPRECATED",at.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",at.ERR_BAD_REQUEST="ERR_BAD_REQUEST",at.ERR_CANCELED="ERR_CANCELED",at.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",at.ERR_INVALID_URL="ERR_INVALID_URL",at.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var lt=Ve.toFlatObject(Ve,{},null,(function(e){return/^is[A-Z]/.test(e)}));function ft(e,t,r){if(!Ve.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var o=(r=Ve.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ve.isUndefined(t[e])}))).metaTokens,i=r.visitor||p,a=r.dots,u=r.indexes,c=r.Blob||"undefined"!=typeof Blob&&Blob,s=void 0===r.maxDepth?100:r.maxDepth,l=c&&Ve.isSpecCompliantForm(t);if(!Ve.isFunction(i))throw new TypeError("visitor must be a function");function f(e){if(null===e)return"";if(Ve.isDate(e))return e.toISOString();if(Ve.isBoolean(e))return e.toString();if(!l&&Ve.isBlob(e))throw new at("Blob is not supported. Use a Buffer instead.");return Ve.isArrayBuffer(e)||Ve.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function p(e,r,i){var c=e;if(Ve.isReactNative(t)&&Ve.isReactNativeBlob(e))return t.append(st(i,r,a),f(e)),!1;if(e&&!i&&"object"===n(e))if(Ve.endsWith(r,"{}"))r=o?r:r.slice(0,-2),e=JSON.stringify(e);else if(Ve.isArray(e)&&function(e){return Ve.isArray(e)&&!e.some(ut)}(e)||(Ve.isFileList(e)||Ve.endsWith(r,"[]"))&&(c=Ve.toArray(e)))return r=ct(r),c.forEach((function(e,n){!Ve.isUndefined(e)&&null!==e&&t.append(!0===u?st([r],n,a):null===u?r:r+"[]",f(e))})),!1;return!!ut(e)||(t.append(st(i,r,a),f(e)),!1)}var y=[],d=Object.assign(lt,{defaultVisitor:p,convertValue:f,isVisitable:ut});if(!Ve.isObject(e))throw new TypeError("data must be an object");return function e(r,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!Ve.isUndefined(r)){if(o>s)throw new at("Object is too deeply nested ("+o+" levels). Max depth: "+s,at.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==y.indexOf(r))throw new Error("Circular reference detected in "+n.join("."));y.push(r),Ve.forEach(r,(function(r,a){!0===(!(Ve.isUndefined(r)||null===r)&&i.call(t,r,Ve.isString(a)?a.trim():a,n,d))&&e(r,n?n.concat(a):[a],o+1)})),y.pop()}}(e),t}function pt(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,(function(e){return t[e]}))}function yt(e,t){this._pairs=[],e&&ft(e,this,t)}var dt=yt.prototype;function ht(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function vt(e,t,r){if(!t)return e;var n,o=r&&r.encode||ht,i=Ve.isFunction(r)?{serialize:r}:r,a=i&&i.serialize;if(n=a?a(t,i):Ve.isURLSearchParams(t)?t.toString():new yt(t,i).toString(o)){var u=e.indexOf("#");-1!==u&&(e=e.slice(0,u)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}dt.append=function(e,t){this._pairs.push([e,t])},dt.toString=function(e){var t=e?function(t){return e.call(this,t,pt)}:pt;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var bt=function(){return b((function e(){h(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){Ve.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}])}(),mt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},gt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:yt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},wt="undefined"!=typeof window&&"undefined"!=typeof document,Ot="object"===("undefined"==typeof navigator?"undefined":n(navigator))&&navigator||void 0,xt=wt&&(!Ot||["ReactNative","NativeScript","NS"].indexOf(Ot.product)<0),St="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,jt=wt&&window.location.href||"http://localhost",Et=X(X({},Object.freeze({__proto__:null,hasBrowserEnv:wt,hasStandardBrowserEnv:xt,hasStandardBrowserWebWorkerEnv:St,navigator:Ot,origin:jt})),gt);function At(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&&Ve.isArray(n)?n.length:i,u?(n[i]=Ve.hasOwnProp(n,i)?Ve.isArray(n[i])?n[i].concat(r):[n[i],r]:r,!a):(Ve.hasOwnProp(n,i)&&Ve.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&Ve.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(Ve.isFormData(e)&&Ve.isFunction(e.entries)){var r={};return Ve.forEachEntry(e,(function(e,n){t(function(e){return Ve.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e),n,r,0)})),r}return null}var Pt=function(e,t){return null!=e&&Ve.hasOwnProp(e,t)?e[t]:void 0},kt={transitional:mt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var r,n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=Ve.isObject(e);if(i&&Ve.isHTMLForm(e)&&(e=new FormData(e)),Ve.isFormData(e))return o?JSON.stringify(At(e)):e;if(Ve.isArrayBuffer(e)||Ve.isBuffer(e)||Ve.isStream(e)||Ve.isFile(e)||Ve.isBlob(e)||Ve.isReadableStream(e))return e;if(Ve.isArrayBufferView(e))return e.buffer;if(Ve.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){var a=Pt(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ft(e,new Et.classes.URLSearchParams,X({visitor:function(e,t,r,n){return Et.isNode&&Ve.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,a).toString();if((r=Ve.isFileList(e))||n.indexOf("multipart/form-data")>-1){var u=Pt(this,"env"),c=u&&u.FormData;return ft(r?{"files[]":e}:e,c&&new c,a)}}return i||o?(t.setContentType("application/json",!1),function(e){if(Ve.isString(e))try{return(0,JSON.parse)(e),Ve.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=Pt(this,"transitional")||kt.transitional,r=t&&t.forcedJSONParsing,n=Pt(this,"responseType"),o="json"===n;if(Ve.isResponse(e)||Ve.isReadableStream(e))return e;if(e&&Ve.isString(e)&&(r&&!n||o)){var i=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,Pt(this,"parseReviver"))}catch(e){if(i){if("SyntaxError"===e.name)throw at.from(e,at.ERR_BAD_RESPONSE,this,null,Pt(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Et.classes.FormData,Blob:Et.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function Rt(e,t){var r=this||kt,n=t||r,o=it.from(n.headers),i=n.data;return Ve.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function _t(e){return!(!e||!e.__CANCEL__)}Ve.forEach(["delete","get","head","post","put","patch","query"],(function(e){kt.headers[e]={}}));var Tt=function(e){function t(e,r,n){var o;return h(this,t),(o=Q(this,t,[null==e?"canceled":e,at.ERR_CANCELED,r,n])).name="CanceledError",o.__CANCEL__=!0,o}return s(t,e),b(t)}(at);function Lt(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new at("Request failed with status code "+r.status,r.status>=400&&r.status<500?at.ERR_BAD_REQUEST:at.ERR_BAD_RESPONSE,r.config,r.request,r)):e(r)}var Ct=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(void 0,d(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){if(r&&"number"==typeof r.loaded){var a=r.loaded,u=r.lengthComputable?r.total:void 0,c=null!=u?Math.min(a,u):a,s=Math.max(0,c-n),l=o(s);n=Math.max(n,c);var f=i({loaded:c,total:u,progress:u?c/u:void 0,bytes:s,rate:l||void 0,estimated:l&&u?(u-c)/l:void 0,event:r,lengthComputable:null!=u},t?"download":"upload",!0);e(f)}}),r)},Nt=function(e,t){var r=null!=e;return[function(n){return t[0]({lengthComputable:r,total:e,loaded:n})},t[1]]},Ut=function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ve.asap((function(){return e.apply(void 0,r)}))}},It=Et.hasStandardBrowserEnv?function(e,t){return function(r){return e.protocol===(r=new URL(r,Et.origin)).protocol&&e.host===r.host&&(t||e.port===r.port)}}(new URL(Et.origin),Et.navigator&&/(msie|trident)/i.test(Et.navigator.userAgent)):function(){return!0},Dt=Et.hasStandardBrowserEnv?{write:function(e,t,r,n,o,i,a){if("undefined"!=typeof document){var u=["".concat(e,"=").concat(encodeURIComponent(t))];Ve.isNumber(r)&&u.push("expires=".concat(new Date(r).toUTCString())),Ve.isString(n)&&u.push("path=".concat(n)),Ve.isString(o)&&u.push("domain=".concat(o)),!0===i&&u.push("secure"),Ve.isString(a)&&u.push("SameSite=".concat(a)),document.cookie=u.join("; ")}},read:function(e){if("undefined"==typeof document)return null;for(var t=document.cookie.split(";"),r=0;r<t.length;r++){var n=t[r].replace(/^\s+/,""),o=n.indexOf("=");if(-1!==o&&n.slice(0,o)===e)return decodeURIComponent(n.slice(o+1))}return null},remove:function(e){this.write(e,"",Date.now()-864e5,"/")}}:{write:function(){},read:function(){return null},remove:function(){}};function Bt(e,t,r){var n,o=!("string"==typeof(n=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n));return e&&(o||!1===r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var Ft=function(e){return e instanceof it?X({},e):e};function Mt(e,t){t=t||{};var r=Object.create(null);function n(e,t,r,n){return Ve.isPlainObject(e)&&Ve.isPlainObject(t)?Ve.merge.call({caseless:n},e,t):Ve.isPlainObject(t)?Ve.merge({},t):Ve.isArray(t)?t.slice():t}function o(e,t,r,o){return Ve.isUndefined(t)?Ve.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!Ve.isUndefined(t))return n(void 0,t)}function a(e,t){return Ve.isUndefined(t)?Ve.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function u(r,o,i){return Ve.hasOwnProp(t,i)?n(r,o):Ve.hasOwnProp(e,i)?n(void 0,r):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!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,allowedSocketPaths:a,responseEncoding:a,validateStatus:u,headers:function(e,t){return o(Ft(e),Ft(t),0,!0)}};return Ve.forEach(Object.keys(X(X({},e),t)),(function(n){if("__proto__"!==n&&"constructor"!==n&&"prototype"!==n){var i=Ve.hasOwnProp(c,n)?c[n]:o,a=i(Ve.hasOwnProp(e,n)?e[n]:void 0,Ve.hasOwnProp(t,n)?t[n]:void 0,n);Ve.isUndefined(a)&&i!==u||(r[n]=a)}})),r}var qt=["content-type","content-length"];function Wt(e){var t=Mt({},e),r=function(e){return Ve.hasOwnProp(t,e)?t[e]:void 0},n=r("data"),o=r("withXSRFToken"),i=r("xsrfHeaderName"),a=r("xsrfCookieName"),u=r("headers"),c=r("auth"),s=r("baseURL"),l=r("allowAbsoluteUrls"),f=r("url");if(t.headers=u=it.from(u),t.url=vt(Bt(s,f,l),r("params"),r("paramsSerializer")),c&&u.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?encodeURIComponent(c.password).replace(/%([0-9A-F]{2})/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))})):""))),Ve.isFormData(n)&&(Et.hasStandardBrowserEnv||Et.hasStandardBrowserWebWorkerEnv||Ve.isReactNative(n)?u.setContentType(void 0):Ve.isFunction(n.getHeaders)&&function(e,t,r){"content-only"===r?Object.entries(t).forEach((function(t){var r=m(t,2),n=r[0],o=r[1];qt.includes(n.toLowerCase())&&e.set(n,o)})):e.set(t)}(u,n.getHeaders(),r("formDataHeaderPolicy"))),Et.hasStandardBrowserEnv&&(Ve.isFunction(o)&&(o=o(t)),!0===o||null==o&&It(t.url))){var p=i&&a&&Dt.read(a);p&&u.set(i,p)}return t}var zt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){var n,o,i,a=Wt(e),u=a.data,c=it.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=it.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());Lt((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&&y.responseURL.startsWith("file:"))&&setTimeout(d)},y.onabort=function(){y&&(r(new at("Request aborted",at.ECONNABORTED,e,y)),p(),y=null)},y.onerror=function(t){var n=new at(t&&t.message?t.message:"Network Error",at.ERR_NETWORK,e,y);n.event=t||null,r(n),p(),y=null},y.ontimeout=function(){var t=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";a.timeoutErrorMessage&&(t=a.timeoutErrorMessage),r(new at(t,(a.transitional||mt).clarifyTimeoutError?at.ETIMEDOUT:at.ECONNABORTED,e,y)),p(),y=null},void 0===u&&c.setContentType(null),"setRequestHeader"in y&&Ve.forEach(et(c),(function(e,t){y.setRequestHeader(t,e)})),Ve.isUndefined(a.withCredentials)||(y.withCredentials=!!a.withCredentials),s&&"json"!==s&&(y.responseType=a.responseType),f){var h=m(Ct(f,!0),2);i=h[1],y.addEventListener("progress",h[0])}if(l&&y.upload){var v=m(Ct(l),2);o=v[1],y.upload.addEventListener("progress",v[0]),y.upload.addEventListener("loadend",o)}(a.cancelToken||a.signal)&&(n=function(t){y&&(r(!t||t.type?new Tt(null,e,y):t),y.abort(),p(),y=null)},a.cancelToken&&a.cancelToken.subscribe(n),a.signal&&(a.signal.aborted?n():a.signal.addEventListener("abort",n)));var b,g=(b=/^([-+\w]{1,25}):(?:\/\/)?/.exec(a.url))&&b[1]||"";!g||Et.protocols.includes(g)?y.send(u||null):r(new at("Unsupported protocol "+g+":",at.ERR_BAD_REQUEST,e))}))},Ht=function(e,t){if(e=e?e.filter(Boolean):[],t||e.length){var r=new AbortController,n=!1,o=function(e){if(!n){n=!0,a();var t=e instanceof Error?e:this.reason;r.abort(t instanceof at?t:new Tt(t instanceof Error?t.message:t))}},i=t&&setTimeout((function(){i=null,o(new at("timeout of ".concat(t,"ms exceeded"),at.ETIMEDOUT))}),t),a=function(){e&&(i&&clearTimeout(i),i=null,e.forEach((function(e){e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((function(e){return e.addEventListener("abort",o)}));var u=r.signal;return u.unsubscribe=function(){return Ve.asap(a)},u}},Kt=$.mark((function e(t,r){var n,o,i;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((n=t.byteLength)<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)})),Jt=function(){var e=w($.mark((function e(t,r){var n,o,i,a,u;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=!1,o=!1,e.prev=2,a=ee(Gt(t));case 4:return e.next=6,x(a.next());case 6:if(!(n=!(u=e.sent).done)){e.next=12;break}return e.delegateYield(S(ee(Kt(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,x(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=w($.mark((function e(t){var r,n,o;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t[Symbol.asyncIterator]){e.next=3;break}return e.delegateYield(S(ee(t)),"t0",2);case 2:return e.abrupt("return");case 3:r=t.getReader(),e.prev=4;case 5:return e.next=7,x(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,x(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)}}(),$t=function(e,t,n,o){var i,a=Jt(e,t),u=0,c=function(e){i||(i=!0,o&&o(e))};return new ReadableStream({pull:function(e){return r($.mark((function t(){var r,o,i,s;return $.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})};function Vt(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;var t=e.indexOf(",");if(t<0)return 0;var r=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(r)){for(var o=n.length,i=n.length,a=0;a<i;a++)if(37===n.charCodeAt(a)&&a+2<i){var u=n.charCodeAt(a+1),c=n.charCodeAt(a+2);(u>=48&&u<=57||u>=65&&u<=70||u>=97&&u<=102)&&(c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102)&&(o-=2,a+=2)}var s=0,l=i-1,f=function(e){return e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e))};l>=0&&(61===n.charCodeAt(l)?(s++,l--):f(l)&&(s++,l-=3)),1===s&&l>=0&&(61===n.charCodeAt(l)||f(l))&&s++;var p=3*Math.floor(o/4)-(s||0);return p>0?p:0}if("undefined"!=typeof Buffer&&"function"==typeof Buffer.byteLength)return Buffer.byteLength(n,"utf8");for(var y=0,d=0,h=n.length;d<h;d++){var v=n.charCodeAt(d);if(v<128)y+=1;else if(v<2048)y+=2;else if(v>=55296&&v<=56319&&d+1<h){var b=n.charCodeAt(d+1);b>=56320&&b<=57343?(y+=4,d++):y+=3}else y+=3}return y}var Xt="1.17.0",Qt=Ve.isFunction,Yt=function(e){if(!Ve.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},Zt=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}},er=function(e){var t=e.indexOf("://"),r=e;return-1!==t&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},tr=function(e){var t=null!=Ve.global?Ve.global:globalThis,n=t.ReadableStream,o=t.TextEncoder,i=(e=Ve.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e)).fetch,a=e.Request,u=e.Response,c=i?Qt(i):"function"==typeof fetch,s=Qt(a),l=Qt(u);if(!c)return!1;var f,p=c&&Qt(n),y=c&&("function"==typeof o?(f=new o,function(e){return f.encode(e)}):function(){var e=r($.mark((function e(t){return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Uint8Array,e.next=3,new a(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)}}()),d=s&&p&&Zt((function(){var e=!1,t=new a(Et.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r})),h=l&&p&&Zt((function(){return Ve.isReadableStream(new u("").body)})),v={stream:h&&function(e){return e.body}};c&&["text","arrayBuffer","blob","formData","stream"].forEach((function(e){!v[e]&&(v[e]=function(t,r){var n=t&&t[e];if(n)return n.call(t);throw new at("Response type '".concat(e,"' is not supported"),at.ERR_NOT_SUPPORT,r)})}));var b=function(){var e=r($.mark((function e(t){var r;return $.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(!Ve.isBlob(t)){e.next=4;break}return e.abrupt("return",t.size);case 4:if(!Ve.isSpecCompliantForm(t)){e.next=9;break}return r=new a(Et.origin,{method:"POST",body:t}),e.next=8,r.arrayBuffer();case 8:case 15:return e.abrupt("return",e.sent.byteLength);case 9:if(!Ve.isArrayBufferView(t)&&!Ve.isArrayBuffer(t)){e.next=11;break}return e.abrupt("return",t.byteLength);case 11:if(Ve.isURLSearchParams(t)&&(t+=""),!Ve.isString(t)){e.next=16;break}return e.next=15,y(t);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=function(){var e=r($.mark((function e(t,r){var n;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Ve.toFiniteNumber(t.getContentLength()),e.abrupt("return",null==n?b(r):n);case 2:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();return function(){var e=r($.mark((function e(t){var r,n,c,l,f,p,y,b,w,O,x,S,j,E,A,P,k,R,_,T,L,C,N,U,I,D,B,F,M,q,W,z,H,K,J,G,V,Q,Y,Z,ee,te,re,ne,oe,ie,ae,ue,ce;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Wt(t),n=r.url,c=r.method,l=r.data,f=r.signal,p=r.cancelToken,y=r.timeout,b=r.onDownloadProgress,w=r.onUploadProgress,O=r.responseType,x=r.headers,j=void 0===(S=r.withCredentials)?"same-origin":S,E=r.fetchOptions,P=r.maxBodyLength,k=Ve.isNumber(A=r.maxContentLength)&&A>-1,R=Ve.isNumber(P)&&P>-1,_=function(e){return Ve.hasOwnProp(t,e)?t[e]:void 0},T=i||fetch,O=O?(O+"").toLowerCase():"text",L=Ht([f,p&&p.toAbortSignal()],y),C=null,N=L&&L.unsubscribe&&function(){L.unsubscribe()},e.prev=9,I=void 0,(D=_("auth"))&&(I={username:D.username||"",password:D.password||""}),er(n)&&(B=new URL(n,Et.origin),I||!B.username&&!B.password||(F=Yt(B.username),M=Yt(B.password),I={username:F,password:M}),(B.username||B.password)&&(B.username="",B.password="",n=B.href)),I&&(x.delete("authorization"),x.set("Authorization","Basic "+btoa(encodeURIComponent((I.username||"")+":"+(I.password||"")).replace(/%([0-9A-F]{2})/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))}))))),!k||"string"!=typeof n||!n.startsWith("data:")){e.next=19;break}if(!(Vt(n)>A)){e.next=19;break}throw new at("maxContentLength size of "+A+" exceeded",at.ERR_BAD_RESPONSE,t,C);case 19:if(!R||"get"===c||"head"===c){e.next=25;break}return e.next=22,g(x,l);case 22:if(!("number"==typeof(q=e.sent)&&isFinite(q)&&q>P)){e.next=25;break}throw new at("Request body larger than maxBodyLength limit",at.ERR_BAD_REQUEST,t,C);case 25:if(e.t0=w&&d&&"get"!==c&&"head"!==c,!e.t0){e.next=31;break}return e.next=29,g(x,l);case 29:e.t1=U=e.sent,e.t0=0!==e.t1;case 31:if(!e.t0){e.next=35;break}W=new a(n,{method:"POST",body:l,duplex:"half"}),Ve.isFormData(l)&&(z=W.headers.get("content-type"))&&x.setContentType(z),W.body&&(H=Nt(U,Ct(Ut(w))),K=m(H,2),l=$t(W.body,65536,K[0],K[1]));case 35:return Ve.isString(j)||(j=j?"include":"omit"),J=s&&"credentials"in a.prototype,Ve.isFormData(l)&&(G=x.getContentType())&&/^multipart\/form-data/i.test(G)&&!/boundary=/i.test(G)&&x.delete("content-type"),x.set("User-Agent","axios/"+Xt,!1),V=X(X({},E),{},{signal:L,method:c.toUpperCase(),headers:et(x.normalize()),body:l,duplex:"half",credentials:J?j:void 0}),C=s&&new a(n,V),e.next=43,s?T(C,E):T(n,V);case 43:if(Q=e.sent,!k){e.next=48;break}if(!(null!=(Y=Ve.toFiniteNumber(Q.headers.get("content-length")))&&Y>A)){e.next=48;break}throw new at("maxContentLength size of "+A+" exceeded",at.ERR_BAD_RESPONSE,t,C);case 48:return Z=h&&("stream"===O||"response"===O),h&&Q.body&&(b||k||Z&&N)&&(ee={},["status","statusText","headers"].forEach((function(e){ee[e]=Q[e]})),te=Ve.toFiniteNumber(Q.headers.get("content-length")),re=b&&Nt(te,Ct(Ut(b),!0))||[],ne=m(re,2),oe=ne[0],ie=ne[1],Q=new u($t(Q.body,65536,(function(e){if(k&&e>A)throw new at("maxContentLength size of "+A+" exceeded",at.ERR_BAD_RESPONSE,t,C);oe&&oe(e)}),(function(){ie&&ie(),N&&N()})),ee)),O=O||"text",e.next=53,v[Ve.findKey(v,O)||"text"](Q,t);case 53:if(ae=e.sent,!k||h||Z){e.next=58;break}if(null!=ae&&("number"==typeof ae.byteLength?ue=ae.byteLength:"number"==typeof ae.size?ue=ae.size:"string"==typeof ae&&(ue="function"==typeof o?(new o).encode(ae).byteLength:ae.length)),!("number"==typeof ue&&ue>A)){e.next=58;break}throw new at("maxContentLength size of "+A+" exceeded",at.ERR_BAD_RESPONSE,t,C);case 58:return!Z&&N&&N(),e.next=61,new Promise((function(e,r){Lt(e,r,{data:ae,headers:it.from(Q.headers),status:Q.status,statusText:Q.statusText,config:t,request:C})}));case 61:return e.abrupt("return",e.sent);case 64:if(e.prev=64,e.t2=e.catch(9),N&&N(),!(L&&L.aborted&&L.reason instanceof at)){e.next=73;break}throw(ce=L.reason).config=t,C&&(ce.request=C),e.t2!==ce&&(ce.cause=e.t2),ce;case 73:if(!e.t2||"TypeError"!==e.t2.name||!/Load failed|fetch/i.test(e.t2.message)){e.next=75;break}throw Object.assign(new at("Network Error",at.ERR_NETWORK,t,C,e.t2&&e.t2.response),{cause:e.t2.cause||e.t2});case 75:throw at.from(e.t2,e.t2&&e.t2.code,t,C,e.t2&&e.t2.response);case 76:case"end":return e.stop()}}),e,null,[[9,64]])})));return function(t){return e.apply(this,arguments)}}()},rr=new Map,nr=function(e){for(var t,r,n=e&&e.env||{},o=[n.Request,n.Response,n.fetch],i=o.length,a=rr;i--;)void 0===(r=a.get(t=o[i]))&&a.set(t,r=i?new Map:tr(n)),a=r;return r};nr();var or={http:null,xhr:zt,fetch:{get:nr}};Ve.forEach(or,(function(e,t){if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}}));var ir=function(e){return"- ".concat(e)},ar=function(e){return Ve.isFunction(e)||null===e||!1===e},ur=function(e,t){for(var r,n,o=(e=Ve.isArray(e)?e:[e]).length,i={},a=0;a<o;a++){var u=void 0;if(n=r=e[a],!ar(r)&&void 0===(n=or[(u=String(r)).toLowerCase()]))throw new at("Unknown adapter '".concat(u,"'"));if(n&&(Ve.isFunction(n)||(n=n.get(t))))break;i[u||"#"+a]=n}if(!n){var c=Object.entries(i).map((function(e){var t=m(e,2),r=t[1];return"adapter ".concat(t[0]," ")+(!1===r?"is not supported by the environment":"is not available in the build")})),s=o?c.length>1?"since :\n"+c.map(ir).join("\n"):" "+ir(c[0]):"as no adapter specified";throw new at("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n};function cr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Tt(null,e)}function sr(e){return cr(e),e.headers=it.from(e.headers),e.data=Rt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ur(e.adapter||kt.adapter,e)(e).then((function(t){cr(e),e.response=t;try{t.data=Rt.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=it.from(t.headers),t}),(function(t){if(!_t(t)&&(cr(e),t&&t.response)){e.response=t.response;try{t.response.data=Rt.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=it.from(t.response.headers)}return Promise.reject(t)}))}var lr={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){lr[e]=function(r){return n(r)===e||"a"+(t<1?"n ":" ")+e}}));var fr={};lr.transitional=function(e,t,r){return function(n,o,i){if(!1===e)throw new at(function(e,t){return"[Axios v"+Xt+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}(o," has been removed"+(t?" in "+t:"")),at.ERR_DEPRECATED);return t&&!fr[o]&&(fr[o]=!0),!e||e(n,o,i)}},lr.spelling=function(){return function(){return!0}};var pr={assertOptions:function(e,t,r){if("object"!==n(e))throw new at("options must be an object",at.ERR_BAD_OPTION_VALUE);for(var o=Object.keys(e),i=o.length;i-- >0;){var a=o[i],u=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(u){var c=e[a],s=void 0===c||u(c,a,e);if(!0!==s)throw new at("option "+a+" must be "+s,at.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new at("Unknown option "+a,at.ERR_BAD_OPTION)}},validators:lr},yr=pr.validators,dr=function(){return b((function e(t){h(this,e),this.defaults=t||{},this.interceptors={request:new bt,response:new bt}}),[{key:"request",value:(e=r($.mark((function e(t,r){var n,o,i,a,u;return $.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=function(){if(!n.stack)return"";var e=n.stack.indexOf("\n");return-1===e?"":n.stack.slice(e+1)}();try{e.t0.stack?o&&(i=o.indexOf("\n"),a=-1===i?-1:o.indexOf("\n",i+1),u=-1===a?"":o.slice(a+1),String(e.t0.stack).endsWith(u)||(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=Mt(this.defaults,t)).transitional,n=t.paramsSerializer,o=t.headers;void 0!==r&&pr.assertOptions(r,{silentJSONParsing:yr.transitional(yr.boolean),forcedJSONParsing:yr.transitional(yr.boolean),clarifyTimeoutError:yr.transitional(yr.boolean),legacyInterceptorReqResOrdering:yr.transitional(yr.boolean),advertiseZstdAcceptEncoding:yr.transitional(yr.boolean)},!1),null!=n&&(Ve.isFunction(n)?t.paramsSerializer={serialize:n}:pr.assertOptions(n,{encode:yr.function,serialize:yr.function},!0)),void 0!==t.allowAbsoluteUrls||(t.allowAbsoluteUrls=void 0===this.defaults.allowAbsoluteUrls||this.defaults.allowAbsoluteUrls),pr.assertOptions(t,{baseUrl:yr.spelling("baseURL"),withXsrfToken:yr.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();var i=o&&Ve.merge(o.common,o[t.method]);o&&Ve.forEach(["delete","get","head","post","put","patch","query","common"],(function(e){delete o[e]})),t.headers=it.concat(i,o);var a=[],u=!0;this.interceptors.request.forEach((function(e){if("function"!=typeof e.runWhen||!1!==e.runWhen(t)){u=u&&e.synchronous;var r=t.transitional||mt;r&&r.legacyInterceptorReqResOrdering?a.unshift(e.fulfilled,e.rejected):a.push(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=[sr.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;for(var y=t;f<l;){var d=a[f++],h=a[f++];try{y=d(y)}catch(e){h.call(this,e);break}}try{c=sr.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 vt(Bt((e=Mt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}]);var e}();Ve.forEach(["delete","get","head","options"],(function(e){dr.prototype[e]=function(t,r){return this.request(Mt(r||{},{method:e,url:t,data:(r||{}).data}))}})),Ve.forEach(["post","put","patch","query"],(function(e){function t(t){return function(r,n,o){return this.request(Mt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}dr.prototype[e]=t(),"query"!==e&&(dr.prototype[e+"Form"]=t(!0))}));var hr=function(){function e(t){if(h(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 Tt(e,t,o),r(n.reason))}))}return b(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}}}])}(),vr={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(vr).forEach((function(e){var t=m(e,2);vr[t[1]]=t[0]}));var br=function e(t){var r=new dr(t),n=re(dr.prototype.request,r);return Ve.extend(n,dr.prototype,r,{allOwnKeys:!0}),Ve.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Mt(t,r))},n}(kt);br.Axios=dr,br.CanceledError=Tt,br.CancelToken=hr,br.isCancel=_t,br.VERSION=Xt,br.toFormData=ft,br.AxiosError=at,br.Cancel=br.CanceledError,br.all=function(e){return Promise.all(e)},br.spread=function(e){return function(t){return e.apply(null,t)}},br.isAxiosError=function(e){return Ve.isObject(e)&&!0===e.isAxiosError},br.mergeConfig=Mt,br.AxiosHeaders=it,br.formToJSON=function(e){return At(Ve.isHTMLForm(e)?new FormData(e):e)},br.getAdapter=ur,br.HttpStatusCode=vr,br.default=br;var mr=j(br),gr=Function.prototype.toString,wr=Object.create,Or=Object.prototype.toString,xr=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}(),Sr="undefined"!=typeof WeakMap?function(){return new WeakMap}:function(){return new xr};function jr(e){if(!e)return wr(null);var t=e.constructor;if(t===Object)return e===Object.prototype?{}:wr(e);if(t&&~gr.call(t).indexOf("[native code]"))try{return new t}catch(e){}return wr(e)}var Er="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 Ar(e){var t=Or.call(e);return t.substring(8,t.length-1)}var Pr="undefined"!=typeof Symbol?function(e){return e[Symbol.toStringTag]||Ar(e)}:Ar,kr=Object.defineProperty,Rr=Object.getOwnPropertyDescriptor,_r=Object.getOwnPropertyNames,Tr=Object.getOwnPropertySymbols,Lr=Object.prototype,Cr=Lr.hasOwnProperty,Nr=Lr.propertyIsEnumerable,Ur="function"==typeof Tr,Ir=Ur?function(e){return _r(e).concat(Tr(e))}:_r;function Dr(e,t,r){for(var n=Ir(e),o=0,i=n.length,a=void 0,u=void 0;o<i;++o)if("callee"!==(a=n[o])&&"caller"!==a)if(u=Rr(e,a)){u.get||u.set||(u.value=r.copier(u.value,r));try{kr(t,a,u)}catch(e){t[a]=u.value}}else t[a]=r.copier(e[a],r);return t}function Br(e){return e.slice(0)}function Fr(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 Mr=Ur?function(e,t){var r=jr(t.prototype);for(var n in t.cache.set(e,r),e)Cr.call(e,n)&&(r[n]=t.copier(e[n],t));for(var o=Tr(e),i=0,a=o.length,u=void 0;i<a;++i)Nr.call(e,u=o[i])&&(r[u]=t.copier(e[u],t));return r}:function(e,t){var r=jr(t.prototype);for(var n in t.cache.set(e,r),e)Cr.call(e,n)&&(r[n]=t.copier(e[n],t));return r};function qr(e,t){return new t.Constructor(e.valueOf())}function Wr(e){return e}function zr(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 Hr=Array.isArray,Kr=Object.assign,Jr=Object.getPrototypeOf||function(e){return e.__proto__},Gr={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:Br,blob:function(e){return e.slice(0,e.size,e.type)},dataView:function(e,t){return new t.Constructor(Br(e.buffer))},date:function(e,t){return new t.Constructor(e.getTime())},error:Wr,map:Fr,object:Mr,regExp:function(e,t){var r=new t.Constructor(e.source,Er(e));return r.lastIndex=e.lastIndex,r},set:zr},$r=Kr({},Gr,{array:function(e,t){var r=new t.Constructor;return t.cache.set(e,r),Dr(e,r,t)},map:function(e,t){return Dr(e,Fr(e,t),t)},object:function(e,t){var r=jr(t.prototype);return t.cache.set(e,r),Dr(e,r,t)},set:function(e,t){return Dr(e,zr(e,t),t)}});function Vr(e){var t=function(e){return{Arguments:e.object,Array:e.array,ArrayBuffer:e.arrayBuffer,Blob:e.blob,Boolean:qr,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:qr,Object:e.object,Promise:Wr,RegExp:e.regExp,Set:e.set,String:qr,WeakMap:Wr,WeakSet:Wr,Uint8Array:e.arrayBuffer,Uint8ClampedArray:e.arrayBuffer,Uint16Array:e.arrayBuffer,Uint32Array:e.arrayBuffer,Uint64Array:e.arrayBuffer}}(Kr({},Gr,e)),r=t.Array,o=t.Object;function i(e,i){if(i.prototype=i.Constructor=void 0,!e||"object"!==n(e))return e;if(i.cache.has(e))return i.cache.get(e);if(i.prototype=Jr(e),i.Constructor=i.prototype&&i.prototype.constructor,!i.Constructor||i.Constructor===Object)return o(e,i);if(Hr(e))return r(e,i);var a=t[Pr(e)];return a?a(e,i):"function"==typeof e.then?e:o(e,i)}return function(e){return i(e,{Constructor:void 0,cache:Sr(),copier:i,prototype:void 0})}}Vr(Kr({},$r,{}));var Xr,Qr,Yr=Vr({}),Zr={exports:{}},en=Zr.exports={};function tn(){throw new Error("setTimeout has not been defined")}function rn(){throw new Error("clearTimeout has not been defined")}function nn(e){if(Xr===setTimeout)return setTimeout(e,0);if((Xr===tn||!Xr)&&setTimeout)return Xr=setTimeout,setTimeout(e,0);try{return Xr(e,0)}catch(t){try{return Xr.call(null,e,0)}catch(t){return Xr.call(this,e,0)}}}!function(){try{Xr="function"==typeof setTimeout?setTimeout:tn}catch(e){Xr=tn}try{Qr="function"==typeof clearTimeout?clearTimeout:rn}catch(e){Qr=rn}}();var on,an=[],un=!1,cn=-1;function sn(){un&&on&&(un=!1,on.length?an=on.concat(an):cn=-1,an.length&&ln())}function ln(){if(!un){var e=nn(sn);un=!0;for(var t=an.length;t;){for(on=an,an=[];++cn<t;)on&&on[cn].run();cn=-1,t=an.length}on=null,un=!1,function(e){if(Qr===clearTimeout)return clearTimeout(e);if((Qr===rn||!Qr)&&clearTimeout)return Qr=clearTimeout,clearTimeout(e);try{return Qr(e)}catch(t){try{return Qr.call(null,e)}catch(t){return Qr.call(this,e)}}}(e)}}function fn(e,t){this.fun=e,this.array=t}function pn(){}en.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];an.push(new fn(e,t)),1!==an.length||un||nn(ln)},fn.prototype.run=function(){this.fun.apply(null,this.array)},en.title="browser",en.browser=!0,en.env={},en.argv=[],en.version="",en.versions={},en.on=pn,en.addListener=pn,en.once=pn,en.off=pn,en.removeListener=pn,en.removeAllListeners=pn,en.emit=pn,en.prependListener=pn,en.prependOnceListener=pn,en.listeners=function(){return[]},en.binding=function(){throw new Error("process.binding is not supported")},en.cwd=function(){return"/"},en.chdir=function(){throw new Error("process.chdir is not supported")},en.umask=function(){return 0};var yn=j(Zr.exports);function dn(){}var hn=function(e){return new Promise((function(t){setTimeout(t,e)}))},vn="object"==("undefined"==typeof global?"undefined":n(global))&&global&&global.Object===Object&&global,bn="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,mn=(vn||bn||Function("return this")()).Symbol,gn=Object.prototype,wn=gn.hasOwnProperty,On=gn.toString,xn=mn?mn.toStringTag:void 0,Sn=Object.prototype.toString,jn=mn?mn.toStringTag:void 0,En=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":jn&&jn in Object(e)?function(e){var t=wn.call(e,xn),r=e[xn];try{e[xn]=void 0;var n=!0}catch(e){}var o=On.call(e);return n&&(t?e[xn]=r:delete e[xn]),o}(e):function(e){return Sn.call(e)}(e)},An=function(e){return null!=e&&"object"==n(e)},Pn=En,kn=Array.isArray,Rn=An,_n=j((function(e){return"string"==typeof e||!kn(e)&&Rn(e)&&"[object String]"==Pn(e)}));function Tn(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 Ln(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ln=function(){return!!e})()}var Cn=function(e){function t(){var e,r,n,o;return h(this,t),r=this,o=["Throttled function aborted"],n=u(n=t),i(e=a(r,Ln()?Reflect.construct(n,o||[],u(r).constructor):n.apply(r,o)),"name","AbortError"),e}return s(t,e),b(t)}(f(Error));function Nn(){Nn=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)),c(i,r.prototype)}function o(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 s(r,RegExp),r.prototype.exec=function(t){var r=e.exec.call(this,t);if(r){r.groups=o(r,this);var n=r.indices;n&&(n.groups=o(n,this))}return r},r.prototype[Symbol.replace]=function(r,i){if("string"==typeof i){var a=t.get(this);return e[Symbol.replace].call(this,r,i.replace(/\$<([^>]+)(>|$)/g,(function(e,t,r){if(""===r)return e;var n=a[t];return Array.isArray(n)?"$"+n.join("$"):"number"==typeof n?"$"+n:""})))}if("function"==typeof i){var u=this;return e[Symbol.replace].call(this,r,(function(){var e=arguments;return"object"!=n(e[e.length-1])&&(e=[].slice.call(e)).push(o(e,u)),i.apply(this,e)}))}return e[Symbol.replace].call(this,r,i)},Nn.apply(this,arguments)}var Un=Nn(/(\d+)(%)/,{value:1});function In(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:7,r=t;if(Un.test(e)){var n,o=null===(n=e.match(Un))||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 Dn(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()):y()})):r($.mark((function t(){return $.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 Tn(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)?Tn(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 Cn)}}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 Bn=TypeError,Fn=E(Object.freeze({__proto__:null,default:{}})),Mn="function"==typeof Map&&Map.prototype,qn=Object.getOwnPropertyDescriptor&&Mn?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Wn=Mn&&qn&&"function"==typeof qn.get?qn.get:null,zn=Mn&&Map.prototype.forEach,Hn="function"==typeof Set&&Set.prototype,Kn=Object.getOwnPropertyDescriptor&&Hn?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Jn=Hn&&Kn&&"function"==typeof Kn.get?Kn.get:null,Gn=Hn&&Set.prototype.forEach,$n="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Vn="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Xn="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Qn=Boolean.prototype.valueOf,Yn=Object.prototype.toString,Zn=Function.prototype.toString,eo=String.prototype.match,to=String.prototype.slice,ro=String.prototype.replace,no=String.prototype.toUpperCase,oo=String.prototype.toLowerCase,io=RegExp.prototype.test,ao=Array.prototype.concat,uo=Array.prototype.join,co=Array.prototype.slice,so=Math.floor,lo="function"==typeof BigInt?BigInt.prototype.valueOf:null,fo=Object.getOwnPropertySymbols,po="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?Symbol.prototype.toString:null,yo="function"==typeof Symbol&&"object"===n(Symbol.iterator),ho="function"==typeof Symbol&&Symbol.toStringTag&&(n(Symbol.toStringTag),1)?Symbol.toStringTag:null,vo=Object.prototype.propertyIsEnumerable,bo=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function mo(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||io.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-so(-e):so(e);if(n!==e){var o=String(n),i=to.call(t,o.length+1);return ro.call(o,r,"$&_")+"."+ro.call(ro.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ro.call(t,r,"$&_")}var go=Fn,wo=go.custom,Oo=_o(wo)?wo:null,xo={__proto__:null,double:'"',single:"'"},So={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},jo=function e(t,r,o,i){var a=r||{};if(Lo(a,"quoteStyle")&&!Lo(xo,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Lo(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!Lo(a,"customInspect")||a.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Lo(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Lo(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=a.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 Uo(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var s=String(t);return c?mo(t,s):s}if("bigint"==typeof t){var l=String(t)+"n";return c?mo(t,l):l}var f=void 0===a.depth?5:a.depth;if(void 0===o&&(o=0),o>=f&&f>0&&"object"===n(t))return ko(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=uo.call(Array(e.indent+1)," ")}return{base:r,prev:uo.call(Array(t+1),r)}}(a,o);if(void 0===i)i=[];else if(No(i,t)>=0)return"[Circular]";function y(t,r,n){if(r&&(i=co.call(i)).push(r),n){var u={depth:a.depth};return Lo(a,"quoteStyle")&&(u.quoteStyle=a.quoteStyle),e(t,u,o+1,i)}return e(t,a,o+1,i)}if("function"==typeof t&&!Ro(t)){var d=function(e){if(e.name)return e.name;var t=eo.call(Zn.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),h=qo(t,y);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(h.length>0?" { "+uo.call(h,", ")+" }":"")}if(_o(t)){var v=yo?ro.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):po.call(t);return"object"!==n(t)||yo?v:Do(v)}if(function(e){return!(!e||"object"!==n(e))&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}(t)){for(var b="<"+oo.call(String(t.nodeName)),m=t.attributes||[],g=0;g<m.length;g++)b+=" "+m[g].name+"="+Eo(Ao(m[g].value),"double",a);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+"</"+oo.call(String(t.nodeName))+">"}if(ko(t)){if(0===t.length)return"[]";var w=qo(t,y);return p&&!function(e){for(var t=0;t<e.length;t++)if(No(e[t],"\n")>=0)return!1;return!0}(w)?"["+Mo(w,p)+"]":"[ "+uo.call(w,", ")+" ]"}if(function(e){return"[object Error]"===Co(e)&&Po(e)}(t)){var O=qo(t,y);return"cause"in Error.prototype||!("cause"in t)||vo.call(t,"cause")?0===O.length?"["+String(t)+"]":"{ ["+String(t)+"] "+uo.call(O,", ")+" }":"{ ["+String(t)+"] "+uo.call(ao.call("[cause]: "+y(t.cause),O),", ")+" }"}if("object"===n(t)&&u){if(Oo&&"function"==typeof t[Oo]&&go)return go(t,{depth:f-o});if("symbol"!==u&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Wn||!e||"object"!==n(e))return!1;try{Wn.call(e);try{Jn.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var x=[];return zn&&zn.call(t,(function(e,r){x.push(y(r,t,!0)+" => "+y(e,t))})),Fo("Map",Wn.call(t),x,p)}if(function(e){if(!Jn||!e||"object"!==n(e))return!1;try{Jn.call(e);try{Wn.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var S=[];return Gn&&Gn.call(t,(function(e){S.push(y(e,t))})),Fo("Set",Jn.call(t),S,p)}if(function(e){if(!$n||!e||"object"!==n(e))return!1;try{$n.call(e,$n);try{Vn.call(e,Vn)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Bo("WeakMap");if(function(e){if(!Vn||!e||"object"!==n(e))return!1;try{Vn.call(e,Vn);try{$n.call(e,$n)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Bo("WeakSet");if(function(e){if(!Xn||!e||"object"!==n(e))return!1;try{return Xn.call(e),!0}catch(e){}return!1}(t))return Bo("WeakRef");if(function(e){return"[object Number]"===Co(e)&&Po(e)}(t))return Do(y(Number(t)));if(function(e){if(!e||"object"!==n(e)||!lo)return!1;try{return lo.call(e),!0}catch(e){}return!1}(t))return Do(y(lo.call(t)));if(function(e){return"[object Boolean]"===Co(e)&&Po(e)}(t))return Do(Qn.call(t));if(function(e){return"[object String]"===Co(e)&&Po(e)}(t))return Do(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]"===Co(e)&&Po(e)}(t)&&!Ro(t)){var j=qo(t,y),E=bo?bo(t)===Object.prototype:t instanceof Object||t.constructor===Object,A=t instanceof Object?"":"null prototype",P=!E&&ho&&Object(t)===t&&ho in t?to.call(Co(t),8,-1):A?"Object":"",k=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(P||A?"["+uo.call(ao.call([],P||[],A||[]),": ")+"] ":"");return 0===j.length?k+"{}":p?k+"{"+Mo(j,p)+"}":k+"{ "+uo.call(j,", ")+" }"}return String(t)};function Eo(e,t,r){var n=xo[r.quoteStyle||t];return n+e+n}function Ao(e){return ro.call(String(e),/"/g,""")}function Po(e){return!ho||!("object"===n(e)&&(ho in e||void 0!==e[ho]))}function ko(e){return"[object Array]"===Co(e)&&Po(e)}function Ro(e){return"[object RegExp]"===Co(e)&&Po(e)}function _o(e){if(yo)return e&&"object"===n(e)&&e instanceof Symbol;if("symbol"===n(e))return!0;if(!e||"object"!==n(e)||!po)return!1;try{return po.call(e),!0}catch(e){}return!1}var To=Object.prototype.hasOwnProperty||function(e){return e in this};function Lo(e,t){return To.call(e,t)}function Co(e){return Yn.call(e)}function No(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 Uo(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Uo(to.call(e,0,t.maxStringLength),t)+n}var o=So[t.quoteStyle||"single"];return o.lastIndex=0,Eo(ro.call(ro.call(e,o,"\\$1"),/[\x00-\x1f]/g,Io),"single",t)}function Io(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":"")+no.call(t.toString(16))}function Do(e){return"Object("+e+")"}function Bo(e){return e+" { ? }"}function Fo(e,t,r,n){return e+" ("+t+") {"+(n?Mo(r,n):uo.call(r,", "))+"}"}function Mo(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+uo.call(e,","+r)+"\n"+t.prev}function qo(e,t){var r=ko(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Lo(e,o)?t(e[o],e):""}var i,a="function"==typeof fo?fo(e):[];if(yo){i={};for(var u=0;u<a.length;u++)i["$"+a[u]]=a[u]}for(var c in e)Lo(e,c)&&(r&&String(Number(c))===c&&c<e.length||yo&&i["$"+c]instanceof Symbol||(io.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof fo)for(var s=0;s<a.length;s++)vo.call(e,a[s])&&n.push("["+t(a[s])+"]: "+t(e[a[s]],e));return n}var Wo=jo,zo=Bn,Ho=function(e,t,r){for(var n,o=e;null!=(n=o.next);o=n)if(n.key===t)return o.next=n.next,r||(n.next=e.next,e.next=n),n},Ko=Object,Jo=Error,Go=EvalError,$o=RangeError,Vo=ReferenceError,Xo=SyntaxError,Qo=URIError,Yo=Math.abs,Zo=Math.floor,ei=Math.max,ti=Math.min,ri=Math.pow,ni=Math.round,oi=Number.isNaN||function(e){return e!=e},ii=Object.getOwnPropertyDescriptor;if(ii)try{ii([],"length")}catch(e){ii=null}var ai=ii,ui=Object.defineProperty||!1;if(ui)try{ui({},"a",{value:1})}catch(e){ui=!1}var ci,si,li,fi,pi,yi,di,hi,vi,bi,mi,gi,wi,Oi,xi,Si,ji=ui;function Ei(){return yi?pi:(yi=1,pi="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Ai(){return hi?di:(hi=1,di=Ko.getPrototypeOf||null)}function Pi(){if(bi)return vi;bi=1;var e=Object.prototype.toString,t=Math.max,r=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};return vi=function(n){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e){for(var t=[],r=1,n=0;r<e.length;r+=1,n+=1)t[n]=e[r];return t}(arguments),u=t(0,o.length-a.length),c=[],s=0;s<u;s++)c[s]="$"+s;if(i=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}(c)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var e=o.apply(this,r(a,arguments));return Object(e)===e?e:this}return o.apply(n,r(a,arguments))})),o.prototype){var l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i},vi}function ki(){if(gi)return mi;gi=1;var e=Pi();return mi=Function.prototype.bind||e}function Ri(){return Oi?wi:(Oi=1,wi=Function.prototype.call)}function _i(){return Si?xi:(Si=1,xi=Function.prototype.apply)}var Ti,Li,Ci,Ni,Ui,Ii,Di,Bi="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,Fi=ki(),Mi=_i(),qi=Ri(),Wi=Bi||Fi.call(qi,Mi),zi=ki(),Hi=Bn,Ki=Ri(),Ji=Wi,Gi=function(e){if(e.length<1||"function"!=typeof e[0])throw new Hi("a function is required");return Ji(zi,Ki,e)},$i=Ko,Vi=Jo,Xi=Go,Qi=$o,Yi=Vo,Zi=Xo,ea=Bn,ta=Qo,ra=Yo,na=Zo,oa=ei,ia=ti,aa=ri,ua=ni,ca=Function,sa=function(e){try{return ca('"use strict"; return ('+e+").constructor;")()}catch(e){}},la=ai,fa=ji,pa=function(){throw new ea},ya=la?function(){try{return pa}catch(e){try{return la(arguments,"callee").get}catch(e){return pa}}}():pa,da=function(){if(fi)return li;fi=1;var e="undefined"!=typeof Symbol&&Symbol,t=si?ci:(si=1,ci=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===n(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(var o 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 i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0});return li=function(){return"function"==typeof e&&"function"==typeof Symbol&&"symbol"===n(e("foo"))&&"symbol"===n(Symbol("bar"))&&t()}}()(),ha=function(){if(Ni)return Ci;Ni=1;var e=Ei(),t=Ai(),r=function(){if(Li)return Ti;Li=1;var e,t=Gi,r=ai;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!==n(e)||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!e&&r&&r(Object.prototype,"__proto__"),i=Object,a=i.getPrototypeOf;return Ti=o&&"function"==typeof o.get?t([o.get]):"function"==typeof a&&function(e){return a(null==e?e:i(e))}}();return Ci=e?function(t){return e(t)}:t?function(e){if(!e||"object"!==n(e)&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:r?function(e){return r(e)}:null}(),va=Ai(),ba=Ei(),ma=_i(),ga=Ri(),wa={},Oa="undefined"!=typeof Uint8Array&&ha?ha(Uint8Array):Di,xa={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?Di:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Di:ArrayBuffer,"%ArrayIteratorPrototype%":da&&ha?ha([][Symbol.iterator]()):Di,"%AsyncFromSyncIteratorPrototype%":Di,"%AsyncFunction%":wa,"%AsyncGenerator%":wa,"%AsyncGeneratorFunction%":wa,"%AsyncIteratorPrototype%":wa,"%Atomics%":"undefined"==typeof Atomics?Di:Atomics,"%BigInt%":"undefined"==typeof BigInt?Di:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Di:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Di:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Di:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Vi,"%eval%":eval,"%EvalError%":Xi,"%Float16Array%":"undefined"==typeof Float16Array?Di:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?Di:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Di:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Di:FinalizationRegistry,"%Function%":ca,"%GeneratorFunction%":wa,"%Int8Array%":"undefined"==typeof Int8Array?Di:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Di:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Di:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":da&&ha?ha(ha([][Symbol.iterator]())):Di,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":n(JSON))?JSON:Di,"%Map%":"undefined"==typeof Map?Di:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&da&&ha?ha((new Map)[Symbol.iterator]()):Di,"%Math%":Math,"%Number%":Number,"%Object%":$i,"%Object.getOwnPropertyDescriptor%":la,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Di:Promise,"%Proxy%":"undefined"==typeof Proxy?Di:Proxy,"%RangeError%":Qi,"%ReferenceError%":Yi,"%Reflect%":"undefined"==typeof Reflect?Di:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Di:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&da&&ha?ha((new Set)[Symbol.iterator]()):Di,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Di:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":da&&ha?ha(""[Symbol.iterator]()):Di,"%Symbol%":da?Symbol:Di,"%SyntaxError%":Zi,"%ThrowTypeError%":ya,"%TypedArray%":Oa,"%TypeError%":ea,"%Uint8Array%":"undefined"==typeof Uint8Array?Di:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Di:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Di:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Di:Uint32Array,"%URIError%":ta,"%WeakMap%":"undefined"==typeof WeakMap?Di:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Di:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Di:WeakSet,"%Function.prototype.call%":ga,"%Function.prototype.apply%":ma,"%Object.defineProperty%":fa,"%Object.getPrototypeOf%":va,"%Math.abs%":ra,"%Math.floor%":na,"%Math.max%":oa,"%Math.min%":ia,"%Math.pow%":aa,"%Math.round%":ua,"%Math.sign%":function(e){return oi(e)||0===e?e:e<0?-1:1},"%Reflect.getPrototypeOf%":ba};if(ha)try{null.error}catch(e){var Sa=ha(ha(e));xa["%Error.prototype%"]=Sa}var ja=function e(t){var r;if("%AsyncFunction%"===t)r=sa("async function () {}");else if("%GeneratorFunction%"===t)r=sa("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=sa("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&ha&&(r=ha(o.prototype))}return xa[t]=r,r},Ea={__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"]},Aa=ki(),Pa=function(){if(Ii)return Ui;Ii=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=ki();return Ui=r.call(e,t)}(),ka=Aa.call(ga,Array.prototype.concat),Ra=Aa.call(ma,Array.prototype.splice),_a=Aa.call(ga,String.prototype.replace),Ta=Aa.call(ga,String.prototype.slice),La=Aa.call(ga,RegExp.prototype.exec),Ca=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Na=/\\(\\)?/g,Ua=function(e,t){var r,n=e;if(Pa(Ea,n)&&(n="%"+(r=Ea[n])[0]+"%"),Pa(xa,n)){var o=xa[n];if(o===wa&&(o=ja(n)),void 0===o&&!t)throw new ea("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Zi("intrinsic "+e+" does not exist!")},Ia=function(e,t){if("string"!=typeof e||0===e.length)throw new ea("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new ea('"allowMissing" argument must be a boolean');if(null===La(/^%?[^%]*%?$/,e))throw new Zi("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=Ta(e,0,1),r=Ta(e,-1);if("%"===t&&"%"!==r)throw new Zi("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new Zi("invalid intrinsic syntax, expected opening `%`");var n=[];return _a(e,Ca,(function(e,t,r,o){n[n.length]=r?_a(o,Na,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=Ua("%"+n+"%",t),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],Ra(r,ka([0,1],c)));for(var s=1,l=!0;s<r.length;s+=1){var f=r[s],p=Ta(f,0,1),y=Ta(f,-1);if(('"'===p||"'"===p||"`"===p||'"'===y||"'"===y||"`"===y)&&p!==y)throw new Zi("property names with quotes must have matching quotes");if("constructor"!==f&&l||(u=!0),Pa(xa,i="%"+(n+="."+f)+"%"))a=xa[i];else if(null!=a){if(!(f in a)){if(!t)throw new ea("base intrinsic for "+e+" exists, but the property is not available.");return}if(la&&s+1>=r.length){var d=la(a,f);a=(l=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[f]}else l=Pa(a,f),a=a[f];l&&!u&&(xa[i]=a)}}return a},Da=Ia,Ba=Gi,Fa=Ba([Da("%String.prototype.indexOf%")]),Ma=function(e,t){var r=Da(e,!!t);return"function"==typeof r&&Fa(e,".prototype.")>-1?Ba([r]):r},qa=Ma,Wa=jo,za=Bn,Ha=Ia("%Map%",!0),Ka=qa("Map.prototype.get",!0),Ja=qa("Map.prototype.set",!0),Ga=qa("Map.prototype.has",!0),$a=qa("Map.prototype.delete",!0),Va=qa("Map.prototype.size",!0),Xa=!!Ha&&function(){var e,t={assert:function(e){if(!t.has(e))throw new za("Side channel does not contain "+Wa(e))},delete:function(t){if(e){var r=$a(e,t);return 0===Va(e)&&(e=void 0),r}return!1},get:function(t){if(e)return Ka(e,t)},has:function(t){return!!e&&Ga(e,t)},set:function(t,r){e||(e=new Ha),Ja(e,t,r)}};return t},Qa=Ma,Ya=jo,Za=Xa,eu=Bn,tu=Ia("%WeakMap%",!0),ru=Qa("WeakMap.prototype.get",!0),nu=Qa("WeakMap.prototype.set",!0),ou=Qa("WeakMap.prototype.has",!0),iu=Qa("WeakMap.prototype.delete",!0),au=Bn,uu=jo,cu=(tu?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new eu("Side channel does not contain "+Ya(e))},delete:function(r){if(tu&&r&&("object"===n(r)||"function"==typeof r)){if(e)return iu(e,r)}else if(Za&&t)return t.delete(r);return!1},get:function(r){return tu&&r&&("object"===n(r)||"function"==typeof r)&&e?ru(e,r):t&&t.get(r)},has:function(r){return tu&&r&&("object"===n(r)||"function"==typeof r)&&e?ou(e,r):!!t&&t.has(r)},set:function(r,o){tu&&r&&("object"===n(r)||"function"==typeof r)?(e||(e=new tu),nu(e,r,o)):Za&&(t||(t=Za()),t.set(r,o))}};return r}:Za)||Xa||function(){var e,t={assert:function(e){if(!t.has(e))throw new zo("Side channel does not contain "+Wo(e))},delete:function(t){var r=e&&e.next,n=function(e,t){if(e)return Ho(e,t,!0)}(e,t);return n&&r&&r===n&&(e=void 0),!!n},get:function(t){return function(e,t){if(e){var r=Ho(e,t);return r&&r.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!Ho(e,t)}(e,t)},set:function(t,r){e||(e={next:void 0}),function(e,t,r){var n=Ho(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(e,t,r)}};return t},su=function(){var e,t={assert:function(e){if(!t.has(e))throw new au("Side channel does not contain "+uu(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=cu()),e.set(t,r)}};return t},lu=String.prototype.replace,fu=/%20/g,pu="RFC3986",yu={default:pu,formatters:{RFC1738:function(e){return lu.call(e,fu,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:pu},du=yu,hu=Object.prototype.hasOwnProperty,vu=Array.isArray,bu=su(),mu=function(e,t){return bu.set(e,t),e},gu=function(e){return bu.has(e)},wu=function(e){return bu.get(e)},Ou=function(e,t){bu.set(e,t)},xu=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),Su=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},ju=1024,Eu={arrayToObject:Su,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t,r,n){if(gu(e)){var o=wu(e)+1;return e[o]=t,Ou(e,o),e}var i=[].concat(e,t);return i.length>r?mu(Su(i,{plainObjects:n}),i.length-1):i},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var i=t[o],a=i.obj[i.prop],u=Object.keys(a),c=0;c<u.length;++c){var s=u[c],l=a[s];"object"===n(l)&&null!==l&&-1===r.indexOf(l)&&(t[t.length]={obj:a,prop:s},r[r.length]=l)}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(vu(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&(n[n.length]=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,o,i){if(0===e.length)return e;var a=e;if("symbol"===n(e)?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",c=0;c<a.length;c+=ju){for(var s=a.length>=ju?a.slice(c,c+ju):a,l=[],f=0;f<s.length;++f){var p=s.charCodeAt(f);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===du.RFC1738&&(40===p||41===p)?l[l.length]=s.charAt(f):p<128?l[l.length]=xu[p]:p<2048?l[l.length]=xu[192|p>>6]+xu[128|63&p]:p<55296||p>=57344?l[l.length]=xu[224|p>>12]+xu[128|p>>6&63]+xu[128|63&p]:(p=65536+((1023&p)<<10|1023&s.charCodeAt(f+=1)),l[l.length]=xu[240|p>>18]+xu[128|p>>12&63]+xu[128|p>>6&63]+xu[128|63&p])}u+=l.join("")}return u},isBuffer:function(e){return!(!e||"object"!==n(e)||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isOverflow:gu,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:mu,maybeMap:function(e,t){if(vu(e)){for(var r=[],n=0;n<e.length;n+=1)r[r.length]=t(e[n]);return r}return t(e)},merge:function e(t,r,o){if(!r)return t;if("object"!==n(r)&&"function"!=typeof r){if(vu(t)){var i=t.length;if(o&&"number"==typeof o.arrayLimit&&i>o.arrayLimit)return mu(Su(t.concat(r),o),i);t[i]=r}else{if(!t||"object"!==n(t))return[t,r];if(gu(t)){var a=wu(t)+1;t[a]=r,Ou(t,a)}else{if(o&&o.strictMerge)return[t,r];(o&&(o.plainObjects||o.allowPrototypes)||!hu.call(Object.prototype,r))&&(t[r]=!0)}}return t}if(!t||"object"!==n(t)){if(gu(r)){for(var u=Object.keys(r),c=o&&o.plainObjects?{__proto__:null,0:t}:{0:t},s=0;s<u.length;s++)c[parseInt(u[s],10)+1]=r[u[s]];return mu(c,wu(r)+1)}var l=[t].concat(r);return o&&"number"==typeof o.arrayLimit&&l.length>o.arrayLimit?mu(Su(l,o),l.length-1):l}var f=t;return vu(t)&&!vu(r)&&(f=Su(t,o)),vu(t)&&vu(r)?(r.forEach((function(r,i){if(hu.call(t,i)){var a=t[i];a&&"object"===n(a)&&r&&"object"===n(r)?t[i]=e(a,r,o):t[t.length]=r}else t[i]=r})),t):Object.keys(r).reduce((function(t,n){var i=r[n];if(t[n]=hu.call(t,n)?e(t[n],i,o):i,gu(r)&&!gu(t)&&mu(t,wu(r)),gu(t)){var a=parseInt(n,10);String(a)===n&&a>=0&&a>wu(t)&&Ou(t,a)}return t}),f)}},Au=su,Pu=Eu,ku=yu,Ru=Object.prototype.hasOwnProperty,_u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Tu=Array.isArray,Lu=Array.prototype.push,Cu=function(e,t){Lu.apply(e,Tu(t)?t:[t])},Nu=Date.prototype.toISOString,Uu=ku.default,Iu={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Pu.encode,encodeValuesOnly:!1,filter:void 0,format:Uu,formatter:ku.formatters[Uu],indices:!1,serializeDate:function(e){return Nu.call(e)},skipNulls:!1,strictNullHandling:!1},Du={},Bu=function e(t,r,o,i,a,u,c,s,l,f,p,y,d,h,v,b,m,g){for(var w,O=t,x=g,S=0,j=!1;void 0!==(x=x.get(Du))&&!j;){var E=x.get(t);if(S+=1,void 0!==E){if(E===S)throw new RangeError("Cyclic object value");j=!0}void 0===x.get(Du)&&(S=0)}if("function"==typeof f?O=f(r,O):O instanceof Date?O=d(O):"comma"===o&&Tu(O)&&(O=Pu.maybeMap(O,(function(e){return e instanceof Date?d(e):e}))),null===O){if(u)return v(l&&!b?l(r,Iu.encoder,m,"key",h):r);O=""}if("string"==typeof(w=O)||"number"==typeof w||"boolean"==typeof w||"symbol"===n(w)||"bigint"==typeof w||Pu.isBuffer(O))return l?[v(b?r:l(r,Iu.encoder,m,"key",h))+"="+v(l(O,Iu.encoder,m,"value",h))]:[v(r)+"="+v(String(O))];var A,P=[];if(void 0===O)return P;if("comma"===o&&Tu(O))b&&l&&(O=Pu.maybeMap(O,(function(e){return null==e?e:l(e)}))),A=[{value:O.length>0?O.join(",")||null:void 0}];else if(Tu(f))A=f;else{var k=Object.keys(O);A=p?k.sort(p):k}var R=s?String(r).replace(/\./g,"%2E"):String(r),_=i&&Tu(O)&&1===O.length?R+"[]":R;if(a&&Tu(O)&&0===O.length)return _+"[]";for(var T=0;T<A.length;++T){var L=A[T],C="object"===n(L)&&L&&void 0!==L.value?L.value:O[L];if(!c||null!==C){var N=y&&s?String(L).replace(/\./g,"%2E"):String(L),U=Tu(O)?"function"==typeof o?o(_,N):_:_+(y?"."+N:"["+N+"]");g.set(t,S);var I=Au();I.set(Du,g),Cu(P,e(C,U,o,i,a,u,c,s,"comma"===o&&b&&Tu(O)?null:l,f,p,y,d,h,v,b,m,I))}}return P},Fu=Eu,Mu=Object.prototype.hasOwnProperty,qu=Array.isArray,Wu={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Fu.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},zu=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Hu=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},Ku=function(e,t,r,n){if(e){var o=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&Mu.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var n=[],o=r.indexOf("["),i=o>=0?r.slice(0,o):r;if(i){if(!t.plainObjects&&Mu.call(Object.prototype,i)&&!t.allowPrototypes)return;n[n.length]=i}for(var a=r.length,u=o,c=0;u>=0&&c<t.depth;){for(var s=1,l=u+1,f=-1;l<a&&f<0;){var p=r.charCodeAt(l);91===p?s+=1:93===p&&0==(s-=1)&&(f=l),l+=1}if(f<0)return n[n.length]="["+r.slice(u)+"]",n;var y=r.slice(u,f+1),d=y.slice(1,-1);if(!t.plainObjects&&Mu.call(Object.prototype,d)&&!t.allowPrototypes)return;n[n.length]=y,c+=1,u=r.indexOf("[",f+1)}if(u>=0){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");n[n.length]="["+r.slice(u)+"]"}return n}(e,r);if(o)return function(e,t,r,n){var o=0;if(e.length>0&&"[]"===e[e.length-1]){var i=e.slice(0,-1).join("");o=Array.isArray(t)&&t[i]?t[i].length:0}for(var a=n?t:Hu(t,r,o),u=e.length-1;u>=0;--u){var c,s=e[u];if("[]"===s&&r.parseArrays)c=Fu.isOverflow(a)?a:r.allowEmptyArrays&&(""===a||r.strictNullHandling&&null===a)?[]:Fu.combine([],a,r.arrayLimit,r.plainObjects);else{c=r.plainObjects?{__proto__:null}:{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,f=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,p=parseInt(f,10),y=!isNaN(p)&&s!==f&&String(p)===f&&p>=0&&r.parseArrays;if(r.parseArrays||""!==f)if(y&&p<r.arrayLimit)(c=[])[p]=a;else{if(y&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");y?(c[p]=a,Fu.markOverflow(c,p)):"__proto__"!==f&&(c[f]=a)}else c={0:a}}a=c}return a}(o,t,r,n)}},Ju=j({formats:yu,parse:function(e,t){var r=function(e){if(!e)return Wu;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");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?Wu.charset:e.charset,r=void 0===e.duplicates?Wu.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||Wu.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Wu.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Wu.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Wu.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Wu.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Wu.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Wu.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:Wu.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:Wu.decoder,delimiter:"string"==typeof e.delimiter||Fu.isRegExp(e.delimiter)?e.delimiter:Wu.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Wu.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Wu.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Wu.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Wu.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:Wu.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:Wu.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Wu.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var n="string"==typeof e?function(e,t){var r={__proto__:null},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;n=n.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=t.parameterLimit===1/0?void 0:t.parameterLimit,i=n.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==o?o+1:o);if(t.throwOnLimitExceeded&&void 0!==o&&i.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(1===o?"":"s")+" allowed.");var a,u=-1,c=t.charset;if(t.charsetSentinel)for(a=0;a<i.length;++a)0===i[a].indexOf("utf8=")&&("utf8=%E2%9C%93"===i[a]?c="utf-8":"utf8=%26%2310003%3B"===i[a]&&(c="iso-8859-1"),u=a,a=i.length);for(a=0;a<i.length;++a)if(a!==u){var s,l,f=i[a],p=f.indexOf("]="),y=-1===p?f.indexOf("="):p+1;if(-1===y?(s=t.decoder(f,Wu.decoder,c,"key"),l=t.strictNullHandling?null:""):null!==(s=t.decoder(f.slice(0,y),Wu.decoder,c,"key"))&&(l=Fu.maybeMap(Hu(f.slice(y+1),t,qu(r[s])?r[s].length:0),(function(e){return t.decoder(e,Wu.decoder,c,"value")}))),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=zu(String(l))),f.indexOf("[]=")>-1&&(l=qu(l)?[l]:l),t.comma&&qu(l)&&l.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");l=Fu.combine([],l,t.arrayLimit,t.plainObjects)}if(null!==s){var d=Mu.call(r,s);d&&("combine"===t.duplicates||f.indexOf("[]=")>-1)?r[s]=Fu.combine(r[s],l,t.arrayLimit,t.plainObjects):d&&"last"!==t.duplicates||(r[s]=l)}}return r}(e,r):e,o=r.plainObjects?{__proto__:null}:{},i=Object.keys(n),a=0;a<i.length;++a){var u=i[a],c=Ku(u,n[u],r,"string"==typeof e);o=Fu.merge(o,c,r)}return!0===r.allowSparse?o:Fu.compact(o)},stringify:function(e,t){var r,o=e,i=function(e){if(!e)return Iu;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||Iu.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=ku.default;if(void 0!==e.format){if(!Ru.call(ku.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,o=ku.formatters[r],i=Iu.filter;if(("function"==typeof e.filter||Tu(e.filter))&&(i=e.filter),n=e.arrayFormat in _u?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":Iu.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:Iu.addQueryPrefix,allowDots:void 0===e.allowDots?!0===e.encodeDotInKeys||Iu.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Iu.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Iu.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?Iu.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Iu.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:Iu.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:Iu.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Iu.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Iu.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Iu.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Iu.strictNullHandling}}(t);"function"==typeof i.filter?o=(0,i.filter)("",o):Tu(i.filter)&&(r=i.filter);var a=[];if("object"!==n(o)||null===o)return"";var u=_u[i.arrayFormat],c="comma"===u&&i.commaRoundTrip;r||(r=Object.keys(o)),i.sort&&r.sort(i.sort);for(var s=Au(),l=0;l<r.length;++l){var f=r[l];if(null!=f){var p=o[f];i.skipNulls&&null===p||Cu(a,Bu(p,f,u,c,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,s))}}var y=a.join(i.delimiter),d=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&(d+="iso-8859-1"===i.charset?"utf8=%26%2310003%3B"+i.delimiter:"utf8=%E2%9C%93"+i.delimiter),y.length>0?d+y:""}});function Gu(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 $u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gu(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Vu=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function Xu(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 Qu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xu(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Yu(e,t){var n=function(e){var t=$u($u({},{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&&Vu.test(t.host)){var u=t.host.split(":");if(2===u.length){var c=m(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,fetchOptions:t.fetchOptions,maxContentLength:t.maxContentLength,maxBodyLength:t.maxBodyLength,paramsSerializer:{serialize:function(e){return Ju.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 Yu(e,Qu(Qu({},function(e){var t=Yr(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?dn:r,o=_n(t)?In(t):In("auto",t),i=Dn(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&&_n(t)&&("auto"===t||Un.test(t))&&r.headers&&r.headers["x-contentful-ratelimit-second-limit"]){var c=parseInt(r.headers["x-contentful-ratelimit-second-limit"]),s=In(t,c);s!==o&&(u&&e.interceptors.request.eject(u),o=s,i=Dn(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?dn:o,a=n.requestLogger,u=void 0===a?dn: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($.mark((function r(n){var o,a,u,c,s;return $.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",hn(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 Zu(e){var t=e.query,r={};return delete t.resolveLinks,r.params=Yr(t),r}function ec(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 tc(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 ec(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)?ec(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 o=e[t.value];o&&"object"===n(o)&&tc(o)}}catch(e){r.e(e)}finally{r.f()}return Object.freeze(e)}function rc(){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 nc(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return Yr(this)}})}var oc,ic,ac=(oc=Object.getPrototypeOf,ic=Object,function(e){return oc(ic(e))}),uc=En,cc=ac,sc=An,lc=Function.prototype.toString,fc=Object.prototype.hasOwnProperty,pc=lc.call(Object),yc=j((function(e){if(!sc(e)||"[object Object]"!=uc(e))return!1;var t=cc(e);if(null===t)return!0;var r=fc.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&lc.call(r)==pc}));function dc(e){var t,r=e.config,o=e.response;if(function(e){var t,r;if(null!=e&&null!==(t=e.headers)&&void 0!==t&&t.Authorization){var n="...".concat(e.headers.Authorization.toString().substr(-5));e.headers.Authorization="Bearer ".concat(n)}if(null!=e&&null!==(r=e.headers)&&void 0!==r&&r["X-Contentful-Resource-Resolution"]){var o="...".concat(e.headers["X-Contentful-Resource-Resolution"].toString().substr(-5));e.headers["X-Contentful-Resource-Resolution"]=o}}(r),!yc(o)||!yc(r))throw e;var i,a=null==o?void 0:o.data,u={status:null==o?void 0:o.status,statusText:null==o?void 0:o.statusText,message:"",details:{}};r&&yc(r)&&(u.request={url:r.url,headers:r.headers,method:r.method,payloadData:r.data}),a&&"object"===n(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==o?void 0:o.status," ").concat(null==o?void 0:o.statusText);try{c.message=JSON.stringify(u,null," ")}catch(e){var s;c.message=null!==(s=null==u?void 0:u.message)&&void 0!==s?s:""}throw c}function hc(e){return function(t){return Object.assign({},e,t)}}function vc(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 bc(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)?bc(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 bc(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 mc,gc,wc,Oc,xc={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},Sc={0:8203,1:8204,2:8205,3:65279},jc=new Array(4).fill(String.fromCodePoint(Sc[0])).join("");function Ec(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(jc).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(Sc[e])})).join("")})).join(""))}(t))}(e,t)}Object.fromEntries(Object.entries(Sc).map((function(e){return e.reverse()}))),Object.fromEntries(Object.entries(xc).map((function(e){return e.reverse()}))),"".concat(Object.values(xc).map((function(e){return"\\u{".concat(e.toString(16),"}")})).join(""));var Ac=function(){if(Oc)return wc;Oc=1;var e=function(){if(gc)return mc;gc=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString;return mc=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 wc=t,t.get=function(e,r){for(var o=Array.isArray(r)?r:t.parse(r),i=0;i<o.length;++i){var a=o[i];if("object"!=n(e)||!(a in e))throw new Error("Invalid reference token: "+a);e=e[a]}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("/")},wc}(),Pc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[],n=Ac.get(e,t);if(function(e){return"content"in e&&!!e.content}(n))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,d(Pc(e,"".concat(t,"/content/").concat(o))));return r},kc=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},Rc=["singleLine","tagEditor","listInput","checkbox","richTextEditor","multipleLine"];function _c(e,t,r,n,o,i,a){var u=a?t[a]:t;switch(e){case"Symbol":var c=Ec(u,r);Ac.set(n,o,c);break;case"Text":var s=Ec(u,r);Ac.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=vc(Pc(n,t));try{for(u.s();!(a=u.n()).done;){var c=a.value;r[c]=i;var s=Ec(Ac.get(n,c),o);Ac.set(n,c,s)}}catch(e){u.e(e)}finally{u.f()}}else{var l,f=vc(Pc(n,t));try{for(f.s();!(l=f.n()).done;){var p=l.value,y=Ec(Ac.get(n,p),o);Ac.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?Ec(e,r):e}));Ac.set(n,o,l)}}var Tc=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 Rc.includes(e)}(y.widgetId))return 0;var d=s.startsWith("/")?s:"/".concat(s);if(Ac.has(e,d)){var h=Ac.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=kc({entityId:l,entityType:f,space:a,environment:c,field:v,locale:b,editorInterface:y,fieldType:p,targetOrigin:n,platform:o});_c(p,h,m,e,d,u)}else Object.keys(h).forEach((function(t){var r=kc({entityId:l,entityType:f,space:a,environment:c,field:v,locale:t,editorInterface:y,fieldType:p,targetOrigin:n,platform:o});_c(p,h,r,e,"".concat(d,"/").concat(t),u,t)}))}};for(var s in u)if(0!==(a=c())&&a)return a.v}}};function Lc(e){return function(e){if(Array.isArray(e))return Uc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Nc(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 Cc(e){return Cc="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},Cc(e)}function Nc(e,t){if(e){if("string"==typeof e)return Uc(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)?Uc(e,t):void 0}}function Uc(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 Ic={},Dc=function(e,t){var r=t.entryId,n=t.linkType,o=t.spaceId,i=t.environmentId;return e.get(o&&i?"".concat(o,"!").concat(i,"!").concat(n,"!").concat(r):"".concat(n,"!").concat(r))},Bc=function(e,t,r,n){if(t(e))return r(e);if(e&&"object"===Cc(e)){for(var o in e)e.hasOwnProperty(o)&&(e[o]=Bc(e[o],t,r,n));n&&(e=function(e){if(Array.isArray(e))return e.filter((function(e){return e!==Ic}));for(var t in e)e[t]===Ic&&delete e[t];return e}(e))}return e},Fc=function(e,t){if(t=t||{},!e.items)return[];var r=Yr(e),n=Object.keys(r.includes||{}).reduce((function(e,t){return[].concat(Lc(e),Lc(r.includes[t]))}),[]),o=[].concat(Lc(r.items),Lc(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?["".concat(r.type,"!").concat(r.id),"".concat(r.space.sys.id,"!").concat(r.environment.sys.id,"!").concat(r.type,"!").concat(r.id)]:["".concat(r.type,"!").concat(r.id)]).map((function(e){return[e,t]}));return e.push.apply(e,Lc(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,Bc(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,r=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(r.test(e)){var n=function(e){if(Array.isArray(e))return e}(t=e.match(r))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o,i,a=[],u=!0,c=!1;try{for(o=(t=t.call(e)).next;!(u=(r=o.call(t)).done)&&(a.push(r.value),4!==a.length);u=!0);}catch(e){c=!0,n=e}finally{try{if(!u&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw n}}return a}}(t)||Nc(t,4)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=n[2];return{spaceId:n[1],environmentId:void 0===o?"master":o,entryId:n[3]}}}(t.sys.urn),i=o.spaceId,a=o.environmentId,u=o.entryId,c=n.split(":")[1];return Dc(e,{linkType:c,entryId:u,spaceId:i,environmentId:a})||Ic}return Dc(e,{linkType:n,entryId:t.sys.id})||Ic}(e,t);return n===Ic?r?n:t:n}(i,e,t.removeUnresolved)}),t.removeUnresolved))})),r.items},Mc={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}(Mc);var qc=j(Mc.exports);function Wc(e){return Object.defineProperty(e,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(){return qc(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 zc(){return Hc.apply(this,arguments)}function Hc(){return Hc=r($.mark((function e(t,r,n){var o,i,a,u,c,s;return $.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,Kc(t,[],r,{paginate:u});case 12:return c=e.sent,i||(c.items=Fc(c,{removeUnresolved:a,itemEntryPoints:["fields"]})),p=function(e){return function(t,r){return r.sys.type===e&&t.push(nc(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",(tc((l=Wc(nc(s))).sys||{}),l));case 18:case"end":return e.stop()}var l,f,p}),e)}))),Hc.apply(this,arguments)}function Kc(){return Jc.apply(this,arguments)}function Jc(){return(Jc=r($.mark((function e(t,r,n,o){var i,a,u;return $.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",Zu({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=Gc(u.nextPageUrl),e.abrupt("return",Kc(t,r,a,{paginate:i}));case 12:return e.abrupt("return",{items:r,nextPageToken:Gc(u.nextPageUrl)});case 15:if(!u.nextSyncUrl){e.next=19;break}return e.abrupt("return",{items:r,nextSyncToken:Gc(u.nextSyncUrl)});case 19:return e.abrupt("return",{items:[]});case 20:case"end":return e.stop()}var c}),e)})))).apply(this,arguments)}function Gc(e){var t=e.split("?");return t.length>0?t[1].replace("sync_token=",""):""}function $c(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 Vc(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 Xc(e){if(!e.select)return e;var t=Vc(e);return t.has("sys")?e:(t.add("sys.id"),t.add("sys.type"),Object.assign(Object.assign({},e),{select:d(t).join(",")}))}function Qc(e,t){var r=t.resolveLinks,n=t.removeUnresolved,o=Wc(e);return r&&(o.items=Fc(o,{removeUnresolved:n,itemEntryPoints:["fields"]})),o}function Yc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yc=function(){return!!e})()}var Zc=function(e){function t(e,r){var n,o,i,c;return h(this,t),o=this,i=t,c=['Invalid "'.concat(e,'" provided, ')+r],i=u(i),(n=a(o,Yc()?Reflect.construct(i,c||[],u(o).constructor):i.apply(o,c))).name="ValidationError",n}return s(t,e),b(t)}(f(Error));function es(e,t,r){if(r=r||{},"number"!=typeof t)throw new Zc(e,'only numeric values are allowed for timestamps, provided type was "'.concat(n(t),'"'));if(r.maximum&&t>r.maximum)throw new Zc(e,"value (".concat(t,") cannot be further in the future than expected maximum (").concat(r.maximum,")"));if(r.now&&t<r.now)throw new Zc(e,"value (".concat(t,") cannot be in the past, current time was ").concat(r.now))}var ts=function(e){var t,r,o=null!==(t=null==e?void 0:e.timelinePreview)&&void 0!==t?t:null===(r=null==e?void 0:e.alphaFeatures)||void 0===r?void 0:r.timelinePreview,i=function(e,t){if(void 0===t)return!1;var r=function(e){if("object"!==n(e)||null===e||Array.isArray(e))throw new Zc("timelinePreview","The 'timelinePreview' parameter must be an object.");var t,r,o=!(!(t=e.release)||"object"!==n(t)||"string"!=typeof t.lte),i=!(!(r=e.timestamp)||"object"!==n(r)||!("string"==typeof r.lte||r.lte instanceof Date));if(!o&&!i)throw new Zc("timelinePreview","The 'timelinePreview' object must have at least one of 'release' or 'timestamp' with a valid 'lte' property.");return o||i}(t),o="string"==typeof e&&/^preview(\.eu)?\.contentful\.com$/.test(e),i="string"!=typeof e||!e.endsWith(".contentful.com");if(r&&!o&&!i)throw new Zc("timelinePreview","The 'timelinePreview' parameter can only be used with the CPA. Please set host to 'preview.contentful.com' or 'preview.eu.contentful.com' to enable Timeline Preview.\n ");return!0}(null==e?void 0:e.host,o);return{enabled:i,timelinePreview:o}};function rs(e,t){t?function(e){if(e.locale)throw new Zc("locale","The `locale` parameter is not allowed")}(e):function(e){if("*"===e.locale)throw new Zc("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 ns(e){if("resolveLinks"in e)throw new Zc("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 os(e){if("removeUnresolved"in e)throw new Zc("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 is(e){for(var t in e){var r=e[t];if("object"===n(r)&&null!==r&&!Array.isArray(r))throw new Error('Objects are not supported as value for the "'.concat(t,'" query parameter.'))}}function as(e){var t=e.pagePrev,r=e.pageNext,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["cursor","pagePrev","pageNext","skip"]);return Object.assign(Object.assign(Object.assign(Object.assign({},n),{cursor:!0}),!!t&&{pagePrev:t}),!!r&&{pageNext:r})}function us(e,t){var r=null==t?void 0:t.split("?")[1];if(r)return new URLSearchParams(r).get(e)}"function"==typeof SuppressedError&&SuppressedError;var cs={prev:"pagePrev",next:"pageNext"};function ss(e){for(var t={},r=0,n=Object.entries(cs);r<n.length;r++){var o=m(n[r],2),i=o[0],a=us(o[1],e.pages[i]);a&&(t[i]=a)}return Object.assign(Object.assign({},e),{pages:t})}function ls(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ls=function(){return!!e})()}var fs=function(e){function t(e,r,n){var o,i,c,s;return h(this,t),i=this,s=["The resource could not be found."],c=u(c=t),(o=a(i,ls()?Reflect.construct(c,s||[],u(i).constructor):c.apply(i,s))).sys={type:"Error",id:"NotFound"},o.details={type:"Entry",id:e,environment:r,space:n},o}return s(t,e),b(t)}(f(Error));function ps(e,t){var n=e.http,o=e.getGlobalOptions,i=function(){return new fs(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 Zc("includeContentSourceMaps","The 'includeContentSourceMaps' parameter must be a boolean.");var r="string"==typeof e&&e.startsWith("preview");if(t&&!r)throw new Zc("includeContentSourceMaps","The 'includeContentSourceMaps' parameter can only be used with the CPA. Please set host to 'preview.contentful.com' or 'preview.eu.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=Vc(r);u.add("sys"),r.select=Array.from(u).join(",")}return r}function c(e){return ts(n.httpClientParams).enabled?"timeline/".concat(e):e}function s(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 Tc(e,a,u,t,r)})),c&&c.Entry&&c.Entry.forEach((function(e){return Tc(e,a,u,t,r)})),c&&c.Asset&&c.Asset.forEach((function(e){return Tc(e,a,u,t,r)}))}else{if(!o.sys.contentSourceMapsLookup)return o;Tc(o,o.sys.contentSourceMapsLookup.fieldTypes,o.sys.contentSourceMapsLookup.editorInterfaces,t,r)}return o}(e):e}function l(e){return f.apply(this,arguments)}function f(){return(f=r($.mark((function e(t){var r,o,i;return $.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",s(e.sent.data,o));case 9:e.prev=9,e.t0=e.catch(2),dc(e.t0);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}function p(e){return y.apply(this,arguments)}function y(){return(y=r($.mark((function e(t){var r,o,i,u;return $.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),dc(e.t0);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}function d(){return(d=r($.mark((function e(){return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l({context:"space",path:""}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(){return(h=r($.mark((function e(t){return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l({context:"environment",path:"content_types/".concat(t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(){return v=r($.mark((function e(){var t=arguments;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l({context:"environment",path:"content_types",config:Zu({query:t.length>0&&void 0!==t[0]?t[0]:{}})}));case 2:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}function b(){return b=r($.mark((function e(r){var n=arguments;return $.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]:{},t));case 2:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}function m(){return m=r($.mark((function e(){var r=arguments;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",j(r.length>0&&void 0!==r[0]?r[0]:{},t));case 2:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}function g(){return g=r($.mark((function e(){var r,n=arguments;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,j(as(r),t);case 3:return e.abrupt("return",ss(e.sent));case 5:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}function w(e,t){return O.apply(this,arguments)}function O(){return O=r($.mark((function e(t,r){var n,o,i=arguments;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return rs(r,o=(n=i.length>2&&void 0!==i[2]?i[2]:{withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}).withAllLocales),ns(r),os(r),is(r),e.abrupt("return",x(t,o?Object.assign(Object.assign({},r),{locale:"*"}):r,n));case 7:case"end":return e.stop()}}),e)}))),O.apply(this,arguments)}function x(e,t,r){return S.apply(this,arguments)}function S(){return S=r($.mark((function e(t,r,n){var o;return $.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,P(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),dc(e.t0);case 16:case"end":return e.stop()}}),e,null,[[2,13]])}))),S.apply(this,arguments)}function j(e){return E.apply(this,arguments)}function E(){return E=r($.mark((function e(t){var r,n,o=arguments;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return rs(t,n=(r=o.length>1&&void 0!==o[1]?o[1]:{withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}).withAllLocales),ns(t),os(t),is(t),e.abrupt("return",P(n?Object.assign(Object.assign({},t),{locale:"*"}):t,r));case 7:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function A(e){var t=function(e){var t=ts(n.httpClientParams),r=t.timelinePreview;return t.enabled&&((null==r?void 0:r.release)&&(e.release=r.release),(null==r?void 0:r.timestamp)&&(e.timestamp=r.timestamp)),e}(Object.assign({},e));return u($c(Xc(t)))}function P(e,t){return k.apply(this,arguments)}function k(){return k=r($.mark((function e(t,r){var n,o,i,a,u;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.withoutLinkResolution,o=r.withoutUnresolvableLinks,i=r.withLocaleBasedPublishing,e.prev=1,a=Zu({query:A(t)}),u=a,i&&(u.headers=Object.assign(Object.assign({},u.headers),{"X-Contentful-Locale-Based-Publishing":!0})),e.next=7,l({context:"environment",path:c("entries"),config:u});case 7:return e.abrupt("return",Qc(e.sent,{resolveLinks:!n,removeUnresolved:null!=o&&o}));case 11:e.prev=11,e.t0=e.catch(1),dc(e.t0);case 14:case"end":return e.stop()}}),e,null,[[1,11]])}))),k.apply(this,arguments)}function R(){return R=r($.mark((function e(r){var n=arguments;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",I(r,n.length>1&&void 0!==n[1]?n[1]:{},t));case 2:case"end":return e.stop()}}),e)}))),R.apply(this,arguments)}function _(){return _=r($.mark((function e(){var r=arguments;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",L(r.length>0&&void 0!==r[0]?r[0]:{},t));case 2:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)}function T(){return T=r($.mark((function e(){var r,n=arguments;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,L(as(r),t);case 3:return e.abrupt("return",ss(e.sent));case 5:case"end":return e.stop()}}),e)}))),T.apply(this,arguments)}function L(e){return C.apply(this,arguments)}function C(){return C=r($.mark((function e(t){var r,n,o,i=arguments;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return rs(t,n=(r=i.length>1&&void 0!==i[1]?i[1]:{withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}).withAllLocales),is(t),o=n?Object.assign(Object.assign({},t),{locale:"*"}):t,e.abrupt("return",B(o,r));case 6:case"end":return e.stop()}}),e)}))),C.apply(this,arguments)}function N(e,t,r){return U.apply(this,arguments)}function U(){return U=r($.mark((function e(t,r,n){var o,i,a;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=n.withLocaleBasedPublishing,e.prev=1,i=Zu({query:A(r)}),a=i,o&&(a.headers=Object.assign(Object.assign({},a.headers),{"X-Contentful-Locale-Based-Publishing":!0})),e.abrupt("return",l({context:"environment",path:c("assets/".concat(t)),config:a}));case 8:e.prev=8,e.t0=e.catch(1),dc(e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),U.apply(this,arguments)}function I(e,t){return D.apply(this,arguments)}function D(){return D=r($.mark((function e(t,r){var n,o,i,a=arguments;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return rs(r,o=(n=a.length>2&&void 0!==a[2]?a[2]:{withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}).withAllLocales),is(r),i=o?Object.assign(Object.assign({},r),{locale:"*"}):r,e.abrupt("return",N(t,i,n));case 6:case"end":return e.stop()}}),e)}))),D.apply(this,arguments)}function B(e,t){return F.apply(this,arguments)}function F(){return F=r($.mark((function e(t,r){var n,o,i;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.withLocaleBasedPublishing,e.prev=1,o=Zu({query:A(t)}),i=o,n&&(i.headers=Object.assign(Object.assign({},i.headers),{"X-Contentful-Locale-Based-Publishing":!0})),e.abrupt("return",l({context:"environment",path:c("assets"),config:i}));case 8:e.prev=8,e.t0=e.catch(1),dc(e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),F.apply(this,arguments)}function M(){return(M=r($.mark((function e(t){return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l({context:"environment",path:"tags/".concat(t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function q(){return q=r($.mark((function e(){var t,r=arguments;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return is(t=r.length>0&&void 0!==r[0]?r[0]:{}),e.abrupt("return",l({context:"environment",path:"tags",config:Zu({query:$c(Xc(t))})}));case 3:case"end":return e.stop()}}),e)}))),q.apply(this,arguments)}function W(){return(W=r($.mark((function e(t){var r;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{r=Math.floor(Date.now()/1e3),es("expiresAt",t,{maximum:r+172800,now:r})}catch(e){dc(e)}return e.abrupt("return",p({context:"environment",path:"asset_keys",data:{expiresAt:t}}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function z(){return z=r($.mark((function e(){var t,r=arguments;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return is(t=r.length>0&&void 0!==r[0]?r[0]:{}),e.abrupt("return",l({context:"environment",path:"locales",config:Zu({query:Xc(t)})}));case 3:case"end":return e.stop()}}),e)}))),z.apply(this,arguments)}function H(){return H=r($.mark((function e(r){var n=arguments;return $.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",K(r,n.length>1&&void 0!==n[1]?n[1]:{paginate:!0},t));case 2:case"end":return e.stop()}}),e)}))),H.apply(this,arguments)}function K(e,t){return J.apply(this,arguments)}function J(){return J=r($.mark((function e(t,r){var o,i,a=arguments;return $.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,withLocaleBasedPublishing:!1},ns(t),os(t),i=Object.assign(Object.assign({},r),o),ee(n),e.abrupt("return",zc(n,t,i));case 6:case"end":return e.stop()}}),e)}))),J.apply(this,arguments)}function G(){return G=r($.mark((function e(t){var r,n=arguments;return $.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",l({context:"environment",path:"taxonomy/concept-schemes/".concat(t),config:Zu({query:$c(Xc(r))})}));case 5:e.prev=5,e.t0=e.catch(1),dc(e.t0);case 8:case"end":return e.stop()}}),e,null,[[1,5]])}))),G.apply(this,arguments)}function V(){return V=r($.mark((function e(){var t,r=arguments;return $.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",l({context:"environment",path:"taxonomy/concept-schemes",config:Zu({query:$c(Xc(t))})}));case 5:e.prev=5,e.t0=e.catch(1),dc(e.t0);case 8:case"end":return e.stop()}}),e,null,[[1,5]])}))),V.apply(this,arguments)}function X(){return X=r($.mark((function e(t){var r,n=arguments;return $.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",l({context:"environment",path:"taxonomy/concepts/".concat(t),config:Zu({query:$c(Xc(r))})}));case 5:e.prev=5,e.t0=e.catch(1),dc(e.t0);case 8:case"end":return e.stop()}}),e,null,[[1,5]])}))),X.apply(this,arguments)}function Q(){return Q=r($.mark((function e(){var t,r=arguments;return $.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",l({context:"environment",path:"taxonomy/concepts",config:Zu({query:$c(Xc(t))})}));case 5:e.prev=5,e.t0=e.catch(1),dc(e.t0);case 8:case"end":return e.stop()}}),e,null,[[1,5]])}))),Q.apply(this,arguments)}function Y(){return Y=r($.mark((function e(t){var r,n=arguments;return $.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",l({context:"environment",path:"taxonomy/concepts/".concat(t,"/ancestors"),config:Zu({query:$c(Xc(r))})}));case 5:e.prev=5,e.t0=e.catch(1),dc(e.t0);case 8:case"end":return e.stop()}}),e,null,[[1,5]])}))),Y.apply(this,arguments)}function Z(){return Z=r($.mark((function e(t){var r,n=arguments;return $.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",l({context:"environment",path:"taxonomy/concepts/".concat(t,"/descendants"),config:Zu({query:$c(Xc(r))})}));case 5:e.prev=5,e.t0=e.catch(1),dc(e.t0);case 8:case"end":return e.stop()}}),e,null,[[1,5]])}))),Z.apply(this,arguments)}function ee(e){e.defaults.baseURL=o().environmentBaseUrl}return{version:"0.0.0-determined-by-semantic-release",getSpace:function(){return d.apply(this,arguments)},getContentType:function(e){return h.apply(this,arguments)},getContentTypes:function(){return v.apply(this,arguments)},getAsset:function(e){return R.apply(this,arguments)},getAssets:function(){return _.apply(this,arguments)},getAssetsWithCursor:function(){return T.apply(this,arguments)},getTag:function(e){return M.apply(this,arguments)},getTags:function(){return q.apply(this,arguments)},getLocales:function(){return z.apply(this,arguments)},parseEntries:function(e){return function(e){return function(e,t){var r=t.withoutUnresolvableLinks;return Qc(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 H.apply(this,arguments)},getEntry:function(e){return b.apply(this,arguments)},getEntries:function(){return m.apply(this,arguments)},getEntriesWithCursor:function(){return g.apply(this,arguments)},getConceptScheme:function(e){return function(e){return G.apply(this,arguments)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})},getConceptSchemes:function(){return function(){return V.apply(this,arguments)}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})},getConcept:function(e){return function(e){return X.apply(this,arguments)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})},getConcepts:function(){return function(){return Q.apply(this,arguments)}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})},getConceptAncestors:function(e){return function(e){return Y.apply(this,arguments)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})},getConceptDescendants:function(e){return function(e){return Z.apply(this,arguments)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})},createAssetKey:function(e){return W.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");ns(e),os(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=rc(),n.push("platform ReactNative")):void 0===yn||yn.browser?(o=rc(),n.push("platform browser")):(o=function(){var e=yn.platform||"linux",t=yn.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(yn.versions&&yn.versions.node?"v".concat(yn.versions.node):yn.version)))}catch(e){o=null}return o&&n.push("os ".concat(o)),"".concat(n.filter((function(e){return""!==e})).join("; "),";")}("contentful.js/".concat("0.0.0-determined-by-semantic-release"),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=Yu(mr,t);if(!n.defaults.baseURL)throw new Error("Please define a baseURL");var o=hc({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=ps({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.defineProperty(n,"withLocaleBasedPublishing",{get:function(){return r(Object.assign(Object.assign({},t),{withLocaleBasedPublishing:!0}))}}),Object.create(n)}({http:t,getGlobalOptions:r},e,n)}var o=ps({http:t,getGlobalOptions:r},{withoutLinkResolution:!1,withAllLocales:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1});return Object.assign(Object.assign({},o),{get withAllLocales(){return n({withAllLocales:!0,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1})},get withoutLinkResolution(){return n({withAllLocales:!1,withoutLinkResolution:!0,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1})},get withoutUnresolvableLinks(){return n({withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!0,withLocaleBasedPublishing:!1})},get withLocaleBasedPublishing(){return n({withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!0})}})}({http:n,getGlobalOptions:o})},e.createGlobalOptions=hc,e}({});
|
|
1
|
+
var contentful=function(e){"use strict";function t(e){return 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},t(e)}function r(e,r,n){return(r=function(e){var r=function(e){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function n(e,t){this.v=e,this.k=t}function o(e){return function(){return new i(e.apply(this,arguments))}}function i(e){var t,r;function o(t,r){try{var a=e[t](r),s=a.value,c=s instanceof n;Promise.resolve(c?s.v:s).then((function(r){if(c){var n="return"===t?"return":"next";if(!s.k||r.done)return o(n,r);r=e[n](r).value}i(a.done?"return":"normal",r)}),(function(e){o("throw",e)}))}catch(e){i("throw",e)}}function i(e,n){switch(e){case"return":t.resolve({value:n,done:!0});break;case"throw":t.reject(n);break;default:t.resolve({value:n,done:!1})}(t=t.next)?o(t.key,t.arg):r=null}this._invoke=function(e,n){return new Promise((function(i,a){var s={key:e,arg:n,resolve:i,reject:a,next:null};r?r=r.next=s:(t=r=s,o(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}function a(e){return new n(e,0)}function s(e){var t={},r=!1;function o(t,o){return r=!0,o=new Promise((function(r){r(e[t](o))})),{done:!1,value:new n(o,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return r?(r=!1,e):o("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(r)throw r=!1,e;return o("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return r?(r=!1,e):o("return",e)}),t}function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function u(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&1===Object.keys(e).length?e.default:e}function l(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(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 y(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function y(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 y=function(e){this.s=e,this.n=e.next},y.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 y(e)}function d(e,t){return function(){return e.apply(t,arguments)}}i.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},i.prototype.next=function(e){return this._invoke("next",e)},i.prototype.throw=function(e){return this._invoke("throw",e)},i.prototype.return=function(e){return this._invoke("return",e)};const{toString:h}=Object.prototype,{getPrototypeOf:m}=Object,{iterator:g,toStringTag:b}=Symbol,w=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),v=(e,t)=>{let r=e;const n=[];for(;null!=r&&r!==Object.prototype;){if(-1!==n.indexOf(r))return!1;if(n.push(r),w(r,t))return!0;r=m(r)}return!1},O=(S=Object.create(null),e=>{const t=h.call(e);return S[t]||(S[t]=t.slice(8,-1).toLowerCase())});var S;const E=e=>(e=e.toLowerCase(),t=>O(t)===e),j=e=>t=>typeof t===e,{isArray:A}=Array,P=j("undefined");function R(e){return null!==e&&!P(e)&&null!==e.constructor&&!P(e.constructor)&&T(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const x=E("ArrayBuffer"),_=j("string"),T=j("function"),L=j("number"),k=e=>null!==e&&"object"==typeof e,C=e=>{if(!k(e))return!1;const t=m(e);return!(null!==t&&t!==Object.prototype&&null!==m(t)||v(e,b)||v(e,g))},U=E("Date"),N=E("File"),D=E("Blob"),I=E("FileList"),B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},F=void 0!==B.FormData?B.FormData:void 0,M=E("URLSearchParams"),[$,q,W,z]=["ReadableStream","Request","Response","Headers"].map(E);function H(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),A(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(R(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(n=0;n<i;n++)a=o[n],t.call(null,e[a],a,e)}}function K(e,t){if(R(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const J="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,V=e=>!P(e)&&e!==J,G=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&m(Uint8Array)),X=E("HTMLFormElement"),{propertyIsEnumerable:Q}=Object.prototype,Z=E("RegExp"),Y=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};H(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)},ee=E("AsyncFunction"),te=(re="function"==typeof setImmediate,ne=T(J.postMessage),re?setImmediate:ne?(oe=`axios@${Math.random()}`,ie=[],J.addEventListener("message",(({source:e,data:t})=>{e===J&&t===oe&&ie.length&&ie.shift()()}),!1),e=>{ie.push(e),J.postMessage(oe,"*")}):e=>setTimeout(e));var re,ne,oe,ie;const ae="undefined"!=typeof queueMicrotask?queueMicrotask.bind(J):"undefined"!=typeof process&&process.nextTick||te,se=e=>null!=e&&T(e[g]);var ce={isArray:A,isArrayBuffer:x,isBuffer:R,isFormData:e=>{if(!e)return!1;if(F&&e instanceof F)return!0;const t=m(e);if(!t||t===Object.prototype)return!1;if(!T(e.append))return!1;const r=O(e);return"formdata"===r||"object"===r&&T(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&x(e.buffer),t},isString:_,isNumber:L,isBoolean:e=>!0===e||!1===e,isObject:k,isPlainObject:C,isEmptyObject:e=>{if(!k(e)||R(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:$,isRequest:q,isResponse:W,isHeaders:z,isUndefined:P,isDate:U,isFile:N,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:D,isRegExp:Z,isFunction:T,isStream:e=>k(e)&&T(e.pipe),isURLSearchParams:M,isTypedArray:G,isFileList:I,forEach:H,merge:function e(...t){const{caseless:r,skipUndefined:n}=V(this)&&this||{},o={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=r&&"string"==typeof i&&K(o,i)||i,s=w(o,a)?o[a]:void 0;C(s)&&C(t)?o[a]=e(s,t):C(t)?o[a]=e({},t):A(t)?o[a]=t.slice():n&&P(t)||(o[a]=t)};for(let e=0,r=t.length;e<r;e++){const r=t[e];if(!r||R(r))continue;if(H(r,i),"object"!=typeof r||A(r))continue;const n=Object.getOwnPropertySymbols(r);for(let e=0;e<n.length;e++){const t=n[e];Q.call(r,t)&&i(r[t],t)}}return o},extend:(e,t,r,{allOwnKeys:n}={})=>(H(t,((t,n)=>{r&&T(t)?Object.defineProperty(e,n,{__proto__:null,value:d(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&m(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:O,kindOfTest:E,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length);const n=e.indexOf(t,r-=t.length);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(A(e))return e;let t=e.length;if(!L(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[g]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:X,hasOwnProperty:w,hasOwnProp:w,hasOwnInPrototypeChain:v,getSafeProp:(e,t)=>null!=e&&v(e,t)?e[t]:void 0,reduceDescriptors:Y,freezeMethods:e=>{Y(e,((t,r)=>{if(T(e)&&["arguments","caller","callee"].includes(r))return!1;T(e[r])&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return A(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:K,global:J,isContextDefined:V,isSpecCompliantForm:function(e){return!!(e&&T(e.append)&&"FormData"===e[b]&&e[g])},toJSONObject:e=>{const t=new WeakSet,r=e=>{if(k(e)){if(t.has(e))return;if(R(e))return e;if(!("toJSON"in e)){t.add(e);const n=A(e)?[]:{};return H(e,((e,t)=>{const o=r(e);!P(o)&&(n[t]=o)})),t.delete(e),n}}return e};return r(e)},isAsyncFn:ee,isThenable:e=>e&&(k(e)||T(e))&&T(e.then)&&T(e.catch),setImmediate:te,asap:ae,isIterable:se,isSafeIterable:e=>null!=e&&v(e,g)&&se(e)};const ue=ce.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"]),le=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),fe=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function pe(e,t){return ce.isArray(e)?e.map((e=>pe(e,t))):function(e){let t=0,r=e.length;for(;t<r;){const r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;r>t;){const t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}(String(e).replace(t,""))}function ye(e){const t=Object.create(null);return ce.forEach(e.toJSON(),((e,r)=>{t[r]=(e=>pe(e,fe))(e)})),t}const de=Symbol("internals");function he(e){return e&&String(e).trim().toLowerCase()}function me(e){return!1===e||null==e?e:ce.isArray(e)?e.map(me):(e=>pe(e,le))(String(e))}function ge(e,t,r,n,o){return ce.isFunction(n)?n.call(this,t,r):(o&&(t=r),ce.isString(t)?ce.isString(n)?-1!==t.indexOf(n):ce.isRegExp(n)?n.test(t):void 0:void 0)}class be{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=he(t);if(!o)return;const i=ce.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=me(e))}const i=(e,t)=>ce.forEach(e,((e,r)=>o(e,r,t)));if(ce.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(ce.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&ue[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(ce.isObject(e)&&ce.isSafeIterable(e)){let r,n,o=Object.create(null);for(const t of e){if(!ce.isArray(t))throw new TypeError("Object iterator must return a key-value pair");n=t[0],ce.hasOwnProp(o,n)?(r=o[n],o[n]=ce.isArray(r)?[...r,t[1]]:[r,t[1]]):o[n]=t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=he(e)){const r=ce.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(ce.isFunction(t))return t.call(this,e,r);if(ce.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=he(e)){const r=ce.findKey(this,e);return!(!r||void 0===this[r]||t&&!ge(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=he(e)){const o=ce.findKey(r,e);!o||t&&!ge(0,r[o],o,t)||(delete r[o],n=!0)}}return ce.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!ge(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return ce.forEach(this,((n,o)=>{const i=ce.findKey(r,o);if(i)return t[i]=me(n),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();a!==o&&delete t[o],t[a]=me(n),r[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ce.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&ce.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[de]=this[de]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=he(e);t[n]||(function(e,t){const r=ce.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return ce.isArray(e)?e.forEach(n):n(e),this}}be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ce.reduceDescriptors(be.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),ce.freezeMethods(be);class we extends Error{static from(e,t,r,n,o,i){const a=new we(e.message,t||e.code,r,n,o);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),i&&Object.assign(a,i),a}constructor(e,t,r,n,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&ce.hasOwnProp(e,"redact")?e.redact:void 0,r=ce.isArray(t)&&t.length>0?function(e,t){const r=new Set(t.map((e=>String(e).toLowerCase()))),n=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(ce.isBuffer(e))return e;if(-1!==n.indexOf(e))return;let t;if(e instanceof be&&(e=e.toJSON()),n.push(e),ce.isArray(e))t=[],e.forEach(((e,r)=>{const n=o(e);ce.isUndefined(n)||(t[r]=n)}));else{if(!ce.isPlainObject(e)&&function(e){if(ce.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(ce.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return n.pop(),e;t=Object.create(null);for(const[n,i]of Object.entries(e)){const e=r.has(n.toLowerCase())?"[REDACTED ****]":o(i);ce.isUndefined(e)||(t[n]=e)}}return n.pop(),t};return o(e)}(e,t):ce.toJSONObject(e);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:r,code:this.code,status:this.status}}}function ve(e){return ce.isPlainObject(e)||ce.isArray(e)}function Oe(e){return ce.endsWith(e,"[]")?e.slice(0,-2):e}function Se(e,t,r){return e?e.concat(t).map((function(e,t){return e=Oe(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}we.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",we.ERR_BAD_OPTION="ERR_BAD_OPTION",we.ECONNABORTED="ECONNABORTED",we.ETIMEDOUT="ETIMEDOUT",we.ECONNREFUSED="ECONNREFUSED",we.ERR_NETWORK="ERR_NETWORK",we.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",we.ERR_DEPRECATED="ERR_DEPRECATED",we.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",we.ERR_BAD_REQUEST="ERR_BAD_REQUEST",we.ERR_CANCELED="ERR_CANCELED",we.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",we.ERR_INVALID_URL="ERR_INVALID_URL",we.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Ee=ce.toFlatObject(ce,{},null,(function(e){return/^is[A-Z]/.test(e)}));function je(e,t,r){if(!ce.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=ce.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ce.isUndefined(t[e])}))).metaTokens,o=r.visitor||y,i=r.dots,a=r.indexes,s=r.Blob||"undefined"!=typeof Blob&&Blob,c=void 0===r.maxDepth?100:r.maxDepth,u=s&&ce.isSpecCompliantForm(t),l=[];if(!ce.isFunction(o))throw new TypeError("visitor must be a function");function f(e){if(null===e)return"";if(ce.isDate(e))return e.toISOString();if(ce.isBoolean(e))return e.toString();if(!u&&ce.isBlob(e))throw new we("Blob is not supported. Use a Buffer instead.");if(ce.isArrayBuffer(e)||ce.isTypedArray(e)){if(u&&"function"==typeof s)return new s([e]);if("undefined"!=typeof Buffer)return Buffer.from(e);throw new we("Blob is not supported. Use a Buffer instead.",we.ERR_NOT_SUPPORT)}return e}function p(e){if(e>c)throw new we("Object is too deeply nested ("+e+" levels). Max depth: "+c,we.ERR_FORM_DATA_DEPTH_EXCEEDED)}function y(e,r,o){let s=e;if(ce.isReactNative(t)&&ce.isReactNativeBlob(e))return t.append(Se(o,r,i),f(e)),!1;if(e&&!o&&"object"==typeof e)if(ce.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=function(e){if(c===1/0)return JSON.stringify(e);const t=[];return JSON.stringify(e,(function(e,r){if(!ce.isObject(r))return r;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(r),p(1+t.length-1),r}))}(e);else if(ce.isArray(e)&&function(e){return ce.isArray(e)&&!e.some(ve)}(e)||(ce.isFileList(e)||ce.endsWith(r,"[]"))&&(s=ce.toArray(e)))return r=Oe(r),s.forEach((function(e,n){!ce.isUndefined(e)&&null!==e&&t.append(!0===a?Se([r],n,i):null===a?r:r+"[]",f(e))})),!1;return!!ve(e)||(t.append(Se(o,r,i),f(e)),!1)}const d=Object.assign(Ee,{defaultVisitor:y,convertValue:f,isVisitable:ve});if(!ce.isObject(e))throw new TypeError("data must be an object");return function e(r,n,i=0){if(!ce.isUndefined(r)){if(p(i),-1!==l.indexOf(r))throw new Error("Circular reference detected in "+n.join("."));l.push(r),ce.forEach(r,(function(r,a){!0===(!(ce.isUndefined(r)||null===r)&&o.call(t,r,ce.isString(a)?a.trim():a,n,d))&&e(r,n?n.concat(a):[a],i+1)})),l.pop()}}(e),t}function Ae(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,(function(e){return t[e]}))}function Pe(e,t){this._pairs=[],e&&je(e,this,t)}const Re=Pe.prototype;function xe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function _e(e,t,r){if(!t)return e;e=e||"";const n=ce.isFunction(r)?{serialize:r}:r,o=ce.getSafeProp(n,"encode")||xe,i=ce.getSafeProp(n,"serialize");let a;if(a=i?i(t,n):ce.isURLSearchParams(t)?t.toString():new Pe(t,n).toString(o),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}Re.append=function(e,t){this._pairs.push([e,t])},Re.toString=function(e){const t=e?t=>e.call(this,t,Ae):Ae;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Te{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ce.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},ke={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Pe,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Ce="undefined"!=typeof window&&"undefined"!=typeof document,Ue="object"==typeof navigator&&navigator||void 0,Ne=Ce&&(!Ue||["ReactNative","NativeScript","NS"].indexOf(Ue.product)<0),De="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ie=Ce&&window.location.href||"http://localhost";var Be=f(f({},Object.freeze({__proto__:null,hasBrowserEnv:Ce,hasStandardBrowserEnv:Ne,hasStandardBrowserWebWorkerEnv:De,navigator:Ue,origin:Ie})),ke);function Fe(e){if(e>100)throw new we("FormData field is too deeply nested ("+e+" levels). Max depth: 100",we.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Me(e){function t(e,r,n,o){Fe(o);let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&ce.isArray(n)?n.length:i,s?(n[i]=ce.hasOwnProp(n,i)?ce.isArray(n[i])?n[i].concat(r):[n[i],r]:r,!a):(ce.hasOwnProp(n,i)&&ce.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&ce.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(n[i])),!a)}if(ce.isFormData(e)&&ce.isFunction(e.entries)){const r={};return ce.forEachEntry(e,((e,n)=>{t(function(e){const t=[],r=/\w+|\[(\w*)]/g;let n;for(;null!==(n=r.exec(e));)Fe(t.length),t.push("[]"===n[0]?"":n[1]||n[0]);return t}(e),n,r,0)})),r}return null}const $e=(e,t)=>null!=e&&ce.hasOwnProp(e,t)?e[t]:void 0,qe={transitional:Le,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=ce.isObject(e);if(o&&ce.isHTMLForm(e)&&(e=new FormData(e)),ce.isFormData(e))return n?JSON.stringify(Me(e)):e;if(ce.isArrayBuffer(e)||ce.isBuffer(e)||ce.isStream(e)||ce.isFile(e)||ce.isBlob(e)||ce.isReadableStream(e))return e;if(ce.isArrayBufferView(e))return e.buffer;if(ce.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){const t=$e(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return je(e,new Be.classes.URLSearchParams,f({visitor:function(e,t,r,n){return Be.isNode&&ce.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,t).toString();if((i=ce.isFileList(e))||r.indexOf("multipart/form-data")>-1){const r=$e(this,"env"),n=r&&r.FormData;return je(i?{"files[]":e}:e,n&&new n,t)}}return o||n?(t.setContentType("application/json",!1),function(e){if(ce.isString(e))try{return(0,JSON.parse)(e),ce.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=$e(this,"transitional")||qe.transitional,r=t&&t.forcedJSONParsing,n=$e(this,"responseType"),o="json"===n;if(ce.isResponse(e)||ce.isReadableStream(e))return e;if(e&&ce.isString(e)&&(r&&!n||o)){const r=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,$e(this,"parseReviver"))}catch(e){if(r){if("SyntaxError"===e.name)throw we.from(e,we.ERR_BAD_RESPONSE,this,null,$e(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Be.classes.FormData,Blob:Be.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function We(e,t){const r=this||qe,n=t||r,o=be.from(n.headers);let i=n.data;return ce.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function ze(e){return!(!e||!e.__CANCEL__)}ce.forEach(["delete","get","head","post","put","patch","query"],(e=>{qe.headers[e]={}}));class He extends we{constructor(e,t,r){super(null==e?"canceled":e,we.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}}function Ke(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new we("Request failed with status code "+r.status,r.status>=400&&r.status<500?we.ERR_BAD_REQUEST:we.ERR_BAD_RESPONSE,r.config,r.request,r)):e(r)}const Je=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=n[a];o||(o=c),r[i]=s,n[i]=c;let l=a,f=0;for(;l!==i;)f+=r[l++],l%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const p=u&&c-u;return p?Math.round(1e3*f/p):void 0}}(50,250);return function(r,i){let a,s,c=0,u=1e3/i;const l=(r,i=Date.now())=>{c=i,a=null,s&&(clearTimeout(s),s=null),(r=>{if(!r||"number"!=typeof r.loaded)return;const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=null!=a?Math.min(i,a):i,c=Math.max(0,s-n),u=o(c);n=Math.max(n,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a?(a-s)/u:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})})(...r)};return[(...e)=>{const t=Date.now(),r=t-c;r>=u?l(e,t):(a=e,s||(s=setTimeout((()=>{s=null,l(a)}),u-r)))},()=>a&&l(a)]}(0,r)},Ve=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ge=e=>(...t)=>ce.asap((()=>e(...t)));var Xe=Be.hasStandardBrowserEnv?((e,t)=>r=>e.protocol===(r=new URL(r,Be.origin)).protocol&&e.host===r.host&&(t||e.port===r.port))(new URL(Be.origin),Be.navigator&&/(msie|trident)/i.test(Be.navigator.userAgent)):()=>!0,Qe=Be.hasStandardBrowserEnv?{write(e,t,r,n,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];ce.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),ce.isString(n)&&s.push(`path=${n}`),ce.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),ce.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let r=0;r<t.length;r++){const n=t[r].replace(/^\s+/,""),o=n.indexOf("=");if(-1!==o&&n.slice(0,o)===e)try{return decodeURIComponent(n.slice(o+1))}catch(e){return n.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};const Ze=/^https?:(?!\/\/)/i,Ye=/[\t\n\r]/g;function et(e,t){if("string"==typeof e&&Ze.test(function(e){return function(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}(e).replace(Ye,"")}(e)))throw new we('Invalid URL: missing "//" after protocol',we.ERR_INVALID_URL,t)}function tt(e,t,r,n){et(t,n);let o=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(o||!1===r)?(et(e,n),function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t)):t}const rt=e=>e instanceof be?f({},e):e;function nt(e,t){e=e||{},t=t||{};const r=Object.create(null);function n(e,t,r,n){return ce.isPlainObject(e)&&ce.isPlainObject(t)?ce.merge.call({caseless:n},e,t):ce.isPlainObject(t)?ce.merge({},t):ce.isArray(t)?t.slice():t}function o(e,t,r,o){return ce.isUndefined(t)?ce.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!ce.isUndefined(t))return n(void 0,t)}function a(e,t){return ce.isUndefined(t)?ce.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return ce.hasOwnProp(t,i)?n(r,o):ce.hasOwnProp(e,i)?n(void 0,r):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const 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,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(rt(e),rt(t),0,!0)};return ce.forEach(Object.keys(f(f({},e),t)),(function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;const i=ce.hasOwnProp(c,n)?c[n]:o,a=i(ce.hasOwnProp(e,n)?e[n]:void 0,ce.hasOwnProp(t,n)?t[n]:void 0,n);ce.isUndefined(a)&&i!==s||(r[n]=a)})),ce.hasOwnProp(t,"validateStatus")&&ce.isUndefined(t.validateStatus)&&!1===function(r){const n=ce.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!ce.isUndefined(n)){if(!ce.isPlainObject(n))return;if(ce.hasOwnProp(n,r))return n[r]}const o=ce.hasOwnProp(e,"transitional")?e.transitional:void 0;if(ce.isPlainObject(o)&&ce.hasOwnProp(o,r))return o[r]}("validateStatusUndefinedResolves")&&(ce.hasOwnProp(e,"validateStatus")?r.validateStatus=n(void 0,e.validateStatus):delete r.validateStatus),r}const ot=["content-type","content-length"];function it(e){const t=nt({},e),r=e=>ce.hasOwnProp(t,e)?t[e]:void 0,n=r("data");let o=r("withXSRFToken");const i=r("xsrfHeaderName"),a=r("xsrfCookieName");let s=r("headers");const c=r("auth"),u=r("baseURL"),l=r("allowAbsoluteUrls"),f=r("url");if(t.headers=s=be.from(s),t.url=_e(tt(u,f,l,t),r("params"),r("paramsSerializer")),c){const t=ce.getSafeProp(c,"username")||"",r=ce.getSafeProp(c,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(r?encodeURIComponent(r).replace(/%([0-9A-F]{2})/gi,((e,t)=>String.fromCharCode(parseInt(t,16)))):"")))}catch(t){throw we.from(t,we.ERR_BAD_OPTION_VALUE,e)}}if(ce.isFormData(n)&&(Be.hasStandardBrowserEnv||Be.hasStandardBrowserWebWorkerEnv||ce.isReactNative(n)?s.setContentType(void 0):ce.isFunction(n.getHeaders)&&function(e,t,r){"content-only"===r?Object.entries(t||{}).forEach((([t,r])=>{ot.includes(t.toLowerCase())&&e.set(t,r)})):e.set(t)}(s,n.getHeaders(),r("formDataHeaderPolicy"))),Be.hasStandardBrowserEnv&&(ce.isFunction(o)&&(o=o(t)),!0===o||null==o&&Xe(t.url))){const e=i&&a&&Qe.read(a);e&&s.set(i,e)}return t}var at="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=it(e);let o=n.data;const i=be.from(n.headers).normalize();let a,s,c,u,l,{responseType:f,onUploadProgress:p,onDownloadProgress:y}=n;function d(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function m(){if(!h)return;const n=be.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Ke((function(e){t(e),d()}),(function(e){r(e),d()}),{data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h}),h=null}h.open(n.method.toUpperCase(),n.url,!0),h.timeout=n.timeout,"onloadend"in h?h.onloadend=m:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&h.responseURL.startsWith("file:"))&&setTimeout(m)},h.onabort=function(){h&&(r(new we("Request aborted",we.ECONNABORTED,e,h)),d(),h=null)},h.onerror=function(t){const n=new we(t&&t.message?t.message:"Network Error",we.ERR_NETWORK,e,h);n.event=t||null,r(n),d(),h=null},h.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new we(t,(n.transitional||Le).clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,h)),d(),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&ce.forEach(ye(i),(function(e,t){h.setRequestHeader(t,e)})),ce.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),f&&"json"!==f&&(h.responseType=n.responseType),y&&([c,l]=Je(y,!0),h.addEventListener("progress",c)),p&&h.upload&&([s,u]=Je(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(a=t=>{h&&(r(!t||t.type?new He(null,e,h):t),h.abort(),d(),h=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const g=function(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(n.url);if(g&&!Be.protocols.includes(g))return r(new we("Unsupported protocol "+g+":",we.ERR_BAD_REQUEST,e)),void d();h.send(o||null)}))};const st=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const r=new AbortController;let n=!1;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof we?t:new He(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new we(`timeout of ${t}ms exceeded`,we.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o,{once:!0})));const{signal:s}=r;return s.unsubscribe=()=>ce.asap(a),s},ct=function*(e,t){let r=e.byteLength;if(r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},ut=function(){var e=o((function*(e,t){var r,n=!1,o=!1;try{for(var i,c=p(lt(e));n=!(i=yield a(c.next())).done;n=!1){const e=i.value;yield*s(p(ct(e,t)))}}catch(e){o=!0,r=e}finally{try{n&&null!=c.return&&(yield a(c.return()))}finally{if(o)throw r}}}));return function(t,r){return e.apply(this,arguments)}}(),lt=function(){var e=o((function*(e){if(e[Symbol.asyncIterator])return void(yield*s(p(e)));const t=e.getReader();try{for(;;){const{done:e,value:r}=yield a(t.read());if(e)break;yield r}}finally{yield a(t.cancel())}}));return function(t){return e.apply(this,arguments)}}(),ft=(e,t,r,n)=>{const o=ut(e,t);let i,a=0,s=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return s(),void e.close();if(r){let e=a+=n.byteLength;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},pt=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,yt=(e,t,r)=>t+2<r&&pt(e.charCodeAt(t+1))&&pt(e.charCodeAt(t+2)),dt="1.18.1",{isFunction:ht}=ce,mt=e=>{if(!ce.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},gt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},bt=e=>{const t=null!=ce.global?ce.global:globalThis,{ReadableStream:r,TextEncoder:n}=t;e=ce.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:a}=e,s=o?ht(o):"function"==typeof fetch,c=ht(i),u=ht(a);if(!s)return!1;const l=s&&ht(r),p=s&&("function"==typeof n?(y=new n,e=>y.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var y;const d=c&&l&>((()=>{let e=!1;const t=new i(Be.origin,{body:new r,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n})),h=u&&l&>((()=>ce.isReadableStream(new a("").body))),m={stream:h&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!m[e]&&(m[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new we(`Response type '${e}' is not supported`,we.ERR_NOT_SUPPORT,r)})}));const g=async e=>{if(null==e)return 0;if(ce.isBlob(e))return e.size;if(ce.isSpecCompliantForm(e)){const t=new i(Be.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ce.isArrayBufferView(e)||ce.isArrayBuffer(e)?e.byteLength:(ce.isURLSearchParams(e)&&(e+=""),ce.isString(e)?(await p(e)).byteLength:void 0)};return async e=>{let{url:t,method:r,data:s,signal:u,cancelToken:p,timeout:y,onDownloadProgress:b,onUploadProgress:w,responseType:v,headers:O,withCredentials:S="same-origin",fetchOptions:E,maxContentLength:j,maxBodyLength:A}=it(e);const P=ce.isNumber(j)&&j>-1,R=ce.isNumber(A)&&A>-1;let x=o||fetch;v=v?(v+"").toLowerCase():"text";let _=st([u,p&&p.toAbortSignal()],y),T=null;const L=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let k,C=null;const U=()=>new we("Request body larger than maxBodyLength limit",we.ERR_BAD_REQUEST,e,T);try{let o;const u=ce.hasOwnProp(e,"auth")?e.auth:void 0;if(u&&(o={username:ce.getSafeProp(u,"username")||"",password:ce.getSafeProp(u,"password")||""}),(e=>{const t=e.indexOf("://");let r=e;return-1!==t&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")})(t)){const e=new URL(t,Be.origin);o||!e.username&&!e.password||(o={username:mt(e.username),password:mt(e.password)}),(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(o&&(O.delete("authorization"),O.set("Authorization","Basic "+btoa(encodeURIComponent((o.username||"")+":"+(o.password||"")).replace(/%([0-9A-F]{2})/gi,((e,t)=>String.fromCharCode(parseInt(t,16))))))),P&&"string"==typeof t&&t.startsWith("data:")){const r=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const r=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(r)){let e=n.length;const t=n.length;for(let r=0;r<t;r++)if(37===n.charCodeAt(r)&&r+2<t){const t=n.charCodeAt(r+1),o=n.charCodeAt(r+2);pt(t)&&pt(o)&&(e-=2,r+=2)}let r=0,o=t-1;const i=e=>e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e));o>=0&&(61===n.charCodeAt(o)?(r++,o--):i(o)&&(r++,o-=3)),1===r&&o>=0&&(61===n.charCodeAt(o)||i(o))&&r++;const a=3*Math.floor(e/4)-(r||0);return a>0?a:0}let o=0;for(let e=0,t=n.length;e<t;e++){const r=n.charCodeAt(e);if(37===r&&yt(n,e,t))o+=1,e+=2;else if(r<128)o+=1;else if(r<2048)o+=2;else if(r>=55296&&r<=56319&&e+1<t){const t=n.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o}(t);if(r>j)throw new we("maxContentLength size of "+j+" exceeded",we.ERR_BAD_RESPONSE,e,T)}if(R&&"get"!==r&&"head"!==r){const e=await g(s);if("number"==typeof e&&isFinite(e)&&(k=e,e>A))throw U()}const p=R&&(ce.isReadableStream(s)||ce.isStream(s)),y=(e,t,r)=>ft(e,65536,(e=>{if(R&&e>A)throw C=U();t&&t(e)}),r);if(d&&"get"!==r&&"head"!==r&&(w||p)){if(k=null==k?await(async(e,t)=>{const r=ce.toFiniteNumber(e.getContentLength());return null==r?g(t):r})(O,s):k,0!==k||p){let e,r=new i(t,{method:"POST",body:s,duplex:"half"});if(ce.isFormData(s)&&(e=r.headers.get("content-type"))&&O.setContentType(e),r.body){const[e,t]=w&&Ve(k,Je(Ge(w)))||[];s=y(r.body,e,t)}}}else if(p&&!c&&l&&"get"!==r&&"head"!==r)s=y(s);else if(p&&c&&!d&&"get"!==r&&"head"!==r)throw new we("Stream request bodies are not supported by the current fetch implementation",we.ERR_NOT_SUPPORT,e,T);ce.isString(S)||(S=S?"include":"omit");const N=c&&"credentials"in i.prototype;if(ce.isFormData(s)){const e=O.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&O.delete("content-type")}O.set("User-Agent","axios/"+dt,!1);const D=f(f({},E),{},{signal:_,method:r.toUpperCase(),headers:ye(O.normalize()),body:s,duplex:"half",credentials:N?S:void 0});T=c&&new i(t,D);let I=await(c?x(T,E):x(t,D));const B=be.from(I.headers);if(P){const t=ce.toFiniteNumber(B.getContentLength());if(null!=t&&t>j)throw new we("maxContentLength size of "+j+" exceeded",we.ERR_BAD_RESPONSE,e,T)}const F=h&&("stream"===v||"response"===v);if(h&&I.body&&(b||P||F&&L)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=I[e]}));const r=ce.toFiniteNumber(B.getContentLength()),[n,o]=b&&Ve(r,Je(Ge(b),!0))||[];let i=0;I=new a(ft(I.body,65536,(t=>{if(P&&(i=t,i>j))throw new we("maxContentLength size of "+j+" exceeded",we.ERR_BAD_RESPONSE,e,T);n&&n(t)}),(()=>{o&&o(),L&&L()})),t)}v=v||"text";let M=await m[ce.findKey(m,v)||"text"](I,e);if(P&&!h&&!F){let t;if(null!=M&&("number"==typeof M.byteLength?t=M.byteLength:"number"==typeof M.size?t=M.size:"string"==typeof M&&(t="function"==typeof n?(new n).encode(M).byteLength:M.length)),"number"==typeof t&&t>j)throw new we("maxContentLength size of "+j+" exceeded",we.ERR_BAD_RESPONSE,e,T)}return!F&&L&&L(),await new Promise(((t,r)=>{Ke(t,r,{data:M,headers:be.from(I.headers),status:I.status,statusText:I.statusText,config:e,request:T})}))}catch(t){if(L&&L(),_&&_.aborted&&_.reason instanceof we){const r=_.reason;throw r.config=e,T&&(r.request=T),t!==r&&Object.defineProperty(r,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),r}if(C)throw T&&!C.request&&(C.request=T),C;if(t instanceof we)throw T&&!t.request&&(t.request=T),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){const r=new we("Network Error",we.ERR_NETWORK,e,T,t&&t.response);throw Object.defineProperty(r,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),r}throw we.from(t,t&&t.code,e,T,t&&t.response)}}},wt=new Map,vt=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let a,s,c=i.length,u=wt;for(;c--;)a=i[c],s=u.get(a),void 0===s&&u.set(a,s=c?new Map:bt(t)),u=s;return s};vt();const Ot={http:null,xhr:at,fetch:{get:vt}};ce.forEach(Ot,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}}));const St=e=>`- ${e}`,Et=e=>ce.isFunction(e)||null===e||!1===e;var jt=function(e,t){e=ce.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let a=0;a<r;a++){let r;if(n=e[a],o=n,!Et(n)&&(o=Ot[(r=String(n)).toLowerCase()],void 0===o))throw new we(`Unknown adapter '${r}'`);if(o&&(ce.isFunction(o)||(o=o.get(t))))break;i[r||"#"+a]=o}if(!o){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let t=r?e.length>1?"since :\n"+e.map(St).join("\n"):" "+St(e[0]):"as no adapter specified";throw new we("There is no suitable adapter to dispatch the request "+t,we.ERR_NOT_SUPPORT)}return o};function At(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new He(null,e)}function Pt(e){return At(e),e.headers=be.from(e.headers),e.data=We.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),jt(e.adapter||qe.adapter,e)(e).then((function(t){At(e),e.response=t;try{t.data=We.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=be.from(t.headers),t}),(function(t){if(!ze(t)&&(At(e),t&&t.response)){e.response=t.response;try{t.response.data=We.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=be.from(t.response.headers)}return Promise.reject(t)}))}const Rt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Rt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const xt={};Rt.transitional=function(e,t,r){return(n,o,i)=>{if(!1===e)throw new we(function(e,t){return"[Axios v"+dt+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}(o," has been removed"+(t?" in "+t:"")),we.ERR_DEPRECATED);return t&&!xt[o]&&(xt[o]=!0),!e||e(n,o,i)}},Rt.spelling=function(){return()=>!0};var _t={assertOptions:function(e,t,r){if("object"!=typeof e||null===e)throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new we("option "+i+" must be "+r,we.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new we("Unknown option "+i,we.ERR_BAD_OPTION)}},validators:Rt};const Tt=_t.validators;class Lt{constructor(e){this.defaults=e||{},this.interceptors={request:new Te,response:new Te}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(r){const t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),o=-1===n?"":r.slice(n+1);String(e.stack).endsWith(o)||(e.stack+="\n"+r)}}else e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=nt(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&_t.assertOptions(r,{silentJSONParsing:Tt.transitional(Tt.boolean),forcedJSONParsing:Tt.transitional(Tt.boolean),clarifyTimeoutError:Tt.transitional(Tt.boolean),legacyInterceptorReqResOrdering:Tt.transitional(Tt.boolean),advertiseZstdAcceptEncoding:Tt.transitional(Tt.boolean),validateStatusUndefinedResolves:Tt.transitional(Tt.boolean)},!1),null!=n&&(ce.isFunction(n)?t.paramsSerializer={serialize:n}:_t.assertOptions(n,{encode:Tt.function,serialize:Tt.function},!0)),void 0!==t.allowAbsoluteUrls||(t.allowAbsoluteUrls=void 0===this.defaults.allowAbsoluteUrls||this.defaults.allowAbsoluteUrls),_t.assertOptions(t,{baseUrl:Tt.spelling("baseURL"),withXsrfToken:Tt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&ce.merge(o.common,o[t.method]);o&&ce.forEach(["delete","get","head","post","put","patch","query","common"],(e=>{delete o[e]})),t.headers=be.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const r=t.transitional||Le;r&&r.legacyInterceptorReqResOrdering?a.unshift(e.fulfilled,e.rejected):a.push(e.fulfilled,e.rejected)}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!s){const e=[Pt.bind(this),void 0];for(e.unshift(...a),e.push(...c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=a.length;let p=t;for(;f<l;){const e=a[f++],t=a[f++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=Pt.call(this,p)}catch(e){return Promise.reject(e)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return _e(tt((e=nt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}ce.forEach(["delete","get","head","options"],(function(e){Lt.prototype[e]=function(t,r){return this.request(nt(r||{},{method:e,url:t,data:r&&ce.hasOwnProp(r,"data")?r.data:void 0}))}})),ce.forEach(["post","put","patch","query"],(function(e){function t(t){return function(r,n,o){return this.request(nt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Lt.prototype[e]=t(),"query"!==e&&(Lt.prototype[e+"Form"]=t(!0))}));class kt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new He(e,n,o),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new kt((function(t){e=t})),cancel:e}}}const Ct={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ct).forEach((([e,t])=>{Ct[t]=e}));const Ut=function e(t){const r=new Lt(t),n=d(Lt.prototype.request,r);return ce.extend(n,Lt.prototype,r,{allOwnKeys:!0}),ce.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(nt(t,r))},n}(qe);Ut.Axios=Lt,Ut.CanceledError=He,Ut.CancelToken=kt,Ut.isCancel=ze,Ut.VERSION=dt,Ut.toFormData=je,Ut.AxiosError=we,Ut.Cancel=Ut.CanceledError,Ut.all=function(e){return Promise.all(e)},Ut.spread=function(e){return function(t){return e.apply(null,t)}},Ut.isAxiosError=function(e){return ce.isObject(e)&&!0===e.isAxiosError},Ut.mergeConfig=nt,Ut.AxiosHeaders=be,Ut.formToJSON=e=>Me(ce.isHTMLForm(e)?new FormData(e):e),Ut.getAdapter=jt,Ut.HttpStatusCode=Ct,Ut.default=Ut;var Nt=c(Ut),Dt=Function.prototype.toString,It=Object.create,Bt=Object.prototype.toString,Ft=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}(),Mt="undefined"!=typeof WeakMap?function(){return new WeakMap}:function(){return new Ft};function $t(e){if(!e)return It(null);var t=e.constructor;if(t===Object)return e===Object.prototype?{}:It(e);if(t&&~Dt.call(t).indexOf("[native code]"))try{return new t}catch(e){}return It(e)}var qt="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 Wt(e){var t=Bt.call(e);return t.substring(8,t.length-1)}var zt="undefined"!=typeof Symbol?function(e){return e[Symbol.toStringTag]||Wt(e)}:Wt,Ht=Object.defineProperty,Kt=Object.getOwnPropertyDescriptor,Jt=Object.getOwnPropertyNames,Vt=Object.getOwnPropertySymbols,Gt=Object.prototype,Xt=Gt.hasOwnProperty,Qt=Gt.propertyIsEnumerable,Zt="function"==typeof Vt,Yt=Zt?function(e){return Jt(e).concat(Vt(e))}:Jt;function er(e,t,r){for(var n=Yt(e),o=0,i=n.length,a=void 0,s=void 0;o<i;++o)if("callee"!==(a=n[o])&&"caller"!==a)if(s=Kt(e,a)){s.get||s.set||(s.value=r.copier(s.value,r));try{Ht(t,a,s)}catch(e){t[a]=s.value}}else t[a]=r.copier(e[a],r);return t}function tr(e){return e.slice(0)}function rr(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 nr=Zt?function(e,t){var r=$t(t.prototype);for(var n in t.cache.set(e,r),e)Xt.call(e,n)&&(r[n]=t.copier(e[n],t));for(var o=Vt(e),i=0,a=o.length,s=void 0;i<a;++i)Qt.call(e,s=o[i])&&(r[s]=t.copier(e[s],t));return r}:function(e,t){var r=$t(t.prototype);for(var n in t.cache.set(e,r),e)Xt.call(e,n)&&(r[n]=t.copier(e[n],t));return r};function or(e,t){return new t.Constructor(e.valueOf())}function ir(e){return e}function ar(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 sr=Array.isArray,cr=Object.assign,ur=Object.getPrototypeOf||function(e){return e.__proto__},lr={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:tr,blob:function(e){return e.slice(0,e.size,e.type)},dataView:function(e,t){return new t.Constructor(tr(e.buffer))},date:function(e,t){return new t.Constructor(e.getTime())},error:ir,map:rr,object:nr,regExp:function(e,t){var r=new t.Constructor(e.source,qt(e));return r.lastIndex=e.lastIndex,r},set:ar},fr=cr({},lr,{array:function(e,t){var r=new t.Constructor;return t.cache.set(e,r),er(e,r,t)},map:function(e,t){return er(e,rr(e,t),t)},object:function(e,t){var r=$t(t.prototype);return t.cache.set(e,r),er(e,r,t)},set:function(e,t){return er(e,ar(e,t),t)}});function pr(e){var t=function(e){return{Arguments:e.object,Array:e.array,ArrayBuffer:e.arrayBuffer,Blob:e.blob,Boolean:or,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:or,Object:e.object,Promise:ir,RegExp:e.regExp,Set:e.set,String:or,WeakMap:ir,WeakSet:ir,Uint8Array:e.arrayBuffer,Uint8ClampedArray:e.arrayBuffer,Uint16Array:e.arrayBuffer,Uint32Array:e.arrayBuffer,Uint64Array:e.arrayBuffer}}(cr({},lr,e)),r=t.Array,n=t.Object;function o(e,o){if(o.prototype=o.Constructor=void 0,!e||"object"!=typeof e)return e;if(o.cache.has(e))return o.cache.get(e);if(o.prototype=ur(e),o.Constructor=o.prototype&&o.prototype.constructor,!o.Constructor||o.Constructor===Object)return n(e,o);if(sr(e))return r(e,o);var i=t[zt(e)];return i?i(e,o):"function"==typeof e.then?e:n(e,o)}return function(e){return o(e,{Constructor:void 0,cache:Mt(),copier:o,prototype:void 0})}}pr(cr({},fr,{}));var yr,dr,hr=pr({}),mr={exports:{}},gr=mr.exports={};function br(){throw new Error("setTimeout has not been defined")}function wr(){throw new Error("clearTimeout has not been defined")}function vr(e){if(yr===setTimeout)return setTimeout(e,0);if((yr===br||!yr)&&setTimeout)return yr=setTimeout,setTimeout(e,0);try{return yr(e,0)}catch(t){try{return yr.call(null,e,0)}catch(t){return yr.call(this,e,0)}}}!function(){try{yr="function"==typeof setTimeout?setTimeout:br}catch(e){yr=br}try{dr="function"==typeof clearTimeout?clearTimeout:wr}catch(e){dr=wr}}();var Or,Sr=[],Er=!1,jr=-1;function Ar(){Er&&Or&&(Er=!1,Or.length?Sr=Or.concat(Sr):jr=-1,Sr.length&&Pr())}function Pr(){if(!Er){var e=vr(Ar);Er=!0;for(var t=Sr.length;t;){for(Or=Sr,Sr=[];++jr<t;)Or&&Or[jr].run();jr=-1,t=Sr.length}Or=null,Er=!1,function(e){if(dr===clearTimeout)return clearTimeout(e);if((dr===wr||!dr)&&clearTimeout)return dr=clearTimeout,clearTimeout(e);try{return dr(e)}catch(t){try{return dr.call(null,e)}catch(t){return dr.call(this,e)}}}(e)}}function Rr(e,t){this.fun=e,this.array=t}function xr(){}gr.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];Sr.push(new Rr(e,t)),1!==Sr.length||Er||vr(Pr)},Rr.prototype.run=function(){this.fun.apply(null,this.array)},gr.title="browser",gr.browser=!0,gr.env={},gr.argv=[],gr.version="",gr.versions={},gr.on=xr,gr.addListener=xr,gr.once=xr,gr.off=xr,gr.removeListener=xr,gr.removeAllListeners=xr,gr.emit=xr,gr.prependListener=xr,gr.prependOnceListener=xr,gr.listeners=function(){return[]},gr.binding=function(){throw new Error("process.binding is not supported")},gr.cwd=function(){return"/"},gr.chdir=function(){throw new Error("process.chdir is not supported")},gr.umask=function(){return 0};var _r=c(mr.exports);function Tr(){}function Lr(e,t){return Lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lr(e,t)}var kr="object"==typeof global&&global&&global.Object===Object&&global,Cr="object"==typeof self&&self&&self.Object===Object&&self,Ur=(kr||Cr||Function("return this")()).Symbol,Nr=Object.prototype,Dr=Nr.hasOwnProperty,Ir=Nr.toString,Br=Ur?Ur.toStringTag:void 0,Fr=Object.prototype.toString,Mr=Ur?Ur.toStringTag:void 0,$r=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Mr&&Mr in Object(e)?function(e){var t=Dr.call(e,Br),r=e[Br];try{e[Br]=void 0;var n=!0}catch(e){}var o=Ir.call(e);return n&&(t?e[Br]=r:delete e[Br]),o}(e):function(e){return Fr.call(e)}(e)},qr=function(e){return null!=e&&"object"==typeof e},Wr=$r,zr=Array.isArray,Hr=qr,Kr=c((function(e){return"string"==typeof e||!zr(e)&&Hr(e)&&"[object String]"==Wr(e)}));class Jr extends Error{constructor(){super("Throttled function aborted"),r(this,"name","AbortError")}}function Vr(){Vr=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)),Lr(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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lr(e,t)}(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,r){if(""===r)return e;var n=i[t];return Array.isArray(n)?"$"+n.join("$"):"number"==typeof n?"$"+n:""})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,r,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(n(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,r,o)},Vr.apply(this,arguments)}const Gr=Vr(/(\d+)(%)/,{value:1});function Xr(e,t=7){let r=t;if(Gr.test(e)){var n;const o=null===(n=e.match(Gr))||void 0===n?void 0:n.groups;if(o&&o.value){const e=parseInt(o.value)/100;r=Math.round(t*e)}}return Math.min(30,Math.max(1,r))}function Qr(e,t){return t("info",`Throttle request to ${e}/s`),function({limit:e,interval:t,onDelay:r}){if(!Number.isFinite(e))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(t))throw new TypeError("Expected `interval` to be a finite number");const n=new Map;let o=0,i=0;return function(a){const s=function(...c){if(!s.isEnabled)return(async()=>a.apply(this,c))();let u;return new Promise(((s,l)=>{const f=()=>{s(a.apply(this,c)),n.delete(u)},p=function(){const r=Date.now();return r-o>t?(i=1,o=r,0):(i<e?i++:(o+=t,i=1),o-r)}();p>0?(u=setTimeout(f,p),n.set(u,l),null==r||r()):f()}))};return s.abort=()=>{for(const e of n.keys())clearTimeout(e),n.get(e)(new Jr);n.clear()},s.isEnabled=!0,Object.defineProperty(s,"queueSize",{get:()=>n.size}),s}}({limit:e,interval:1e3,strict:!1})}var Zr=TypeError,Yr=u(Object.freeze({__proto__:null,default:{}})),en="function"==typeof Map&&Map.prototype,tn=Object.getOwnPropertyDescriptor&&en?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,rn=en&&tn&&"function"==typeof tn.get?tn.get:null,nn=en&&Map.prototype.forEach,on="function"==typeof Set&&Set.prototype,an=Object.getOwnPropertyDescriptor&&on?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,sn=on&&an&&"function"==typeof an.get?an.get:null,cn=on&&Set.prototype.forEach,un="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,ln="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,fn="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,pn=Boolean.prototype.valueOf,yn=Object.prototype.toString,dn=Function.prototype.toString,hn=String.prototype.match,mn=String.prototype.slice,gn=String.prototype.replace,bn=String.prototype.toUpperCase,wn=String.prototype.toLowerCase,vn=RegExp.prototype.test,On=Array.prototype.concat,Sn=Array.prototype.join,En=Array.prototype.slice,jn=Math.floor,An="function"==typeof BigInt?BigInt.prototype.valueOf:null,Pn=Object.getOwnPropertySymbols,Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,xn="function"==typeof Symbol&&"object"==typeof Symbol.iterator,_n="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol,1)?Symbol.toStringTag:null,Tn=Object.prototype.propertyIsEnumerable,Ln=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function kn(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||vn.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-jn(-e):jn(e);if(n!==e){var o=String(n),i=mn.call(t,o.length+1);return gn.call(o,r,"$&_")+"."+gn.call(gn.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return gn.call(t,r,"$&_")}var Cn=Yr,Un=Cn.custom,Nn=zn(Un)?Un:null,Dn={__proto__:null,double:'"',single:"'"},In={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Bn=function e(t,r,n,o){var i=r||{};if(Kn(i,"quoteStyle")&&!Kn(Dn,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Kn(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=!Kn(i,"customInspect")||i.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Kn(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(Kn(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=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 Gn(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return s?kn(t,c):c}if("bigint"==typeof t){var u=String(t)+"n";return s?kn(t,u):u}var l=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=l&&l>0&&"object"==typeof t)return qn(t)?"[Array]":"[Object]";var f=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Sn.call(Array(e.indent+1)," ")}return{base:r,prev:Sn.call(Array(t+1),r)}}(i,n);if(void 0===o)o=[];else if(Vn(o,t)>=0)return"[Circular]";function p(t,r,a){if(r&&(o=En.call(o)).push(r),a){var s={depth:i.depth};return Kn(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),e(t,s,n+1,o)}return e(t,i,n+1,o)}if("function"==typeof t&&!Wn(t)){var y=function(e){if(e.name)return e.name;var t=hn.call(dn.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),d=to(t,p);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(d.length>0?" { "+Sn.call(d,", ")+" }":"")}if(zn(t)){var h=xn?gn.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Rn.call(t);return"object"!=typeof t||xn?h:Qn(h)}if(function(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}(t)){for(var m="<"+wn.call(String(t.nodeName)),g=t.attributes||[],b=0;b<g.length;b++)m+=" "+g[b].name+"="+Fn(Mn(g[b].value),"double",i);return m+=">",t.childNodes&&t.childNodes.length&&(m+="..."),m+"</"+wn.call(String(t.nodeName))+">"}if(qn(t)){if(0===t.length)return"[]";var w=to(t,p);return f&&!function(e){for(var t=0;t<e.length;t++)if(Vn(e[t],"\n")>=0)return!1;return!0}(w)?"["+eo(w,f)+"]":"[ "+Sn.call(w,", ")+" ]"}if(function(e){return"[object Error]"===Jn(e)&&$n(e)}(t)){var v=to(t,p);return"cause"in Error.prototype||!("cause"in t)||Tn.call(t,"cause")?0===v.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Sn.call(v,", ")+" }":"{ ["+String(t)+"] "+Sn.call(On.call("[cause]: "+p(t.cause),v),", ")+" }"}if("object"==typeof t&&a){if(Nn&&"function"==typeof t[Nn]&&Cn)return Cn(t,{depth:l-n});if("symbol"!==a&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!rn||!e||"object"!=typeof e)return!1;try{rn.call(e);try{sn.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var O=[];return nn&&nn.call(t,(function(e,r){O.push(p(r,t,!0)+" => "+p(e,t))})),Yn("Map",rn.call(t),O,f)}if(function(e){if(!sn||!e||"object"!=typeof e)return!1;try{sn.call(e);try{rn.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var S=[];return cn&&cn.call(t,(function(e){S.push(p(e,t))})),Yn("Set",sn.call(t),S,f)}if(function(e){if(!un||!e||"object"!=typeof e)return!1;try{un.call(e,un);try{ln.call(e,ln)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Zn("WeakMap");if(function(e){if(!ln||!e||"object"!=typeof e)return!1;try{ln.call(e,ln);try{un.call(e,un)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Zn("WeakSet");if(function(e){if(!fn||!e||"object"!=typeof e)return!1;try{return fn.call(e),!0}catch(e){}return!1}(t))return Zn("WeakRef");if(function(e){return"[object Number]"===Jn(e)&&$n(e)}(t))return Qn(p(Number(t)));if(function(e){if(!e||"object"!=typeof e||!An)return!1;try{return An.call(e),!0}catch(e){}return!1}(t))return Qn(p(An.call(t)));if(function(e){return"[object Boolean]"===Jn(e)&&$n(e)}(t))return Qn(pn.call(t));if(function(e){return"[object String]"===Jn(e)&&$n(e)}(t))return Qn(p(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]"===Jn(e)&&$n(e)}(t)&&!Wn(t)){var E=to(t,p),j=Ln?Ln(t)===Object.prototype:t instanceof Object||t.constructor===Object,A=t instanceof Object?"":"null prototype",P=!j&&_n&&Object(t)===t&&_n in t?mn.call(Jn(t),8,-1):A?"Object":"",R=(j||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(P||A?"["+Sn.call(On.call([],P||[],A||[]),": ")+"] ":"");return 0===E.length?R+"{}":f?R+"{"+eo(E,f)+"}":R+"{ "+Sn.call(E,", ")+" }"}return String(t)};function Fn(e,t,r){var n=Dn[r.quoteStyle||t];return n+e+n}function Mn(e){return gn.call(String(e),/"/g,""")}function $n(e){return!_n||!("object"==typeof e&&(_n in e||void 0!==e[_n]))}function qn(e){return"[object Array]"===Jn(e)&&$n(e)}function Wn(e){return"[object RegExp]"===Jn(e)&&$n(e)}function zn(e){if(xn)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!Rn)return!1;try{return Rn.call(e),!0}catch(e){}return!1}var Hn=Object.prototype.hasOwnProperty||function(e){return e in this};function Kn(e,t){return Hn.call(e,t)}function Jn(e){return yn.call(e)}function Vn(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 Gn(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Gn(mn.call(e,0,t.maxStringLength),t)+n}var o=In[t.quoteStyle||"single"];return o.lastIndex=0,Fn(gn.call(gn.call(e,o,"\\$1"),/[\x00-\x1f]/g,Xn),"single",t)}function Xn(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":"")+bn.call(t.toString(16))}function Qn(e){return"Object("+e+")"}function Zn(e){return e+" { ? }"}function Yn(e,t,r,n){return e+" ("+t+") {"+(n?eo(r,n):Sn.call(r,", "))+"}"}function eo(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+Sn.call(e,","+r)+"\n"+t.prev}function to(e,t){var r=qn(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Kn(e,o)?t(e[o],e):""}var i,a="function"==typeof Pn?Pn(e):[];if(xn){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in e)Kn(e,c)&&(r&&String(Number(c))===c&&c<e.length||xn&&i["$"+c]instanceof Symbol||(vn.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof Pn)for(var u=0;u<a.length;u++)Tn.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}var ro=Bn,no=Zr,oo=function(e,t,r){for(var n,o=e;null!=(n=o.next);o=n)if(n.key===t)return o.next=n.next,r||(n.next=e.next,e.next=n),n},io=Object,ao=Error,so=EvalError,co=RangeError,uo=ReferenceError,lo=SyntaxError,fo=URIError,po=Math.abs,yo=Math.floor,ho=Math.max,mo=Math.min,go=Math.pow,bo=Math.round,wo=Number.isNaN||function(e){return e!=e},vo=Object.getOwnPropertyDescriptor;if(vo)try{vo([],"length")}catch(e){vo=null}var Oo=vo,So=Object.defineProperty||!1;if(So)try{So({},"a",{value:1})}catch(e){So=!1}var Eo,jo,Ao,Po,Ro,xo,_o,To,Lo,ko,Co,Uo,No,Do,Io,Bo,Fo=So;function Mo(){return xo?Ro:(xo=1,Ro="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function $o(){return To?_o:(To=1,_o=io.getPrototypeOf||null)}function qo(){if(ko)return Lo;ko=1;var e=Object.prototype.toString,t=Math.max,r=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};return Lo=function(n){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e){for(var t=[],r=1,n=0;r<e.length;r+=1,n+=1)t[n]=e[r];return t}(arguments),s=t(0,o.length-a.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(i=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}(c)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var e=o.apply(this,r(a,arguments));return Object(e)===e?e:this}return o.apply(n,r(a,arguments))})),o.prototype){var l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i},Lo}function Wo(){if(Uo)return Co;Uo=1;var e=qo();return Co=Function.prototype.bind||e}function zo(){return Do?No:(Do=1,No=Function.prototype.call)}function Ho(){return Bo?Io:(Bo=1,Io=Function.prototype.apply)}var Ko,Jo,Vo,Go,Xo,Qo,Zo,Yo="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,ei=Wo(),ti=Ho(),ri=zo(),ni=Yo||ei.call(ri,ti),oi=Wo(),ii=Zr,ai=zo(),si=ni,ci=function(e){if(e.length<1||"function"!=typeof e[0])throw new ii("a function is required");return si(oi,ai,e)},ui=io,li=ao,fi=so,pi=co,yi=uo,di=lo,hi=Zr,mi=fo,gi=po,bi=yo,wi=ho,vi=mo,Oi=go,Si=bo,Ei=Function,ji=function(e){try{return Ei('"use strict"; return ('+e+").constructor;")()}catch(e){}},Ai=Oo,Pi=Fo,Ri=function(){throw new hi},xi=Ai?function(){try{return Ri}catch(e){try{return Ai(arguments,"callee").get}catch(e){return Ri}}}():Ri,_i=function(){if(Po)return Ao;Po=1;var e="undefined"!=typeof Symbol&&Symbol,t=jo?Eo:(jo=1,Eo=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof 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(var n 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 o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0});return Ao=function(){return"function"==typeof e&&"function"==typeof Symbol&&"symbol"==typeof e("foo")&&"symbol"==typeof Symbol("bar")&&t()}}()(),Ti=function(){if(Go)return Vo;Go=1;var e=Mo(),t=$o(),r=function(){if(Jo)return Ko;Jo=1;var e,t=ci,r=Oo;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var n=!!e&&r&&r(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return Ko=n&&"function"==typeof n.get?t([n.get]):"function"==typeof i&&function(e){return i(null==e?e:o(e))}}();return Vo=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:r?function(e){return r(e)}:null}(),Li=$o(),ki=Mo(),Ci=Ho(),Ui=zo(),Ni={},Di="undefined"!=typeof Uint8Array&&Ti?Ti(Uint8Array):Zo,Ii={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?Zo:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Zo:ArrayBuffer,"%ArrayIteratorPrototype%":_i&&Ti?Ti([][Symbol.iterator]()):Zo,"%AsyncFromSyncIteratorPrototype%":Zo,"%AsyncFunction%":Ni,"%AsyncGenerator%":Ni,"%AsyncGeneratorFunction%":Ni,"%AsyncIteratorPrototype%":Ni,"%Atomics%":"undefined"==typeof Atomics?Zo:Atomics,"%BigInt%":"undefined"==typeof BigInt?Zo:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Zo:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Zo:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Zo:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":li,"%eval%":eval,"%EvalError%":fi,"%Float16Array%":"undefined"==typeof Float16Array?Zo:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?Zo:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Zo:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Zo:FinalizationRegistry,"%Function%":Ei,"%GeneratorFunction%":Ni,"%Int8Array%":"undefined"==typeof Int8Array?Zo:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Zo:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Zo:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_i&&Ti?Ti(Ti([][Symbol.iterator]())):Zo,"%JSON%":"object"==typeof JSON?JSON:Zo,"%Map%":"undefined"==typeof Map?Zo:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&_i&&Ti?Ti((new Map)[Symbol.iterator]()):Zo,"%Math%":Math,"%Number%":Number,"%Object%":ui,"%Object.getOwnPropertyDescriptor%":Ai,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Zo:Promise,"%Proxy%":"undefined"==typeof Proxy?Zo:Proxy,"%RangeError%":pi,"%ReferenceError%":yi,"%Reflect%":"undefined"==typeof Reflect?Zo:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Zo:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&_i&&Ti?Ti((new Set)[Symbol.iterator]()):Zo,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Zo:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_i&&Ti?Ti(""[Symbol.iterator]()):Zo,"%Symbol%":_i?Symbol:Zo,"%SyntaxError%":di,"%ThrowTypeError%":xi,"%TypedArray%":Di,"%TypeError%":hi,"%Uint8Array%":"undefined"==typeof Uint8Array?Zo:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Zo:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Zo:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Zo:Uint32Array,"%URIError%":mi,"%WeakMap%":"undefined"==typeof WeakMap?Zo:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Zo:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Zo:WeakSet,"%Function.prototype.call%":Ui,"%Function.prototype.apply%":Ci,"%Object.defineProperty%":Pi,"%Object.getPrototypeOf%":Li,"%Math.abs%":gi,"%Math.floor%":bi,"%Math.max%":wi,"%Math.min%":vi,"%Math.pow%":Oi,"%Math.round%":Si,"%Math.sign%":function(e){return wo(e)||0===e?e:e<0?-1:1},"%Reflect.getPrototypeOf%":ki};if(Ti)try{null.error}catch(e){var Bi=Ti(Ti(e));Ii["%Error.prototype%"]=Bi}var Fi=function e(t){var r;if("%AsyncFunction%"===t)r=ji("async function () {}");else if("%GeneratorFunction%"===t)r=ji("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=ji("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&Ti&&(r=Ti(o.prototype))}return Ii[t]=r,r},Mi={__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"]},$i=Wo(),qi=function(){if(Qo)return Xo;Qo=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Wo();return Xo=r.call(e,t)}(),Wi=$i.call(Ui,Array.prototype.concat),zi=$i.call(Ci,Array.prototype.splice),Hi=$i.call(Ui,String.prototype.replace),Ki=$i.call(Ui,String.prototype.slice),Ji=$i.call(Ui,RegExp.prototype.exec),Vi=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Gi=/\\(\\)?/g,Xi=function(e,t){var r,n=e;if(qi(Mi,n)&&(n="%"+(r=Mi[n])[0]+"%"),qi(Ii,n)){var o=Ii[n];if(o===Ni&&(o=Fi(n)),void 0===o&&!t)throw new hi("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new di("intrinsic "+e+" does not exist!")},Qi=function(e,t){if("string"!=typeof e||0===e.length)throw new hi("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new hi('"allowMissing" argument must be a boolean');if(null===Ji(/^%?[^%]*%?$/,e))throw new di("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=Ki(e,0,1),r=Ki(e,-1);if("%"===t&&"%"!==r)throw new di("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new di("invalid intrinsic syntax, expected opening `%`");var n=[];return Hi(e,Vi,(function(e,t,r,o){n[n.length]=r?Hi(o,Gi,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=Xi("%"+n+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],zi(r,Wi([0,1],c)));for(var u=1,l=!0;u<r.length;u+=1){var f=r[u],p=Ki(f,0,1),y=Ki(f,-1);if(('"'===p||"'"===p||"`"===p||'"'===y||"'"===y||"`"===y)&&p!==y)throw new di("property names with quotes must have matching quotes");if("constructor"!==f&&l||(s=!0),qi(Ii,i="%"+(n+="."+f)+"%"))a=Ii[i];else if(null!=a){if(!(f in a)){if(!t)throw new hi("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ai&&u+1>=r.length){var d=Ai(a,f);a=(l=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[f]}else l=qi(a,f),a=a[f];l&&!s&&(Ii[i]=a)}}return a},Zi=Qi,Yi=ci,ea=Yi([Zi("%String.prototype.indexOf%")]),ta=function(e,t){var r=Zi(e,!!t);return"function"==typeof r&&ea(e,".prototype.")>-1?Yi([r]):r},ra=ta,na=Bn,oa=Zr,ia=Qi("%Map%",!0),aa=ra("Map.prototype.get",!0),sa=ra("Map.prototype.set",!0),ca=ra("Map.prototype.has",!0),ua=ra("Map.prototype.delete",!0),la=ra("Map.prototype.size",!0),fa=!!ia&&function(){var e,t={assert:function(e){if(!t.has(e))throw new oa("Side channel does not contain "+na(e))},delete:function(t){if(e){var r=ua(e,t);return 0===la(e)&&(e=void 0),r}return!1},get:function(t){if(e)return aa(e,t)},has:function(t){return!!e&&ca(e,t)},set:function(t,r){e||(e=new ia),sa(e,t,r)}};return t},pa=ta,ya=Bn,da=fa,ha=Zr,ma=Qi("%WeakMap%",!0),ga=pa("WeakMap.prototype.get",!0),ba=pa("WeakMap.prototype.set",!0),wa=pa("WeakMap.prototype.has",!0),va=pa("WeakMap.prototype.delete",!0),Oa=Zr,Sa=Bn,Ea=(ma?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new ha("Side channel does not contain "+ya(e))},delete:function(r){if(ma&&r&&("object"==typeof r||"function"==typeof r)){if(e)return va(e,r)}else if(da&&t)return t.delete(r);return!1},get:function(r){return ma&&r&&("object"==typeof r||"function"==typeof r)&&e?ga(e,r):t&&t.get(r)},has:function(r){return ma&&r&&("object"==typeof r||"function"==typeof r)&&e?wa(e,r):!!t&&t.has(r)},set:function(r,n){ma&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new ma),ba(e,r,n)):da&&(t||(t=da()),t.set(r,n))}};return r}:da)||fa||function(){var e,t={assert:function(e){if(!t.has(e))throw new no("Side channel does not contain "+ro(e))},delete:function(t){var r=e&&e.next,n=function(e,t){if(e)return oo(e,t,!0)}(e,t);return n&&r&&r===n&&(e=void 0),!!n},get:function(t){return function(e,t){if(e){var r=oo(e,t);return r&&r.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!oo(e,t)}(e,t)},set:function(t,r){e||(e={next:void 0}),function(e,t,r){var n=oo(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(e,t,r)}};return t},ja=function(){var e,t={assert:function(e){if(!t.has(e))throw new Oa("Side channel does not contain "+Sa(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=Ea()),e.set(t,r)}};return t},Aa=String.prototype.replace,Pa=/%20/g,Ra="RFC3986",xa={default:Ra,formatters:{RFC1738:function(e){return Aa.call(e,Pa,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Ra},_a=xa,Ta=Object.prototype.hasOwnProperty,La=Array.isArray,ka=ja(),Ca=function(e,t){return ka.set(e,t),e},Ua=function(e){return ka.has(e)},Na=function(e){return ka.get(e)},Da=function(e,t){ka.set(e,t)},Ia=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),Ba=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},Fa=1024,Ma={arrayToObject:Ba,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t,r,n){if(Ua(e)){var o=Na(e)+1;return e[o]=t,Da(e,o),e}var i=[].concat(e,t);return i.length>r?Ca(Ba(i,{plainObjects:n}),i.length-1):i},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),s=0;s<a.length;++s){var c=a[s],u=i[c];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t[t.length]={obj:i,prop:c},r[r.length]=u)}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(La(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&(n[n.length]=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"==typeof 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="",s=0;s<i.length;s+=Fa){for(var c=i.length>=Fa?i.slice(s,s+Fa):i,u=[],l=0;l<c.length;++l){var f=c.charCodeAt(l);45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||o===_a.RFC1738&&(40===f||41===f)?u[u.length]=c.charAt(l):f<128?u[u.length]=Ia[f]:f<2048?u[u.length]=Ia[192|f>>6]+Ia[128|63&f]:f<55296||f>=57344?u[u.length]=Ia[224|f>>12]+Ia[128|f>>6&63]+Ia[128|63&f]:(f=65536+((1023&f)<<10|1023&c.charCodeAt(l+=1)),u[u.length]=Ia[240|f>>18]+Ia[128|f>>12&63]+Ia[128|f>>6&63]+Ia[128|63&f])}a+=u.join("")}return a},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isOverflow:Ua,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:Ca,maybeMap:function(e,t){if(La(e)){for(var r=[],n=0;n<e.length;n+=1)r[r.length]=t(e[n]);return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(La(t)){var o=t.length;if(n&&"number"==typeof n.arrayLimit&&o>n.arrayLimit)return Ca(Ba(t.concat(r),n),o);t[o]=r}else{if(!t||"object"!=typeof t)return[t,r];if(Ua(t)){var i=Na(t)+1;t[i]=r,Da(t,i)}else{if(n&&n.strictMerge)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!Ta.call(Object.prototype,r))&&(t[r]=!0)}}return t}if(!t||"object"!=typeof t){if(Ua(r)){for(var a=Object.keys(r),s=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},c=0;c<a.length;c++)s[parseInt(a[c],10)+1]=r[a[c]];return Ca(s,Na(r)+1)}var u=[t].concat(r);return n&&"number"==typeof n.arrayLimit&&u.length>n.arrayLimit?Ca(Ba(u,n),u.length-1):u}var l=t;return La(t)&&!La(r)&&(l=Ba(t,n)),La(t)&&La(r)?(r.forEach((function(r,o){if(Ta.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,n):t[t.length]=r}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];if(t[o]=Ta.call(t,o)?e(t[o],i,n):i,Ua(r)&&!Ua(t)&&Ca(t,Na(r)),Ua(t)){var a=parseInt(o,10);String(a)===o&&a>=0&&a>Na(t)&&Da(t,a)}return t}),l)}},$a=ja,qa=Ma,Wa=xa,za=Object.prototype.hasOwnProperty,Ha={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Ka=Array.isArray,Ja=Array.prototype.push,Va=function(e,t){Ja.apply(e,Ka(t)?t:[t])},Ga=Date.prototype.toISOString,Xa=Wa.default,Qa={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:qa.encode,encodeValuesOnly:!1,filter:void 0,format:Xa,formatter:Wa.formatters[Xa],indices:!1,serializeDate:function(e){return Ga.call(e)},skipNulls:!1,strictNullHandling:!1},Za={},Ya=function e(t,r,n,o,i,a,s,c,u,l,f,p,y,d,h,m,g,b){for(var w,v=t,O=b,S=0,E=!1;void 0!==(O=O.get(Za))&&!E;){var j=O.get(t);if(S+=1,void 0!==j){if(j===S)throw new RangeError("Cyclic object value");E=!0}void 0===O.get(Za)&&(S=0)}if("function"==typeof l?v=l(r,v):v instanceof Date?v=y(v):"comma"===n&&Ka(v)&&(v=qa.maybeMap(v,(function(e){return e instanceof Date?y(e):e}))),null===v){if(a)return h(u&&!m?u(r,Qa.encoder,g,"key",d):r);v=""}if("string"==typeof(w=v)||"number"==typeof w||"boolean"==typeof w||"symbol"==typeof w||"bigint"==typeof w||qa.isBuffer(v))return u?[h(m?r:u(r,Qa.encoder,g,"key",d))+"="+h(u(v,Qa.encoder,g,"value",d))]:[h(r)+"="+h(String(v))];var A,P=[];if(void 0===v)return P;if("comma"===n&&Ka(v))m&&u&&(v=qa.maybeMap(v,(function(e){return null==e?e:u(e)}))),A=[{value:v.length>0?v.join(",")||null:void 0}];else if(Ka(l))A=l;else{var R=Object.keys(v);A=f?R.sort(f):R}var x=c?String(r).replace(/\./g,"%2E"):String(r),_=o&&Ka(v)&&1===v.length?x+"[]":x;if(i&&Ka(v)&&0===v.length)return _+"[]";for(var T=0;T<A.length;++T){var L=A[T],k="object"==typeof L&&L&&void 0!==L.value?L.value:v[L];if(!s||null!==k){var C=p&&c?String(L).replace(/\./g,"%2E"):String(L),U=Ka(v)?"function"==typeof n?n(_,C):_:_+(p?"."+C:"["+C+"]");b.set(t,S);var N=$a();N.set(Za,b),Va(P,e(k,U,n,o,i,a,s,c,"comma"===n&&m&&Ka(v)?null:u,l,f,p,y,d,h,m,g,N))}}return P},es=Ma,ts=Object.prototype.hasOwnProperty,rs=Array.isArray,ns={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:es.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},os=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},is=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},as=function(e,t,r,n){if(e){var o=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&ts.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var n=[],o=r.indexOf("["),i=o>=0?r.slice(0,o):r;if(i){if(!t.plainObjects&&ts.call(Object.prototype,i)&&!t.allowPrototypes)return;n[n.length]=i}for(var a=r.length,s=o,c=0;s>=0&&c<t.depth;){for(var u=1,l=s+1,f=-1;l<a&&f<0;){var p=r.charCodeAt(l);91===p?u+=1:93===p&&0==(u-=1)&&(f=l),l+=1}if(f<0)return n[n.length]="["+r.slice(s)+"]",n;var y=r.slice(s,f+1),d=y.slice(1,-1);if(!t.plainObjects&&ts.call(Object.prototype,d)&&!t.allowPrototypes)return;n[n.length]=y,c+=1,s=r.indexOf("[",f+1)}if(s>=0){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");n[n.length]="["+r.slice(s)+"]"}return n}(e,r);if(o)return function(e,t,r,n){var o=0;if(e.length>0&&"[]"===e[e.length-1]){var i=e.slice(0,-1).join("");o=Array.isArray(t)&&t[i]?t[i].length:0}for(var a=n?t:is(t,r,o),s=e.length-1;s>=0;--s){var c,u=e[s];if("[]"===u&&r.parseArrays)c=es.isOverflow(a)?a:r.allowEmptyArrays&&(""===a||r.strictNullHandling&&null===a)?[]:es.combine([],a,r.arrayLimit,r.plainObjects);else{c=r.plainObjects?{__proto__:null}:{};var l="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,f=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,p=parseInt(f,10),y=!isNaN(p)&&u!==f&&String(p)===f&&p>=0&&r.parseArrays;if(r.parseArrays||""!==f)if(y&&p<r.arrayLimit)(c=[])[p]=a;else{if(y&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");y?(c[p]=a,es.markOverflow(c,p)):"__proto__"!==f&&(c[f]=a)}else c={0:a}}a=c}return a}(o,t,r,n)}},ss=c({formats:xa,parse:function(e,t){var r=function(e){if(!e)return ns;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");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?ns.charset:e.charset,r=void 0===e.duplicates?ns.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||ns.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:ns.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:ns.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:ns.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:ns.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:ns.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:ns.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:ns.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:ns.decoder,delimiter:"string"==typeof e.delimiter||es.isRegExp(e.delimiter)?e.delimiter:ns.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:ns.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:ns.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:ns.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:ns.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:ns.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:ns.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:ns.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var n="string"==typeof e?function(e,t){var r={__proto__:null},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;n=n.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=t.parameterLimit===1/0?void 0:t.parameterLimit,i=n.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==o?o+1:o);if(t.throwOnLimitExceeded&&void 0!==o&&i.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(1===o?"":"s")+" allowed.");var a,s=-1,c=t.charset;if(t.charsetSentinel)for(a=0;a<i.length;++a)0===i[a].indexOf("utf8=")&&("utf8=%E2%9C%93"===i[a]?c="utf-8":"utf8=%26%2310003%3B"===i[a]&&(c="iso-8859-1"),s=a,a=i.length);for(a=0;a<i.length;++a)if(a!==s){var u,l,f=i[a],p=f.indexOf("]="),y=-1===p?f.indexOf("="):p+1;if(-1===y?(u=t.decoder(f,ns.decoder,c,"key"),l=t.strictNullHandling?null:""):null!==(u=t.decoder(f.slice(0,y),ns.decoder,c,"key"))&&(l=es.maybeMap(is(f.slice(y+1),t,rs(r[u])?r[u].length:0),(function(e){return t.decoder(e,ns.decoder,c,"value")}))),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=os(String(l))),f.indexOf("[]=")>-1&&(l=rs(l)?[l]:l),t.comma&&rs(l)&&l.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");l=es.combine([],l,t.arrayLimit,t.plainObjects)}if(null!==u){var d=ts.call(r,u);d&&("combine"===t.duplicates||f.indexOf("[]=")>-1)?r[u]=es.combine(r[u],l,t.arrayLimit,t.plainObjects):d&&"last"!==t.duplicates||(r[u]=l)}}return r}(e,r):e,o=r.plainObjects?{__proto__:null}:{},i=Object.keys(n),a=0;a<i.length;++a){var s=i[a],c=as(s,n[s],r,"string"==typeof e);o=es.merge(o,c,r)}return!0===r.allowSparse?o:es.compact(o)},stringify:function(e,t){var r,n=e,o=function(e){if(!e)return Qa;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||Qa.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=Wa.default;if(void 0!==e.format){if(!za.call(Wa.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,o=Wa.formatters[r],i=Qa.filter;if(("function"==typeof e.filter||Ka(e.filter))&&(i=e.filter),n=e.arrayFormat in Ha?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":Qa.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:Qa.addQueryPrefix,allowDots:void 0===e.allowDots?!0===e.encodeDotInKeys||Qa.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Qa.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Qa.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?Qa.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Qa.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:Qa.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:Qa.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Qa.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Qa.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Qa.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Qa.strictNullHandling}}(t);"function"==typeof o.filter?n=(0,o.filter)("",n):Ka(o.filter)&&(r=o.filter);var i=[];if("object"!=typeof n||null===n)return"";var a=Ha[o.arrayFormat],s="comma"===a&&o.commaRoundTrip;r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var c=$a(),u=0;u<r.length;++u){var l=r[u];if(null!=l){var f=n[l];o.skipNulls&&null===f||Va(i,Ya(f,l,a,s,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"+o.delimiter:"utf8=%E2%9C%93"+o.delimiter),p.length>0?y+p:""}});function cs(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 us(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cs(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ls=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function fs(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 ps(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fs(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ys(e,t){const r=function(e){const t=us(us({},{insecure:!1,retryOnError:!0,logHandler:(e,t)=>{"error"===e&&t&&[t.name,t.message].filter((e=>e)).join(" - ")},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824}),e);if(!t.accessToken){const e=new TypeError("Expected parameter accessToken");throw t.logHandler("error",e),e}const r=t.insecure?"http":"https",n=t.space?`${t.space}/`:"";let o=t.defaultHostname,i=t.insecure?80:443;if(t.host&&ls.test(t.host)){const e=t.host.split(":");2===e.length?[o,i]=e:o=e[0]}t.basePath&&(t.basePath=`/${t.basePath.split("/").filter(Boolean).join("/")}`);const a=e.baseURL||`${r}://${o}:${i}${t.basePath}/spaces/${n}`;return t.headers.Authorization||"function"==typeof t.accessToken||(t.headers.Authorization="Bearer "+t.accessToken),{baseURL:a,headers:t.headers,httpAgent:t.httpAgent,httpsAgent:t.httpsAgent,proxy:t.proxy,timeout:t.timeout,adapter:t.adapter,fetchOptions:t.fetchOptions,maxContentLength:t.maxContentLength,maxBodyLength:t.maxBodyLength,paramsSerializer:{serialize:e=>ss.stringify(e)},logHandler:t.logHandler,responseLogger:t.responseLogger,requestLogger:t.requestLogger,retryOnError:t.retryOnError}}(t),n=e.create(r);return n.httpClientParams=t,n.cloneWithNewParams=function(r){return ys(e,ps(ps({},function(e){const t=hr(e);return t.httpAgent=e.httpAgent,t.httpsAgent=e.httpsAgent,t}(t)),r))},t.onBeforeRequest&&n.interceptors.request.use(t.onBeforeRequest),"function"==typeof t.accessToken&&function(e,t){e.interceptors.request.use((function(e){return t().then((t=>(e.headers.set("Authorization",`Bearer ${t}`),e)))}))}(n,t.accessToken),t.throttle&&((e,t="auto")=>{const{logHandler:r=Tr}=e.defaults;let n=Kr(t)?Xr(t):Xr("auto",t),o=Qr(n,r),i=!1,a=e.interceptors.request.use((e=>o((()=>e))()),(function(e){return Promise.reject(e)}));e.interceptors.response.use((s=>{if(!i&&Kr(t)&&("auto"===t||Gr.test(t))&&s.headers&&s.headers["x-contentful-ratelimit-second-limit"]){const c=parseInt(s.headers["x-contentful-ratelimit-second-limit"]),u=Xr(t,c);u!==n&&(a&&e.interceptors.request.eject(a),n=u,o=Qr(u,r),a=e.interceptors.request.use((e=>o((()=>e))()),(function(e){return Promise.reject(e)}))),i=!0}return s}),(function(e){return Promise.reject(e)}))})(n,t.throttle),function(e,t=5){const{responseLogger:r=Tr,requestLogger:n=Tr}=e.defaults;e.interceptors.request.use((function(e){return n(e),e}),(function(e){return n(e),Promise.reject(e)})),e.interceptors.response.use((function(e){return r(e),e}),(async function(n){const{response:o}=n,{config:i}=n;if(r(n),!i||!e.defaults.retryOnError)return Promise.reject(n);const a=i.attempts||1;if(a>t)return n.attempts=i.attempts,Promise.reject(n);let s=null,c=Math.pow(Math.SQRT2,a);var u;return o?o.status>=500&&o.status<600?s=`Server ${o.status}`:429===o.status&&(s="Rate limit",o.headers&&n.response.headers["x-contentful-ratelimit-reset"]&&(c=o.headers["x-contentful-ratelimit-reset"])):s="Connection",s?(c=Math.floor(1e3*c+200*Math.random()+500),e.defaults.logHandler("warning",`${s} error occurred. Waiting for ${c} ms before retrying...`),i.attempts=a+1,delete i.httpAgent,delete i.httpsAgent,(u=c,new Promise((e=>{setTimeout(e,u)}))).then((()=>e(i)))):Promise.reject(n)}))}(n,t.retryLimit),t.onError&&n.interceptors.response.use((e=>e),t.onError),n}function ds({query:e}){const t={};return delete e.resolveLinks,t.params=hr(e),t}function hs(e){const t=Object.getOwnPropertyNames(e);for(const r of t){const t=e[r];t&&"object"==typeof t&&hs(t)}return Object.freeze(e)}function ms(e){return hs(e.sys||{}),e}function gs(){const e=window;if(!e)return null;const 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 bs(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return hr(this)}})}var ws,vs,Os=(ws=Object.getPrototypeOf,vs=Object,function(e){return ws(vs(e))}),Ss=$r,Es=Os,js=qr,As=Function.prototype.toString,Ps=Object.prototype.hasOwnProperty,Rs=As.call(Object),xs=c((function(e){if(!js(e)||"[object Object]"!=Ss(e))return!1;var t=Es(e);if(null===t)return!0;var r=Ps.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&As.call(r)==Rs}));function _s(e){const{config:t,response:r}=e;let n;if(function(e){var t,r;if(null!=e&&null!==(t=e.headers)&&void 0!==t&&t.Authorization){const t=`...${e.headers.Authorization.toString().substr(-5)}`;e.headers.Authorization=`Bearer ${t}`}if(null!=e&&null!==(r=e.headers)&&void 0!==r&&r["X-Contentful-Resource-Resolution"]){const t=`...${e.headers["X-Contentful-Resource-Resolution"].toString().substr(-5)}`;e.headers["X-Contentful-Resource-Resolution"]=t}}(t),!xs(r)||!xs(t))throw e;const o=null==r?void 0:r.data,i={status:null==r?void 0:r.status,statusText:null==r?void 0:r.statusText,message:"",details:{}};var a;t&&xs(t)&&(i.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),o&&"object"==typeof o&&("requestId"in o&&(i.requestId=o.requestId||"UNKNOWN"),"message"in o&&(i.message=o.message||""),"details"in o&&(i.details=o.details||{}),n=null===(a=o.sys)||void 0===a?void 0:a.id);const s=new Error;s.name=n&&"Unknown"!==n?n:`${null==r?void 0:r.status} ${null==r?void 0:r.statusText}`;try{s.message=JSON.stringify(i,null," ")}catch(e){var c;s.message=null!==(c=null==i?void 0:i.message)&&void 0!==c?c:""}throw s}function Ts(e){return function(t){return Object.assign({},e,t)}}var Ls,ks,Cs,Us,Ns={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},Ds={0:8203,1:8204,2:8205,3:65279},Is=new Array(4).fill(String.fromCodePoint(Ds[0])).join("");function Bs(e,t){return function(e,t,r="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:`${e}${function(e){let t=JSON.stringify(e);return`${Is}${Array.from(t).map((e=>{let r=e.charCodeAt(0);if(r>255)throw new Error(`Only ASCII edit info can be encoded. Error attempting to encode ${t} on character ${e} (${r})`);return Array.from(r.toString(4).padStart(4,"0")).map((e=>String.fromCodePoint(Ds[e]))).join("")})).join("")}`}(t)}`}(e,t)}Object.fromEntries(Object.entries(Ds).map((e=>e.reverse()))),Object.fromEntries(Object.entries(Ns).map((e=>e.reverse()))),Object.values(Ns).map((e=>`\\u{${e.toString(16)}}`)).join("");var Fs=function(){if(Us)return Cs;Us=1;var e=function(){if(ks)return Ls;ks=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString;return Ls=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 s in r)e.call(r,s)&&n.call(o,r[s],s,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 Cs=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"!=typeof 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 s=o[a];"string"!=typeof s&&"number"!=typeof s&&(s=String(s)),"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&("-"===s&&Array.isArray(e)&&(s=e.length),i=o[a+1],s in e||(e[s]=i.match(/^(\d+|-)$/)?[]:{}),e=e[s])}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("/")},Cs}();const Ms=(e,t="")=>{const r=[],n=Fs.get(e,t);if(function(e){return"content"in e&&!!e.content}(n))for(let o=0;o<n.content.length;o++)"text"===n.content[o].nodeType?r.push(`${t}/content/${o}/value`):r.push(...Ms(e,`${t}/content/${o}`));return r},$s=({entityId:e,entityType:t,space:r,environment:n,field:o,locale:i,editorInterface:a,fieldType:s})=>({origin:"contentful.com",href:`https://app.contentful.com/spaces/${r}/environments/${n}/${"Entry"===t?"entries":"assets"}/${e}/?focusedField=${o}&focusedLocale=${i}&source=vercel-content-link`,contentful:{editorInterface:a,fieldType:s}}),qs=e=>["builtin","sidebar-builtin","editor-builtin"].includes(e),Ws=e=>zs.includes(e),zs=["singleLine","tagEditor","listInput","checkbox","richTextEditor","multipleLine"];function Hs(e,t,r,n,o,i,a){const s=a?t[a]:t;switch(e){case"Symbol":{const e=Bs(s,r);Fs.set(n,o,e);break}case"Text":{const e=Bs(s,r);Fs.set(n,o,e);break}case"RichText":(({pointer:e,mappings:t,data:r,hiddenStrings:n})=>{const o=t[e];if(o){delete t[e];const i=Ms(r,e);for(const e of i){t[e]=o;const i=Bs(Fs.get(r,e),n);Fs.set(r,e,i)}}else{const t=Ms(r,e);for(const e of t){const t=Bs(Fs.get(r,e),n);Fs.set(r,e,t)}}})({pointer:"",mappings:i,data:s,hiddenStrings:r});break;case"Array":{const e=s.map((e=>"string"==typeof e?Bs(e,r):e));Fs.set(n,o,e);break}}}const Ks=(e,t,r,n,o)=>{if(!e.fields)return;const{contentSourceMaps:i}=e.sys;if(!i)return;const{mappings:a}=i;for(const i in a){const{source:s}=a[i],c=e.sys.space.sys.id,u=e.sys.environment.sys.id,l=e.sys.id,f=e.sys.type,p=t[s.fieldType],y=r[s.editorInterface];if(qs(y.widgetNamespace)&&!Ws(y.widgetId))continue;const d=i.startsWith("/")?i:`/${i}`;if(Fs.has(e,d)){const t=Fs.get(e,d);if(null===t)return;const r=d.split("/").pop();if(!r)return;const i=e.sys.locale;if(i){const s=$s({entityId:l,entityType:f,space:c,environment:u,field:r,locale:i,editorInterface:y,fieldType:p,targetOrigin:n,platform:o});Hs(p,t,s,e,d,a)}else Object.keys(t).forEach((i=>{const s=$s({entityId:l,entityType:f,space:c,environment:u,field:r,locale:i,editorInterface:y,fieldType:p,targetOrigin:n,platform:o});Hs(p,t,s,e,`${d}/${i}`,a,i)}))}}};function Js(e){return function(e){if(Array.isArray(e))return Xs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Gs(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 Vs(e){return Vs="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},Vs(e)}function Gs(e,t){if(e){if("string"==typeof e)return Xs(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)?Xs(e,t):void 0}}function Xs(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 Qs={},Zs=function(e,t){var r=t.entryId,n=t.linkType,o=t.spaceId,i=t.environmentId;return e.get(o&&i?"".concat(o,"!").concat(i,"!").concat(n,"!").concat(r):"".concat(n,"!").concat(r))},Ys=function(e,t,r,n){if(t(e))return r(e);if(e&&"object"===Vs(e)){for(var o in e)e.hasOwnProperty(o)&&(e[o]=Ys(e[o],t,r,n));n&&(e=function(e){if(Array.isArray(e))return e.filter((function(e){return e!==Qs}));for(var t in e)e[t]===Qs&&delete e[t];return e}(e))}return e},ec=function(e,t){if(t=t||{},!e.items)return[];var r=hr(e),n=Object.keys(r.includes||{}).reduce((function(e,t){return[].concat(Js(e),Js(r.includes[t]))}),[]),o=[].concat(Js(r.items),Js(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?["".concat(r.type,"!").concat(r.id),"".concat(r.space.sys.id,"!").concat(r.environment.sys.id,"!").concat(r.type,"!").concat(r.id)]:["".concat(r.type,"!").concat(r.id)]).map((function(e){return[e,t]}));return e.push.apply(e,Js(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,Ys(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,r=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(r.test(e)){var n=function(e){if(Array.isArray(e))return e}(t=e.match(r))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o,i,a=[],s=!0,c=!1;try{for(o=(t=t.call(e)).next;!(s=(r=o.call(t)).done)&&(a.push(r.value),4!==a.length);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw n}}return a}}(t)||Gs(t,4)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=n[2];return{spaceId:n[1],environmentId:void 0===o?"master":o,entryId:n[3]}}}(t.sys.urn),i=o.spaceId,a=o.environmentId,s=o.entryId,c=n.split(":")[1];return Zs(e,{linkType:c,entryId:s,spaceId:i,environmentId:a})||Qs}return Zs(e,{linkType:n,entryId:t.sys.id})||Qs}(e,t);return n===Qs?r?n:t:n}(i,e,t.removeUnresolved)}),t.removeUnresolved))})),r.items},tc={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}(tc);var rc=c(tc.exports);function nc(e){return Object.defineProperty(e,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(e=null,t=""){return rc(this,e,t,((e,t)=>({sys:{type:"Link",linkType:"Entry",id:t.sys.id,circular:!0}})))}})}async function oc(e,t,r){if(!t||!t.initial&&!t.nextSyncToken&&!t.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(t.content_type&&!t.type)t.type="Entry";else if(t.content_type&&t.type&&"Entry"!==t.type)throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");const{withoutLinkResolution:n,withoutUnresolvableLinks:o,paginate:i}=Object.assign(Object.assign({},{withoutLinkResolution:!1,withoutUnresolvableLinks:!1,paginate:!0}),r),a=await ic(e,[],t,{paginate:i});n||(a.items=ec(a,{removeUnresolved:o,itemEntryPoints:["fields"]}));const s=function(e){const t=e=>(t,r)=>(r.sys.type===e&&t.push(bs(r)),t);return{entries:e.reduce(t("Entry"),[]),assets:e.reduce(t("Asset"),[]),deletedEntries:e.reduce(t("DeletedEntry"),[]),deletedAssets:e.reduce(t("DeletedAsset"),[])}}(a.items);return a.nextSyncToken&&(s.nextSyncToken=a.nextSyncToken),a.nextPageToken&&(s.nextPageToken=a.nextPageToken),ms(nc(bs(s)))}async function ic(e,t,r,{paginate:n}){const o=(i=r).nextPageToken?{sync_token:i.nextPageToken}:i.nextSyncToken?{sync_token:i.nextSyncToken}:i.sync_token?{sync_token:i.sync_token}:i;var i;const a=(await e.get("sync",ds({query:o}))).data||{};return t=t.concat(a.items||[]),a.nextPageUrl?n?(delete o.initial,o.sync_token=ac(a.nextPageUrl),ic(e,t,o,{paginate:n})):{items:t,nextPageToken:ac(a.nextPageUrl)}:a.nextSyncUrl?{items:t,nextSyncToken:ac(a.nextSyncUrl)}:{items:[]}}function ac(e){const t=e.split("?");return t.length>0?t[1].replace("sync_token=",""):""}function sc(e){const t={};let r=!1;for(const n in e)Array.isArray(e[n])&&(t[n]=e[n].join(","),r=!0);return r?Object.assign(Object.assign({},e),t):e}function cc(e){if(!e.select)return new Set;const t=Array.isArray(e.select)?e.select:e.select.split(",").map((e=>e.trim()));return new Set(t)}function uc(e){if(!e.select)return e;const t=cc(e);return t.has("sys")?e:(t.add("sys.id"),t.add("sys.type"),Object.assign(Object.assign({},e),{select:[...t].join(",")}))}function lc(e,{resolveLinks:t,removeUnresolved:r}){const n=nc(e);return t&&(n.items=ec(n,{removeUnresolved:r,itemEntryPoints:["fields"]})),n}class fc extends Error{constructor(e,t){super(`Invalid "${e}" provided, `+t),this.name="ValidationError"}}const pc=e=>{var t,r;const n=null!==(t=null==e?void 0:e.timelinePreview)&&void 0!==t?t:null===(r=null==e?void 0:e.alphaFeatures)||void 0===r?void 0:r.timelinePreview,o=function(e,t){if(void 0===t)return!1;const r=(e=>{if("object"!=typeof e||null===e||Array.isArray(e))throw new fc("timelinePreview","The 'timelinePreview' parameter must be an object.");const t=!(!(r=e.release)||"object"!=typeof r||"string"!=typeof r.lte);var r;const n=!(!(o=e.timestamp)||"object"!=typeof o||!("string"==typeof o.lte||o.lte instanceof Date));var o;if(!t&&!n)throw new fc("timelinePreview","The 'timelinePreview' object must have at least one of 'release' or 'timestamp' with a valid 'lte' property.");return t||n})(t),n="string"==typeof e&&/^preview(\.eu)?\.contentful\.com$/.test(e),o="string"!=typeof e||!e.endsWith(".contentful.com");if(r&&!n&&!o)throw new fc("timelinePreview","The 'timelinePreview' parameter can only be used with the CPA. Please set host to 'preview.contentful.com' or 'preview.eu.contentful.com' to enable Timeline Preview.\n ");return!0}(null==e?void 0:e.host,n);return{enabled:o,timelinePreview:n}};function yc(e,t){t?function(e){if(e.locale)throw new fc("locale","The `locale` parameter is not allowed")}(e):function(e){if("*"===e.locale)throw new fc("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 dc(e){if("resolveLinks"in e)throw new fc("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 hc(e){if("removeUnresolved"in e)throw new fc("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 mc(e){for(const t in e){const r=e[t];if("object"==typeof r&&null!==r&&!Array.isArray(r))throw new Error(`Objects are not supported as value for the "${t}" query parameter.`)}}function gc(e){const{pagePrev:t,pageNext:r}=e,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["cursor","pagePrev","pageNext","skip"]);return Object.assign(Object.assign(Object.assign(Object.assign({},n),{cursor:!0}),!!t&&{pagePrev:t}),!!r&&{pageNext:r})}function bc(e,t){const r=null==t?void 0:t.split("?")[1];if(r)return new URLSearchParams(r).get(e)}"function"==typeof SuppressedError&&SuppressedError;const wc={prev:"pagePrev",next:"pageNext"};function vc(e){const t={};for(const[r,n]of Object.entries(wc)){const o=bc(n,e.pages[r]);o&&(t[r]=o)}return Object.assign(Object.assign({},e),{pages:t})}class Oc extends Error{constructor(e,t,r){super("The resource could not be found."),this.sys={type:"Error",id:"NotFound"},this.details={type:"Entry",id:e,environment:t,space:r}}}function Sc({http:e,getGlobalOptions:t},r){const n=(e="unknown")=>new Oc(e,t().environment,t().space),o=e=>{let r="space"===e?t().spaceBaseUrl:t().environmentBaseUrl;if(!r)throw new Error("Please define baseUrl for "+e);return r.endsWith("/")||(r+="/"),r};function i(t={}){var r,n;const o=e.httpClientParams,i=null!==(r=null==o?void 0:o.includeContentSourceMaps)&&void 0!==r?r:null===(n=null==o?void 0:o.alphaFeatures)||void 0===n?void 0:n.includeContentSourceMaps,a=function(e,t){if(void 0===t)return!1;if("boolean"!=typeof t)throw new fc("includeContentSourceMaps","The 'includeContentSourceMaps' parameter must be a boolean.");const r="string"==typeof e&&e.startsWith("preview");if(t&&!r)throw new fc("includeContentSourceMaps","The 'includeContentSourceMaps' parameter can only be used with the CPA. Please set host to 'preview.contentful.com' or 'preview.eu.contentful.com' to include Content Source Maps.\n ");return t}(null==o?void 0:o.host,i);if(a&&(t.includeContentSourceMaps=!0,t.select)){const e=cc(t);e.add("sys"),t.select=Array.from(e).join(",")}return t}function a(t){const{enabled:r}=pc(e.httpClientParams);return r?`timeline/${t}`:t}async function s({context:t,path:r,config:n}){const i=o(t);try{return function(e,t){var r;return(null===(r=null==t?void 0:t.params)||void 0===r?void 0:r.includeContentSourceMaps)?((e,t,r)=>{var n;const 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){const e=o;if(null==(n=e.sys)||!n.contentSourceMapsLookup)return e;const{contentSourceMapsLookup:{fieldTypes:i,editorInterfaces:a}}=e.sys,{items:s,includes:c}=e;s.forEach((e=>Ks(e,i,a,t,r))),c&&c.Entry&&c.Entry.forEach((e=>Ks(e,i,a,t,r))),c&&c.Asset&&c.Asset.forEach((e=>Ks(e,i,a,t,r)))}else{if(!o.sys.contentSourceMapsLookup)return o;Ks(o,o.sys.contentSourceMapsLookup.fieldTypes,o.sys.contentSourceMapsLookup.editorInterfaces,t,r)}return o})(e):e}((await e.get(i+r,n)).data,n)}catch(e){_s(e)}}async function c(e,t={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}){const{withAllLocales:r}=t;return yc(e,r),dc(e),hc(e),mc(e),l(r?Object.assign(Object.assign({},e),{locale:"*"}):e,t)}function u(t){const r=function(t){const{enabled:r,timelinePreview:n}=pc(e.httpClientParams);return r&&((null==n?void 0:n.release)&&(t.release=n.release),(null==n?void 0:n.timestamp)&&(t.timestamp=n.timestamp)),t}(Object.assign({},t));return i(sc(uc(r)))}async function l(e,t){const{withoutLinkResolution:r,withoutUnresolvableLinks:n,withLocaleBasedPublishing:o}=t;try{const t=ds({query:u(e)});return o&&(t.headers=Object.assign(Object.assign({},t.headers),{"X-Contentful-Locale-Based-Publishing":!0})),lc(await s({context:"environment",path:a("entries"),config:t}),{resolveLinks:!r,removeUnresolved:null!=n&&n})}catch(e){_s(e)}}async function f(e,t={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}){const{withAllLocales:r}=t;return yc(e,r),mc(e),async function(e,t){const{withLocaleBasedPublishing:r}=t;try{const t=ds({query:u(e)});return r&&(t.headers=Object.assign(Object.assign({},t.headers),{"X-Contentful-Locale-Based-Publishing":!0})),s({context:"environment",path:a("assets"),config:t})}catch(e){_s(e)}}(r?Object.assign(Object.assign({},e),{locale:"*"}):e,t)}return{version:"0.0.0-determined-by-semantic-release",getSpace:async function(){return s({context:"space",path:""})},getContentType:async function(e){return s({context:"environment",path:`content_types/${e}`})},getContentTypes:async function(e={}){return s({context:"environment",path:"content_types",config:ds({query:e})})},getAsset:async function(e,t={}){return async function(e,t,r={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}){const{withAllLocales:n}=r;return yc(t,n),mc(t),async function(e,t,r){const{withLocaleBasedPublishing:n}=r;try{const r=ds({query:u(t)});return n&&(r.headers=Object.assign(Object.assign({},r.headers),{"X-Contentful-Locale-Based-Publishing":!0})),s({context:"environment",path:a(`assets/${e}`),config:r})}catch(e){_s(e)}}(e,n?Object.assign(Object.assign({},t),{locale:"*"}):t,r)}(e,t,r)},getAssets:async function(e={}){return f(e,r)},getAssetsWithCursor:async function(e={}){return vc(await f(gc(e),r))},getTag:async function(e){return s({context:"environment",path:`tags/${e}`})},getTags:async function(e={}){return mc(e),s({context:"environment",path:"tags",config:ds({query:sc(uc(e))})})},getLocales:async function(e={}){return mc(e),s({context:"environment",path:"locales",config:ds({query:uc(e)})})},parseEntries:function(e){return function(e,t={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}){return function(e,t){const{withoutLinkResolution:r,withoutUnresolvableLinks:n}=t;return lc(e,{resolveLinks:!r,removeUnresolved:null!=n&&n})}(e,t)}(e,r)},sync:async function(n,o={paginate:!0}){return async function(r,n,o={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}){dc(r),hc(r);const i=Object.assign(Object.assign({},n),o);return function(e){e.defaults.baseURL=t().environmentBaseUrl}(e),oc(e,r,i)}(n,o,r)},getEntry:async function(e,t={}){return async function(e,t,r={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}){const{withAllLocales:o}=r;return yc(t,o),dc(t),hc(t),mc(t),async function(e,t,r){if(!e)throw n(e);try{const o=await l(Object.assign({"sys.id":e},i(t)),r);if(o.items.length>0)return o.items[0];throw n(e)}catch(e){_s(e)}}(e,o?Object.assign(Object.assign({},t),{locale:"*"}):t,r)}(e,t,r)},getEntries:async function(e={}){return c(e,r)},getEntriesWithCursor:async function(e={}){return vc(await c(gc(e),r))},getConceptScheme:function(e,t={}){return async function(e,t={}){try{return s({context:"environment",path:`taxonomy/concept-schemes/${e}`,config:ds({query:sc(uc(t))})})}catch(e){_s(e)}}(e,t)},getConceptSchemes:function(e={}){return async function(e={}){try{return s({context:"environment",path:"taxonomy/concept-schemes",config:ds({query:sc(uc(e))})})}catch(e){_s(e)}}(e)},getConcept:function(e,t={}){return async function(e,t={}){try{return s({context:"environment",path:`taxonomy/concepts/${e}`,config:ds({query:sc(uc(t))})})}catch(e){_s(e)}}(e,t)},getConcepts:function(e={}){return async function(e={}){try{return s({context:"environment",path:"taxonomy/concepts",config:ds({query:sc(uc(e))})})}catch(e){_s(e)}}(e)},getConceptAncestors:function(e,t={}){return async function(e,t={}){try{return s({context:"environment",path:`taxonomy/concepts/${e}/ancestors`,config:ds({query:sc(uc(t))})})}catch(e){_s(e)}}(e,t)},getConceptDescendants:function(e,t={}){return async function(e,t={}){try{return s({context:"environment",path:`taxonomy/concepts/${e}/descendants`,config:ds({query:sc(uc(t))})})}catch(e){_s(e)}}(e,t)},createAssetKey:async function(t){try{const e=Math.floor(Date.now()/1e3);!function(e,t,r){if(r=r||{},"number"!=typeof t)throw new fc(e,`only numeric values are allowed for timestamps, provided type was "${typeof t}"`);if(r.maximum&&t>r.maximum)throw new fc(e,`value (${t}) cannot be further in the future than expected maximum (${r.maximum})`);if(r.now&&t<r.now)throw new fc(e,`value (${t}) cannot be in the past, current time was ${r.now}`)}("expiresAt",t,{maximum:e+172800,now:e})}catch(e){_s(e)}return async function({context:t,path:r,data:n,config:i}){const a=o(t);try{return(await e.post(a+r,n,i)).data}catch(e){_s(e)}}({context:"environment",path:"asset_keys",data:{expiresAt:t}})}}}return e.createClient=function(e){if(!e.accessToken)throw new TypeError("Expected parameter accessToken");if(!e.space)throw new TypeError("Expected parameter space");dc(e),hc(e);const t=Object.assign(Object.assign({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"}),e),r=function(e,t,r){const n=[];t&&n.push(`app ${t}`),r&&n.push(`integration ${r}`),n.push("sdk contentful.js/0.0.0-determined-by-semantic-release");let o=null;try{"undefined"!=typeof window&&"navigator"in window&&"product"in window.navigator&&"ReactNative"===window.navigator.product?(o=gs(),n.push("platform ReactNative")):void 0===_r||_r.browser?(o=gs(),n.push("platform browser")):(o=function(){const e=_r.platform||"linux",t={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in t?`${t[e]||"Linux"}/${_r.version||"0.0.0"}`:null}(),n.push(`platform node.js/${_r.versions&&_r.versions.node?`v${_r.versions.node}`:_r.version}`))}catch(e){o=null}return o&&n.push(`os ${o}`),`${n.filter((e=>""!==e)).join("; ")};`}(0,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});const n=ys(Nt,t);if(!n.defaults.baseURL)throw new Error("Please define a baseURL");const o=Ts({space:t.space,environment:t.environment,spaceBaseUrl:n.defaults.baseURL,environmentBaseUrl:`${n.defaults.baseURL}environments/${t.environment}`});return n.defaults.baseURL=o({}).environmentBaseUrl,(({http:e,getGlobalOptions:t})=>{function r(n){return function({http:e,getGlobalOptions:t},r,n){const o=Sc({http:e,getGlobalOptions:t},r)||{};return Object.defineProperty(o,"withAllLocales",{get:()=>n(Object.assign(Object.assign({},r),{withAllLocales:!0}))}),Object.defineProperty(o,"withoutLinkResolution",{get:()=>n(Object.assign(Object.assign({},r),{withoutLinkResolution:!0}))}),Object.defineProperty(o,"withoutUnresolvableLinks",{get:()=>n(Object.assign(Object.assign({},r),{withoutUnresolvableLinks:!0}))}),Object.defineProperty(o,"withLocaleBasedPublishing",{get:()=>n(Object.assign(Object.assign({},r),{withLocaleBasedPublishing:!0}))}),Object.create(o)}({http:e,getGlobalOptions:t},n,r)}const n=Sc({http:e,getGlobalOptions:t},{withoutLinkResolution:!1,withAllLocales:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1});return Object.assign(Object.assign({},n),{get withAllLocales(){return r({withAllLocales:!0,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1})},get withoutLinkResolution(){return r({withAllLocales:!1,withoutLinkResolution:!0,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1})},get withoutUnresolvableLinks(){return r({withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!0,withLocaleBasedPublishing:!1})},get withLocaleBasedPublishing(){return r({withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!0})}})})({http:n,getGlobalOptions:o})},e.createGlobalOptions=Ts,e}({});
|