@kintone/rest-api-client 5.7.2 → 5.7.4
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/esm/package.json +3 -3
- package/esm/src/client/AppClient.d.ts +2 -2
- package/esm/tsconfig.build.esm.tsbuildinfo +1 -1
- package/lib/package.json +3 -3
- package/lib/src/client/AppClient.d.ts +2 -2
- package/lib/tsconfig.build.tsbuildinfo +1 -1
- package/lib/tsconfig.typecheck.node.tsbuildinfo +1 -1
- package/lib/tsconfig.typecheck.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/umd/KintoneRestAPIClient.js +230 -253
- package/umd/KintoneRestAPIClient.min.js +3 -1
|
@@ -763,4 +763,6 @@
|
|
|
763
763
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
764
764
|
*/
|
|
765
765
|
|
|
766
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).window=t.window||{})}(this,(function(t){"use strict";var e={readFileFromPath:function(){throw new Error("not implemented")},getRequestToken:function(){throw new Error("not implemented")},getDefaultAuth:function(){throw new Error("not implemented")},buildPlatformDependentConfig:function(){throw new Error("not implemented")},buildHeaders:function(){throw new Error("not implemented")},buildFormDataValue:function(){throw new Error("not implemented")},buildBaseUrl:function(){throw new Error("not implemented")},getVersion:function(){throw new Error("not implemented")}};function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function n(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function s(t){n(a,o,i,s,u,"next",t)}function u(t){n(a,o,i,s,u,"throw",t)}s(void 0)}))}}function i(t,e,r){return e=l(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,b(n.key),n)}}function u(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t,e,r){return(e=b(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function y(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function m(){m=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(t,e,r,n){return Object.defineProperty(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(e,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return u(a,"_invoke",function(e,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=S(s,n);if(u){if(u===p)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=l(e,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(e,n,new R(o||[])),!0),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var p={};function f(){}function h(){}function d(){}var y={};u(y,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==r&&n.call(v,i)&&(y=v);var b=d.prototype=f.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,s){var u=l(t[o],t,i);if("throw"!==u.type){var c=u.arg,p=c.value;return p&&"object"==typeof p&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(p).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var o;u(this,"_invoke",(function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}),!0)}function S(e,r){var n=r.method,o=e.i[n];if(o===t)return r.delegate=null,"throw"===n&&e.i.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=l(o,e.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,p;var a=i.arg;return a?a.done?(r[e.r]=a.value,r.next=e.n,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function E(t){this.tryEntries.push(t)}function A(e){var r=e[4]||{};r.type="normal",r.arg=t,e[4]=r}function R(t){this.tryEntries=[[-1]],t.forEach(E,this),this.reset(!0)}function O(e){if(null!=e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return h.prototype=d,u(b,"constructor",d),u(d,"constructor",h),h.displayName=u(d,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},w(x.prototype),u(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),u(b,s,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},e.values=O,R.prototype={constructor:R,reset:function(e){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(t){a.type="throw",a.arg=e,r.next=t}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,u=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!u&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<u)return this.method="next",this.arg=t,n(u),!0;if(s<c)return n(c),!1}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===t||"continue"===t)&&o[0]<=e&&e<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o[2],p):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),A(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={i:O(e),r:r,n:n},"next"===this.method&&(this.arg=t),p}},e}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}function v(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||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 b(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:e+""}function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function x(t){var e="function"==typeof Map?new Map:void 0;return x=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(f())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(t.bind.apply(t,n));return r&&g(o,r.prototype),o}(t,arguments,l(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),g(r,t)},x(t)}var S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function E(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function A(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}var R=function(t){return t&&t.Math===Math&&t},O=R("object"==typeof globalThis&&globalThis)||R("object"==typeof window&&window)||R("object"==typeof self&&self)||R("object"==typeof S&&S)||R("object"==typeof S&&S)||function(){return this}()||Function("return this")(),P={},k=function(t){try{return!!t()}catch(t){return!0}},j=!k((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),T=!k((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),I=T,_=Function.prototype.call,N=I?_.bind(_):function(){return _.apply(_,arguments)},C={},U={}.propertyIsEnumerable,L=Object.getOwnPropertyDescriptor,F=L&&!U.call({1:2},1);C.f=F?function(t){var e=L(this,t);return!!e&&e.enumerable}:U;var D,B,M=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},q=T,W=Function.prototype,G=W.call,z=q&&W.bind.bind(G,G),H=q?z:function(t){return function(){return G.apply(t,arguments)}},$=H,V=$({}.toString),K=$("".slice),Y=function(t){return K(V(t),8,-1)},J=k,Q=Y,X=Object,Z=H("".split),tt=J((function(){return!X("z").propertyIsEnumerable(0)}))?function(t){return"String"===Q(t)?Z(t,""):X(t)}:X,et=function(t){return null==t},rt=et,nt=TypeError,ot=function(t){if(rt(t))throw new nt("Can't call method on "+t);return t},it=tt,at=ot,st=function(t){return it(at(t))},ut="object"==typeof document&&document.all,ct=void 0===ut&&void 0!==ut?function(t){return"function"==typeof t||t===ut}:function(t){return"function"==typeof t},lt=ct,pt=function(t){return"object"==typeof t?null!==t:lt(t)},ft=O,ht=ct,dt=function(t,e){return arguments.length<2?(r=ft[t],ht(r)?r:void 0):ft[t]&&ft[t][e];var r},yt=H({}.isPrototypeOf),mt=O.navigator,gt=mt&&mt.userAgent,vt=gt?String(gt):"",bt=O,wt=vt,xt=bt.process,St=bt.Deno,Et=xt&&xt.versions||St&&St.version,At=Et&&Et.v8;At&&(B=(D=At.split("."))[0]>0&&D[0]<4?1:+(D[0]+D[1])),!B&&wt&&(!(D=wt.match(/Edge\/(\d+)/))||D[1]>=74)&&(D=wt.match(/Chrome\/(\d+)/))&&(B=+D[1]);var Rt=B,Ot=Rt,Pt=k,kt=O.String,jt=!!Object.getOwnPropertySymbols&&!Pt((function(){var t=Symbol("symbol detection");return!kt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Ot&&Ot<41})),Tt=jt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,It=dt,_t=ct,Nt=yt,Ct=Object,Ut=Tt?function(t){return"symbol"==typeof t}:function(t){var e=It("Symbol");return _t(e)&&Nt(e.prototype,Ct(t))},Lt=String,Ft=function(t){try{return Lt(t)}catch(t){return"Object"}},Dt=ct,Bt=Ft,Mt=TypeError,qt=function(t){if(Dt(t))return t;throw new Mt(Bt(t)+" is not a function")},Wt=qt,Gt=et,zt=function(t,e){var r=t[e];return Gt(r)?void 0:Wt(r)},Ht=N,$t=ct,Vt=pt,Kt=TypeError,Yt={exports:{}},Jt=O,Qt=Object.defineProperty,Xt=function(t,e){try{Qt(Jt,t,{value:e,configurable:!0,writable:!0})}catch(r){Jt[t]=e}return e},Zt=O,te=Xt,ee="__core-js_shared__",re=Yt.exports=Zt[ee]||te(ee,{});(re.versions||(re.versions=[])).push({version:"3.40.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"});var ne=Yt.exports,oe=ne,ie=function(t,e){return oe[t]||(oe[t]=e||{})},ae=ot,se=Object,ue=function(t){return se(ae(t))},ce=ue,le=H({}.hasOwnProperty),pe=Object.hasOwn||function(t,e){return le(ce(t),e)},fe=H,he=0,de=Math.random(),ye=fe(1..toString),me=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ye(++he+de,36)},ge=ie,ve=pe,be=me,we=jt,xe=Tt,Se=O.Symbol,Ee=ge("wks"),Ae=xe?Se.for||Se:Se&&Se.withoutSetter||be,Re=function(t){return ve(Ee,t)||(Ee[t]=we&&ve(Se,t)?Se[t]:Ae("Symbol."+t)),Ee[t]},Oe=N,Pe=pt,ke=Ut,je=zt,Te=function(t,e){var r,n;if("string"===e&&$t(r=t.toString)&&!Vt(n=Ht(r,t)))return n;if($t(r=t.valueOf)&&!Vt(n=Ht(r,t)))return n;if("string"!==e&&$t(r=t.toString)&&!Vt(n=Ht(r,t)))return n;throw new Kt("Can't convert object to primitive value")},Ie=TypeError,_e=Re("toPrimitive"),Ne=function(t,e){if(!Pe(t)||ke(t))return t;var r,n=je(t,_e);if(n){if(void 0===e&&(e="default"),r=Oe(n,t,e),!Pe(r)||ke(r))return r;throw new Ie("Can't convert object to primitive value")}return void 0===e&&(e="number"),Te(t,e)},Ce=Ne,Ue=Ut,Le=function(t){var e=Ce(t,"string");return Ue(e)?e:e+""},Fe=pt,De=O.document,Be=Fe(De)&&Fe(De.createElement),Me=function(t){return Be?De.createElement(t):{}},qe=Me,We=!j&&!k((function(){return 7!==Object.defineProperty(qe("div"),"a",{get:function(){return 7}}).a})),Ge=j,ze=N,He=C,$e=M,Ve=st,Ke=Le,Ye=pe,Je=We,Qe=Object.getOwnPropertyDescriptor;P.f=Ge?Qe:function(t,e){if(t=Ve(t),e=Ke(e),Je)try{return Qe(t,e)}catch(t){}if(Ye(t,e))return $e(!ze(He.f,t,e),t[e])};var Xe={},Ze=j&&k((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),tr=pt,er=String,rr=TypeError,nr=function(t){if(tr(t))return t;throw new rr(er(t)+" is not an object")},or=j,ir=We,ar=Ze,sr=nr,ur=Le,cr=TypeError,lr=Object.defineProperty,pr=Object.getOwnPropertyDescriptor,fr="enumerable",hr="configurable",dr="writable";Xe.f=or?ar?function(t,e,r){if(sr(t),e=ur(e),sr(r),"function"==typeof t&&"prototype"===e&&"value"in r&&dr in r&&!r[dr]){var n=pr(t,e);n&&n[dr]&&(t[e]=r.value,r={configurable:hr in r?r[hr]:n[hr],enumerable:fr in r?r[fr]:n[fr],writable:!1})}return lr(t,e,r)}:lr:function(t,e,r){if(sr(t),e=ur(e),sr(r),ir)try{return lr(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new cr("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var yr=Xe,mr=M,gr=j?function(t,e,r){return yr.f(t,e,mr(1,r))}:function(t,e,r){return t[e]=r,t},vr={exports:{}},br=j,wr=pe,xr=Function.prototype,Sr=br&&Object.getOwnPropertyDescriptor,Er=wr(xr,"name"),Ar={EXISTS:Er,PROPER:Er&&"something"===function(){}.name,CONFIGURABLE:Er&&(!br||br&&Sr(xr,"name").configurable)},Rr=ct,Or=ne,Pr=H(Function.toString);Rr(Or.inspectSource)||(Or.inspectSource=function(t){return Pr(t)});var kr,jr,Tr,Ir=Or.inspectSource,_r=ct,Nr=O.WeakMap,Cr=_r(Nr)&&/native code/.test(String(Nr)),Ur=me,Lr=ie("keys"),Fr=function(t){return Lr[t]||(Lr[t]=Ur(t))},Dr={},Br=Cr,Mr=O,qr=pt,Wr=gr,Gr=pe,zr=ne,Hr=Fr,$r=Dr,Vr="Object already initialized",Kr=Mr.TypeError,Yr=Mr.WeakMap;if(Br||zr.state){var Jr=zr.state||(zr.state=new Yr);Jr.get=Jr.get,Jr.has=Jr.has,Jr.set=Jr.set,kr=function(t,e){if(Jr.has(t))throw new Kr(Vr);return e.facade=t,Jr.set(t,e),e},jr=function(t){return Jr.get(t)||{}},Tr=function(t){return Jr.has(t)}}else{var Qr=Hr("state");$r[Qr]=!0,kr=function(t,e){if(Gr(t,Qr))throw new Kr(Vr);return e.facade=t,Wr(t,Qr,e),e},jr=function(t){return Gr(t,Qr)?t[Qr]:{}},Tr=function(t){return Gr(t,Qr)}}var Xr={set:kr,get:jr,has:Tr,enforce:function(t){return Tr(t)?jr(t):kr(t,{})},getterFor:function(t){return function(e){var r;if(!qr(e)||(r=jr(e)).type!==t)throw new Kr("Incompatible receiver, "+t+" required");return r}}},Zr=H,tn=k,en=ct,rn=pe,nn=j,on=Ar.CONFIGURABLE,an=Ir,sn=Xr.enforce,un=Xr.get,cn=String,ln=Object.defineProperty,pn=Zr("".slice),fn=Zr("".replace),hn=Zr([].join),dn=nn&&!tn((function(){return 8!==ln((function(){}),"length",{value:8}).length})),yn=String(String).split("String"),mn=vr.exports=function(t,e,r){"Symbol("===pn(cn(e),0,7)&&(e="["+fn(cn(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!rn(t,"name")||on&&t.name!==e)&&(nn?ln(t,"name",{value:e,configurable:!0}):t.name=e),dn&&r&&rn(r,"arity")&&t.length!==r.arity&&ln(t,"length",{value:r.arity});try{r&&rn(r,"constructor")&&r.constructor?nn&&ln(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=sn(t);return rn(n,"source")||(n.source=hn(yn,"string"==typeof e?e:"")),t};Function.prototype.toString=mn((function(){return en(this)&&un(this).source||an(this)}),"toString");var gn,vn=vr.exports,bn=ct,wn=Xe,xn=vn,Sn=Xt,En=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(bn(r)&&xn(r,i,n),n.global)o?t[e]=r:Sn(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:wn.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},An={},Rn=Math.ceil,On=Math.floor,Pn=Math.trunc||function(t){var e=+t;return(e>0?On:Rn)(e)},kn=function(t){var e=+t;return e!=e||0===e?0:Pn(e)},jn=kn,Tn=Math.max,In=Math.min,_n=function(t,e){var r=jn(t);return r<0?Tn(r+e,0):In(r,e)},Nn=kn,Cn=Math.min,Un=function(t){var e=Nn(t);return e>0?Cn(e,9007199254740991):0},Ln=Un,Fn=function(t){return Ln(t.length)},Dn=st,Bn=_n,Mn=Fn,qn={indexOf:(gn=!1,function(t,e,r){var n=Dn(t),o=Mn(n);if(0===o)return!gn&&-1;var i,a=Bn(r,o);if(gn&&e!=e){for(;o>a;)if((i=n[a++])!=i)return!0}else for(;o>a;a++)if((gn||a in n)&&n[a]===e)return gn||a||0;return!gn&&-1})},Wn=pe,Gn=st,zn=qn.indexOf,Hn=Dr,$n=H([].push),Vn=function(t,e){var r,n=Gn(t),o=0,i=[];for(r in n)!Wn(Hn,r)&&Wn(n,r)&&$n(i,r);for(;e.length>o;)Wn(n,r=e[o++])&&(~zn(i,r)||$n(i,r));return i},Kn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Yn=Vn,Jn=Kn.concat("length","prototype");An.f=Object.getOwnPropertyNames||function(t){return Yn(t,Jn)};var Qn={};Qn.f=Object.getOwnPropertySymbols;var Xn=dt,Zn=An,to=Qn,eo=nr,ro=H([].concat),no=Xn("Reflect","ownKeys")||function(t){var e=Zn.f(eo(t)),r=to.f;return r?ro(e,r(t)):e},oo=pe,io=no,ao=P,so=Xe,uo=k,co=ct,lo=/#|\.prototype\./,po=function(t,e){var r=ho[fo(t)];return r===mo||r!==yo&&(co(e)?uo(e):!!e)},fo=po.normalize=function(t){return String(t).replace(lo,".").toLowerCase()},ho=po.data={},yo=po.NATIVE="N",mo=po.POLYFILL="P",go=po,vo=O,bo=P.f,wo=gr,xo=En,So=Xt,Eo=function(t,e,r){for(var n=io(e),o=so.f,i=ao.f,a=0;a<n.length;a++){var s=n[a];oo(t,s)||r&&oo(r,s)||o(t,s,i(e,s))}},Ao=go,Ro=function(t,e){var r,n,o,i,a,s=t.target,u=t.global,c=t.stat;if(r=u?vo:c?vo[s]||So(s,{}):vo[s]&&vo[s].prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=bo(r,n))&&a.value:r[n],!Ao(u?n:s+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Eo(i,o)}(t.sham||o&&o.sham)&&wo(i,"sham",!0),xo(r,n,i,t)}},Oo=Y,Po=Array.isArray||function(t){return"Array"===Oo(t)},ko=TypeError,jo=j,To=Xe,Io=M,_o=function(t,e,r){jo?To.f(t,e,Io(0,r)):t[e]=r},No={};No[Re("toStringTag")]="z";var Co="[object z]"===String(No),Uo=Co,Lo=ct,Fo=Y,Do=Re("toStringTag"),Bo=Object,Mo="Arguments"===Fo(function(){return arguments}()),qo=Uo?Fo:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Bo(t),Do))?r:Mo?Fo(e):"Object"===(n=Fo(e))&&Lo(e.callee)?"Arguments":n},Wo=H,Go=k,zo=ct,Ho=qo,$o=Ir,Vo=function(){},Ko=dt("Reflect","construct"),Yo=/^\s*(?:class|function)\b/,Jo=Wo(Yo.exec),Qo=!Yo.test(Vo),Xo=function(t){if(!zo(t))return!1;try{return Ko(Vo,[],t),!0}catch(t){return!1}},Zo=function(t){if(!zo(t))return!1;switch(Ho(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Qo||!!Jo(Yo,$o(t))}catch(t){return!0}};Zo.sham=!0;var ti=!Ko||Go((function(){var t;return Xo(Xo.call)||!Xo(Object)||!Xo((function(){t=!0}))||t}))?Zo:Xo,ei=Po,ri=ti,ni=pt,oi=Re("species"),ii=Array,ai=function(t){var e;return ei(t)&&(e=t.constructor,(ri(e)&&(e===ii||ei(e.prototype))||ni(e)&&null===(e=e[oi]))&&(e=void 0)),void 0===e?ii:e},si=function(t,e){return new(ai(t))(0===e?0:e)},ui=k,ci=Rt,li=Re("species"),pi=function(t){return ci>=51||!ui((function(){var e=[];return(e.constructor={})[li]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},fi=Ro,hi=k,di=Po,yi=pt,mi=ue,gi=Fn,vi=function(t){if(t>9007199254740991)throw ko("Maximum allowed index exceeded");return t},bi=_o,wi=si,xi=pi,Si=Rt,Ei=Re("isConcatSpreadable"),Ai=Si>=51||!hi((function(){var t=[];return t[Ei]=!1,t.concat()[0]!==t})),Ri=function(t){if(!yi(t))return!1;var e=t[Ei];return void 0!==e?!!e:di(t)};fi({target:"Array",proto:!0,arity:1,forced:!Ai||!xi("concat")},{concat:function(t){var e,r,n,o,i,a=mi(this),s=wi(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(Ri(i=-1===e?a:arguments[e]))for(o=gi(i),vi(u+o),r=0;r<o;r++,u++)r in i&&bi(s,u,i[r]);else vi(u+1),bi(s,u++,i);return s.length=u,s}});var Oi=vn,Pi=Xe,ki=function(t,e,r){return r.get&&Oi(r.get,e,{getter:!0}),r.set&&Oi(r.set,e,{setter:!0}),Pi.f(t,e,r)},ji=j,Ti=Ar.EXISTS,Ii=H,_i=ki,Ni=Function.prototype,Ci=Ii(Ni.toString),Ui=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Li=Ii(Ui.exec);ji&&!Ti&&_i(Ni,"name",{configurable:!0,get:function(){try{return Li(Ui,Ci(this))[1]}catch(t){return""}}});var Fi=H,Di=qt,Bi=pt,Mi=function(t){return Bi(t)||null===t},qi=String,Wi=TypeError,Gi=function(t,e,r){try{return Fi(Di(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},zi=pt,Hi=ot,$i=function(t){if(Mi(t))return t;throw new Wi("Can't set "+qi(t)+" as a prototype")},Vi=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Gi(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Hi(r),$i(n),zi(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0);Ro({target:"Object",stat:!0},{setPrototypeOf:Vi});var Ki=function(t){function e(t){var r;return a(this,e),r=i(this,e,["This function is not supported in ".concat(t," environment")]),Error.captureStackTrace&&Error.captureStackTrace(r,e),r.name="UnsupportedPlatformError",r.platform=t,Object.setPrototypeOf(r,e.prototype),r}return p(e,t),u(e)}(x(Error));function Yi(){this._types=Object.create(null),this._extensions=Object.create(null);for(let t=0;t<arguments.length;t++)this.define(arguments[t]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}Yi.prototype.define=function(t,e){for(let r in t){let n=t[r].map((function(t){return t.toLowerCase()}));r=r.toLowerCase();for(let t=0;t<n.length;t++){const o=n[t];if("*"!==o[0]){if(!e&&o in this._types)throw new Error('Attempt to change mapping for "'+o+'" extension from "'+this._types[o]+'" to "'+r+'". Pass `force=true` to allow this, otherwise remove "'+o+'" from the list of extensions for "'+r+'".');this._types[o]=r}}if(e||!this._extensions[r]){const t=n[0];this._extensions[r]="*"!==t[0]?t:t.substr(1)}}},Yi.prototype.getType=function(t){let e=(t=String(t)).replace(/^.*[/\\]/,"").toLowerCase(),r=e.replace(/^.*\./,"").toLowerCase(),n=e.length<t.length;return(r.length<e.length-1||!n)&&this._types[r]||null},Yi.prototype.getExtension=function(t){return(t=/^\s*([^;\s]*)/.test(t)&&RegExp.$1)&&this._extensions[t.toLowerCase()]||null};var Ji=E(new Yi({"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]})),Qi="5.7.2",Xi=function(){var t=o(m().mark((function t(){var e;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("object"!==("undefined"==typeof kintone?"undefined":w(kintone))||null===kintone||"function"!=typeof kintone.getRequestToken){t.next=2;break}return t.abrupt("return",kintone.getRequestToken());case 2:if("object"!==("undefined"==typeof garoon?"undefined":w(garoon))||null===garoon||"function"!=typeof(null===(e=garoon.connect)||void 0===e||null===(e=e.kintone)||void 0===e?void 0:e.getRequestToken)){t.next=4;break}return t.abrupt("return",garoon.connect.kintone.getRequestToken());case 4:throw new Error("session authentication must specify a request token");case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Zi=Object.freeze({__proto__:null,buildBaseUrl:function(t){if(t)return t;if(void 0===location)throw new Error("The baseUrl parameter is required for this environment");var e=location,r=e.host,n=e.protocol;return"".concat(n,"//").concat(r)},buildFormDataValue:function(t,e){var r={};return e&&(r.type=Ji.getType(e)||void 0),new Blob([t],r)},buildHeaders:function(){return{}},buildPlatformDependentConfig:function(){return{}},getDefaultAuth:function(){return{type:"session"}},getRequestToken:Xi,getVersion:function(){return Qi},readFileFromPath:function(t){throw new Ki("Browser")}}),ta={},ea=Vn,ra=Kn,na=Object.keys||function(t){return ea(t,ra)},oa=j,ia=Ze,aa=Xe,sa=nr,ua=st,ca=na;ta.f=oa&&!ia?Object.defineProperties:function(t,e){sa(t);for(var r,n=ua(e),o=ca(e),i=o.length,a=0;i>a;)aa.f(t,r=o[a++],n[r]);return t};var la,pa=dt("document","documentElement"),fa=nr,ha=ta,da=Kn,ya=Dr,ma=pa,ga=Me,va="prototype",ba="script",wa=Fr("IE_PROTO"),xa=function(){},Sa=function(t){return"<"+ba+">"+t+"</"+ba+">"},Ea=function(t){t.write(Sa("")),t.close();var e=t.parentWindow.Object;return t=null,e},Aa=function(){try{la=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Aa="undefined"!=typeof document?document.domain&&la?Ea(la):(e=ga("iframe"),r="java"+ba+":",e.style.display="none",ma.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Sa("document.F=Object")),t.close(),t.F):Ea(la);for(var n=da.length;n--;)delete Aa[va][da[n]];return Aa()};ya[wa]=!0;var Ra=Object.create||function(t,e){var r;return null!==t?(xa[va]=fa(t),r=new xa,xa[va]=null,r[wa]=t):r=Aa(),void 0===e?r:ha.f(r,e)},Oa=Re,Pa=Ra,ka=Xe.f,ja=Oa("unscopables"),Ta=Array.prototype;void 0===Ta[ja]&&ka(Ta,ja,{configurable:!0,value:Pa(null)});var Ia,_a,Na,Ca={},Ua=!k((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),La=pe,Fa=ct,Da=ue,Ba=Ua,Ma=Fr("IE_PROTO"),qa=Object,Wa=qa.prototype,Ga=Ba?qa.getPrototypeOf:function(t){var e=Da(t);if(La(e,Ma))return e[Ma];var r=e.constructor;return Fa(r)&&e instanceof r?r.prototype:e instanceof qa?Wa:null},za=k,Ha=ct,$a=pt,Va=Ga,Ka=En,Ya=Re("iterator"),Ja=!1;[].keys&&("next"in(Na=[].keys())?(_a=Va(Va(Na)))!==Object.prototype&&(Ia=_a):Ja=!0);var Qa=!$a(Ia)||za((function(){var t={};return Ia[Ya].call(t)!==t}));Qa&&(Ia={}),Ha(Ia[Ya])||Ka(Ia,Ya,(function(){return this}));var Xa={IteratorPrototype:Ia,BUGGY_SAFARI_ITERATORS:Ja},Za=Xe.f,ts=pe,es=Re("toStringTag"),rs=function(t,e,r){t&&!r&&(t=t.prototype),t&&!ts(t,es)&&Za(t,es,{configurable:!0,value:e})},ns=Xa.IteratorPrototype,os=Ra,is=M,as=rs,ss=Ca,us=function(){return this},cs=function(t,e,r,n){var o=e+" Iterator";return t.prototype=os(ns,{next:is(+!n,r)}),as(t,o,!1),ss[o]=us,t},ls=Ro,ps=N,fs=ct,hs=cs,ds=Ga,ys=Vi,ms=rs,gs=gr,vs=En,bs=Ca,ws=Ar.PROPER,xs=Ar.CONFIGURABLE,Ss=Xa.IteratorPrototype,Es=Xa.BUGGY_SAFARI_ITERATORS,As=Re("iterator"),Rs="keys",Os="values",Ps="entries",ks=function(){return this},js=function(t,e,r,n,o,i,a){hs(r,e,n);var s,u,c,l=function(t){if(t===o&&y)return y;if(!Es&&t&&t in h)return h[t];switch(t){case Rs:case Os:case Ps:return function(){return new r(this,t)}}return function(){return new r(this)}},p=e+" Iterator",f=!1,h=t.prototype,d=h[As]||h["@@iterator"]||o&&h[o],y=!Es&&d||l(o),m="Array"===e&&h.entries||d;if(m&&(s=ds(m.call(new t)))!==Object.prototype&&s.next&&(ds(s)!==Ss&&(ys?ys(s,Ss):fs(s[As])||vs(s,As,ks)),ms(s,p,!0)),ws&&o===Os&&d&&d.name!==Os&&(xs?gs(h,"name",Os):(f=!0,y=function(){return ps(d,this)})),o)if(u={values:l(Os),keys:i?y:l(Rs),entries:l(Ps)},a)for(c in u)(Es||f||!(c in h))&&vs(h,c,u[c]);else ls({target:e,proto:!0,forced:Es||f},u);return h[As]!==y&&vs(h,As,y,{name:o}),bs[e]=y,u},Ts=function(t,e){return{value:t,done:e}},Is=st,_s=function(t){Ta[ja][t]=!0},Ns=Ca,Cs=Xr,Us=Xe.f,Ls=js,Fs=Ts,Ds=j,Bs="Array Iterator",Ms=Cs.set,qs=Cs.getterFor(Bs),Ws=Ls(Array,"Array",(function(t,e){Ms(this,{type:Bs,target:Is(t),index:0,kind:e})}),(function(){var t=qs(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,Fs(void 0,!0);switch(t.kind){case"keys":return Fs(r,!1);case"values":return Fs(e[r],!1)}return Fs([r,e[r]],!1)}),"values"),Gs=Ns.Arguments=Ns.Array;if(_s("keys"),_s("values"),_s("entries"),Ds&&"values"!==Gs.name)try{Us(Gs,"name",{value:"values"})}catch(t){}var zs=H,Hs=En,$s=Date.prototype,Vs="Invalid Date",Ks="toString",Ys=zs($s[Ks]),Js=zs($s.getTime);String(new Date(NaN))!==Vs&&Hs($s,Ks,(function(){var t=Js(this);return t==t?Ys(this):Vs}));var Qs=qo,Xs=Co?{}.toString:function(){return"[object "+Qs(this)+"]"};Co||En(Object.prototype,"toString",Xs,{unsafe:!0});var Zs,tu=qo,eu=String,ru=function(t){if("Symbol"===tu(t))throw new TypeError("Cannot convert a Symbol value to a string");return eu(t)},nu="\t\n\v\f\r \u2028\u2029\ufeff",ou=ot,iu=ru,au=nu,su=H("".replace),uu=RegExp("^["+au+"]+"),cu=RegExp("(^|[^"+au+"])["+au+"]+$"),lu={trim:(Zs=3,function(t){var e=iu(ou(t));return 1&Zs&&(e=su(e,uu,"")),2&Zs&&(e=su(e,cu,"$1")),e})},pu=O,fu=k,hu=ru,du=lu.trim,yu=nu,mu=H("".charAt),gu=pu.parseFloat,vu=pu.Symbol,bu=vu&&vu.iterator,wu=1/gu(yu+"-0")!=-1/0||bu&&!fu((function(){gu(Object(bu))}))?function(t){var e=du(hu(t)),r=gu(e);return 0===r&&"-"===mu(e,0)?-0:r}:gu;Ro({global:!0,forced:parseFloat!==wu},{parseFloat:wu});var xu=nr,Su=function(){var t=xu(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Eu=k,Au=O.RegExp,Ru=Eu((function(){var t=Au("a","y");return t.lastIndex=2,null!==t.exec("abcd")}));Ru||Eu((function(){return!Au("a","y").sticky}));var Ou,Pu,ku={BROKEN_CARET:Ru||Eu((function(){var t=Au("^r","gy");return t.lastIndex=2,null!==t.exec("str")}))},ju=k,Tu=O.RegExp,Iu=ju((function(){var t=Tu(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),_u=k,Nu=O.RegExp,Cu=_u((function(){var t=Nu("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Uu=N,Lu=H,Fu=ru,Du=Su,Bu=ku,Mu=Ra,qu=Xr.get,Wu=Iu,Gu=Cu,zu=ie("native-string-replace",String.prototype.replace),Hu=RegExp.prototype.exec,$u=Hu,Vu=Lu("".charAt),Ku=Lu("".indexOf),Yu=Lu("".replace),Ju=Lu("".slice),Qu=(Pu=/b*/g,Uu(Hu,Ou=/a/,"a"),Uu(Hu,Pu,"a"),0!==Ou.lastIndex||0!==Pu.lastIndex),Xu=Bu.BROKEN_CARET,Zu=void 0!==/()??/.exec("")[1];(Qu||Zu||Xu||Wu||Gu)&&($u=function(t){var e,r,n,o,i,a,s,u=this,c=qu(u),l=Fu(t),p=c.raw;if(p)return p.lastIndex=u.lastIndex,e=Uu($u,p,l),u.lastIndex=p.lastIndex,e;var f=c.groups,h=Xu&&u.sticky,d=Uu(Du,u),y=u.source,m=0,g=l;if(h&&(d=Yu(d,"y",""),-1===Ku(d,"g")&&(d+="g"),g=Ju(l,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Vu(l,u.lastIndex-1))&&(y="(?: "+y+")",g=" "+g,m++),r=new RegExp("^(?:"+y+")",d)),Zu&&(r=new RegExp("^"+y+"$(?!\\s)",d)),Qu&&(n=u.lastIndex),o=Uu(Hu,h?r:u,g),h?o?(o.input=Ju(o.input,m),o[0]=Ju(o[0],m),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Qu&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),Zu&&o&&o.length>1&&Uu(zu,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&f)for(o.groups=a=Mu(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var tc=$u;Ro({target:"RegExp",proto:!0,forced:/./.exec!==tc},{exec:tc});var ec=N,rc=pe,nc=yt,oc=Su,ic=RegExp.prototype,ac=Ar.PROPER,sc=En,uc=nr,cc=ru,lc=k,pc=function(t){var e=t.flags;return void 0!==e||"flags"in ic||rc(t,"flags")||!nc(ic,t)?e:ec(oc,t)},fc="toString",hc=RegExp.prototype,dc=hc[fc],yc=lc((function(){return"/a/b"!==dc.call({source:"a",flags:"b"})})),mc=ac&&dc.name!==fc;(yc||mc)&&sc(hc,fc,(function(){var t=uc(this);return"/"+cc(t.source)+"/"+cc(pc(t))}),{unsafe:!0});var gc=H,vc=kn,bc=ru,wc=ot,xc=gc("".charAt),Sc=gc("".charCodeAt),Ec=gc("".slice),Ac=function(t){return function(e,r){var n,o,i=bc(wc(e)),a=vc(r),s=i.length;return a<0||a>=s?t?"":void 0:(n=Sc(i,a))<55296||n>56319||a+1===s||(o=Sc(i,a+1))<56320||o>57343?t?xc(i,a):n:t?Ec(i,a,a+2):o-56320+(n-55296<<10)+65536}},Rc={codeAt:Ac(!1),charAt:Ac(!0)},Oc=Rc.charAt,Pc=ru,kc=Xr,jc=js,Tc=Ts,Ic="String Iterator",_c=kc.set,Nc=kc.getterFor(Ic);jc(String,"String",(function(t){_c(this,{type:Ic,string:Pc(t),index:0})}),(function(){var t,e=Nc(this),r=e.string,n=e.index;return n>=r.length?Tc(void 0,!0):(t=Oc(r,n),e.index+=t.length,Tc(t,!1))}));var Cc=T,Uc=Function.prototype,Lc=Uc.apply,Fc=Uc.call,Dc="object"==typeof Reflect&&Reflect.apply||(Cc?Fc.bind(Lc):function(){return Fc.apply(Lc,arguments)}),Bc=N,Mc=En,qc=tc,Wc=k,Gc=Re,zc=gr,Hc=Gc("species"),$c=RegExp.prototype,Vc=function(t,e,r,n){var o=Gc(t),i=!Wc((function(){var e={};return e[o]=function(){return 7},7!==""[t](e)})),a=i&&!Wc((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Hc]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var s=/./[o],u=e(o,""[t],(function(t,e,r,n,o){var a=e.exec;return a===qc||a===$c.exec?i&&!o?{done:!0,value:Bc(s,e,r,n)}:{done:!0,value:Bc(t,r,e,n)}:{done:!1}}));Mc(String.prototype,t,u[0]),Mc($c,o,u[1])}n&&zc($c[o],"sham",!0)},Kc=Rc.charAt,Yc=function(t,e,r){return e+(r?Kc(t,e).length:1)},Jc=H,Qc=ue,Xc=Math.floor,Zc=Jc("".charAt),tl=Jc("".replace),el=Jc("".slice),rl=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,nl=/\$([$&'`]|\d{1,2})/g,ol=N,il=nr,al=ct,sl=Y,ul=tc,cl=TypeError,ll=function(t,e){var r=t.exec;if(al(r)){var n=ol(r,t,e);return null!==n&&il(n),n}if("RegExp"===sl(t))return ol(ul,t,e);throw new cl("RegExp#exec called on incompatible receiver")},pl=Dc,fl=N,hl=H,dl=Vc,yl=k,ml=nr,gl=ct,vl=et,bl=kn,wl=Un,xl=ru,Sl=ot,El=Yc,Al=zt,Rl=function(t,e,r,n,o,i){var a=r+t.length,s=n.length,u=nl;return void 0!==o&&(o=Qc(o),u=rl),tl(i,u,(function(i,u){var c;switch(Zc(u,0)){case"$":return"$";case"&":return t;case"`":return el(e,0,r);case"'":return el(e,a);case"<":c=o[el(u,1,-1)];break;default:var l=+u;if(0===l)return i;if(l>s){var p=Xc(l/10);return 0===p?i:p<=s?void 0===n[p-1]?Zc(u,1):n[p-1]+Zc(u,1):i}c=n[l-1]}return void 0===c?"":c}))},Ol=ll,Pl=Re("replace"),kl=Math.max,jl=Math.min,Tl=hl([].concat),Il=hl([].push),_l=hl("".indexOf),Nl=hl("".slice),Cl="$0"==="a".replace(/./,"$0"),Ul=!!/./[Pl]&&""===/./[Pl]("a","$0");dl("replace",(function(t,e,r){var n=Ul?"$":"$0";return[function(t,r){var n=Sl(this),o=vl(t)?void 0:Al(t,Pl);return o?fl(o,t,n,r):fl(e,xl(n),t,r)},function(t,o){var i=ml(this),a=xl(t);if("string"==typeof o&&-1===_l(o,n)&&-1===_l(o,"$<")){var s=r(e,i,a,o);if(s.done)return s.value}var u=gl(o);u||(o=xl(o));var c,l=i.global;l&&(c=i.unicode,i.lastIndex=0);for(var p,f=[];null!==(p=Ol(i,a))&&(Il(f,p),l);){""===xl(p[0])&&(i.lastIndex=El(a,wl(i.lastIndex),c))}for(var h,d="",y=0,m=0;m<f.length;m++){for(var g,v=xl((p=f[m])[0]),b=kl(jl(bl(p.index),a.length),0),w=[],x=1;x<p.length;x++)Il(w,void 0===(h=p[x])?h:String(h));var S=p.groups;if(u){var E=Tl([v],w,b,a);void 0!==S&&Il(E,S),g=xl(pl(o,void 0,E))}else g=Rl(v,a,b,w,S,o);b>=y&&(d+=Nl(a,y,b)+g,y=b+v.length)}return d+Nl(a,y)}]}),!!yl((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Cl||Ul);var Ll={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Fl=Me("span").classList,Dl=Fl&&Fl.constructor&&Fl.constructor.prototype,Bl=Dl===Object.prototype?void 0:Dl,Ml=O,ql=Ll,Wl=Bl,Gl=Ws,zl=gr,Hl=rs,$l=Re("iterator"),Vl=Gl.values,Kl=function(t,e){if(t){if(t[$l]!==Vl)try{zl(t,$l,Vl)}catch(e){t[$l]=Vl}if(Hl(t,e,!0),ql[e])for(var r in Gl)if(t[r]!==Gl[r])try{zl(t,r,Gl[r])}catch(e){t[r]=Gl[r]}}};for(var Yl in ql)Kl(Ml[Yl]&&Ml[Yl].prototype,Yl);Kl(Wl,"DOMTokenList");var Jl=k,Ql=j,Xl=Re("iterator"),Zl=!Jl((function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),r.delete("a",2),r.delete("b",void 0),!e.size&&!Ql||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[Xl]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host})),tp=Y,ep=H,rp=function(t){if("Function"===tp(t))return ep(t)},np=qt,op=T,ip=rp(rp.bind),ap=function(t,e){return np(t),void 0===e?t:op?ip(t,e):function(){return t.apply(e,arguments)}},sp=yt,up=TypeError,cp=function(t,e){if(sp(e,t))return t;throw new up("Incorrect invocation")},lp=j,pp=H,fp=N,hp=k,dp=na,yp=Qn,mp=C,gp=ue,vp=tt,bp=Object.assign,wp=Object.defineProperty,xp=pp([].concat),Sp=!bp||hp((function(){if(lp&&1!==bp({b:1},bp(wp({},"a",{enumerable:!0,get:function(){wp(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!==bp({},t)[r]||dp(bp({},e)).join("")!==n}))?function(t,e){for(var r=gp(t),n=arguments.length,o=1,i=yp.f,a=mp.f;n>o;)for(var s,u=vp(arguments[o++]),c=i?xp(dp(u),i(u)):dp(u),l=c.length,p=0;l>p;)s=c[p++],lp&&!fp(a,u,s)||(r[s]=u[s]);return r}:bp,Ep=N,Ap=nr,Rp=zt,Op=nr,Pp=function(t,e,r){var n,o;Ap(t);try{if(!(n=Rp(t,"return"))){if("throw"===e)throw r;return r}n=Ep(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return Ap(n),r},kp=Ca,jp=Re("iterator"),Tp=Array.prototype,Ip=qo,_p=zt,Np=et,Cp=Ca,Up=Re("iterator"),Lp=function(t){if(!Np(t))return _p(t,Up)||_p(t,"@@iterator")||Cp[Ip(t)]},Fp=N,Dp=qt,Bp=nr,Mp=Ft,qp=Lp,Wp=TypeError,Gp=function(t,e){var r=arguments.length<2?qp(t):e;if(Dp(r))return Bp(Fp(r,t));throw new Wp(Mp(t)+" is not iterable")},zp=ap,Hp=N,$p=ue,Vp=function(t,e,r,n){try{return n?e(Op(r)[0],r[1]):e(r)}catch(e){Pp(t,"throw",e)}},Kp=function(t){return void 0!==t&&(kp.Array===t||Tp[jp]===t)},Yp=ti,Jp=Fn,Qp=_o,Xp=Gp,Zp=Lp,tf=Array,ef=H([].slice),rf=H,nf=2147483647,of=/[^\0-\u007E]/,af=/[.\u3002\uFF0E\uFF61]/g,sf="Overflow: input needs wider integers to process",uf=RangeError,cf=rf(af.exec),lf=Math.floor,pf=String.fromCharCode,ff=rf("".charCodeAt),hf=rf([].join),df=rf([].push),yf=rf("".replace),mf=rf("".split),gf=rf("".toLowerCase),vf=function(t){return t+22+75*(t<26)},bf=function(t,e,r){var n=0;for(t=r?lf(t/700):t>>1,t+=lf(t/e);t>455;)t=lf(t/35),n+=36;return lf(n+36*t/(t+38))},wf=function(t){var e=[];t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=ff(t,r++);if(o>=55296&&o<=56319&&r<n){var i=ff(t,r++);56320==(64512&i)?df(e,((1023&o)<<10)+(1023&i)+65536):(df(e,o),r--)}else df(e,o)}return e}(t);var r,n,o=t.length,i=128,a=0,s=72;for(r=0;r<t.length;r++)(n=t[r])<128&&df(e,pf(n));var u=e.length,c=u;for(u&&df(e,"-");c<o;){var l=nf;for(r=0;r<t.length;r++)(n=t[r])>=i&&n<l&&(l=n);var p=c+1;if(l-i>lf((nf-a)/p))throw new uf(sf);for(a+=(l-i)*p,i=l,r=0;r<t.length;r++){if((n=t[r])<i&&++a>nf)throw new uf(sf);if(n===i){for(var f=a,h=36;;){var d=h<=s?1:h>=s+26?26:h-s;if(f<d)break;var y=f-d,m=36-d;df(e,pf(vf(d+y%m))),f=lf(y/m),h+=36}df(e,pf(vf(f))),s=bf(a,p,c===u),a=0,c++}}a++,i++}return hf(e,"")},xf=TypeError,Sf=function(t,e){if(t<e)throw new xf("Not enough arguments");return t},Ef=Ro,Af=H,Rf=_n,Of=RangeError,Pf=String.fromCharCode,kf=String.fromCodePoint,jf=Af([].join);Ef({target:"String",stat:!0,arity:1,forced:!!kf&&1!==kf.length},{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,o=0;n>o;){if(e=+arguments[o++],Rf(e,1114111)!==e)throw new Of(e+" is not a valid code point");r[o]=e<65536?Pf(e):Pf(55296+((e-=65536)>>10),e%1024+56320)}return jf(r,"")}});var Tf=O,If=j,_f=Object.getOwnPropertyDescriptor,Nf=En,Cf=ef,Uf=Math.floor,Lf=function(t,e){var r=t.length;if(r<8)for(var n,o,i=1;i<r;){for(o=i,n=t[i];o&&e(t[o-1],n)>0;)t[o]=t[--o];o!==i++&&(t[o]=n)}else for(var a=Uf(r/2),s=Lf(Cf(t,0,a),e),u=Lf(Cf(t,a),e),c=s.length,l=u.length,p=0,f=0;p<c||f<l;)t[p+f]=p<c&&f<l?e(s[p],u[f])<=0?s[p++]:u[f++]:p<c?s[p++]:u[f++];return t},Ff=Ro,Df=O,Bf=function(t){if(!If)return Tf[t];var e=_f(Tf,t);return e&&e.value},Mf=dt,qf=N,Wf=H,Gf=j,zf=Zl,Hf=En,$f=ki,Vf=function(t,e,r){for(var n in e)Nf(t,n,e[n],r);return t},Kf=rs,Yf=cs,Jf=Xr,Qf=cp,Xf=ct,Zf=pe,th=ap,eh=qo,rh=nr,nh=pt,oh=ru,ih=Ra,ah=M,sh=Gp,uh=Lp,ch=Ts,lh=Sf,ph=Lf,fh=Re("iterator"),hh="URLSearchParams",dh=hh+"Iterator",yh=Jf.set,mh=Jf.getterFor(hh),gh=Jf.getterFor(dh),vh=Bf("fetch"),bh=Bf("Request"),wh=Bf("Headers"),xh=bh&&bh.prototype,Sh=wh&&wh.prototype,Eh=Df.TypeError,Ah=Df.encodeURIComponent,Rh=String.fromCharCode,Oh=Mf("String","fromCodePoint"),Ph=parseInt,kh=Wf("".charAt),jh=Wf([].join),Th=Wf([].push),Ih=Wf("".replace),_h=Wf([].shift),Nh=Wf([].splice),Ch=Wf("".split),Uh=Wf("".slice),Lh=Wf(/./.exec),Fh=/\+/g,Dh=/^[0-9a-f]+$/i,Bh=function(t,e){var r=Uh(t,e,e+2);return Lh(Dh,r)?Ph(r,16):NaN},Mh=function(t){for(var e=0,r=128;r>0&&t&r;r>>=1)e++;return e},qh=function(t){var e=null;switch(t.length){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return e>1114111?null:e},Wh=function(t){for(var e=(t=Ih(t,Fh," ")).length,r="",n=0;n<e;){var o=kh(t,n);if("%"===o){if("%"===kh(t,n+1)||n+3>e){r+="%",n++;continue}var i=Bh(t,n+1);if(i!=i){r+=o,n++;continue}n+=2;var a=Mh(i);if(0===a)o=Rh(i);else{if(1===a||a>4){r+="�",n++;continue}for(var s=[i],u=1;u<a&&!(++n+3>e||"%"!==kh(t,n));){var c=Bh(t,n+1);if(c!=c){n+=3;break}if(c>191||c<128)break;Th(s,c),n+=2,u++}if(s.length!==a){r+="�";continue}var l=qh(s);null===l?r+="�":o=Oh(l)}}r+=o,n++}return r},Gh=/[!'()~]|%20/g,zh={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Hh=function(t){return zh[t]},$h=function(t){return Ih(Ah(t),Gh,Hh)},Vh=Yf((function(t,e){yh(this,{type:dh,target:mh(t).entries,index:0,kind:e})}),hh,(function(){var t=gh(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,ch(void 0,!0);var n=e[r];switch(t.kind){case"keys":return ch(n.key,!1);case"values":return ch(n.value,!1)}return ch([n.key,n.value],!1)}),!0),Kh=function(t){this.entries=[],this.url=null,void 0!==t&&(nh(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===kh(t,0)?Uh(t,1):t:oh(t)))};Kh.prototype={type:hh,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,o,i,a,s,u=this.entries,c=uh(t);if(c)for(r=(e=sh(t,c)).next;!(n=qf(r,e)).done;){if(i=(o=sh(rh(n.value))).next,(a=qf(i,o)).done||(s=qf(i,o)).done||!qf(i,o).done)throw new Eh("Expected sequence with length 2");Th(u,{key:oh(a.value),value:oh(s.value)})}else for(var l in t)Zf(t,l)&&Th(u,{key:l,value:oh(t[l])})},parseQuery:function(t){if(t)for(var e,r,n=this.entries,o=Ch(t,"&"),i=0;i<o.length;)(e=o[i++]).length&&(r=Ch(e,"="),Th(n,{key:Wh(_h(r)),value:Wh(jh(r,"="))}))},serialize:function(){for(var t,e=this.entries,r=[],n=0;n<e.length;)t=e[n++],Th(r,$h(t.key)+"="+$h(t.value));return jh(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Yh=function(){Qf(this,Jh);var t=yh(this,new Kh(arguments.length>0?arguments[0]:void 0));Gf||(this.size=t.entries.length)},Jh=Yh.prototype;if(Vf(Jh,{append:function(t,e){var r=mh(this);lh(arguments.length,2),Th(r.entries,{key:oh(t),value:oh(e)}),Gf||this.length++,r.updateURL()},delete:function(t){for(var e=mh(this),r=lh(arguments.length,1),n=e.entries,o=oh(t),i=r<2?void 0:arguments[1],a=void 0===i?i:oh(i),s=0;s<n.length;){var u=n[s];if(u.key!==o||void 0!==a&&u.value!==a)s++;else if(Nh(n,s,1),void 0!==a)break}Gf||(this.size=n.length),e.updateURL()},get:function(t){var e=mh(this).entries;lh(arguments.length,1);for(var r=oh(t),n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){var e=mh(this).entries;lh(arguments.length,1);for(var r=oh(t),n=[],o=0;o<e.length;o++)e[o].key===r&&Th(n,e[o].value);return n},has:function(t){for(var e=mh(this).entries,r=lh(arguments.length,1),n=oh(t),o=r<2?void 0:arguments[1],i=void 0===o?o:oh(o),a=0;a<e.length;){var s=e[a++];if(s.key===n&&(void 0===i||s.value===i))return!0}return!1},set:function(t,e){var r=mh(this);lh(arguments.length,1);for(var n,o=r.entries,i=!1,a=oh(t),s=oh(e),u=0;u<o.length;u++)(n=o[u]).key===a&&(i?Nh(o,u--,1):(i=!0,n.value=s));i||Th(o,{key:a,value:s}),Gf||(this.size=o.length),r.updateURL()},sort:function(){var t=mh(this);ph(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,r=mh(this).entries,n=th(t,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((e=r[o++]).value,e.key,this)},keys:function(){return new Vh(this,"keys")},values:function(){return new Vh(this,"values")},entries:function(){return new Vh(this,"entries")}},{enumerable:!0}),Hf(Jh,fh,Jh.entries,{name:"entries"}),Hf(Jh,"toString",(function(){return mh(this).serialize()}),{enumerable:!0}),Gf&&$f(Jh,"size",{get:function(){return mh(this).entries.length},configurable:!0,enumerable:!0}),Kf(Yh,hh),Ff({global:!0,constructor:!0,forced:!zf},{URLSearchParams:Yh}),!zf&&Xf(wh)){var Qh=Wf(Sh.has),Xh=Wf(Sh.set),Zh=function(t){if(nh(t)){var e,r=t.body;if(eh(r)===hh)return e=t.headers?new wh(t.headers):new wh,Qh(e,"content-type")||Xh(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),ih(t,{body:ah(0,oh(r)),headers:ah(0,e)})}return t};if(Xf(vh)&&Ff({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return vh(t,arguments.length>1?Zh(arguments[1]):{})}}),Xf(bh)){var td=function(t){return Qf(this,xh),new bh(t,arguments.length>1?Zh(arguments[1]):{})};xh.constructor=td,td.prototype=xh,Ff({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:td})}}var ed,rd=Ro,nd=j,od=Zl,id=O,ad=ap,sd=H,ud=En,cd=ki,ld=cp,pd=pe,fd=Sp,hd=function(t){var e=$p(t),r=Yp(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=zp(o,n>2?arguments[2]:void 0));var a,s,u,c,l,p,f=Zp(e),h=0;if(!f||this===tf&&Kp(f))for(a=Jp(e),s=r?new this(a):tf(a);a>h;h++)p=i?o(e[h],h):e[h],Qp(s,h,p);else for(s=r?new this:[],l=(c=Xp(e,f)).next;!(u=Hp(l,c)).done;h++)p=i?Vp(c,o,[u.value,h],!0):u.value,Qp(s,h,p);return s.length=h,s},dd=ef,yd=Rc.codeAt,md=function(t){var e,r,n=[],o=mf(yf(gf(t),af,"."),".");for(e=0;e<o.length;e++)r=o[e],df(n,cf(of,r)?"xn--"+wf(r):r);return hf(n,".")},gd=ru,vd=rs,bd=Sf,wd={URLSearchParams:Yh,getState:mh},xd=Xr,Sd=xd.set,Ed=xd.getterFor("URL"),Ad=wd.URLSearchParams,Rd=wd.getState,Od=id.URL,Pd=id.TypeError,kd=id.parseInt,jd=Math.floor,Td=Math.pow,Id=sd("".charAt),_d=sd(/./.exec),Nd=sd([].join),Cd=sd(1..toString),Ud=sd([].pop),Ld=sd([].push),Fd=sd("".replace),Dd=sd([].shift),Bd=sd("".split),Md=sd("".slice),qd=sd("".toLowerCase),Wd=sd([].unshift),Gd="Invalid scheme",zd="Invalid host",Hd="Invalid port",$d=/[a-z]/i,Vd=/[\d+-.a-z]/i,Kd=/\d/,Yd=/^0x/i,Jd=/^[0-7]+$/,Qd=/^\d+$/,Xd=/^[\da-f]+$/i,Zd=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ty=/[\0\t\n\r #/:<>?@[\\\]^|]/,ey=/^[\u0000-\u0020]+/,ry=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ny=/[\t\n\r]/g,oy=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)Wd(e,t%256),t=jd(t/256);return Nd(e,".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r?n:e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=Cd(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},iy={},ay=fd({},iy,{" ":1,'"':1,"<":1,">":1,"`":1}),sy=fd({},ay,{"#":1,"?":1,"{":1,"}":1}),uy=fd({},sy,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),cy=function(t,e){var r=yd(t,0);return r>32&&r<127&&!pd(e,t)?t:encodeURIComponent(t)},ly={ftp:21,file:null,http:80,https:443,ws:80,wss:443},py=function(t,e){var r;return 2===t.length&&_d($d,Id(t,0))&&(":"===(r=Id(t,1))||!e&&"|"===r)},fy=function(t){var e;return t.length>1&&py(Md(t,0,2))&&(2===t.length||"/"===(e=Id(t,2))||"\\"===e||"?"===e||"#"===e)},hy=function(t){return"."===t||"%2e"===qd(t)},dy={},yy={},my={},gy={},vy={},by={},wy={},xy={},Sy={},Ey={},Ay={},Ry={},Oy={},Py={},ky={},jy={},Ty={},Iy={},_y={},Ny={},Cy={},Uy=function(t,e,r){var n,o,i,a=gd(t);if(e){if(o=this.parse(a))throw new Pd(o);this.searchParams=null}else{if(void 0!==r&&(n=new Uy(r,!0)),o=this.parse(a,null,n))throw new Pd(o);(i=Rd(new Ad)).bindURL(this),this.searchParams=i}};Uy.prototype={type:"URL",parse:function(t,e,r){var n,o,i,a,s,u=this,c=e||dy,l=0,p="",f=!1,h=!1,d=!1;for(t=gd(t),e||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,t=Fd(t,ey,""),t=Fd(t,ry,"$1")),t=Fd(t,ny,""),n=hd(t);l<=n.length;){switch(o=n[l],c){case dy:if(!o||!_d($d,o)){if(e)return Gd;c=my;continue}p+=qd(o),c=yy;break;case yy:if(o&&(_d(Vd,o)||"+"===o||"-"===o||"."===o))p+=qd(o);else{if(":"!==o){if(e)return Gd;p="",c=my,l=0;continue}if(e&&(u.isSpecial()!==pd(ly,p)||"file"===p&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=p,e)return void(u.isSpecial()&&ly[u.scheme]===u.port&&(u.port=null));p="","file"===u.scheme?c=Py:u.isSpecial()&&r&&r.scheme===u.scheme?c=gy:u.isSpecial()?c=xy:"/"===n[l+1]?(c=vy,l++):(u.cannotBeABaseURL=!0,Ld(u.path,""),c=_y)}break;case my:if(!r||r.cannotBeABaseURL&&"#"!==o)return Gd;if(r.cannotBeABaseURL&&"#"===o){u.scheme=r.scheme,u.path=dd(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=Cy;break}c="file"===r.scheme?Py:by;continue;case gy:if("/"!==o||"/"!==n[l+1]){c=by;continue}c=Sy,l++;break;case vy:if("/"===o){c=Ey;break}c=Iy;continue;case by:if(u.scheme=r.scheme,o===ed)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=dd(r.path),u.query=r.query;else if("/"===o||"\\"===o&&u.isSpecial())c=wy;else if("?"===o)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=dd(r.path),u.query="",c=Ny;else{if("#"!==o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=dd(r.path),u.path.length--,c=Iy;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=dd(r.path),u.query=r.query,u.fragment="",c=Cy}break;case wy:if(!u.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=Iy;continue}c=Ey}else c=Sy;break;case xy:if(c=Sy,"/"!==o||"/"!==Id(p,l+1))continue;l++;break;case Sy:if("/"!==o&&"\\"!==o){c=Ey;continue}break;case Ey:if("@"===o){f&&(p="%40"+p),f=!0,i=hd(p);for(var y=0;y<i.length;y++){var m=i[y];if(":"!==m||d){var g=cy(m,uy);d?u.password+=g:u.username+=g}else d=!0}p=""}else if(o===ed||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(f&&""===p)return"Invalid authority";l-=hd(p).length+1,p="",c=Ay}else p+=o;break;case Ay:case Ry:if(e&&"file"===u.scheme){c=jy;continue}if(":"!==o||h){if(o===ed||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(u.isSpecial()&&""===p)return zd;if(e&&""===p&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(p))return a;if(p="",c=Ty,e)return;continue}"["===o?h=!0:"]"===o&&(h=!1),p+=o}else{if(""===p)return zd;if(a=u.parseHost(p))return a;if(p="",c=Oy,e===Ry)return}break;case Oy:if(!_d(Kd,o)){if(o===ed||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()||e){if(""!==p){var v=kd(p,10);if(v>65535)return Hd;u.port=u.isSpecial()&&v===ly[u.scheme]?null:v,p=""}if(e)return;c=Ty;continue}return Hd}p+=o;break;case Py:if(u.scheme="file","/"===o||"\\"===o)c=ky;else{if(!r||"file"!==r.scheme){c=Iy;continue}switch(o){case ed:u.host=r.host,u.path=dd(r.path),u.query=r.query;break;case"?":u.host=r.host,u.path=dd(r.path),u.query="",c=Ny;break;case"#":u.host=r.host,u.path=dd(r.path),u.query=r.query,u.fragment="",c=Cy;break;default:fy(Nd(dd(n,l),""))||(u.host=r.host,u.path=dd(r.path),u.shortenPath()),c=Iy;continue}}break;case ky:if("/"===o||"\\"===o){c=jy;break}r&&"file"===r.scheme&&!fy(Nd(dd(n,l),""))&&(py(r.path[0],!0)?Ld(u.path,r.path[0]):u.host=r.host),c=Iy;continue;case jy:if(o===ed||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&&py(p))c=Iy;else if(""===p){if(u.host="",e)return;c=Ty}else{if(a=u.parseHost(p))return a;if("localhost"===u.host&&(u.host=""),e)return;p="",c=Ty}continue}p+=o;break;case Ty:if(u.isSpecial()){if(c=Iy,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==ed&&(c=Iy,"/"!==o))continue}else u.fragment="",c=Cy;else u.query="",c=Ny;break;case Iy:if(o===ed||"/"===o||"\\"===o&&u.isSpecial()||!e&&("?"===o||"#"===o)){if(".."===(s=qd(s=p))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"===o||"\\"===o&&u.isSpecial()||Ld(u.path,"")):hy(p)?"/"===o||"\\"===o&&u.isSpecial()||Ld(u.path,""):("file"===u.scheme&&!u.path.length&&py(p)&&(u.host&&(u.host=""),p=Id(p,0)+":"),Ld(u.path,p)),p="","file"===u.scheme&&(o===ed||"?"===o||"#"===o))for(;u.path.length>1&&""===u.path[0];)Dd(u.path);"?"===o?(u.query="",c=Ny):"#"===o&&(u.fragment="",c=Cy)}else p+=cy(o,sy);break;case _y:"?"===o?(u.query="",c=Ny):"#"===o?(u.fragment="",c=Cy):o!==ed&&(u.path[0]+=cy(o,iy));break;case Ny:e||"#"!==o?o!==ed&&("'"===o&&u.isSpecial()?u.query+="%27":u.query+="#"===o?"%23":cy(o,iy)):(u.fragment="",c=Cy);break;case Cy:o!==ed&&(u.fragment+=cy(o,ay))}l++}},parseHost:function(t){var e,r,n;if("["===Id(t,0)){if("]"!==Id(t,t.length-1))return zd;if(e=function(t){var e,r,n,o,i,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,p=0,f=function(){return Id(t,p)};if(":"===f()){if(":"!==Id(t,1))return;p+=2,l=++c}for(;f();){if(8===c)return;if(":"!==f()){for(e=r=0;r<4&&_d(Xd,f());)e=16*e+kd(f(),16),p++,r++;if("."===f()){if(0===r)return;if(p-=r,c>6)return;for(n=0;f();){if(o=null,n>0){if(!("."===f()&&n<4))return;p++}if(!_d(Kd,f()))return;for(;_d(Kd,f());){if(i=kd(f(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;p++}u[c]=256*u[c]+o,2!=++n&&4!==n||c++}if(4!==n)return;break}if(":"===f()){if(p++,!f())return}else if(f())return;u[c++]=e}else{if(null!==l)return;p++,l=++c}}if(null!==l)for(a=c-l,c=7;0!==c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!==c)return;return u}(Md(t,1,-1)),!e)return zd;this.host=e}else if(this.isSpecial()){if(t=md(t),_d(Zd,t))return zd;if(e=function(t){var e,r,n,o,i,a,s,u=Bd(t,".");if(u.length&&""===u[u.length-1]&&u.length--,(e=u.length)>4)return t;for(r=[],n=0;n<e;n++){if(""===(o=u[n]))return t;if(i=10,o.length>1&&"0"===Id(o,0)&&(i=_d(Yd,o)?16:8,o=Md(o,8===i?1:2)),""===o)a=0;else{if(!_d(10===i?Qd:8===i?Jd:Xd,o))return t;a=kd(o,i)}Ld(r,a)}for(n=0;n<e;n++)if(a=r[n],n===e-1){if(a>=Td(256,5-e))return null}else if(a>255)return null;for(s=Ud(r),n=0;n<r.length;n++)s+=r[n]*Td(256,3-n);return s}(t),null===e)return zd;this.host=e}else{if(_d(ty,t))return zd;for(e="",r=hd(t),n=0;n<r.length;n++)e+=cy(r[n],iy);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return pd(ly,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"===this.scheme&&1===e&&py(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,r=t.username,n=t.password,o=t.host,i=t.port,a=t.path,s=t.query,u=t.fragment,c=e+":";return null!==o?(c+="//",t.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=oy(o),null!==i&&(c+=":"+i)):"file"===e&&(c+="//"),c+=t.cannotBeABaseURL?a[0]:a.length?"/"+Nd(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(t){var e=this.parse(t);if(e)throw new Pd(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new Ly(t.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+oy(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(gd(t)+":",dy)},getUsername:function(){return this.username},setUsername:function(t){var e=hd(gd(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<e.length;r++)this.username+=cy(e[r],uy)}},getPassword:function(){return this.password},setPassword:function(t){var e=hd(gd(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<e.length;r++)this.password+=cy(e[r],uy)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?oy(t):oy(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Ay)},getHostname:function(){var t=this.host;return null===t?"":oy(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,Ry)},getPort:function(){var t=this.port;return null===t?"":gd(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=gd(t))?this.port=null:this.parse(t,Oy))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+Nd(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Ty))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""===(t=gd(t))?this.query=null:("?"===Id(t,0)&&(t=Md(t,1)),this.query="",this.parse(t,Ny)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!==(t=gd(t))?("#"===Id(t,0)&&(t=Md(t,1)),this.fragment="",this.parse(t,Cy)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ly=function(t){var e=ld(this,Fy),r=bd(arguments.length,1)>1?arguments[1]:void 0,n=Sd(e,new Uy(t,!1,r));nd||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},Fy=Ly.prototype,Dy=function(t,e){return{get:function(){return Ed(this)[t]()},set:e&&function(t){return Ed(this)[e](t)},configurable:!0,enumerable:!0}};if(nd&&(cd(Fy,"href",Dy("serialize","setHref")),cd(Fy,"origin",Dy("getOrigin")),cd(Fy,"protocol",Dy("getProtocol","setProtocol")),cd(Fy,"username",Dy("getUsername","setUsername")),cd(Fy,"password",Dy("getPassword","setPassword")),cd(Fy,"host",Dy("getHost","setHost")),cd(Fy,"hostname",Dy("getHostname","setHostname")),cd(Fy,"port",Dy("getPort","setPort")),cd(Fy,"pathname",Dy("getPathname","setPathname")),cd(Fy,"search",Dy("getSearch","setSearch")),cd(Fy,"searchParams",Dy("getSearchParams")),cd(Fy,"hash",Dy("getHash","setHash"))),ud(Fy,"toJSON",(function(){return Ed(this).serialize()}),{enumerable:!0}),ud(Fy,"toString",(function(){return Ed(this).serialize()}),{enumerable:!0}),Od){var By=Od.createObjectURL,My=Od.revokeObjectURL;By&&ud(Ly,"createObjectURL",ad(By,Od)),My&&ud(Ly,"revokeObjectURL",ad(My,Od))}vd(Ly,"URL"),rd({global:!0,constructor:!0,forced:!od,sham:!nd},{URL:Ly});var qy=N;Ro({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return qy(URL.prototype.toString,this)}});var Wy=ap,Gy=tt,zy=ue,Hy=Fn,$y=si,Vy=H([].push),Ky=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,a=7===t,s=5===t||i;return function(u,c,l,p){for(var f,h,d=zy(u),y=Gy(d),m=Hy(y),g=Wy(c,l),v=0,b=p||$y,w=e?b(u,m):r||a?b(u,0):void 0;m>v;v++)if((s||v in y)&&(h=g(f=y[v],v,d),t))if(e)w[v]=h;else if(h)switch(t){case 3:return!0;case 5:return f;case 6:return v;case 2:Vy(w,f)}else switch(t){case 4:return!1;case 7:Vy(w,f)}return i?-1:n||o?o:w}},Yy={forEach:Ky(0),map:Ky(1),every:Ky(4)},Jy=Yy.map;Ro({target:"Array",proto:!0,forced:!pi("map")},{map:function(t){return Jy(this,t,arguments.length>1?arguments[1]:void 0)}});var Qy=function(t){var e=t.endpointName,r=t.guestSpaceId,n=t.preview,o=void 0!==r?"/guest/".concat(r):"",i=n?"/preview":"";return"/k".concat(o,"/v1").concat(i,"/").concat(e,".json")},Xy=function(){return u((function t(e,r){a(this,t),this.client=e,this.guestSpaceId=r}),[{key:"buildPathWithGuestSpaceId",value:function(t){return Qy(d(d({},t),{},{guestSpaceId:this.guestSpaceId}))}},{key:"buildPath",value:function(t){return Qy(t)}}])}(),Zy=["endpointName"],tm=function(t){function e(t,r){var n;return a(this,e),(n=i(this,e,[t,r])).REQUESTS_LENGTH_LIMIT=20,n}return p(e,t),u(e,[{key:"send",value:function(t){var e=this,r=t.requests.map((function(t){if("endpointName"in t){var r=t.endpointName,n=y(t,Zy);return d({api:e.buildPathWithGuestSpaceId({endpointName:r})},n)}return t})),n=this.buildPathWithGuestSpaceId({endpointName:"bulkRequest"});return this.client.post(n,{requests:r})}}])}(Xy),em=["preview"],rm=["preview"],nm=["preview"],om=["preview"],im=["preview"],am=["preview"],sm=["preview"],um=["preview"],cm=["preview"],lm=["preview"],pm=["preview"],fm=["preview"],hm=["preview"],dm=["preview"],ym=["preview"],mm=["preview"],gm=function(t){function e(){return a(this,e),i(this,e,arguments)}return p(e,t),u(e,[{key:"getFormFields",value:function(t){var e=t.preview,r=y(t,em),n=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:e});return this.client.get(n,d({},r))}},{key:"addFormFields",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.post(e,t)}},{key:"updateFormFields",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.put(e,t)}},{key:"deleteFormFields",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.delete(e,t)}},{key:"getFormLayout",value:function(t){var e=t.preview,r=y(t,rm),n=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:e});return this.client.get(n,d({},r))}},{key:"updateFormLayout",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:!0});return this.client.put(e,t)}},{key:"getViews",value:function(t){var e=t.preview,r=y(t,nm),n=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:e});return this.client.get(n,r)}},{key:"updateViews",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:!0});return this.client.put(e,t)}},{key:"getApp",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app"});return this.client.get(e,t)}},{key:"getApps",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"apps"});return this.client.get(e,t)}},{key:"addApp",value:(r=o(m().mark((function t(e){var r,n,o,i,a,s;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.name,n=e.space,o=this.buildPathWithGuestSpaceId({endpointName:"app",preview:!0}),!n){t.next=9;break}return i=this.buildPathWithGuestSpaceId({endpointName:"space"}),t.next=6,this.client.get(i,{id:n});case 6:return a=t.sent,s=a.defaultThread,t.abrupt("return",this.client.post(o,d(d({},e),{},{thread:s})));case 9:return t.abrupt("return",this.client.post(o,{name:r}));case 10:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"getAppSettings",value:function(t){var e=t.preview,r=y(t,om),n=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:e});return this.client.get(n,r)}},{key:"updateAppSettings",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:!0});return this.client.put(e,t)}},{key:"getProcessManagement",value:function(t){var e=t.preview,r=y(t,im),n=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:e});return this.client.get(n,r)}},{key:"updateProcessManagement",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:!0});return this.client.put(e,t)}},{key:"getDeployStatus",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.get(e,t)}},{key:"deployApp",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.post(e,t)}},{key:"getFieldAcl",value:function(t){var e=t.preview,r=y(t,am),n=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:e});return this.client.get(n,d({},r))}},{key:"updateFieldAcl",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:!0});return this.client.put(e,t)}},{key:"getAppAcl",value:function(t){var e=t.preview,r=y(t,sm),n=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:e});return this.client.get(n,d({},r))}},{key:"updateAppAcl",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:!0});return this.client.put(e,t)}},{key:"evaluateRecordsAcl",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records/acl/evaluate"});return this.client.get(e,t)}},{key:"getRecordAcl",value:function(t){var e=t.preview,r=y(t,um),n=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:e});return this.client.get(n,d({},r))}},{key:"updateRecordAcl",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:!0});return this.client.put(e,t)}},{key:"getAppCustomize",value:function(t){var e=t.preview,r=y(t,cm),n=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:e});return this.client.get(n,d({},r))}},{key:"updateAppCustomize",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:!0});return this.client.put(e,t)}},{key:"getGeneralNotifications",value:function(t){var e=t.preview,r=y(t,lm),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:e});return this.client.get(n,d({},r))}},{key:"updateGeneralNotifications",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:!0});return this.client.put(e,t)}},{key:"getPerRecordNotifications",value:function(t){var e=t.preview,r=y(t,pm),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:e});return this.client.get(n,r)}},{key:"updatePerRecordNotifications",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:!0});return this.client.put(e,t)}},{key:"getReminderNotifications",value:function(t){var e=t.preview,r=y(t,fm),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:e});return this.client.get(n,r)}},{key:"updateReminderNotifications",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:!0});return this.client.put(e,t)}},{key:"getReports",value:function(t){var e=t.preview,r=y(t,hm),n=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:e});return this.client.get(n,r)}},{key:"updateReports",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:!0});return this.client.put(e,t)}},{key:"getAppActions",value:function(t){var e=t.preview,r=y(t,dm),n=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:e});return this.client.get(n,r)}},{key:"updateAppActions",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:!0});return this.client.put(e,t)}},{key:"getAdminNotes",value:function(t){var e=t.preview,r=y(t,ym),n=this.buildPathWithGuestSpaceId({endpointName:"app/adminNotes",preview:e});return this.client.get(n,r)}},{key:"updateAdminNotes",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/adminNotes",preview:!0});return this.client.put(e,t)}},{key:"move",value:function(t){var e=this.buildPath({endpointName:"app/move"});return this.client.post(e,t)}},{key:"getPlugins",value:function(t){var e=t.preview,r=y(t,mm),n=this.buildPathWithGuestSpaceId({endpointName:"app/plugins",preview:e});return this.client.get(n,r)}},{key:"addPlugins",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"app/plugins",preview:!0});return this.client.post(e,t)}}]);var r}(Xy),vm=k,bm=function(t,e){var r=[][t];return!!r&&vm((function(){r.call(null,e||function(){return 1},1)}))},wm=Yy.every;Ro({target:"Array",proto:!0,forced:!bm("every")},{every:function(t){return wm(this,t,arguments.length>1?arguments[1]:void 0)}});var xm=Ro,Sm=qn.indexOf,Em=bm,Am=rp([].indexOf),Rm=!!Am&&1/Am([1],1,-0)<0;xm({target:"Array",proto:!0,forced:Rm||!Em("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Rm?Am(this,t,e)||0:Sm(this,t,e)}}),Ro({target:"Array",stat:!0},{isArray:Po});var Om,Pm=qt,km=ue,jm=tt,Tm=Fn,Im=TypeError,_m="Reduce of empty array with no initial value",Nm={left:(Om=!1,function(t,e,r,n){var o=km(t),i=jm(o),a=Tm(o);if(Pm(e),0===a&&r<2)throw new Im(_m);var s=Om?a-1:0,u=Om?-1:1;if(r<2)for(;;){if(s in i){n=i[s],s+=u;break}if(s+=u,Om?s<0:a<=s)throw new Im(_m)}for(;Om?s>=0:a>s;s+=u)s in i&&(n=e(n,i[s],s,o));return n})},Cm=O,Um=vt,Lm=Y,Fm=function(t){return Um.slice(0,t.length)===t},Dm=Fm("Bun/")?"BUN":Fm("Cloudflare-Workers")?"CLOUDFLARE":Fm("Deno/")?"DENO":Fm("Node.js/")?"NODE":Cm.Bun&&"string"==typeof Bun.version?"BUN":Cm.Deno&&"object"==typeof Deno.version?"DENO":"process"===Lm(Cm.process)?"NODE":Cm.window&&Cm.document?"BROWSER":"REST",Bm=Nm.left;Ro({target:"Array",proto:!0,forced:!("NODE"===Dm)&&Rt>79&&Rt<83||!bm("reduce")},{reduce:function(t){var e=arguments.length;return Bm(this,t,e,e>1?arguments[1]:void 0)}});var Mm=Ro,qm=Po,Wm=ti,Gm=pt,zm=_n,Hm=Fn,$m=st,Vm=_o,Km=Re,Ym=ef,Jm=pi("slice"),Qm=Km("species"),Xm=Array,Zm=Math.max;Mm({target:"Array",proto:!0,forced:!Jm},{slice:function(t,e){var r,n,o,i=$m(this),a=Hm(i),s=zm(t,a),u=zm(void 0===e?a:e,a);if(qm(i)&&(r=i.constructor,(Wm(r)&&(r===Xm||qm(r.prototype))||Gm(r)&&null===(r=r[Qm]))&&(r=void 0),r===Xm||void 0===r))return Ym(i,s,u);for(n=new(void 0===r?Xm:r)(Zm(u-s,0)),o=0;s<u;s++,o++)s in i&&Vm(n,o,i[s]);return n.length=o,n}});var tg=O,eg=ct,rg=pt,ng=Vi,og=H(1..valueOf),ig=Ro,ag=j,sg=O,ug=tg,cg=H,lg=go,pg=pe,fg=function(t,e,r){var n,o;return ng&&eg(n=e.constructor)&&n!==r&&rg(o=n.prototype)&&o!==r.prototype&&ng(t,o),t},hg=yt,dg=Ut,yg=Ne,mg=k,gg=An.f,vg=P.f,bg=Xe.f,wg=og,xg=lu.trim,Sg="Number",Eg=sg[Sg];ug[Sg];var Ag=Eg.prototype,Rg=sg.TypeError,Og=cg("".slice),Pg=cg("".charCodeAt),kg=function(t){var e,r,n,o,i,a,s,u,c=yg(t,"number");if(dg(c))throw new Rg("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=xg(c),43===(e=Pg(c,0))||45===e){if(88===(r=Pg(c,2))||120===r)return NaN}else if(48===e){switch(Pg(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=Og(c,2)).length,s=0;s<a;s++)if((u=Pg(i,s))<48||u>o)return NaN;return parseInt(i,n)}return+c},jg=lg(Sg,!Eg(" 0o1")||!Eg("0b1")||Eg("+0x1")),Tg=function(t){var e,r=arguments.length<1?0:Eg(function(t){var e=yg(t,"number");return"bigint"==typeof e?e:kg(e)}(t));return hg(Ag,e=this)&&mg((function(){wg(e)}))?fg(Object(r),this,Tg):r};Tg.prototype=Ag,jg&&(Ag.constructor=Tg),ig({global:!0,constructor:!0,wrap:!0,forced:jg},{Number:Tg});jg&&function(t,e){for(var r,n=ag?gg(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)pg(e,r=n[o])&&!pg(t,r)&&bg(t,r,vg(e,r))}(ug[Sg],Eg);var Ig=Sp;Ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==Ig},{assign:Ig});var _g=N,Ng=nr,Cg=et,Ug=Un,Lg=ru,Fg=ot,Dg=zt,Bg=Yc,Mg=ll;Vc("match",(function(t,e,r){return[function(e){var r=Fg(this),n=Cg(e)?void 0:Dg(e,t);return n?_g(n,e,r):new RegExp(e)[t](Lg(r))},function(t){var n=Ng(this),o=Lg(t),i=r(e,n,o);if(i.done)return i.value;if(!n.global)return Mg(n,o);var a=n.unicode;n.lastIndex=0;for(var s,u=[],c=0;null!==(s=Mg(n,o));){var l=Lg(s[0]);u[c]=l,""===l&&(n.lastIndex=Bg(o,Ug(n.lastIndex),a)),c++}return 0===c?null:u}]}));var qg=function(t){function e(t){var r;return a(this,e),(r=i(this,e,[t])).name="KintoneAbortSearchError",r.message=t,Object.setPrototypeOf(r,e.prototype),r}return p(e,t),u(e)}(x(Error)),Wg=Yy.forEach,Gg=bm("forEach")?[].forEach:function(t){return Wg(this,t,arguments.length>1?arguments[1]:void 0)};Ro({target:"Array",proto:!0,forced:[].forEach!==Gg},{forEach:Gg});var zg=ue,Hg=na;Ro({target:"Object",stat:!0,forced:k((function(){Hg(1)}))},{keys:function(t){return Hg(zg(t))}});var $g=O,Vg=Ll,Kg=Bl,Yg=Gg,Jg=gr,Qg=function(t){if(t&&t.forEach!==Yg)try{Jg(t,"forEach",Yg)}catch(e){t.forEach=Yg}};for(var Xg in Vg)Vg[Xg]&&Qg($g[Xg]&&$g[Xg].prototype);Qg(Kg);var Zg=function(t){function e(t,r,n,o,s){var u;a(this,e);var c=n-r.length,l=e.extractErrorIndex(c,o,s),p=e.buildErrorMessage(c,n,l);return(u=i(this,e,[p])).name="KintoneAllRecordsError",u.processedRecordsResult=t,u.unprocessedRecords=r,u.error=o,u.errorIndex=l,u.message=p,u.numOfProcessedRecords=c,u.numOfAllRecords=n,Object.setPrototypeOf(u,e.prototype),u}return p(e,t),u(e,null,[{key:"parseErrorIndex",value:function(t){var e=[];return Object.keys(t).forEach((function(t){var r=t.match(/records\[(\d+)\]/);r&&e.push(Number(r[1]))})),e.length>0?Math.min.apply(Math,e):null}},{key:"extractErrorIndex",value:function(t,r,n){if(void 0!==r.bulkRequestIndex&&r.errors){var o=e.parseErrorIndex(r.errors);if(null!==o)return t+r.bulkRequestIndex*n+o}}},{key:"buildErrorMessage",value:function(t,e,r){var n="";return void 0!==r&&(n="An error occurred at records[".concat(r,"]. ")),n+="".concat(t,"/").concat(e," records are processed successfully")}}])}(x(Error)),tv=function(t){function e(t){var r;a(this,e);var n=e.buildErrorResponseDateWithIndex(t),o=n.data,s=n.bulkRequestIndex;return(r=i(this,e,[o.message])).name="KintoneRestAPIError",r.id=o.id,r.code=o.code,r.errors=o.errors,r.status=t.status,r.bulkRequestIndex=s,r.headers=t.headers,r.message="[".concat(t.status,"] [").concat(r.code,"] ").concat(r.message," (").concat(r.id,")"),Error.captureStackTrace&&Error.captureStackTrace(r,e),Object.setPrototypeOf(r,e.prototype),r}return p(e,t),u(e,null,[{key:"findErrorResponseDataWithIndex",value:function(t){for(var e=0;e<t.length;e++){if(0!==Object.keys(t[e]).length)return{data:t[e],bulkRequestIndex:e}}throw Error("Missing response data in `results`. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.")}},{key:"buildErrorResponseDateWithIndex",value:function(t){return"results"in t.data?e.findErrorResponseDataWithIndex(t.data.results):{data:t.data}}}])}(x(Error)),ev=["condition","orderBy","withCursor"],rv=["fields","condition"],nv=["condition","orderBy"],ov=500,iv=function(t){function e(t,r,n){var o;return a(this,e),(o=i(this,e,[t,n])).bulkRequestClient=r,o.didWarnMaximumOffsetValue=!1,o}return p(e,t),u(e,[{key:"getRecord",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.get(e,t)}},{key:"addRecord",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.post(e,t)}},{key:"updateRecord",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.put(e,t)}},{key:"upsertRecord",value:(O=o(m().mark((function t(e){var r,n,o,i,a,s,u;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.app,n=e.updateKey,o=e.record,t.next=3,this.getRecords({app:r,query:"".concat(n.field,' = "').concat(n.value,'"')});case 3:if(i=t.sent,!((a=i.records).length>0)){t.next=13;break}if("__ID__"!==a[0].$id.type){t.next=12;break}return t.next=9,this.updateRecord(e);case 9:return s=t.sent,u=s.revision,t.abrupt("return",{id:a[0].$id.value,revision:u});case 12:throw new Error("Missing `$id` in `getRecords` response. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.");case 13:return t.abrupt("return",this.addRecord({app:r,record:Object.assign({},o,c({},n.field,{value:n.value}))}));case 14:case"end":return t.stop()}}),t,this)}))),function(t){return O.apply(this,arguments)})},{key:"getRecords",value:(R=o(m().mark((function t(e){var r,n;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),t.next=3,this.client.get(r,e);case 3:return n=t.sent,this.warnMaximumOffsetValueIfNeeded(e.query),t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)}))),function(t){return R.apply(this,arguments)})},{key:"warnMaximumOffsetValueIfNeeded",value:function(t){if(t){var e=t.match(/offset\s+(\d+)/i);!this.didWarnMaximumOffsetValue&&e&&Number(e[1])>1e4&&(this.didWarnMaximumOffsetValue=!0,console.warn("Warning: The maximum offset value will be limited to 10,000 in the future. Please use `createCursor()` and `getRecordsByCursor()` instead."))}}},{key:"addRecords",value:(A=o(m().mark((function t(e){var r,n,o,i;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),t.next=3,this.client.post(r,e);case 3:return n=t.sent,o=n.ids,i=n.revisions,t.abrupt("return",{ids:o,revisions:i,records:o.map((function(t,e){return{id:t,revision:i[e]}}))});case 7:case"end":return t.stop()}}),t,this)}))),function(t){return A.apply(this,arguments)})},{key:"updateRecords",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.put(e,t)}},{key:"deleteRecords",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.delete(e,t)}},{key:"createCursor",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.post(e,t)}},{key:"getRecordsByCursor",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.get(e,t)}},{key:"deleteCursor",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.delete(e,t)}},{key:"getAllRecords",value:(E=o(m().mark((function t(e){var r,n,o,i,a,s,u;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.condition,n=e.orderBy,o=e.withCursor,i=void 0===o||o,a=y(e,ev),n){t.next=3;break}return t.abrupt("return",this.getAllRecordsWithId(d(d({},a),{},{condition:r})));case 3:if(!i){t.next=7;break}return s=r?"".concat(r," "):"",u="".concat(s).concat(n?"order by ".concat(n):""),t.abrupt("return",this.getAllRecordsWithCursor(d(d({},a),{},{query:u})));case 7:return t.abrupt("return",this.getAllRecordsWithOffset(d(d({},a),{},{orderBy:n,condition:r})));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return E.apply(this,arguments)})},{key:"getAllRecordsWithId",value:(S=o(m().mark((function t(e){var r,n,o,i,a,s,u,c,l,p;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.fields,n=e.condition,o=y(e,rv),(i=r)&&i.length>0&&-1===i.indexOf("$id")&&(i=[].concat(v(i),["$id"])),a=n?"(".concat(n,") and "):"",s=[],u="0";case 6:return c="".concat(a,"$id > ").concat(u," order by $id asc limit ").concat(ov),t.next=10,this.getRecords(d(d({},o),{},{fields:i,query:c}));case 10:if(l=t.sent,s=s.concat(l.records),!(l.records.length<ov)){t.next=14;break}return t.abrupt("break",22);case 14:if("__ID__"!==(p=l.records[l.records.length-1]).$id.type){t.next=19;break}u=p.$id.value,t.next=20;break;case 19:throw new Error("Missing `$id` in `getRecords` response. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.");case 20:t.next=6;break;case 22:return t.abrupt("return",s);case 23:case"end":return t.stop()}}),t,this)}))),function(t){return S.apply(this,arguments)})},{key:"getAllRecordsWithOffset",value:(x=o(m().mark((function t(e){var r,n,o,i,a,s,u,c;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.condition,n=e.orderBy,o=y(e,nv),i=r?"".concat(r," "):"",a=[],s=0;case 4:return u="".concat(i).concat(n?"order by ".concat(n," "):"","limit ").concat(ov," offset ").concat(s),t.next=8,this.getRecords(d(d({},o),{},{query:u}));case 8:if(c=t.sent,a=a.concat(c.records),!(c.records.length<ov)){t.next=12;break}return t.abrupt("break",15);case 12:s+=ov,t.next=4;break;case 15:return t.abrupt("return",a);case 16:case"end":return t.stop()}}),t,this)}))),function(t){return x.apply(this,arguments)})},{key:"getAllRecordsWithCursor",value:(w=o(m().mark((function t(e){var r,n,o,i;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.createCursor(e);case 2:r=t.sent,n=r.id,t.prev=4,o=[];case 6:return t.next=9,this.getRecordsByCursor({id:n});case 9:if(i=t.sent,o=o.concat(i.records),i.next){t.next=13;break}return t.abrupt("break",15);case 13:t.next=6;break;case 15:return t.abrupt("return",o);case 18:return t.prev=18,t.t0=t.catch(4),t.next=22,this.deleteCursor({id:n});case 22:throw t.t0;case 23:case"end":return t.stop()}}),t,this,[[4,18]])}))),function(t){return w.apply(this,arguments)})},{key:"addAllRecords",value:(b=o(m().mark((function t(e){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.records.every((function(t){return!Array.isArray(t)&&t instanceof Object}))){t.next=2;break}throw new Error("the `records` parameter must be an array of object.");case 2:return t.abrupt("return",this.addAllRecordsRecursive(e,e.records.length,[]));case 3:case"end":return t.stop()}}),t,this)}))),function(t){return b.apply(this,arguments)})},{key:"addAllRecordsRecursive",value:(g=o(m().mark((function t(e,r,n){var o,i,a,s,u;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,i=e.app,a=e.records,0!==(s=a.slice(0,o)).length){t.next=5;break}return t.abrupt("return",{records:n});case 5:return t.prev=5,t.next=8,this.addAllRecordsWithBulkRequest({app:i,records:s});case 8:u=t.sent,t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(5),new Zg({records:n},a,r,t.t0,100);case 14:return t.abrupt("return",this.addAllRecordsRecursive({app:i,records:a.slice(o)},r,n.concat(u)));case 15:case"end":return t.stop()}}),t,this,[[5,11]])}))),function(t,e,r){return g.apply(this,arguments)})},{key:"addAllRecordsWithBulkRequest",value:(h=o(m().mark((function t(e){var r,n,o;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.separateArrayRecursive(100,[],e.records),n=r.map((function(t){return{method:"POST",endpointName:"records",payload:{app:e.app,records:t}}})),t.next=4,this.bulkRequestClient.send({requests:n});case 4:return o=t.sent.results,t.abrupt("return",o.map((function(t){var e=t.ids,r=t.revisions;return e.map((function(t,e){return{id:t,revision:r[e]}}))})).reduce((function(t,e){return t.concat(e)}),[]));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return h.apply(this,arguments)})},{key:"updateAllRecords",value:(f=o(m().mark((function t(e){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.updateAllRecordsRecursive(e,e.records.length,[]));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"updateAllRecordsRecursive",value:(l=o(m().mark((function t(e,r,n){var o,i,a,s,u,c;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,i=e.app,a=e.upsert,s=e.records,0!==(u=s.slice(0,o)).length){t.next=5;break}return t.abrupt("return",{records:n});case 5:return t.prev=5,t.next=8,this.updateAllRecordsWithBulkRequest({app:i,upsert:a,records:u});case 8:c=t.sent,t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(5),new Zg({records:n},s,r,t.t0,100);case 14:return t.abrupt("return",this.updateAllRecordsRecursive({app:i,upsert:a,records:s.slice(o)},r,n.concat(c)));case 15:case"end":return t.stop()}}),t,this,[[5,11]])}))),function(t,e,r){return l.apply(this,arguments)})},{key:"updateAllRecordsWithBulkRequest",value:(s=o(m().mark((function t(e){var r,n,o;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.separateArrayRecursive(100,[],e.records),n=r.map((function(t){return{method:"PUT",endpointName:"records",payload:{app:e.app,upsert:e.upsert,records:t}}})),t.next=4,this.bulkRequestClient.send({requests:n});case 4:return o=t.sent.results,t.abrupt("return",o.map((function(t){return t.records})).reduce((function(t,e){return t.concat(e)}),[]));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"deleteAllRecords",value:function(t){return this.deleteAllRecordsRecursive(t,t.records.length)}},{key:"deleteAllRecordsRecursive",value:(n=o(m().mark((function t(e,r){var n,o,i,a;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,o=e.app,i=e.records,0!==(a=i.slice(0,n)).length){t.next=5;break}return t.abrupt("return",{});case 5:return t.prev=5,t.next=8,this.deleteAllRecordsWithBulkRequest({app:o,records:a});case 8:t.next=13;break;case 10:throw t.prev=10,t.t0=t.catch(5),new Zg({},i,r,t.t0,100);case 13:return t.abrupt("return",this.deleteAllRecordsRecursive({app:o,records:i.slice(n)},r));case 14:case"end":return t.stop()}}),t,this,[[5,10]])}))),function(t,e){return n.apply(this,arguments)})},{key:"deleteAllRecordsWithBulkRequest",value:(r=o(m().mark((function t(e){var r,n;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.separateArrayRecursive(100,[],e.records),n=r.map((function(t){return{method:"DELETE",endpointName:"records",payload:{app:e.app,ids:t.map((function(t){return t.id})),revisions:t.map((function(t){return t.revision}))}}})),t.next=4,this.bulkRequestClient.send({requests:n});case 4:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"separateArrayRecursive",value:function(t,e,r){var n=r.slice(0,t);return 0===n.length?e:this.separateArrayRecursive(t,[].concat(v(e),[n]),r.slice(t))}},{key:"addRecordComment",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.post(e,t)}},{key:"deleteRecordComment",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.delete(e,t)}},{key:"getRecordComments",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/comments"});return this.client.get(e,t)}},{key:"updateRecordAssignees",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/assignees"});return this.client.put(e,t)}},{key:"updateRecordStatus",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"record/status"});return this.client.put(e,t)}},{key:"updateRecordsStatus",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"records/status"});return this.client.put(e,t)}}]);var r,n,s,l,f,h,g,b,w,x,S,E,A,R,O}(Xy),av=function(t){function e(){return a(this,e),i(this,e,arguments)}return p(e,t),u(e,[{key:"getSpace",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"space"});return this.client.get(e,t)}},{key:"updateSpace",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"space"});return this.client.put(e,t)}},{key:"deleteSpace",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"space"});return this.client.delete(e,t)}},{key:"updateSpaceBody",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"space/body"});return this.client.put(e,t)}},{key:"getSpaceMembers",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"space/members"});return this.client.get(e,t)}},{key:"updateSpaceMembers",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"space/members"});return this.client.put(e,t)}},{key:"addThread",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"space/thread"});return this.client.post(e,t)}},{key:"updateThread",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"space/thread"});return this.client.put(e,t)}},{key:"addThreadComment",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"space/thread/comment"});return this.client.post(e,t)}},{key:"addGuests",value:function(t){var e=this.buildPath({endpointName:"guests"});return this.client.post(e,t)}},{key:"deleteGuests",value:function(t){var e=this.buildPath({endpointName:"guests"});return this.client.delete(e,t)}},{key:"updateSpaceGuests",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"space/guests"});return this.client.put(e,t)}},{key:"addSpaceFromTemplate",value:function(t){var e=this.buildPath({endpointName:"template/space"});return this.client.post(e,t)}}])}(Xy),sv=E("object"==typeof self?self.FormData:window.FormData),uv=function(t){function r(){return a(this,r),i(this,r,arguments)}return p(r,t),u(r,[{key:"uploadFile",value:(n=o(m().mark((function t(r){var n,o,i,a,s,u,c,l,p;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.buildPathWithGuestSpaceId({endpointName:"file"}),o=new sv,!("path"in r.file)){t.next=19;break}return t.prev=3,t.next=6,e.readFileFromPath(r.file.path);case 6:i=t.sent,a=i.name,s=i.data,o.append("file",s,a),t.next=17;break;case 12:if(t.prev=12,t.t0=t.catch(3),!(t.t0 instanceof Ki)){t.next=16;break}throw new Error("uploadFile doesn't allow to accept a file path in ".concat(t.t0.platform," environment."));case 16:throw t.t0;case 17:t.next=22;break;case 19:u=r.file,c=u.name,l=u.data,p=e.buildFormDataValue(l,c),o.append("file",p,c);case 22:return t.abrupt("return",this.client.postData(n,o));case 23:case"end":return t.stop()}}),t,this,[[3,12]])}))),function(t){return n.apply(this,arguments)})},{key:"downloadFile",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"file"});return this.client.getData(e,t)}}]);var n}(Xy),cv=function(t){function e(){return a(this,e),i(this,e,arguments)}return p(e,t),u(e,[{key:"getPlugins",value:function(t){var e=this.buildPath({endpointName:"plugins"});return this.client.get(e,t)}},{key:"getRequiredPlugins",value:function(t){var e=this.buildPath({endpointName:"plugins/required"});return this.client.get(e,t)}},{key:"getApps",value:function(t){var e=this.buildPath({endpointName:"plugin/apps"});return this.client.get(e,t)}},{key:"updatePlugin",value:function(t){var e=this.buildPath({endpointName:"plugin"});return this.client.put(e,t)}},{key:"installPlugin",value:function(t){var e=this.buildPath({endpointName:"plugin"});return this.client.post(e,t)}},{key:"uninstallPlugin",value:function(t){var e=this.buildPath({endpointName:"plugin"});return this.client.delete(e,t)}}])}(Xy),lv="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function pv(){throw new Error("setTimeout has not been defined")}function fv(){throw new Error("clearTimeout has not been defined")}var hv=pv,dv=fv;function yv(t){if(hv===setTimeout)return setTimeout(t,0);if((hv===pv||!hv)&&setTimeout)return hv=setTimeout,setTimeout(t,0);try{return hv(t,0)}catch(e){try{return hv.call(null,t,0)}catch(e){return hv.call(this,t,0)}}}"function"==typeof lv.setTimeout&&(hv=setTimeout),"function"==typeof lv.clearTimeout&&(dv=clearTimeout);var mv,gv=[],vv=!1,bv=-1;function wv(){vv&&mv&&(vv=!1,mv.length?gv=mv.concat(gv):bv=-1,gv.length&&xv())}function xv(){if(!vv){var t=yv(wv);vv=!0;for(var e=gv.length;e;){for(mv=gv,gv=[];++bv<e;)mv&&mv[bv].run();bv=-1,e=gv.length}mv=null,vv=!1,function(t){if(dv===clearTimeout)return clearTimeout(t);if((dv===fv||!dv)&&clearTimeout)return dv=clearTimeout,clearTimeout(t);try{return dv(t)}catch(e){try{return dv.call(null,t)}catch(e){return dv.call(this,t)}}}(t)}}function Sv(t,e){this.fun=t,this.array=e}Sv.prototype.run=function(){this.fun.apply(null,this.array)};var Ev=lv.performance||{};Ev.now||Ev.mozNow||Ev.msNow||Ev.oNow||Ev.webkitNow;function Av(t,e){return function(){return t.apply(e,arguments)}}const{toString:Rv}=Object.prototype,{getPrototypeOf:Ov}=Object,Pv=(kv=Object.create(null),t=>{const e=Rv.call(t);return kv[e]||(kv[e]=e.slice(8,-1).toLowerCase())});var kv;const jv=t=>(t=t.toLowerCase(),e=>Pv(e)===t),Tv=t=>e=>typeof e===t,{isArray:Iv}=Array,_v=Tv("undefined");const Nv=jv("ArrayBuffer");const Cv=Tv("string"),Uv=Tv("function"),Lv=Tv("number"),Fv=t=>null!==t&&"object"==typeof t,Dv=t=>{if("object"!==Pv(t))return!1;const e=Ov(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},Bv=jv("Date"),Mv=jv("File"),qv=jv("Blob"),Wv=jv("FileList"),Gv=jv("URLSearchParams"),[zv,Hv,$v,Vv]=["ReadableStream","Request","Response","Headers"].map(jv);function Kv(t,e){let r,n,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=t)if("object"!=typeof t&&(t=[t]),Iv(t))for(r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else{const n=o?Object.getOwnPropertyNames(t):Object.keys(t),i=n.length;let a;for(r=0;r<i;r++)a=n[r],e.call(null,t[a],a,t)}}function Yv(t,e){e=e.toLowerCase();const r=Object.keys(t);let n,o=r.length;for(;o-- >0;)if(n=r[o],e===n.toLowerCase())return n;return null}const Jv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:lv,Qv=t=>!_v(t)&&t!==Jv;const Xv=(t=>e=>t&&e instanceof t)("undefined"!=typeof Uint8Array&&Ov(Uint8Array)),Zv=jv("HTMLFormElement"),tb=(t=>{let{hasOwnProperty:e}=t;return(t,r)=>e.call(t,r)})(Object.prototype),eb=jv("RegExp"),rb=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};Kv(r,((r,o)=>{let i;!1!==(i=e(r,o,t))&&(n[o]=i||r)})),Object.defineProperties(t,n)};const nb=jv("AsyncFunction"),ob=(ib="function"==typeof setImmediate,ab=Uv(Jv.postMessage),ib?setImmediate:ab?(sb=`axios@${Math.random()}`,ub=[],Jv.addEventListener("message",(t=>{let{source:e,data:r}=t;e===Jv&&r===sb&&ub.length&&ub.shift()()}),!1),t=>{ub.push(t),Jv.postMessage(sb,"*")}):t=>setTimeout(t));var ib,ab,sb,ub;const cb="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Jv):function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];gv.push(new Sv(t,e)),1!==gv.length||vv||yv(xv)}||ob;var lb={isArray:Iv,isArrayBuffer:Nv,isBuffer:function(t){return null!==t&&!_v(t)&&null!==t.constructor&&!_v(t.constructor)&&Uv(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||Uv(t.append)&&("formdata"===(e=Pv(t))||"object"===e&&Uv(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&Nv(t.buffer),e},isString:Cv,isNumber:Lv,isBoolean:t=>!0===t||!1===t,isObject:Fv,isPlainObject:Dv,isReadableStream:zv,isRequest:Hv,isResponse:$v,isHeaders:Vv,isUndefined:_v,isDate:Bv,isFile:Mv,isBlob:qv,isRegExp:eb,isFunction:Uv,isStream:t=>Fv(t)&&Uv(t.pipe),isURLSearchParams:Gv,isTypedArray:Xv,isFileList:Wv,forEach:Kv,merge:function t(){const{caseless:e}=Qv(this)&&this||{},r={},n=(n,o)=>{const i=e&&Yv(r,o)||o;Dv(r[i])&&Dv(n)?r[i]=t(r[i],n):Dv(n)?r[i]=t({},n):Iv(n)?r[i]=n.slice():r[i]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&Kv(arguments[t],n);return r},extend:function(t,e,r){let{allOwnKeys:n}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Kv(e,((e,n)=>{r&&Uv(e)?t[n]=Av(e,r):t[n]=e}),{allOwnKeys:n}),t},trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let o,i,a;const s={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)a=o[i],n&&!n(a,t,e)||s[a]||(e[a]=t[a],s[a]=!0);t=!1!==r&&Ov(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:Pv,kindOfTest:jv,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},toArray:t=>{if(!t)return null;if(Iv(t))return t;let e=t.length;if(!Lv(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let n;for(;(n=r.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:Zv,hasOwnProperty:tb,hasOwnProp:tb,reduceDescriptors:rb,freezeMethods:t=>{rb(t,((e,r)=>{if(Uv(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];Uv(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(t,e)=>{const r={},n=t=>{t.forEach((t=>{r[t]=!0}))};return Iv(t)?n(t):n(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:Yv,global:Jv,isContextDefined:Qv,isSpecCompliantForm:function(t){return!!(t&&Uv(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(Fv(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const o=Iv(t)?[]:{};return Kv(t,((t,e)=>{const i=r(t,n+1);!_v(i)&&(o[e]=i)})),e[n]=void 0,o}}return t};return r(t,0)},isAsyncFn:nb,isThenable:t=>t&&(Fv(t)||Uv(t))&&Uv(t.then)&&Uv(t.catch),setImmediate:ob,asap:cb},pb=[],fb=[],hb="undefined"!=typeof Uint8Array?Uint8Array:Array,db=!1;function yb(){db=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0;e<64;++e)pb[e]=t[e],fb[t.charCodeAt(e)]=e;fb["-".charCodeAt(0)]=62,fb["_".charCodeAt(0)]=63}function mb(t,e,r){for(var n,o,i=[],a=e;a<r;a+=3)n=(t[a]<<16)+(t[a+1]<<8)+t[a+2],i.push(pb[(o=n)>>18&63]+pb[o>>12&63]+pb[o>>6&63]+pb[63&o]);return i.join("")}function gb(t){var e;db||yb();for(var r=t.length,n=r%3,o="",i=[],a=16383,s=0,u=r-n;s<u;s+=a)i.push(mb(t,s,s+a>u?u:s+a));return 1===n?(e=t[r-1],o+=pb[e>>2],o+=pb[e<<4&63],o+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],o+=pb[e>>10],o+=pb[e>>4&63],o+=pb[e<<2&63],o+="="),i.push(o),i.join("")}function vb(t,e,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,c=u>>1,l=-7,p=r?o-1:0,f=r?-1:1,h=t[e+p];for(p+=f,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+t[e+p],p+=f,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+t[e+p],p+=f,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)}function bb(t,e,r,n,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,p=l>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(a++,u/=2),a+p>=l?(s=0,a=l):a+p>=1?(s=(e*u-1)*Math.pow(2,o),a+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;t[r+h]=255&s,h+=d,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;t[r+h]=255&a,h+=d,a/=256,c-=8);t[r+h-d]|=128*y}var wb={}.toString,xb=Array.isArray||function(t){return"[object Array]"==wb.call(t)};function Sb(){return Ab.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Eb(t,e){if(Sb()<e)throw new RangeError("Invalid typed array length");return Ab.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=Ab.prototype:(null===t&&(t=new Ab(e)),t.length=e),t}function Ab(t,e,r){if(!(Ab.TYPED_ARRAY_SUPPORT||this instanceof Ab))return new Ab(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return Pb(this,t)}return Rb(this,t,e,r)}function Rb(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);Ab.TYPED_ARRAY_SUPPORT?(t=e).__proto__=Ab.prototype:t=kb(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!Ab.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|Ib(e,r);t=Eb(t,n);var o=t.write(e,r);o!==n&&(t=t.slice(0,o));return t}(t,e,r):function(t,e){if(Tb(e)){var r=0|jb(e.length);return 0===(t=Eb(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?Eb(t,0):kb(t,e);if("Buffer"===e.type&&xb(e.data))return kb(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function Ob(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function Pb(t,e){if(Ob(e),t=Eb(t,e<0?0:0|jb(e)),!Ab.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function kb(t,e){var r=e.length<0?0:0|jb(e.length);t=Eb(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function jb(t){if(t>=Sb())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Sb().toString(16)+" bytes");return 0|t}function Tb(t){return!(null==t||!t._isBuffer)}function Ib(t,e){if(Tb(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return ow(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return iw(t).length;default:if(n)return ow(t).length;e=(""+e).toLowerCase(),n=!0}}function _b(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return Vb(this,e,r);case"utf8":case"utf-8":return Gb(this,e,r);case"ascii":return Hb(this,e,r);case"latin1":case"binary":return $b(this,e,r);case"base64":return Wb(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kb(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function Nb(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function Cb(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=Ab.from(e,n)),Tb(e))return 0===e.length?-1:Ub(t,e,r,n,o);if("number"==typeof e)return e&=255,Ab.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Ub(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function Ub(t,e,r,n,o){var i,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var l=-1;for(i=r;i<s;i++)if(c(t,i)===c(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var p=!0,f=0;f<u;f++)if(c(t,i+f)!==c(e,f)){p=!1;break}if(p)return i}return-1}function Lb(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function Fb(t,e,r,n){return aw(ow(e,t.length-r),t,r,n)}function Db(t,e,r,n){return aw(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function Bb(t,e,r,n){return Db(t,e,r,n)}function Mb(t,e,r,n){return aw(iw(e),t,r,n)}function qb(t,e,r,n){return aw(function(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(r=t.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function Wb(t,e,r){return 0===e&&r===t.length?gb(t):gb(t.slice(e,r))}function Gb(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,a,s,u,c=t[o],l=null,p=c>239?4:c>223?3:c>191?2:1;if(o+p<=r)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(i=t[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,p=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=p}return function(t){var e=t.length;if(e<=zb)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=zb));return r}(n)}Ab.TYPED_ARRAY_SUPPORT=void 0===lv.TYPED_ARRAY_SUPPORT||lv.TYPED_ARRAY_SUPPORT,Sb(),Ab.poolSize=8192,Ab._augment=function(t){return t.__proto__=Ab.prototype,t},Ab.from=function(t,e,r){return Rb(null,t,e,r)},Ab.TYPED_ARRAY_SUPPORT&&(Ab.prototype.__proto__=Uint8Array.prototype,Ab.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Ab[Symbol.species]),Ab.alloc=function(t,e,r){return function(t,e,r,n){return Ob(e),e<=0?Eb(t,e):void 0!==r?"string"==typeof n?Eb(t,e).fill(r,n):Eb(t,e).fill(r):Eb(t,e)}(null,t,e,r)},Ab.allocUnsafe=function(t){return Pb(null,t)},Ab.allocUnsafeSlow=function(t){return Pb(null,t)},Ab.isBuffer=function(t){return null!=t&&(!!t._isBuffer||sw(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&sw(t.slice(0,0))}(t))},Ab.compare=function(t,e){if(!Tb(t)||!Tb(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},Ab.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Ab.concat=function(t,e){if(!xb(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return Ab.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=Ab.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var i=t[r];if(!Tb(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},Ab.byteLength=Ib,Ab.prototype._isBuffer=!0,Ab.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)Nb(this,e,e+1);return this},Ab.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)Nb(this,e,e+3),Nb(this,e+1,e+2);return this},Ab.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)Nb(this,e,e+7),Nb(this,e+1,e+6),Nb(this,e+2,e+5),Nb(this,e+3,e+4);return this},Ab.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?Gb(this,0,t):_b.apply(this,arguments)},Ab.prototype.equals=function(t){if(!Tb(t))throw new TypeError("Argument must be a Buffer");return this===t||0===Ab.compare(this,t)},Ab.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},Ab.prototype.compare=function(t,e,r,n,o){if(!Tb(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(i,a),u=this.slice(n,o),c=t.slice(e,r),l=0;l<s;++l)if(u[l]!==c[l]){i=u[l],a=c[l];break}return i<a?-1:a<i?1:0},Ab.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},Ab.prototype.indexOf=function(t,e,r){return Cb(this,t,e,r,!0)},Ab.prototype.lastIndexOf=function(t,e,r){return Cb(this,t,e,r,!1)},Ab.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return Lb(this,t,e,r);case"utf8":case"utf-8":return Fb(this,t,e,r);case"ascii":return Db(this,t,e,r);case"latin1":case"binary":return Bb(this,t,e,r);case"base64":return Mb(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qb(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},Ab.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var zb=4096;function Hb(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function $b(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function Vb(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=nw(t[i]);return o}function Kb(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function Yb(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function Jb(t,e,r,n,o,i){if(!Tb(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function Qb(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o<i;++o)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function Xb(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o<i;++o)t[r+o]=e>>>8*(n?o:3-o)&255}function Zb(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function tw(t,e,r,n,o){return o||Zb(t,0,r,4),bb(t,e,r,n,23,4),r+4}function ew(t,e,r,n,o){return o||Zb(t,0,r,8),bb(t,e,r,n,52,8),r+8}Ab.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),Ab.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=Ab.prototype;else{var o=e-t;r=new Ab(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},Ab.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||Yb(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},Ab.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||Yb(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},Ab.prototype.readUInt8=function(t,e){return e||Yb(t,1,this.length),this[t]},Ab.prototype.readUInt16LE=function(t,e){return e||Yb(t,2,this.length),this[t]|this[t+1]<<8},Ab.prototype.readUInt16BE=function(t,e){return e||Yb(t,2,this.length),this[t]<<8|this[t+1]},Ab.prototype.readUInt32LE=function(t,e){return e||Yb(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Ab.prototype.readUInt32BE=function(t,e){return e||Yb(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Ab.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||Yb(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},Ab.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||Yb(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},Ab.prototype.readInt8=function(t,e){return e||Yb(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Ab.prototype.readInt16LE=function(t,e){e||Yb(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},Ab.prototype.readInt16BE=function(t,e){e||Yb(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},Ab.prototype.readInt32LE=function(t,e){return e||Yb(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Ab.prototype.readInt32BE=function(t,e){return e||Yb(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Ab.prototype.readFloatLE=function(t,e){return e||Yb(t,4,this.length),vb(this,t,!0,23,4)},Ab.prototype.readFloatBE=function(t,e){return e||Yb(t,4,this.length),vb(this,t,!1,23,4)},Ab.prototype.readDoubleLE=function(t,e){return e||Yb(t,8,this.length),vb(this,t,!0,52,8)},Ab.prototype.readDoubleBE=function(t,e){return e||Yb(t,8,this.length),vb(this,t,!1,52,8)},Ab.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||Jb(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},Ab.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||Jb(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},Ab.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||Jb(this,t,e,1,255,0),Ab.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},Ab.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||Jb(this,t,e,2,65535,0),Ab.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Qb(this,t,e,!0),e+2},Ab.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||Jb(this,t,e,2,65535,0),Ab.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Qb(this,t,e,!1),e+2},Ab.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||Jb(this,t,e,4,4294967295,0),Ab.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):Xb(this,t,e,!0),e+4},Ab.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||Jb(this,t,e,4,4294967295,0),Ab.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Xb(this,t,e,!1),e+4},Ab.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);Jb(this,t,e,r,o-1,-o)}var i=0,a=1,s=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/a|0)-s&255;return e+r},Ab.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);Jb(this,t,e,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a|0)-s&255;return e+r},Ab.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||Jb(this,t,e,1,127,-128),Ab.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},Ab.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||Jb(this,t,e,2,32767,-32768),Ab.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Qb(this,t,e,!0),e+2},Ab.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||Jb(this,t,e,2,32767,-32768),Ab.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Qb(this,t,e,!1),e+2},Ab.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||Jb(this,t,e,4,2147483647,-2147483648),Ab.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Xb(this,t,e,!0),e+4},Ab.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||Jb(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Ab.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Xb(this,t,e,!1),e+4},Ab.prototype.writeFloatLE=function(t,e,r){return tw(this,t,e,!0,r)},Ab.prototype.writeFloatBE=function(t,e,r){return tw(this,t,e,!1,r)},Ab.prototype.writeDoubleLE=function(t,e,r){return ew(this,t,e,!0,r)},Ab.prototype.writeDoubleBE=function(t,e,r){return ew(this,t,e,!1,r)},Ab.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o,i=n-r;if(this===t&&r<e&&e<n)for(o=i-1;o>=0;--o)t[o+e]=this[o+r];else if(i<1e3||!Ab.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+i),e);return i},Ab.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!Ab.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var a=Tb(t)?t:ow(new Ab(t,n).toString()),s=a.length;for(i=0;i<r-e;++i)this[i+e]=a[i%s]}return this};var rw=/[^+\/0-9A-Za-z-_]/g;function nw(t){return t<16?"0"+t.toString(16):t.toString(16)}function ow(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function iw(t){return function(t){var e,r,n,o,i,a;db||yb();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===t[s-2]?2:"="===t[s-1]?1:0,a=new hb(3*s/4-i),n=i>0?s-4:s;var u=0;for(e=0,r=0;e<n;e+=4,r+=3)o=fb[t.charCodeAt(e)]<<18|fb[t.charCodeAt(e+1)]<<12|fb[t.charCodeAt(e+2)]<<6|fb[t.charCodeAt(e+3)],a[u++]=o>>16&255,a[u++]=o>>8&255,a[u++]=255&o;return 2===i?(o=fb[t.charCodeAt(e)]<<2|fb[t.charCodeAt(e+1)]>>4,a[u++]=255&o):1===i&&(o=fb[t.charCodeAt(e)]<<10|fb[t.charCodeAt(e+1)]<<4|fb[t.charCodeAt(e+2)]>>2,a[u++]=o>>8&255,a[u++]=255&o),a}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(rw,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function aw(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function sw(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function uw(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}lb.inherits(uw,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:lb.toJSONObject(this.config),code:this.code,status:this.status}}});const cw=uw.prototype,lw={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{lw[t]={value:t}})),Object.defineProperties(uw,lw),Object.defineProperty(cw,"isAxiosError",{value:!0}),uw.from=(t,e,r,n,o,i)=>{const a=Object.create(cw);return lb.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),uw.call(a,t.message,e,r,n,o),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};function pw(t){return lb.isPlainObject(t)||lb.isArray(t)}function fw(t){return lb.endsWith(t,"[]")?t.slice(0,-2):t}function hw(t,e,r){return t?t.concat(e).map((function(t,e){return t=fw(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}const dw=lb.toFlatObject(lb,{},null,(function(t){return/^is[A-Z]/.test(t)}));function yw(t,e,r){if(!lb.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(r=lb.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!lb.isUndefined(e[t])}))).metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&lb.isSpecCompliantForm(e);if(!lb.isFunction(o))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(lb.isDate(t))return t.toISOString();if(!s&&lb.isBlob(t))throw new uw("Blob is not supported. Use a Buffer instead.");return lb.isArrayBuffer(t)||lb.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Ab.from(t):t}function c(t,r,o){let s=t;if(t&&!o&&"object"==typeof t)if(lb.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(lb.isArray(t)&&function(t){return lb.isArray(t)&&!t.some(pw)}(t)||(lb.isFileList(t)||lb.endsWith(r,"[]"))&&(s=lb.toArray(t)))return r=fw(r),s.forEach((function(t,n){!lb.isUndefined(t)&&null!==t&&e.append(!0===a?hw([r],n,i):null===a?r:r+"[]",u(t))})),!1;return!!pw(t)||(e.append(hw(o,r,i),u(t)),!1)}const l=[],p=Object.assign(dw,{defaultVisitor:c,convertValue:u,isVisitable:pw});if(!lb.isObject(t))throw new TypeError("data must be an object");return function t(r,n){if(!lb.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),lb.forEach(r,(function(r,i){!0===(!(lb.isUndefined(r)||null===r)&&o.call(e,r,lb.isString(i)?i.trim():i,n,p))&&t(r,n?n.concat(i):[i])})),l.pop()}}(t),e}function mw(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function gw(t,e){this._pairs=[],t&&yw(t,this,e)}const vw=gw.prototype;function bw(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ww(t,e,r){if(!e)return t;const n=r&&r.encode||bw;lb.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(e,r):lb.isURLSearchParams(e)?e.toString():new gw(e,r).toString(n),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}vw.append=function(t,e){this._pairs.push([t,e])},vw.toString=function(t){const e=t?function(e){return t.call(this,e,mw)}:mw;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};class xw{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){lb.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}var Sw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ew={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:gw,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Aw="undefined"!=typeof window&&"undefined"!=typeof document,Rw="object"==typeof navigator&&navigator||void 0,Ow=Aw&&(!Rw||["ReactNative","NativeScript","NS"].indexOf(Rw.product)<0),Pw="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,kw=Aw&&window.location.href||"http://localhost";var jw={...Object.freeze({__proto__:null,hasBrowserEnv:Aw,hasStandardBrowserEnv:Ow,hasStandardBrowserWebWorkerEnv:Pw,navigator:Rw,origin:kw}),...Ew};function Tw(t){function e(t,r,n,o){let i=t[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=t.length;if(i=!i&&lb.isArray(n)?n.length:i,s)return lb.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&lb.isObject(n[i])||(n[i]=[]);return e(t,r,n[i],o)&&lb.isArray(n[i])&&(n[i]=function(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],e[i]=t[i];return e}(n[i])),!a}if(lb.isFormData(t)&&lb.isFunction(t.entries)){const r={};return lb.forEachEntry(t,((t,n)=>{e(function(t){return lb.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),n,r,0)})),r}return null}const Iw={transitional:Sw,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,o=lb.isObject(t);o&&lb.isHTMLForm(t)&&(t=new FormData(t));if(lb.isFormData(t))return n?JSON.stringify(Tw(t)):t;if(lb.isArrayBuffer(t)||lb.isBuffer(t)||lb.isStream(t)||lb.isFile(t)||lb.isBlob(t)||lb.isReadableStream(t))return t;if(lb.isArrayBufferView(t))return t.buffer;if(lb.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return yw(t,new jw.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return jw.isNode&&lb.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=lb.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return yw(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||n?(e.setContentType("application/json",!1),function(t,e,r){if(lb.isString(t))try{return(e||JSON.parse)(t),lb.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Iw.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(lb.isResponse(t)||lb.isReadableStream(t))return t;if(t&&lb.isString(t)&&(r&&!this.responseType||n)){const r=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw uw.from(t,uw.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jw.classes.FormData,Blob:jw.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};lb.forEach(["delete","get","head","post","put","patch"],(t=>{Iw.headers[t]={}}));const _w=lb.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"]);const Nw=Symbol("internals");function Cw(t){return t&&String(t).trim().toLowerCase()}function Uw(t){return!1===t||null==t?t:lb.isArray(t)?t.map(Uw):String(t)}function Lw(t,e,r,n,o){return lb.isFunction(n)?n.call(this,e,r):(o&&(e=r),lb.isString(e)?lb.isString(n)?-1!==e.indexOf(n):lb.isRegExp(n)?n.test(e):void 0:void 0)}let Fw=class{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function o(t,e,r){const o=Cw(e);if(!o)throw new Error("header name must be a non-empty string");const i=lb.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||e]=Uw(t))}const i=(t,e)=>lb.forEach(t,((t,r)=>o(t,r,e)));if(lb.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(lb.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))i((t=>{const e={};let r,n,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),r=t.substring(0,o).trim().toLowerCase(),n=t.substring(o+1).trim(),!r||e[r]&&_w[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)})),e})(t),e);else if(lb.isHeaders(t))for(const[e,n]of t.entries())o(n,e,r);else null!=t&&o(e,t,r);return this}get(t,e){if(t=Cw(t)){const r=lb.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}(t);if(lb.isFunction(e))return e.call(this,t,r);if(lb.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Cw(t)){const r=lb.findKey(this,t);return!(!r||void 0===this[r]||e&&!Lw(0,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function o(t){if(t=Cw(t)){const o=lb.findKey(r,t);!o||e&&!Lw(0,r[o],o,e)||(delete r[o],n=!0)}}return lb.isArray(t)?t.forEach(o):o(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;for(;r--;){const o=e[r];t&&!Lw(0,this[o],o,t,!0)||(delete this[o],n=!0)}return n}normalize(t){const e=this,r={};return lb.forEach(this,((n,o)=>{const i=lb.findKey(r,o);if(i)return e[i]=Uw(n),void delete e[o];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,r)=>e.toUpperCase()+r))}(o):String(o).trim();a!==o&&delete e[o],e[a]=Uw(n),r[a]=!0})),this}concat(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.constructor.concat(this,...e)}toJSON(t){const e=Object.create(null);return lb.forEach(this,((r,n)=>{null!=r&&!1!==r&&(e[n]=t&&lb.isArray(r)?r.join(", "):r)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((t=>{let[e,r]=t;return e+": "+r})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t){const e=new this(t);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((t=>e.set(t))),e}static accessor(t){const e=(this[Nw]=this[Nw]={accessors:{}}).accessors,r=this.prototype;function n(t){const n=Cw(t);e[n]||(!function(t,e){const r=lb.toCamelCase(" "+e);["get","set","has"].forEach((n=>{Object.defineProperty(t,n+r,{value:function(t,r,o){return this[n].call(this,e,t,r,o)},configurable:!0})}))}(r,t),e[n]=!0)}return lb.isArray(t)?t.forEach(n):n(t),this}};function Dw(t,e){const r=this||Iw,n=e||r,o=Fw.from(n.headers);let i=n.data;return lb.forEach(t,(function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function Bw(t){return!(!t||!t.__CANCEL__)}function Mw(t,e,r){uw.call(this,null==t?"canceled":t,uw.ERR_CANCELED,e,r),this.name="CanceledError"}function qw(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new uw("Request failed with status code "+r.status,[uw.ERR_BAD_REQUEST,uw.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}Fw.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),lb.reduceDescriptors(Fw.prototype,((t,e)=>{let{value:r}=t,n=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(t){this[n]=t}}})),lb.freezeMethods(Fw),lb.inherits(Mw,uw,{__CANCEL__:!0});const Ww=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,n=0;const o=function(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o,i=0,a=0;return e=void 0!==e?e:1e3,function(s){const u=Date.now(),c=n[a];o||(o=u),r[i]=s,n[i]=u;let l=a,p=0;for(;l!==i;)p+=r[l++],l%=t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),u-o<e)return;const f=c&&u-c;return f?Math.round(1e3*p/f):void 0}}(50,250);return function(t,e){let r,n,o=0,i=1e3/e;const a=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,r=null,n&&(clearTimeout(n),n=null),t.apply(null,e)};return[function(){const t=Date.now(),e=t-o;for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];e>=i?a(u,t):(r=u,n||(n=setTimeout((()=>{n=null,a(r)}),i-e)))},()=>r&&a(r)]}((r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=i-n,u=o(s);n=i;t({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&i<=a?(a-i)/u:void 0,event:r,lengthComputable:null!=a,[e?"download":"upload"]:!0})}),r)},Gw=(t,e)=>{const r=null!=t;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},zw=t=>function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return lb.asap((()=>t(...r)))};var Hw=jw.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,jw.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(jw.origin),jw.navigator&&/(msie|trident)/i.test(jw.navigator.userAgent)):()=>!0,$w=jw.hasStandardBrowserEnv?{write(t,e,r,n,o,i){const a=[t+"="+encodeURIComponent(e)];lb.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),lb.isString(n)&&a.push("path="+n),lb.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Vw(t,e,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&(n||0==r)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Kw=t=>t instanceof Fw?{...t}:t;function Yw(t,e){e=e||{};const r={};function n(t,e,r,n){return lb.isPlainObject(t)&&lb.isPlainObject(e)?lb.merge.call({caseless:n},t,e):lb.isPlainObject(e)?lb.merge({},e):lb.isArray(e)?e.slice():e}function o(t,e,r,o){return lb.isUndefined(e)?lb.isUndefined(t)?void 0:n(void 0,t,0,o):n(t,e,0,o)}function i(t,e){if(!lb.isUndefined(e))return n(void 0,e)}function a(t,e){return lb.isUndefined(e)?lb.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function s(r,o,i){return i in e?n(r,o):i in t?n(void 0,r):void 0}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(t,e,r)=>o(Kw(t),Kw(e),0,!0)};return lb.forEach(Object.keys(Object.assign({},t,e)),(function(n){const i=u[n]||o,a=i(t[n],e[n],n);lb.isUndefined(a)&&i!==s||(r[n]=a)})),r}var Jw=t=>{const e=Yw({},t);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:u}=e;if(e.headers=s=Fw.from(s),e.url=ww(Vw(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),u&&s.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),lb.isFormData(n))if(jw.hasStandardBrowserEnv||jw.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(r=s.getContentType())){const[t,...e]=r?r.split(";").map((t=>t.trim())).filter(Boolean):[];s.setContentType([t||"multipart/form-data",...e].join("; "))}if(jw.hasStandardBrowserEnv&&(o&&lb.isFunction(o)&&(o=o(e)),o||!1!==o&&Hw(e.url))){const t=i&&a&&$w.read(a);t&&s.set(i,t)}return e};var Qw="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,r){const n=Jw(t);let o=n.data;const i=Fw.from(n.headers).normalize();let a,s,u,c,l,{responseType:p,onUploadProgress:f,onDownloadProgress:h}=n;function d(){c&&c(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let y=new XMLHttpRequest;function m(){if(!y)return;const n=Fw.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());qw((function(t){e(t),d()}),(function(t){r(t),d()}),{data:p&&"text"!==p&&"json"!==p?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:t,request:y}),y=null}y.open(n.method.toUpperCase(),n.url,!0),y.timeout=n.timeout,"onloadend"in y?y.onloadend=m:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(m)},y.onabort=function(){y&&(r(new uw("Request aborted",uw.ECONNABORTED,t,y)),y=null)},y.onerror=function(){r(new uw("Network Error",uw.ERR_NETWORK,t,y)),y=null},y.ontimeout=function(){let e=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||Sw;n.timeoutErrorMessage&&(e=n.timeoutErrorMessage),r(new uw(e,o.clarifyTimeoutError?uw.ETIMEDOUT:uw.ECONNABORTED,t,y)),y=null},void 0===o&&i.setContentType(null),"setRequestHeader"in y&&lb.forEach(i.toJSON(),(function(t,e){y.setRequestHeader(e,t)})),lb.isUndefined(n.withCredentials)||(y.withCredentials=!!n.withCredentials),p&&"json"!==p&&(y.responseType=n.responseType),h&&([u,l]=Ww(h,!0),y.addEventListener("progress",u)),f&&y.upload&&([s,c]=Ww(f),y.upload.addEventListener("progress",s),y.upload.addEventListener("loadend",c)),(n.cancelToken||n.signal)&&(a=e=>{y&&(r(!e||e.type?new Mw(null,t,y):e),y.abort(),y=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const g=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(n.url);g&&-1===jw.protocols.indexOf(g)?r(new uw("Unsupported protocol "+g+":",uw.ERR_BAD_REQUEST,t)):y.send(o||null)}))};const Xw=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let r,n=new AbortController;const o=function(t){if(!r){r=!0,a();const e=t instanceof Error?t:this.reason;n.abort(e instanceof uw?e:new Mw(e instanceof Error?e.message:e))}};let i=e&&setTimeout((()=>{i=null,o(new uw(`timeout ${e} of ms exceeded`,uw.ETIMEDOUT))}),e);const a=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)})),t=null)};t.forEach((t=>t.addEventListener("abort",o)));const{signal:s}=n;return s.unsubscribe=()=>lb.asap(a),s}},Zw=function*(t,e){let r=t.byteLength;if(r<e)return void(yield t);let n,o=0;for(;o<r;)n=o+e,yield t.slice(o,n),o=n},tx=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},ex=(t,e,r,n)=>{const o=async function*(t,e){for await(const r of tx(t))yield*Zw(r,e)}(t,e);let i,a=0,s=t=>{i||(i=!0,n&&n(t))};return new ReadableStream({async pull(t){try{const{done:e,value:n}=await o.next();if(e)return s(),void t.close();let i=n.byteLength;if(r){let t=a+=i;r(t)}t.enqueue(new Uint8Array(n))}catch(t){throw s(t),t}},cancel:t=>(s(t),o.return())},{highWaterMark:2})},rx="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,nx=rx&&"function"==typeof ReadableStream,ox=rx&&("function"==typeof TextEncoder?(ix=new TextEncoder,t=>ix.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var ix;const ax=function(t){try{for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return!!t(...r)}catch(t){return!1}},sx=nx&&ax((()=>{let t=!1;const e=new Request(jw.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),ux=nx&&ax((()=>lb.isReadableStream(new Response("").body))),cx={stream:ux&&(t=>t.body)};var lx;rx&&(lx=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!cx[t]&&(cx[t]=lb.isFunction(lx[t])?e=>e[t]():(e,r)=>{throw new uw(`Response type '${t}' is not supported`,uw.ERR_NOT_SUPPORT,r)})})));const px=async(t,e)=>{const r=lb.toFiniteNumber(t.getContentLength());return null==r?(async t=>{if(null==t)return 0;if(lb.isBlob(t))return t.size;if(lb.isSpecCompliantForm(t)){const e=new Request(jw.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return lb.isArrayBufferView(t)||lb.isArrayBuffer(t)?t.byteLength:(lb.isURLSearchParams(t)&&(t+=""),lb.isString(t)?(await ox(t)).byteLength:void 0)})(e):r};var fx=rx&&(async t=>{let{url:e,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:u,responseType:c,headers:l,withCredentials:p="same-origin",fetchOptions:f}=Jw(t);c=c?(c+"").toLowerCase():"text";let h,d=Xw([o,i&&i.toAbortSignal()],a);const y=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let m;try{if(u&&sx&&"get"!==r&&"head"!==r&&0!==(m=await px(l,n))){let t,r=new Request(e,{method:"POST",body:n,duplex:"half"});if(lb.isFormData(n)&&(t=r.headers.get("content-type"))&&l.setContentType(t),r.body){const[t,e]=Gw(m,Ww(zw(u)));n=ex(r.body,65536,t,e)}}lb.isString(p)||(p=p?"include":"omit");const o="credentials"in Request.prototype;h=new Request(e,{...f,signal:d,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:o?p:void 0});let i=await fetch(h);const a=ux&&("stream"===c||"response"===c);if(ux&&(s||a&&y)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=i[e]}));const e=lb.toFiniteNumber(i.headers.get("content-length")),[r,n]=s&&Gw(e,Ww(zw(s),!0))||[];i=new Response(ex(i.body,65536,r,(()=>{n&&n(),y&&y()})),t)}c=c||"text";let g=await cx[lb.findKey(cx,c)||"text"](i,t);return!a&&y&&y(),await new Promise(((e,r)=>{qw(e,r,{data:g,headers:Fw.from(i.headers),status:i.status,statusText:i.statusText,config:t,request:h})}))}catch(e){if(y&&y(),e&&"TypeError"===e.name&&/fetch/i.test(e.message))throw Object.assign(new uw("Network Error",uw.ERR_NETWORK,t,h),{cause:e.cause||e});throw uw.from(e,e&&e.code,t,h)}});const hx={http:null,xhr:Qw,fetch:fx};lb.forEach(hx,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const dx=t=>`- ${t}`,yx=t=>lb.isFunction(t)||null===t||!1===t;var mx=t=>{t=lb.isArray(t)?t:[t];const{length:e}=t;let r,n;const o={};for(let i=0;i<e;i++){let e;if(r=t[i],n=r,!yx(r)&&(n=hx[(e=String(r)).toLowerCase()],void 0===n))throw new uw(`Unknown adapter '${e}'`);if(n)break;o[e||"#"+i]=n}if(!n){const t=Object.entries(o).map((t=>{let[e,r]=t;return`adapter ${e} `+(!1===r?"is not supported by the environment":"is not available in the build")}));throw new uw("There is no suitable adapter to dispatch the request "+(e?t.length>1?"since :\n"+t.map(dx).join("\n"):" "+dx(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function gx(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Mw(null,t)}function vx(t){gx(t),t.headers=Fw.from(t.headers),t.data=Dw.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return mx(t.adapter||Iw.adapter)(t).then((function(e){return gx(t),e.data=Dw.call(t,t.transformResponse,e),e.headers=Fw.from(e.headers),e}),(function(e){return Bw(e)||(gx(t),e&&e.response&&(e.response.data=Dw.call(t,t.transformResponse,e.response),e.response.headers=Fw.from(e.response.headers))),Promise.reject(e)}))}const bx="1.8.4",wx={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{wx[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const xx={};wx.transitional=function(t,e,r){function n(t,e){return"[Axios v1.8.4] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,o,i)=>{if(!1===t)throw new uw(n(o," has been removed"+(e?" in "+e:"")),uw.ERR_DEPRECATED);return e&&!xx[o]&&(xx[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}},wx.spelling=function(t){return(e,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};var Sx={assertOptions:function(t,e,r){if("object"!=typeof t)throw new uw("options must be an object",uw.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const i=n[o],a=e[i];if(a){const e=t[i],r=void 0===e||a(e,i,t);if(!0!==r)throw new uw("option "+i+" must be "+r,uw.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new uw("Unknown option "+i,uw.ERR_BAD_OPTION)}},validators:wx};const Ex=Sx.validators;let Ax=class{constructor(t){this.defaults=t,this.interceptors={request:new xw,response:new xw}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const r=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?r&&!String(t.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+r):t.stack=r}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Yw(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:o}=e;void 0!==r&&Sx.assertOptions(r,{silentJSONParsing:Ex.transitional(Ex.boolean),forcedJSONParsing:Ex.transitional(Ex.boolean),clarifyTimeoutError:Ex.transitional(Ex.boolean)},!1),null!=n&&(lb.isFunction(n)?e.paramsSerializer={serialize:n}:Sx.assertOptions(n,{encode:Ex.function,serialize:Ex.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),Sx.assertOptions(e,{baseUrl:Ex.spelling("baseURL"),withXsrfToken:Ex.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&lb.merge(o.common,o[e.method]);o&&lb.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=Fw.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(t){u.push(t.fulfilled,t.rejected)}));let l,p=0;if(!s){const t=[vx.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,u),l=t.length,c=Promise.resolve(e);p<l;)c=c.then(t[p++],t[p++]);return c}l=a.length;let f=e;for(p=0;p<l;){const t=a[p++],e=a[p++];try{f=t(f)}catch(t){e.call(this,t);break}}try{c=vx.call(this,f)}catch(t){return Promise.reject(t)}for(p=0,l=u.length;p<l;)c=c.then(u[p++],u[p++]);return c}getUri(t){return ww(Vw((t=Yw(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}};lb.forEach(["delete","get","head","options"],(function(t){Ax.prototype[t]=function(e,r){return this.request(Yw(r||{},{method:t,url:e,data:(r||{}).data}))}})),lb.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(Yw(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Ax.prototype[t]=e(),Ax.prototype[t+"Form"]=e(!0)}));const Rx={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Rx).forEach((t=>{let[e,r]=t;Rx[r]=e}));const Ox=function t(e){const r=new Ax(e),n=Av(Ax.prototype.request,r);return lb.extend(n,Ax.prototype,r,{allOwnKeys:!0}),lb.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return t(Yw(e,r))},n}(Iw);Ox.Axios=Ax,Ox.CanceledError=Mw,Ox.CancelToken=class t{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const r=this;this.promise.then((t=>{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null})),this.promise.then=t=>{let e;const n=new Promise((t=>{r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t,n,o){r.reason||(r.reason=new Mw(t,n,o),e(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let e;return{token:new t((function(t){e=t})),cancel:e}}},Ox.isCancel=Bw,Ox.VERSION=bx,Ox.toFormData=yw,Ox.AxiosError=uw,Ox.Cancel=Ox.CanceledError,Ox.all=function(t){return Promise.all(t)},Ox.spread=function(t){return function(e){return t.apply(null,e)}},Ox.isAxiosError=function(t){return lb.isObject(t)&&!0===t.isAxiosError},Ox.mergeConfig=Yw,Ox.AxiosHeaders=Fw,Ox.formToJSON=t=>Tw(lb.isHTMLForm(t)?new FormData(t):t),Ox.getAdapter=mx,Ox.HttpStatusCode=Rx,Ox.default=Ox;const{Axios:Px,AxiosError:kx,CanceledError:jx,isCancel:Tx,CancelToken:Ix,VERSION:_x,all:Nx,Cancel:Cx,isAxiosError:Ux,spread:Lx,toFormData:Fx,AxiosHeaders:Dx,HttpStatusCode:Bx,formToJSON:Mx,getAdapter:qx,mergeConfig:Wx}=Ox;var Gx=function(){return u((function t(e){var r=e.responseHandler,n=e.requestConfigBuilder;a(this,t),this.responseHandler=r,this.requestConfigBuilder=n}),[{key:"get",value:(s=o(m().mark((function t(e,r){var n;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("get",e,r);case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return s.apply(this,arguments)})},{key:"getData",value:(i=o(m().mark((function t(e,r){var n;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("get",e,r,{responseType:"arraybuffer"});case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})},{key:"post",value:(n=o(m().mark((function t(e,r){var n;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("post",e,r);case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"postData",value:(r=o(m().mark((function t(e,r){var n;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("post",e,r);case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"put",value:(e=o(m().mark((function t(e,r){var n;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("put",e,r);case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t,r){return e.apply(this,arguments)})},{key:"delete",value:(t=o(m().mark((function t(e,r){var n;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestConfigBuilder.build("delete",e,r);case 2:return n=t.sent,t.next=5,this.sendRequest(n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(e,r){return t.apply(this,arguments)})},{key:"sendRequest",value:function(t){return this.responseHandler.handle(Ox(d(d({},t),{},{maxBodyLength:1/0,maxContentLength:1/0})))}}]);var t,e,r,n,i,s}(),zx=Ro,Hx=tt,$x=st,Vx=bm,Kx=H([].join);zx({target:"Array",proto:!0,forced:Hx!==Object||!Vx("join",",")},{join:function(t){return Kx($x(this),void 0===t?",":t)}});var Yx=TypeError,Jx=A(Object.freeze({__proto__:null,default:{}})),Qx="function"==typeof Map&&Map.prototype,Xx=Object.getOwnPropertyDescriptor&&Qx?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Zx=Qx&&Xx&&"function"==typeof Xx.get?Xx.get:null,tS=Qx&&Map.prototype.forEach,eS="function"==typeof Set&&Set.prototype,rS=Object.getOwnPropertyDescriptor&&eS?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,nS=eS&&rS&&"function"==typeof rS.get?rS.get:null,oS=eS&&Set.prototype.forEach,iS="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,aS="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,sS="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,uS=Boolean.prototype.valueOf,cS=Object.prototype.toString,lS=Function.prototype.toString,pS=String.prototype.match,fS=String.prototype.slice,hS=String.prototype.replace,dS=String.prototype.toUpperCase,yS=String.prototype.toLowerCase,mS=RegExp.prototype.test,gS=Array.prototype.concat,vS=Array.prototype.join,bS=Array.prototype.slice,wS=Math.floor,xS="function"==typeof BigInt?BigInt.prototype.valueOf:null,SS=Object.getOwnPropertySymbols,ES="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,AS="function"==typeof Symbol&&"object"==typeof Symbol.iterator,RS="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===AS||"symbol")?Symbol.toStringTag:null,OS=Object.prototype.propertyIsEnumerable,PS=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function kS(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||mS.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-wS(-t):wS(t);if(n!==t){var o=String(n),i=fS.call(e,o.length+1);return hS.call(o,r,"$&_")+"."+hS.call(hS.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return hS.call(e,r,"$&_")}var jS=Jx,TS=jS.custom,IS=MS(TS)?TS:null,_S={__proto__:null,double:'"',single:"'"},NS={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},CS=function t(e,r,n,o){var i=r||{};if(WS(i,"quoteStyle")&&!WS(_S,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(WS(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=!WS(i,"customInspect")||i.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(WS(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(WS(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===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return HS(e,i);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var u=String(e);return s?kS(e,u):u}if("bigint"==typeof e){var c=String(e)+"n";return s?kS(e,c):c}var l=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=l&&l>0&&"object"==typeof e)return DS(e)?"[Array]":"[Object]";var p=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=vS.call(Array(t.indent+1)," ")}return{base:r,prev:vS.call(Array(e+1),r)}}(i,n);if(void 0===o)o=[];else if(zS(o,e)>=0)return"[Circular]";function f(e,r,a){if(r&&(o=bS.call(o)).push(r),a){var s={depth:i.depth};return WS(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),t(e,s,n+1,o)}return t(e,i,n+1,o)}if("function"==typeof e&&!BS(e)){var h=function(t){if(t.name)return t.name;var e=pS.call(lS.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),d=QS(e,f);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(d.length>0?" { "+vS.call(d,", ")+" }":"")}if(MS(e)){var y=AS?hS.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):ES.call(e);return"object"!=typeof e||AS?y:VS(y)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var m="<"+yS.call(String(e.nodeName)),g=e.attributes||[],v=0;v<g.length;v++)m+=" "+g[v].name+"="+US(LS(g[v].value),"double",i);return m+=">",e.childNodes&&e.childNodes.length&&(m+="..."),m+="</"+yS.call(String(e.nodeName))+">"}if(DS(e)){if(0===e.length)return"[]";var b=QS(e,f);return p&&!function(t){for(var e=0;e<t.length;e++)if(zS(t[e],"\n")>=0)return!1;return!0}(b)?"["+JS(b,p)+"]":"[ "+vS.call(b,", ")+" ]"}if(function(t){return"[object Error]"===GS(t)&&FS(t)}(e)){var w=QS(e,f);return"cause"in Error.prototype||!("cause"in e)||OS.call(e,"cause")?0===w.length?"["+String(e)+"]":"{ ["+String(e)+"] "+vS.call(w,", ")+" }":"{ ["+String(e)+"] "+vS.call(gS.call("[cause]: "+f(e.cause),w),", ")+" }"}if("object"==typeof e&&a){if(IS&&"function"==typeof e[IS]&&jS)return jS(e,{depth:l-n});if("symbol"!==a&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!Zx||!t||"object"!=typeof t)return!1;try{Zx.call(t);try{nS.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var x=[];return tS&&tS.call(e,(function(t,r){x.push(f(r,e,!0)+" => "+f(t,e))})),YS("Map",Zx.call(e),x,p)}if(function(t){if(!nS||!t||"object"!=typeof t)return!1;try{nS.call(t);try{Zx.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var E=[];return oS&&oS.call(e,(function(t){E.push(f(t,e))})),YS("Set",nS.call(e),E,p)}if(function(t){if(!iS||!t||"object"!=typeof t)return!1;try{iS.call(t,iS);try{aS.call(t,aS)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return KS("WeakMap");if(function(t){if(!aS||!t||"object"!=typeof t)return!1;try{aS.call(t,aS);try{iS.call(t,iS)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return KS("WeakSet");if(function(t){if(!sS||!t||"object"!=typeof t)return!1;try{return sS.call(t),!0}catch(t){}return!1}(e))return KS("WeakRef");if(function(t){return"[object Number]"===GS(t)&&FS(t)}(e))return VS(f(Number(e)));if(function(t){if(!t||"object"!=typeof t||!xS)return!1;try{return xS.call(t),!0}catch(t){}return!1}(e))return VS(f(xS.call(e)));if(function(t){return"[object Boolean]"===GS(t)&&FS(t)}(e))return VS(uS.call(e));if(function(t){return"[object String]"===GS(t)&&FS(t)}(e))return VS(f(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&e===globalThis||void 0!==S&&e===S)return"{ [object globalThis] }";if(!function(t){return"[object Date]"===GS(t)&&FS(t)}(e)&&!BS(e)){var A=QS(e,f),R=PS?PS(e)===Object.prototype:e instanceof Object||e.constructor===Object,O=e instanceof Object?"":"null prototype",P=!R&&RS&&Object(e)===e&&RS in e?fS.call(GS(e),8,-1):O?"Object":"",k=(R||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(P||O?"["+vS.call(gS.call([],P||[],O||[]),": ")+"] ":"");return 0===A.length?k+"{}":p?k+"{"+JS(A,p)+"}":k+"{ "+vS.call(A,", ")+" }"}return String(e)};function US(t,e,r){var n=r.quoteStyle||e,o=_S[n];return o+t+o}function LS(t){return hS.call(String(t),/"/g,""")}function FS(t){return!RS||!("object"==typeof t&&(RS in t||void 0!==t[RS]))}function DS(t){return"[object Array]"===GS(t)&&FS(t)}function BS(t){return"[object RegExp]"===GS(t)&&FS(t)}function MS(t){if(AS)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!ES)return!1;try{return ES.call(t),!0}catch(t){}return!1}var qS=Object.prototype.hasOwnProperty||function(t){return t in this};function WS(t,e){return qS.call(t,e)}function GS(t){return cS.call(t)}function zS(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function HS(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return HS(fS.call(t,0,e.maxStringLength),e)+n}var o=NS[e.quoteStyle||"single"];return o.lastIndex=0,US(hS.call(hS.call(t,o,"\\$1"),/[\x00-\x1f]/g,$S),"single",e)}function $S(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+dS.call(e.toString(16))}function VS(t){return"Object("+t+")"}function KS(t){return t+" { ? }"}function YS(t,e,r,n){return t+" ("+e+") {"+(n?JS(r,n):vS.call(r,", "))+"}"}function JS(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+vS.call(t,","+r)+"\n"+e.prev}function QS(t,e){var r=DS(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=WS(t,o)?e(t[o],t):""}var i,a="function"==typeof SS?SS(t):[];if(AS){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var u in t)WS(t,u)&&(r&&String(Number(u))===u&&u<t.length||AS&&i["$"+u]instanceof Symbol||(mS.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if("function"==typeof SS)for(var c=0;c<a.length;c++)OS.call(t,a[c])&&n.push("["+e(a[c])+"]: "+e(t[a[c]],t));return n}var XS=CS,ZS=Yx,tE=function(t,e,r){for(var n,o=t;null!=(n=o.next);o=n)if(n.key===e)return o.next=n.next,r||(n.next=t.next,t.next=n),n},eE=Object,rE=Error,nE=EvalError,oE=RangeError,iE=ReferenceError,aE=SyntaxError,sE=URIError,uE=Math.abs,cE=Math.floor,lE=Math.max,pE=Math.min,fE=Math.pow,hE=Math.round,dE=Number.isNaN||function(t){return t!=t},yE=Object.getOwnPropertyDescriptor;if(yE)try{yE([],"length")}catch(t){yE=null}var mE=yE,gE=Object.defineProperty||!1;if(gE)try{gE({},"a",{value:1})}catch(t){gE=!1}var vE,bE,wE,xE,SE,EE,AE,RE,OE,PE,kE,jE,TE,IE,_E,NE,CE=gE;function UE(){return EE?SE:(EE=1,SE="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function LE(){return RE?AE:(RE=1,AE=eE.getPrototypeOf||null)}function FE(){if(PE)return OE;PE=1;var t=Object.prototype.toString,e=Math.max,r=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var o=0;o<e.length;o+=1)r[o+t.length]=e[o];return r};return OE=function(n){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(t,e){for(var r=[],n=e,o=0;n<t.length;n+=1,o+=1)r[o]=t[n];return r}(arguments,1),s=e(0,o.length-a.length),u=[],c=0;c<s;c++)u[c]="$"+c;if(i=Function("binder","return function ("+function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r}(u,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t: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},OE}function DE(){if(jE)return kE;jE=1;var t=FE();return kE=Function.prototype.bind||t}function BE(){return IE?TE:(IE=1,TE=Function.prototype.call)}function ME(){return NE?_E:(NE=1,_E=Function.prototype.apply)}var qE,WE,GE,zE,HE,$E,VE,KE="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,YE=DE(),JE=ME(),QE=BE(),XE=KE||YE.call(QE,JE),ZE=DE(),tA=Yx,eA=BE(),rA=XE,nA=function(t){if(t.length<1||"function"!=typeof t[0])throw new tA("a function is required");return rA(ZE,eA,t)};var oA=eE,iA=rE,aA=nE,sA=oE,uA=iE,cA=aE,lA=Yx,pA=sE,fA=uE,hA=cE,dA=lE,yA=pE,mA=fE,gA=hE,vA=function(t){return dE(t)||0===t?t:t<0?-1:1},bA=Function,wA=function(t){try{return bA('"use strict"; return ('+t+").constructor;")()}catch(t){}},xA=mE,SA=CE,EA=function(){throw new lA},AA=xA?function(){try{return EA}catch(t){try{return xA(arguments,"callee").get}catch(t){return EA}}}():EA,RA=function(){if(xE)return wE;xE=1;var t="undefined"!=typeof Symbol&&Symbol,e=bE?vE:(bE=1,vE=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0});return wE=function(){return"function"==typeof t&&("function"==typeof Symbol&&("symbol"==typeof t("foo")&&("symbol"==typeof Symbol("bar")&&e())))}}()(),OA=function(){if(zE)return GE;zE=1;var t=UE(),e=LE(),r=function(){if(WE)return qE;WE=1;var t,e=nA,r=mE;try{t=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var n=!!t&&r&&r(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return qE=n&&"function"==typeof n.get?e([n.get]):"function"==typeof i&&function(t){return i(null==t?t:o(t))}}();return GE=t?function(e){return t(e)}:e?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return e(t)}:r?function(t){return r(t)}:null}(),PA=LE(),kA=UE(),jA=ME(),TA=BE(),IA={},_A="undefined"!=typeof Uint8Array&&OA?OA(Uint8Array):VE,NA={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?VE:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?VE:ArrayBuffer,"%ArrayIteratorPrototype%":RA&&OA?OA([][Symbol.iterator]()):VE,"%AsyncFromSyncIteratorPrototype%":VE,"%AsyncFunction%":IA,"%AsyncGenerator%":IA,"%AsyncGeneratorFunction%":IA,"%AsyncIteratorPrototype%":IA,"%Atomics%":"undefined"==typeof Atomics?VE:Atomics,"%BigInt%":"undefined"==typeof BigInt?VE:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?VE:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?VE:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?VE:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":iA,"%eval%":eval,"%EvalError%":aA,"%Float32Array%":"undefined"==typeof Float32Array?VE:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?VE:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?VE:FinalizationRegistry,"%Function%":bA,"%GeneratorFunction%":IA,"%Int8Array%":"undefined"==typeof Int8Array?VE:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?VE:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?VE:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":RA&&OA?OA(OA([][Symbol.iterator]())):VE,"%JSON%":"object"==typeof JSON?JSON:VE,"%Map%":"undefined"==typeof Map?VE:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&RA&&OA?OA((new Map)[Symbol.iterator]()):VE,"%Math%":Math,"%Number%":Number,"%Object%":oA,"%Object.getOwnPropertyDescriptor%":xA,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?VE:Promise,"%Proxy%":"undefined"==typeof Proxy?VE:Proxy,"%RangeError%":sA,"%ReferenceError%":uA,"%Reflect%":"undefined"==typeof Reflect?VE:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?VE:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&RA&&OA?OA((new Set)[Symbol.iterator]()):VE,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?VE:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":RA&&OA?OA(""[Symbol.iterator]()):VE,"%Symbol%":RA?Symbol:VE,"%SyntaxError%":cA,"%ThrowTypeError%":AA,"%TypedArray%":_A,"%TypeError%":lA,"%Uint8Array%":"undefined"==typeof Uint8Array?VE:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?VE:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?VE:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?VE:Uint32Array,"%URIError%":pA,"%WeakMap%":"undefined"==typeof WeakMap?VE:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?VE:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?VE:WeakSet,"%Function.prototype.call%":TA,"%Function.prototype.apply%":jA,"%Object.defineProperty%":SA,"%Object.getPrototypeOf%":PA,"%Math.abs%":fA,"%Math.floor%":hA,"%Math.max%":dA,"%Math.min%":yA,"%Math.pow%":mA,"%Math.round%":gA,"%Math.sign%":vA,"%Reflect.getPrototypeOf%":kA};if(OA)try{null.error}catch(t){var CA=OA(OA(t));NA["%Error.prototype%"]=CA}var UA=function t(e){var r;if("%AsyncFunction%"===e)r=wA("async function () {}");else if("%GeneratorFunction%"===e)r=wA("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=wA("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&OA&&(r=OA(o.prototype))}return NA[e]=r,r},LA={__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"]},FA=DE(),DA=function(){if($E)return HE;$E=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=DE();return HE=r.call(t,e)}(),BA=FA.call(TA,Array.prototype.concat),MA=FA.call(jA,Array.prototype.splice),qA=FA.call(TA,String.prototype.replace),WA=FA.call(TA,String.prototype.slice),GA=FA.call(TA,RegExp.prototype.exec),zA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,HA=/\\(\\)?/g,$A=function(t,e){var r,n=t;if(DA(LA,n)&&(n="%"+(r=LA[n])[0]+"%"),DA(NA,n)){var o=NA[n];if(o===IA&&(o=UA(n)),void 0===o&&!e)throw new lA("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new cA("intrinsic "+t+" does not exist!")},VA=function(t,e){if("string"!=typeof t||0===t.length)throw new lA("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new lA('"allowMissing" argument must be a boolean');if(null===GA(/^%?[^%]*%?$/,t))throw new cA("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=WA(t,0,1),r=WA(t,-1);if("%"===e&&"%"!==r)throw new cA("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new cA("invalid intrinsic syntax, expected opening `%`");var n=[];return qA(t,zA,(function(t,e,r,o){n[n.length]=r?qA(o,HA,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=$A("%"+n+"%",e),i=o.name,a=o.value,s=!1,u=o.alias;u&&(n=u[0],MA(r,BA([0,1],u)));for(var c=1,l=!0;c<r.length;c+=1){var p=r[c],f=WA(p,0,1),h=WA(p,-1);if(('"'===f||"'"===f||"`"===f||'"'===h||"'"===h||"`"===h)&&f!==h)throw new cA("property names with quotes must have matching quotes");if("constructor"!==p&&l||(s=!0),DA(NA,i="%"+(n+="."+p)+"%"))a=NA[i];else if(null!=a){if(!(p in a)){if(!e)throw new lA("base intrinsic for "+t+" exists, but the property is not available.");return}if(xA&&c+1>=r.length){var d=xA(a,p);a=(l=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[p]}else l=DA(a,p),a=a[p];l&&!s&&(NA[i]=a)}}return a},KA=VA,YA=nA,JA=YA([KA("%String.prototype.indexOf%")]),QA=function(t,e){var r=KA(t,!!e);return"function"==typeof r&&JA(t,".prototype.")>-1?YA([r]):r},XA=QA,ZA=CS,tR=Yx,eR=VA("%Map%",!0),rR=XA("Map.prototype.get",!0),nR=XA("Map.prototype.set",!0),oR=XA("Map.prototype.has",!0),iR=XA("Map.prototype.delete",!0),aR=XA("Map.prototype.size",!0),sR=!!eR&&function(){var t,e={assert:function(t){if(!e.has(t))throw new tR("Side channel does not contain "+ZA(t))},delete:function(e){if(t){var r=iR(t,e);return 0===aR(t)&&(t=void 0),r}return!1},get:function(e){if(t)return rR(t,e)},has:function(e){return!!t&&oR(t,e)},set:function(e,r){t||(t=new eR),nR(t,e,r)}};return e},uR=QA,cR=CS,lR=sR,pR=Yx,fR=VA("%WeakMap%",!0),hR=uR("WeakMap.prototype.get",!0),dR=uR("WeakMap.prototype.set",!0),yR=uR("WeakMap.prototype.has",!0),mR=uR("WeakMap.prototype.delete",!0),gR=Yx,vR=CS,bR=(fR?function(){var t,e,r={assert:function(t){if(!r.has(t))throw new pR("Side channel does not contain "+cR(t))},delete:function(r){if(fR&&r&&("object"==typeof r||"function"==typeof r)){if(t)return mR(t,r)}else if(lR&&e)return e.delete(r);return!1},get:function(r){return fR&&r&&("object"==typeof r||"function"==typeof r)&&t?hR(t,r):e&&e.get(r)},has:function(r){return fR&&r&&("object"==typeof r||"function"==typeof r)&&t?yR(t,r):!!e&&e.has(r)},set:function(r,n){fR&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new fR),dR(t,r,n)):lR&&(e||(e=lR()),e.set(r,n))}};return r}:lR)||sR||function(){var t,e={assert:function(t){if(!e.has(t))throw new ZS("Side channel does not contain "+XS(t))},delete:function(e){var r=t&&t.next,n=function(t,e){if(t)return tE(t,e,!0)}(t,e);return n&&r&&r===n&&(t=void 0),!!n},get:function(e){return function(t,e){if(t){var r=tE(t,e);return r&&r.value}}(t,e)},has:function(e){return function(t,e){return!!t&&!!tE(t,e)}(t,e)},set:function(e,r){t||(t={next:void 0}),function(t,e,r){var n=tE(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(t,e,r)}};return e},wR=String.prototype.replace,xR=/%20/g,SR="RFC3986",ER={default:SR,formatters:{RFC1738:function(t){return wR.call(t,xR,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:SR},AR=ER,RR=Object.prototype.hasOwnProperty,OR=Array.isArray,PR=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),kR=function(t,e){for(var r=e&&e.plainObjects?{__proto__:null}:{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r},jR=1024,TR={arrayToObject:kR,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],i=o.obj[o.prop],a=Object.keys(i),s=0;s<a.length;++s){var u=a[s],c=i[u];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(e.push({obj:i,prop:u}),r.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(OR(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r,n,o){if(0===t.length)return t;var i=t;if("symbol"==typeof t?i=Symbol.prototype.toString.call(t):"string"!=typeof t&&(i=String(t)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var a="",s=0;s<i.length;s+=jR){for(var u=i.length>=jR?i.slice(s,s+jR):i,c=[],l=0;l<u.length;++l){var p=u.charCodeAt(l);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===AR.RFC1738&&(40===p||41===p)?c[c.length]=u.charAt(l):p<128?c[c.length]=PR[p]:p<2048?c[c.length]=PR[192|p>>6]+PR[128|63&p]:p<55296||p>=57344?c[c.length]=PR[224|p>>12]+PR[128|p>>6&63]+PR[128|63&p]:(l+=1,p=65536+((1023&p)<<10|1023&u.charCodeAt(l)),c[c.length]=PR[240|p>>18]+PR[128|p>>12&63]+PR[128|p>>6&63]+PR[128|63&p])}a+=c.join("")}return a},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(OR(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=typeof r&&"function"!=typeof r){if(OR(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!RR.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var o=e;return OR(e)&&!OR(r)&&(o=kR(e,n)),OR(e)&&OR(r)?(r.forEach((function(r,o){if(RR.call(e,o)){var i=e[o];i&&"object"==typeof i&&r&&"object"==typeof r?e[o]=t(i,r,n):e.push(r)}else e[o]=r})),e):Object.keys(r).reduce((function(e,o){var i=r[o];return RR.call(e,o)?e[o]=t(e[o],i,n):e[o]=i,e}),o)}},IR=function(){var t,e={assert:function(t){if(!e.has(t))throw new gR("Side channel does not contain "+vR(t))},delete:function(e){return!!t&&t.delete(e)},get:function(e){return t&&t.get(e)},has:function(e){return!!t&&t.has(e)},set:function(e,r){t||(t=bR()),t.set(e,r)}};return e},_R=TR,NR=ER,CR=Object.prototype.hasOwnProperty,UR={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},LR=Array.isArray,FR=Array.prototype.push,DR=function(t,e){FR.apply(t,LR(e)?e:[e])},BR=Date.prototype.toISOString,MR=NR.default,qR={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:_R.encode,encodeValuesOnly:!1,filter:void 0,format:MR,formatter:NR.formatters[MR],indices:!1,serializeDate:function(t){return BR.call(t)},skipNulls:!1,strictNullHandling:!1},WR={},GR=function t(e,r,n,o,i,a,s,u,c,l,p,f,h,d,y,m,g,v){for(var b,w=e,x=v,S=0,E=!1;void 0!==(x=x.get(WR))&&!E;){var A=x.get(e);if(S+=1,void 0!==A){if(A===S)throw new RangeError("Cyclic object value");E=!0}void 0===x.get(WR)&&(S=0)}if("function"==typeof l?w=l(r,w):w instanceof Date?w=h(w):"comma"===n&&LR(w)&&(w=_R.maybeMap(w,(function(t){return t instanceof Date?h(t):t}))),null===w){if(a)return c&&!m?c(r,qR.encoder,g,"key",d):r;w=""}if("string"==typeof(b=w)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||_R.isBuffer(w))return c?[y(m?r:c(r,qR.encoder,g,"key",d))+"="+y(c(w,qR.encoder,g,"value",d))]:[y(r)+"="+y(String(w))];var R,O=[];if(void 0===w)return O;if("comma"===n&&LR(w))m&&c&&(w=_R.maybeMap(w,c)),R=[{value:w.length>0?w.join(",")||null:void 0}];else if(LR(l))R=l;else{var P=Object.keys(w);R=p?P.sort(p):P}var k=u?String(r).replace(/\./g,"%2E"):String(r),j=o&&LR(w)&&1===w.length?k+"[]":k;if(i&&LR(w)&&0===w.length)return j+"[]";for(var T=0;T<R.length;++T){var I=R[T],_="object"==typeof I&&I&&void 0!==I.value?I.value:w[I];if(!s||null!==_){var N=f&&u?String(I).replace(/\./g,"%2E"):String(I),C=LR(w)?"function"==typeof n?n(j,N):j:j+(f?"."+N:"["+N+"]");v.set(e,S);var U=IR();U.set(WR,v),DR(O,t(_,C,n,o,i,a,s,u,"comma"===n&&m&&LR(w)?null:c,l,p,f,h,d,y,m,g,U))}}return O},zR=TR,HR=Object.prototype.hasOwnProperty,$R=Array.isArray,VR={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:zR.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},KR=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},YR=function(t,e,r){if(t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");return t},JR=function(t,e,r,n){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),s=a?o.slice(0,a.index):o,u=[];if(s){if(!r.plainObjects&&HR.call(Object.prototype,s)&&!r.allowPrototypes)return;u.push(s)}for(var c=0;r.depth>0&&null!==(a=i.exec(o))&&c<r.depth;){if(c+=1,!r.plainObjects&&HR.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(a[1])}if(a){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u.push("["+o.slice(a.index)+"]")}return function(t,e,r,n){var o=0;if(t.length>0&&"[]"===t[t.length-1]){var i=t.slice(0,-1).join("");o=Array.isArray(e)&&e[i]?e[i].length:0}for(var a=n?e:YR(e,r,o),s=t.length-1;s>=0;--s){var u,c=t[s];if("[]"===c&&r.parseArrays)u=r.allowEmptyArrays&&(""===a||r.strictNullHandling&&null===a)?[]:zR.combine([],a);else{u=r.plainObjects?{__proto__:null}:{};var l="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,p=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,f=parseInt(p,10);r.parseArrays||""!==p?!isNaN(f)&&c!==p&&String(f)===p&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(u=[])[f]=a:"__proto__"!==p&&(u[p]=a):u={0:a}}a=u}return a}(u,e,r,n)}},QR=function(t,e){var r,n=t,o=function(t){if(!t)return qR;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||qR.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=NR.default;if(void 0!==t.format){if(!CR.call(NR.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n,o=NR.formatters[r],i=qR.filter;if(("function"==typeof t.filter||LR(t.filter))&&(i=t.filter),n=t.arrayFormat in UR?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":qR.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=void 0===t.allowDots?!0===t.encodeDotInKeys||qR.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:qR.addQueryPrefix,allowDots:a,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:qR.allowEmptyArrays,arrayFormat:n,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:qR.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:void 0===t.delimiter?qR.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:qR.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:qR.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:qR.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:qR.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:qR.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:qR.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:qR.strictNullHandling}}(e);"function"==typeof o.filter?n=(0,o.filter)("",n):LR(o.filter)&&(r=o.filter);var i=[];if("object"!=typeof n||null===n)return"";var a=UR[o.arrayFormat],s="comma"===a&&o.commaRoundTrip;r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var u=IR(),c=0;c<r.length;++c){var l=r[c],p=n[l];o.skipNulls&&null===p||DR(i,GR(p,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,u))}var f=i.join(o.delimiter),h=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),f.length>0?h+f:""},XR=function(t,e){var r=function(t){if(!t)return VR;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var e=void 0===t.charset?VR.charset:t.charset,r=void 0===t.duplicates?VR.duplicates:t.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===t.allowDots?!0===t.decodeDotInKeys||VR.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:VR.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:VR.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:VR.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:VR.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:VR.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:VR.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:VR.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:VR.decoder,delimiter:"string"==typeof t.delimiter||zR.isRegExp(t.delimiter)?t.delimiter:VR.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:VR.depth,duplicates:r,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:VR.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:VR.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:VR.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:VR.strictDepth,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:VR.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}}(e);if(""===t||null==t)return r.plainObjects?{__proto__:null}:{};for(var n="string"==typeof t?function(t,e){var r={__proto__:null},n=e.ignoreQueryPrefix?t.replace(/^\?/,""):t;n=n.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=e.parameterLimit===1/0?void 0:e.parameterLimit,i=n.split(e.delimiter,e.throwOnLimitExceeded?o+1:o);if(e.throwOnLimitExceeded&&i.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(1===o?"":"s")+" allowed.");var a,s=-1,u=e.charset;if(e.charsetSentinel)for(a=0;a<i.length;++a)0===i[a].indexOf("utf8=")&&("utf8=%E2%9C%93"===i[a]?u="utf-8":"utf8=%26%2310003%3B"===i[a]&&(u="iso-8859-1"),s=a,a=i.length);for(a=0;a<i.length;++a)if(a!==s){var c,l,p=i[a],f=p.indexOf("]="),h=-1===f?p.indexOf("="):f+1;-1===h?(c=e.decoder(p,VR.decoder,u,"key"),l=e.strictNullHandling?null:""):(c=e.decoder(p.slice(0,h),VR.decoder,u,"key"),l=zR.maybeMap(YR(p.slice(h+1),e,$R(r[c])?r[c].length:0),(function(t){return e.decoder(t,VR.decoder,u,"value")}))),l&&e.interpretNumericEntities&&"iso-8859-1"===u&&(l=KR(String(l))),p.indexOf("[]=")>-1&&(l=$R(l)?[l]:l);var d=HR.call(r,c);d&&"combine"===e.duplicates?r[c]=zR.combine(r[c],l):d&&"last"!==e.duplicates||(r[c]=l)}return r}(t,r):t,o=r.plainObjects?{__proto__:null}:{},i=Object.keys(n),a=0;a<i.length;++a){var s=i[a],u=JR(s,n[s],r,"string"==typeof t);o=zR.merge(o,u,r)}return!0===r.allowSparse?o:zR.compact(o)},ZR=E({formats:ER,parse:XR,stringify:QR});const tO="function"==typeof Buffer,eO=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),rO=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),nO=(t=>{let e={};return t.forEach(((t,r)=>e[t]=r)),e})(rO),oO=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,iO=String.fromCharCode.bind(String),aO=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),t=>t.replace(/=/g,"").replace(/[+\/]/g,(t=>"+"==t?"-":"_"))),sO=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),uO=t=>{let e,r,n,o,i="";const a=t.length%3;for(let a=0;a<t.length;){if((r=t.charCodeAt(a++))>255||(n=t.charCodeAt(a++))>255||(o=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|o,i+=rO[e>>18&63]+rO[e>>12&63]+rO[e>>6&63]+rO[63&e]}return a?i.slice(0,a-3)+"===".substring(a):i},cO="function"==typeof btoa?t=>btoa(t):tO?t=>Buffer.from(t,"binary").toString("base64"):uO,lO=tO?t=>Buffer.from(t).toString("base64"):t=>{let e=[];for(let r=0,n=t.length;r<n;r+=4096)e.push(iO.apply(null,t.subarray(r,r+4096)));return cO(e.join(""))},pO=t=>{if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?iO(192|e>>>6)+iO(128|63&e):iO(224|e>>>12&15)+iO(128|e>>>6&63)+iO(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return iO(240|e>>>18&7)+iO(128|e>>>12&63)+iO(128|e>>>6&63)+iO(128|63&e)},fO=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,hO=t=>t.replace(fO,pO),dO=tO?t=>Buffer.from(t,"utf8").toString("base64"):eO?t=>lO(eO.encode(t)):t=>cO(hO(t)),yO=function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?aO(dO(t)):dO(t)},mO=t=>{if(t=t.replace(/\s+/g,""),!oO.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));let e,r,n,o="";for(let i=0;i<t.length;)e=nO[t.charAt(i++)]<<18|nO[t.charAt(i++)]<<12|(r=nO[t.charAt(i++)])<<6|(n=nO[t.charAt(i++)]),o+=64===r?iO(e>>16&255):64===n?iO(e>>16&255,e>>8&255):iO(e>>16&255,e>>8&255,255&e);return o},gO=yO;var vO,bO=function(){return u((function t(e){if(a(this,t),this.baseUrl=e.baseUrl,this.auth=e.auth,this.headers=this.buildHeaders({basicAuth:e.basicAuth,userAgent:e.userAgent}),"httpsAgent"in e){if("clientCertAuth"in e)throw new Error("Cannot specify clientCertAuth along with httpsAgent.");this.httpsAgent=e.httpsAgent}else"clientCertAuth"in e&&(this.clientCertAuth=e.clientCertAuth);this.proxy=e.proxy,this.requestToken=null,this.socketTimeout=e.socketTimeout}),[{key:"build",value:(n=o(m().mark((function t(r,n,o,i){var a,s,u,c;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=d(d(d({method:r,headers:this.headers,url:"".concat(this.baseUrl).concat(n)},i||{}),e.buildPlatformDependentConfig({httpsAgent:this.httpsAgent,clientCertAuth:this.clientCertAuth,socketTimeout:this.socketTimeout})),{},{proxy:this.buildProxyConfig(this.proxy)}),t.t0=r,t.next="get"===t.t0?4:"post"===t.t0?16:"put"===t.t0?29:"delete"===t.t0?37:44;break;case 4:if(!((s=this.buildRequestUrl(n,o)).length>4096)){t.next=15;break}return t.t1=d,t.t2=d({},a),t.t3={},t.t4=d(d({},this.headers),{},{"X-HTTP-Method-Override":"GET"}),t.next=12,this.buildData(o);case 12:return t.t5=t.sent,t.t6={method:"post",headers:t.t4,data:t.t5},t.abrupt("return",(0,t.t1)(t.t2,t.t3,t.t6));case 15:return t.abrupt("return",d(d({},a),{},{url:s}));case 16:if(!(o instanceof sv)){t.next=21;break}return t.next=19,this.buildData(o);case 19:return u=t.sent,t.abrupt("return",d(d({},a),{},{headers:"function"==typeof u.getHeaders?d(d({},this.headers),u.getHeaders()):this.headers,data:u}));case 21:return t.t7=d,t.t8=d({},a),t.t9={},t.next=26,this.buildData(o);case 26:return t.t10=t.sent,t.t11={data:t.t10},t.abrupt("return",(0,t.t7)(t.t8,t.t9,t.t11));case 29:return t.t12=d,t.t13=d({},a),t.t14={},t.next=34,this.buildData(o);case 34:return t.t15=t.sent,t.t16={data:t.t15},t.abrupt("return",(0,t.t12)(t.t13,t.t14,t.t16));case 37:return t.t17=this,t.t18=n,t.next=41,this.buildData(o);case 41:return t.t19=t.sent,c=t.t17.buildRequestUrl.call(t.t17,t.t18,t.t19),t.abrupt("return",d(d({},a),{},{url:c}));case 44:throw new Error("".concat(r," method is not supported"));case 45:case"end":return t.stop()}}),t,this)}))),function(t,e,r,o){return n.apply(this,arguments)})},{key:"buildProxyConfig",value:function(t){var e;if(void 0!==t){if(!1===t)return!1;var r=t;return!r.auth||0!==r.auth.username.length&&0!==r.auth.password.length||(r.auth=void 0),r.protocol=null!==(e=r.protocol)&&void 0!==e?e:"http",r}}},{key:"buildRequestUrl",value:function(t,e){return"".concat(this.baseUrl).concat(t,"?").concat(ZR.stringify(e))}},{key:"buildData",value:(r=o(m().mark((function t(e){var r;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("session"!==this.auth.type){t.next=8;break}return t.next=3,this.getRequestToken();case 3:if(r=t.sent,!(e instanceof sv)){t.next=7;break}return e.append("__REQUEST_TOKEN__",r),t.abrupt("return",e);case 7:return t.abrupt("return",d({__REQUEST_TOKEN__:r},e));case 8:return t.abrupt("return",e);case 9:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"buildHeaders",value:function(t){var r=t.basicAuth,n=t.userAgent,o=r?{Authorization:"Basic ".concat(gO("".concat(r.username,":").concat(r.password)))}:{},i=d(d({},e.buildHeaders({userAgent:n})),o);switch(this.auth.type){case"password":return d(d({},i),{},{"X-Cybozu-Authorization":gO("".concat(this.auth.username,":").concat(this.auth.password))});case"apiToken":var a=this.auth.apiToken;return Array.isArray(a)?d(d({},i),{},{"X-Cybozu-API-Token":a.join(",")}):d(d({},i),{},{"X-Cybozu-API-Token":a});case"oAuthToken":return d(d({},i),{},{Authorization:"Bearer ".concat(this.auth.oAuthToken)});default:return d(d({},i),{},{"X-Requested-With":"XMLHttpRequest"})}}},{key:"getRequestToken",value:(t=o(m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==this.requestToken){t.next=4;break}return t.next=3,e.getRequestToken();case 3:this.requestToken=t.sent;case 4:return t.abrupt("return",this.requestToken);case 5:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})}]);var t,r,n}(),wO=["data"],xO=function(){return u((function t(e){var r=e.enableAbortSearchError;a(this,t),this.enableAbortSearchError=r}),[{key:"handle",value:function(t){var e=this;return t.then((function(t){return e.handleSuccessResponse(t)}),(function(t){return e.handleErrorResponse(t)}))}},{key:"handleSuccessResponse",value:function(t){if(this.enableAbortSearchError&&/Filter aborted because of too many search results/.test(t.headers["x-cybozu-warning"]))throw new qg(t.headers["x-cybozu-warning"]);return t.data}},{key:"handleErrorResponse",value:function(t){if(!t.response){if(/mac verify failure/.test(t.toString()))throw new Error("invalid clientCertAuth setting");throw t}var e=t.response,r=e.data,n=y(e,wO);if("string"==typeof r)throw new Error("".concat(n.status,": ").concat(n.statusText));throw new tv(d({data:r},n))}}])}(),SO=function(){return u((function t(){var r,n,o,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(this,t),EO(i),this.baseUrl=e.buildBaseUrl(i.baseUrl).replace(/\/+$/,"");var s=function(t){if("username"in t)return d({type:"password"},t);if("apiToken"in t)return d({type:"apiToken"},t);if("oAuthToken"in t)return d({type:"oAuthToken"},t);try{return e.getDefaultAuth()}catch(t){if(t instanceof Ki)throw new Error("session authentication is not supported in ".concat(t.platform," environment."));throw t}}(null!==(r=i.auth)&&void 0!==r?r:{}),u=new bO(d(d({},i),{},{baseUrl:this.baseUrl,auth:s})),c=new xO({enableAbortSearchError:null!==(n=null===(o=i.featureFlags)||void 0===o?void 0:o.enableAbortSearchError)&&void 0!==n&&n}),l=new Gx({responseHandler:c,requestConfigBuilder:u}),p=i.guestSpaceId;this.bulkRequest_=new tm(l,p),this.record=new iv(l,this.bulkRequest_,p),this.app=new gm(l,p),this.space=new av(l,p),this.file=new uv(l,p),this.plugin=new cv(l)}),[{key:"getBaseUrl",value:function(){return this.baseUrl}},{key:"bulkRequest",value:function(t){return this.bulkRequest_.send(t)}}],[{key:"version",get:function(){return e.getVersion()}}])}(),EO=function(t){AO(t.baseUrl),RO(t.guestSpaceId),OO(t.socketTimeout)},AO=function(t){if(void 0!==t){var e=new URL(t);if("localhost"!==e.hostname&&"https:"!==e.protocol)throw new Error('The protocol of baseUrl must be "https".')}},RO=function(t){if(""===t||null===t)throw new Error("invalid guestSpaceId: got [".concat(t,"]"))},OO=function(t){if(void 0!==t){var e=parseFloat(t.toString());if(isNaN(e)||e<0)throw new Error("Invalid socketTimeout. Must be a positive number.")}};(vO=Zi).readFileFromPath&&(e.readFileFromPath=vO.readFileFromPath),vO.getRequestToken&&(e.getRequestToken=vO.getRequestToken),vO.getDefaultAuth&&(e.getDefaultAuth=vO.getDefaultAuth),vO.buildPlatformDependentConfig&&(e.buildPlatformDependentConfig=vO.buildPlatformDependentConfig),vO.buildHeaders&&(e.buildHeaders=vO.buildHeaders),vO.buildFormDataValue&&(e.buildFormDataValue=vO.buildFormDataValue),vO.buildBaseUrl&&(e.buildBaseUrl=vO.buildBaseUrl),vO.getVersion&&(e.getVersion=vO.getVersion),t.KintoneAbortSearchError=qg,t.KintoneAllRecordsError=Zg,t.KintoneRestAPIClient=SO,t.KintoneRestAPIError=tv}));
|
|
766
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).window=e.window||{})}(this,(function(e){"use strict";var t={readFileFromPath:function(){throw new Error("not implemented")},getRequestToken:function(){throw new Error("not implemented")},getDefaultAuth:function(){throw new Error("not implemented")},buildPlatformDependentConfig:function(){throw new Error("not implemented")},buildHeaders:function(){throw new Error("not implemented")},buildFormDataValue:function(){throw new Error("not implemented")},buildBaseUrl:function(){throw new Error("not implemented")},getVersion:function(){throw new Error("not implemented")}};function r(e,t){this.v=e,this.k=t}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function s(e){o(a,n,i,s,u,"next",e)}function u(e){o(a,n,i,s,u,"throw",e)}s(void 0)}))}}function a(e,t,r){return t=p(t),function(e,t){if(t&&("object"==typeof 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)}(e,h()?Reflect.construct(t,r||[],p(e).constructor):t.apply(e,r))}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 c(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(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 p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(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&&A(e,t)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function d(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 y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function g(){
|
|
767
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
768
|
+
var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof s?n:s,c=Object.create(u.prototype);return x(c,"_invoke",function(r,n,o){var i,s,u,c=0,l=o||[],p=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,s=0,u=e,f.n=r,a}};function h(r,n){for(s=r,u=n,t=0;!p&&c&&!o&&t<l.length;t++){var o,i=l[t],h=f.p,d=i[2];r>3?(o=d===n)&&(s=i[4]||3,u=i[5]===e?i[3]:i[5],i[4]=3,i[5]=e):i[0]<=h&&((o=r<2&&h<i[1])?(s=0,f.v=n,f.n=i[1]):h<d&&(o=r<3||i[0]>n||n>d)&&(i[4]=r,i[5]=n,f.n=d,s=0))}if(o||r>1)return a;throw p=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(p&&1===l&&h(l,d),s=l,u=d;(t=s<2?e:u)||!p;){i||(s?s<3?(s>1&&(f.n=-1),h(s,u)):f.n=u:f.v=u);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(p=f.n<0)?u:r.call(n,f))!==a)break}catch(t){i=e,s=1,u=t}finally{c=1}}return{value:t,done:p}}}(r,o,i),!0),c}var a={};function s(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(x(t={},n,(function(){return this})),t),p=c.prototype=s.prototype=Object.create(l);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,x(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=c,x(p,"constructor",c),x(c,"constructor",u),u.displayName="GeneratorFunction",x(c,o,"GeneratorFunction"),x(p),x(p,o,"Generator"),x(p,n,(function(){return this})),x(p,"toString",(function(){return"[object Generator]"})),(g=function(){return{w:i,m:f}})()}function v(e,t,r,n,o){var i=b(e,t,r,n,o);return i.next().then((function(e){return e.done?e.value:i.next()}))}function b(e,t,r,n,o){return new w(g().w(e,t,r,n),o||Promise)}function w(e,t){function n(o,i,a,s){try{var u=e[o](i),c=u.value;return c instanceof r?t.resolve(c.v).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}catch(e){s(e)}}var o;this.next||(x(w.prototype),x(w.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),x(this,"_invoke",(function(e,r,i){function a(){return new t((function(t,r){n(e,i,t,r)}))}return o=o?o.then(a,a):a()}),!0)}function x(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}x=function(e,t,r,n){if(t)o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r;else{function i(t,r){x(e,t,(function(e){return this._invoke(t,r,e)}))}i("next",0),i("throw",1),i("return",2)}},x(e,t,r,n)}function S(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}}function E(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(typeof e+" is not iterable")}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}function R(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(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 O(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function P(e){return P="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},P(e)}function k(e){var t="function"==typeof Map?new Map:void 0;return k=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(h())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&A(o,r.prototype),o}(e,arguments,p(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),A(r,e)},k(e)}function j(){var e=g(),t=e.m(j),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function o(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var i={throw:1,return:2,break:3,continue:3};function a(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,i[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,E(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(j=function(){return{wrap:function(t,r,n,o){return e.w(a(t),r,n,o&&o.reverse())},isGeneratorFunction:o,mark:e.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:w,async:function(e,t,r,n,i){return(o(t)?b:v)(a(e),t,r,n,i)},keys:S,values:E}})()}var T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function I(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function N(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var _=function(e){return e&&e.Math===Math&&e},C=_("object"==typeof globalThis&&globalThis)||_("object"==typeof window&&window)||_("object"==typeof self&&self)||_("object"==typeof T&&T)||_("object"==typeof T&&T)||function(){return this}()||Function("return this")(),U={},L=function(e){try{return!!e()}catch(e){return!0}},F=!L((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),D=!L((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),B=D,M=Function.prototype.call,q=B?M.bind(M):function(){return M.apply(M,arguments)},W={},G={}.propertyIsEnumerable,z=Object.getOwnPropertyDescriptor,H=z&&!G.call({1:2},1);W.f=H?function(e){var t=z(this,e);return!!t&&t.enumerable}:G;var $,V,K=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Y=D,J=Function.prototype,Q=J.call,X=Y&&J.bind.bind(Q,Q),Z=Y?X:function(e){return function(){return Q.apply(e,arguments)}},ee=Z,te=ee({}.toString),re=ee("".slice),ne=function(e){return re(te(e),8,-1)},oe=L,ie=ne,ae=Object,se=Z("".split),ue=oe((function(){return!ae("z").propertyIsEnumerable(0)}))?function(e){return"String"===ie(e)?se(e,""):ae(e)}:ae,ce=function(e){return null==e},le=ce,pe=TypeError,fe=function(e){if(le(e))throw new pe("Can't call method on "+e);return e},he=ue,de=fe,ye=function(e){return he(de(e))},me="object"==typeof document&&document.all,ge=void 0===me&&void 0!==me?function(e){return"function"==typeof e||e===me}:function(e){return"function"==typeof e},ve=ge,be=function(e){return"object"==typeof e?null!==e:ve(e)},we=C,xe=ge,Se=function(e,t){return arguments.length<2?(r=we[e],xe(r)?r:void 0):we[e]&&we[e][t];var r},Ee=Z({}.isPrototypeOf),Ae=C.navigator,Re=Ae&&Ae.userAgent,Oe=Re?String(Re):"",Pe=C,ke=Oe,je=Pe.process,Te=Pe.Deno,Ie=je&&je.versions||Te&&Te.version,Ne=Ie&&Ie.v8;Ne&&(V=($=Ne.split("."))[0]>0&&$[0]<4?1:+($[0]+$[1])),!V&&ke&&(!($=ke.match(/Edge\/(\d+)/))||$[1]>=74)&&($=ke.match(/Chrome\/(\d+)/))&&(V=+$[1]);var _e=V,Ce=_e,Ue=L,Le=C.String,Fe=!!Object.getOwnPropertySymbols&&!Ue((function(){var e=Symbol("symbol detection");return!Le(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ce&&Ce<41})),De=Fe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Be=Se,Me=ge,qe=Ee,We=Object,Ge=De?function(e){return"symbol"==typeof e}:function(e){var t=Be("Symbol");return Me(t)&&qe(t.prototype,We(e))},ze=String,He=function(e){try{return ze(e)}catch(e){return"Object"}},$e=ge,Ve=He,Ke=TypeError,Ye=function(e){if($e(e))return e;throw new Ke(Ve(e)+" is not a function")},Je=Ye,Qe=ce,Xe=function(e,t){var r=e[t];return Qe(r)?void 0:Je(r)},Ze=q,et=ge,tt=be,rt=TypeError,nt={exports:{}},ot=C,it=Object.defineProperty,at=function(e,t){try{it(ot,e,{value:t,configurable:!0,writable:!0})}catch(r){ot[e]=t}return t},st=C,ut=at,ct="__core-js_shared__",lt=nt.exports=st[ct]||ut(ct,{});(lt.versions||(lt.versions=[])).push({version:"3.40.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"});var pt=nt.exports,ft=pt,ht=function(e,t){return ft[e]||(ft[e]=t||{})},dt=fe,yt=Object,mt=function(e){return yt(dt(e))},gt=mt,vt=Z({}.hasOwnProperty),bt=Object.hasOwn||function(e,t){return vt(gt(e),t)},wt=Z,xt=0,St=Math.random(),Et=wt(1..toString),At=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Et(++xt+St,36)},Rt=ht,Ot=bt,Pt=At,kt=Fe,jt=De,Tt=C.Symbol,It=Rt("wks"),Nt=jt?Tt.for||Tt:Tt&&Tt.withoutSetter||Pt,_t=function(e){return Ot(It,e)||(It[e]=kt&&Ot(Tt,e)?Tt[e]:Nt("Symbol."+e)),It[e]},Ct=q,Ut=be,Lt=Ge,Ft=Xe,Dt=function(e,t){var r,n;if("string"===t&&et(r=e.toString)&&!tt(n=Ze(r,e)))return n;if(et(r=e.valueOf)&&!tt(n=Ze(r,e)))return n;if("string"!==t&&et(r=e.toString)&&!tt(n=Ze(r,e)))return n;throw new rt("Can't convert object to primitive value")},Bt=TypeError,Mt=_t("toPrimitive"),qt=function(e,t){if(!Ut(e)||Lt(e))return e;var r,n=Ft(e,Mt);if(n){if(void 0===t&&(t="default"),r=Ct(n,e,t),!Ut(r)||Lt(r))return r;throw new Bt("Can't convert object to primitive value")}return void 0===t&&(t="number"),Dt(e,t)},Wt=qt,Gt=Ge,zt=function(e){var t=Wt(e,"string");return Gt(t)?t:t+""},Ht=be,$t=C.document,Vt=Ht($t)&&Ht($t.createElement),Kt=function(e){return Vt?$t.createElement(e):{}},Yt=Kt,Jt=!F&&!L((function(){return 7!==Object.defineProperty(Yt("div"),"a",{get:function(){return 7}}).a})),Qt=F,Xt=q,Zt=W,er=K,tr=ye,rr=zt,nr=bt,or=Jt,ir=Object.getOwnPropertyDescriptor;U.f=Qt?ir:function(e,t){if(e=tr(e),t=rr(t),or)try{return ir(e,t)}catch(e){}if(nr(e,t))return er(!Xt(Zt.f,e,t),e[t])};var ar={},sr=F&&L((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ur=be,cr=String,lr=TypeError,pr=function(e){if(ur(e))return e;throw new lr(cr(e)+" is not an object")},fr=F,hr=Jt,dr=sr,yr=pr,mr=zt,gr=TypeError,vr=Object.defineProperty,br=Object.getOwnPropertyDescriptor,wr="enumerable",xr="configurable",Sr="writable";ar.f=fr?dr?function(e,t,r){if(yr(e),t=mr(t),yr(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Sr in r&&!r[Sr]){var n=br(e,t);n&&n[Sr]&&(e[t]=r.value,r={configurable:xr in r?r[xr]:n[xr],enumerable:wr in r?r[wr]:n[wr],writable:!1})}return vr(e,t,r)}:vr:function(e,t,r){if(yr(e),t=mr(t),yr(r),hr)try{return vr(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new gr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Er=ar,Ar=K,Rr=F?function(e,t,r){return Er.f(e,t,Ar(1,r))}:function(e,t,r){return e[t]=r,e},Or={exports:{}},Pr=F,kr=bt,jr=Function.prototype,Tr=Pr&&Object.getOwnPropertyDescriptor,Ir=kr(jr,"name"),Nr={EXISTS:Ir,PROPER:Ir&&"something"===function(){}.name,CONFIGURABLE:Ir&&(!Pr||Pr&&Tr(jr,"name").configurable)},_r=ge,Cr=pt,Ur=Z(Function.toString);_r(Cr.inspectSource)||(Cr.inspectSource=function(e){return Ur(e)});var Lr,Fr,Dr,Br=Cr.inspectSource,Mr=ge,qr=C.WeakMap,Wr=Mr(qr)&&/native code/.test(String(qr)),Gr=At,zr=ht("keys"),Hr=function(e){return zr[e]||(zr[e]=Gr(e))},$r={},Vr=Wr,Kr=C,Yr=be,Jr=Rr,Qr=bt,Xr=pt,Zr=Hr,en=$r,tn="Object already initialized",rn=Kr.TypeError,nn=Kr.WeakMap;if(Vr||Xr.state){var on=Xr.state||(Xr.state=new nn);on.get=on.get,on.has=on.has,on.set=on.set,Lr=function(e,t){if(on.has(e))throw new rn(tn);return t.facade=e,on.set(e,t),t},Fr=function(e){return on.get(e)||{}},Dr=function(e){return on.has(e)}}else{var an=Zr("state");en[an]=!0,Lr=function(e,t){if(Qr(e,an))throw new rn(tn);return t.facade=e,Jr(e,an,t),t},Fr=function(e){return Qr(e,an)?e[an]:{}},Dr=function(e){return Qr(e,an)}}var sn={set:Lr,get:Fr,has:Dr,enforce:function(e){return Dr(e)?Fr(e):Lr(e,{})},getterFor:function(e){return function(t){var r;if(!Yr(t)||(r=Fr(t)).type!==e)throw new rn("Incompatible receiver, "+e+" required");return r}}},un=Z,cn=L,ln=ge,pn=bt,fn=F,hn=Nr.CONFIGURABLE,dn=Br,yn=sn.enforce,mn=sn.get,gn=String,vn=Object.defineProperty,bn=un("".slice),wn=un("".replace),xn=un([].join),Sn=fn&&!cn((function(){return 8!==vn((function(){}),"length",{value:8}).length})),En=String(String).split("String"),An=Or.exports=function(e,t,r){"Symbol("===bn(gn(t),0,7)&&(t="["+wn(gn(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!pn(e,"name")||hn&&e.name!==t)&&(fn?vn(e,"name",{value:t,configurable:!0}):e.name=t),Sn&&r&&pn(r,"arity")&&e.length!==r.arity&&vn(e,"length",{value:r.arity});try{r&&pn(r,"constructor")&&r.constructor?fn&&vn(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=yn(e);return pn(n,"source")||(n.source=xn(En,"string"==typeof t?t:"")),e};Function.prototype.toString=An((function(){return ln(this)&&mn(this).source||dn(this)}),"toString");var Rn,On=Or.exports,Pn=ge,kn=ar,jn=On,Tn=at,In=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(Pn(r)&&jn(r,i,n),n.global)o?e[t]=r:Tn(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:kn.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Nn={},_n=Math.ceil,Cn=Math.floor,Un=Math.trunc||function(e){var t=+e;return(t>0?Cn:_n)(t)},Ln=function(e){var t=+e;return t!=t||0===t?0:Un(t)},Fn=Ln,Dn=Math.max,Bn=Math.min,Mn=function(e,t){var r=Fn(e);return r<0?Dn(r+t,0):Bn(r,t)},qn=Ln,Wn=Math.min,Gn=function(e){var t=qn(e);return t>0?Wn(t,9007199254740991):0},zn=Gn,Hn=function(e){return zn(e.length)},$n=ye,Vn=Mn,Kn=Hn,Yn={indexOf:(Rn=!1,function(e,t,r){var n=$n(e),o=Kn(n);if(0===o)return!Rn&&-1;var i,a=Vn(r,o);if(Rn&&t!=t){for(;o>a;)if((i=n[a++])!=i)return!0}else for(;o>a;a++)if((Rn||a in n)&&n[a]===t)return Rn||a||0;return!Rn&&-1})},Jn=bt,Qn=ye,Xn=Yn.indexOf,Zn=$r,eo=Z([].push),to=function(e,t){var r,n=Qn(e),o=0,i=[];for(r in n)!Jn(Zn,r)&&Jn(n,r)&&eo(i,r);for(;t.length>o;)Jn(n,r=t[o++])&&(~Xn(i,r)||eo(i,r));return i},ro=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],no=to,oo=ro.concat("length","prototype");Nn.f=Object.getOwnPropertyNames||function(e){return no(e,oo)};var io={};io.f=Object.getOwnPropertySymbols;var ao=Se,so=Nn,uo=io,co=pr,lo=Z([].concat),po=ao("Reflect","ownKeys")||function(e){var t=so.f(co(e)),r=uo.f;return r?lo(t,r(e)):t},fo=bt,ho=po,yo=U,mo=ar,go=L,vo=ge,bo=/#|\.prototype\./,wo=function(e,t){var r=So[xo(e)];return r===Ao||r!==Eo&&(vo(t)?go(t):!!t)},xo=wo.normalize=function(e){return String(e).replace(bo,".").toLowerCase()},So=wo.data={},Eo=wo.NATIVE="N",Ao=wo.POLYFILL="P",Ro=wo,Oo=C,Po=U.f,ko=Rr,jo=In,To=at,Io=function(e,t,r){for(var n=ho(t),o=mo.f,i=yo.f,a=0;a<n.length;a++){var s=n[a];fo(e,s)||r&&fo(r,s)||o(e,s,i(t,s))}},No=Ro,_o=function(e,t){var r,n,o,i,a,s=e.target,u=e.global,c=e.stat;if(r=u?Oo:c?Oo[s]||To(s,{}):Oo[s]&&Oo[s].prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=Po(r,n))&&a.value:r[n],!No(u?n:s+(c?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Io(i,o)}(e.sham||o&&o.sham)&&ko(i,"sham",!0),jo(r,n,i,e)}},Co=ne,Uo=Array.isArray||function(e){return"Array"===Co(e)},Lo=TypeError,Fo=F,Do=ar,Bo=K,Mo=function(e,t,r){Fo?Do.f(e,t,Bo(0,r)):e[t]=r},qo={};qo[_t("toStringTag")]="z";var Wo="[object z]"===String(qo),Go=Wo,zo=ge,Ho=ne,$o=_t("toStringTag"),Vo=Object,Ko="Arguments"===Ho(function(){return arguments}()),Yo=Go?Ho:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Vo(e),$o))?r:Ko?Ho(t):"Object"===(n=Ho(t))&&zo(t.callee)?"Arguments":n},Jo=Z,Qo=L,Xo=ge,Zo=Yo,ei=Br,ti=function(){},ri=Se("Reflect","construct"),ni=/^\s*(?:class|function)\b/,oi=Jo(ni.exec),ii=!ni.test(ti),ai=function(e){if(!Xo(e))return!1;try{return ri(ti,[],e),!0}catch(e){return!1}},si=function(e){if(!Xo(e))return!1;switch(Zo(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ii||!!oi(ni,ei(e))}catch(e){return!0}};si.sham=!0;var ui=!ri||Qo((function(){var e;return ai(ai.call)||!ai(Object)||!ai((function(){e=!0}))||e}))?si:ai,ci=Uo,li=ui,pi=be,fi=_t("species"),hi=Array,di=function(e){var t;return ci(e)&&(t=e.constructor,(li(t)&&(t===hi||ci(t.prototype))||pi(t)&&null===(t=t[fi]))&&(t=void 0)),void 0===t?hi:t},yi=function(e,t){return new(di(e))(0===t?0:t)},mi=L,gi=_e,vi=_t("species"),bi=function(e){return gi>=51||!mi((function(){var t=[];return(t.constructor={})[vi]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},wi=_o,xi=L,Si=Uo,Ei=be,Ai=mt,Ri=Hn,Oi=function(e){if(e>9007199254740991)throw Lo("Maximum allowed index exceeded");return e},Pi=Mo,ki=yi,ji=bi,Ti=_e,Ii=_t("isConcatSpreadable"),Ni=Ti>=51||!xi((function(){var e=[];return e[Ii]=!1,e.concat()[0]!==e})),_i=function(e){if(!Ei(e))return!1;var t=e[Ii];return void 0!==t?!!t:Si(e)};wi({target:"Array",proto:!0,arity:1,forced:!Ni||!ji("concat")},{concat:function(e){var t,r,n,o,i,a=Ai(this),s=ki(a,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(_i(i=-1===t?a:arguments[t]))for(o=Ri(i),Oi(u+o),r=0;r<o;r++,u++)r in i&&Pi(s,u,i[r]);else Oi(u+1),Pi(s,u++,i);return s.length=u,s}});var Ci=On,Ui=ar,Li=function(e,t,r){return r.get&&Ci(r.get,t,{getter:!0}),r.set&&Ci(r.set,t,{setter:!0}),Ui.f(e,t,r)},Fi=F,Di=Nr.EXISTS,Bi=Z,Mi=Li,qi=Function.prototype,Wi=Bi(qi.toString),Gi=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,zi=Bi(Gi.exec);Fi&&!Di&&Mi(qi,"name",{configurable:!0,get:function(){try{return zi(Gi,Wi(this))[1]}catch(e){return""}}});var Hi=Z,$i=Ye,Vi=be,Ki=function(e){return Vi(e)||null===e},Yi=String,Ji=TypeError,Qi=function(e,t,r){try{return Hi($i(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},Xi=be,Zi=fe,ea=function(e){if(Ki(e))return e;throw new Ji("Can't set "+Yi(e)+" as a prototype")},ta=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Qi(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Zi(r),ea(n),Xi(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0);_o({target:"Object",stat:!0},{setPrototypeOf:ta});var ra=function(e){function t(e){var r;return s(this,t),r=a(this,t,["This function is not supported in ".concat(e," environment")]),Error.captureStackTrace&&Error.captureStackTrace(r,t),r.name="UnsupportedPlatformError",r.platform=e,Object.setPrototypeOf(r,t.prototype),r}return f(t,e),c(t)}(k(Error));function na(){this._types=Object.create(null),this._extensions=Object.create(null);for(let e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}na.prototype.define=function(e,t){for(let r in e){let n=e[r].map((function(e){return e.toLowerCase()}));r=r.toLowerCase();for(let e=0;e<n.length;e++){const o=n[e];if("*"!==o[0]){if(!t&&o in this._types)throw new Error('Attempt to change mapping for "'+o+'" extension from "'+this._types[o]+'" to "'+r+'". Pass `force=true` to allow this, otherwise remove "'+o+'" from the list of extensions for "'+r+'".');this._types[o]=r}}if(t||!this._extensions[r]){const e=n[0];this._extensions[r]="*"!==e[0]?e:e.substr(1)}}},na.prototype.getType=function(e){let t=(e=String(e)).replace(/^.*[/\\]/,"").toLowerCase(),r=t.replace(/^.*\./,"").toLowerCase(),n=t.length<e.length;return(r.length<t.length-1||!n)&&this._types[r]||null},na.prototype.getExtension=function(e){return(e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1)&&this._extensions[e.toLowerCase()]||null};var oa=I(new na({"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]})),ia="5.7.4",aa=function(){var e=i(j().mark((function e(){var t;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("object"!==("undefined"==typeof kintone?"undefined":P(kintone))||null===kintone||"function"!=typeof kintone.getRequestToken){e.next=2;break}return e.abrupt("return",kintone.getRequestToken());case 2:if("object"!==("undefined"==typeof garoon?"undefined":P(garoon))||null===garoon||"function"!=typeof(null===(t=garoon.connect)||void 0===t||null===(t=t.kintone)||void 0===t?void 0:t.getRequestToken)){e.next=4;break}return e.abrupt("return",garoon.connect.kintone.getRequestToken());case 4:throw new Error("session authentication must specify a request token");case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),sa=Object.freeze({__proto__:null,buildBaseUrl:function(e){if(e)return e;if(void 0===location)throw new Error("The baseUrl parameter is required for this environment");var t=location,r=t.host,n=t.protocol;return"".concat(n,"//").concat(r)},buildFormDataValue:function(e,t){var r={};return t&&(r.type=oa.getType(t)||void 0),new Blob([e],r)},buildHeaders:function(){return{}},buildPlatformDependentConfig:function(){return{}},getDefaultAuth:function(){return{type:"session"}},getRequestToken:aa,getVersion:function(){return ia},readFileFromPath:function(e){throw new ra("Browser")}}),ua={},ca=to,la=ro,pa=Object.keys||function(e){return ca(e,la)},fa=F,ha=sr,da=ar,ya=pr,ma=ye,ga=pa;ua.f=fa&&!ha?Object.defineProperties:function(e,t){ya(e);for(var r,n=ma(t),o=ga(t),i=o.length,a=0;i>a;)da.f(e,r=o[a++],n[r]);return e};var va,ba=Se("document","documentElement"),wa=pr,xa=ua,Sa=ro,Ea=$r,Aa=ba,Ra=Kt,Oa="prototype",Pa="script",ka=Hr("IE_PROTO"),ja=function(){},Ta=function(e){return"<"+Pa+">"+e+"</"+Pa+">"},Ia=function(e){e.write(Ta("")),e.close();var t=e.parentWindow.Object;return e=null,t},Na=function(){try{va=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;Na="undefined"!=typeof document?document.domain&&va?Ia(va):(t=Ra("iframe"),r="java"+Pa+":",t.style.display="none",Aa.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Ta("document.F=Object")),e.close(),e.F):Ia(va);for(var n=Sa.length;n--;)delete Na[Oa][Sa[n]];return Na()};Ea[ka]=!0;var _a=Object.create||function(e,t){var r;return null!==e?(ja[Oa]=wa(e),r=new ja,ja[Oa]=null,r[ka]=e):r=Na(),void 0===t?r:xa.f(r,t)},Ca=_t,Ua=_a,La=ar.f,Fa=Ca("unscopables"),Da=Array.prototype;void 0===Da[Fa]&&La(Da,Fa,{configurable:!0,value:Ua(null)});var Ba,Ma,qa,Wa={},Ga=!L((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),za=bt,Ha=ge,$a=mt,Va=Ga,Ka=Hr("IE_PROTO"),Ya=Object,Ja=Ya.prototype,Qa=Va?Ya.getPrototypeOf:function(e){var t=$a(e);if(za(t,Ka))return t[Ka];var r=t.constructor;return Ha(r)&&t instanceof r?r.prototype:t instanceof Ya?Ja:null},Xa=L,Za=ge,es=be,ts=Qa,rs=In,ns=_t("iterator"),os=!1;[].keys&&("next"in(qa=[].keys())?(Ma=ts(ts(qa)))!==Object.prototype&&(Ba=Ma):os=!0);var is=!es(Ba)||Xa((function(){var e={};return Ba[ns].call(e)!==e}));is&&(Ba={}),Za(Ba[ns])||rs(Ba,ns,(function(){return this}));var as={IteratorPrototype:Ba,BUGGY_SAFARI_ITERATORS:os},ss=ar.f,us=bt,cs=_t("toStringTag"),ls=function(e,t,r){e&&!r&&(e=e.prototype),e&&!us(e,cs)&&ss(e,cs,{configurable:!0,value:t})},ps=as.IteratorPrototype,fs=_a,hs=K,ds=ls,ys=Wa,ms=function(){return this},gs=function(e,t,r,n){var o=t+" Iterator";return e.prototype=fs(ps,{next:hs(+!n,r)}),ds(e,o,!1),ys[o]=ms,e},vs=_o,bs=q,ws=ge,xs=gs,Ss=Qa,Es=ta,As=ls,Rs=Rr,Os=In,Ps=Wa,ks=Nr.PROPER,js=Nr.CONFIGURABLE,Ts=as.IteratorPrototype,Is=as.BUGGY_SAFARI_ITERATORS,Ns=_t("iterator"),_s="keys",Cs="values",Us="entries",Ls=function(){return this},Fs=function(e,t,r,n,o,i,a){xs(r,t,n);var s,u,c,l=function(e){if(e===o&&y)return y;if(!Is&&e&&e in h)return h[e];switch(e){case _s:case Cs:case Us:return function(){return new r(this,e)}}return function(){return new r(this)}},p=t+" Iterator",f=!1,h=e.prototype,d=h[Ns]||h["@@iterator"]||o&&h[o],y=!Is&&d||l(o),m="Array"===t&&h.entries||d;if(m&&(s=Ss(m.call(new e)))!==Object.prototype&&s.next&&(Ss(s)!==Ts&&(Es?Es(s,Ts):ws(s[Ns])||Os(s,Ns,Ls)),As(s,p,!0)),ks&&o===Cs&&d&&d.name!==Cs&&(js?Rs(h,"name",Cs):(f=!0,y=function(){return bs(d,this)})),o)if(u={values:l(Cs),keys:i?y:l(_s),entries:l(Us)},a)for(c in u)(Is||f||!(c in h))&&Os(h,c,u[c]);else vs({target:t,proto:!0,forced:Is||f},u);return h[Ns]!==y&&Os(h,Ns,y,{name:o}),Ps[t]=y,u},Ds=function(e,t){return{value:e,done:t}},Bs=ye,Ms=function(e){Da[Fa][e]=!0},qs=Wa,Ws=sn,Gs=ar.f,zs=Fs,Hs=Ds,$s=F,Vs="Array Iterator",Ks=Ws.set,Ys=Ws.getterFor(Vs),Js=zs(Array,"Array",(function(e,t){Ks(this,{type:Vs,target:Bs(e),index:0,kind:t})}),(function(){var e=Ys(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Hs(void 0,!0);switch(e.kind){case"keys":return Hs(r,!1);case"values":return Hs(t[r],!1)}return Hs([r,t[r]],!1)}),"values"),Qs=qs.Arguments=qs.Array;if(Ms("keys"),Ms("values"),Ms("entries"),$s&&"values"!==Qs.name)try{Gs(Qs,"name",{value:"values"})}catch(e){}var Xs=Z,Zs=In,eu=Date.prototype,tu="Invalid Date",ru="toString",nu=Xs(eu[ru]),ou=Xs(eu.getTime);String(new Date(NaN))!==tu&&Zs(eu,ru,(function(){var e=ou(this);return e==e?nu(this):tu}));var iu=Yo,au=Wo?{}.toString:function(){return"[object "+iu(this)+"]"};Wo||In(Object.prototype,"toString",au,{unsafe:!0});var su,uu=Yo,cu=String,lu=function(e){if("Symbol"===uu(e))throw new TypeError("Cannot convert a Symbol value to a string");return cu(e)},pu="\t\n\v\f\r \u2028\u2029\ufeff",fu=fe,hu=lu,du=pu,yu=Z("".replace),mu=RegExp("^["+du+"]+"),gu=RegExp("(^|[^"+du+"])["+du+"]+$"),vu={trim:(su=3,function(e){var t=hu(fu(e));return 1&su&&(t=yu(t,mu,"")),2&su&&(t=yu(t,gu,"$1")),t})},bu=C,wu=L,xu=lu,Su=vu.trim,Eu=pu,Au=Z("".charAt),Ru=bu.parseFloat,Ou=bu.Symbol,Pu=Ou&&Ou.iterator,ku=1/Ru(Eu+"-0")!=-1/0||Pu&&!wu((function(){Ru(Object(Pu))}))?function(e){var t=Su(xu(e)),r=Ru(t);return 0===r&&"-"===Au(t,0)?-0:r}:Ru;_o({global:!0,forced:parseFloat!==ku},{parseFloat:ku});var ju=pr,Tu=function(){var e=ju(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Iu=L,Nu=C.RegExp,_u=Iu((function(){var e=Nu("a","y");return e.lastIndex=2,null!==e.exec("abcd")}));_u||Iu((function(){return!Nu("a","y").sticky}));var Cu,Uu,Lu={BROKEN_CARET:_u||Iu((function(){var e=Nu("^r","gy");return e.lastIndex=2,null!==e.exec("str")}))},Fu=L,Du=C.RegExp,Bu=Fu((function(){var e=Du(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),Mu=L,qu=C.RegExp,Wu=Mu((function(){var e=qu("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Gu=q,zu=Z,Hu=lu,$u=Tu,Vu=Lu,Ku=_a,Yu=sn.get,Ju=Bu,Qu=Wu,Xu=ht("native-string-replace",String.prototype.replace),Zu=RegExp.prototype.exec,ec=Zu,tc=zu("".charAt),rc=zu("".indexOf),nc=zu("".replace),oc=zu("".slice),ic=(Uu=/b*/g,Gu(Zu,Cu=/a/,"a"),Gu(Zu,Uu,"a"),0!==Cu.lastIndex||0!==Uu.lastIndex),ac=Vu.BROKEN_CARET,sc=void 0!==/()??/.exec("")[1];(ic||sc||ac||Ju||Qu)&&(ec=function(e){var t,r,n,o,i,a,s,u=this,c=Yu(u),l=Hu(e),p=c.raw;if(p)return p.lastIndex=u.lastIndex,t=Gu(ec,p,l),u.lastIndex=p.lastIndex,t;var f=c.groups,h=ac&&u.sticky,d=Gu($u,u),y=u.source,m=0,g=l;if(h&&(d=nc(d,"y",""),-1===rc(d,"g")&&(d+="g"),g=oc(l,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==tc(l,u.lastIndex-1))&&(y="(?: "+y+")",g=" "+g,m++),r=new RegExp("^(?:"+y+")",d)),sc&&(r=new RegExp("^"+y+"$(?!\\s)",d)),ic&&(n=u.lastIndex),o=Gu(Zu,h?r:u,g),h?o?(o.input=oc(o.input,m),o[0]=oc(o[0],m),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:ic&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),sc&&o&&o.length>1&&Gu(Xu,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&f)for(o.groups=a=Ku(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var uc=ec;_o({target:"RegExp",proto:!0,forced:/./.exec!==uc},{exec:uc});var cc=q,lc=bt,pc=Ee,fc=Tu,hc=RegExp.prototype,dc=Nr.PROPER,yc=In,mc=pr,gc=lu,vc=L,bc=function(e){var t=e.flags;return void 0!==t||"flags"in hc||lc(e,"flags")||!pc(hc,e)?t:cc(fc,e)},wc="toString",xc=RegExp.prototype,Sc=xc[wc],Ec=vc((function(){return"/a/b"!==Sc.call({source:"a",flags:"b"})})),Ac=dc&&Sc.name!==wc;(Ec||Ac)&&yc(xc,wc,(function(){var e=mc(this);return"/"+gc(e.source)+"/"+gc(bc(e))}),{unsafe:!0});var Rc=Z,Oc=Ln,Pc=lu,kc=fe,jc=Rc("".charAt),Tc=Rc("".charCodeAt),Ic=Rc("".slice),Nc=function(e){return function(t,r){var n,o,i=Pc(kc(t)),a=Oc(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=Tc(i,a))<55296||n>56319||a+1===s||(o=Tc(i,a+1))<56320||o>57343?e?jc(i,a):n:e?Ic(i,a,a+2):o-56320+(n-55296<<10)+65536}},_c={codeAt:Nc(!1),charAt:Nc(!0)},Cc=_c.charAt,Uc=lu,Lc=sn,Fc=Fs,Dc=Ds,Bc="String Iterator",Mc=Lc.set,qc=Lc.getterFor(Bc);Fc(String,"String",(function(e){Mc(this,{type:Bc,string:Uc(e),index:0})}),(function(){var e,t=qc(this),r=t.string,n=t.index;return n>=r.length?Dc(void 0,!0):(e=Cc(r,n),t.index+=e.length,Dc(e,!1))}));var Wc=D,Gc=Function.prototype,zc=Gc.apply,Hc=Gc.call,$c="object"==typeof Reflect&&Reflect.apply||(Wc?Hc.bind(zc):function(){return Hc.apply(zc,arguments)}),Vc=q,Kc=In,Yc=uc,Jc=L,Qc=_t,Xc=Rr,Zc=Qc("species"),el=RegExp.prototype,tl=function(e,t,r,n){var o=Qc(e),i=!Jc((function(){var t={};return t[o]=function(){return 7},7!==""[e](t)})),a=i&&!Jc((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Zc]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var s=/./[o],u=t(o,""[e],(function(e,t,r,n,o){var a=t.exec;return a===Yc||a===el.exec?i&&!o?{done:!0,value:Vc(s,t,r,n)}:{done:!0,value:Vc(e,r,t,n)}:{done:!1}}));Kc(String.prototype,e,u[0]),Kc(el,o,u[1])}n&&Xc(el[o],"sham",!0)},rl=_c.charAt,nl=function(e,t,r){return t+(r?rl(e,t).length:1)},ol=Z,il=mt,al=Math.floor,sl=ol("".charAt),ul=ol("".replace),cl=ol("".slice),ll=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,pl=/\$([$&'`]|\d{1,2})/g,fl=q,hl=pr,dl=ge,yl=ne,ml=uc,gl=TypeError,vl=function(e,t){var r=e.exec;if(dl(r)){var n=fl(r,e,t);return null!==n&&hl(n),n}if("RegExp"===yl(e))return fl(ml,e,t);throw new gl("RegExp#exec called on incompatible receiver")},bl=$c,wl=q,xl=Z,Sl=tl,El=L,Al=pr,Rl=ge,Ol=ce,Pl=Ln,kl=Gn,jl=lu,Tl=fe,Il=nl,Nl=Xe,_l=function(e,t,r,n,o,i){var a=r+e.length,s=n.length,u=pl;return void 0!==o&&(o=il(o),u=ll),ul(i,u,(function(i,u){var c;switch(sl(u,0)){case"$":return"$";case"&":return e;case"`":return cl(t,0,r);case"'":return cl(t,a);case"<":c=o[cl(u,1,-1)];break;default:var l=+u;if(0===l)return i;if(l>s){var p=al(l/10);return 0===p?i:p<=s?void 0===n[p-1]?sl(u,1):n[p-1]+sl(u,1):i}c=n[l-1]}return void 0===c?"":c}))},Cl=vl,Ul=_t("replace"),Ll=Math.max,Fl=Math.min,Dl=xl([].concat),Bl=xl([].push),Ml=xl("".indexOf),ql=xl("".slice),Wl="$0"==="a".replace(/./,"$0"),Gl=!!/./[Ul]&&""===/./[Ul]("a","$0");Sl("replace",(function(e,t,r){var n=Gl?"$":"$0";return[function(e,r){var n=Tl(this),o=Ol(e)?void 0:Nl(e,Ul);return o?wl(o,e,n,r):wl(t,jl(n),e,r)},function(e,o){var i=Al(this),a=jl(e);if("string"==typeof o&&-1===Ml(o,n)&&-1===Ml(o,"$<")){var s=r(t,i,a,o);if(s.done)return s.value}var u=Rl(o);u||(o=jl(o));var c,l=i.global;l&&(c=i.unicode,i.lastIndex=0);for(var p,f=[];null!==(p=Cl(i,a))&&(Bl(f,p),l);){""===jl(p[0])&&(i.lastIndex=Il(a,kl(i.lastIndex),c))}for(var h,d="",y=0,m=0;m<f.length;m++){for(var g,v=jl((p=f[m])[0]),b=Ll(Fl(Pl(p.index),a.length),0),w=[],x=1;x<p.length;x++)Bl(w,void 0===(h=p[x])?h:String(h));var S=p.groups;if(u){var E=Dl([v],w,b,a);void 0!==S&&Bl(E,S),g=jl(bl(o,void 0,E))}else g=_l(v,a,b,w,S,o);b>=y&&(d+=ql(a,y,b)+g,y=b+v.length)}return d+ql(a,y)}]}),!!El((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Wl||Gl);var zl={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Hl=Kt("span").classList,$l=Hl&&Hl.constructor&&Hl.constructor.prototype,Vl=$l===Object.prototype?void 0:$l,Kl=C,Yl=zl,Jl=Vl,Ql=Js,Xl=Rr,Zl=ls,ep=_t("iterator"),tp=Ql.values,rp=function(e,t){if(e){if(e[ep]!==tp)try{Xl(e,ep,tp)}catch(t){e[ep]=tp}if(Zl(e,t,!0),Yl[t])for(var r in Ql)if(e[r]!==Ql[r])try{Xl(e,r,Ql[r])}catch(t){e[r]=Ql[r]}}};for(var np in Yl)rp(Kl[np]&&Kl[np].prototype,np);rp(Jl,"DOMTokenList");var op=L,ip=F,ap=_t("iterator"),sp=!op((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),r.delete("a",2),r.delete("b",void 0),!t.size&&!ip||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[ap]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host})),up=ne,cp=Z,lp=function(e){if("Function"===up(e))return cp(e)},pp=Ye,fp=D,hp=lp(lp.bind),dp=function(e,t){return pp(e),void 0===t?e:fp?hp(e,t):function(){return e.apply(t,arguments)}},yp=Ee,mp=TypeError,gp=function(e,t){if(yp(t,e))return e;throw new mp("Incorrect invocation")},vp=F,bp=Z,wp=q,xp=L,Sp=pa,Ep=io,Ap=W,Rp=mt,Op=ue,Pp=Object.assign,kp=Object.defineProperty,jp=bp([].concat),Tp=!Pp||xp((function(){if(vp&&1!==Pp({b:1},Pp(kp({},"a",{enumerable:!0,get:function(){kp(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!==Pp({},e)[r]||Sp(Pp({},t)).join("")!==n}))?function(e,t){for(var r=Rp(e),n=arguments.length,o=1,i=Ep.f,a=Ap.f;n>o;)for(var s,u=Op(arguments[o++]),c=i?jp(Sp(u),i(u)):Sp(u),l=c.length,p=0;l>p;)s=c[p++],vp&&!wp(a,u,s)||(r[s]=u[s]);return r}:Pp,Ip=q,Np=pr,_p=Xe,Cp=pr,Up=function(e,t,r){var n,o;Np(e);try{if(!(n=_p(e,"return"))){if("throw"===t)throw r;return r}n=Ip(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return Np(n),r},Lp=Wa,Fp=_t("iterator"),Dp=Array.prototype,Bp=Yo,Mp=Xe,qp=ce,Wp=Wa,Gp=_t("iterator"),zp=function(e){if(!qp(e))return Mp(e,Gp)||Mp(e,"@@iterator")||Wp[Bp(e)]},Hp=q,$p=Ye,Vp=pr,Kp=He,Yp=zp,Jp=TypeError,Qp=function(e,t){var r=arguments.length<2?Yp(e):t;if($p(r))return Vp(Hp(r,e));throw new Jp(Kp(e)+" is not iterable")},Xp=dp,Zp=q,ef=mt,tf=function(e,t,r,n){try{return n?t(Cp(r)[0],r[1]):t(r)}catch(t){Up(e,"throw",t)}},rf=function(e){return void 0!==e&&(Lp.Array===e||Dp[Fp]===e)},nf=ui,of=Hn,af=Mo,sf=Qp,uf=zp,cf=Array,lf=Z([].slice),pf=Z,ff=2147483647,hf=/[^\0-\u007E]/,df=/[.\u3002\uFF0E\uFF61]/g,yf="Overflow: input needs wider integers to process",mf=RangeError,gf=pf(df.exec),vf=Math.floor,bf=String.fromCharCode,wf=pf("".charCodeAt),xf=pf([].join),Sf=pf([].push),Ef=pf("".replace),Af=pf("".split),Rf=pf("".toLowerCase),Of=function(e){return e+22+75*(e<26)},Pf=function(e,t,r){var n=0;for(e=r?vf(e/700):e>>1,e+=vf(e/t);e>455;)e=vf(e/35),n+=36;return vf(n+36*e/(e+38))},kf=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=wf(e,r++);if(o>=55296&&o<=56319&&r<n){var i=wf(e,r++);56320==(64512&i)?Sf(t,((1023&o)<<10)+(1023&i)+65536):(Sf(t,o),r--)}else Sf(t,o)}return t}(e);var r,n,o=e.length,i=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&Sf(t,bf(n));var u=t.length,c=u;for(u&&Sf(t,"-");c<o;){var l=ff;for(r=0;r<e.length;r++)(n=e[r])>=i&&n<l&&(l=n);var p=c+1;if(l-i>vf((ff-a)/p))throw new mf(yf);for(a+=(l-i)*p,i=l,r=0;r<e.length;r++){if((n=e[r])<i&&++a>ff)throw new mf(yf);if(n===i){for(var f=a,h=36;;){var d=h<=s?1:h>=s+26?26:h-s;if(f<d)break;var y=f-d,m=36-d;Sf(t,bf(Of(d+y%m))),f=vf(y/m),h+=36}Sf(t,bf(Of(f))),s=Pf(a,p,c===u),a=0,c++}}a++,i++}return xf(t,"")},jf=TypeError,Tf=function(e,t){if(e<t)throw new jf("Not enough arguments");return e},If=_o,Nf=Z,_f=Mn,Cf=RangeError,Uf=String.fromCharCode,Lf=String.fromCodePoint,Ff=Nf([].join);If({target:"String",stat:!0,arity:1,forced:!!Lf&&1!==Lf.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,o=0;n>o;){if(t=+arguments[o++],_f(t,1114111)!==t)throw new Cf(t+" is not a valid code point");r[o]=t<65536?Uf(t):Uf(55296+((t-=65536)>>10),t%1024+56320)}return Ff(r,"")}});var Df=C,Bf=F,Mf=Object.getOwnPropertyDescriptor,qf=In,Wf=lf,Gf=Math.floor,zf=function(e,t){var r=e.length;if(r<8)for(var n,o,i=1;i<r;){for(o=i,n=e[i];o&&t(e[o-1],n)>0;)e[o]=e[--o];o!==i++&&(e[o]=n)}else for(var a=Gf(r/2),s=zf(Wf(e,0,a),t),u=zf(Wf(e,a),t),c=s.length,l=u.length,p=0,f=0;p<c||f<l;)e[p+f]=p<c&&f<l?t(s[p],u[f])<=0?s[p++]:u[f++]:p<c?s[p++]:u[f++];return e},Hf=_o,$f=C,Vf=function(e){if(!Bf)return Df[e];var t=Mf(Df,e);return t&&t.value},Kf=Se,Yf=q,Jf=Z,Qf=F,Xf=sp,Zf=In,eh=Li,th=function(e,t,r){for(var n in t)qf(e,n,t[n],r);return e},rh=ls,nh=gs,oh=sn,ih=gp,ah=ge,sh=bt,uh=dp,ch=Yo,lh=pr,ph=be,fh=lu,hh=_a,dh=K,yh=Qp,mh=zp,gh=Ds,vh=Tf,bh=zf,wh=_t("iterator"),xh="URLSearchParams",Sh=xh+"Iterator",Eh=oh.set,Ah=oh.getterFor(xh),Rh=oh.getterFor(Sh),Oh=Vf("fetch"),Ph=Vf("Request"),kh=Vf("Headers"),jh=Ph&&Ph.prototype,Th=kh&&kh.prototype,Ih=$f.TypeError,Nh=$f.encodeURIComponent,_h=String.fromCharCode,Ch=Kf("String","fromCodePoint"),Uh=parseInt,Lh=Jf("".charAt),Fh=Jf([].join),Dh=Jf([].push),Bh=Jf("".replace),Mh=Jf([].shift),qh=Jf([].splice),Wh=Jf("".split),Gh=Jf("".slice),zh=Jf(/./.exec),Hh=/\+/g,$h=/^[0-9a-f]+$/i,Vh=function(e,t){var r=Gh(e,t,t+2);return zh($h,r)?Uh(r,16):NaN},Kh=function(e){for(var t=0,r=128;r>0&&e&r;r>>=1)t++;return t},Yh=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},Jh=function(e){for(var t=(e=Bh(e,Hh," ")).length,r="",n=0;n<t;){var o=Lh(e,n);if("%"===o){if("%"===Lh(e,n+1)||n+3>t){r+="%",n++;continue}var i=Vh(e,n+1);if(i!=i){r+=o,n++;continue}n+=2;var a=Kh(i);if(0===a)o=_h(i);else{if(1===a||a>4){r+="�",n++;continue}for(var s=[i],u=1;u<a&&!(++n+3>t||"%"!==Lh(e,n));){var c=Vh(e,n+1);if(c!=c){n+=3;break}if(c>191||c<128)break;Dh(s,c),n+=2,u++}if(s.length!==a){r+="�";continue}var l=Yh(s);null===l?r+="�":o=Ch(l)}}r+=o,n++}return r},Qh=/[!'()~]|%20/g,Xh={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Zh=function(e){return Xh[e]},ed=function(e){return Bh(Nh(e),Qh,Zh)},td=nh((function(e,t){Eh(this,{type:Sh,target:Ah(e).entries,index:0,kind:t})}),xh,(function(){var e=Rh(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,gh(void 0,!0);var n=t[r];switch(e.kind){case"keys":return gh(n.key,!1);case"values":return gh(n.value,!1)}return gh([n.key,n.value],!1)}),!0),rd=function(e){this.entries=[],this.url=null,void 0!==e&&(ph(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Lh(e,0)?Gh(e,1):e:fh(e)))};rd.prototype={type:xh,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,s,u=this.entries,c=mh(e);if(c)for(r=(t=yh(e,c)).next;!(n=Yf(r,t)).done;){if(i=(o=yh(lh(n.value))).next,(a=Yf(i,o)).done||(s=Yf(i,o)).done||!Yf(i,o).done)throw new Ih("Expected sequence with length 2");Dh(u,{key:fh(a.value),value:fh(s.value)})}else for(var l in e)sh(e,l)&&Dh(u,{key:l,value:fh(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,o=Wh(e,"&"),i=0;i<o.length;)(t=o[i++]).length&&(r=Wh(t,"="),Dh(n,{key:Jh(Mh(r)),value:Jh(Fh(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],Dh(r,ed(e.key)+"="+ed(e.value));return Fh(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var nd=function(){ih(this,od);var e=Eh(this,new rd(arguments.length>0?arguments[0]:void 0));Qf||(this.size=e.entries.length)},od=nd.prototype;if(th(od,{append:function(e,t){var r=Ah(this);vh(arguments.length,2),Dh(r.entries,{key:fh(e),value:fh(t)}),Qf||this.length++,r.updateURL()},delete:function(e){for(var t=Ah(this),r=vh(arguments.length,1),n=t.entries,o=fh(e),i=r<2?void 0:arguments[1],a=void 0===i?i:fh(i),s=0;s<n.length;){var u=n[s];if(u.key!==o||void 0!==a&&u.value!==a)s++;else if(qh(n,s,1),void 0!==a)break}Qf||(this.size=n.length),t.updateURL()},get:function(e){var t=Ah(this).entries;vh(arguments.length,1);for(var r=fh(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=Ah(this).entries;vh(arguments.length,1);for(var r=fh(e),n=[],o=0;o<t.length;o++)t[o].key===r&&Dh(n,t[o].value);return n},has:function(e){for(var t=Ah(this).entries,r=vh(arguments.length,1),n=fh(e),o=r<2?void 0:arguments[1],i=void 0===o?o:fh(o),a=0;a<t.length;){var s=t[a++];if(s.key===n&&(void 0===i||s.value===i))return!0}return!1},set:function(e,t){var r=Ah(this);vh(arguments.length,1);for(var n,o=r.entries,i=!1,a=fh(e),s=fh(t),u=0;u<o.length;u++)(n=o[u]).key===a&&(i?qh(o,u--,1):(i=!0,n.value=s));i||Dh(o,{key:a,value:s}),Qf||(this.size=o.length),r.updateURL()},sort:function(){var e=Ah(this);bh(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=Ah(this).entries,n=uh(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new td(this,"keys")},values:function(){return new td(this,"values")},entries:function(){return new td(this,"entries")}},{enumerable:!0}),Zf(od,wh,od.entries,{name:"entries"}),Zf(od,"toString",(function(){return Ah(this).serialize()}),{enumerable:!0}),Qf&&eh(od,"size",{get:function(){return Ah(this).entries.length},configurable:!0,enumerable:!0}),rh(nd,xh),Hf({global:!0,constructor:!0,forced:!Xf},{URLSearchParams:nd}),!Xf&&ah(kh)){var id=Jf(Th.has),ad=Jf(Th.set),sd=function(e){if(ph(e)){var t,r=e.body;if(ch(r)===xh)return t=e.headers?new kh(e.headers):new kh,id(t,"content-type")||ad(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),hh(e,{body:dh(0,fh(r)),headers:dh(0,t)})}return e};if(ah(Oh)&&Hf({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Oh(e,arguments.length>1?sd(arguments[1]):{})}}),ah(Ph)){var ud=function(e){return ih(this,jh),new Ph(e,arguments.length>1?sd(arguments[1]):{})};jh.constructor=ud,ud.prototype=jh,Hf({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ud})}}var cd,ld=_o,pd=F,fd=sp,hd=C,dd=dp,yd=Z,md=In,gd=Li,vd=gp,bd=bt,wd=Tp,xd=function(e){var t=ef(e),r=nf(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Xp(o,n>2?arguments[2]:void 0));var a,s,u,c,l,p,f=uf(t),h=0;if(!f||this===cf&&rf(f))for(a=of(t),s=r?new this(a):cf(a);a>h;h++)p=i?o(t[h],h):t[h],af(s,h,p);else for(s=r?new this:[],l=(c=sf(t,f)).next;!(u=Zp(l,c)).done;h++)p=i?tf(c,o,[u.value,h],!0):u.value,af(s,h,p);return s.length=h,s},Sd=lf,Ed=_c.codeAt,Ad=function(e){var t,r,n=[],o=Af(Ef(Rf(e),df,"."),".");for(t=0;t<o.length;t++)r=o[t],Sf(n,gf(hf,r)?"xn--"+kf(r):r);return xf(n,".")},Rd=lu,Od=ls,Pd=Tf,kd={URLSearchParams:nd,getState:Ah},jd=sn,Td=jd.set,Id=jd.getterFor("URL"),Nd=kd.URLSearchParams,_d=kd.getState,Cd=hd.URL,Ud=hd.TypeError,Ld=hd.parseInt,Fd=Math.floor,Dd=Math.pow,Bd=yd("".charAt),Md=yd(/./.exec),qd=yd([].join),Wd=yd(1..toString),Gd=yd([].pop),zd=yd([].push),Hd=yd("".replace),$d=yd([].shift),Vd=yd("".split),Kd=yd("".slice),Yd=yd("".toLowerCase),Jd=yd([].unshift),Qd="Invalid scheme",Xd="Invalid host",Zd="Invalid port",ey=/[a-z]/i,ty=/[\d+-.a-z]/i,ry=/\d/,ny=/^0x/i,oy=/^[0-7]+$/,iy=/^\d+$/,ay=/^[\da-f]+$/i,sy=/[\0\t\n\r #%/:<>?@[\\\]^|]/,uy=/[\0\t\n\r #/:<>?@[\\\]^|]/,cy=/^[\u0000-\u0020]+/,ly=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,py=/[\t\n\r]/g,fy=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)Jd(t,e%256),e=Fd(e/256);return qd(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r?n:t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=Wd(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},hy={},dy=wd({},hy,{" ":1,'"':1,"<":1,">":1,"`":1}),yy=wd({},dy,{"#":1,"?":1,"{":1,"}":1}),my=wd({},yy,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),gy=function(e,t){var r=Ed(e,0);return r>32&&r<127&&!bd(t,e)?e:encodeURIComponent(e)},vy={ftp:21,file:null,http:80,https:443,ws:80,wss:443},by=function(e,t){var r;return 2===e.length&&Md(ey,Bd(e,0))&&(":"===(r=Bd(e,1))||!t&&"|"===r)},wy=function(e){var t;return e.length>1&&by(Kd(e,0,2))&&(2===e.length||"/"===(t=Bd(e,2))||"\\"===t||"?"===t||"#"===t)},xy=function(e){return"."===e||"%2e"===Yd(e)},Sy={},Ey={},Ay={},Ry={},Oy={},Py={},ky={},jy={},Ty={},Iy={},Ny={},_y={},Cy={},Uy={},Ly={},Fy={},Dy={},By={},My={},qy={},Wy={},Gy=function(e,t,r){var n,o,i,a=Rd(e);if(t){if(o=this.parse(a))throw new Ud(o);this.searchParams=null}else{if(void 0!==r&&(n=new Gy(r,!0)),o=this.parse(a,null,n))throw new Ud(o);(i=_d(new Nd)).bindURL(this),this.searchParams=i}};Gy.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,s,u=this,c=t||Sy,l=0,p="",f=!1,h=!1,d=!1;for(e=Rd(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=Hd(e,cy,""),e=Hd(e,ly,"$1")),e=Hd(e,py,""),n=xd(e);l<=n.length;){switch(o=n[l],c){case Sy:if(!o||!Md(ey,o)){if(t)return Qd;c=Ay;continue}p+=Yd(o),c=Ey;break;case Ey:if(o&&(Md(ty,o)||"+"===o||"-"===o||"."===o))p+=Yd(o);else{if(":"!==o){if(t)return Qd;p="",c=Ay,l=0;continue}if(t&&(u.isSpecial()!==bd(vy,p)||"file"===p&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=p,t)return void(u.isSpecial()&&vy[u.scheme]===u.port&&(u.port=null));p="","file"===u.scheme?c=Uy:u.isSpecial()&&r&&r.scheme===u.scheme?c=Ry:u.isSpecial()?c=jy:"/"===n[l+1]?(c=Oy,l++):(u.cannotBeABaseURL=!0,zd(u.path,""),c=My)}break;case Ay:if(!r||r.cannotBeABaseURL&&"#"!==o)return Qd;if(r.cannotBeABaseURL&&"#"===o){u.scheme=r.scheme,u.path=Sd(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=Wy;break}c="file"===r.scheme?Uy:Py;continue;case Ry:if("/"!==o||"/"!==n[l+1]){c=Py;continue}c=Ty,l++;break;case Oy:if("/"===o){c=Iy;break}c=By;continue;case Py:if(u.scheme=r.scheme,o===cd)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=Sd(r.path),u.query=r.query;else if("/"===o||"\\"===o&&u.isSpecial())c=ky;else if("?"===o)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=Sd(r.path),u.query="",c=qy;else{if("#"!==o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=Sd(r.path),u.path.length--,c=By;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=Sd(r.path),u.query=r.query,u.fragment="",c=Wy}break;case ky:if(!u.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=By;continue}c=Iy}else c=Ty;break;case jy:if(c=Ty,"/"!==o||"/"!==Bd(p,l+1))continue;l++;break;case Ty:if("/"!==o&&"\\"!==o){c=Iy;continue}break;case Iy:if("@"===o){f&&(p="%40"+p),f=!0,i=xd(p);for(var y=0;y<i.length;y++){var m=i[y];if(":"!==m||d){var g=gy(m,my);d?u.password+=g:u.username+=g}else d=!0}p=""}else if(o===cd||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(f&&""===p)return"Invalid authority";l-=xd(p).length+1,p="",c=Ny}else p+=o;break;case Ny:case _y:if(t&&"file"===u.scheme){c=Fy;continue}if(":"!==o||h){if(o===cd||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(u.isSpecial()&&""===p)return Xd;if(t&&""===p&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(p))return a;if(p="",c=Dy,t)return;continue}"["===o?h=!0:"]"===o&&(h=!1),p+=o}else{if(""===p)return Xd;if(a=u.parseHost(p))return a;if(p="",c=Cy,t===_y)return}break;case Cy:if(!Md(ry,o)){if(o===cd||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()||t){if(""!==p){var v=Ld(p,10);if(v>65535)return Zd;u.port=u.isSpecial()&&v===vy[u.scheme]?null:v,p=""}if(t)return;c=Dy;continue}return Zd}p+=o;break;case Uy:if(u.scheme="file","/"===o||"\\"===o)c=Ly;else{if(!r||"file"!==r.scheme){c=By;continue}switch(o){case cd:u.host=r.host,u.path=Sd(r.path),u.query=r.query;break;case"?":u.host=r.host,u.path=Sd(r.path),u.query="",c=qy;break;case"#":u.host=r.host,u.path=Sd(r.path),u.query=r.query,u.fragment="",c=Wy;break;default:wy(qd(Sd(n,l),""))||(u.host=r.host,u.path=Sd(r.path),u.shortenPath()),c=By;continue}}break;case Ly:if("/"===o||"\\"===o){c=Fy;break}r&&"file"===r.scheme&&!wy(qd(Sd(n,l),""))&&(by(r.path[0],!0)?zd(u.path,r.path[0]):u.host=r.host),c=By;continue;case Fy:if(o===cd||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&by(p))c=By;else if(""===p){if(u.host="",t)return;c=Dy}else{if(a=u.parseHost(p))return a;if("localhost"===u.host&&(u.host=""),t)return;p="",c=Dy}continue}p+=o;break;case Dy:if(u.isSpecial()){if(c=By,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==cd&&(c=By,"/"!==o))continue}else u.fragment="",c=Wy;else u.query="",c=qy;break;case By:if(o===cd||"/"===o||"\\"===o&&u.isSpecial()||!t&&("?"===o||"#"===o)){if(".."===(s=Yd(s=p))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"===o||"\\"===o&&u.isSpecial()||zd(u.path,"")):xy(p)?"/"===o||"\\"===o&&u.isSpecial()||zd(u.path,""):("file"===u.scheme&&!u.path.length&&by(p)&&(u.host&&(u.host=""),p=Bd(p,0)+":"),zd(u.path,p)),p="","file"===u.scheme&&(o===cd||"?"===o||"#"===o))for(;u.path.length>1&&""===u.path[0];)$d(u.path);"?"===o?(u.query="",c=qy):"#"===o&&(u.fragment="",c=Wy)}else p+=gy(o,yy);break;case My:"?"===o?(u.query="",c=qy):"#"===o?(u.fragment="",c=Wy):o!==cd&&(u.path[0]+=gy(o,hy));break;case qy:t||"#"!==o?o!==cd&&("'"===o&&u.isSpecial()?u.query+="%27":u.query+="#"===o?"%23":gy(o,hy)):(u.fragment="",c=Wy);break;case Wy:o!==cd&&(u.fragment+=gy(o,dy))}l++}},parseHost:function(e){var t,r,n;if("["===Bd(e,0)){if("]"!==Bd(e,e.length-1))return Xd;if(t=function(e){var t,r,n,o,i,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,p=0,f=function(){return Bd(e,p)};if(":"===f()){if(":"!==Bd(e,1))return;p+=2,l=++c}for(;f();){if(8===c)return;if(":"!==f()){for(t=r=0;r<4&&Md(ay,f());)t=16*t+Ld(f(),16),p++,r++;if("."===f()){if(0===r)return;if(p-=r,c>6)return;for(n=0;f();){if(o=null,n>0){if(!("."===f()&&n<4))return;p++}if(!Md(ry,f()))return;for(;Md(ry,f());){if(i=Ld(f(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;p++}u[c]=256*u[c]+o,2!=++n&&4!==n||c++}if(4!==n)return;break}if(":"===f()){if(p++,!f())return}else if(f())return;u[c++]=t}else{if(null!==l)return;p++,l=++c}}if(null!==l)for(a=c-l,c=7;0!==c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!==c)return;return u}(Kd(e,1,-1)),!t)return Xd;this.host=t}else if(this.isSpecial()){if(e=Ad(e),Md(sy,e))return Xd;if(t=function(e){var t,r,n,o,i,a,s,u=Vd(e,".");if(u.length&&""===u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""===(o=u[n]))return e;if(i=10,o.length>1&&"0"===Bd(o,0)&&(i=Md(ny,o)?16:8,o=Kd(o,8===i?1:2)),""===o)a=0;else{if(!Md(10===i?iy:8===i?oy:ay,o))return e;a=Ld(o,i)}zd(r,a)}for(n=0;n<t;n++)if(a=r[n],n===t-1){if(a>=Dd(256,5-t))return null}else if(a>255)return null;for(s=Gd(r),n=0;n<r.length;n++)s+=r[n]*Dd(256,3-n);return s}(e),null===t)return Xd;this.host=t}else{if(Md(uy,e))return Xd;for(t="",r=xd(e),n=0;n<r.length;n++)t+=gy(r[n],hy);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return bd(vy,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&by(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,u=e.fragment,c=t+":";return null!==o?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=fy(o),null!==i&&(c+=":"+i)):"file"===t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+qd(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw new Ud(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new zy(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+fy(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Rd(e)+":",Sy)},getUsername:function(){return this.username},setUsername:function(e){var t=xd(Rd(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=gy(t[r],my)}},getPassword:function(){return this.password},setPassword:function(e){var t=xd(Rd(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=gy(t[r],my)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?fy(e):fy(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ny)},getHostname:function(){var e=this.host;return null===e?"":fy(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,_y)},getPort:function(){var e=this.port;return null===e?"":Rd(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=Rd(e))?this.port=null:this.parse(e,Cy))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+qd(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Dy))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=Rd(e))?this.query=null:("?"===Bd(e,0)&&(e=Kd(e,1)),this.query="",this.parse(e,qy)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=Rd(e))?("#"===Bd(e,0)&&(e=Kd(e,1)),this.fragment="",this.parse(e,Wy)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var zy=function(e){var t=vd(this,Hy),r=Pd(arguments.length,1)>1?arguments[1]:void 0,n=Td(t,new Gy(e,!1,r));pd||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},Hy=zy.prototype,$y=function(e,t){return{get:function(){return Id(this)[e]()},set:t&&function(e){return Id(this)[t](e)},configurable:!0,enumerable:!0}};if(pd&&(gd(Hy,"href",$y("serialize","setHref")),gd(Hy,"origin",$y("getOrigin")),gd(Hy,"protocol",$y("getProtocol","setProtocol")),gd(Hy,"username",$y("getUsername","setUsername")),gd(Hy,"password",$y("getPassword","setPassword")),gd(Hy,"host",$y("getHost","setHost")),gd(Hy,"hostname",$y("getHostname","setHostname")),gd(Hy,"port",$y("getPort","setPort")),gd(Hy,"pathname",$y("getPathname","setPathname")),gd(Hy,"search",$y("getSearch","setSearch")),gd(Hy,"searchParams",$y("getSearchParams")),gd(Hy,"hash",$y("getHash","setHash"))),md(Hy,"toJSON",(function(){return Id(this).serialize()}),{enumerable:!0}),md(Hy,"toString",(function(){return Id(this).serialize()}),{enumerable:!0}),Cd){var Vy=Cd.createObjectURL,Ky=Cd.revokeObjectURL;Vy&&md(zy,"createObjectURL",dd(Vy,Cd)),Ky&&md(zy,"revokeObjectURL",dd(Ky,Cd))}Od(zy,"URL"),ld({global:!0,constructor:!0,forced:!fd,sham:!pd},{URL:zy});var Yy=q;_o({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Yy(URL.prototype.toString,this)}});var Jy=dp,Qy=ue,Xy=mt,Zy=Hn,em=yi,tm=Z([].push),rm=function(e){var t=1===e,r=2===e,n=3===e,o=4===e,i=6===e,a=7===e,s=5===e||i;return function(u,c,l,p){for(var f,h,d=Xy(u),y=Qy(d),m=Zy(y),g=Jy(c,l),v=0,b=p||em,w=t?b(u,m):r||a?b(u,0):void 0;m>v;v++)if((s||v in y)&&(h=g(f=y[v],v,d),e))if(t)w[v]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:tm(w,f)}else switch(e){case 4:return!1;case 7:tm(w,f)}return i?-1:n||o?o:w}},nm={forEach:rm(0),map:rm(1),every:rm(4)},om=nm.map;_o({target:"Array",proto:!0,forced:!bi("map")},{map:function(e){return om(this,e,arguments.length>1?arguments[1]:void 0)}});var im=function(e){var t=e.endpointName,r=e.guestSpaceId,n=e.preview,o=void 0!==r?"/guest/".concat(r):"",i=n?"/preview":"";return"/k".concat(o,"/v1").concat(i,"/").concat(t,".json")},am=function(){return c((function e(t,r){s(this,e),this.client=t,this.guestSpaceId=r}),[{key:"buildPathWithGuestSpaceId",value:function(e){return im(y(y({},e),{},{guestSpaceId:this.guestSpaceId}))}},{key:"buildPath",value:function(e){return im(e)}}])}(),sm=["endpointName"],um=function(e){function t(e,r){var n;return s(this,t),(n=a(this,t,[e,r])).REQUESTS_LENGTH_LIMIT=20,n}return f(t,e),c(t,[{key:"send",value:function(e){var t=this,r=e.requests.map((function(e){if("endpointName"in e){var r=e.endpointName,n=m(e,sm);return y({api:t.buildPathWithGuestSpaceId({endpointName:r})},n)}return e})),n=this.buildPathWithGuestSpaceId({endpointName:"bulkRequest"});return this.client.post(n,{requests:r})}}])}(am),cm=["preview"],lm=["preview"],pm=["preview"],fm=["preview"],hm=["preview"],dm=["preview"],ym=["preview"],mm=["preview"],gm=["preview"],vm=["preview"],bm=["preview"],wm=["preview"],xm=["preview"],Sm=["preview"],Em=["preview"],Am=["preview"],Rm=function(e){function t(){return s(this,t),a(this,t,arguments)}return f(t,e),c(t,[{key:"getFormFields",value:function(e){var t=e.preview,r=m(e,cm),n=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:t});return this.client.get(n,y({},r))}},{key:"addFormFields",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.post(t,e)}},{key:"updateFormFields",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.put(t,e)}},{key:"deleteFormFields",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.delete(t,e)}},{key:"getFormLayout",value:function(e){var t=e.preview,r=m(e,lm),n=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:t});return this.client.get(n,y({},r))}},{key:"updateFormLayout",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:!0});return this.client.put(t,e)}},{key:"getViews",value:function(e){var t=e.preview,r=m(e,pm),n=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:t});return this.client.get(n,r)}},{key:"updateViews",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:!0});return this.client.put(t,e)}},{key:"getApp",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app"});return this.client.get(t,e)}},{key:"getApps",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"apps"});return this.client.get(t,e)}},{key:"addApp",value:(r=i(j().mark((function e(t){var r,n,o,i,a,s;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.name,n=t.space,o=this.buildPathWithGuestSpaceId({endpointName:"app",preview:!0}),!n){e.next=9;break}return i=this.buildPathWithGuestSpaceId({endpointName:"space"}),e.next=6,this.client.get(i,{id:n});case 6:return a=e.sent,s=a.defaultThread,e.abrupt("return",this.client.post(o,y(y({},t),{},{thread:s})));case 9:return e.abrupt("return",this.client.post(o,{name:r}));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getAppSettings",value:function(e){var t=e.preview,r=m(e,fm),n=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:t});return this.client.get(n,r)}},{key:"updateAppSettings",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:!0});return this.client.put(t,e)}},{key:"getProcessManagement",value:function(e){var t=e.preview,r=m(e,hm),n=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:t});return this.client.get(n,r)}},{key:"updateProcessManagement",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:!0});return this.client.put(t,e)}},{key:"getDeployStatus",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.get(t,e)}},{key:"deployApp",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.post(t,e)}},{key:"getFieldAcl",value:function(e){var t=e.preview,r=m(e,dm),n=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:t});return this.client.get(n,y({},r))}},{key:"updateFieldAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:!0});return this.client.put(t,e)}},{key:"getAppAcl",value:function(e){var t=e.preview,r=m(e,ym),n=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:t});return this.client.get(n,y({},r))}},{key:"updateAppAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:!0});return this.client.put(t,e)}},{key:"evaluateRecordsAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/acl/evaluate"});return this.client.get(t,e)}},{key:"getRecordAcl",value:function(e){var t=e.preview,r=m(e,mm),n=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:t});return this.client.get(n,y({},r))}},{key:"updateRecordAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:!0});return this.client.put(t,e)}},{key:"getAppCustomize",value:function(e){var t=e.preview,r=m(e,gm),n=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:t});return this.client.get(n,y({},r))}},{key:"updateAppCustomize",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:!0});return this.client.put(t,e)}},{key:"getGeneralNotifications",value:function(e){var t=e.preview,r=m(e,vm),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:t});return this.client.get(n,y({},r))}},{key:"updateGeneralNotifications",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:!0});return this.client.put(t,e)}},{key:"getPerRecordNotifications",value:function(e){var t=e.preview,r=m(e,bm),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:t});return this.client.get(n,r)}},{key:"updatePerRecordNotifications",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:!0});return this.client.put(t,e)}},{key:"getReminderNotifications",value:function(e){var t=e.preview,r=m(e,wm),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:t});return this.client.get(n,r)}},{key:"updateReminderNotifications",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:!0});return this.client.put(t,e)}},{key:"getReports",value:function(e){var t=e.preview,r=m(e,xm),n=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:t});return this.client.get(n,r)}},{key:"updateReports",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:!0});return this.client.put(t,e)}},{key:"getAppActions",value:function(e){var t=e.preview,r=m(e,Sm),n=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:t});return this.client.get(n,r)}},{key:"updateAppActions",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:!0});return this.client.put(t,e)}},{key:"getAdminNotes",value:function(e){var t=e.preview,r=m(e,Em),n=this.buildPathWithGuestSpaceId({endpointName:"app/adminNotes",preview:t});return this.client.get(n,r)}},{key:"updateAdminNotes",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/adminNotes",preview:!0});return this.client.put(t,e)}},{key:"move",value:function(e){var t=this.buildPath({endpointName:"app/move"});return this.client.post(t,e)}},{key:"getPlugins",value:function(e){var t=e.preview,r=m(e,Am),n=this.buildPathWithGuestSpaceId({endpointName:"app/plugins",preview:t});return this.client.get(n,r)}},{key:"addPlugins",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/plugins",preview:!0});return this.client.post(t,e)}}]);var r}(am),Om=L,Pm=function(e,t){var r=[][e];return!!r&&Om((function(){r.call(null,t||function(){return 1},1)}))},km=nm.every;_o({target:"Array",proto:!0,forced:!Pm("every")},{every:function(e){return km(this,e,arguments.length>1?arguments[1]:void 0)}});var jm=_o,Tm=Yn.indexOf,Im=Pm,Nm=lp([].indexOf),_m=!!Nm&&1/Nm([1],1,-0)<0;jm({target:"Array",proto:!0,forced:_m||!Im("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return _m?Nm(this,e,t)||0:Tm(this,e,t)}}),_o({target:"Array",stat:!0},{isArray:Uo});var Cm,Um=Ye,Lm=mt,Fm=ue,Dm=Hn,Bm=TypeError,Mm="Reduce of empty array with no initial value",qm={left:(Cm=!1,function(e,t,r,n){var o=Lm(e),i=Fm(o),a=Dm(o);if(Um(t),0===a&&r<2)throw new Bm(Mm);var s=Cm?a-1:0,u=Cm?-1:1;if(r<2)for(;;){if(s in i){n=i[s],s+=u;break}if(s+=u,Cm?s<0:a<=s)throw new Bm(Mm)}for(;Cm?s>=0:a>s;s+=u)s in i&&(n=t(n,i[s],s,o));return n})},Wm=C,Gm=Oe,zm=ne,Hm=function(e){return Gm.slice(0,e.length)===e},$m=Hm("Bun/")?"BUN":Hm("Cloudflare-Workers")?"CLOUDFLARE":Hm("Deno/")?"DENO":Hm("Node.js/")?"NODE":Wm.Bun&&"string"==typeof Bun.version?"BUN":Wm.Deno&&"object"==typeof Deno.version?"DENO":"process"===zm(Wm.process)?"NODE":Wm.window&&Wm.document?"BROWSER":"REST",Vm=qm.left;_o({target:"Array",proto:!0,forced:!("NODE"===$m)&&_e>79&&_e<83||!Pm("reduce")},{reduce:function(e){var t=arguments.length;return Vm(this,e,t,t>1?arguments[1]:void 0)}});var Km=_o,Ym=Uo,Jm=ui,Qm=be,Xm=Mn,Zm=Hn,eg=ye,tg=Mo,rg=_t,ng=lf,og=bi("slice"),ig=rg("species"),ag=Array,sg=Math.max;Km({target:"Array",proto:!0,forced:!og},{slice:function(e,t){var r,n,o,i=eg(this),a=Zm(i),s=Xm(e,a),u=Xm(void 0===t?a:t,a);if(Ym(i)&&(r=i.constructor,(Jm(r)&&(r===ag||Ym(r.prototype))||Qm(r)&&null===(r=r[ig]))&&(r=void 0),r===ag||void 0===r))return ng(i,s,u);for(n=new(void 0===r?ag:r)(sg(u-s,0)),o=0;s<u;s++,o++)s in i&&tg(n,o,i[s]);return n.length=o,n}});var ug=C,cg=ge,lg=be,pg=ta,fg=Z(1..valueOf),hg=_o,dg=F,yg=C,mg=ug,gg=Z,vg=Ro,bg=bt,wg=function(e,t,r){var n,o;return pg&&cg(n=t.constructor)&&n!==r&&lg(o=n.prototype)&&o!==r.prototype&&pg(e,o),e},xg=Ee,Sg=Ge,Eg=qt,Ag=L,Rg=Nn.f,Og=U.f,Pg=ar.f,kg=fg,jg=vu.trim,Tg="Number",Ig=yg[Tg];mg[Tg];var Ng=Ig.prototype,_g=yg.TypeError,Cg=gg("".slice),Ug=gg("".charCodeAt),Lg=function(e){var t,r,n,o,i,a,s,u,c=Eg(e,"number");if(Sg(c))throw new _g("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=jg(c),43===(t=Ug(c,0))||45===t){if(88===(r=Ug(c,2))||120===r)return NaN}else if(48===t){switch(Ug(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=Cg(c,2)).length,s=0;s<a;s++)if((u=Ug(i,s))<48||u>o)return NaN;return parseInt(i,n)}return+c},Fg=vg(Tg,!Ig(" 0o1")||!Ig("0b1")||Ig("+0x1")),Dg=function(e){var t,r=arguments.length<1?0:Ig(function(e){var t=Eg(e,"number");return"bigint"==typeof t?t:Lg(t)}(e));return xg(Ng,t=this)&&Ag((function(){kg(t)}))?wg(Object(r),this,Dg):r};Dg.prototype=Ng,Fg&&(Ng.constructor=Dg),hg({global:!0,constructor:!0,wrap:!0,forced:Fg},{Number:Dg});Fg&&function(e,t){for(var r,n=dg?Rg(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)bg(t,r=n[o])&&!bg(e,r)&&Pg(e,r,Og(t,r))}(mg[Tg],Ig);var Bg=Tp;_o({target:"Object",stat:!0,arity:2,forced:Object.assign!==Bg},{assign:Bg});var Mg=q,qg=pr,Wg=ce,Gg=Gn,zg=lu,Hg=fe,$g=Xe,Vg=nl,Kg=vl;tl("match",(function(e,t,r){return[function(t){var r=Hg(this),n=Wg(t)?void 0:$g(t,e);return n?Mg(n,t,r):new RegExp(t)[e](zg(r))},function(e){var n=qg(this),o=zg(e),i=r(t,n,o);if(i.done)return i.value;if(!n.global)return Kg(n,o);var a=n.unicode;n.lastIndex=0;for(var s,u=[],c=0;null!==(s=Kg(n,o));){var l=zg(s[0]);u[c]=l,""===l&&(n.lastIndex=Vg(o,Gg(n.lastIndex),a)),c++}return 0===c?null:u}]}));var Yg=function(e){function t(e){var r;return s(this,t),(r=a(this,t,[e])).name="KintoneAbortSearchError",r.message=e,Object.setPrototypeOf(r,t.prototype),r}return f(t,e),c(t)}(k(Error)),Jg=nm.forEach,Qg=Pm("forEach")?[].forEach:function(e){return Jg(this,e,arguments.length>1?arguments[1]:void 0)};_o({target:"Array",proto:!0,forced:[].forEach!==Qg},{forEach:Qg});var Xg=mt,Zg=pa;_o({target:"Object",stat:!0,forced:L((function(){Zg(1)}))},{keys:function(e){return Zg(Xg(e))}});var ev=C,tv=zl,rv=Vl,nv=Qg,ov=Rr,iv=function(e){if(e&&e.forEach!==nv)try{ov(e,"forEach",nv)}catch(t){e.forEach=nv}};for(var av in tv)tv[av]&&iv(ev[av]&&ev[av].prototype);iv(rv);var sv=function(e){function t(e,r,n,o,i){var u;s(this,t);var c=n-r.length,l=t.extractErrorIndex(c,o,i),p=t.buildErrorMessage(c,n,l);return(u=a(this,t,[p])).name="KintoneAllRecordsError",u.processedRecordsResult=e,u.unprocessedRecords=r,u.error=o,u.errorIndex=l,u.message=p,u.numOfProcessedRecords=c,u.numOfAllRecords=n,Object.setPrototypeOf(u,t.prototype),u}return f(t,e),c(t,null,[{key:"parseErrorIndex",value:function(e){var t=[];return Object.keys(e).forEach((function(e){var r=e.match(/records\[(\d+)\]/);r&&t.push(Number(r[1]))})),t.length>0?Math.min.apply(Math,t):null}},{key:"extractErrorIndex",value:function(e,r,n){if(void 0!==r.bulkRequestIndex&&r.errors){var o=t.parseErrorIndex(r.errors);if(null!==o)return e+r.bulkRequestIndex*n+o}}},{key:"buildErrorMessage",value:function(e,t,r){var n="";return void 0!==r&&(n="An error occurred at records[".concat(r,"]. ")),n+="".concat(e,"/").concat(t," records are processed successfully")}}])}(k(Error)),uv=function(e){function t(e){var r;s(this,t);var n=t.buildErrorResponseDateWithIndex(e),o=n.data,i=n.bulkRequestIndex;return(r=a(this,t,[o.message])).name="KintoneRestAPIError",r.id=o.id,r.code=o.code,r.errors=o.errors,r.status=e.status,r.bulkRequestIndex=i,r.headers=e.headers,r.message="[".concat(e.status,"] [").concat(r.code,"] ").concat(r.message," (").concat(r.id,")"),Error.captureStackTrace&&Error.captureStackTrace(r,t),Object.setPrototypeOf(r,t.prototype),r}return f(t,e),c(t,null,[{key:"findErrorResponseDataWithIndex",value:function(e){for(var t=0;t<e.length;t++){if(0!==Object.keys(e[t]).length)return{data:e[t],bulkRequestIndex:t}}throw Error("Missing response data in `results`. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.")}},{key:"buildErrorResponseDateWithIndex",value:function(e){return"results"in e.data?t.findErrorResponseDataWithIndex(e.data.results):{data:e.data}}}])}(k(Error)),cv=["condition","orderBy","withCursor"],lv=["fields","condition"],pv=["condition","orderBy"],fv=500,hv=function(e){function t(e,r,n){var o;return s(this,t),(o=a(this,t,[e,n])).bulkRequestClient=r,o.didWarnMaximumOffsetValue=!1,o}return f(t,e),c(t,[{key:"getRecord",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.get(t,e)}},{key:"addRecord",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.post(t,e)}},{key:"updateRecord",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.put(t,e)}},{key:"upsertRecord",value:(A=i(j().mark((function e(t){var r,n,o,i,a,s,u;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.app,n=t.updateKey,o=t.record,e.next=3,this.getRecords({app:r,query:"".concat(n.field,' = "').concat(n.value,'"')});case 3:if(i=e.sent,!((a=i.records).length>0)){e.next=13;break}if("__ID__"!==a[0].$id.type){e.next=12;break}return e.next=9,this.updateRecord(t);case 9:return s=e.sent,u=s.revision,e.abrupt("return",{id:a[0].$id.value,revision:u});case 12:throw new Error("Missing `$id` in `getRecords` response. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.");case 13:return e.abrupt("return",this.addRecord({app:r,record:Object.assign({},o,l({},n.field,{value:n.value}))}));case 14:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"getRecords",value:(E=i(j().mark((function e(t){var r,n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),e.next=3,this.client.get(r,t);case 3:return n=e.sent,this.warnMaximumOffsetValueIfNeeded(t.query),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return E.apply(this,arguments)})},{key:"warnMaximumOffsetValueIfNeeded",value:function(e){if(e){var t=e.match(/offset\s+(\d+)/i);!this.didWarnMaximumOffsetValue&&t&&Number(t[1])>1e4&&(this.didWarnMaximumOffsetValue=!0,console.warn("Warning: The maximum offset value will be limited to 10,000 in the future. Please use `createCursor()` and `getRecordsByCursor()` instead."))}}},{key:"addRecords",value:(S=i(j().mark((function e(t){var r,n,o,i;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),e.next=3,this.client.post(r,t);case 3:return n=e.sent,o=n.ids,i=n.revisions,e.abrupt("return",{ids:o,revisions:i,records:o.map((function(e,t){return{id:e,revision:i[t]}}))});case 7:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{key:"updateRecords",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.put(t,e)}},{key:"deleteRecords",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.delete(t,e)}},{key:"createCursor",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.post(t,e)}},{key:"getRecordsByCursor",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.get(t,e)}},{key:"deleteCursor",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.delete(t,e)}},{key:"getAllRecords",value:(x=i(j().mark((function e(t){var r,n,o,i,a,s,u;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.condition,n=t.orderBy,o=t.withCursor,i=void 0===o||o,a=m(t,cv),n){e.next=3;break}return e.abrupt("return",this.getAllRecordsWithId(y(y({},a),{},{condition:r})));case 3:if(!i){e.next=7;break}return s=r?"".concat(r," "):"",u="".concat(s).concat(n?"order by ".concat(n):""),e.abrupt("return",this.getAllRecordsWithCursor(y(y({},a),{},{query:u})));case 7:return e.abrupt("return",this.getAllRecordsWithOffset(y(y({},a),{},{orderBy:n,condition:r})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"getAllRecordsWithId",value:(w=i(j().mark((function e(t){var r,n,o,i,a,s,u,c,l,p;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.fields,n=t.condition,o=m(t,lv),(i=r)&&i.length>0&&-1===i.indexOf("$id")&&(i=[].concat(R(i),["$id"])),a=n?"(".concat(n,") and "):"",s=[],u="0";case 6:return c="".concat(a,"$id > ").concat(u," order by $id asc limit ").concat(fv),e.next=10,this.getRecords(y(y({},o),{},{fields:i,query:c}));case 10:if(l=e.sent,s=s.concat(l.records),!(l.records.length<fv)){e.next=14;break}return e.abrupt("break",22);case 14:if("__ID__"!==(p=l.records[l.records.length-1]).$id.type){e.next=19;break}u=p.$id.value,e.next=20;break;case 19:throw new Error("Missing `$id` in `getRecords` response. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.");case 20:e.next=6;break;case 22:return e.abrupt("return",s);case 23:case"end":return e.stop()}}),e,this)}))),function(e){return w.apply(this,arguments)})},{key:"getAllRecordsWithOffset",value:(b=i(j().mark((function e(t){var r,n,o,i,a,s,u,c;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.condition,n=t.orderBy,o=m(t,pv),i=r?"".concat(r," "):"",a=[],s=0;case 4:return u="".concat(i).concat(n?"order by ".concat(n," "):"","limit ").concat(fv," offset ").concat(s),e.next=8,this.getRecords(y(y({},o),{},{query:u}));case 8:if(c=e.sent,a=a.concat(c.records),!(c.records.length<fv)){e.next=12;break}return e.abrupt("break",15);case 12:s+=fv,e.next=4;break;case 15:return e.abrupt("return",a);case 16:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{key:"getAllRecordsWithCursor",value:(v=i(j().mark((function e(t){var r,n,o,i;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.createCursor(t);case 2:r=e.sent,n=r.id,e.prev=4,o=[];case 6:return e.next=9,this.getRecordsByCursor({id:n});case 9:if(i=e.sent,o=o.concat(i.records),i.next){e.next=13;break}return e.abrupt("break",15);case 13:e.next=6;break;case 15:return e.abrupt("return",o);case 18:return e.prev=18,e.t0=e.catch(4),e.next=22,this.deleteCursor({id:n});case 22:throw e.t0;case 23:case"end":return e.stop()}}),e,this,[[4,18]])}))),function(e){return v.apply(this,arguments)})},{key:"addAllRecords",value:(g=i(j().mark((function e(t){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.records.every((function(e){return!Array.isArray(e)&&e instanceof Object}))){e.next=2;break}throw new Error("the `records` parameter must be an array of object.");case 2:return e.abrupt("return",this.addAllRecordsRecursive(t,t.records.length,[]));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return g.apply(this,arguments)})},{key:"addAllRecordsRecursive",value:(d=i(j().mark((function e(t,r,n){var o,i,a,s,u;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,i=t.app,a=t.records,0!==(s=a.slice(0,o)).length){e.next=5;break}return e.abrupt("return",{records:n});case 5:return e.prev=5,e.next=8,this.addAllRecordsWithBulkRequest({app:i,records:s});case 8:u=e.sent,e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(5),new sv({records:n},a,r,e.t0,100);case 14:return e.abrupt("return",this.addAllRecordsRecursive({app:i,records:a.slice(o)},r,n.concat(u)));case 15:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(e,t,r){return d.apply(this,arguments)})},{key:"addAllRecordsWithBulkRequest",value:(h=i(j().mark((function e(t){var r,n,o;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.separateArrayRecursive(100,[],t.records),n=r.map((function(e){return{method:"POST",endpointName:"records",payload:{app:t.app,records:e}}})),e.next=4,this.bulkRequestClient.send({requests:n});case 4:return o=e.sent.results,e.abrupt("return",o.map((function(e){var t=e.ids,r=e.revisions;return t.map((function(e,t){return{id:e,revision:r[t]}}))})).reduce((function(e,t){return e.concat(t)}),[]));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"updateAllRecords",value:(p=i(j().mark((function e(t){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.updateAllRecordsRecursive(t,t.records.length,[]));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"updateAllRecordsRecursive",value:(u=i(j().mark((function e(t,r,n){var o,i,a,s,u,c;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,i=t.app,a=t.upsert,s=t.records,0!==(u=s.slice(0,o)).length){e.next=5;break}return e.abrupt("return",{records:n});case 5:return e.prev=5,e.next=8,this.updateAllRecordsWithBulkRequest({app:i,upsert:a,records:u});case 8:c=e.sent,e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(5),new sv({records:n},s,r,e.t0,100);case 14:return e.abrupt("return",this.updateAllRecordsRecursive({app:i,upsert:a,records:s.slice(o)},r,n.concat(c)));case 15:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(e,t,r){return u.apply(this,arguments)})},{key:"updateAllRecordsWithBulkRequest",value:(o=i(j().mark((function e(t){var r,n,o;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.separateArrayRecursive(100,[],t.records),n=r.map((function(e){return{method:"PUT",endpointName:"records",payload:{app:t.app,upsert:t.upsert,records:e}}})),e.next=4,this.bulkRequestClient.send({requests:n});case 4:return o=e.sent.results,e.abrupt("return",o.map((function(e){return e.records})).reduce((function(e,t){return e.concat(t)}),[]));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"deleteAllRecords",value:function(e){return this.deleteAllRecordsRecursive(e,e.records.length)}},{key:"deleteAllRecordsRecursive",value:(n=i(j().mark((function e(t,r){var n,o,i,a;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,o=t.app,i=t.records,0!==(a=i.slice(0,n)).length){e.next=5;break}return e.abrupt("return",{});case 5:return e.prev=5,e.next=8,this.deleteAllRecordsWithBulkRequest({app:o,records:a});case 8:e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(5),new sv({},i,r,e.t0,100);case 13:return e.abrupt("return",this.deleteAllRecordsRecursive({app:o,records:i.slice(n)},r));case 14:case"end":return e.stop()}}),e,this,[[5,10]])}))),function(e,t){return n.apply(this,arguments)})},{key:"deleteAllRecordsWithBulkRequest",value:(r=i(j().mark((function e(t){var r,n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.separateArrayRecursive(100,[],t.records),n=r.map((function(e){return{method:"DELETE",endpointName:"records",payload:{app:t.app,ids:e.map((function(e){return e.id})),revisions:e.map((function(e){return e.revision}))}}})),e.next=4,this.bulkRequestClient.send({requests:n});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"separateArrayRecursive",value:function(e,t,r){var n=r.slice(0,e);return 0===n.length?t:this.separateArrayRecursive(e,[].concat(R(t),[n]),r.slice(e))}},{key:"addRecordComment",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.post(t,e)}},{key:"deleteRecordComment",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.delete(t,e)}},{key:"getRecordComments",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comments"});return this.client.get(t,e)}},{key:"updateRecordAssignees",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/assignees"});return this.client.put(t,e)}},{key:"updateRecordStatus",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/status"});return this.client.put(t,e)}},{key:"updateRecordsStatus",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/status"});return this.client.put(t,e)}}]);var r,n,o,u,p,h,d,g,v,b,w,x,S,E,A}(am),dv=function(e){function t(){return s(this,t),a(this,t,arguments)}return f(t,e),c(t,[{key:"getSpace",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"space"});return this.client.get(t,e)}},{key:"updateSpace",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"space"});return this.client.put(t,e)}},{key:"deleteSpace",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"space"});return this.client.delete(t,e)}},{key:"updateSpaceBody",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"space/body"});return this.client.put(t,e)}},{key:"getSpaceMembers",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"space/members"});return this.client.get(t,e)}},{key:"updateSpaceMembers",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"space/members"});return this.client.put(t,e)}},{key:"addThread",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"space/thread"});return this.client.post(t,e)}},{key:"updateThread",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"space/thread"});return this.client.put(t,e)}},{key:"addThreadComment",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"space/thread/comment"});return this.client.post(t,e)}},{key:"addGuests",value:function(e){var t=this.buildPath({endpointName:"guests"});return this.client.post(t,e)}},{key:"deleteGuests",value:function(e){var t=this.buildPath({endpointName:"guests"});return this.client.delete(t,e)}},{key:"updateSpaceGuests",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"space/guests"});return this.client.put(t,e)}},{key:"addSpaceFromTemplate",value:function(e){var t=this.buildPath({endpointName:"template/space"});return this.client.post(t,e)}}])}(am),yv=I("object"==typeof self?self.FormData:window.FormData),mv=function(e){function r(){return s(this,r),a(this,r,arguments)}return f(r,e),c(r,[{key:"uploadFile",value:(n=i(j().mark((function e(r){var n,o,i,a,s,u,c,l,p;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.buildPathWithGuestSpaceId({endpointName:"file"}),o=new yv,!("path"in r.file)){e.next=19;break}return e.prev=3,e.next=6,t.readFileFromPath(r.file.path);case 6:i=e.sent,a=i.name,s=i.data,o.append("file",s,a),e.next=17;break;case 12:if(e.prev=12,e.t0=e.catch(3),!(e.t0 instanceof ra)){e.next=16;break}throw new Error("uploadFile doesn't allow to accept a file path in ".concat(e.t0.platform," environment."));case 16:throw e.t0;case 17:e.next=22;break;case 19:u=r.file,c=u.name,l=u.data,p=t.buildFormDataValue(l,c),o.append("file",p,c);case 22:return e.abrupt("return",this.client.postData(n,o));case 23:case"end":return e.stop()}}),e,this,[[3,12]])}))),function(e){return n.apply(this,arguments)})},{key:"downloadFile",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"file"});return this.client.getData(t,e)}}]);var n}(am),gv=function(e){function t(){return s(this,t),a(this,t,arguments)}return f(t,e),c(t,[{key:"getPlugins",value:function(e){var t=this.buildPath({endpointName:"plugins"});return this.client.get(t,e)}},{key:"getRequiredPlugins",value:function(e){var t=this.buildPath({endpointName:"plugins/required"});return this.client.get(t,e)}},{key:"getApps",value:function(e){var t=this.buildPath({endpointName:"plugin/apps"});return this.client.get(t,e)}},{key:"updatePlugin",value:function(e){var t=this.buildPath({endpointName:"plugin"});return this.client.put(t,e)}},{key:"installPlugin",value:function(e){var t=this.buildPath({endpointName:"plugin"});return this.client.post(t,e)}},{key:"uninstallPlugin",value:function(e){var t=this.buildPath({endpointName:"plugin"});return this.client.delete(t,e)}}])}(am),vv="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function bv(){throw new Error("setTimeout has not been defined")}function wv(){throw new Error("clearTimeout has not been defined")}var xv=bv,Sv=wv;function Ev(e){if(xv===setTimeout)return setTimeout(e,0);if((xv===bv||!xv)&&setTimeout)return xv=setTimeout,setTimeout(e,0);try{return xv(e,0)}catch(t){try{return xv.call(null,e,0)}catch(t){return xv.call(this,e,0)}}}"function"==typeof vv.setTimeout&&(xv=setTimeout),"function"==typeof vv.clearTimeout&&(Sv=clearTimeout);var Av,Rv=[],Ov=!1,Pv=-1;function kv(){Ov&&Av&&(Ov=!1,Av.length?Rv=Av.concat(Rv):Pv=-1,Rv.length&&jv())}function jv(){if(!Ov){var e=Ev(kv);Ov=!0;for(var t=Rv.length;t;){for(Av=Rv,Rv=[];++Pv<t;)Av&&Av[Pv].run();Pv=-1,t=Rv.length}Av=null,Ov=!1,function(e){if(Sv===clearTimeout)return clearTimeout(e);if((Sv===wv||!Sv)&&clearTimeout)return Sv=clearTimeout,clearTimeout(e);try{return Sv(e)}catch(t){try{return Sv.call(null,e)}catch(t){return Sv.call(this,e)}}}(e)}}function Tv(e,t){this.fun=e,this.array=t}Tv.prototype.run=function(){this.fun.apply(null,this.array)};var Iv=vv.performance||{};Iv.now||Iv.mozNow||Iv.msNow||Iv.oNow||Iv.webkitNow;function Nv(e,t){return function(){return e.apply(t,arguments)}}const{toString:_v}=Object.prototype,{getPrototypeOf:Cv}=Object,Uv=(Lv=Object.create(null),e=>{const t=_v.call(e);return Lv[t]||(Lv[t]=t.slice(8,-1).toLowerCase())});var Lv;const Fv=e=>(e=e.toLowerCase(),t=>Uv(t)===e),Dv=e=>t=>typeof t===e,{isArray:Bv}=Array,Mv=Dv("undefined");const qv=Fv("ArrayBuffer");const Wv=Dv("string"),Gv=Dv("function"),zv=Dv("number"),Hv=e=>null!==e&&"object"==typeof e,$v=e=>{if("object"!==Uv(e))return!1;const t=Cv(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Vv=Fv("Date"),Kv=Fv("File"),Yv=Fv("Blob"),Jv=Fv("FileList"),Qv=Fv("URLSearchParams"),[Xv,Zv,eb,tb]=["ReadableStream","Request","Response","Headers"].map(Fv);function rb(e,t){let r,n,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=e)if("object"!=typeof e&&(e=[e]),Bv(e))for(r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else{const n=o?Object.getOwnPropertyNames(e):Object.keys(e),i=n.length;let a;for(r=0;r<i;r++)a=n[r],t.call(null,e[a],a,e)}}function nb(e,t){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 ob="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:vv,ib=e=>!Mv(e)&&e!==ob;const ab=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Cv(Uint8Array)),sb=Fv("HTMLFormElement"),ub=(e=>{let{hasOwnProperty:t}=e;return(e,r)=>t.call(e,r)})(Object.prototype),cb=Fv("RegExp"),lb=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};rb(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)};const pb=Fv("AsyncFunction"),fb=(hb="function"==typeof setImmediate,db=Gv(ob.postMessage),hb?setImmediate:db?(yb=`axios@${Math.random()}`,mb=[],ob.addEventListener("message",(e=>{let{source:t,data:r}=e;t===ob&&r===yb&&mb.length&&mb.shift()()}),!1),e=>{mb.push(e),ob.postMessage(yb,"*")}):e=>setTimeout(e));var hb,db,yb,mb;const gb="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ob):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];Rv.push(new Tv(e,t)),1!==Rv.length||Ov||Ev(jv)}||fb;var vb={isArray:Bv,isArrayBuffer:qv,isBuffer:function(e){return null!==e&&!Mv(e)&&null!==e.constructor&&!Mv(e.constructor)&&Gv(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Gv(e.append)&&("formdata"===(t=Uv(e))||"object"===t&&Gv(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&qv(e.buffer),t},isString:Wv,isNumber:zv,isBoolean:e=>!0===e||!1===e,isObject:Hv,isPlainObject:$v,isReadableStream:Xv,isRequest:Zv,isResponse:eb,isHeaders:tb,isUndefined:Mv,isDate:Vv,isFile:Kv,isBlob:Yv,isRegExp:cb,isFunction:Gv,isStream:e=>Hv(e)&&Gv(e.pipe),isURLSearchParams:Qv,isTypedArray:ab,isFileList:Jv,forEach:rb,merge:function e(){const{caseless:t}=ib(this)&&this||{},r={},n=(n,o)=>{const i=t&&nb(r,o)||o;$v(r[i])&&$v(n)?r[i]=e(r[i],n):$v(n)?r[i]=e({},n):Bv(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&rb(arguments[e],n);return r},extend:function(e,t,r){let{allOwnKeys:n}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return rb(t,((t,n)=>{r&&Gv(t)?e[n]=Nv(t,r):e[n]=t}),{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),e.prototype.constructor=e,Object.defineProperty(e,"super",{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&&Cv(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:Uv,kindOfTest:Fv,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(Bv(e))return e;let t=e.length;if(!zv(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).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:sb,hasOwnProperty:ub,hasOwnProp:ub,reduceDescriptors:lb,freezeMethods:e=>{lb(e,((t,r)=>{if(Gv(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];Gv(n)&&(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 Bv(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:nb,global:ob,isContextDefined:ib,isSpecCompliantForm:function(e){return!!(e&&Gv(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(Hv(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=Bv(e)?[]:{};return rb(e,((e,t)=>{const i=r(e,n+1);!Mv(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:pb,isThenable:e=>e&&(Hv(e)||Gv(e))&&Gv(e.then)&&Gv(e.catch),setImmediate:fb,asap:gb},bb=[],wb=[],xb="undefined"!=typeof Uint8Array?Uint8Array:Array,Sb=!1;function Eb(){Sb=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)bb[t]=e[t],wb[e.charCodeAt(t)]=t;wb["-".charCodeAt(0)]=62,wb["_".charCodeAt(0)]=63}function Ab(e,t,r){for(var n,o,i=[],a=t;a<r;a+=3)n=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(bb[(o=n)>>18&63]+bb[o>>12&63]+bb[o>>6&63]+bb[63&o]);return i.join("")}function Rb(e){var t;Sb||Eb();for(var r=e.length,n=r%3,o="",i=[],a=16383,s=0,u=r-n;s<u;s+=a)i.push(Ab(e,s,s+a>u?u:s+a));return 1===n?(t=e[r-1],o+=bb[t>>2],o+=bb[t<<4&63],o+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],o+=bb[t>>10],o+=bb[t>>4&63],o+=bb[t<<2&63],o+="="),i.push(o),i.join("")}function Ob(e,t,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,c=u>>1,l=-7,p=r?o-1:0,f=r?-1:1,h=e[t+p];for(p+=f,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+e[t+p],p+=f,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+e[t+p],p+=f,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)}function Pb(e,t,r,n,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,p=l>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,d=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(a++,u/=2),a+p>=l?(s=0,a=l):a+p>=1?(s=(t*u-1)*Math.pow(2,o),a+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;e[r+h]=255&s,h+=d,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[r+h]=255&a,h+=d,a/=256,c-=8);e[r+h-d]|=128*y}var kb={}.toString,jb=Array.isArray||function(e){return"[object Array]"==kb.call(e)};function Tb(){return Nb.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ib(e,t){if(Tb()<t)throw new RangeError("Invalid typed array length");return Nb.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Nb.prototype:(null===e&&(e=new Nb(t)),e.length=t),e}function Nb(e,t,r){if(!(Nb.TYPED_ARRAY_SUPPORT||this instanceof Nb))return new Nb(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Ub(this,e)}return _b(this,e,t,r)}function _b(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);Nb.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Nb.prototype:e=Lb(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!Nb.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|Bb(t,r);e=Ib(e,n);var o=e.write(t,r);o!==n&&(e=e.slice(0,o));return e}(e,t,r):function(e,t){if(Db(t)){var r=0|Fb(t.length);return 0===(e=Ib(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?Ib(e,0):Lb(e,t);if("Buffer"===t.type&&jb(t.data))return Lb(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Cb(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Ub(e,t){if(Cb(t),e=Ib(e,t<0?0:0|Fb(t)),!Nb.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function Lb(e,t){var r=t.length<0?0:0|Fb(t.length);e=Ib(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function Fb(e){if(e>=Tb())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Tb().toString(16)+" bytes");return 0|e}function Db(e){return!(null==e||!e._isBuffer)}function Bb(e,t){if(Db(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return fw(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return hw(e).length;default:if(n)return fw(e).length;t=(""+t).toLowerCase(),n=!0}}function Mb(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return tw(this,t,r);case"utf8":case"utf-8":return Qb(this,t,r);case"ascii":return Zb(this,t,r);case"latin1":case"binary":return ew(this,t,r);case"base64":return Jb(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rw(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function qb(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Wb(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=Nb.from(t,n)),Db(t))return 0===t.length?-1:Gb(e,t,r,n,o);if("number"==typeof t)return t&=255,Nb.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Gb(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function Gb(e,t,r,n,o){var i,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=r;i<s;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var p=!0,f=0;f<u;f++)if(c(e,i+f)!==c(t,f)){p=!1;break}if(p)return i}return-1}function zb(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function Hb(e,t,r,n){return dw(fw(t,e.length-r),e,r,n)}function $b(e,t,r,n){return dw(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function Vb(e,t,r,n){return $b(e,t,r,n)}function Kb(e,t,r,n){return dw(hw(t),e,r,n)}function Yb(e,t,r,n){return dw(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function Jb(e,t,r){return 0===t&&r===e.length?Rb(e):Rb(e.slice(t,r))}function Qb(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,u,c=e[o],l=null,p=c>239?4:c>223?3:c>191?2:1;if(o+p<=r)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,p=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=p}return function(e){var t=e.length;if(t<=Xb)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=Xb));return r}(n)}Nb.TYPED_ARRAY_SUPPORT=void 0===vv.TYPED_ARRAY_SUPPORT||vv.TYPED_ARRAY_SUPPORT,Tb(),Nb.poolSize=8192,Nb._augment=function(e){return e.__proto__=Nb.prototype,e},Nb.from=function(e,t,r){return _b(null,e,t,r)},Nb.TYPED_ARRAY_SUPPORT&&(Nb.prototype.__proto__=Uint8Array.prototype,Nb.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Nb[Symbol.species]),Nb.alloc=function(e,t,r){return function(e,t,r,n){return Cb(t),t<=0?Ib(e,t):void 0!==r?"string"==typeof n?Ib(e,t).fill(r,n):Ib(e,t).fill(r):Ib(e,t)}(null,e,t,r)},Nb.allocUnsafe=function(e){return Ub(null,e)},Nb.allocUnsafeSlow=function(e){return Ub(null,e)},Nb.isBuffer=function(e){return null!=e&&(!!e._isBuffer||yw(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&yw(e.slice(0,0))}(e))},Nb.compare=function(e,t){if(!Db(e)||!Db(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},Nb.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Nb.concat=function(e,t){if(!jb(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Nb.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=Nb.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(!Db(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},Nb.byteLength=Bb,Nb.prototype._isBuffer=!0,Nb.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)qb(this,t,t+1);return this},Nb.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)qb(this,t,t+3),qb(this,t+1,t+2);return this},Nb.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)qb(this,t,t+7),qb(this,t+1,t+6),qb(this,t+2,t+5),qb(this,t+3,t+4);return this},Nb.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Qb(this,0,e):Mb.apply(this,arguments)},Nb.prototype.equals=function(e){if(!Db(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Nb.compare(this,e)},Nb.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Nb.prototype.compare=function(e,t,r,n,o){if(!Db(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(i,a),u=this.slice(n,o),c=e.slice(t,r),l=0;l<s;++l)if(u[l]!==c[l]){i=u[l],a=c[l];break}return i<a?-1:a<i?1:0},Nb.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},Nb.prototype.indexOf=function(e,t,r){return Wb(this,e,t,r,!0)},Nb.prototype.lastIndexOf=function(e,t,r){return Wb(this,e,t,r,!1)},Nb.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return zb(this,e,t,r);case"utf8":case"utf-8":return Hb(this,e,t,r);case"ascii":return $b(this,e,t,r);case"latin1":case"binary":return Vb(this,e,t,r);case"base64":return Kb(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Yb(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},Nb.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Xb=4096;function Zb(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function ew(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function tw(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=pw(e[i]);return o}function rw(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function nw(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function ow(e,t,r,n,o,i){if(!Db(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function iw(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function aw(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function sw(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function uw(e,t,r,n,o){return o||sw(e,0,r,4),Pb(e,t,r,n,23,4),r+4}function cw(e,t,r,n,o){return o||sw(e,0,r,8),Pb(e,t,r,n,52,8),r+8}Nb.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),Nb.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=Nb.prototype;else{var o=t-e;r=new Nb(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},Nb.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||nw(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},Nb.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||nw(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},Nb.prototype.readUInt8=function(e,t){return t||nw(e,1,this.length),this[e]},Nb.prototype.readUInt16LE=function(e,t){return t||nw(e,2,this.length),this[e]|this[e+1]<<8},Nb.prototype.readUInt16BE=function(e,t){return t||nw(e,2,this.length),this[e]<<8|this[e+1]},Nb.prototype.readUInt32LE=function(e,t){return t||nw(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Nb.prototype.readUInt32BE=function(e,t){return t||nw(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Nb.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||nw(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},Nb.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||nw(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Nb.prototype.readInt8=function(e,t){return t||nw(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Nb.prototype.readInt16LE=function(e,t){t||nw(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Nb.prototype.readInt16BE=function(e,t){t||nw(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Nb.prototype.readInt32LE=function(e,t){return t||nw(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Nb.prototype.readInt32BE=function(e,t){return t||nw(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Nb.prototype.readFloatLE=function(e,t){return t||nw(e,4,this.length),Ob(this,e,!0,23,4)},Nb.prototype.readFloatBE=function(e,t){return t||nw(e,4,this.length),Ob(this,e,!1,23,4)},Nb.prototype.readDoubleLE=function(e,t){return t||nw(e,8,this.length),Ob(this,e,!0,52,8)},Nb.prototype.readDoubleBE=function(e,t){return t||nw(e,8,this.length),Ob(this,e,!1,52,8)},Nb.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||ow(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},Nb.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||ow(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},Nb.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||ow(this,e,t,1,255,0),Nb.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Nb.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||ow(this,e,t,2,65535,0),Nb.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):iw(this,e,t,!0),t+2},Nb.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||ow(this,e,t,2,65535,0),Nb.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):iw(this,e,t,!1),t+2},Nb.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||ow(this,e,t,4,4294967295,0),Nb.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):aw(this,e,t,!0),t+4},Nb.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||ow(this,e,t,4,4294967295,0),Nb.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):aw(this,e,t,!1),t+4},Nb.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);ow(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+r},Nb.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);ow(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+r},Nb.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||ow(this,e,t,1,127,-128),Nb.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Nb.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||ow(this,e,t,2,32767,-32768),Nb.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):iw(this,e,t,!0),t+2},Nb.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||ow(this,e,t,2,32767,-32768),Nb.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):iw(this,e,t,!1),t+2},Nb.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||ow(this,e,t,4,2147483647,-2147483648),Nb.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):aw(this,e,t,!0),t+4},Nb.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||ow(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Nb.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):aw(this,e,t,!1),t+4},Nb.prototype.writeFloatLE=function(e,t,r){return uw(this,e,t,!0,r)},Nb.prototype.writeFloatBE=function(e,t,r){return uw(this,e,t,!1,r)},Nb.prototype.writeDoubleLE=function(e,t,r){return cw(this,e,t,!0,r)},Nb.prototype.writeDoubleBE=function(e,t,r){return cw(this,e,t,!1,r)},Nb.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!Nb.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},Nb.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!Nb.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=Db(e)?e:fw(new Nb(e,n).toString()),s=a.length;for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var lw=/[^+\/0-9A-Za-z-_]/g;function pw(e){return e<16?"0"+e.toString(16):e.toString(16)}function fw(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function hw(e){return function(e){var t,r,n,o,i,a;Sb||Eb();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[s-2]?2:"="===e[s-1]?1:0,a=new xb(3*s/4-i),n=i>0?s-4:s;var u=0;for(t=0,r=0;t<n;t+=4,r+=3)o=wb[e.charCodeAt(t)]<<18|wb[e.charCodeAt(t+1)]<<12|wb[e.charCodeAt(t+2)]<<6|wb[e.charCodeAt(t+3)],a[u++]=o>>16&255,a[u++]=o>>8&255,a[u++]=255&o;return 2===i?(o=wb[e.charCodeAt(t)]<<2|wb[e.charCodeAt(t+1)]>>4,a[u++]=255&o):1===i&&(o=wb[e.charCodeAt(t)]<<10|wb[e.charCodeAt(t+1)]<<4|wb[e.charCodeAt(t+2)]>>2,a[u++]=o>>8&255,a[u++]=255&o),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(lw,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function dw(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function yw(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function mw(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}vb.inherits(mw,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:vb.toJSONObject(this.config),code:this.code,status:this.status}}});const gw=mw.prototype,vw={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{vw[e]={value:e}})),Object.defineProperties(mw,vw),Object.defineProperty(gw,"isAxiosError",{value:!0}),mw.from=(e,t,r,n,o,i)=>{const a=Object.create(gw);return vb.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),mw.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function bw(e){return vb.isPlainObject(e)||vb.isArray(e)}function ww(e){return vb.endsWith(e,"[]")?e.slice(0,-2):e}function xw(e,t,r){return e?e.concat(t).map((function(e,t){return e=ww(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Sw=vb.toFlatObject(vb,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Ew(e,t,r){if(!vb.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=vb.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!vb.isUndefined(t[e])}))).metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&vb.isSpecCompliantForm(t);if(!vb.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(vb.isDate(e))return e.toISOString();if(!s&&vb.isBlob(e))throw new mw("Blob is not supported. Use a Buffer instead.");return vb.isArrayBuffer(e)||vb.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Nb.from(e):e}function c(e,r,o){let s=e;if(e&&!o&&"object"==typeof e)if(vb.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(vb.isArray(e)&&function(e){return vb.isArray(e)&&!e.some(bw)}(e)||(vb.isFileList(e)||vb.endsWith(r,"[]"))&&(s=vb.toArray(e)))return r=ww(r),s.forEach((function(e,n){!vb.isUndefined(e)&&null!==e&&t.append(!0===a?xw([r],n,i):null===a?r:r+"[]",u(e))})),!1;return!!bw(e)||(t.append(xw(o,r,i),u(e)),!1)}const l=[],p=Object.assign(Sw,{defaultVisitor:c,convertValue:u,isVisitable:bw});if(!vb.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!vb.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),vb.forEach(r,(function(r,i){!0===(!(vb.isUndefined(r)||null===r)&&o.call(t,r,vb.isString(i)?i.trim():i,n,p))&&e(r,n?n.concat(i):[i])})),l.pop()}}(e),t}function Aw(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Rw(e,t){this._pairs=[],e&&Ew(e,this,t)}const Ow=Rw.prototype;function Pw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kw(e,t,r){if(!t)return e;const n=r&&r.encode||Pw;vb.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(t,r):vb.isURLSearchParams(t)?t.toString():new Rw(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Ow.append=function(e,t){this._pairs.push([e,t])},Ow.toString=function(e){const t=e?function(t){return e.call(this,t,Aw)}:Aw;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class jw{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){vb.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Tw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Iw={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Rw,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Nw="undefined"!=typeof window&&"undefined"!=typeof document,_w="object"==typeof navigator&&navigator||void 0,Cw=Nw&&(!_w||["ReactNative","NativeScript","NS"].indexOf(_w.product)<0),Uw="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Lw=Nw&&window.location.href||"http://localhost";var Fw={...Object.freeze({__proto__:null,hasBrowserEnv:Nw,hasStandardBrowserEnv:Cw,hasStandardBrowserWebWorkerEnv:Uw,navigator:_w,origin:Lw}),...Iw};function Dw(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&vb.isArray(n)?n.length:i,s)return vb.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&vb.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&vb.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(vb.isFormData(e)&&vb.isFunction(e.entries)){const r={};return vb.forEachEntry(e,((e,n)=>{t(function(e){return vb.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const Bw={transitional:Tw,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=vb.isObject(e);o&&vb.isHTMLForm(e)&&(e=new FormData(e));if(vb.isFormData(e))return n?JSON.stringify(Dw(e)):e;if(vb.isArrayBuffer(e)||vb.isBuffer(e)||vb.isStream(e)||vb.isFile(e)||vb.isBlob(e)||vb.isReadableStream(e))return e;if(vb.isArrayBufferView(e))return e.buffer;if(vb.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ew(e,new Fw.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return Fw.isNode&&vb.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=vb.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ew(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(vb.isString(e))try{return(t||JSON.parse)(e),vb.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Bw.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(vb.isResponse(e)||vb.isReadableStream(e))return e;if(e&&vb.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw mw.from(e,mw.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fw.classes.FormData,Blob:Fw.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};vb.forEach(["delete","get","head","post","put","patch"],(e=>{Bw.headers[e]={}}));const Mw=vb.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"]);const qw=Symbol("internals");function Ww(e){return e&&String(e).trim().toLowerCase()}function Gw(e){return!1===e||null==e?e:vb.isArray(e)?e.map(Gw):String(e)}function zw(e,t,r,n,o){return vb.isFunction(n)?n.call(this,t,r):(o&&(t=r),vb.isString(t)?vb.isString(n)?-1!==t.indexOf(n):vb.isRegExp(n)?n.test(t):void 0:void 0)}let Hw=class{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=Ww(t);if(!o)throw new Error("header name must be a non-empty string");const i=vb.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=Gw(e))}const i=(e,t)=>vb.forEach(e,((e,r)=>o(e,r,t)));if(vb.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(vb.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]&&Mw[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(vb.isHeaders(e))for(const[t,n]of e.entries())o(n,t,r);else null!=e&&o(t,e,r);return this}get(e,t){if(e=Ww(e)){const r=vb.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(vb.isFunction(t))return t.call(this,e,r);if(vb.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ww(e)){const r=vb.findKey(this,e);return!(!r||void 0===this[r]||t&&!zw(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=Ww(e)){const o=vb.findKey(r,e);!o||t&&!zw(0,r[o],o,t)||(delete r[o],n=!0)}}return vb.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&&!zw(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return vb.forEach(this,((n,o)=>{const i=vb.findKey(r,o);if(i)return t[i]=Gw(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]=Gw(n),r[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return vb.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&vb.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,r]=e;return t+": "+r})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[qw]=this[qw]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=Ww(e);t[n]||(!function(e,t){const r=vb.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return vb.isArray(e)?e.forEach(n):n(e),this}};function $w(e,t){const r=this||Bw,n=t||r,o=Hw.from(n.headers);let i=n.data;return vb.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Vw(e){return!(!e||!e.__CANCEL__)}function Kw(e,t,r){mw.call(this,null==e?"canceled":e,mw.ERR_CANCELED,t,r),this.name="CanceledError"}function Yw(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new mw("Request failed with status code "+r.status,[mw.ERR_BAD_REQUEST,mw.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}Hw.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),vb.reduceDescriptors(Hw.prototype,((e,t)=>{let{value:r}=e,n=t[0].toUpperCase()+t.slice(1);return{get:()=>r,set(e){this[n]=e}}})),vb.freezeMethods(Hw),vb.inherits(Kw,mw,{__CANCEL__:!0});const Jw=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,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 u=Date.now(),c=n[a];o||(o=u),r[i]=s,n[i]=u;let l=a,p=0;for(;l!==i;)p+=r[l++],l%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o<t)return;const f=c&&u-c;return f?Math.round(1e3*p/f):void 0}}(50,250);return function(e,t){let r,n,o=0,i=1e3/t;const a=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-o;for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];t>=i?a(u,e):(r=u,n||(n=setTimeout((()=>{n=null,a(r)}),i-t)))},()=>r&&a(r)]}((r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=i-n,u=o(s);n=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&i<=a?(a-i)/u:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),r)},Qw=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Xw=e=>function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return vb.asap((()=>e(...r)))};var Zw=Fw.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Fw.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Fw.origin),Fw.navigator&&/(msie|trident)/i.test(Fw.navigator.userAgent)):()=>!0,ex=Fw.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];vb.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),vb.isString(n)&&a.push("path="+n),vb.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function tx(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const rx=e=>e instanceof Hw?{...e}:e;function nx(e,t){t=t||{};const r={};function n(e,t,r,n){return vb.isPlainObject(e)&&vb.isPlainObject(t)?vb.merge.call({caseless:n},e,t):vb.isPlainObject(t)?vb.merge({},t):vb.isArray(t)?t.slice():t}function o(e,t,r,o){return vb.isUndefined(t)?vb.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!vb.isUndefined(t))return n(void 0,t)}function a(e,t){return vb.isUndefined(t)?vb.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>o(rx(e),rx(t),0,!0)};return vb.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=u[n]||o,a=i(e[n],t[n],n);vb.isUndefined(a)&&i!==s||(r[n]=a)})),r}var ox=e=>{const t=nx({},e);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:u}=t;if(t.headers=s=Hw.from(s),t.url=kw(tx(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&s.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),vb.isFormData(n))if(Fw.hasStandardBrowserEnv||Fw.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(r=s.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(Fw.hasStandardBrowserEnv&&(o&&vb.isFunction(o)&&(o=o(t)),o||!1!==o&&Zw(t.url))){const e=i&&a&&ex.read(a);e&&s.set(i,e)}return t};var ix="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=ox(e);let o=n.data;const i=Hw.from(n.headers).normalize();let a,s,u,c,l,{responseType:p,onUploadProgress:f,onDownloadProgress:h}=n;function d(){c&&c(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let y=new XMLHttpRequest;function m(){if(!y)return;const n=Hw.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());Yw((function(e){t(e),d()}),(function(e){r(e),d()}),{data:p&&"text"!==p&&"json"!==p?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:e,request:y}),y=null}y.open(n.method.toUpperCase(),n.url,!0),y.timeout=n.timeout,"onloadend"in y?y.onloadend=m:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(m)},y.onabort=function(){y&&(r(new mw("Request aborted",mw.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new mw("Network Error",mw.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||Tw;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new mw(t,o.clarifyTimeoutError?mw.ETIMEDOUT:mw.ECONNABORTED,e,y)),y=null},void 0===o&&i.setContentType(null),"setRequestHeader"in y&&vb.forEach(i.toJSON(),(function(e,t){y.setRequestHeader(t,e)})),vb.isUndefined(n.withCredentials)||(y.withCredentials=!!n.withCredentials),p&&"json"!==p&&(y.responseType=n.responseType),h&&([u,l]=Jw(h,!0),y.addEventListener("progress",u)),f&&y.upload&&([s,c]=Jw(f),y.upload.addEventListener("progress",s),y.upload.addEventListener("loadend",c)),(n.cancelToken||n.signal)&&(a=t=>{y&&(r(!t||t.type?new Kw(null,e,y):t),y.abort(),y=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);g&&-1===Fw.protocols.indexOf(g)?r(new mw("Unsupported protocol "+g+":",mw.ERR_BAD_REQUEST,e)):y.send(o||null)}))};const ax=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;n.abort(t instanceof mw?t:new Kw(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new mw(`timeout ${t} of ms exceeded`,mw.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)));const{signal:s}=n;return s.unsubscribe=()=>vb.asap(a),s}},sx=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},ux=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},cx=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of ux(e))yield*sx(r,t)}(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();let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},lx="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,px=lx&&"function"==typeof ReadableStream,fx=lx&&("function"==typeof TextEncoder?(hx=new TextEncoder,e=>hx.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var hx;const dx=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(...r)}catch(e){return!1}},yx=px&&dx((()=>{let e=!1;const t=new Request(Fw.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),mx=px&&dx((()=>vb.isReadableStream(new Response("").body))),gx={stream:mx&&(e=>e.body)};var vx;lx&&(vx=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!gx[e]&&(gx[e]=vb.isFunction(vx[e])?t=>t[e]():(t,r)=>{throw new mw(`Response type '${e}' is not supported`,mw.ERR_NOT_SUPPORT,r)})})));const bx=async(e,t)=>{const r=vb.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(vb.isBlob(e))return e.size;if(vb.isSpecCompliantForm(e)){const t=new Request(Fw.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return vb.isArrayBufferView(e)||vb.isArrayBuffer(e)?e.byteLength:(vb.isURLSearchParams(e)&&(e+=""),vb.isString(e)?(await fx(e)).byteLength:void 0)})(t):r};var wx=lx&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:u,responseType:c,headers:l,withCredentials:p="same-origin",fetchOptions:f}=ox(e);c=c?(c+"").toLowerCase():"text";let h,d=ax([o,i&&i.toAbortSignal()],a);const y=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let m;try{if(u&&yx&&"get"!==r&&"head"!==r&&0!==(m=await bx(l,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(vb.isFormData(n)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){const[e,t]=Qw(m,Jw(Xw(u)));n=cx(r.body,65536,e,t)}}vb.isString(p)||(p=p?"include":"omit");const o="credentials"in Request.prototype;h=new Request(t,{...f,signal:d,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:o?p:void 0});let i=await fetch(h);const a=mx&&("stream"===c||"response"===c);if(mx&&(s||a&&y)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=vb.toFiniteNumber(i.headers.get("content-length")),[r,n]=s&&Qw(t,Jw(Xw(s),!0))||[];i=new Response(cx(i.body,65536,r,(()=>{n&&n(),y&&y()})),e)}c=c||"text";let g=await gx[vb.findKey(gx,c)||"text"](i,e);return!a&&y&&y(),await new Promise(((t,r)=>{Yw(t,r,{data:g,headers:Hw.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:h})}))}catch(t){if(y&&y(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new mw("Network Error",mw.ERR_NETWORK,e,h),{cause:t.cause||t});throw mw.from(t,t&&t.code,e,h)}});const xx={http:null,xhr:ix,fetch:wx};vb.forEach(xx,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Sx=e=>`- ${e}`,Ex=e=>vb.isFunction(e)||null===e||!1===e;var Ax=e=>{e=vb.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!Ex(r)&&(n=xx[(t=String(r)).toLowerCase()],void 0===n))throw new mw(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+i]=n}if(!n){const e=Object.entries(o).map((e=>{let[t,r]=e;return`adapter ${t} `+(!1===r?"is not supported by the environment":"is not available in the build")}));throw new mw("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Sx).join("\n"):" "+Sx(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function Rx(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Kw(null,e)}function Ox(e){Rx(e),e.headers=Hw.from(e.headers),e.data=$w.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ax(e.adapter||Bw.adapter)(e).then((function(t){return Rx(e),t.data=$w.call(e,e.transformResponse,t),t.headers=Hw.from(t.headers),t}),(function(t){return Vw(t)||(Rx(e),t&&t.response&&(t.response.data=$w.call(e,e.transformResponse,t.response),t.response.headers=Hw.from(t.response.headers))),Promise.reject(t)}))}const Px="1.8.4",kx={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{kx[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const jx={};kx.transitional=function(e,t,r){function n(e,t){return"[Axios v1.8.4] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new mw(n(o," has been removed"+(t?" in "+t:"")),mw.ERR_DEPRECATED);return t&&!jx[o]&&(jx[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},kx.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var Tx={assertOptions:function(e,t,r){if("object"!=typeof e)throw new mw("options must be an object",mw.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new mw("option "+i+" must be "+r,mw.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new mw("Unknown option "+i,mw.ERR_BAD_OPTION)}},validators:kx};const Ix=Tx.validators;let Nx=class{constructor(e){this.defaults=e,this.interceptors={request:new jw,response:new jw}}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=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=nx(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&Tx.assertOptions(r,{silentJSONParsing:Ix.transitional(Ix.boolean),forcedJSONParsing:Ix.transitional(Ix.boolean),clarifyTimeoutError:Ix.transitional(Ix.boolean)},!1),null!=n&&(vb.isFunction(n)?t.paramsSerializer={serialize:n}:Tx.assertOptions(n,{encode:Ix.function,serialize:Ix.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Tx.assertOptions(t,{baseUrl:Ix.spelling("baseURL"),withXsrfToken:Ix.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&vb.merge(o.common,o[t.method]);o&&vb.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Hw.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let l,p=0;if(!s){const e=[Ox.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,u),l=e.length,c=Promise.resolve(t);p<l;)c=c.then(e[p++],e[p++]);return c}l=a.length;let f=t;for(p=0;p<l;){const e=a[p++],t=a[p++];try{f=e(f)}catch(e){t.call(this,e);break}}try{c=Ox.call(this,f)}catch(e){return Promise.reject(e)}for(p=0,l=u.length;p<l;)c=c.then(u[p++],u[p++]);return c}getUri(e){return kw(tx((e=nx(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};vb.forEach(["delete","get","head","options"],(function(e){Nx.prototype[e]=function(t,r){return this.request(nx(r||{},{method:e,url:t,data:(r||{}).data}))}})),vb.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(nx(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Nx.prototype[e]=t(),Nx.prototype[e+"Form"]=t(!0)}));const _x={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_x).forEach((e=>{let[t,r]=e;_x[r]=t}));const Cx=function e(t){const r=new Nx(t),n=Nv(Nx.prototype.request,r);return vb.extend(n,Nx.prototype,r,{allOwnKeys:!0}),vb.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(nx(t,r))},n}(Bw);Cx.Axios=Nx,Cx.CanceledError=Kw,Cx.CancelToken=class e{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 Kw(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 t;return{token:new e((function(e){t=e})),cancel:t}}},Cx.isCancel=Vw,Cx.VERSION=Px,Cx.toFormData=Ew,Cx.AxiosError=mw,Cx.Cancel=Cx.CanceledError,Cx.all=function(e){return Promise.all(e)},Cx.spread=function(e){return function(t){return e.apply(null,t)}},Cx.isAxiosError=function(e){return vb.isObject(e)&&!0===e.isAxiosError},Cx.mergeConfig=nx,Cx.AxiosHeaders=Hw,Cx.formToJSON=e=>Dw(vb.isHTMLForm(e)?new FormData(e):e),Cx.getAdapter=Ax,Cx.HttpStatusCode=_x,Cx.default=Cx;const{Axios:Ux,AxiosError:Lx,CanceledError:Fx,isCancel:Dx,CancelToken:Bx,VERSION:Mx,all:qx,Cancel:Wx,isAxiosError:Gx,spread:zx,toFormData:Hx,AxiosHeaders:$x,HttpStatusCode:Vx,formToJSON:Kx,getAdapter:Yx,mergeConfig:Jx}=Cx;var Qx=function(){return c((function e(t){var r=t.responseHandler,n=t.requestConfigBuilder;s(this,e),this.responseHandler=r,this.requestConfigBuilder=n}),[{key:"get",value:(a=i(j().mark((function e(t,r){var n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("get",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"getData",value:(o=i(j().mark((function e(t,r){var n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("get",t,r,{responseType:"arraybuffer"});case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"post",value:(n=i(j().mark((function e(t,r){var n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("post",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"postData",value:(r=i(j().mark((function e(t,r){var n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("post",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"put",value:(t=i(j().mark((function e(t,r){var n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("put",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})},{key:"delete",value:(e=i(j().mark((function e(t,r){var n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("delete",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(t,r){return e.apply(this,arguments)})},{key:"sendRequest",value:function(e){return this.responseHandler.handle(Cx(y(y({},e),{},{maxBodyLength:1/0,maxContentLength:1/0})))}}]);var e,t,r,n,o,a}(),Xx=_o,Zx=ue,eS=ye,tS=Pm,rS=Z([].join);Xx({target:"Array",proto:!0,forced:Zx!==Object||!tS("join",",")},{join:function(e){return rS(eS(this),void 0===e?",":e)}});var nS=TypeError,oS=N(Object.freeze({__proto__:null,default:{}})),iS="function"==typeof Map&&Map.prototype,aS=Object.getOwnPropertyDescriptor&&iS?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,sS=iS&&aS&&"function"==typeof aS.get?aS.get:null,uS=iS&&Map.prototype.forEach,cS="function"==typeof Set&&Set.prototype,lS=Object.getOwnPropertyDescriptor&&cS?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,pS=cS&&lS&&"function"==typeof lS.get?lS.get:null,fS=cS&&Set.prototype.forEach,hS="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,dS="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,yS="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,mS=Boolean.prototype.valueOf,gS=Object.prototype.toString,vS=Function.prototype.toString,bS=String.prototype.match,wS=String.prototype.slice,xS=String.prototype.replace,SS=String.prototype.toUpperCase,ES=String.prototype.toLowerCase,AS=RegExp.prototype.test,RS=Array.prototype.concat,OS=Array.prototype.join,PS=Array.prototype.slice,kS=Math.floor,jS="function"==typeof BigInt?BigInt.prototype.valueOf:null,TS=Object.getOwnPropertySymbols,IS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,NS="function"==typeof Symbol&&"object"==typeof Symbol.iterator,_S="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===NS||"symbol")?Symbol.toStringTag:null,CS=Object.prototype.propertyIsEnumerable,US=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function LS(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||AS.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-kS(-e):kS(e);if(n!==e){var o=String(n),i=wS.call(t,o.length+1);return xS.call(o,r,"$&_")+"."+xS.call(xS.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return xS.call(t,r,"$&_")}var FS=oS,DS=FS.custom,BS=KS(DS)?DS:null,MS={__proto__:null,double:'"',single:"'"},qS={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},WS=function e(t,r,n,o){var i=r||{};if(JS(i,"quoteStyle")&&!JS(MS,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(JS(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=!JS(i,"customInspect")||i.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(JS(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(JS(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 ZS(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var u=String(t);return s?LS(t,u):u}if("bigint"==typeof t){var c=String(t)+"n";return s?LS(t,c):c}var l=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=l&&l>0&&"object"==typeof t)return $S(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=OS.call(Array(e.indent+1)," ")}return{base:r,prev:OS.call(Array(t+1),r)}}(i,n);if(void 0===o)o=[];else if(XS(o,t)>=0)return"[Circular]";function f(t,r,a){if(r&&(o=PS.call(o)).push(r),a){var s={depth:i.depth};return JS(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),e(t,s,n+1,o)}return e(t,i,n+1,o)}if("function"==typeof t&&!VS(t)){var h=function(e){if(e.name)return e.name;var t=bS.call(vS.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),d=iE(t,f);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(d.length>0?" { "+OS.call(d,", ")+" }":"")}if(KS(t)){var y=NS?xS.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):IS.call(t);return"object"!=typeof t||NS?y:tE(y)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var m="<"+ES.call(String(t.nodeName)),g=t.attributes||[],v=0;v<g.length;v++)m+=" "+g[v].name+"="+GS(zS(g[v].value),"double",i);return m+=">",t.childNodes&&t.childNodes.length&&(m+="..."),m+="</"+ES.call(String(t.nodeName))+">"}if($S(t)){if(0===t.length)return"[]";var b=iE(t,f);return p&&!function(e){for(var t=0;t<e.length;t++)if(XS(e[t],"\n")>=0)return!1;return!0}(b)?"["+oE(b,p)+"]":"[ "+OS.call(b,", ")+" ]"}if(function(e){return"[object Error]"===QS(e)&&HS(e)}(t)){var w=iE(t,f);return"cause"in Error.prototype||!("cause"in t)||CS.call(t,"cause")?0===w.length?"["+String(t)+"]":"{ ["+String(t)+"] "+OS.call(w,", ")+" }":"{ ["+String(t)+"] "+OS.call(RS.call("[cause]: "+f(t.cause),w),", ")+" }"}if("object"==typeof t&&a){if(BS&&"function"==typeof t[BS]&&FS)return FS(t,{depth:l-n});if("symbol"!==a&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!sS||!e||"object"!=typeof e)return!1;try{sS.call(e);try{pS.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var x=[];return uS&&uS.call(t,(function(e,r){x.push(f(r,t,!0)+" => "+f(e,t))})),nE("Map",sS.call(t),x,p)}if(function(e){if(!pS||!e||"object"!=typeof e)return!1;try{pS.call(e);try{sS.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var S=[];return fS&&fS.call(t,(function(e){S.push(f(e,t))})),nE("Set",pS.call(t),S,p)}if(function(e){if(!hS||!e||"object"!=typeof e)return!1;try{hS.call(e,hS);try{dS.call(e,dS)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return rE("WeakMap");if(function(e){if(!dS||!e||"object"!=typeof e)return!1;try{dS.call(e,dS);try{hS.call(e,hS)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return rE("WeakSet");if(function(e){if(!yS||!e||"object"!=typeof e)return!1;try{return yS.call(e),!0}catch(e){}return!1}(t))return rE("WeakRef");if(function(e){return"[object Number]"===QS(e)&&HS(e)}(t))return tE(f(Number(t)));if(function(e){if(!e||"object"!=typeof e||!jS)return!1;try{return jS.call(e),!0}catch(e){}return!1}(t))return tE(f(jS.call(t)));if(function(e){return"[object Boolean]"===QS(e)&&HS(e)}(t))return tE(mS.call(t));if(function(e){return"[object String]"===QS(e)&&HS(e)}(t))return tE(f(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==T&&t===T)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===QS(e)&&HS(e)}(t)&&!VS(t)){var E=iE(t,f),A=US?US(t)===Object.prototype:t instanceof Object||t.constructor===Object,R=t instanceof Object?"":"null prototype",O=!A&&_S&&Object(t)===t&&_S in t?wS.call(QS(t),8,-1):R?"Object":"",P=(A||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(O||R?"["+OS.call(RS.call([],O||[],R||[]),": ")+"] ":"");return 0===E.length?P+"{}":p?P+"{"+oE(E,p)+"}":P+"{ "+OS.call(E,", ")+" }"}return String(t)};function GS(e,t,r){var n=r.quoteStyle||t,o=MS[n];return o+e+o}function zS(e){return xS.call(String(e),/"/g,""")}function HS(e){return!_S||!("object"==typeof e&&(_S in e||void 0!==e[_S]))}function $S(e){return"[object Array]"===QS(e)&&HS(e)}function VS(e){return"[object RegExp]"===QS(e)&&HS(e)}function KS(e){if(NS)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!IS)return!1;try{return IS.call(e),!0}catch(e){}return!1}var YS=Object.prototype.hasOwnProperty||function(e){return e in this};function JS(e,t){return YS.call(e,t)}function QS(e){return gS.call(e)}function XS(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 ZS(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return ZS(wS.call(e,0,t.maxStringLength),t)+n}var o=qS[t.quoteStyle||"single"];return o.lastIndex=0,GS(xS.call(xS.call(e,o,"\\$1"),/[\x00-\x1f]/g,eE),"single",t)}function eE(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":"")+SS.call(t.toString(16))}function tE(e){return"Object("+e+")"}function rE(e){return e+" { ? }"}function nE(e,t,r,n){return e+" ("+t+") {"+(n?oE(r,n):OS.call(r,", "))+"}"}function oE(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+OS.call(e,","+r)+"\n"+t.prev}function iE(e,t){var r=$S(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=JS(e,o)?t(e[o],e):""}var i,a="function"==typeof TS?TS(e):[];if(NS){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var u in e)JS(e,u)&&(r&&String(Number(u))===u&&u<e.length||NS&&i["$"+u]instanceof Symbol||(AS.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if("function"==typeof TS)for(var c=0;c<a.length;c++)CS.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}var aE=WS,sE=nS,uE=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},cE=Object,lE=Error,pE=EvalError,fE=RangeError,hE=ReferenceError,dE=SyntaxError,yE=URIError,mE=Math.abs,gE=Math.floor,vE=Math.max,bE=Math.min,wE=Math.pow,xE=Math.round,SE=Number.isNaN||function(e){return e!=e},EE=Object.getOwnPropertyDescriptor;if(EE)try{EE([],"length")}catch(e){EE=null}var AE=EE,RE=Object.defineProperty||!1;if(RE)try{RE({},"a",{value:1})}catch(e){RE=!1}var OE,PE,kE,jE,TE,IE,NE,_E,CE,UE,LE,FE,DE,BE,ME,qE,WE=RE;function GE(){return IE?TE:(IE=1,TE="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function zE(){return _E?NE:(_E=1,NE=cE.getPrototypeOf||null)}function HE(){if(UE)return CE;UE=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 CE=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,t){for(var r=[],n=t,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r}(arguments,1),s=t(0,o.length-a.length),u=[],c=0;c<s;c++)u[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(u,",")+"){ 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},CE}function $E(){if(FE)return LE;FE=1;var e=HE();return LE=Function.prototype.bind||e}function VE(){return BE?DE:(BE=1,DE=Function.prototype.call)}function KE(){return qE?ME:(qE=1,ME=Function.prototype.apply)}var YE,JE,QE,XE,ZE,eA,tA,rA="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,nA=$E(),oA=KE(),iA=VE(),aA=rA||nA.call(iA,oA),sA=$E(),uA=nS,cA=VE(),lA=aA,pA=function(e){if(e.length<1||"function"!=typeof e[0])throw new uA("a function is required");return lA(sA,cA,e)};var fA=cE,hA=lE,dA=pE,yA=fE,mA=hE,gA=dE,vA=nS,bA=yE,wA=mE,xA=gE,SA=vE,EA=bE,AA=wE,RA=xE,OA=function(e){return SE(e)||0===e?e:e<0?-1:1},PA=Function,kA=function(e){try{return PA('"use strict"; return ('+e+").constructor;")()}catch(e){}},jA=AE,TA=WE,IA=function(){throw new vA},NA=jA?function(){try{return IA}catch(e){try{return jA(arguments,"callee").get}catch(e){return IA}}}():IA,_A=function(){if(jE)return kE;jE=1;var e="undefined"!=typeof Symbol&&Symbol,t=PE?OE:(PE=1,OE=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 kE=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),CA=function(){if(XE)return QE;XE=1;var e=GE(),t=zE(),r=function(){if(JE)return YE;JE=1;var e,t=pA,r=AE;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 YE=n&&"function"==typeof n.get?t([n.get]):"function"==typeof i&&function(e){return i(null==e?e:o(e))}}();return QE=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}(),UA=zE(),LA=GE(),FA=KE(),DA=VE(),BA={},MA="undefined"!=typeof Uint8Array&&CA?CA(Uint8Array):tA,qA={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?tA:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?tA:ArrayBuffer,"%ArrayIteratorPrototype%":_A&&CA?CA([][Symbol.iterator]()):tA,"%AsyncFromSyncIteratorPrototype%":tA,"%AsyncFunction%":BA,"%AsyncGenerator%":BA,"%AsyncGeneratorFunction%":BA,"%AsyncIteratorPrototype%":BA,"%Atomics%":"undefined"==typeof Atomics?tA:Atomics,"%BigInt%":"undefined"==typeof BigInt?tA:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?tA:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?tA:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?tA:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":hA,"%eval%":eval,"%EvalError%":dA,"%Float32Array%":"undefined"==typeof Float32Array?tA:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?tA:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?tA:FinalizationRegistry,"%Function%":PA,"%GeneratorFunction%":BA,"%Int8Array%":"undefined"==typeof Int8Array?tA:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?tA:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?tA:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_A&&CA?CA(CA([][Symbol.iterator]())):tA,"%JSON%":"object"==typeof JSON?JSON:tA,"%Map%":"undefined"==typeof Map?tA:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&_A&&CA?CA((new Map)[Symbol.iterator]()):tA,"%Math%":Math,"%Number%":Number,"%Object%":fA,"%Object.getOwnPropertyDescriptor%":jA,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?tA:Promise,"%Proxy%":"undefined"==typeof Proxy?tA:Proxy,"%RangeError%":yA,"%ReferenceError%":mA,"%Reflect%":"undefined"==typeof Reflect?tA:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?tA:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&_A&&CA?CA((new Set)[Symbol.iterator]()):tA,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?tA:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_A&&CA?CA(""[Symbol.iterator]()):tA,"%Symbol%":_A?Symbol:tA,"%SyntaxError%":gA,"%ThrowTypeError%":NA,"%TypedArray%":MA,"%TypeError%":vA,"%Uint8Array%":"undefined"==typeof Uint8Array?tA:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?tA:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?tA:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?tA:Uint32Array,"%URIError%":bA,"%WeakMap%":"undefined"==typeof WeakMap?tA:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?tA:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?tA:WeakSet,"%Function.prototype.call%":DA,"%Function.prototype.apply%":FA,"%Object.defineProperty%":TA,"%Object.getPrototypeOf%":UA,"%Math.abs%":wA,"%Math.floor%":xA,"%Math.max%":SA,"%Math.min%":EA,"%Math.pow%":AA,"%Math.round%":RA,"%Math.sign%":OA,"%Reflect.getPrototypeOf%":LA};if(CA)try{null.error}catch(e){var WA=CA(CA(e));qA["%Error.prototype%"]=WA}var GA=function e(t){var r;if("%AsyncFunction%"===t)r=kA("async function () {}");else if("%GeneratorFunction%"===t)r=kA("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=kA("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&CA&&(r=CA(o.prototype))}return qA[t]=r,r},zA={__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"]},HA=$E(),$A=function(){if(eA)return ZE;eA=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=$E();return ZE=r.call(e,t)}(),VA=HA.call(DA,Array.prototype.concat),KA=HA.call(FA,Array.prototype.splice),YA=HA.call(DA,String.prototype.replace),JA=HA.call(DA,String.prototype.slice),QA=HA.call(DA,RegExp.prototype.exec),XA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ZA=/\\(\\)?/g,eR=function(e,t){var r,n=e;if($A(zA,n)&&(n="%"+(r=zA[n])[0]+"%"),$A(qA,n)){var o=qA[n];if(o===BA&&(o=GA(n)),void 0===o&&!t)throw new vA("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new gA("intrinsic "+e+" does not exist!")},tR=function(e,t){if("string"!=typeof e||0===e.length)throw new vA("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new vA('"allowMissing" argument must be a boolean');if(null===QA(/^%?[^%]*%?$/,e))throw new gA("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=JA(e,0,1),r=JA(e,-1);if("%"===t&&"%"!==r)throw new gA("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new gA("invalid intrinsic syntax, expected opening `%`");var n=[];return YA(e,XA,(function(e,t,r,o){n[n.length]=r?YA(o,ZA,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=eR("%"+n+"%",t),i=o.name,a=o.value,s=!1,u=o.alias;u&&(n=u[0],KA(r,VA([0,1],u)));for(var c=1,l=!0;c<r.length;c+=1){var p=r[c],f=JA(p,0,1),h=JA(p,-1);if(('"'===f||"'"===f||"`"===f||'"'===h||"'"===h||"`"===h)&&f!==h)throw new gA("property names with quotes must have matching quotes");if("constructor"!==p&&l||(s=!0),$A(qA,i="%"+(n+="."+p)+"%"))a=qA[i];else if(null!=a){if(!(p in a)){if(!t)throw new vA("base intrinsic for "+e+" exists, but the property is not available.");return}if(jA&&c+1>=r.length){var d=jA(a,p);a=(l=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[p]}else l=$A(a,p),a=a[p];l&&!s&&(qA[i]=a)}}return a},rR=tR,nR=pA,oR=nR([rR("%String.prototype.indexOf%")]),iR=function(e,t){var r=rR(e,!!t);return"function"==typeof r&&oR(e,".prototype.")>-1?nR([r]):r},aR=iR,sR=WS,uR=nS,cR=tR("%Map%",!0),lR=aR("Map.prototype.get",!0),pR=aR("Map.prototype.set",!0),fR=aR("Map.prototype.has",!0),hR=aR("Map.prototype.delete",!0),dR=aR("Map.prototype.size",!0),yR=!!cR&&function(){var e,t={assert:function(e){if(!t.has(e))throw new uR("Side channel does not contain "+sR(e))},delete:function(t){if(e){var r=hR(e,t);return 0===dR(e)&&(e=void 0),r}return!1},get:function(t){if(e)return lR(e,t)},has:function(t){return!!e&&fR(e,t)},set:function(t,r){e||(e=new cR),pR(e,t,r)}};return t},mR=iR,gR=WS,vR=yR,bR=nS,wR=tR("%WeakMap%",!0),xR=mR("WeakMap.prototype.get",!0),SR=mR("WeakMap.prototype.set",!0),ER=mR("WeakMap.prototype.has",!0),AR=mR("WeakMap.prototype.delete",!0),RR=nS,OR=WS,PR=(wR?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new bR("Side channel does not contain "+gR(e))},delete:function(r){if(wR&&r&&("object"==typeof r||"function"==typeof r)){if(e)return AR(e,r)}else if(vR&&t)return t.delete(r);return!1},get:function(r){return wR&&r&&("object"==typeof r||"function"==typeof r)&&e?xR(e,r):t&&t.get(r)},has:function(r){return wR&&r&&("object"==typeof r||"function"==typeof r)&&e?ER(e,r):!!t&&t.has(r)},set:function(r,n){wR&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new wR),SR(e,r,n)):vR&&(t||(t=vR()),t.set(r,n))}};return r}:vR)||yR||function(){var e,t={assert:function(e){if(!t.has(e))throw new sE("Side channel does not contain "+aE(e))},delete:function(t){var r=e&&e.next,n=function(e,t){if(e)return uE(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=uE(e,t);return r&&r.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!uE(e,t)}(e,t)},set:function(t,r){e||(e={next:void 0}),function(e,t,r){var n=uE(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(e,t,r)}};return t},kR=String.prototype.replace,jR=/%20/g,TR="RFC3986",IR={default:TR,formatters:{RFC1738:function(e){return kR.call(e,jR,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:TR},NR=IR,_R=Object.prototype.hasOwnProperty,CR=Array.isArray,UR=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),LR=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},FR=1024,DR={arrayToObject:LR,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),s=0;s<a.length;++s){var u=a[s],c=i[u];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:i,prop:u}),r.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(CR(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,n,o){if(0===e.length)return e;var i=e;if("symbol"==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+=FR){for(var u=i.length>=FR?i.slice(s,s+FR):i,c=[],l=0;l<u.length;++l){var p=u.charCodeAt(l);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===NR.RFC1738&&(40===p||41===p)?c[c.length]=u.charAt(l):p<128?c[c.length]=UR[p]:p<2048?c[c.length]=UR[192|p>>6]+UR[128|63&p]:p<55296||p>=57344?c[c.length]=UR[224|p>>12]+UR[128|p>>6&63]+UR[128|63&p]:(l+=1,p=65536+((1023&p)<<10|1023&u.charCodeAt(l)),c[c.length]=UR[240|p>>18]+UR[128|p>>12&63]+UR[128|p>>6&63]+UR[128|63&p])}a+=c.join("")}return a},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(CR(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(CR(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!_R.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return CR(t)&&!CR(r)&&(o=LR(t,n)),CR(t)&&CR(r)?(r.forEach((function(r,o){if(_R.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,n):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];return _R.call(t,o)?t[o]=e(t[o],i,n):t[o]=i,t}),o)}},BR=function(){var e,t={assert:function(e){if(!t.has(e))throw new RR("Side channel does not contain "+OR(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=PR()),e.set(t,r)}};return t},MR=DR,qR=IR,WR=Object.prototype.hasOwnProperty,GR={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},zR=Array.isArray,HR=Array.prototype.push,$R=function(e,t){HR.apply(e,zR(t)?t:[t])},VR=Date.prototype.toISOString,KR=qR.default,YR={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:MR.encode,encodeValuesOnly:!1,filter:void 0,format:KR,formatter:qR.formatters[KR],indices:!1,serializeDate:function(e){return VR.call(e)},skipNulls:!1,strictNullHandling:!1},JR={},QR=function e(t,r,n,o,i,a,s,u,c,l,p,f,h,d,y,m,g,v){for(var b,w=t,x=v,S=0,E=!1;void 0!==(x=x.get(JR))&&!E;){var A=x.get(t);if(S+=1,void 0!==A){if(A===S)throw new RangeError("Cyclic object value");E=!0}void 0===x.get(JR)&&(S=0)}if("function"==typeof l?w=l(r,w):w instanceof Date?w=h(w):"comma"===n&&zR(w)&&(w=MR.maybeMap(w,(function(e){return e instanceof Date?h(e):e}))),null===w){if(a)return c&&!m?c(r,YR.encoder,g,"key",d):r;w=""}if("string"==typeof(b=w)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||MR.isBuffer(w))return c?[y(m?r:c(r,YR.encoder,g,"key",d))+"="+y(c(w,YR.encoder,g,"value",d))]:[y(r)+"="+y(String(w))];var R,O=[];if(void 0===w)return O;if("comma"===n&&zR(w))m&&c&&(w=MR.maybeMap(w,c)),R=[{value:w.length>0?w.join(",")||null:void 0}];else if(zR(l))R=l;else{var P=Object.keys(w);R=p?P.sort(p):P}var k=u?String(r).replace(/\./g,"%2E"):String(r),j=o&&zR(w)&&1===w.length?k+"[]":k;if(i&&zR(w)&&0===w.length)return j+"[]";for(var T=0;T<R.length;++T){var I=R[T],N="object"==typeof I&&I&&void 0!==I.value?I.value:w[I];if(!s||null!==N){var _=f&&u?String(I).replace(/\./g,"%2E"):String(I),C=zR(w)?"function"==typeof n?n(j,_):j:j+(f?"."+_:"["+_+"]");v.set(t,S);var U=BR();U.set(JR,v),$R(O,e(N,C,n,o,i,a,s,u,"comma"===n&&m&&zR(w)?null:c,l,p,f,h,d,y,m,g,U))}}return O},XR=DR,ZR=Object.prototype.hasOwnProperty,eO=Array.isArray,tO={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:XR.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},rO=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},nO=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},oO=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),s=a?o.slice(0,a.index):o,u=[];if(s){if(!r.plainObjects&&ZR.call(Object.prototype,s)&&!r.allowPrototypes)return;u.push(s)}for(var c=0;r.depth>0&&null!==(a=i.exec(o))&&c<r.depth;){if(c+=1,!r.plainObjects&&ZR.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(a[1])}if(a){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u.push("["+o.slice(a.index)+"]")}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:nO(t,r,o),s=e.length-1;s>=0;--s){var u,c=e[s];if("[]"===c&&r.parseArrays)u=r.allowEmptyArrays&&(""===a||r.strictNullHandling&&null===a)?[]:XR.combine([],a);else{u=r.plainObjects?{__proto__:null}:{};var l="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,p=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,f=parseInt(p,10);r.parseArrays||""!==p?!isNaN(f)&&c!==p&&String(f)===p&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(u=[])[f]=a:"__proto__"!==p&&(u[p]=a):u={0:a}}a=u}return a}(u,t,r,n)}},iO=function(e,t){var r,n=e,o=function(e){if(!e)return YR;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&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||YR.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=qR.default;if(void 0!==e.format){if(!WR.call(qR.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,o=qR.formatters[r],i=YR.filter;if(("function"==typeof e.filter||zR(e.filter))&&(i=e.filter),n=e.arrayFormat in GR?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":YR.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=void 0===e.allowDots?!0===e.encodeDotInKeys||YR.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:YR.addQueryPrefix,allowDots:a,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:YR.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:YR.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?YR.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:YR.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:YR.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:YR.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:YR.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:YR.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:YR.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:YR.strictNullHandling}}(t);"function"==typeof o.filter?n=(0,o.filter)("",n):zR(o.filter)&&(r=o.filter);var i=[];if("object"!=typeof n||null===n)return"";var a=GR[o.arrayFormat],s="comma"===a&&o.commaRoundTrip;r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var u=BR(),c=0;c<r.length;++c){var l=r[c],p=n[l];o.skipNulls&&null===p||$R(i,QR(p,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,u))}var f=i.join(o.delimiter),h=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),f.length>0?h+f:""},aO=function(e,t){var r=function(e){if(!e)return tO;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&&void 0!==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?tO.charset:e.charset,r=void 0===e.duplicates?tO.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||tO.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:tO.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:tO.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:tO.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:tO.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:tO.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:tO.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:tO.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:tO.decoder,delimiter:"string"==typeof e.delimiter||XR.isRegExp(e.delimiter)?e.delimiter:tO.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:tO.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:tO.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:tO.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:tO.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:tO.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:tO.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?o+1:o);if(t.throwOnLimitExceeded&&i.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(1===o?"":"s")+" allowed.");var a,s=-1,u=t.charset;if(t.charsetSentinel)for(a=0;a<i.length;++a)0===i[a].indexOf("utf8=")&&("utf8=%E2%9C%93"===i[a]?u="utf-8":"utf8=%26%2310003%3B"===i[a]&&(u="iso-8859-1"),s=a,a=i.length);for(a=0;a<i.length;++a)if(a!==s){var c,l,p=i[a],f=p.indexOf("]="),h=-1===f?p.indexOf("="):f+1;-1===h?(c=t.decoder(p,tO.decoder,u,"key"),l=t.strictNullHandling?null:""):(c=t.decoder(p.slice(0,h),tO.decoder,u,"key"),l=XR.maybeMap(nO(p.slice(h+1),t,eO(r[c])?r[c].length:0),(function(e){return t.decoder(e,tO.decoder,u,"value")}))),l&&t.interpretNumericEntities&&"iso-8859-1"===u&&(l=rO(String(l))),p.indexOf("[]=")>-1&&(l=eO(l)?[l]:l);var d=ZR.call(r,c);d&&"combine"===t.duplicates?r[c]=XR.combine(r[c],l):d&&"last"!==t.duplicates||(r[c]=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],u=oO(s,n[s],r,"string"==typeof e);o=XR.merge(o,u,r)}return!0===r.allowSparse?o:XR.compact(o)},sO=I({formats:IR,parse:aO,stringify:iO});const uO="function"==typeof Buffer,cO=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),lO=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),pO=(e=>{let t={};return e.forEach(((e,r)=>t[e]=r)),t})(lO),fO=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,hO=String.fromCharCode.bind(String),dO=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_"))),yO=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),mO=e=>{let t,r,n,o,i="";const a=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|o,i+=lO[t>>18&63]+lO[t>>12&63]+lO[t>>6&63]+lO[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},gO="function"==typeof btoa?e=>btoa(e):uO?e=>Buffer.from(e,"binary").toString("base64"):mO,vO=uO?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r<n;r+=4096)t.push(hO.apply(null,e.subarray(r,r+4096)));return gO(t.join(""))},bO=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?hO(192|t>>>6)+hO(128|63&t):hO(224|t>>>12&15)+hO(128|t>>>6&63)+hO(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return hO(240|t>>>18&7)+hO(128|t>>>12&63)+hO(128|t>>>6&63)+hO(128|63&t)},wO=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,xO=e=>e.replace(wO,bO),SO=uO?e=>Buffer.from(e,"utf8").toString("base64"):cO?e=>vO(cO.encode(e)):e=>gO(xO(e)),EO=function(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?dO(SO(e)):SO(e)},AO=e=>{if(e=e.replace(/\s+/g,""),!fO.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r,n,o="";for(let i=0;i<e.length;)t=pO[e.charAt(i++)]<<18|pO[e.charAt(i++)]<<12|(r=pO[e.charAt(i++)])<<6|(n=pO[e.charAt(i++)]),o+=64===r?hO(t>>16&255):64===n?hO(t>>16&255,t>>8&255):hO(t>>16&255,t>>8&255,255&t);return o},RO=EO;var OO,PO=function(){return c((function e(t){if(s(this,e),this.baseUrl=t.baseUrl,this.auth=t.auth,this.headers=this.buildHeaders({basicAuth:t.basicAuth,userAgent:t.userAgent}),"httpsAgent"in t){if("clientCertAuth"in t)throw new Error("Cannot specify clientCertAuth along with httpsAgent.");this.httpsAgent=t.httpsAgent}else"clientCertAuth"in t&&(this.clientCertAuth=t.clientCertAuth);this.proxy=t.proxy,this.requestToken=null,this.socketTimeout=t.socketTimeout}),[{key:"build",value:(n=i(j().mark((function e(r,n,o,i){var a,s,u,c;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=y(y(y({method:r,headers:this.headers,url:"".concat(this.baseUrl).concat(n)},i||{}),t.buildPlatformDependentConfig({httpsAgent:this.httpsAgent,clientCertAuth:this.clientCertAuth,socketTimeout:this.socketTimeout})),{},{proxy:this.buildProxyConfig(this.proxy)}),e.t0=r,e.next="get"===e.t0?4:"post"===e.t0?16:"put"===e.t0?29:"delete"===e.t0?37:44;break;case 4:if(!((s=this.buildRequestUrl(n,o)).length>4096)){e.next=15;break}return e.t1=y,e.t2=y({},a),e.t3={},e.t4=y(y({},this.headers),{},{"X-HTTP-Method-Override":"GET"}),e.next=12,this.buildData(o);case 12:return e.t5=e.sent,e.t6={method:"post",headers:e.t4,data:e.t5},e.abrupt("return",(0,e.t1)(e.t2,e.t3,e.t6));case 15:return e.abrupt("return",y(y({},a),{},{url:s}));case 16:if(!(o instanceof yv)){e.next=21;break}return e.next=19,this.buildData(o);case 19:return u=e.sent,e.abrupt("return",y(y({},a),{},{headers:"function"==typeof u.getHeaders?y(y({},this.headers),u.getHeaders()):this.headers,data:u}));case 21:return e.t7=y,e.t8=y({},a),e.t9={},e.next=26,this.buildData(o);case 26:return e.t10=e.sent,e.t11={data:e.t10},e.abrupt("return",(0,e.t7)(e.t8,e.t9,e.t11));case 29:return e.t12=y,e.t13=y({},a),e.t14={},e.next=34,this.buildData(o);case 34:return e.t15=e.sent,e.t16={data:e.t15},e.abrupt("return",(0,e.t12)(e.t13,e.t14,e.t16));case 37:return e.t17=this,e.t18=n,e.next=41,this.buildData(o);case 41:return e.t19=e.sent,c=e.t17.buildRequestUrl.call(e.t17,e.t18,e.t19),e.abrupt("return",y(y({},a),{},{url:c}));case 44:throw new Error("".concat(r," method is not supported"));case 45:case"end":return e.stop()}}),e,this)}))),function(e,t,r,o){return n.apply(this,arguments)})},{key:"buildProxyConfig",value:function(e){var t;if(void 0!==e){if(!1===e)return!1;var r=e;return!r.auth||0!==r.auth.username.length&&0!==r.auth.password.length||(r.auth=void 0),r.protocol=null!==(t=r.protocol)&&void 0!==t?t:"http",r}}},{key:"buildRequestUrl",value:function(e,t){return"".concat(this.baseUrl).concat(e,"?").concat(sO.stringify(t))}},{key:"buildData",value:(r=i(j().mark((function e(t){var r;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("session"!==this.auth.type){e.next=8;break}return e.next=3,this.getRequestToken();case 3:if(r=e.sent,!(t instanceof yv)){e.next=7;break}return t.append("__REQUEST_TOKEN__",r),e.abrupt("return",t);case 7:return e.abrupt("return",y({__REQUEST_TOKEN__:r},t));case 8:return e.abrupt("return",t);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"buildHeaders",value:function(e){var r=e.basicAuth,n=e.userAgent,o=r?{Authorization:"Basic ".concat(RO("".concat(r.username,":").concat(r.password)))}:{},i=y(y({},t.buildHeaders({userAgent:n})),o);switch(this.auth.type){case"password":return y(y({},i),{},{"X-Cybozu-Authorization":RO("".concat(this.auth.username,":").concat(this.auth.password))});case"apiToken":var a=this.auth.apiToken;return Array.isArray(a)?y(y({},i),{},{"X-Cybozu-API-Token":a.join(",")}):y(y({},i),{},{"X-Cybozu-API-Token":a});case"oAuthToken":return y(y({},i),{},{Authorization:"Bearer ".concat(this.auth.oAuthToken)});default:return y(y({},i),{},{"X-Requested-With":"XMLHttpRequest"})}}},{key:"getRequestToken",value:(e=i(j().mark((function e(){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==this.requestToken){e.next=4;break}return e.next=3,t.getRequestToken();case 3:this.requestToken=e.sent;case 4:return e.abrupt("return",this.requestToken);case 5:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})}]);var e,r,n}(),kO=["data"],jO=function(){return c((function e(t){var r=t.enableAbortSearchError;s(this,e),this.enableAbortSearchError=r}),[{key:"handle",value:function(e){var t=this;return e.then((function(e){return t.handleSuccessResponse(e)}),(function(e){return t.handleErrorResponse(e)}))}},{key:"handleSuccessResponse",value:function(e){if(this.enableAbortSearchError&&/Filter aborted because of too many search results/.test(e.headers["x-cybozu-warning"]))throw new Yg(e.headers["x-cybozu-warning"]);return e.data}},{key:"handleErrorResponse",value:function(e){if(!e.response){if(/mac verify failure/.test(e.toString()))throw new Error("invalid clientCertAuth setting");throw e}var t=e.response,r=t.data,n=m(t,kO);if("string"==typeof r)throw new Error("".concat(n.status,": ").concat(n.statusText));throw new uv(y({data:r},n))}}])}(),TO=function(){return c((function e(){var r,n,o,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),IO(i),this.baseUrl=t.buildBaseUrl(i.baseUrl).replace(/\/+$/,"");var a=function(e){if("username"in e)return y({type:"password"},e);if("apiToken"in e)return y({type:"apiToken"},e);if("oAuthToken"in e)return y({type:"oAuthToken"},e);try{return t.getDefaultAuth()}catch(e){if(e instanceof ra)throw new Error("session authentication is not supported in ".concat(e.platform," environment."));throw e}}(null!==(r=i.auth)&&void 0!==r?r:{}),u=new PO(y(y({},i),{},{baseUrl:this.baseUrl,auth:a})),c=new jO({enableAbortSearchError:null!==(n=null===(o=i.featureFlags)||void 0===o?void 0:o.enableAbortSearchError)&&void 0!==n&&n}),l=new Qx({responseHandler:c,requestConfigBuilder:u}),p=i.guestSpaceId;this.bulkRequest_=new um(l,p),this.record=new hv(l,this.bulkRequest_,p),this.app=new Rm(l,p),this.space=new dv(l,p),this.file=new mv(l,p),this.plugin=new gv(l)}),[{key:"getBaseUrl",value:function(){return this.baseUrl}},{key:"bulkRequest",value:function(e){return this.bulkRequest_.send(e)}}],[{key:"version",get:function(){return t.getVersion()}}])}(),IO=function(e){NO(e.baseUrl),_O(e.guestSpaceId),CO(e.socketTimeout)},NO=function(e){if(void 0!==e){var t=new URL(e);if("localhost"!==t.hostname&&"https:"!==t.protocol)throw new Error('The protocol of baseUrl must be "https".')}},_O=function(e){if(""===e||null===e)throw new Error("invalid guestSpaceId: got [".concat(e,"]"))},CO=function(e){if(void 0!==e){var t=parseFloat(e.toString());if(isNaN(t)||t<0)throw new Error("Invalid socketTimeout. Must be a positive number.")}};(OO=sa).readFileFromPath&&(t.readFileFromPath=OO.readFileFromPath),OO.getRequestToken&&(t.getRequestToken=OO.getRequestToken),OO.getDefaultAuth&&(t.getDefaultAuth=OO.getDefaultAuth),OO.buildPlatformDependentConfig&&(t.buildPlatformDependentConfig=OO.buildPlatformDependentConfig),OO.buildHeaders&&(t.buildHeaders=OO.buildHeaders),OO.buildFormDataValue&&(t.buildFormDataValue=OO.buildFormDataValue),OO.buildBaseUrl&&(t.buildBaseUrl=OO.buildBaseUrl),OO.getVersion&&(t.getVersion=OO.getVersion),e.KintoneAbortSearchError=Yg,e.KintoneAllRecordsError=sv,e.KintoneRestAPIClient=TO,e.KintoneRestAPIError=uv}));
|