@kintone/rest-api-client 3.1.2 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/README.md +4 -4
- package/esm/KintoneRequestConfigBuilder.d.ts +1 -0
- package/esm/KintoneRestAPIClient.d.ts +1 -0
- package/esm/KintoneRestAPIClient.js +10 -0
- package/esm/KintoneRestAPIClient.js.map +1 -1
- package/esm/__tests__/KintoneRestAPIClient.test.js +15 -0
- package/esm/__tests__/KintoneRestAPIClient.test.js.map +1 -1
- package/esm/platform/browser.d.ts +1 -1
- package/esm/platform/browser.js +4 -2
- package/esm/platform/browser.js.map +1 -1
- package/esm/platform/node.d.ts +1 -0
- package/lib/KintoneRequestConfigBuilder.d.ts +1 -0
- package/lib/KintoneRestAPIClient.d.ts +1 -0
- package/lib/KintoneRestAPIClient.js +10 -0
- package/lib/KintoneRestAPIClient.js.map +1 -1
- package/lib/__tests__/KintoneRestAPIClient.test.js +15 -0
- package/lib/__tests__/KintoneRestAPIClient.test.js.map +1 -1
- package/lib/platform/browser.d.ts +1 -1
- package/lib/platform/browser.js +4 -2
- package/lib/platform/browser.js.map +1 -1
- package/lib/platform/node.d.ts +1 -0
- package/package.json +6 -6
- package/umd/KintoneRestAPIClient.js +3380 -980
- package/umd/KintoneRestAPIClient.min.js +2 -3
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
!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){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 n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){
|
|
1
|
+
!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){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 n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(){
|
|
2
2
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
3
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
4
|
-
o=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",u=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof l?e:l,i=Object.create(o.prototype),a=new R(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=A(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=f(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var p={};function l(){}function h(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(P([])));g&&g!==e&&r.call(g,i)&&(y=g);var b=d.prototype=l.prototype=Object.create(y);function m(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(o,i,a,u){var s=f(t[o],t,i);if("throw"!==s.type){var c=s.arg,p=c.value;return p&&"object"==typeof p&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(p).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function A(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,p;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,s(b,"constructor",d),s(d,"constructor",h),h.displayName=s(d,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},m(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(b),s(b,u,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=P,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},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.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}function i(t){return(i="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})(t)}function a(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,o)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function u(t){a(i,n,o,u,s,"next",t)}function s(t){a(i,n,o,u,s,"throw",t)}u(void 0)}))}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(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,n.key,n)}}function f(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function p(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l(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&&d(t,e)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function v(t,e,r){return(v=y()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&d(o,r.prototype),o}).apply(null,arguments)}function g(t){var e="function"==typeof Map?new Map:void 0;return(g=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;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,n)}function n(){return v(t,arguments,h(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,t)})(t)}function b(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(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 m(t)}function A(t){var e=y();return function(){var r,n=h(t);if(e){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return w(this,r)}}function S(t){return function(t){if(Array.isArray(t))return E(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)return;if("string"==typeof t)return E(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return E(t,e)}(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 E(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function P(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function O(t){var e=t.default;if("function"==typeof e){var r=function(){return 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 x=function(t){return t&&t.Math==Math&&t},k=x("object"==("undefined"==typeof globalThis?"undefined":i(globalThis))&&globalThis)||x("object"==("undefined"==typeof window?"undefined":i(window))&&window)||x("object"==("undefined"==typeof self?"undefined":i(self))&&self)||x("object"==i(R)&&R)||function(){return this}()||Function("return this")(),I={},j=function(t){try{return!!t()}catch(t){return!0}},T=!j((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),N=!j((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),_=N,C=Function.prototype.call,U=_?C.bind(C):function(){return C.apply(C,arguments)},F={},B={}.propertyIsEnumerable,D=Object.getOwnPropertyDescriptor,L=D&&!B.call({1:2},1);F.f=L?function(t){var e=D(this,t);return!!e&&e.enumerable}:B;var M,W,G=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},q=N,z=Function.prototype,V=z.bind,Y=z.call,H=q&&V.bind(Y,Y),$=q?function(t){return t&&H(t)}:function(t){return t&&function(){return Y.apply(t,arguments)}},J=$,K=J({}.toString),Q=J("".slice),X=function(t){return Q(K(t),8,-1)},Z=j,tt=X,et=Object,rt=$("".split),nt=Z((function(){return!et("z").propertyIsEnumerable(0)}))?function(t){return"String"==tt(t)?rt(t,""):et(t)}:et,ot=TypeError,it=function(t){if(null==t)throw ot("Can't call method on "+t);return t},at=nt,ut=it,st=function(t){return at(ut(t))},ct=function(t){return"function"==typeof t},ft=ct,pt=function(t){return"object"==i(t)?null!==t:ft(t)},lt=k,ht=ct,dt=function(t){return ht(t)?t:void 0},yt=function(t,e){return arguments.length<2?dt(lt[t]):lt[t]&<[t][e]},vt=$({}.isPrototypeOf),gt=k,bt=yt("navigator","userAgent")||"",mt=gt.process,wt=gt.Deno,At=mt&&mt.versions||wt&&wt.version,St=At&&At.v8;St&&(W=(M=St.split("."))[0]>0&&M[0]<4?1:+(M[0]+M[1])),!W&&bt&&(!(M=bt.match(/Edge\/(\d+)/))||M[1]>=74)&&(M=bt.match(/Chrome\/(\d+)/))&&(W=+M[1]);var Et=W,Rt=Et,Pt=j,Ot=!!Object.getOwnPropertySymbols&&!Pt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Rt&&Rt<41})),xt=Ot&&!Symbol.sham&&"symbol"==i(Symbol.iterator),kt=yt,It=ct,jt=vt,Tt=Object,Nt=xt?function(t){return"symbol"==i(t)}:function(t){var e=kt("Symbol");return It(e)&&jt(e.prototype,Tt(t))},_t=String,Ct=ct,Ut=function(t){try{return _t(t)}catch(t){return"Object"}},Ft=TypeError,Bt=function(t){if(Ct(t))return t;throw Ft(Ut(t)+" is not a function")},Dt=Bt,Lt=function(t,e){var r=t[e];return null==r?void 0:Dt(r)},Mt=U,Wt=ct,Gt=pt,qt=TypeError,zt={exports:{}},Vt=k,Yt=Object.defineProperty,Ht=function(t,e){try{Yt(Vt,t,{value:e,configurable:!0,writable:!0})}catch(r){Vt[t]=e}return e},$t=Ht,Jt="__core-js_shared__",Kt=k[Jt]||$t(Jt,{}),Qt=Kt;(zt.exports=function(t,e){return Qt[t]||(Qt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.8",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.8/LICENSE",source:"https://github.com/zloirock/core-js"});var Xt=it,Zt=Object,te=function(t){return Zt(Xt(t))},ee=te,re=$({}.hasOwnProperty),ne=Object.hasOwn||function(t,e){return re(ee(t),e)},oe=$,ie=0,ae=Math.random(),ue=oe(1..toString),se=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ue(++ie+ae,36)},ce=k,fe=zt.exports,pe=ne,le=se,he=Ot,de=xt,ye=fe("wks"),ve=ce.Symbol,ge=ve&&ve.for,be=de?ve:ve&&ve.withoutSetter||le,me=function(t){if(!pe(ye,t)||!he&&"string"!=typeof ye[t]){var e="Symbol."+t;he&&pe(ve,t)?ye[t]=ve[t]:ye[t]=de&&ge?ge(e):be(e)}return ye[t]},we=U,Ae=pt,Se=Nt,Ee=Lt,Re=function(t,e){var r,n;if("string"===e&&Wt(r=t.toString)&&!Gt(n=Mt(r,t)))return n;if(Wt(r=t.valueOf)&&!Gt(n=Mt(r,t)))return n;if("string"!==e&&Wt(r=t.toString)&&!Gt(n=Mt(r,t)))return n;throw qt("Can't convert object to primitive value")},Pe=TypeError,Oe=me("toPrimitive"),xe=function(t,e){if(!Ae(t)||Se(t))return t;var r,n=Ee(t,Oe);if(n){if(void 0===e&&(e="default"),r=we(n,t,e),!Ae(r)||Se(r))return r;throw Pe("Can't convert object to primitive value")}return void 0===e&&(e="number"),Re(t,e)},ke=xe,Ie=Nt,je=function(t){var e=ke(t,"string");return Ie(e)?e:e+""},Te=pt,Ne=k.document,_e=Te(Ne)&&Te(Ne.createElement),Ce=function(t){return _e?Ne.createElement(t):{}},Ue=Ce,Fe=!T&&!j((function(){return 7!=Object.defineProperty(Ue("div"),"a",{get:function(){return 7}}).a})),Be=T,De=U,Le=F,Me=G,We=st,Ge=je,qe=ne,ze=Fe,Ve=Object.getOwnPropertyDescriptor;I.f=Be?Ve:function(t,e){if(t=We(t),e=Ge(e),ze)try{return Ve(t,e)}catch(t){}if(qe(t,e))return Me(!De(Le.f,t,e),t[e])};var Ye={},He=T&&j((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),$e=pt,Je=String,Ke=TypeError,Qe=function(t){if($e(t))return t;throw Ke(Je(t)+" is not an object")},Xe=T,Ze=Fe,tr=He,er=Qe,rr=je,nr=TypeError,or=Object.defineProperty,ir=Object.getOwnPropertyDescriptor,ar="enumerable",ur="configurable",sr="writable";Ye.f=Xe?tr?function(t,e,r){if(er(t),e=rr(e),er(r),"function"==typeof t&&"prototype"===e&&"value"in r&&sr in r&&!r.writable){var n=ir(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:ur in r?r.configurable:n.configurable,enumerable:ar in r?r.enumerable:n.enumerable,writable:!1})}return or(t,e,r)}:or:function(t,e,r){if(er(t),e=rr(e),er(r),Ze)try{return or(t,e,r)}catch(t){}if("get"in r||"set"in r)throw nr("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var cr=Ye,fr=G,pr=T?function(t,e,r){return cr.f(t,e,fr(1,r))}:function(t,e,r){return t[e]=r,t},lr={exports:{}},hr=T,dr=ne,yr=Function.prototype,vr=hr&&Object.getOwnPropertyDescriptor,gr=dr(yr,"name"),br={EXISTS:gr,PROPER:gr&&"something"===function(){}.name,CONFIGURABLE:gr&&(!hr||hr&&vr(yr,"name").configurable)},mr=ct,wr=Kt,Ar=$(Function.toString);mr(wr.inspectSource)||(wr.inspectSource=function(t){return Ar(t)});var Sr,Er,Rr,Pr=wr.inspectSource,Or=ct,xr=Pr,kr=k.WeakMap,Ir=Or(kr)&&/native code/.test(xr(kr)),jr=zt.exports,Tr=se,Nr=jr("keys"),_r=function(t){return Nr[t]||(Nr[t]=Tr(t))},Cr={},Ur=Ir,Fr=k,Br=$,Dr=pt,Lr=pr,Mr=ne,Wr=Kt,Gr=_r,qr=Cr,zr="Object already initialized",Vr=Fr.TypeError,Yr=Fr.WeakMap;if(Ur||Wr.state){var Hr=Wr.state||(Wr.state=new Yr),$r=Br(Hr.get),Jr=Br(Hr.has),Kr=Br(Hr.set);Sr=function(t,e){if(Jr(Hr,t))throw new Vr(zr);return e.facade=t,Kr(Hr,t,e),e},Er=function(t){return $r(Hr,t)||{}},Rr=function(t){return Jr(Hr,t)}}else{var Qr=Gr("state");qr[Qr]=!0,Sr=function(t,e){if(Mr(t,Qr))throw new Vr(zr);return e.facade=t,Lr(t,Qr,e),e},Er=function(t){return Mr(t,Qr)?t[Qr]:{}},Rr=function(t){return Mr(t,Qr)}}var Xr={set:Sr,get:Er,has:Rr,enforce:function(t){return Rr(t)?Er(t):Sr(t,{})},getterFor:function(t){return function(e){var r;if(!Dr(e)||(r=Er(e)).type!==t)throw Vr("Incompatible receiver, "+t+" required");return r}}},Zr=j,tn=ct,en=ne,rn=T,nn=br.CONFIGURABLE,on=Pr,an=Xr.enforce,un=Xr.get,sn=Object.defineProperty,cn=rn&&!Zr((function(){return 8!==sn((function(){}),"length",{value:8}).length})),fn=String(String).split("String"),pn=lr.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!en(t,"name")||nn&&t.name!==e)&&sn(t,"name",{value:e,configurable:!0}),cn&&r&&en(r,"arity")&&t.length!==r.arity&&sn(t,"length",{value:r.arity});try{r&&en(r,"constructor")&&r.constructor?rn&&sn(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=an(t);return en(n,"source")||(n.source=fn.join("string"==typeof e?e:"")),t};Function.prototype.toString=pn((function(){return tn(this)&&un(this).source||on(this)}),"toString");var ln=ct,hn=pr,dn=lr.exports,yn=Ht,vn=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;return ln(r)&&dn(r,i,n),n.global?o?t[e]=r:yn(e,r):(n.unsafe?t[e]&&(o=!0):delete t[e],o?t[e]=r:hn(t,e,r)),t},gn={},bn=Math.ceil,mn=Math.floor,wn=Math.trunc||function(t){var e=+t;return(e>0?mn:bn)(e)},An=function(t){var e=+t;return e!=e||0===e?0:wn(e)},Sn=An,En=Math.max,Rn=Math.min,Pn=function(t,e){var r=Sn(t);return r<0?En(r+e,0):Rn(r,e)},On=An,xn=Math.min,kn=function(t){return t>0?xn(On(t),9007199254740991):0},In=kn,jn=function(t){return In(t.length)},Tn=st,Nn=Pn,_n=jn,Cn=function(t){return function(e,r,n){var o,i=Tn(e),a=_n(i),u=Nn(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Un={includes:Cn(!0),indexOf:Cn(!1)},Fn=ne,Bn=st,Dn=Un.indexOf,Ln=Cr,Mn=$([].push),Wn=function(t,e){var r,n=Bn(t),o=0,i=[];for(r in n)!Fn(Ln,r)&&Fn(n,r)&&Mn(i,r);for(;e.length>o;)Fn(n,r=e[o++])&&(~Dn(i,r)||Mn(i,r));return i},Gn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qn=Wn,zn=Gn.concat("length","prototype");gn.f=Object.getOwnPropertyNames||function(t){return qn(t,zn)};var Vn={};Vn.f=Object.getOwnPropertySymbols;var Yn=yt,Hn=gn,$n=Vn,Jn=Qe,Kn=$([].concat),Qn=Yn("Reflect","ownKeys")||function(t){var e=Hn.f(Jn(t)),r=$n.f;return r?Kn(e,r(t)):e},Xn=ne,Zn=Qn,to=I,eo=Ye,ro=j,no=ct,oo=/#|\.prototype\./,io=function(t,e){var r=uo[ao(t)];return r==co||r!=so&&(no(e)?ro(e):!!e)},ao=io.normalize=function(t){return String(t).replace(oo,".").toLowerCase()},uo=io.data={},so=io.NATIVE="N",co=io.POLYFILL="P",fo=io,po=k,lo=I.f,ho=pr,yo=vn,vo=Ht,go=function(t,e,r){for(var n=Zn(e),o=eo.f,i=to.f,a=0;a<n.length;a++){var u=n[a];Xn(t,u)||r&&Xn(r,u)||o(t,u,i(e,u))}},bo=fo,mo=function(t,e){var r,n,o,a,u,s=t.target,c=t.global,f=t.stat;if(r=c?po:f?po[s]||vo(s,{}):(po[s]||{}).prototype)for(n in e){if(a=e[n],o=t.dontCallGetSet?(u=lo(r,n))&&u.value:r[n],!bo(c?n:s+(f?".":"#")+n,t.forced)&&void 0!==o){if(i(a)==i(o))continue;go(a,o)}(t.sham||o&&o.sham)&&ho(a,"sham",!0),yo(r,n,a,t)}},wo=X,Ao=Array.isArray||function(t){return"Array"==wo(t)},So=TypeError,Eo=je,Ro=Ye,Po=G,Oo=function(t,e,r){var n=Eo(e);n in t?Ro.f(t,n,Po(0,r)):t[n]=r},xo={};xo[me("toStringTag")]="z";var ko="[object z]"===String(xo),Io=ko,jo=ct,To=X,No=me("toStringTag"),_o=Object,Co="Arguments"==To(function(){return arguments}()),Uo=Io?To: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=_o(t),No))?r:Co?To(e):"Object"==(n=To(e))&&jo(e.callee)?"Arguments":n},Fo=$,Bo=j,Do=ct,Lo=Uo,Mo=Pr,Wo=function(){},Go=[],qo=yt("Reflect","construct"),zo=/^\s*(?:class|function)\b/,Vo=Fo(zo.exec),Yo=!zo.exec(Wo),Ho=function(t){if(!Do(t))return!1;try{return qo(Wo,Go,t),!0}catch(t){return!1}},$o=function(t){if(!Do(t))return!1;switch(Lo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Yo||!!Vo(zo,Mo(t))}catch(t){return!0}};$o.sham=!0;var Jo=!qo||Bo((function(){var t;return Ho(Ho.call)||!Ho(Object)||!Ho((function(){t=!0}))||t}))?$o:Ho,Ko=Ao,Qo=Jo,Xo=pt,Zo=me("species"),ti=Array,ei=function(t){var e;return Ko(t)&&(e=t.constructor,(Qo(e)&&(e===ti||Ko(e.prototype))||Xo(e)&&null===(e=e[Zo]))&&(e=void 0)),void 0===e?ti:e},ri=function(t,e){return new(ei(t))(0===e?0:e)},ni=j,oi=Et,ii=me("species"),ai=function(t){return oi>=51||!ni((function(){var e=[];return(e.constructor={})[ii]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ui=mo,si=j,ci=Ao,fi=pt,pi=te,li=jn,hi=function(t){if(t>9007199254740991)throw So("Maximum allowed index exceeded");return t},di=Oo,yi=ri,vi=ai,gi=Et,bi=me("isConcatSpreadable"),mi=gi>=51||!si((function(){var t=[];return t[bi]=!1,t.concat()[0]!==t})),wi=vi("concat"),Ai=function(t){if(!fi(t))return!1;var e=t[bi];return void 0!==e?!!e:ci(t)};ui({target:"Array",proto:!0,arity:1,forced:!mi||!wi},{concat:function(t){var e,r,n,o,i,a=pi(this),u=yi(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(Ai(i=-1===e?a:arguments[e]))for(o=li(i),hi(s+o),r=0;r<o;r++,s++)r in i&&di(u,s,i[r]);else hi(s+1),di(u,s++,i);return u.length=s,u}});var Si=T,Ei=br.EXISTS,Ri=$,Pi=Ye.f,Oi=Function.prototype,xi=Ri(Oi.toString),ki=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Ii=Ri(ki.exec);Si&&!Ei&&Pi(Oi,"name",{configurable:!0,get:function(){try{return Ii(ki,xi(this))[1]}catch(t){return""}}});var ji=ct,Ti=String,Ni=TypeError,_i=$,Ci=Qe,Ui=function(t){if("object"==i(t)||ji(t))return t;throw Ni("Can't set "+Ti(t)+" as a prototype")},Fi=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=_i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Ci(r),Ui(n),e?t(r,n):r.__proto__=n,r}}():void 0);mo({target:"Object",stat:!0},{setPrototypeOf:Fi});var Bi=function(t){l(r,t);var e=A(r);function r(t){var n;s(this,r);var o="This function is not supported in ".concat(t," environment");return n=e.call(this,o),Error.captureStackTrace&&Error.captureStackTrace(m(n),r),n.name="UnsupportedPlatformError",n.platform=t,Object.setPrototypeOf(m(n),r.prototype),n}return f(r)}(g(Error)),Di=function(){var t=u(o().mark((function t(){var e,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("object"!==("undefined"==typeof kintone?"undefined":i(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":i(garoon))||null===garoon||"function"!=typeof(null===(e=garoon.connect)||void 0===e||null===(r=e.kintone)||void 0===r?void 0:r.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)}}(),Li=Object.freeze({__proto__:null,readFileFromPath:function(t){throw new Bi("Browser")},getRequestToken:Di,getDefaultAuth:function(){return{type:"session"}},buildPlatformDependentConfig:function(){return{}},buildHeaders:function(){return{}},buildFormDataValue:function(t){return new Blob([t])},buildBaseUrl:function(t){if(t)return t;var e=location,r=e.host,n=e.protocol;return"".concat(n,"//").concat(r)},getVersion:function(){return"3.1.2"}}),Mi=Uo,Wi=String,Gi=function(t){if("Symbol"===Mi(t))throw TypeError("Cannot convert a Symbol value to a string");return Wi(t)},qi=Qe,zi=function(){var t=qi(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.sticky&&(e+="y"),e},Vi=j,Yi=k.RegExp,Hi=Vi((function(){var t=Yi("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),$i=Hi||Vi((function(){return!Yi("a","y").sticky})),Ji={BROKEN_CARET:Hi||Vi((function(){var t=Yi("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:$i,UNSUPPORTED_Y:Hi},Ki={},Qi=Wn,Xi=Gn,Zi=Object.keys||function(t){return Qi(t,Xi)},ta=T,ea=He,ra=Ye,na=Qe,oa=st,ia=Zi;Ki.f=ta&&!ea?Object.defineProperties:function(t,e){na(t);for(var r,n=oa(e),o=ia(e),i=o.length,a=0;i>a;)ra.f(t,r=o[a++],n[r]);return t};var aa,ua=yt("document","documentElement"),sa=Qe,ca=Ki,fa=Gn,pa=Cr,la=ua,ha=Ce,da=_r("IE_PROTO"),ya=function(){},va=function(t){return"<script>"+t+"</"+"script>"},ga=function(t){t.write(va("")),t.close();var e=t.parentWindow.Object;return t=null,e},ba=function(){try{aa=new ActiveXObject("htmlfile")}catch(t){}var t,e;ba="undefined"!=typeof document?document.domain&&aa?ga(aa):((e=ha("iframe")).style.display="none",la.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(va("document.F=Object")),t.close(),t.F):ga(aa);for(var r=fa.length;r--;)delete ba.prototype[fa[r]];return ba()};pa[da]=!0;var ma,wa,Aa=Object.create||function(t,e){var r;return null!==t?(ya.prototype=sa(t),r=new ya,ya.prototype=null,r[da]=t):r=ba(),void 0===e?r:ca.f(r,e)},Sa=j,Ea=k.RegExp,Ra=Sa((function(){var t=Ea(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Pa=j,Oa=k.RegExp,xa=Pa((function(){var t=Oa("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),ka=U,Ia=$,ja=Gi,Ta=zi,Na=Ji,_a=zt.exports,Ca=Aa,Ua=Xr.get,Fa=Ra,Ba=xa,Da=_a("native-string-replace",String.prototype.replace),La=RegExp.prototype.exec,Ma=La,Wa=Ia("".charAt),Ga=Ia("".indexOf),qa=Ia("".replace),za=Ia("".slice),Va=(wa=/b*/g,ka(La,ma=/a/,"a"),ka(La,wa,"a"),0!==ma.lastIndex||0!==wa.lastIndex),Ya=Na.BROKEN_CARET,Ha=void 0!==/()??/.exec("")[1];(Va||Ha||Ya||Fa||Ba)&&(Ma=function(t){var e,r,n,o,i,a,u,s=this,c=Ua(s),f=ja(t),p=c.raw;if(p)return p.lastIndex=s.lastIndex,e=ka(Ma,p,f),s.lastIndex=p.lastIndex,e;var l=c.groups,h=Ya&&s.sticky,d=ka(Ta,s),y=s.source,v=0,g=f;if(h&&(d=qa(d,"y",""),-1===Ga(d,"g")&&(d+="g"),g=za(f,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Wa(f,s.lastIndex-1))&&(y="(?: "+y+")",g=" "+g,v++),r=new RegExp("^(?:"+y+")",d)),Ha&&(r=new RegExp("^"+y+"$(?!\\s)",d)),Va&&(n=s.lastIndex),o=ka(La,h?r:s,g),h?o?(o.input=za(o.input,v),o[0]=za(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Va&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Ha&&o&&o.length>1&&ka(Da,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&l)for(o.groups=a=Ca(null),i=0;i<l.length;i++)a[(u=l[i])[0]]=o[u[1]];return o});var $a=Ma;mo({target:"RegExp",proto:!0,forced:/./.exec!==$a},{exec:$a});var Ja=N,Ka=Function.prototype,Qa=Ka.apply,Xa=Ka.call,Za="object"==("undefined"==typeof Reflect?"undefined":i(Reflect))&&Reflect.apply||(Ja?Xa.bind(Qa):function(){return Xa.apply(Qa,arguments)}),tu=$,eu=vn,ru=$a,nu=j,ou=me,iu=pr,au=ou("species"),uu=RegExp.prototype,su=function(t,e,r,n){var o=ou(t),i=!nu((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!nu((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[au]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var u=tu(/./[o]),s=e(o,""[t],(function(t,e,r,n,o){var a=tu(t),s=e.exec;return s===ru||s===uu.exec?i&&!o?{done:!0,value:u(e,r,n)}:{done:!0,value:a(r,e,n)}:{done:!1}}));eu(String.prototype,t,s[0]),eu(uu,o,s[1])}n&&iu(uu[o],"sham",!0)},cu=$,fu=An,pu=Gi,lu=it,hu=cu("".charAt),du=cu("".charCodeAt),yu=cu("".slice),vu=function(t){return function(e,r){var n,o,i=pu(lu(e)),a=fu(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=du(i,a))<55296||n>56319||a+1===u||(o=du(i,a+1))<56320||o>57343?t?hu(i,a):n:t?yu(i,a,a+2):o-56320+(n-55296<<10)+65536}},gu={codeAt:vu(!1),charAt:vu(!0)}.charAt,bu=function(t,e,r){return e+(r?gu(t,e).length:1)},mu=$,wu=te,Au=Math.floor,Su=mu("".charAt),Eu=mu("".replace),Ru=mu("".slice),Pu=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ou=/\$([$&'`]|\d{1,2})/g,xu=U,ku=Qe,Iu=ct,ju=X,Tu=$a,Nu=TypeError,_u=function(t,e){var r=t.exec;if(Iu(r)){var n=xu(r,t,e);return null!==n&&ku(n),n}if("RegExp"===ju(t))return xu(Tu,t,e);throw Nu("RegExp#exec called on incompatible receiver")},Cu=Za,Uu=U,Fu=$,Bu=su,Du=j,Lu=Qe,Mu=ct,Wu=An,Gu=kn,qu=Gi,zu=it,Vu=bu,Yu=Lt,Hu=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=Ou;return void 0!==o&&(o=wu(o),s=Pu),Eu(i,s,(function(i,s){var c;switch(Su(s,0)){case"$":return"$";case"&":return t;case"`":return Ru(e,0,r);case"'":return Ru(e,a);case"<":c=o[Ru(s,1,-1)];break;default:var f=+s;if(0===f)return i;if(f>u){var p=Au(f/10);return 0===p?i:p<=u?void 0===n[p-1]?Su(s,1):n[p-1]+Su(s,1):i}c=n[f-1]}return void 0===c?"":c}))},$u=_u,Ju=me("replace"),Ku=Math.max,Qu=Math.min,Xu=Fu([].concat),Zu=Fu([].push),ts=Fu("".indexOf),es=Fu("".slice),rs="$0"==="a".replace(/./,"$0"),ns=!!/./[Ju]&&""===/./[Ju]("a","$0");Bu("replace",(function(t,e,r){var n=ns?"$":"$0";return[function(t,r){var n=zu(this),o=null==t?void 0:Yu(t,Ju);return o?Uu(o,t,n,r):Uu(e,qu(n),t,r)},function(t,o){var i=Lu(this),a=qu(t);if("string"==typeof o&&-1===ts(o,n)&&-1===ts(o,"$<")){var u=r(e,i,a,o);if(u.done)return u.value}var s=Mu(o);s||(o=qu(o));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var p=[];;){var l=$u(i,a);if(null===l)break;if(Zu(p,l),!c)break;""===qu(l[0])&&(i.lastIndex=Vu(a,Gu(i.lastIndex),f))}for(var h,d="",y=0,v=0;v<p.length;v++){for(var g=qu((l=p[v])[0]),b=Ku(Qu(Wu(l.index),a.length),0),m=[],w=1;w<l.length;w++)Zu(m,void 0===(h=l[w])?h:String(h));var A=l.groups;if(s){var S=Xu([g],m,b,a);void 0!==A&&Zu(S,A);var E=qu(Cu(o,void 0,S))}else E=Hu(g,a,b,m,A,o);b>=y&&(d+=es(a,y,b)+E,y=b+g.length)}return d+es(a,y)}]}),!!Du((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!rs||ns);var os=Bt,is=N,as=$($.bind),us=function(t,e){return os(t),void 0===e?t:is?as(t,e):function(){return t.apply(e,arguments)}},ss=nt,cs=te,fs=jn,ps=ri,ls=$([].push),hs=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(s,c,f,p){for(var l,h,d=cs(s),y=ss(d),v=us(c,f),g=fs(y),b=0,m=p||ps,w=e?m(s,g):r||a?m(s,0):void 0;g>b;b++)if((u||b in y)&&(h=v(l=y[b],b,d),t))if(e)w[b]=h;else if(h)switch(t){case 3:return!0;case 5:return l;case 6:return b;case 2:ls(w,l)}else switch(t){case 4:return!1;case 7:ls(w,l)}return i?-1:n||o?o:w}},ds={forEach:hs(0),map:hs(1),filter:hs(2),some:hs(3),every:hs(4),find:hs(5),findIndex:hs(6),filterReject:hs(7)},ys=ds.map;mo({target:"Array",proto:!0,forced:!ai("map")},{map:function(t){return ys(this,t,arguments.length>1?arguments[1]:void 0)}});var vs=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")},gs=["endpointName"],bs=function(){function t(e,r){s(this,t),this.client=e,this.guestSpaceId=r,this.REQUESTS_LENGTH_LIMIT=20}return f(t,[{key:"send",value:function(t){var e=this,r=t.requests.map((function(t){if("endpointName"in t){var r=t.endpointName,o=b(t,gs);return n({api:e.buildPathWithGuestSpaceId({endpointName:r})},o)}return t})),o=this.buildPathWithGuestSpaceId({endpointName:"bulkRequest"});return this.client.post(o,{requests:r})}},{key:"buildPathWithGuestSpaceId",value:function(t){return vs(n(n({},t),{},{guestSpaceId:this.guestSpaceId}))}}]),t}(),ms=["preview"],ws=["preview"],As=["preview"],Ss=["preview"],Es=["preview"],Rs=["preview"],Ps=["preview"],Os=["preview"],xs=["preview"],ks=["preview"],Is=["preview"],js=["preview"],Ts=["preview"],Ns=["preview"],_s=function(){function t(e,r){s(this,t),this.client=e,this.guestSpaceId=r}var e;return f(t,[{key:"getFormFields",value:function(t){var e=t.preview,r=b(t,ms),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:e});return this.client.get(o,n({},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=b(t,ws),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:e});return this.client.get(o,n({},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=b(t,As),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:(e=u(o().mark((function t(e){var r,i,a,u,s,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.name,i=e.space,a=this.buildPathWithGuestSpaceId({endpointName:"app",preview:!0}),!i){t.next=9;break}return u=this.buildPathWithGuestSpaceId({endpointName:"space"}),t.next=6,this.client.get(u,{id:i});case 6:return s=t.sent,c=s.defaultThread,t.abrupt("return",this.client.post(a,n(n({},e),{},{thread:c})));case 9:return t.abrupt("return",this.client.post(a,{name:r}));case 10:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"getAppSettings",value:function(t){var e=t.preview,r=b(t,Ss),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=b(t,Es),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=b(t,Rs),o=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:e});return this.client.get(o,n({},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=b(t,Ps),o=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:e});return this.client.get(o,n({},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=b(t,Os),o=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:e});return this.client.get(o,n({},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=b(t,xs),o=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:e});return this.client.get(o,n({},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=b(t,ks),o=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:e});return this.client.get(o,n({},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=b(t,Is),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=b(t,js),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=b(t,Ts),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=b(t,Ns),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:"buildPathWithGuestSpaceId",value:function(t){return vs(n(n({},t),{},{guestSpaceId:this.guestSpaceId}))}}]),t}(),Cs=T,Us=$,Fs=U,Bs=j,Ds=Zi,Ls=Vn,Ms=F,Ws=te,Gs=nt,qs=Object.assign,zs=Object.defineProperty,Vs=Us([].concat),Ys=!qs||Bs((function(){if(Cs&&1!==qs({b:1},qs(zs({},"a",{enumerable:!0,get:function(){zs(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=qs({},t)[r]||Ds(qs({},e)).join("")!=n}))?function(t,e){for(var r=Ws(t),n=arguments.length,o=1,i=Ls.f,a=Ms.f;n>o;)for(var u,s=Gs(arguments[o++]),c=i?Vs(Ds(s),i(s)):Ds(s),f=c.length,p=0;f>p;)u=c[p++],Cs&&!Fs(a,s,u)||(r[u]=s[u]);return r}:qs;mo({target:"Object",stat:!0,arity:2,forced:Object.assign!==Ys},{assign:Ys});var Hs=U,$s=Qe,Js=kn,Ks=Gi,Qs=it,Xs=Lt,Zs=bu,tc=_u;su("match",(function(t,e,r){return[function(e){var r=Qs(this),n=null==e?void 0:Xs(e,t);return n?Hs(n,e,r):new RegExp(e)[t](Ks(r))},function(t){var n=$s(this),o=Ks(t),i=r(e,n,o);if(i.done)return i.value;if(!n.global)return tc(n,o);var a=n.unicode;n.lastIndex=0;for(var u,s=[],c=0;null!==(u=tc(n,o));){var f=Ks(u[0]);s[c]=f,""===f&&(n.lastIndex=Zs(o,Js(n.lastIndex),a)),c++}return 0===c?null:s}]}));var ec=ct,rc=pt,nc=Fi,oc=$(1..valueOf),ic=it,ac=Gi,uc=$("".replace),sc="[\t\n\v\f\r \u2028\u2029\ufeff]",cc=RegExp("^"+sc+sc+"*"),fc=RegExp(sc+sc+"*$"),pc=function(t){return function(e){var r=ac(ic(e));return 1&t&&(r=uc(r,cc,"")),2&t&&(r=uc(r,fc,"")),r}},lc={start:pc(1),end:pc(2),trim:pc(3)},hc=T,dc=k,yc=$,vc=fo,gc=vn,bc=ne,mc=function(t,e,r){var n,o;return nc&&ec(n=e.constructor)&&n!==r&&rc(o=n.prototype)&&o!==r.prototype&&nc(t,o),t},wc=vt,Ac=Nt,Sc=xe,Ec=j,Rc=gn.f,Pc=I.f,Oc=Ye.f,xc=oc,kc=lc.trim,Ic="Number",jc=dc.Number,Tc=jc.prototype,Nc=dc.TypeError,_c=yc("".slice),Cc=yc("".charCodeAt),Uc=function(t){var e=Sc(t,"number");return"bigint"==typeof e?e:Fc(e)},Fc=function(t){var e,r,n,o,i,a,u,s,c=Sc(t,"number");if(Ac(c))throw Nc("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=kc(c),43===(e=Cc(c,0))||45===e){if(88===(r=Cc(c,2))||120===r)return NaN}else if(48===e){switch(Cc(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=_c(c,2)).length,u=0;u<a;u++)if((s=Cc(i,u))<48||s>o)return NaN;return parseInt(i,n)}return+c};if(vc(Ic,!jc(" 0o1")||!jc("0b1")||jc("+0x1"))){for(var Bc,Dc=function(t){var e=arguments.length<1?0:jc(Uc(t)),r=this;return wc(Tc,r)&&Ec((function(){xc(r)}))?mc(Object(e),r,Dc):e},Lc=hc?Rc(jc):"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(","),Mc=0;Lc.length>Mc;Mc++)bc(jc,Bc=Lc[Mc])&&!bc(Dc,Bc)&&Oc(Dc,Bc,Pc(jc,Bc));Dc.prototype=Tc,Tc.constructor=Dc,gc(dc,Ic,Dc,{constructor:!0})}var Wc=j,Gc=function(t,e){var r=[][t];return!!r&&Wc((function(){r.call(null,e||function(){return 1},1)}))},qc=mo,zc=Un.indexOf,Vc=Gc,Yc=$([].indexOf),Hc=!!Yc&&1/Yc([1],1,-0)<0,$c=Vc("indexOf");qc({target:"Array",proto:!0,forced:Hc||!$c},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Hc?Yc(this,t,e)||0:zc(this,t,e)}});var Jc=ds.every;mo({target:"Array",proto:!0,forced:!Gc("every")},{every:function(t){return Jc(this,t,arguments.length>1?arguments[1]:void 0)}});var Kc=Uo,Qc=ko?{}.toString:function(){return"[object "+Kc(this)+"]"};ko||vn(Object.prototype,"toString",Qc,{unsafe:!0}),mo({target:"Array",stat:!0},{isArray:Ao});var Xc=$([].slice),Zc=mo,tf=Ao,ef=Jo,rf=pt,nf=Pn,of=jn,af=st,uf=Oo,sf=me,cf=Xc,ff=ai("slice"),pf=sf("species"),lf=Array,hf=Math.max;Zc({target:"Array",proto:!0,forced:!ff},{slice:function(t,e){var r,n,o,i=af(this),a=of(i),u=nf(t,a),s=nf(void 0===e?a:e,a);if(tf(i)&&(r=i.constructor,(ef(r)&&(r===lf||tf(r.prototype))||rf(r)&&null===(r=r[pf]))&&(r=void 0),r===lf||void 0===r))return cf(i,u,s);for(n=new(void 0===r?lf:r)(hf(s-u,0)),o=0;u<s;u++,o++)u in i&&uf(n,o,i[u]);return n.length=o,n}});var df=Bt,yf=te,vf=nt,gf=jn,bf=TypeError,mf=function(t){return function(e,r,n,o){df(r);var i=yf(e),a=vf(i),u=gf(i),s=t?u-1:0,c=t?-1:1;if(n<2)for(;;){if(s in a){o=a[s],s+=c;break}if(s+=c,t?s<0:u<=s)throw bf("Reduce of empty array with no initial value")}for(;t?s>=0:u>s;s+=c)s in a&&(o=r(o,a[s],s,i));return o}},wf={left:mf(!1),right:mf(!0)},Af="process"==X(k.process),Sf=wf.left,Ef=Et,Rf=Af;mo({target:"Array",proto:!0,forced:!Gc("reduce")||!Rf&&Ef>79&&Ef<83},{reduce:function(t){var e=arguments.length;return Sf(this,t,e,e>1?arguments[1]:void 0)}});var Pf=te,Of=Zi;mo({target:"Object",stat:!0,forced:j((function(){Of(1)}))},{keys:function(t){return Of(Pf(t))}});var xf,kf=function(t){l(r,t);var e=A(r);function r(t,n,o,i,a){var u;s(this,r);var c=o-n.length,f=r.extractErrorIndex(c,i,a),p=r.buildErrorMessage(c,o,f);return(u=e.call(this,p)).name="KintoneAllRecordsError",u.processedRecordsResult=t,u.unprocessedRecords=n,u.error=i,u.errorIndex=f,u.message=p,Object.setPrototypeOf(m(u),r.prototype),u}return f(r,null,[{key:"parseErrorIndex",value:function(t){var e=Object.keys(t)[0].match(/records\[(\d+)\]/);return e?Number(e[1]):null}},{key:"extractErrorIndex",value:function(t,e,n){if(void 0!==e.bulkRequestIndex&&e.errors){var o=r.parseErrorIndex(e.errors);if(null!==o)return t+e.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")}}]),r}(g(Error)),If=["condition","orderBy","withCursor"],jf=["fields"],Tf=["condition"],Nf=["condition","orderBy"],_f=function(){function t(e,r,n){s(this,t),this.client=e,this.bulkRequestClient=r,this.guestSpaceId=n,this.didWarnMaximumOffsetValue=!1}var e,r,i,a,c,l,h,d,y,v,g,m,w,A,E,R,P,O;return f(t,[{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=u(o().mark((function t(e){var r,n,i,a,u,s,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.app,n=e.updateKey,i=e.record,t.next=3,this.getRecords({app:r,query:"".concat(n.field,' = "').concat(n.value,'"')});case 3:if(a=t.sent,!((u=a.records).length>0)){t.next=13;break}if("__ID__"!==u[0].$id.type){t.next=12;break}return t.next=9,this.updateRecord(e);case 9:return s=t.sent,c=s.revision,t.abrupt("return",{id:u[0].$id.value,revision:c});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({},i,p({},n.field,{value:n.value}))}));case 14:case"end":return t.stop()}}),t,this)}))),function(t){return O.apply(this,arguments)})},{key:"getRecords",value:(P=u(o().mark((function t(e){var r,n;return o().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 P.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:(R=u(o().mark((function t(e){var r,n,i,a;return o().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,i=n.ids,a=n.revisions,t.abrupt("return",{ids:i,revisions:a,records:i.map((function(t,e){return{id:t,revision:a[e]}}))});case 7:case"end":return t.stop()}}),t,this)}))),function(t){return R.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=u(o().mark((function t(e){var r,i,a,u,s,c,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.condition,i=e.orderBy,a=e.withCursor,u=void 0===a||a,s=b(e,If),i){t.next=3;break}return t.abrupt("return",this.getAllRecordsWithId(n(n({},s),{},{condition:r})));case 3:if(!u){t.next=7;break}return c=r?"".concat(r," "):"",f="".concat(c).concat(i?"order by ".concat(i):""),t.abrupt("return",this.getAllRecordsWithCursor(n(n({},s),{},{query:f})));case 7:return t.abrupt("return",this.getAllRecordsWithOffset(n(n({},s),{},{orderBy:i,condition:r})));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return E.apply(this,arguments)})},{key:"getAllRecordsWithId",value:(A=u(o().mark((function t(e){var r,i,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.fields,i=b(e,jf),(a=r)&&a.length>0&&-1===a.indexOf("$id")&&(a=[].concat(S(a),["$id"])),t.abrupt("return",this.getAllRecordsRecursiveWithId(n(n({},i),{},{fields:a}),"0",[]));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return A.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithId",value:(w=u(o().mark((function t(e,r,i){var a,u,s,c,f,p,l,h,d;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=500,u=e.condition,s=b(e,Tf),c=u?"(".concat(u,") and "):"",f="".concat(c,"$id > ").concat(r," order by $id asc limit ").concat(a),t.next=6,this.getRecords(n(n({},s),{},{query:f}));case 6:if(p=t.sent,l=i.concat(p.records),!(p.records.length<a)){t.next=10;break}return t.abrupt("return",l);case 10:if("__ID__"!==(h=p.records[p.records.length-1]).$id.type){t.next=14;break}return d=h.$id.value,t.abrupt("return",this.getAllRecordsRecursiveWithId(e,d,l));case 14: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 15:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return w.apply(this,arguments)})},{key:"getAllRecordsWithOffset",value:(m=u(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getAllRecordsRecursiveWithOffset(e,0,[]));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return m.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithOffset",value:(g=u(o().mark((function t(e,r,i){var a,u,s,c,f,p,l,h;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=500,u=e.condition,s=e.orderBy,c=b(e,Nf),f=u?"".concat(u," "):"",p="".concat(f).concat(s?"order by ".concat(s," "):"","limit ").concat(a," offset ").concat(r),t.next=6,this.getRecords(n(n({},c),{},{query:p}));case 6:if(l=t.sent,h=i.concat(l.records),!(l.records.length<a)){t.next=10;break}return t.abrupt("return",h);case 10:return t.abrupt("return",this.getAllRecordsRecursiveWithOffset(e,r+a,h));case 11:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return g.apply(this,arguments)})},{key:"getAllRecordsWithCursor",value:(v=u(o().mark((function t(e){var r,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.createCursor(e);case 2:return r=t.sent,n=r.id,t.prev=4,t.next=7,this.getAllRecordsRecursiveByCursor(n,[]);case 7:return t.abrupt("return",t.sent);case 10:return t.prev=10,t.t0=t.catch(4),t.next=14,this.deleteCursor({id:n});case 14:throw t.t0;case 15:case"end":return t.stop()}}),t,this,[[4,10]])}))),function(t){return v.apply(this,arguments)})},{key:"getAllRecordsRecursiveByCursor",value:(y=u(o().mark((function t(e,r){var n,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getRecordsByCursor({id:e});case 2:if(n=t.sent,i=r.concat(n.records),!n.next){t.next=6;break}return t.abrupt("return",this.getAllRecordsRecursiveByCursor(e,i));case 6:return t.abrupt("return",i);case 7:case"end":return t.stop()}}),t,this)}))),function(t,e){return y.apply(this,arguments)})},{key:"addAllRecords",value:(d=u(o().mark((function t(e){return o().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 d.apply(this,arguments)})},{key:"addAllRecordsRecursive",value:(h=u(o().mark((function t(e,r,n){var i,a,u,s,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,a=e.app,u=e.records,0!==(s=u.slice(0,i)).length){t.next=5;break}return t.abrupt("return",{records:n});case 5:return t.prev=5,t.next=8,this.addAllRecordsWithBulkRequest({app:a,records:s});case 8:c=t.sent,t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(5),new kf({records:n},u,r,t.t0,100);case 14:return t.abrupt("return",this.addAllRecordsRecursive({app:a,records:u.slice(i)},r,n.concat(c)));case 15:case"end":return t.stop()}}),t,this,[[5,11]])}))),function(t,e,r){return h.apply(this,arguments)})},{key:"addAllRecordsWithBulkRequest",value:(l=u(o().mark((function t(e){var r,n,i;return o().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 i=t.sent.results,t.abrupt("return",i.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 l.apply(this,arguments)})},{key:"updateAllRecords",value:(c=u(o().mark((function t(e){return o().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 c.apply(this,arguments)})},{key:"updateAllRecordsRecursive",value:(a=u(o().mark((function t(e,r,n){var i,a,u,s,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,a=e.app,u=e.records,0!==(s=u.slice(0,i)).length){t.next=5;break}return t.abrupt("return",{records:n});case 5:return t.prev=5,t.next=8,this.updateAllRecordsWithBulkRequest({app:a,records:s});case 8:c=t.sent,t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(5),new kf({records:n},u,r,t.t0,100);case 14:return t.abrupt("return",this.updateAllRecordsRecursive({app:a,records:u.slice(i)},r,n.concat(c)));case 15:case"end":return t.stop()}}),t,this,[[5,11]])}))),function(t,e,r){return a.apply(this,arguments)})},{key:"updateAllRecordsWithBulkRequest",value:(i=u(o().mark((function t(e){var r,n,i;return o().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,records:t}}})),t.next=4,this.bulkRequestClient.send({requests:n});case 4:return i=t.sent.results,t.abrupt("return",i.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 i.apply(this,arguments)})},{key:"deleteAllRecords",value:function(t){return this.deleteAllRecordsRecursive(t,t.records.length)}},{key:"deleteAllRecordsRecursive",value:(r=u(o().mark((function t(e,r){var n,i,a,u;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,i=e.app,a=e.records,0!==(u=a.slice(0,n)).length){t.next=5;break}return t.abrupt("return",{});case 5:return t.prev=5,t.next=8,this.deleteAllRecordsWithBulkRequest({app:i,records:u});case 8:t.next=13;break;case 10:throw t.prev=10,t.t0=t.catch(5),new kf({},a,r,t.t0,100);case 13:return t.abrupt("return",this.deleteAllRecordsRecursive({app:i,records:a.slice(n)},r));case 14:case"end":return t.stop()}}),t,this,[[5,10]])}))),function(t,e){return r.apply(this,arguments)})},{key:"deleteAllRecordsWithBulkRequest",value:(e=u(o().mark((function t(e){var r,n;return o().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 e.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(S(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)}},{key:"buildPathWithGuestSpaceId",value:function(t){return vs(n(n({},t),{},{guestSpaceId:this.guestSpaceId}))}}]),t}(),Cf="object"==("undefined"==typeof self?"undefined":i(self))?self.FormData:window.FormData,Uf=function(){function t(e,r){s(this,t),this.client=e,this.guestSpaceId=r}var r;return f(t,[{key:"uploadFile",value:(r=u(o().mark((function t(r){var n,i,a,u,s,c,f,p;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.buildPathWithGuestSpaceId({endpointName:"file"}),i=new Cf,!("path"in r.file)){t.next=19;break}return t.prev=3,t.next=6,e.readFileFromPath(r.file.path);case 6:a=t.sent,u=a.name,s=a.data,i.append("file",s,u),t.next=17;break;case 12:if(t.prev=12,t.t0=t.catch(3),!(t.t0 instanceof Bi)){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=21;break;case 19:c=r.file,f=c.name,p=c.data,i.append("file",e.buildFormDataValue(p),f);case 21:return t.abrupt("return",this.client.postData(n,i));case 22:case"end":return t.stop()}}),t,this,[[3,12]])}))),function(t){return r.apply(this,arguments)})},{key:"downloadFile",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"file"});return this.client.getData(e,t)}},{key:"buildPathWithGuestSpaceId",value:function(t){return vs(n(n({},t),{},{guestSpaceId:this.guestSpaceId}))}}]),t}(),Ff={exports:{}},Bf={exports:{}},Df=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}},Lf=Df,Mf=Object.prototype.toString,Wf=(xf=Object.create(null),function(t){var e=Mf.call(t);return xf[e]||(xf[e]=e.slice(8,-1).toLowerCase())});function Gf(t){return t=t.toLowerCase(),function(e){return Wf(e)===t}}function qf(t){return Array.isArray(t)}function zf(t){return void 0===t}var Vf=Gf("ArrayBuffer");function Yf(t){return null!==t&&"object"===i(t)}function Hf(t){if("object"!==Wf(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var $f=Gf("Date"),Jf=Gf("File"),Kf=Gf("Blob"),Qf=Gf("FileList");function Xf(t){return"[object Function]"===Mf.call(t)}var Zf=Gf("URLSearchParams");function tp(t,e){if(null!=t)if("object"!==i(t)&&(t=[t]),qf(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}var ep=function(t){return function(e){return t&&e instanceof t}}("undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array)),rp={isArray:qf,isArrayBuffer:Vf,isBuffer:function(t){return null!==t&&!zf(t)&&null!==t.constructor&&!zf(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||Mf.call(t)===e||Xf(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&Vf(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:Yf,isPlainObject:Hf,isUndefined:zf,isDate:$f,isFile:Jf,isBlob:Kf,isFunction:Xf,isStream:function(t){return Yf(t)&&Xf(t.pipe)},isURLSearchParams:Zf,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:tp,merge:function t(){var e={};function r(r,n){Hf(e[n])&&Hf(r)?e[n]=t(e[n],r):Hf(r)?e[n]=t({},r):qf(r)?e[n]=r.slice():e[n]=r}for(var n=0,o=arguments.length;n<o;n++)tp(arguments[n],r);return e},extend:function(t,e,r){return tp(e,(function(e,n){t[n]=r&&"function"==typeof e?Lf(e,r):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,r,n){t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,r&&Object.assign(t.prototype,r)},toFlatObject:function(t,e,r){var n,o,i,a={};e=e||{};do{for(o=(n=Object.getOwnPropertyNames(t)).length;o-- >0;)a[i=n[o]]||(e[i]=t[i],a[i]=!0);t=Object.getPrototypeOf(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:Wf,kindOfTest:Gf,endsWith:function(t,e,r){t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;var n=t.indexOf(e,r);return-1!==n&&n===r},toArray:function(t){if(!t)return null;var e=t.length;if(zf(e))return null;for(var r=new Array(e);e-- >0;)r[e]=t[e];return r},isTypedArray:ep,isFileList:Qf},np=rp;function op(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var ip=function(t,e,r){if(!e)return t;var n;if(r)n=r(e);else if(np.isURLSearchParams(e))n=e.toString();else{var o=[];np.forEach(e,(function(t,e){null!=t&&(np.isArray(t)?e+="[]":t=[t],np.forEach(t,(function(t){np.isDate(t)?t=t.toISOString():np.isObject(t)&&(t=JSON.stringify(t)),o.push(op(e)+"="+op(t))})))})),n=o.join("&")}if(n){var i=t.indexOf("#");-1!==i&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t},ap=rp;function up(){this.handlers=[]}up.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},up.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},up.prototype.forEach=function(t){ap.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var sp=up,cp="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function fp(){throw new Error("setTimeout has not been defined")}function pp(){throw new Error("clearTimeout has not been defined")}var lp=fp,hp=pp;function dp(t){if(lp===setTimeout)return setTimeout(t,0);if((lp===fp||!lp)&&setTimeout)return lp=setTimeout,setTimeout(t,0);try{return lp(t,0)}catch(e){try{return lp.call(null,t,0)}catch(e){return lp.call(this,t,0)}}}"function"==typeof cp.setTimeout&&(lp=setTimeout),"function"==typeof cp.clearTimeout&&(hp=clearTimeout);var yp,vp=[],gp=!1,bp=-1;function mp(){gp&&yp&&(gp=!1,yp.length?vp=yp.concat(vp):bp=-1,vp.length&&wp())}function wp(){if(!gp){var t=dp(mp);gp=!0;for(var e=vp.length;e;){for(yp=vp,vp=[];++bp<e;)yp&&yp[bp].run();bp=-1,e=vp.length}yp=null,gp=!1,function(t){if(hp===clearTimeout)return clearTimeout(t);if((hp===pp||!hp)&&clearTimeout)return hp=clearTimeout,clearTimeout(t);try{hp(t)}catch(e){try{return hp.call(null,t)}catch(e){return hp.call(this,t)}}}(t)}}function Ap(t,e){this.fun=t,this.array=e}Ap.prototype.run=function(){this.fun.apply(null,this.array)};function Sp(){}var Ep=Sp,Rp=Sp,Pp=Sp,Op=Sp,xp=Sp,kp=Sp,Ip=Sp;var jp=cp.performance||{},Tp=jp.now||jp.mozNow||jp.msNow||jp.oNow||jp.webkitNow||function(){return(new Date).getTime()};var Np=new Date;var _p,Cp,Up={nextTick: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];vp.push(new Ap(t,e)),1!==vp.length||gp||dp(wp)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Ep,addListener:Rp,once:Pp,off:Op,removeListener:xp,removeAllListeners:kp,emit:Ip,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*Tp.call(jp),r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r-=t[0],(n-=t[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Np)/1e3}},Fp=rp;function Bp(){if(Cp)return _p;Cp=1;var t=rp;function e(t,e,r,n,o){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}t.inherits(e,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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var r=e.prototype,n={};return["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"].forEach((function(t){n[t]={value:t}})),Object.defineProperties(e,n),Object.defineProperty(r,"isAxiosError",{value:!0}),e.from=function(n,o,i,a,u,s){var c=Object.create(r);return t.toFlatObject(n,c,(function(t){return t!==Error.prototype})),e.call(c,n.message,o,i,a,u),c.name=n.name,s&&Object.assign(c,s),c},_p=e}var Dp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Lp=[],Mp=[],Wp="undefined"!=typeof Uint8Array?Uint8Array:Array,Gp=!1;function qp(){Gp=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)Lp[e]=t[e],Mp[t.charCodeAt(e)]=e;Mp["-".charCodeAt(0)]=62,Mp["_".charCodeAt(0)]=63}function zp(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(Lp[(o=n)>>18&63]+Lp[o>>12&63]+Lp[o>>6&63]+Lp[63&o]);return i.join("")}function Vp(t){var e;Gp||qp();for(var r=t.length,n=r%3,o="",i=[],a=16383,u=0,s=r-n;u<s;u+=a)i.push(zp(t,u,u+a>s?s:u+a));return 1===n?(e=t[r-1],o+=Lp[e>>2],o+=Lp[e<<4&63],o+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],o+=Lp[e>>10],o+=Lp[e>>4&63],o+=Lp[e<<2&63],o+="="),i.push(o),i.join("")}function Yp(t,e,r,n,o){var i,a,u=8*o-n-1,s=(1<<u)-1,c=s>>1,f=-7,p=r?o-1:0,l=r?-1:1,h=t[e+p];for(p+=l,i=h&(1<<-f)-1,h>>=-f,f+=u;f>0;i=256*i+t[e+p],p+=l,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=256*a+t[e+p],p+=l,f-=8);if(0===i)i=1-c;else{if(i===s)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 Hp(t,e,r,n,o,i){var a,u,s,c=8*i-o-1,f=(1<<c)-1,p=f>>1,l=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?(u=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),(e+=a+p>=1?l/s:l*Math.pow(2,1-p))*s>=2&&(a++,s/=2),a+p>=f?(u=0,a=f):a+p>=1?(u=(e*s-1)*Math.pow(2,o),a+=p):(u=e*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;t[r+h]=255&u,h+=d,u/=256,o-=8);for(a=a<<o|u,c+=o;c>0;t[r+h]=255&a,h+=d,a/=256,c-=8);t[r+h-d]|=128*y}var $p={}.toString,Jp=Array.isArray||function(t){return"[object Array]"==$p.call(t)};function Kp(){return Xp.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Qp(t,e){if(Kp()<e)throw new RangeError("Invalid typed array length");return Xp.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=Xp.prototype:(null===t&&(t=new Xp(e)),t.length=e),t}function Xp(t,e,r){if(!(Xp.TYPED_ARRAY_SUPPORT||this instanceof Xp))return new Xp(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 el(this,t)}return Zp(this,t,e,r)}function Zp(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);Xp.TYPED_ARRAY_SUPPORT?(t=e).__proto__=Xp.prototype:t=rl(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!Xp.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|il(e,r),o=(t=Qp(t,n)).write(e,r);o!==n&&(t=t.slice(0,o));return t}(t,e,r):function(t,e){if(ol(e)){var r=0|nl(e.length);return 0===(t=Qp(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?Qp(t,0):rl(t,e);if("Buffer"===e.type&&Jp(e.data))return rl(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function tl(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 el(t,e){if(tl(e),t=Qp(t,e<0?0:0|nl(e)),!Xp.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function rl(t,e){var r=e.length<0?0:0|nl(e.length);t=Qp(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function nl(t){if(t>=Kp())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Kp().toString(16)+" bytes");return 0|t}function ol(t){return!(null==t||!t._isBuffer)}function il(t,e){if(ol(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 Dl(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Ll(t).length;default:if(n)return Dl(t).length;e=(""+e).toLowerCase(),n=!0}}function al(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 Al(this,e,r);case"utf8":case"utf-8":return gl(this,e,r);case"ascii":return ml(this,e,r);case"latin1":case"binary":return wl(this,e,r);case"base64":return vl(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sl(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function ul(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function sl(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=Xp.from(e,n)),ol(e))return 0===e.length?-1:cl(t,e,r,n,o);if("number"==typeof e)return e&=255,Xp.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):cl(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function cl(t,e,r,n,o){var i,a=1,u=t.length,s=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,u/=2,s/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var f=-1;for(i=r;i<u;i++)if(c(t,i)===c(e,-1===f?0:i-f)){if(-1===f&&(f=i),i-f+1===s)return f*a}else-1!==f&&(i-=i-f),f=-1}else for(r+s>u&&(r=u-s),i=r;i>=0;i--){for(var p=!0,l=0;l<s;l++)if(c(t,i+l)!==c(e,l)){p=!1;break}if(p)return i}return-1}function fl(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 u=parseInt(e.substr(2*a,2),16);if(isNaN(u))return a;t[r+a]=u}return a}function pl(t,e,r,n){return Ml(Dl(e,t.length-r),t,r,n)}function ll(t,e,r,n){return Ml(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function hl(t,e,r,n){return ll(t,e,r,n)}function dl(t,e,r,n){return Ml(Ll(e),t,r,n)}function yl(t,e,r,n){return Ml(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 vl(t,e,r){return 0===e&&r===t.length?Vp(t):Vp(t.slice(e,r))}function gl(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,a,u,s,c=t[o],f=null,p=c>239?4:c>223?3:c>191?2:1;if(o+p<=r)switch(p){case 1:c<128&&(f=c);break;case 2:128==(192&(i=t[o+1]))&&(s=(31&c)<<6|63&i)>127&&(f=s);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(s=(15&c)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(f=s);break;case 4:i=t[o+1],a=t[o+2],u=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&u)&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&u)>65535&&s<1114112&&(f=s)}null===f?(f=65533,p=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),o+=p}return function(t){var e=t.length;if(e<=bl)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=bl));return r}(n)}Xp.TYPED_ARRAY_SUPPORT=void 0===cp.TYPED_ARRAY_SUPPORT||cp.TYPED_ARRAY_SUPPORT,Kp(),Xp.poolSize=8192,Xp._augment=function(t){return t.__proto__=Xp.prototype,t},Xp.from=function(t,e,r){return Zp(null,t,e,r)},Xp.TYPED_ARRAY_SUPPORT&&(Xp.prototype.__proto__=Uint8Array.prototype,Xp.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Xp[Symbol.species]),Xp.alloc=function(t,e,r){return function(t,e,r,n){return tl(e),e<=0?Qp(t,e):void 0!==r?"string"==typeof n?Qp(t,e).fill(r,n):Qp(t,e).fill(r):Qp(t,e)}(null,t,e,r)},Xp.allocUnsafe=function(t){return el(null,t)},Xp.allocUnsafeSlow=function(t){return el(null,t)},Xp.isBuffer=function(t){return null!=t&&(!!t._isBuffer||Wl(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&Wl(t.slice(0,0))}(t))},Xp.compare=function(t,e){if(!ol(t)||!ol(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},Xp.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}},Xp.concat=function(t,e){if(!Jp(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return Xp.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=Xp.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var i=t[r];if(!ol(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},Xp.byteLength=il,Xp.prototype._isBuffer=!0,Xp.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)ul(this,e,e+1);return this},Xp.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)ul(this,e,e+3),ul(this,e+1,e+2);return this},Xp.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)ul(this,e,e+7),ul(this,e+1,e+6),ul(this,e+2,e+5),ul(this,e+3,e+4);return this},Xp.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?gl(this,0,t):al.apply(this,arguments)},Xp.prototype.equals=function(t){if(!ol(t))throw new TypeError("Argument must be a Buffer");return this===t||0===Xp.compare(this,t)},Xp.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+">"},Xp.prototype.compare=function(t,e,r,n,o){if(!ol(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),u=Math.min(i,a),s=this.slice(n,o),c=t.slice(e,r),f=0;f<u;++f)if(s[f]!==c[f]){i=s[f],a=c[f];break}return i<a?-1:a<i?1:0},Xp.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},Xp.prototype.indexOf=function(t,e,r){return sl(this,t,e,r,!0)},Xp.prototype.lastIndexOf=function(t,e,r){return sl(this,t,e,r,!1)},Xp.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 fl(this,t,e,r);case"utf8":case"utf-8":return pl(this,t,e,r);case"ascii":return ll(this,t,e,r);case"latin1":case"binary":return hl(this,t,e,r);case"base64":return dl(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yl(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},Xp.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var bl=4096;function ml(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 wl(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 Al(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+=Bl(t[i]);return o}function Sl(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 El(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 Rl(t,e,r,n,o,i){if(!ol(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 Pl(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 Ol(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 xl(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 kl(t,e,r,n,o){return o||xl(t,0,r,4),Hp(t,e,r,n,23,4),r+4}function Il(t,e,r,n,o){return o||xl(t,0,r,8),Hp(t,e,r,n,52,8),r+8}Xp.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),Xp.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=Xp.prototype;else{var o=e-t;r=new Xp(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},Xp.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||El(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},Xp.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||El(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},Xp.prototype.readUInt8=function(t,e){return e||El(t,1,this.length),this[t]},Xp.prototype.readUInt16LE=function(t,e){return e||El(t,2,this.length),this[t]|this[t+1]<<8},Xp.prototype.readUInt16BE=function(t,e){return e||El(t,2,this.length),this[t]<<8|this[t+1]},Xp.prototype.readUInt32LE=function(t,e){return e||El(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Xp.prototype.readUInt32BE=function(t,e){return e||El(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Xp.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||El(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},Xp.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||El(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},Xp.prototype.readInt8=function(t,e){return e||El(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Xp.prototype.readInt16LE=function(t,e){e||El(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},Xp.prototype.readInt16BE=function(t,e){e||El(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},Xp.prototype.readInt32LE=function(t,e){return e||El(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Xp.prototype.readInt32BE=function(t,e){return e||El(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Xp.prototype.readFloatLE=function(t,e){return e||El(t,4,this.length),Yp(this,t,!0,23,4)},Xp.prototype.readFloatBE=function(t,e){return e||El(t,4,this.length),Yp(this,t,!1,23,4)},Xp.prototype.readDoubleLE=function(t,e){return e||El(t,8,this.length),Yp(this,t,!0,52,8)},Xp.prototype.readDoubleBE=function(t,e){return e||El(t,8,this.length),Yp(this,t,!1,52,8)},Xp.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||Rl(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},Xp.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||Rl(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},Xp.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||Rl(this,t,e,1,255,0),Xp.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},Xp.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||Rl(this,t,e,2,65535,0),Xp.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Pl(this,t,e,!0),e+2},Xp.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||Rl(this,t,e,2,65535,0),Xp.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Pl(this,t,e,!1),e+2},Xp.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||Rl(this,t,e,4,4294967295,0),Xp.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):Ol(this,t,e,!0),e+4},Xp.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||Rl(this,t,e,4,4294967295,0),Xp.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Ol(this,t,e,!1),e+4},Xp.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);Rl(this,t,e,r,o-1,-o)}var i=0,a=1,u=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===u&&0!==this[e+i-1]&&(u=1),this[e+i]=(t/a>>0)-u&255;return e+r},Xp.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);Rl(this,t,e,r,o-1,-o)}var i=r-1,a=1,u=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===u&&0!==this[e+i+1]&&(u=1),this[e+i]=(t/a>>0)-u&255;return e+r},Xp.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||Rl(this,t,e,1,127,-128),Xp.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},Xp.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||Rl(this,t,e,2,32767,-32768),Xp.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Pl(this,t,e,!0),e+2},Xp.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||Rl(this,t,e,2,32767,-32768),Xp.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Pl(this,t,e,!1),e+2},Xp.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||Rl(this,t,e,4,2147483647,-2147483648),Xp.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Ol(this,t,e,!0),e+4},Xp.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||Rl(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Xp.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Ol(this,t,e,!1),e+4},Xp.prototype.writeFloatLE=function(t,e,r){return kl(this,t,e,!0,r)},Xp.prototype.writeFloatBE=function(t,e,r){return kl(this,t,e,!1,r)},Xp.prototype.writeDoubleLE=function(t,e,r){return Il(this,t,e,!0,r)},Xp.prototype.writeDoubleBE=function(t,e,r){return Il(this,t,e,!1,r)},Xp.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||!Xp.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},Xp.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&&!Xp.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=ol(t)?t:Dl(new Xp(t,n).toString()),u=a.length;for(i=0;i<r-e;++i)this[i+e]=a[i%u]}return this};var jl,Tl,Nl,_l,Cl,Ul,Fl=/[^+\/0-9A-Za-z-_]/g;function Bl(t){return t<16?"0"+t.toString(16):t.toString(16)}function Dl(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 Ll(t){return function(t){var e,r,n,o,i,a;Gp||qp();var u=t.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===t[u-2]?2:"="===t[u-1]?1:0,a=new Wp(3*u/4-i),n=i>0?u-4:u;var s=0;for(e=0,r=0;e<n;e+=4,r+=3)o=Mp[t.charCodeAt(e)]<<18|Mp[t.charCodeAt(e+1)]<<12|Mp[t.charCodeAt(e+2)]<<6|Mp[t.charCodeAt(e+3)],a[s++]=o>>16&255,a[s++]=o>>8&255,a[s++]=255&o;return 2===i?(o=Mp[t.charCodeAt(e)]<<2|Mp[t.charCodeAt(e+1)]>>4,a[s++]=255&o):1===i&&(o=Mp[t.charCodeAt(e)]<<10|Mp[t.charCodeAt(e+1)]<<4|Mp[t.charCodeAt(e+2)]>>2,a[s++]=o>>8&255,a[s++]=255&o),a}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(Fl,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Ml(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 Wl(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function Gl(){if(Tl)return jl;Tl=1;var t=rp;return jl=function(e,r){r=r||new FormData;var n=[];function o(e){return null===e?"":t.isDate(e)?e.toISOString():t.isArrayBuffer(e)||t.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Xp.from(e):e}return function e(a,u){if(t.isPlainObject(a)||t.isArray(a)){if(-1!==n.indexOf(a))throw Error("Circular reference detected in "+u);n.push(a),t.forEach(a,(function(n,a){if(!t.isUndefined(n)){var s,c=u?u+"."+a:a;if(n&&!u&&"object"===i(n))if(t.endsWith(a,"{}"))n=JSON.stringify(n);else if(t.endsWith(a,"[]")&&(s=t.toArray(n)))return void s.forEach((function(e){!t.isUndefined(e)&&r.append(c,o(e))}));e(n,c)}})),n.pop()}else r.append(u,o(a))}(e),r}}function ql(){if(_l)return Nl;_l=1;var t=Bp();return Nl=function(e,r,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?r(new t("Request failed with status code "+n.status,[t.ERR_BAD_REQUEST,t.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}}function zl(){if(Ul)return Cl;Ul=1;var t=rp;return Cl=t.isStandardBrowserEnv()?{write:function(e,r,n,o,i,a){var u=[];u.push(e+"="+encodeURIComponent(r)),t.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),t.isString(o)&&u.push("path="+o),t.isString(i)&&u.push("domain="+i),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}}var Vl,Yl,Hl,$l,Jl,Kl,Ql,Xl,Zl,th,eh,rh,nh=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},oh=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t},ih=function(t,e){return t&&!nh(e)?oh(t,e):e};function ah(){if(Yl)return Vl;Yl=1;var t=rp,e=["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"];return Vl=function(r){var n,o,i,a={};return r?(t.forEach(r.split("\n"),(function(r){if(i=r.indexOf(":"),n=t.trim(r.substr(0,i)).toLowerCase(),o=t.trim(r.substr(i+1)),n){if(a[n]&&e.indexOf(n)>=0)return;a[n]="set-cookie"===n?(a[n]?a[n]:[]).concat([o]):a[n]?a[n]+", "+o:o}})),a):a}}function uh(){if($l)return Hl;$l=1;var t=rp;return Hl=t.isStandardBrowserEnv()?function(){var e,r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var e=t;return r&&(n.setAttribute("href",e),e=n.href),n.setAttribute("href",e),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(r){var n=t.isString(r)?o(r):r;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}}function sh(){if(Kl)return Jl;Kl=1;var t=Bp();function e(e){t.call(this,null==e?"canceled":e,t.ERR_CANCELED),this.name="CanceledError"}return rp.inherits(e,t,{__CANCEL__:!0}),Jl=e}function ch(){return Xl?Ql:(Xl=1,Ql=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""})}function fh(){if(th)return Zl;th=1;var t=rp,e=ql(),r=zl(),n=ip,o=ih,i=ah(),a=uh(),u=Dp,s=Bp(),c=sh(),f=ch();return Zl=function(p){return new Promise((function(l,h){var d,y=p.data,v=p.headers,g=p.responseType;function b(){p.cancelToken&&p.cancelToken.unsubscribe(d),p.signal&&p.signal.removeEventListener("abort",d)}t.isFormData(y)&&t.isStandardBrowserEnv()&&delete v["Content-Type"];var m=new XMLHttpRequest;if(p.auth){var w=p.auth.username||"",A=p.auth.password?unescape(encodeURIComponent(p.auth.password)):"";v.Authorization="Basic "+btoa(w+":"+A)}var S=o(p.baseURL,p.url);function E(){if(m){var t="getAllResponseHeaders"in m?i(m.getAllResponseHeaders()):null,r={data:g&&"text"!==g&&"json"!==g?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:t,config:p,request:m};e((function(t){l(t),b()}),(function(t){h(t),b()}),r),m=null}}if(m.open(p.method.toUpperCase(),n(S,p.params,p.paramsSerializer),!0),m.timeout=p.timeout,"onloadend"in m?m.onloadend=E:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(E)},m.onabort=function(){m&&(h(new s("Request aborted",s.ECONNABORTED,p,m)),m=null)},m.onerror=function(){h(new s("Network Error",s.ERR_NETWORK,p,m,m)),m=null},m.ontimeout=function(){var t=p.timeout?"timeout of "+p.timeout+"ms exceeded":"timeout exceeded",e=p.transitional||u;p.timeoutErrorMessage&&(t=p.timeoutErrorMessage),h(new s(t,e.clarifyTimeoutError?s.ETIMEDOUT:s.ECONNABORTED,p,m)),m=null},t.isStandardBrowserEnv()){var R=(p.withCredentials||a(S))&&p.xsrfCookieName?r.read(p.xsrfCookieName):void 0;R&&(v[p.xsrfHeaderName]=R)}"setRequestHeader"in m&&t.forEach(v,(function(t,e){void 0===y&&"content-type"===e.toLowerCase()?delete v[e]:m.setRequestHeader(e,t)})),t.isUndefined(p.withCredentials)||(m.withCredentials=!!p.withCredentials),g&&"json"!==g&&(m.responseType=p.responseType),"function"==typeof p.onDownloadProgress&&m.addEventListener("progress",p.onDownloadProgress),"function"==typeof p.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",p.onUploadProgress),(p.cancelToken||p.signal)&&(d=function(t){m&&(h(!t||t&&t.type?new c:t),m.abort(),m=null)},p.cancelToken&&p.cancelToken.subscribe(d),p.signal&&(p.signal.aborted?d():p.signal.addEventListener("abort",d))),y||(y=null);var P=f(S);P&&-1===["http","https","file"].indexOf(P)?h(new s("Unsupported protocol "+P+":",s.ERR_BAD_REQUEST,p)):m.send(y)}))}}var ph=rp,lh=function(t,e){Fp.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))},hh=Bp(),dh=Dp,yh=Gl(),vh={"Content-Type":"application/x-www-form-urlencoded"};function gh(t,e){!ph.isUndefined(t)&&ph.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var bh,mh={transitional:dh,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==Up&&"[object process]"===Object.prototype.toString.call(Up))&&(bh=fh()),bh),transformRequest:[function(t,e){if(lh(e,"Accept"),lh(e,"Content-Type"),ph.isFormData(t)||ph.isArrayBuffer(t)||ph.isBuffer(t)||ph.isStream(t)||ph.isFile(t)||ph.isBlob(t))return t;if(ph.isArrayBufferView(t))return t.buffer;if(ph.isURLSearchParams(t))return gh(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r,n=ph.isObject(t),o=e&&e["Content-Type"];if((r=ph.isFileList(t))||n&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return yh(r?{"files[]":t}:t,i&&new i)}return n||"application/json"===o?(gh(e,"application/json"),function(t,e,r){if(ph.isString(t))try{return(e||JSON.parse)(t),ph.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||mh.transitional,r=e&&e.silentJSONParsing,n=e&&e.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&ph.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(o){if("SyntaxError"===t.name)throw hh.from(t,hh.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:rh?eh:(rh=1,eh=null)},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ph.forEach(["delete","get","head"],(function(t){mh.headers[t]={}})),ph.forEach(["post","put","patch"],(function(t){mh.headers[t]=ph.merge(vh)}));var wh,Ah,Sh=mh,Eh=rp,Rh=Sh;function Ph(){return Ah?wh:(Ah=1,wh=function(t){return!(!t||!t.__CANCEL__)})}var Oh=rp,xh=function(t,e,r){var n=this||Rh;return Eh.forEach(r,(function(r){t=r.call(n,t,e)})),t},kh=Ph(),Ih=Sh,jh=sh();function Th(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new jh}var Nh,_h,Ch=rp,Uh=function(t,e){e=e||{};var r={};function n(t,e){return Ch.isPlainObject(t)&&Ch.isPlainObject(e)?Ch.merge(t,e):Ch.isPlainObject(e)?Ch.merge({},e):Ch.isArray(e)?e.slice():e}function o(r){return Ch.isUndefined(e[r])?Ch.isUndefined(t[r])?void 0:n(void 0,t[r]):n(t[r],e[r])}function i(t){if(!Ch.isUndefined(e[t]))return n(void 0,e[t])}function a(r){return Ch.isUndefined(e[r])?Ch.isUndefined(t[r])?void 0:n(void 0,t[r]):n(void 0,e[r])}function u(r){return r in e?n(t[r],e[r]):r in t?n(void 0,t[r]):void 0}var s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return Ch.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=s[t]||o,n=e(t);Ch.isUndefined(n)&&e!==u||(r[t]=n)})),r};function Fh(){return _h?Nh:(_h=1,Nh={version:"0.27.2"})}var Bh=Fh().version,Dh=Bp(),Lh={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){Lh[t]=function(r){return i(r)===t||"a"+(e<1?"n ":" ")+t}}));var Mh={};Lh.transitional=function(t,e,r){function n(t,e){return"[Axios v"+Bh+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,o,i){if(!1===t)throw new Dh(n(o," has been removed"+(e?" in "+e:"")),Dh.ERR_DEPRECATED);return e&&!Mh[o]&&(Mh[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)}};var Wh,Gh,qh,zh,Vh,Yh,Hh=rp,$h=ip,Jh=sp,Kh=function(t){return Th(t),t.headers=t.headers||{},t.data=xh.call(t,t.data,t.headers,t.transformRequest),t.headers=Oh.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Oh.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||Ih.adapter)(t).then((function(e){return Th(t),e.data=xh.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return kh(e)||(Th(t),e&&e.response&&(e.response.data=xh.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},Qh=Uh,Xh=ih,Zh={assertOptions:function(t,e,r){if("object"!==i(t))throw new Dh("options must be an object",Dh.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(t),o=n.length;o-- >0;){var a=n[o],u=e[a];if(u){var s=t[a],c=void 0===s||u(s,a,t);if(!0!==c)throw new Dh("option "+a+" must be "+c,Dh.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Dh("Unknown option "+a,Dh.ERR_BAD_OPTION)}},validators:Lh},td=Zh.validators;function ed(t){this.defaults=t,this.interceptors={request:new Jh,response:new Jh}}ed.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=Qh(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;void 0!==r&&Zh.assertOptions(r,{silentJSONParsing:td.transitional(td.boolean),forcedJSONParsing:td.transitional(td.boolean),clarifyTimeoutError:td.transitional(td.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(o=o&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(t){a.push(t.fulfilled,t.rejected)})),!o){var u=[Kh,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(a),i=Promise.resolve(e);u.length;)i=i.then(u.shift(),u.shift());return i}for(var s=e;n.length;){var c=n.shift(),f=n.shift();try{s=c(s)}catch(t){f(t);break}}try{i=Kh(s)}catch(t){return Promise.reject(t)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},ed.prototype.getUri=function(t){t=Qh(this.defaults,t);var e=Xh(t.baseURL,t.url);return $h(e,t.params,t.paramsSerializer)},Hh.forEach(["delete","get","head","options"],(function(t){ed.prototype[t]=function(e,r){return this.request(Qh(r||{},{method:t,url:e,data:(r||{}).data}))}})),Hh.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(Qh(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ed.prototype[t]=e(),ed.prototype[t+"Form"]=e(!0)}));var rd=rp,nd=Df,od=ed,id=Uh;var ad=function t(e){var r=new od(e),n=nd(od.prototype.request,r);return rd.extend(n,od.prototype,r),rd.extend(n,r),n.create=function(r){return t(id(e,r))},n}(Sh);ad.Axios=od,ad.CanceledError=sh(),ad.CancelToken=function(){if(Gh)return Wh;Gh=1;var t=sh();function e(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var r;this.promise=new Promise((function(t){r=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e<r;e++)n._listeners[e](t);n._listeners=null}})),this.promise.then=function(t){var e,r=new Promise((function(t){n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},e((function(e){n.reason||(n.reason=new t(e),r(n.reason))}))}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},e.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},e.source=function(){var t;return{token:new e((function(e){t=e})),cancel:t}},Wh=e}(),ad.isCancel=Ph(),ad.VERSION=Fh().version,ad.toFormData=Gl(),ad.AxiosError=Bp(),ad.Cancel=ad.CanceledError,ad.all=function(t){return Promise.all(t)},ad.spread=zh?qh:(zh=1,qh=function(t){return function(e){return t.apply(null,e)}}),ad.isAxiosError=function(){if(Yh)return Vh;Yh=1;var t=rp;return Vh=function(e){return t.isObject(e)&&!0===e.isAxiosError}}(),Bf.exports=ad,Bf.exports.default=ad,function(t){t.exports=Bf.exports}(Ff);var ud=P(Ff.exports),sd=function(){function t(e){var r=e.responseHandler,n=e.requestConfigBuilder;s(this,t),this.responseHandler=r,this.requestConfigBuilder=n}var e,r,i,a,c,p;return f(t,[{key:"get",value:(p=u(o().mark((function t(e,r){var n;return o().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 p.apply(this,arguments)})},{key:"getData",value:(c=u(o().mark((function t(e,r){var n;return o().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 c.apply(this,arguments)})},{key:"post",value:(a=u(o().mark((function t(e,r){var n;return o().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 a.apply(this,arguments)})},{key:"postData",value:(i=u(o().mark((function t(e,r){var n;return o().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 i.apply(this,arguments)})},{key:"put",value:(r=u(o().mark((function t(e,r){var n;return o().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,e){return r.apply(this,arguments)})},{key:"delete",value:(e=u(o().mark((function t(e,r){var n;return o().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(t,r){return e.apply(this,arguments)})},{key:"sendRequest",value:function(t){return this.responseHandler.handle(ud(n(n({},t),{},{maxBodyLength:1/0,maxContentLength:1/0})))}}]),t}(),cd=mo,fd=nt,pd=st,ld=Gc,hd=$([].join),dd=fd!=Object,yd=ld("join",",");cd({target:"Array",proto:!0,forced:dd||!yd},{join:function(t){return hd(pd(this),void 0===t?",":t)}});var vd,gd=R.Symbol,bd=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===i(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(e 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 n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0},md=function(){return"function"==typeof gd&&("function"==typeof Symbol&&("symbol"===i(gd("foo"))&&("symbol"===i(Symbol("bar"))&&bd())))},wd="Function.prototype.bind called on incompatible ",Ad=Array.prototype.slice,Sd=Object.prototype.toString,Ed="[object Function]",Rd=function(t){var e=this;if("function"!=typeof e||Sd.call(e)!==Ed)throw new TypeError(wd+e);for(var r,n=Ad.call(arguments,1),o=function(){if(this instanceof r){var o=e.apply(this,n.concat(Ad.call(arguments)));return Object(o)===o?o:this}return e.apply(t,n.concat(Ad.call(arguments)))},i=Math.max(0,e.length-n.length),a=[],u=0;u<i;u++)a.push("$"+u);if(r=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(o),e.prototype){var s=function(){};s.prototype=e.prototype,r.prototype=new s,s.prototype=null}return r},Pd=Function.prototype.bind||Rd,Od=Pd.call(Function.call,Object.prototype.hasOwnProperty),xd=SyntaxError,kd=Function,Id=TypeError,jd=function(t){try{return kd('"use strict"; return ('+t+").constructor;")()}catch(t){}},Td=Object.getOwnPropertyDescriptor;if(Td)try{Td({},"")}catch(t){Td=null}var Nd,_d=function(){throw new Id},Cd=Td?function(){try{return _d}catch(t){try{return Td(arguments,"callee").get}catch(t){return _d}}}():_d,Ud=md(),Fd=Object.getPrototypeOf||function(t){return t.__proto__},Bd={},Dd="undefined"==typeof Uint8Array?vd:Fd(Uint8Array),Ld={"%AggregateError%":"undefined"==typeof AggregateError?vd:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?vd:ArrayBuffer,"%ArrayIteratorPrototype%":Ud?Fd([][Symbol.iterator]()):vd,"%AsyncFromSyncIteratorPrototype%":vd,"%AsyncFunction%":Bd,"%AsyncGenerator%":Bd,"%AsyncGeneratorFunction%":Bd,"%AsyncIteratorPrototype%":Bd,"%Atomics%":"undefined"==typeof Atomics?vd:Atomics,"%BigInt%":"undefined"==typeof BigInt?vd:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?vd:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?vd:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?vd:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?vd:FinalizationRegistry,"%Function%":kd,"%GeneratorFunction%":Bd,"%Int8Array%":"undefined"==typeof Int8Array?vd:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?vd:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?vd:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ud?Fd(Fd([][Symbol.iterator]())):vd,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":i(JSON))?JSON:vd,"%Map%":"undefined"==typeof Map?vd:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Ud?Fd((new Map)[Symbol.iterator]()):vd,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?vd:Promise,"%Proxy%":"undefined"==typeof Proxy?vd:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?vd:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?vd:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Ud?Fd((new Set)[Symbol.iterator]()):vd,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?vd:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ud?Fd(""[Symbol.iterator]()):vd,"%Symbol%":Ud?Symbol:vd,"%SyntaxError%":xd,"%ThrowTypeError%":Cd,"%TypedArray%":Dd,"%TypeError%":Id,"%Uint8Array%":"undefined"==typeof Uint8Array?vd:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?vd:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?vd:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?vd:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?vd:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?vd:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?vd:WeakSet},Md=function t(e){var r;if("%AsyncFunction%"===e)r=jd("async function () {}");else if("%GeneratorFunction%"===e)r=jd("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=jd("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(r=Fd(o.prototype))}return Ld[e]=r,r},Wd={"%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"]},Gd=Pd,qd=Od,zd=Gd.call(Function.call,Array.prototype.concat),Vd=Gd.call(Function.apply,Array.prototype.splice),Yd=Gd.call(Function.call,String.prototype.replace),Hd=Gd.call(Function.call,String.prototype.slice),$d=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Jd=/\\(\\)?/g,Kd=function(t){var e=Hd(t,0,1),r=Hd(t,-1);if("%"===e&&"%"!==r)throw new xd("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new xd("invalid intrinsic syntax, expected opening `%`");var n=[];return Yd(t,$d,(function(t,e,r,o){n[n.length]=r?Yd(o,Jd,"$1"):e||t})),n},Qd=function(t,e){var r,n=t;if(qd(Wd,n)&&(n="%"+(r=Wd[n])[0]+"%"),qd(Ld,n)){var o=Ld[n];if(o===Bd&&(o=Md(n)),void 0===o&&!e)throw new Id("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new xd("intrinsic "+t+" does not exist!")},Xd=SyntaxError,Zd=Function,ty=TypeError,ey=function(t){try{return Function('"use strict"; return ('+t+").constructor;")()}catch(t){}},ry=Object.getOwnPropertyDescriptor;if(ry)try{ry({},"")}catch(t){ry=null}var ny=function(){throw new ty},oy=ry?function(){try{return ny}catch(t){try{return ry(arguments,"callee").get}catch(t){return ny}}}():ny,iy=md(),ay=Object.getPrototypeOf||function(t){return t.__proto__},uy=ey("async function* () {}"),sy=uy?uy.prototype:Nd,cy=sy?sy.prototype:Nd,fy="undefined"==typeof Uint8Array?Nd:ay(Uint8Array),py={"%AggregateError%":"undefined"==typeof AggregateError?Nd:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Nd:ArrayBuffer,"%ArrayIteratorPrototype%":iy?ay([][Symbol.iterator]()):Nd,"%AsyncFromSyncIteratorPrototype%":Nd,"%AsyncFunction%":ey("async function () {}"),"%AsyncGenerator%":sy,"%AsyncGeneratorFunction%":uy,"%AsyncIteratorPrototype%":cy?ay(cy):Nd,"%Atomics%":"undefined"==typeof Atomics?Nd:Atomics,"%BigInt%":"undefined"==typeof BigInt?Nd:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Nd:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?Nd:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Nd:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Nd:FinalizationRegistry,"%Function%":Zd,"%GeneratorFunction%":ey("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?Nd:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Nd:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Nd:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":iy?ay(ay([][Symbol.iterator]())):Nd,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":i(JSON))?JSON:Nd,"%Map%":"undefined"==typeof Map?Nd:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&iy?ay((new Map)[Symbol.iterator]()):Nd,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Nd:Promise,"%Proxy%":"undefined"==typeof Proxy?Nd:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?Nd:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Nd:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&iy?ay((new Set)[Symbol.iterator]()):Nd,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Nd:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":iy?ay(""[Symbol.iterator]()):Nd,"%Symbol%":iy?Symbol:Nd,"%SyntaxError%":Xd,"%ThrowTypeError%":oy,"%TypedArray%":fy,"%TypeError%":ty,"%Uint8Array%":"undefined"==typeof Uint8Array?Nd:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Nd:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Nd:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Nd:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?Nd:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Nd:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Nd:WeakSet},ly={"%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"]},hy=Pd,dy=Od,yy=hy.call(Function.call,Array.prototype.concat),vy=hy.call(Function.apply,Array.prototype.splice),gy=hy.call(Function.call,String.prototype.replace),by=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,my=/\\(\\)?/g,wy=function(t){var e=[];return gy(t,by,(function(t,r,n,o){e[e.length]=n?gy(o,my,"$1"):r||t})),e},Ay=function(t,e){var r,n=t;if(dy(ly,n)&&(n="%"+(r=ly[n])[0]+"%"),dy(py,n)){var o=py[n];if(void 0===o&&!e)throw new ty("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Xd("intrinsic "+t+" does not exist!")},Sy=function(t,e){if("string"!=typeof t||0===t.length)throw new ty("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new ty('"allowMissing" argument must be a boolean');var r=wy(t),n=r.length>0?r[0]:"",o=Ay("%"+n+"%",e),i=o.name,a=o.value,u=!1,s=o.alias;s&&(n=s[0],vy(r,yy([0,1],s)));for(var c=1,f=!0;c<r.length;c+=1){var p=r[c];if("constructor"!==p&&f||(u=!0),dy(py,i="%"+(n+="."+p)+"%"))a=py[i];else if(null!=a){if(ry&&c+1>=r.length){var l=ry(a,p);if(f=!!l,!e&&!(p in a))throw new ty("base intrinsic for "+t+" exists, but the property is not available.");a=f&&"get"in l&&!("originalValue"in l.get)?l.get:a[p]}else f=dy(a,p),a=a[p];f&&!u&&(py[i]=a)}}return a},Ey={exports:{}};!function(t){var e=Pd,r=Sy,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||e.call(o,n),a=r("%Object.defineProperty%",!0);if(a)try{a({},"a",{value:1})}catch(t){a=null}t.exports=function(){return i(e,o,arguments)};var u=function(){return i(e,n,arguments)};a?a(t.exports,"apply",{value:u}):t.exports.apply=u}(Ey);var Ry=Sy,Py=Ey.exports,Oy=Py(Ry("String.prototype.indexOf")),xy=O(Object.freeze({__proto__:null,default:{}})),ky="function"==typeof Map&&Map.prototype,Iy=Object.getOwnPropertyDescriptor&&ky?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,jy=ky&&Iy&&"function"==typeof Iy.get?Iy.get:null,Ty=ky&&Map.prototype.forEach,Ny="function"==typeof Set&&Set.prototype,_y=Object.getOwnPropertyDescriptor&&Ny?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Cy=Ny&&_y&&"function"==typeof _y.get?_y.get:null,Uy=Ny&&Set.prototype.forEach,Fy="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,By="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Dy=Boolean.prototype.valueOf,Ly=Object.prototype.toString,My=Function.prototype.toString,Wy=String.prototype.match,Gy="function"==typeof BigInt?BigInt.prototype.valueOf:null,qy=Object.getOwnPropertySymbols,zy="function"==typeof Symbol?Symbol.prototype.toString:null,Vy=Object.prototype.propertyIsEnumerable,Yy=xy.custom,Hy=Yy&&Qy(Yy)?Yy:null;function $y(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function Jy(t){return String(t).replace(/"/g,""")}function Ky(t){return"[object Array]"===tv(t)}function Qy(t){return"[object Symbol]"===tv(t)}var Xy=Object.prototype.hasOwnProperty||function(t){return t in this};function Zy(t,e){return Xy.call(t,e)}function tv(t){return Ly.call(t)}function ev(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 rv(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return rv(t.slice(0,e.maxStringLength),e)+n}return $y(t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,nv),"single",e)}function nv(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":"")+e.toString(16).toUpperCase()}function ov(t){return"Object("+t+")"}function iv(t){return t+" { ? }"}function av(t,e,r,n){return t+" ("+e+") {"+(n?uv(r,n):r.join(", "))+"}"}function uv(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+t.join(","+r)+"\n"+e.prev}function sv(t,e){var r=Ky(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=Zy(t,o)?e(t[o],t):""}for(var i in t)Zy(t,i)&&(r&&String(Number(i))===i&&i<t.length||(/[^\w$]/.test(i)?n.push(e(i,t)+": "+e(t[i],t)):n.push(i+": "+e(t[i],t))));if("function"==typeof qy)for(var a=qy(t),u=0;u<a.length;u++)Vy.call(t,a[u])&&n.push("["+e(a[u])+"]: "+e(t[a[u]],t));return n}var cv,fv=function(t,e){if("string"!=typeof t||0===t.length)throw new Id("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new Id('"allowMissing" argument must be a boolean');var r=Kd(t),n=r.length>0?r[0]:"",o=Qd("%"+n+"%",e),i=o.name,a=o.value,u=!1,s=o.alias;s&&(n=s[0],Vd(r,zd([0,1],s)));for(var c=1,f=!0;c<r.length;c+=1){var p=r[c],l=Hd(p,0,1),h=Hd(p,-1);if(('"'===l||"'"===l||"`"===l||'"'===h||"'"===h||"`"===h)&&l!==h)throw new xd("property names with quotes must have matching quotes");if("constructor"!==p&&f||(u=!0),qd(Ld,i="%"+(n+="."+p)+"%"))a=Ld[i];else if(null!=a){if(!(p in a)){if(!e)throw new Id("base intrinsic for "+t+" exists, but the property is not available.");return}if(Td&&c+1>=r.length){var d=Td(a,p);a=(f=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[p]}else f=qd(a,p),a=a[p];f&&!u&&(Ld[i]=a)}}return a},pv=function(t,e){var r=Ry(t,!!e);return"function"==typeof r&&Oy(t,".prototype.")>-1?Py(r):r},lv=function t(e,r,n,o){var a=r||{};if(Zy(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Zy(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!Zy(a,"customInspect")||a.customInspect;if("boolean"!=typeof u)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(Zy(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return rv(e,a);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var s=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=s&&s>0&&"object"===i(e))return Ky(e)?"[Array]":"[Object]";var c=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=Array(t.indent+1).join(" ")}return{base:r,prev:Array(e+1).join(r)}}(a,n);if(void 0===o)o=[];else if(ev(o,e)>=0)return"[Circular]";function f(e,r,i){if(r&&(o=o.slice()).push(r),i){var u={depth:a.depth};return Zy(a,"quoteStyle")&&(u.quoteStyle=a.quoteStyle),t(e,u,n+1,o)}return t(e,a,n+1,o)}if("function"==typeof e){var p=function(t){if(t.name)return t.name;var e=Wy.call(My.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),l=sv(e,f);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(l.length>0?" { "+l.join(", ")+" }":"")}if(Qy(e)){var h=zy.call(e);return"object"===i(e)?ov(h):h}if(function(t){if(!t||"object"!==i(t))return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var d="<"+String(e.nodeName).toLowerCase(),y=e.attributes||[],v=0;v<y.length;v++)d+=" "+y[v].name+"="+$y(Jy(y[v].value),"double",a);return d+=">",e.childNodes&&e.childNodes.length&&(d+="..."),d+="</"+String(e.nodeName).toLowerCase()+">"}if(Ky(e)){if(0===e.length)return"[]";var g=sv(e,f);return c&&!function(t){for(var e=0;e<t.length;e++)if(ev(t[e],"\n")>=0)return!1;return!0}(g)?"["+uv(g,c)+"]":"[ "+g.join(", ")+" ]"}if(function(t){return"[object Error]"===tv(t)}(e)){var b=sv(e,f);return 0===b.length?"["+String(e)+"]":"{ ["+String(e)+"] "+b.join(", ")+" }"}if("object"===i(e)&&u){if(Hy&&"function"==typeof e[Hy])return e[Hy]();if("function"==typeof e.inspect)return e.inspect()}if(function(t){if(!jy||!t||"object"!==i(t))return!1;try{jy.call(t);try{Cy.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var m=[];return Ty.call(e,(function(t,r){m.push(f(r,e,!0)+" => "+f(t,e))})),av("Map",jy.call(e),m,c)}if(function(t){if(!Cy||!t||"object"!==i(t))return!1;try{Cy.call(t);try{jy.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var w=[];return Uy.call(e,(function(t){w.push(f(t,e))})),av("Set",Cy.call(e),w,c)}if(function(t){if(!Fy||!t||"object"!==i(t))return!1;try{Fy.call(t,Fy);try{By.call(t,By)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return iv("WeakMap");if(function(t){if(!By||!t||"object"!==i(t))return!1;try{By.call(t,By);try{Fy.call(t,Fy)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return iv("WeakSet");if(function(t){return"[object Number]"===tv(t)}(e))return ov(f(Number(e)));if(function(t){return"[object BigInt]"===tv(t)}(e))return ov(f(Gy.call(e)));if(function(t){return"[object Boolean]"===tv(t)}(e))return ov(Dy.call(e));if(function(t){return"[object String]"===tv(t)}(e))return ov(f(String(e)));if(!function(t){return"[object Date]"===tv(t)}(e)&&!function(t){return"[object RegExp]"===tv(t)}(e)){var A=sv(e,f);return 0===A.length?"{}":c?"{"+uv(A,c)+"}":"{ "+A.join(", ")+" }"}return String(e)},hv=fv("%TypeError%"),dv=fv("%WeakMap%",!0),yv=fv("%Map%",!0),vv=pv("WeakMap.prototype.get",!0),gv=pv("WeakMap.prototype.set",!0),bv=pv("WeakMap.prototype.has",!0),mv=pv("Map.prototype.get",!0),wv=pv("Map.prototype.set",!0),Av=pv("Map.prototype.has",!0),Sv=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r},Ev=String.prototype.replace,Rv=/%20/g,Pv="RFC3986",Ov={default:Pv,formatters:{RFC1738:function(t){return Ev.call(t,Rv,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:Pv},xv=Ov,kv=Object.prototype.hasOwnProperty,Iv=Array.isArray,jv=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Tv=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r},Nv={arrayToObject:Tv,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],a=o.obj[o.prop],u=Object.keys(a),s=0;s<u.length;++s){var c=u[s],f=a[c];"object"===i(f)&&null!==f&&-1===r.indexOf(f)&&(e.push({obj:a,prop:c}),r.push(f))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(Iv(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 a=t;if("symbol"===i(t)?a=Symbol.prototype.toString.call(t):"string"!=typeof t&&(a=String(t)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",s=0;s<a.length;++s){var c=a.charCodeAt(s);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===xv.RFC1738&&(40===c||41===c)?u+=a.charAt(s):c<128?u+=jv[c]:c<2048?u+=jv[192|c>>6]+jv[128|63&c]:c<55296||c>=57344?u+=jv[224|c>>12]+jv[128|c>>6&63]+jv[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&a.charCodeAt(s)),u+=jv[240|c>>18]+jv[128|c>>12&63]+jv[128|c>>6&63]+jv[128|63&c])}return u},isBuffer:function(t){return!(!t||"object"!==i(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(Iv(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"!==i(r)){if(Iv(e))e.push(r);else{if(!e||"object"!==i(e))return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!kv.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!==i(e))return[e].concat(r);var o=e;return Iv(e)&&!Iv(r)&&(o=Tv(e,n)),Iv(e)&&Iv(r)?(r.forEach((function(r,o){if(kv.call(e,o)){var a=e[o];a&&"object"===i(a)&&r&&"object"===i(r)?e[o]=t(a,r,n):e.push(r)}else e[o]=r})),e):Object.keys(r).reduce((function(e,o){var i=r[o];return kv.call(e,o)?e[o]=t(e[o],i,n):e[o]=i,e}),o)}},_v=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new hv("Side channel does not contain "+lv(t))},get:function(n){if(dv&&n&&("object"===i(n)||"function"==typeof n)){if(t)return vv(t,n)}else if(yv){if(e)return mv(e,n)}else if(r)return function(t,e){var r=Sv(t,e);return r&&r.value}(r,n)},has:function(n){if(dv&&n&&("object"===i(n)||"function"==typeof n)){if(t)return bv(t,n)}else if(yv){if(e)return Av(e,n)}else if(r)return function(t,e){return!!Sv(t,e)}(r,n);return!1},set:function(n,o){dv&&n&&("object"===i(n)||"function"==typeof n)?(t||(t=new dv),gv(t,n,o)):yv?(e||(e=new yv),wv(e,n,o)):(r||(r={key:{},next:null}),function(t,e,r){var n=Sv(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,o))}};return n},Cv=Nv,Uv=Ov,Fv=Object.prototype.hasOwnProperty,Bv={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},Dv=Array.isArray,Lv=String.prototype.split,Mv=Array.prototype.push,Wv=function(t,e){Mv.apply(t,Dv(e)?e:[e])},Gv=Date.prototype.toISOString,qv=Uv.default,zv={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Cv.encode,encodeValuesOnly:!1,format:qv,formatter:Uv.formatters[qv],indices:!1,serializeDate:function(t){return Gv.call(t)},skipNulls:!1,strictNullHandling:!1},Vv={},Yv=function t(e,r,n,o,a,u,s,c,f,p,l,h,d,y,v){for(var g,b=e,m=v,w=0,A=!1;void 0!==(m=m.get(Vv))&&!A;){var S=m.get(e);if(w+=1,void 0!==S){if(S===w)throw new RangeError("Cyclic object value");A=!0}void 0===m.get(Vv)&&(w=0)}if("function"==typeof s?b=s(r,b):b instanceof Date?b=p(b):"comma"===n&&Dv(b)&&(b=Cv.maybeMap(b,(function(t){return t instanceof Date?p(t):t}))),null===b){if(o)return u&&!d?u(r,zv.encoder,y,"key",l):r;b=""}if("string"==typeof(g=b)||"number"==typeof g||"boolean"==typeof g||"symbol"===i(g)||"bigint"==typeof g||Cv.isBuffer(b)){if(u){var E=d?r:u(r,zv.encoder,y,"key",l);if("comma"===n&&d){for(var R=Lv.call(String(b),","),P="",O=0;O<R.length;++O)P+=(0===O?"":",")+h(u(R[O],zv.encoder,y,"value",l));return[h(E)+(1===O?"[]":"")+"="+P]}return[h(E)+"="+h(u(b,zv.encoder,y,"value",l))]}return[h(r)+"="+h(String(b))]}var x,k=[];if(void 0===b)return k;if("comma"===n&&Dv(b))x=[{value:b.length>0?b.join(",")||null:void 0}];else if(Dv(s))x=s;else{var I=Object.keys(b);x=c?I.sort(c):I}for(var j=0;j<x.length;++j){var T=x[j],N="object"===i(T)&&void 0!==T.value?T.value:b[T];if(!a||null!==N){var _=Dv(b)?"function"==typeof n?n(r,T):r:r+(f?"."+T:"["+T+"]");v.set(e,w);var C=_v();C.set(Vv,v),Wv(k,t(N,_,n,o,a,u,s,c,f,p,l,h,d,y,C))}}return k},Hv=Nv,$v=Object.prototype.hasOwnProperty,Jv=Array.isArray,Kv={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Hv.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Qv=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},Xv=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},Zv=function(t,e,r,n){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),u=a?o.slice(0,a.index):o,s=[];if(u){if(!r.plainObjects&&$v.call(Object.prototype,u)&&!r.allowPrototypes)return;s.push(u)}for(var c=0;r.depth>0&&null!==(a=i.exec(o))&&c<r.depth;){if(c+=1,!r.plainObjects&&$v.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;s.push(a[1])}return a&&s.push("["+o.slice(a.index)+"]"),function(t,e,r,n){for(var o=n?e:Xv(e,r),i=t.length-1;i>=0;--i){var a,u=t[i];if("[]"===u&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var s="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,c=parseInt(s,10);r.parseArrays||""!==s?!isNaN(c)&&u!==s&&String(c)===s&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(a=[])[c]=o:"__proto__"!==s&&(a[s]=o):a={0:o}}o=a}return o}(s,e,r,n)}},tg={formats:Ov,parse:function(t,e){var r=function(t){if(!t)return Kv;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");var e=void 0===t.charset?Kv.charset:t.charset;return{allowDots:void 0===t.allowDots?Kv.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:Kv.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:Kv.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:Kv.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:Kv.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:Kv.comma,decoder:"function"==typeof t.decoder?t.decoder:Kv.decoder,delimiter:"string"==typeof t.delimiter||Hv.isRegExp(t.delimiter)?t.delimiter:Kv.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:Kv.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:Kv.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:Kv.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:Kv.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:Kv.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof t?function(t,e){var r,n={},o=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=e.parameterLimit===1/0?void 0:e.parameterLimit,a=o.split(e.delimiter,i),u=-1,s=e.charset;if(e.charsetSentinel)for(r=0;r<a.length;++r)0===a[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[r]?s="utf-8":"utf8=%26%2310003%3B"===a[r]&&(s="iso-8859-1"),u=r,r=a.length);for(r=0;r<a.length;++r)if(r!==u){var c,f,p=a[r],l=p.indexOf("]="),h=-1===l?p.indexOf("="):l+1;-1===h?(c=e.decoder(p,Kv.decoder,s,"key"),f=e.strictNullHandling?null:""):(c=e.decoder(p.slice(0,h),Kv.decoder,s,"key"),f=Hv.maybeMap(Xv(p.slice(h+1),e),(function(t){return e.decoder(t,Kv.decoder,s,"value")}))),f&&e.interpretNumericEntities&&"iso-8859-1"===s&&(f=Qv(f)),p.indexOf("[]=")>-1&&(f=Jv(f)?[f]:f),$v.call(n,c)?n[c]=Hv.combine(n[c],f):n[c]=f}return n}(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var u=i[a],s=Zv(u,n[u],r,"string"==typeof t);o=Hv.merge(o,s,r)}return!0===r.allowSparse?o:Hv.compact(o)},stringify:function(t,e){var r,n=t,o=function(t){if(!t)return zv;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||zv.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=Uv.default;if(void 0!==t.format){if(!Fv.call(Uv.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=Uv.formatters[r],o=zv.filter;return("function"==typeof t.filter||Dv(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:zv.addQueryPrefix,allowDots:void 0===t.allowDots?zv.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:zv.charsetSentinel,delimiter:void 0===t.delimiter?zv.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:zv.encode,encoder:"function"==typeof t.encoder?t.encoder:zv.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:zv.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:zv.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:zv.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:zv.strictNullHandling}}(e);"function"==typeof o.filter?n=(0,o.filter)("",n):Dv(o.filter)&&(r=o.filter);var a,u=[];if("object"!==i(n)||null===n)return"";a=e&&e.arrayFormat in Bv?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var s=Bv[a];r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var c=_v(),f=0;f<r.length;++f){var p=r[f];o.skipNulls&&null===n[p]||Wv(u,Yv(n[p],p,s,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var l=u.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&"),l.length>0?h+l:""}},eg="function"==typeof btoa,rg="function"==typeof Buffer,ng=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),og=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),ig=(cv={},og.forEach((function(t,e){return cv[t]=e})),String.fromCharCode.bind(String)),ag=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),function(t){return t.replace(/=/g,"").replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"}))}),ug=function(t){for(var e,r,n,o,i="",a=t.length%3,u=0;u<t.length;){if((r=t.charCodeAt(u++))>255||(n=t.charCodeAt(u++))>255||(o=t.charCodeAt(u++))>255)throw new TypeError("invalid character found");i+=og[(e=r<<16|n<<8|o)>>18&63]+og[e>>12&63]+og[e>>6&63]+og[63&e]}return a?i.slice(0,a-3)+"===".substring(a):i},sg=eg?function(t){return btoa(t)}:rg?function(t){return Buffer.from(t,"binary").toString("base64")}:ug,cg=rg?function(t){return Buffer.from(t).toString("base64")}:function(t){for(var e=[],r=0,n=t.length;r<n;r+=4096)e.push(ig.apply(null,t.subarray(r,r+4096)));return sg(e.join(""))},fg=function(t){if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?ig(192|e>>>6)+ig(128|63&e):ig(224|e>>>12&15)+ig(128|e>>>6&63)+ig(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return ig(240|e>>>18&7)+ig(128|e>>>12&63)+ig(128|e>>>6&63)+ig(128|63&e)},pg=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,lg=function(t){return t.replace(pg,fg)},hg=rg?function(t){return Buffer.from(t,"utf8").toString("base64")}:ng?function(t){return cg(ng.encode(t))}:function(t){return sg(lg(t))},dg=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?ag(hg(t)):hg(t)},yg=dg,vg=function(){function t(e){if(s(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}var r,i,a;return f(t,[{key:"build",value:(a=u(o().mark((function t(r,i,a,u){var s,c,f,p;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s=n(n(n({method:r,headers:this.headers,url:"".concat(this.baseUrl).concat(i)},u||{}),e.buildPlatformDependentConfig({httpsAgent:this.httpsAgent,clientCertAuth:this.clientCertAuth})),{},{proxy: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(!((c=this.buildRequestUrl(i,a)).length>4096)){t.next=15;break}return t.t1=n,t.t2=n({},s),t.t3={},t.t4=n(n({},this.headers),{},{"X-HTTP-Method-Override":"GET"}),t.next=12,this.buildData(a);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",n(n({},s),{},{url:c}));case 16:if(!(a instanceof Cf)){t.next=21;break}return t.next=19,this.buildData(a);case 19:return f=t.sent,t.abrupt("return",n(n({},s),{},{headers:"function"==typeof f.getHeaders?n(n({},this.headers),f.getHeaders()):this.headers,data:f}));case 21:return t.t7=n,t.t8=n({},s),t.t9={},t.next=26,this.buildData(a);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=n,t.t13=n({},s),t.t14={},t.next=34,this.buildData(a);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=i,t.next=41,this.buildData(a);case 41:return t.t19=t.sent,p=t.t17.buildRequestUrl.call(t.t17,t.t18,t.t19),t.abrupt("return",n(n({},s),{},{url:p}));case 44:throw new Error("".concat(r," method is not supported"));case 45:case"end":return t.stop()}}),t,this)}))),function(t,e,r,n){return a.apply(this,arguments)})},{key:"buildRequestUrl",value:function(t,e){return"".concat(this.baseUrl).concat(t,"?").concat(tg.stringify(e))}},{key:"buildData",value:(i=u(o().mark((function t(e){var r;return o().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 Cf)){t.next=7;break}return e.append("__REQUEST_TOKEN__",r),t.abrupt("return",e);case 7:return t.abrupt("return",n({__REQUEST_TOKEN__:r},e));case 8:return t.abrupt("return",e);case 9:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"buildHeaders",value:function(t){var r=t.basicAuth,o=t.userAgent,i=r?{Authorization:"Basic ".concat(yg("".concat(r.username,":").concat(r.password)))}:{},a=n(n({},e.buildHeaders({userAgent:o})),i);switch(this.auth.type){case"password":return n(n({},a),{},{"X-Cybozu-Authorization":yg("".concat(this.auth.username,":").concat(this.auth.password))});case"apiToken":var u=this.auth.apiToken;return Array.isArray(u)?n(n({},a),{},{"X-Cybozu-API-Token":u.join(",")}):n(n({},a),{},{"X-Cybozu-API-Token":u});case"oAuthToken":return n(n({},a),{},{Authorization:"Bearer ".concat(this.auth.oAuthToken)});default:return n(n({},a),{},{"X-Requested-With":"XMLHttpRequest"})}}},{key:"getRequestToken",value:(r=u(o().mark((function t(){return o().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 r.apply(this,arguments)})}]),t}(),gg=$,bg=vn,mg=Date.prototype,wg="Invalid Date",Ag="toString",Sg=gg(mg.toString),Eg=gg(mg.getTime);String(new Date(NaN))!=wg&&bg(mg,Ag,(function(){var t=Eg(this);return t==t?Sg(this):wg}));var Rg=U,Pg=ne,Og=vt,xg=zi,kg=RegExp.prototype,Ig=br.PROPER,jg=vn,Tg=Qe,Ng=Gi,_g=j,Cg=function(t){var e=t.flags;return void 0!==e||"flags"in kg||Pg(t,"flags")||!Og(kg,t)?e:Rg(xg,t)},Ug="toString",Fg=RegExp.prototype.toString,Bg=_g((function(){return"/a/b"!=Fg.call({source:"a",flags:"b"})})),Dg=Ig&&Fg.name!=Ug;(Bg||Dg)&&jg(RegExp.prototype,Ug,(function(){var t=Tg(this);return"/"+Ng(t.source)+"/"+Ng(Cg(t))}),{unsafe:!0});var Lg,Mg=function(t){l(r,t);var e=A(r);function r(t){var n;return s(this,r),(n=e.call(this,t)).name="KintoneAbortSearchError",n.message=t,Object.setPrototypeOf(m(n),r.prototype),n}return f(r)}(g(Error)),Wg=function(t){l(r,t);var e=A(r);function r(t){var n;s(this,r);var o=r.buildErrorResponseDateWithIndex(t),i=o.data,a=o.bulkRequestIndex;return(n=e.call(this,i.message)).name="KintoneRestAPIError",n.id=i.id,n.code=i.code,n.errors=i.errors,n.status=t.status,n.bulkRequestIndex=a,n.headers=t.headers,n.message="[".concat(t.status,"] [").concat(n.code,"] ").concat(n.message," (").concat(n.id,")"),Error.captureStackTrace&&Error.captureStackTrace(m(n),r),Object.setPrototypeOf(m(n),r.prototype),n}return f(r,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?r.findErrorResponseDataWithIndex(t.data.results):{data:t.data}}}]),r}(g(Error)),Gg=["data"],qg=function(){function t(e){var r=e.enableAbortSearchError;s(this,t),this.enableAbortSearchError=r}return f(t,[{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 Mg(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,o=b(e,Gg);if("string"==typeof r)throw new Error("".concat(o.status,": ").concat(o.statusText));throw new Wg(n({data:r},o))}}]),t}(),zg=function(t){if("username"in t)return n({type:"password"},t);if("apiToken"in t)return n({type:"apiToken"},t);if("oAuthToken"in t)return n({type:"oAuthToken"},t);try{return e.getDefaultAuth()}catch(t){if(t instanceof Bi)throw new Error("session authentication is not supported in ".concat(t.platform," environment."));throw t}},Vg=function(){function t(){var r,o,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,t),Yg(a),this.baseUrl=e.buildBaseUrl(a.baseUrl).replace(/\/+$/,"");var u=zg(null!==(r=a.auth)&&void 0!==r?r:{}),c=new vg(n(n({},a),{},{baseUrl:this.baseUrl,auth:u})),f=new qg({enableAbortSearchError:null!==(o=null===(i=a.featureFlags)||void 0===i?void 0:i.enableAbortSearchError)&&void 0!==o&&o}),p=new sd({responseHandler:f,requestConfigBuilder:c}),l=a.guestSpaceId;this.bulkRequest_=new bs(p,l),this.record=new _f(p,this.bulkRequest_,l),this.app=new _s(p,l),this.file=new Uf(p,l)}return f(t,[{key:"getBaseUrl",value:function(){return this.baseUrl}},{key:"bulkRequest",value:function(t){return this.bulkRequest_.send(t)}}],[{key:"version",get:function(){return e.getVersion()}}]),t}(),Yg=function(t){Hg(t.guestSpaceId)},Hg=function(t){if(""===t||null===t)throw new Error("invalid guestSpaceId: got [".concat(t,"]"))};(Lg=Li).readFileFromPath&&(e.readFileFromPath=Lg.readFileFromPath),Lg.getRequestToken&&(e.getRequestToken=Lg.getRequestToken),Lg.getDefaultAuth&&(e.getDefaultAuth=Lg.getDefaultAuth),Lg.buildPlatformDependentConfig&&(e.buildPlatformDependentConfig=Lg.buildPlatformDependentConfig),Lg.buildHeaders&&(e.buildHeaders=Lg.buildHeaders),Lg.buildFormDataValue&&(e.buildFormDataValue=Lg.buildFormDataValue),Lg.buildBaseUrl&&(e.buildBaseUrl=Lg.buildBaseUrl),Lg.getVersion&&(e.getVersion=Lg.getVersion),t.KintoneAbortSearchError=Mg,t.KintoneAllRecordsError=kf,t.KintoneRestAPIClient=Vg,t.KintoneRestAPIError=Wg,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
3
|
+
o=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",u=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),a=new R(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=A(a,r);if(u){if(u===l)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=f(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===l)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function p(){}function h(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(P([])));g&&g!==e&&r.call(g,i)&&(y=g);var m=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(o,i,a,u){var s=f(t[o],t,i);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function A(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,s(m,"constructor",d),s(d,"constructor",h),h.displayName=s(d,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(m),s(m,u,"Generator"),s(m,i,(function(){return this})),s(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=P,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},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),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function i(t){return(i="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})(t)}function a(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,o)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function u(t){a(i,n,o,u,s,"next",t)}function s(t){a(i,n,o,u,s,"throw",t)}u(void 0)}))}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(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,n.key,n)}}function f(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,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&&d(t,e)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function v(t,e,r){return(v=y()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&d(o,r.prototype),o}).apply(null,arguments)}function g(t){var e="function"==typeof Map?new Map:void 0;return(g=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;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,n)}function n(){return v(t,arguments,h(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,t)})(t)}function m(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(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 b(t)}function A(t){var e=y();return function(){var r,n=h(t);if(e){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return w(this,r)}}function S(t){return function(t){if(Array.isArray(t))return E(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)return;if("string"==typeof t)return E(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return E(t,e)}(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 E(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function P(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function O(t){var e=t.default;if("function"==typeof e){var r=function(){return 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 x=function(t){return t&&t.Math==Math&&t},k=x("object"==typeof globalThis&&globalThis)||x("object"==typeof window&&window)||x("object"==typeof self&&self)||x("object"==typeof R&&R)||function(){return this}()||Function("return this")(),I={},j=function(t){try{return!!t()}catch(t){return!0}},T=!j((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),U=!j((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),N=U,_=Function.prototype.call,C=N?_.bind(_):function(){return _.apply(_,arguments)},L={},B={}.propertyIsEnumerable,F=Object.getOwnPropertyDescriptor,D=F&&!B.call({1:2},1);L.f=D?function(t){var e=F(this,t);return!!e&&e.enumerable}:B;var M,W,q=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},G=U,H=Function.prototype,z=H.bind,V=H.call,Y=G&&z.bind(V,V),$=G?function(t){return t&&Y(t)}:function(t){return t&&function(){return V.apply(t,arguments)}},J=$,Q=J({}.toString),K=J("".slice),X=function(t){return K(Q(t),8,-1)},Z=j,tt=X,et=Object,rt=$("".split),nt=Z((function(){return!et("z").propertyIsEnumerable(0)}))?function(t){return"String"==tt(t)?rt(t,""):et(t)}:et,ot=TypeError,it=function(t){if(null==t)throw ot("Can't call method on "+t);return t},at=nt,ut=it,st=function(t){return at(ut(t))},ct=function(t){return"function"==typeof t},ft=ct,lt=function(t){return"object"==typeof t?null!==t:ft(t)},pt=k,ht=ct,dt=function(t){return ht(t)?t:void 0},yt=function(t,e){return arguments.length<2?dt(pt[t]):pt[t]&&pt[t][e]},vt=$({}.isPrototypeOf),gt=k,mt=yt("navigator","userAgent")||"",bt=gt.process,wt=gt.Deno,At=bt&&bt.versions||wt&&wt.version,St=At&&At.v8;St&&(W=(M=St.split("."))[0]>0&&M[0]<4?1:+(M[0]+M[1])),!W&&mt&&(!(M=mt.match(/Edge\/(\d+)/))||M[1]>=74)&&(M=mt.match(/Chrome\/(\d+)/))&&(W=+M[1]);var Et=W,Rt=Et,Pt=j,Ot=!!Object.getOwnPropertySymbols&&!Pt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Rt&&Rt<41})),xt=Ot&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,kt=yt,It=ct,jt=vt,Tt=Object,Ut=xt?function(t){return"symbol"==typeof t}:function(t){var e=kt("Symbol");return It(e)&&jt(e.prototype,Tt(t))},Nt=String,_t=function(t){try{return Nt(t)}catch(t){return"Object"}},Ct=ct,Lt=_t,Bt=TypeError,Ft=function(t){if(Ct(t))return t;throw Bt(Lt(t)+" is not a function")},Dt=Ft,Mt=function(t,e){var r=t[e];return null==r?void 0:Dt(r)},Wt=C,qt=ct,Gt=lt,Ht=TypeError,zt={exports:{}},Vt=k,Yt=Object.defineProperty,$t=function(t,e){try{Yt(Vt,t,{value:e,configurable:!0,writable:!0})}catch(r){Vt[t]=e}return e},Jt=$t,Qt="__core-js_shared__",Kt=k[Qt]||Jt(Qt,{}),Xt=Kt;(zt.exports=function(t,e){return Xt[t]||(Xt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.23.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.5/LICENSE",source:"https://github.com/zloirock/core-js"});var Zt=it,te=Object,ee=function(t){return te(Zt(t))},re=ee,ne=$({}.hasOwnProperty),oe=Object.hasOwn||function(t,e){return ne(re(t),e)},ie=$,ae=0,ue=Math.random(),se=ie(1..toString),ce=function(t){return"Symbol("+(void 0===t?"":t)+")_"+se(++ae+ue,36)},fe=k,le=zt.exports,pe=oe,he=ce,de=Ot,ye=xt,ve=le("wks"),ge=fe.Symbol,me=ge&&ge.for,be=ye?ge:ge&&ge.withoutSetter||he,we=function(t){if(!pe(ve,t)||!de&&"string"!=typeof ve[t]){var e="Symbol."+t;de&&pe(ge,t)?ve[t]=ge[t]:ve[t]=ye&&me?me(e):be(e)}return ve[t]},Ae=C,Se=lt,Ee=Ut,Re=Mt,Pe=function(t,e){var r,n;if("string"===e&&qt(r=t.toString)&&!Gt(n=Wt(r,t)))return n;if(qt(r=t.valueOf)&&!Gt(n=Wt(r,t)))return n;if("string"!==e&&qt(r=t.toString)&&!Gt(n=Wt(r,t)))return n;throw Ht("Can't convert object to primitive value")},Oe=TypeError,xe=we("toPrimitive"),ke=function(t,e){if(!Se(t)||Ee(t))return t;var r,n=Re(t,xe);if(n){if(void 0===e&&(e="default"),r=Ae(n,t,e),!Se(r)||Ee(r))return r;throw Oe("Can't convert object to primitive value")}return void 0===e&&(e="number"),Pe(t,e)},Ie=ke,je=Ut,Te=function(t){var e=Ie(t,"string");return je(e)?e:e+""},Ue=lt,Ne=k.document,_e=Ue(Ne)&&Ue(Ne.createElement),Ce=function(t){return _e?Ne.createElement(t):{}},Le=Ce,Be=!T&&!j((function(){return 7!=Object.defineProperty(Le("div"),"a",{get:function(){return 7}}).a})),Fe=T,De=C,Me=L,We=q,qe=st,Ge=Te,He=oe,ze=Be,Ve=Object.getOwnPropertyDescriptor;I.f=Fe?Ve:function(t,e){if(t=qe(t),e=Ge(e),ze)try{return Ve(t,e)}catch(t){}if(He(t,e))return We(!De(Me.f,t,e),t[e])};var Ye={},$e=T&&j((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Je=lt,Qe=String,Ke=TypeError,Xe=function(t){if(Je(t))return t;throw Ke(Qe(t)+" is not an object")},Ze=T,tr=Be,er=$e,rr=Xe,nr=Te,or=TypeError,ir=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,ur="enumerable",sr="configurable",cr="writable";Ye.f=Ze?er?function(t,e,r){if(rr(t),e=nr(e),rr(r),"function"==typeof t&&"prototype"===e&&"value"in r&&cr in r&&!r.writable){var n=ar(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:sr in r?r.configurable:n.configurable,enumerable:ur in r?r.enumerable:n.enumerable,writable:!1})}return ir(t,e,r)}:ir:function(t,e,r){if(rr(t),e=nr(e),rr(r),tr)try{return ir(t,e,r)}catch(t){}if("get"in r||"set"in r)throw or("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var fr=Ye,lr=q,pr=T?function(t,e,r){return fr.f(t,e,lr(1,r))}:function(t,e,r){return t[e]=r,t},hr={exports:{}},dr=T,yr=oe,vr=Function.prototype,gr=dr&&Object.getOwnPropertyDescriptor,mr=yr(vr,"name"),br={EXISTS:mr,PROPER:mr&&"something"===function(){}.name,CONFIGURABLE:mr&&(!dr||dr&&gr(vr,"name").configurable)},wr=ct,Ar=Kt,Sr=$(Function.toString);wr(Ar.inspectSource)||(Ar.inspectSource=function(t){return Sr(t)});var Er,Rr,Pr,Or=Ar.inspectSource,xr=ct,kr=Or,Ir=k.WeakMap,jr=xr(Ir)&&/native code/.test(kr(Ir)),Tr=zt.exports,Ur=ce,Nr=Tr("keys"),_r=function(t){return Nr[t]||(Nr[t]=Ur(t))},Cr={},Lr=jr,Br=k,Fr=$,Dr=lt,Mr=pr,Wr=oe,qr=Kt,Gr=_r,Hr=Cr,zr="Object already initialized",Vr=Br.TypeError,Yr=Br.WeakMap;if(Lr||qr.state){var $r=qr.state||(qr.state=new Yr),Jr=Fr($r.get),Qr=Fr($r.has),Kr=Fr($r.set);Er=function(t,e){if(Qr($r,t))throw new Vr(zr);return e.facade=t,Kr($r,t,e),e},Rr=function(t){return Jr($r,t)||{}},Pr=function(t){return Qr($r,t)}}else{var Xr=Gr("state");Hr[Xr]=!0,Er=function(t,e){if(Wr(t,Xr))throw new Vr(zr);return e.facade=t,Mr(t,Xr,e),e},Rr=function(t){return Wr(t,Xr)?t[Xr]:{}},Pr=function(t){return Wr(t,Xr)}}var Zr={set:Er,get:Rr,has:Pr,enforce:function(t){return Pr(t)?Rr(t):Er(t,{})},getterFor:function(t){return function(e){var r;if(!Dr(e)||(r=Rr(e)).type!==t)throw Vr("Incompatible receiver, "+t+" required");return r}}},tn=j,en=ct,rn=oe,nn=T,on=br.CONFIGURABLE,an=Or,un=Zr.enforce,sn=Zr.get,cn=Object.defineProperty,fn=nn&&!tn((function(){return 8!==cn((function(){}),"length",{value:8}).length})),ln=String(String).split("String"),pn=hr.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!rn(t,"name")||on&&t.name!==e)&&(nn?cn(t,"name",{value:e,configurable:!0}):t.name=e),fn&&r&&rn(r,"arity")&&t.length!==r.arity&&cn(t,"length",{value:r.arity});try{r&&rn(r,"constructor")&&r.constructor?nn&&cn(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=un(t);return rn(n,"source")||(n.source=ln.join("string"==typeof e?e:"")),t};Function.prototype.toString=pn((function(){return en(this)&&sn(this).source||an(this)}),"toString");var hn=ct,dn=Ye,yn=hr.exports,vn=$t,gn=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(hn(r)&&yn(r,i,n),n.global)o?t[e]=r:vn(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:dn.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},mn={},bn=Math.ceil,wn=Math.floor,An=Math.trunc||function(t){var e=+t;return(e>0?wn:bn)(e)},Sn=function(t){var e=+t;return e!=e||0===e?0:An(e)},En=Sn,Rn=Math.max,Pn=Math.min,On=function(t,e){var r=En(t);return r<0?Rn(r+e,0):Pn(r,e)},xn=Sn,kn=Math.min,In=function(t){return t>0?kn(xn(t),9007199254740991):0},jn=In,Tn=function(t){return jn(t.length)},Un=st,Nn=On,_n=Tn,Cn=function(t){return function(e,r,n){var o,i=Un(e),a=_n(i),u=Nn(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Ln={includes:Cn(!0),indexOf:Cn(!1)},Bn=oe,Fn=st,Dn=Ln.indexOf,Mn=Cr,Wn=$([].push),qn=function(t,e){var r,n=Fn(t),o=0,i=[];for(r in n)!Bn(Mn,r)&&Bn(n,r)&&Wn(i,r);for(;e.length>o;)Bn(n,r=e[o++])&&(~Dn(i,r)||Wn(i,r));return i},Gn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Hn=qn,zn=Gn.concat("length","prototype");mn.f=Object.getOwnPropertyNames||function(t){return Hn(t,zn)};var Vn={};Vn.f=Object.getOwnPropertySymbols;var Yn=yt,$n=mn,Jn=Vn,Qn=Xe,Kn=$([].concat),Xn=Yn("Reflect","ownKeys")||function(t){var e=$n.f(Qn(t)),r=Jn.f;return r?Kn(e,r(t)):e},Zn=oe,to=Xn,eo=I,ro=Ye,no=j,oo=ct,io=/#|\.prototype\./,ao=function(t,e){var r=so[uo(t)];return r==fo||r!=co&&(oo(e)?no(e):!!e)},uo=ao.normalize=function(t){return String(t).replace(io,".").toLowerCase()},so=ao.data={},co=ao.NATIVE="N",fo=ao.POLYFILL="P",lo=ao,po=k,ho=I.f,yo=pr,vo=gn,go=$t,mo=function(t,e,r){for(var n=to(e),o=ro.f,i=eo.f,a=0;a<n.length;a++){var u=n[a];Zn(t,u)||r&&Zn(r,u)||o(t,u,i(e,u))}},bo=lo,wo=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,c=t.stat;if(r=s?po:c?po[u]||go(u,{}):(po[u]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=ho(r,n))&&a.value:r[n],!bo(s?n:u+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;mo(i,o)}(t.sham||o&&o.sham)&&yo(i,"sham",!0),vo(r,n,i,t)}},Ao=X,So=Array.isArray||function(t){return"Array"==Ao(t)},Eo=TypeError,Ro=Te,Po=Ye,Oo=q,xo=function(t,e,r){var n=Ro(e);n in t?Po.f(t,n,Oo(0,r)):t[n]=r},ko={};ko[we("toStringTag")]="z";var Io="[object z]"===String(ko),jo=Io,To=ct,Uo=X,No=we("toStringTag"),_o=Object,Co="Arguments"==Uo(function(){return arguments}()),Lo=jo?Uo: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=_o(t),No))?r:Co?Uo(e):"Object"==(n=Uo(e))&&To(e.callee)?"Arguments":n},Bo=$,Fo=j,Do=ct,Mo=Lo,Wo=Or,qo=function(){},Go=[],Ho=yt("Reflect","construct"),zo=/^\s*(?:class|function)\b/,Vo=Bo(zo.exec),Yo=!zo.exec(qo),$o=function(t){if(!Do(t))return!1;try{return Ho(qo,Go,t),!0}catch(t){return!1}},Jo=function(t){if(!Do(t))return!1;switch(Mo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Yo||!!Vo(zo,Wo(t))}catch(t){return!0}};Jo.sham=!0;var Qo=!Ho||Fo((function(){var t;return $o($o.call)||!$o(Object)||!$o((function(){t=!0}))||t}))?Jo:$o,Ko=So,Xo=Qo,Zo=lt,ti=we("species"),ei=Array,ri=function(t){var e;return Ko(t)&&(e=t.constructor,(Xo(e)&&(e===ei||Ko(e.prototype))||Zo(e)&&null===(e=e[ti]))&&(e=void 0)),void 0===e?ei:e},ni=function(t,e){return new(ri(t))(0===e?0:e)},oi=j,ii=Et,ai=we("species"),ui=function(t){return ii>=51||!oi((function(){var e=[];return(e.constructor={})[ai]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},si=wo,ci=j,fi=So,li=lt,pi=ee,hi=Tn,di=function(t){if(t>9007199254740991)throw Eo("Maximum allowed index exceeded");return t},yi=xo,vi=ni,gi=ui,mi=Et,bi=we("isConcatSpreadable"),wi=mi>=51||!ci((function(){var t=[];return t[bi]=!1,t.concat()[0]!==t})),Ai=gi("concat"),Si=function(t){if(!li(t))return!1;var e=t[bi];return void 0!==e?!!e:fi(t)};si({target:"Array",proto:!0,arity:1,forced:!wi||!Ai},{concat:function(t){var e,r,n,o,i,a=pi(this),u=vi(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(Si(i=-1===e?a:arguments[e]))for(o=hi(i),di(s+o),r=0;r<o;r++,s++)r in i&&yi(u,s,i[r]);else di(s+1),yi(u,s++,i);return u.length=s,u}});var Ei=T,Ri=br.EXISTS,Pi=$,Oi=Ye.f,xi=Function.prototype,ki=Pi(xi.toString),Ii=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ji=Pi(Ii.exec);Ei&&!Ri&&Oi(xi,"name",{configurable:!0,get:function(){try{return ji(Ii,ki(this))[1]}catch(t){return""}}});var Ti=ct,Ui=String,Ni=TypeError,_i=$,Ci=Xe,Li=function(t){if("object"==typeof t||Ti(t))return t;throw Ni("Can't set "+Ui(t)+" as a prototype")},Bi=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=_i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Ci(r),Li(n),e?t(r,n):r.__proto__=n,r}}():void 0);wo({target:"Object",stat:!0},{setPrototypeOf:Bi});var Fi=function(t){p(r,t);var e=A(r);function r(t){var n;s(this,r);var o="This function is not supported in ".concat(t," environment");return n=e.call(this,o),Error.captureStackTrace&&Error.captureStackTrace(b(n),r),n.name="UnsupportedPlatformError",n.platform=t,Object.setPrototypeOf(b(n),r.prototype),n}return f(r)}(g(Error)),Di=function(){var t=u(o().mark((function t(){var e,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("object"!==("undefined"==typeof kintone?"undefined":i(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":i(garoon))||null===garoon||"function"!=typeof(null===(e=garoon.connect)||void 0===e||null===(r=e.kintone)||void 0===r?void 0:r.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)}}(),Mi=Object.freeze({__proto__:null,readFileFromPath:function(t){throw new Fi("Browser")},getRequestToken:Di,getDefaultAuth:function(){return{type:"session"}},buildPlatformDependentConfig:function(){return{}},buildHeaders:function(){return{}},buildFormDataValue:function(t){return new Blob([t])},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)},getVersion:function(){return"3.1.5"}}),Wi=Lo,qi=String,Gi=function(t){if("Symbol"===Wi(t))throw TypeError("Cannot convert a Symbol value to a string");return qi(t)},Hi=Xe,zi=function(){var t=Hi(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},Vi=j,Yi=k.RegExp,$i=Vi((function(){var t=Yi("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Ji=$i||Vi((function(){return!Yi("a","y").sticky})),Qi={BROKEN_CARET:$i||Vi((function(){var t=Yi("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Ji,UNSUPPORTED_Y:$i},Ki={},Xi=qn,Zi=Gn,ta=Object.keys||function(t){return Xi(t,Zi)},ea=T,ra=$e,na=Ye,oa=Xe,ia=st,aa=ta;Ki.f=ea&&!ra?Object.defineProperties:function(t,e){oa(t);for(var r,n=ia(e),o=aa(e),i=o.length,a=0;i>a;)na.f(t,r=o[a++],n[r]);return t};var ua,sa=yt("document","documentElement"),ca=Xe,fa=Ki,la=Gn,pa=Cr,ha=sa,da=Ce,ya=_r("IE_PROTO"),va=function(){},ga=function(t){return"<script>"+t+"</"+"script>"},ma=function(t){t.write(ga("")),t.close();var e=t.parentWindow.Object;return t=null,e},ba=function(){try{ua=new ActiveXObject("htmlfile")}catch(t){}var t,e;ba="undefined"!=typeof document?document.domain&&ua?ma(ua):((e=da("iframe")).style.display="none",ha.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ga("document.F=Object")),t.close(),t.F):ma(ua);for(var r=la.length;r--;)delete ba.prototype[la[r]];return ba()};pa[ya]=!0;var wa,Aa,Sa=Object.create||function(t,e){var r;return null!==t?(va.prototype=ca(t),r=new va,va.prototype=null,r[ya]=t):r=ba(),void 0===e?r:fa.f(r,e)},Ea=j,Ra=k.RegExp,Pa=Ea((function(){var t=Ra(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Oa=j,xa=k.RegExp,ka=Oa((function(){var t=xa("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Ia=C,ja=$,Ta=Gi,Ua=zi,Na=Qi,_a=zt.exports,Ca=Sa,La=Zr.get,Ba=Pa,Fa=ka,Da=_a("native-string-replace",String.prototype.replace),Ma=RegExp.prototype.exec,Wa=Ma,qa=ja("".charAt),Ga=ja("".indexOf),Ha=ja("".replace),za=ja("".slice),Va=(Aa=/b*/g,Ia(Ma,wa=/a/,"a"),Ia(Ma,Aa,"a"),0!==wa.lastIndex||0!==Aa.lastIndex),Ya=Na.BROKEN_CARET,$a=void 0!==/()??/.exec("")[1];(Va||$a||Ya||Ba||Fa)&&(Wa=function(t){var e,r,n,o,i,a,u,s=this,c=La(s),f=Ta(t),l=c.raw;if(l)return l.lastIndex=s.lastIndex,e=Ia(Wa,l,f),s.lastIndex=l.lastIndex,e;var p=c.groups,h=Ya&&s.sticky,d=Ia(Ua,s),y=s.source,v=0,g=f;if(h&&(d=Ha(d,"y",""),-1===Ga(d,"g")&&(d+="g"),g=za(f,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==qa(f,s.lastIndex-1))&&(y="(?: "+y+")",g=" "+g,v++),r=new RegExp("^(?:"+y+")",d)),$a&&(r=new RegExp("^"+y+"$(?!\\s)",d)),Va&&(n=s.lastIndex),o=Ia(Ma,h?r:s,g),h?o?(o.input=za(o.input,v),o[0]=za(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Va&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),$a&&o&&o.length>1&&Ia(Da,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=Ca(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Ja=Wa;wo({target:"RegExp",proto:!0,forced:/./.exec!==Ja},{exec:Ja});var Qa=U,Ka=Function.prototype,Xa=Ka.apply,Za=Ka.call,tu="object"==typeof Reflect&&Reflect.apply||(Qa?Za.bind(Xa):function(){return Za.apply(Xa,arguments)}),eu=$,ru=gn,nu=Ja,ou=j,iu=we,au=pr,uu=iu("species"),su=RegExp.prototype,cu=function(t,e,r,n){var o=iu(t),i=!ou((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!ou((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[uu]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var u=eu(/./[o]),s=e(o,""[t],(function(t,e,r,n,o){var a=eu(t),s=e.exec;return s===nu||s===su.exec?i&&!o?{done:!0,value:u(e,r,n)}:{done:!0,value:a(r,e,n)}:{done:!1}}));ru(String.prototype,t,s[0]),ru(su,o,s[1])}n&&au(su[o],"sham",!0)},fu=$,lu=Sn,pu=Gi,hu=it,du=fu("".charAt),yu=fu("".charCodeAt),vu=fu("".slice),gu=function(t){return function(e,r){var n,o,i=pu(hu(e)),a=lu(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=yu(i,a))<55296||n>56319||a+1===u||(o=yu(i,a+1))<56320||o>57343?t?du(i,a):n:t?vu(i,a,a+2):o-56320+(n-55296<<10)+65536}},mu={codeAt:gu(!1),charAt:gu(!0)},bu=mu.charAt,wu=function(t,e,r){return e+(r?bu(t,e).length:1)},Au=$,Su=ee,Eu=Math.floor,Ru=Au("".charAt),Pu=Au("".replace),Ou=Au("".slice),xu=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ku=/\$([$&'`]|\d{1,2})/g,Iu=C,ju=Xe,Tu=ct,Uu=X,Nu=Ja,_u=TypeError,Cu=function(t,e){var r=t.exec;if(Tu(r)){var n=Iu(r,t,e);return null!==n&&ju(n),n}if("RegExp"===Uu(t))return Iu(Nu,t,e);throw _u("RegExp#exec called on incompatible receiver")},Lu=tu,Bu=C,Fu=$,Du=cu,Mu=j,Wu=Xe,qu=ct,Gu=Sn,Hu=In,zu=Gi,Vu=it,Yu=wu,$u=Mt,Ju=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=ku;return void 0!==o&&(o=Su(o),s=xu),Pu(i,s,(function(i,s){var c;switch(Ru(s,0)){case"$":return"$";case"&":return t;case"`":return Ou(e,0,r);case"'":return Ou(e,a);case"<":c=o[Ou(s,1,-1)];break;default:var f=+s;if(0===f)return i;if(f>u){var l=Eu(f/10);return 0===l?i:l<=u?void 0===n[l-1]?Ru(s,1):n[l-1]+Ru(s,1):i}c=n[f-1]}return void 0===c?"":c}))},Qu=Cu,Ku=we("replace"),Xu=Math.max,Zu=Math.min,ts=Fu([].concat),es=Fu([].push),rs=Fu("".indexOf),ns=Fu("".slice),os="$0"==="a".replace(/./,"$0"),is=!!/./[Ku]&&""===/./[Ku]("a","$0");Du("replace",(function(t,e,r){var n=is?"$":"$0";return[function(t,r){var n=Vu(this),o=null==t?void 0:$u(t,Ku);return o?Bu(o,t,n,r):Bu(e,zu(n),t,r)},function(t,o){var i=Wu(this),a=zu(t);if("string"==typeof o&&-1===rs(o,n)&&-1===rs(o,"$<")){var u=r(e,i,a,o);if(u.done)return u.value}var s=qu(o);s||(o=zu(o));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var l=[];;){var p=Qu(i,a);if(null===p)break;if(es(l,p),!c)break;""===zu(p[0])&&(i.lastIndex=Yu(a,Hu(i.lastIndex),f))}for(var h,d="",y=0,v=0;v<l.length;v++){for(var g=zu((p=l[v])[0]),m=Xu(Zu(Gu(p.index),a.length),0),b=[],w=1;w<p.length;w++)es(b,void 0===(h=p[w])?h:String(h));var A=p.groups;if(s){var S=ts([g],b,m,a);void 0!==A&&es(S,A);var E=zu(Lu(o,void 0,S))}else E=Ju(g,a,m,b,A,o);m>=y&&(d+=ns(a,y,m)+E,y=m+g.length)}return d+ns(a,y)}]}),!!Mu((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!os||is);var as=we,us=Sa,ss=Ye.f,cs=as("unscopables"),fs=Array.prototype;null==fs[cs]&&ss(fs,cs,{configurable:!0,value:us(null)});var ls,ps,hs,ds={},ys=!j((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),vs=oe,gs=ct,ms=ee,bs=ys,ws=_r("IE_PROTO"),As=Object,Ss=As.prototype,Es=bs?As.getPrototypeOf:function(t){var e=ms(t);if(vs(e,ws))return e[ws];var r=e.constructor;return gs(r)&&e instanceof r?r.prototype:e instanceof As?Ss:null},Rs=j,Ps=ct,Os=Es,xs=gn,ks=we("iterator"),Is=!1;[].keys&&("next"in(hs=[].keys())?(ps=Os(Os(hs)))!==Object.prototype&&(ls=ps):Is=!0),(null==ls||Rs((function(){var t={};return ls[ks].call(t)!==t})))&&(ls={}),Ps(ls[ks])||xs(ls,ks,(function(){return this}));var js={IteratorPrototype:ls,BUGGY_SAFARI_ITERATORS:Is},Ts=Ye.f,Us=oe,Ns=we("toStringTag"),_s=function(t,e,r){t&&!r&&(t=t.prototype),t&&!Us(t,Ns)&&Ts(t,Ns,{configurable:!0,value:e})},Cs=js.IteratorPrototype,Ls=Sa,Bs=q,Fs=_s,Ds=ds,Ms=function(){return this},Ws=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Ls(Cs,{next:Bs(+!n,r)}),Fs(t,o,!1),Ds[o]=Ms,t},qs=wo,Gs=C,Hs=ct,zs=Ws,Vs=Es,Ys=Bi,$s=_s,Js=pr,Qs=gn,Ks=ds,Xs=br.PROPER,Zs=br.CONFIGURABLE,tc=js.IteratorPrototype,ec=js.BUGGY_SAFARI_ITERATORS,rc=we("iterator"),nc="keys",oc="values",ic="entries",ac=function(){return this},uc=function(t,e,r,n,o,i,a){zs(r,e,n);var u,s,c,f=function(t){if(t===o&&y)return y;if(!ec&&t in h)return h[t];switch(t){case nc:case oc:case ic:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",p=!1,h=t.prototype,d=h[rc]||h["@@iterator"]||o&&h[o],y=!ec&&d||f(o),v="Array"==e&&h.entries||d;if(v&&(u=Vs(v.call(new t)))!==Object.prototype&&u.next&&(Vs(u)!==tc&&(Ys?Ys(u,tc):Hs(u[rc])||Qs(u,rc,ac)),$s(u,l,!0)),Xs&&o==oc&&d&&d.name!==oc&&(Zs?Js(h,"name",oc):(p=!0,y=function(){return Gs(d,this)})),o)if(s={values:f(oc),keys:i?y:f(nc),entries:f(ic)},a)for(c in s)(ec||p||!(c in h))&&Qs(h,c,s[c]);else qs({target:e,proto:!0,forced:ec||p},s);return h[rc]!==y&&Qs(h,rc,y,{name:o}),Ks[e]=y,s},sc=st,cc=function(t){fs[cs][t]=!0},fc=ds,lc=Zr,pc=Ye.f,hc=uc,dc=T,yc="Array Iterator",vc=lc.set,gc=lc.getterFor(yc),mc=hc(Array,"Array",(function(t,e){vc(this,{type:yc,target:sc(t),index:0,kind:e})}),(function(){var t=gc(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),bc=fc.Arguments=fc.Array;if(cc("keys"),cc("values"),cc("entries"),dc&&"values"!==bc.name)try{pc(bc,"name",{value:"values"})}catch(t){}var wc=Lo,Ac=Io?{}.toString:function(){return"[object "+wc(this)+"]"};Io||gn(Object.prototype,"toString",Ac,{unsafe:!0});var Sc=mu.charAt,Ec=Gi,Rc=Zr,Pc=uc,Oc="String Iterator",xc=Rc.set,kc=Rc.getterFor(Oc);Pc(String,"String",(function(t){xc(this,{type:Oc,string:Ec(t),index:0})}),(function(){var t,e=kc(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Sc(r,n),e.index+=t.length,{value:t,done:!1})}));var Ic=Ce("span").classList,jc=Ic&&Ic.constructor&&Ic.constructor.prototype,Tc=jc===Object.prototype?void 0:jc,Uc=k,Nc={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},_c=Tc,Cc=mc,Lc=pr,Bc=we,Fc=Bc("iterator"),Dc=Bc("toStringTag"),Mc=Cc.values,Wc=function(t,e){if(t){if(t[Fc]!==Mc)try{Lc(t,Fc,Mc)}catch(e){t[Fc]=Mc}if(t[Dc]||Lc(t,Dc,e),Nc[e])for(var r in Cc)if(t[r]!==Cc[r])try{Lc(t,r,Cc[r])}catch(e){t[r]=Cc[r]}}};for(var qc in Nc)Wc(Uc[qc]&&Uc[qc].prototype,qc);Wc(_c,"DOMTokenList");var Gc=j,Hc=we("iterator"),zc=!Gc((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[Hc]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),Vc=Ft,Yc=U,$c=$($.bind),Jc=function(t,e){return Vc(t),void 0===e?t:Yc?$c(t,e):function(){return t.apply(e,arguments)}},Qc=hr.exports,Kc=Ye,Xc=vt,Zc=TypeError,tf=function(t,e){if(Xc(e,t))return t;throw Zc("Incorrect invocation")},ef=T,rf=$,nf=C,of=j,af=ta,uf=Vn,sf=L,cf=ee,ff=nt,lf=Object.assign,pf=Object.defineProperty,hf=rf([].concat),df=!lf||of((function(){if(ef&&1!==lf({b:1},lf(pf({},"a",{enumerable:!0,get:function(){pf(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=lf({},t)[r]||af(lf({},e)).join("")!=n}))?function(t,e){for(var r=cf(t),n=arguments.length,o=1,i=uf.f,a=sf.f;n>o;)for(var u,s=ff(arguments[o++]),c=i?hf(af(s),i(s)):af(s),f=c.length,l=0;f>l;)u=c[l++],ef&&!nf(a,s,u)||(r[u]=s[u]);return r}:lf,yf=C,vf=Xe,gf=Mt,mf=Xe,bf=function(t,e,r){var n,o;vf(t);try{if(!(n=gf(t,"return"))){if("throw"===e)throw r;return r}n=yf(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return vf(n),r},wf=ds,Af=we("iterator"),Sf=Array.prototype,Ef=Lo,Rf=Mt,Pf=ds,Of=we("iterator"),xf=function(t){if(null!=t)return Rf(t,Of)||Rf(t,"@@iterator")||Pf[Ef(t)]},kf=C,If=Ft,jf=Xe,Tf=_t,Uf=xf,Nf=TypeError,_f=function(t,e){var r=arguments.length<2?Uf(t):e;if(If(r))return jf(kf(r,t));throw Nf(Tf(t)+" is not iterable")},Cf=Jc,Lf=C,Bf=ee,Ff=function(t,e,r,n){try{return n?e(mf(r)[0],r[1]):e(r)}catch(e){bf(t,"throw",e)}},Df=function(t){return void 0!==t&&(wf.Array===t||Sf[Af]===t)},Mf=Qo,Wf=Tn,qf=xo,Gf=_f,Hf=xf,zf=Array,Vf=On,Yf=Tn,$f=xo,Jf=Array,Qf=Math.max,Kf=function(t,e,r){for(var n=Yf(t),o=Vf(e,n),i=Vf(void 0===r?n:r,n),a=Jf(Qf(i-o,0)),u=0;o<i;o++,u++)$f(a,u,t[o]);return a.length=u,a},Xf=$,Zf=2147483647,tl=/[^\0-\u007E]/,el=/[.\u3002\uFF0E\uFF61]/g,rl="Overflow: input needs wider integers to process",nl=RangeError,ol=Xf(el.exec),il=Math.floor,al=String.fromCharCode,ul=Xf("".charCodeAt),sl=Xf([].join),cl=Xf([].push),fl=Xf("".replace),ll=Xf("".split),pl=Xf("".toLowerCase),hl=function(t){return t+22+75*(t<26)},dl=function(t,e,r){var n=0;for(t=r?il(t/700):t>>1,t+=il(t/e);t>455;)t=il(t/35),n+=36;return il(n+36*t/(t+38))},yl=function(t){var e,r,n=[],o=(t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=ul(t,r++);if(o>=55296&&o<=56319&&r<n){var i=ul(t,r++);56320==(64512&i)?cl(e,((1023&o)<<10)+(1023&i)+65536):(cl(e,o),r--)}else cl(e,o)}return e}(t)).length,i=128,a=0,u=72;for(e=0;e<t.length;e++)(r=t[e])<128&&cl(n,al(r));var s=n.length,c=s;for(s&&cl(n,"-");c<o;){var f=Zf;for(e=0;e<t.length;e++)(r=t[e])>=i&&r<f&&(f=r);var l=c+1;if(f-i>il((Zf-a)/l))throw nl(rl);for(a+=(f-i)*l,i=f,e=0;e<t.length;e++){if((r=t[e])<i&&++a>Zf)throw nl(rl);if(r==i){for(var p=a,h=36;;){var d=h<=u?1:h>=u+26?26:h-u;if(p<d)break;var y=p-d,v=36-d;cl(n,al(hl(d+y%v))),p=il(y/v),h+=36}cl(n,al(hl(p))),u=dl(a,l,c==s),a=0,c++}}a++,i++}return sl(n,"")},vl=TypeError,gl=function(t,e){if(t<e)throw vl("Not enough arguments");return t},ml=gn,bl=Kf,wl=Math.floor,Al=function(t,e){var r=t.length,n=wl(r/2);return r<8?Sl(t,e):El(t,Al(bl(t,0,n),e),Al(bl(t,n),e),e)},Sl=function(t,e){for(var r,n,o=t.length,i=1;i<o;){for(n=i,r=t[i];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},El=function(t,e,r,n){for(var o=e.length,i=r.length,a=0,u=0;a<o||u<i;)t[a+u]=a<o&&u<i?n(e[a],r[u])<=0?e[a++]:r[u++]:a<o?e[a++]:r[u++];return t},Rl=wo,Pl=k,Ol=C,xl=$,kl=T,Il=zc,jl=gn,Tl=function(t,e,r){for(var n in e)ml(t,n,e[n],r);return t},Ul=_s,Nl=Ws,_l=Zr,Cl=tf,Ll=ct,Bl=oe,Fl=Jc,Dl=Lo,Ml=Xe,Wl=lt,ql=Gi,Gl=Sa,Hl=q,zl=_f,Vl=xf,Yl=gl,$l=Al,Jl=we("iterator"),Ql="URLSearchParams",Kl="URLSearchParamsIterator",Xl=_l.set,Zl=_l.getterFor(Ql),tp=_l.getterFor(Kl),ep=Object.getOwnPropertyDescriptor,rp=function(t){if(!kl)return Pl[t];var e=ep(Pl,t);return e&&e.value},np=rp("fetch"),op=rp("Request"),ip=rp("Headers"),ap=op&&op.prototype,up=ip&&ip.prototype,sp=Pl.RegExp,cp=Pl.TypeError,fp=Pl.decodeURIComponent,lp=Pl.encodeURIComponent,pp=xl("".charAt),hp=xl([].join),dp=xl([].push),yp=xl("".replace),vp=xl([].shift),gp=xl([].splice),mp=xl("".split),bp=xl("".slice),wp=/\+/g,Ap=Array(4),Sp=function(t){return Ap[t-1]||(Ap[t-1]=sp("((?:%[\\da-f]{2}){"+t+"})","gi"))},Ep=function(t){try{return fp(t)}catch(e){return t}},Rp=function(t){var e=yp(t,wp," "),r=4;try{return fp(e)}catch(t){for(;r;)e=yp(e,Sp(r--),Ep);return e}},Pp=/[!'()~]|%20/g,Op={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},xp=function(t){return Op[t]},kp=function(t){return yp(lp(t),Pp,xp)},Ip=Nl((function(t,e){Xl(this,{type:Kl,iterator:zl(Zl(t).entries),kind:e})}),"Iterator",(function(){var t=tp(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r}),!0),jp=function(t){this.entries=[],this.url=null,void 0!==t&&(Wl(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===pp(t,0)?bp(t,1):t:ql(t)))};jp.prototype={type:Ql,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,o,i,a,u,s=Vl(t);if(s)for(r=(e=zl(t,s)).next;!(n=Ol(r,e)).done;){if(i=(o=zl(Ml(n.value))).next,(a=Ol(i,o)).done||(u=Ol(i,o)).done||!Ol(i,o).done)throw cp("Expected sequence with length 2");dp(this.entries,{key:ql(a.value),value:ql(u.value)})}else for(var c in t)Bl(t,c)&&dp(this.entries,{key:c,value:ql(t[c])})},parseQuery:function(t){if(t)for(var e,r,n=mp(t,"&"),o=0;o<n.length;)(e=n[o++]).length&&(r=mp(e,"="),dp(this.entries,{key:Rp(vp(r)),value:Rp(hp(r,"="))}))},serialize:function(){for(var t,e=this.entries,r=[],n=0;n<e.length;)t=e[n++],dp(r,kp(t.key)+"="+kp(t.value));return hp(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Tp=function(){Cl(this,Up);var t=arguments.length>0?arguments[0]:void 0;Xl(this,new jp(t))},Up=Tp.prototype;if(Tl(Up,{append:function(t,e){Yl(arguments.length,2);var r=Zl(this);dp(r.entries,{key:ql(t),value:ql(e)}),r.updateURL()},delete:function(t){Yl(arguments.length,1);for(var e=Zl(this),r=e.entries,n=ql(t),o=0;o<r.length;)r[o].key===n?gp(r,o,1):o++;e.updateURL()},get:function(t){Yl(arguments.length,1);for(var e=Zl(this).entries,r=ql(t),n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){Yl(arguments.length,1);for(var e=Zl(this).entries,r=ql(t),n=[],o=0;o<e.length;o++)e[o].key===r&&dp(n,e[o].value);return n},has:function(t){Yl(arguments.length,1);for(var e=Zl(this).entries,r=ql(t),n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){Yl(arguments.length,1);for(var r,n=Zl(this),o=n.entries,i=!1,a=ql(t),u=ql(e),s=0;s<o.length;s++)(r=o[s]).key===a&&(i?gp(o,s--,1):(i=!0,r.value=u));i||dp(o,{key:a,value:u}),n.updateURL()},sort:function(){var t=Zl(this);$l(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,r=Zl(this).entries,n=Fl(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 Ip(this,"keys")},values:function(){return new Ip(this,"values")},entries:function(){return new Ip(this,"entries")}},{enumerable:!0}),jl(Up,Jl,Up.entries,{name:"entries"}),jl(Up,"toString",(function(){return Zl(this).serialize()}),{enumerable:!0}),Ul(Tp,Ql),Rl({global:!0,constructor:!0,forced:!Il},{URLSearchParams:Tp}),!Il&&Ll(ip)){var Np=xl(up.has),_p=xl(up.set),Cp=function(t){if(Wl(t)){var e,r=t.body;if(Dl(r)===Ql)return e=t.headers?new ip(t.headers):new ip,Np(e,"content-type")||_p(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Gl(t,{body:Hl(0,ql(r)),headers:Hl(0,e)})}return t};if(Ll(np)&&Rl({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return np(t,arguments.length>1?Cp(arguments[1]):{})}}),Ll(op)){var Lp=function(t){return Cl(this,ap),new op(t,arguments.length>1?Cp(arguments[1]):{})};ap.constructor=Lp,Lp.prototype=ap,Rl({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Lp})}}var Bp,Fp=wo,Dp=T,Mp=zc,Wp=k,qp=Jc,Gp=$,Hp=gn,zp=function(t,e,r){return r.get&&Qc(r.get,e,{getter:!0}),r.set&&Qc(r.set,e,{setter:!0}),Kc.f(t,e,r)},Vp=tf,Yp=oe,$p=df,Jp=function(t){var e=Bf(t),r=Mf(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Cf(o,n>2?arguments[2]:void 0));var a,u,s,c,f,l,p=Hf(e),h=0;if(!p||this===zf&&Df(p))for(a=Wf(e),u=r?new this(a):zf(a);a>h;h++)l=i?o(e[h],h):e[h],qf(u,h,l);else for(f=(c=Gf(e,p)).next,u=r?new this:[];!(s=Lf(f,c)).done;h++)l=i?Ff(c,o,[s.value,h],!0):s.value,qf(u,h,l);return u.length=h,u},Qp=Kf,Kp=mu.codeAt,Xp=function(t){var e,r,n=[],o=ll(fl(pl(t),el,"."),".");for(e=0;e<o.length;e++)r=o[e],cl(n,ol(tl,r)?"xn--"+yl(r):r);return sl(n,".")},Zp=Gi,th=_s,eh=gl,rh={URLSearchParams:Tp,getState:Zl},nh=Zr,oh=nh.set,ih=nh.getterFor("URL"),ah=rh.URLSearchParams,uh=rh.getState,sh=Wp.URL,ch=Wp.TypeError,fh=Wp.parseInt,lh=Math.floor,ph=Math.pow,hh=Gp("".charAt),dh=Gp(/./.exec),yh=Gp([].join),vh=Gp(1..toString),gh=Gp([].pop),mh=Gp([].push),bh=Gp("".replace),wh=Gp([].shift),Ah=Gp("".split),Sh=Gp("".slice),Eh=Gp("".toLowerCase),Rh=Gp([].unshift),Ph="Invalid scheme",Oh="Invalid host",xh="Invalid port",kh=/[a-z]/i,Ih=/[\d+-.a-z]/i,jh=/\d/,Th=/^0x/i,Uh=/^[0-7]+$/,Nh=/^\d+$/,_h=/^[\da-f]+$/i,Ch=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Lh=/[\0\t\n\r #/:<>?@[\\\]^|]/,Bh=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,Fh=/[\t\n\r]/g,Dh=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)Rh(e,t%256),t=lh(t/256);return yh(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&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=vh(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},Mh={},Wh=$p({},Mh,{" ":1,'"':1,"<":1,">":1,"`":1}),qh=$p({},Wh,{"#":1,"?":1,"{":1,"}":1}),Gh=$p({},qh,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Hh=function(t,e){var r=Kp(t,0);return r>32&&r<127&&!Yp(e,t)?t:encodeURIComponent(t)},zh={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Vh=function(t,e){var r;return 2==t.length&&dh(kh,hh(t,0))&&(":"==(r=hh(t,1))||!e&&"|"==r)},Yh=function(t){var e;return t.length>1&&Vh(Sh(t,0,2))&&(2==t.length||"/"===(e=hh(t,2))||"\\"===e||"?"===e||"#"===e)},$h=function(t){return"."===t||"%2e"===Eh(t)},Jh={},Qh={},Kh={},Xh={},Zh={},td={},ed={},rd={},nd={},od={},id={},ad={},ud={},sd={},cd={},fd={},ld={},pd={},hd={},dd={},yd={},vd=function(t,e,r){var n,o,i,a=Zp(t);if(e){if(o=this.parse(a))throw ch(o);this.searchParams=null}else{if(void 0!==r&&(n=new vd(r,!0)),o=this.parse(a,null,n))throw ch(o);(i=uh(new ah)).bindURL(this),this.searchParams=i}};vd.prototype={type:"URL",parse:function(t,e,r){var n,o,i,a,u,s=this,c=e||Jh,f=0,l="",p=!1,h=!1,d=!1;for(t=Zp(t),e||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,t=bh(t,Bh,"")),t=bh(t,Fh,""),n=Jp(t);f<=n.length;){switch(o=n[f],c){case Jh:if(!o||!dh(kh,o)){if(e)return Ph;c=Kh;continue}l+=Eh(o),c=Qh;break;case Qh:if(o&&(dh(Ih,o)||"+"==o||"-"==o||"."==o))l+=Eh(o);else{if(":"!=o){if(e)return Ph;l="",c=Kh,f=0;continue}if(e&&(s.isSpecial()!=Yp(zh,l)||"file"==l&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=l,e)return void(s.isSpecial()&&zh[s.scheme]==s.port&&(s.port=null));l="","file"==s.scheme?c=sd:s.isSpecial()&&r&&r.scheme==s.scheme?c=Xh:s.isSpecial()?c=rd:"/"==n[f+1]?(c=Zh,f++):(s.cannotBeABaseURL=!0,mh(s.path,""),c=hd)}break;case Kh:if(!r||r.cannotBeABaseURL&&"#"!=o)return Ph;if(r.cannotBeABaseURL&&"#"==o){s.scheme=r.scheme,s.path=Qp(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,c=yd;break}c="file"==r.scheme?sd:td;continue;case Xh:if("/"!=o||"/"!=n[f+1]){c=td;continue}c=nd,f++;break;case Zh:if("/"==o){c=od;break}c=pd;continue;case td:if(s.scheme=r.scheme,o==Bp)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=Qp(r.path),s.query=r.query;else if("/"==o||"\\"==o&&s.isSpecial())c=ed;else if("?"==o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=Qp(r.path),s.query="",c=dd;else{if("#"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=Qp(r.path),s.path.length--,c=pd;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=Qp(r.path),s.query=r.query,s.fragment="",c=yd}break;case ed:if(!s.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,c=pd;continue}c=od}else c=nd;break;case rd:if(c=nd,"/"!=o||"/"!=hh(l,f+1))continue;f++;break;case nd:if("/"!=o&&"\\"!=o){c=od;continue}break;case od:if("@"==o){p&&(l="%40"+l),p=!0,i=Jp(l);for(var y=0;y<i.length;y++){var v=i[y];if(":"!=v||d){var g=Hh(v,Gh);d?s.password+=g:s.username+=g}else d=!0}l=""}else if(o==Bp||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(p&&""==l)return"Invalid authority";f-=Jp(l).length+1,l="",c=id}else l+=o;break;case id:case ad:if(e&&"file"==s.scheme){c=fd;continue}if(":"!=o||h){if(o==Bp||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(s.isSpecial()&&""==l)return Oh;if(e&&""==l&&(s.includesCredentials()||null!==s.port))return;if(a=s.parseHost(l))return a;if(l="",c=ld,e)return;continue}"["==o?h=!0:"]"==o&&(h=!1),l+=o}else{if(""==l)return Oh;if(a=s.parseHost(l))return a;if(l="",c=ud,e==ad)return}break;case ud:if(!dh(jh,o)){if(o==Bp||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()||e){if(""!=l){var m=fh(l,10);if(m>65535)return xh;s.port=s.isSpecial()&&m===zh[s.scheme]?null:m,l=""}if(e)return;c=ld;continue}return xh}l+=o;break;case sd:if(s.scheme="file","/"==o||"\\"==o)c=cd;else{if(!r||"file"!=r.scheme){c=pd;continue}if(o==Bp)s.host=r.host,s.path=Qp(r.path),s.query=r.query;else if("?"==o)s.host=r.host,s.path=Qp(r.path),s.query="",c=dd;else{if("#"!=o){Yh(yh(Qp(n,f),""))||(s.host=r.host,s.path=Qp(r.path),s.shortenPath()),c=pd;continue}s.host=r.host,s.path=Qp(r.path),s.query=r.query,s.fragment="",c=yd}}break;case cd:if("/"==o||"\\"==o){c=fd;break}r&&"file"==r.scheme&&!Yh(yh(Qp(n,f),""))&&(Vh(r.path[0],!0)?mh(s.path,r.path[0]):s.host=r.host),c=pd;continue;case fd:if(o==Bp||"/"==o||"\\"==o||"?"==o||"#"==o){if(!e&&Vh(l))c=pd;else if(""==l){if(s.host="",e)return;c=ld}else{if(a=s.parseHost(l))return a;if("localhost"==s.host&&(s.host=""),e)return;l="",c=ld}continue}l+=o;break;case ld:if(s.isSpecial()){if(c=pd,"/"!=o&&"\\"!=o)continue}else if(e||"?"!=o)if(e||"#"!=o){if(o!=Bp&&(c=pd,"/"!=o))continue}else s.fragment="",c=yd;else s.query="",c=dd;break;case pd:if(o==Bp||"/"==o||"\\"==o&&s.isSpecial()||!e&&("?"==o||"#"==o)){if(".."===(u=Eh(u=l))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(s.shortenPath(),"/"==o||"\\"==o&&s.isSpecial()||mh(s.path,"")):$h(l)?"/"==o||"\\"==o&&s.isSpecial()||mh(s.path,""):("file"==s.scheme&&!s.path.length&&Vh(l)&&(s.host&&(s.host=""),l=hh(l,0)+":"),mh(s.path,l)),l="","file"==s.scheme&&(o==Bp||"?"==o||"#"==o))for(;s.path.length>1&&""===s.path[0];)wh(s.path);"?"==o?(s.query="",c=dd):"#"==o&&(s.fragment="",c=yd)}else l+=Hh(o,qh);break;case hd:"?"==o?(s.query="",c=dd):"#"==o?(s.fragment="",c=yd):o!=Bp&&(s.path[0]+=Hh(o,Mh));break;case dd:e||"#"!=o?o!=Bp&&("'"==o&&s.isSpecial()?s.query+="%27":s.query+="#"==o?"%23":Hh(o,Mh)):(s.fragment="",c=yd);break;case yd:o!=Bp&&(s.fragment+=Hh(o,Wh))}f++}},parseHost:function(t){var e,r,n;if("["==hh(t,0)){if("]"!=hh(t,t.length-1))return Oh;if(!(e=function(t){var e,r,n,o,i,a,u,s=[0,0,0,0,0,0,0,0],c=0,f=null,l=0,p=function(){return hh(t,l)};if(":"==p()){if(":"!=hh(t,1))return;l+=2,f=++c}for(;p();){if(8==c)return;if(":"!=p()){for(e=r=0;r<4&&dh(_h,p());)e=16*e+fh(p(),16),l++,r++;if("."==p()){if(0==r)return;if(l-=r,c>6)return;for(n=0;p();){if(o=null,n>0){if(!("."==p()&&n<4))return;l++}if(!dh(jh,p()))return;for(;dh(jh,p());){if(i=fh(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}s[c]=256*s[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==p()){if(l++,!p())return}else if(p())return;s[c++]=e}else{if(null!==f)return;l++,f=++c}}if(null!==f)for(a=c-f,c=7;0!=c&&a>0;)u=s[c],s[c--]=s[f+a-1],s[f+--a]=u;else if(8!=c)return;return s}(Sh(t,1,-1))))return Oh;this.host=e}else if(this.isSpecial()){if(t=Xp(t),dh(Ch,t))return Oh;if(null===(e=function(t){var e,r,n,o,i,a,u,s=Ah(t,".");if(s.length&&""==s[s.length-1]&&s.length--,(e=s.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(o=s[n]))return t;if(i=10,o.length>1&&"0"==hh(o,0)&&(i=dh(Th,o)?16:8,o=Sh(o,8==i?1:2)),""===o)a=0;else{if(!dh(10==i?Nh:8==i?Uh:_h,o))return t;a=fh(o,i)}mh(r,a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=ph(256,5-e))return null}else if(a>255)return null;for(u=gh(r),n=0;n<r.length;n++)u+=r[n]*ph(256,3-n);return u}(t)))return Oh;this.host=e}else{if(dh(Lh,t))return Oh;for(e="",r=Jp(t),n=0;n<r.length;n++)e+=Hh(r[n],Mh);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return Yp(zh,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"==this.scheme&&1==e&&Vh(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,u=t.query,s=t.fragment,c=e+":";return null!==o?(c+="//",t.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=Dh(o),null!==i&&(c+=":"+i)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?a[0]:a.length?"/"+yh(a,"/"):"",null!==u&&(c+="?"+u),null!==s&&(c+="#"+s),c},setHref:function(t){var e=this.parse(t);if(e)throw ch(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"==t)try{return new gd(t.path[0]).origin}catch(t){return"null"}return"file"!=t&&this.isSpecial()?t+"://"+Dh(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(Zp(t)+":",Jh)},getUsername:function(){return this.username},setUsername:function(t){var e=Jp(Zp(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<e.length;r++)this.username+=Hh(e[r],Gh)}},getPassword:function(){return this.password},setPassword:function(t){var e=Jp(Zp(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<e.length;r++)this.password+=Hh(e[r],Gh)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?Dh(t):Dh(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,id)},getHostname:function(){var t=this.host;return null===t?"":Dh(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,ad)},getPort:function(){var t=this.port;return null===t?"":Zp(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""==(t=Zp(t))?this.port=null:this.parse(t,ud))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+yh(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,ld))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""==(t=Zp(t))?this.query=null:("?"==hh(t,0)&&(t=Sh(t,1)),this.query="",this.parse(t,dd)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!=(t=Zp(t))?("#"==hh(t,0)&&(t=Sh(t,1)),this.fragment="",this.parse(t,yd)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var gd=function(t){var e=Vp(this,md),r=eh(arguments.length,1)>1?arguments[1]:void 0,n=oh(e,new vd(t,!1,r));Dp||(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())},md=gd.prototype,bd=function(t,e){return{get:function(){return ih(this)[t]()},set:e&&function(t){return ih(this)[e](t)},configurable:!0,enumerable:!0}};if(Dp&&(zp(md,"href",bd("serialize","setHref")),zp(md,"origin",bd("getOrigin")),zp(md,"protocol",bd("getProtocol","setProtocol")),zp(md,"username",bd("getUsername","setUsername")),zp(md,"password",bd("getPassword","setPassword")),zp(md,"host",bd("getHost","setHost")),zp(md,"hostname",bd("getHostname","setHostname")),zp(md,"port",bd("getPort","setPort")),zp(md,"pathname",bd("getPathname","setPathname")),zp(md,"search",bd("getSearch","setSearch")),zp(md,"searchParams",bd("getSearchParams")),zp(md,"hash",bd("getHash","setHash"))),Hp(md,"toJSON",(function(){return ih(this).serialize()}),{enumerable:!0}),Hp(md,"toString",(function(){return ih(this).serialize()}),{enumerable:!0}),sh){var wd=sh.createObjectURL,Ad=sh.revokeObjectURL;wd&&Hp(gd,"createObjectURL",qp(wd,sh)),Ad&&Hp(gd,"revokeObjectURL",qp(Ad,sh))}th(gd,"URL"),Fp({global:!0,constructor:!0,forced:!Mp,sham:!Dp},{URL:gd});var Sd=Jc,Ed=nt,Rd=ee,Pd=Tn,Od=ni,xd=$([].push),kd=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(s,c,f,l){for(var p,h,d=Rd(s),y=Ed(d),v=Sd(c,f),g=Pd(y),m=0,b=l||Od,w=e?b(s,g):r||a?b(s,0):void 0;g>m;m++)if((u||m in y)&&(h=v(p=y[m],m,d),t))if(e)w[m]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:xd(w,p)}else switch(t){case 4:return!1;case 7:xd(w,p)}return i?-1:n||o?o:w}},Id={forEach:kd(0),map:kd(1),filter:kd(2),some:kd(3),every:kd(4),find:kd(5),findIndex:kd(6),filterReject:kd(7)},jd=Id.map;wo({target:"Array",proto:!0,forced:!ui("map")},{map:function(t){return jd(this,t,arguments.length>1?arguments[1]:void 0)}});var Td=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")},Ud=["endpointName"],Nd=function(){function t(e,r){s(this,t),this.client=e,this.guestSpaceId=r,this.REQUESTS_LENGTH_LIMIT=20}return f(t,[{key:"send",value:function(t){var e=this,r=t.requests.map((function(t){if("endpointName"in t){var r=t.endpointName,o=m(t,Ud);return n({api:e.buildPathWithGuestSpaceId({endpointName:r})},o)}return t})),o=this.buildPathWithGuestSpaceId({endpointName:"bulkRequest"});return this.client.post(o,{requests:r})}},{key:"buildPathWithGuestSpaceId",value:function(t){return Td(n(n({},t),{},{guestSpaceId:this.guestSpaceId}))}}]),t}(),_d=["preview"],Cd=["preview"],Ld=["preview"],Bd=["preview"],Fd=["preview"],Dd=["preview"],Md=["preview"],Wd=["preview"],qd=["preview"],Gd=["preview"],Hd=["preview"],zd=["preview"],Vd=["preview"],Yd=["preview"],$d=function(){function t(e,r){s(this,t),this.client=e,this.guestSpaceId=r}var e;return f(t,[{key:"getFormFields",value:function(t){var e=t.preview,r=m(t,_d),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:e});return this.client.get(o,n({},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=m(t,Cd),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:e});return this.client.get(o,n({},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=m(t,Ld),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:(e=u(o().mark((function t(e){var r,i,a,u,s,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.name,i=e.space,a=this.buildPathWithGuestSpaceId({endpointName:"app",preview:!0}),!i){t.next=9;break}return u=this.buildPathWithGuestSpaceId({endpointName:"space"}),t.next=6,this.client.get(u,{id:i});case 6:return s=t.sent,c=s.defaultThread,t.abrupt("return",this.client.post(a,n(n({},e),{},{thread:c})));case 9:return t.abrupt("return",this.client.post(a,{name:r}));case 10:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"getAppSettings",value:function(t){var e=t.preview,r=m(t,Bd),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=m(t,Fd),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=m(t,Dd),o=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:e});return this.client.get(o,n({},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=m(t,Md),o=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:e});return this.client.get(o,n({},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=m(t,Wd),o=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:e});return this.client.get(o,n({},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=m(t,qd),o=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:e});return this.client.get(o,n({},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=m(t,Gd),o=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:e});return this.client.get(o,n({},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=m(t,Hd),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=m(t,zd),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=m(t,Vd),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=m(t,Yd),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:"buildPathWithGuestSpaceId",value:function(t){return Td(n(n({},t),{},{guestSpaceId:this.guestSpaceId}))}}]),t}(),Jd=df;wo({target:"Object",stat:!0,arity:2,forced:Object.assign!==Jd},{assign:Jd});var Qd=C,Kd=Xe,Xd=In,Zd=Gi,ty=it,ey=Mt,ry=wu,ny=Cu;cu("match",(function(t,e,r){return[function(e){var r=ty(this),n=null==e?void 0:ey(e,t);return n?Qd(n,e,r):new RegExp(e)[t](Zd(r))},function(t){var n=Kd(this),o=Zd(t),i=r(e,n,o);if(i.done)return i.value;if(!n.global)return ny(n,o);var a=n.unicode;n.lastIndex=0;for(var u,s=[],c=0;null!==(u=ny(n,o));){var f=Zd(u[0]);s[c]=f,""===f&&(n.lastIndex=ry(o,Xd(n.lastIndex),a)),c++}return 0===c?null:s}]}));var oy=ct,iy=lt,ay=Bi,uy=$(1..valueOf),sy=it,cy=Gi,fy=$("".replace),ly="[\t\n\v\f\r \u2028\u2029\ufeff]",py=RegExp("^"+ly+ly+"*"),hy=RegExp(ly+ly+"*$"),dy=function(t){return function(e){var r=cy(sy(e));return 1&t&&(r=fy(r,py,"")),2&t&&(r=fy(r,hy,"")),r}},yy={start:dy(1),end:dy(2),trim:dy(3)},vy=T,gy=k,my=$,by=lo,wy=gn,Ay=oe,Sy=function(t,e,r){var n,o;return ay&&oy(n=e.constructor)&&n!==r&&iy(o=n.prototype)&&o!==r.prototype&&ay(t,o),t},Ey=vt,Ry=Ut,Py=ke,Oy=j,xy=mn.f,ky=I.f,Iy=Ye.f,jy=uy,Ty=yy.trim,Uy="Number",Ny=gy.Number,_y=Ny.prototype,Cy=gy.TypeError,Ly=my("".slice),By=my("".charCodeAt),Fy=function(t){var e=Py(t,"number");return"bigint"==typeof e?e:Dy(e)},Dy=function(t){var e,r,n,o,i,a,u,s,c=Py(t,"number");if(Ry(c))throw Cy("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Ty(c),43===(e=By(c,0))||45===e){if(88===(r=By(c,2))||120===r)return NaN}else if(48===e){switch(By(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=Ly(c,2)).length,u=0;u<a;u++)if((s=By(i,u))<48||s>o)return NaN;return parseInt(i,n)}return+c};if(by(Uy,!Ny(" 0o1")||!Ny("0b1")||Ny("+0x1"))){for(var My,Wy=function(t){var e=arguments.length<1?0:Ny(Fy(t)),r=this;return Ey(_y,r)&&Oy((function(){jy(r)}))?Sy(Object(e),r,Wy):e},qy=vy?xy(Ny):"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(","),Gy=0;qy.length>Gy;Gy++)Ay(Ny,My=qy[Gy])&&!Ay(Wy,My)&&Iy(Wy,My,ky(Ny,My));Wy.prototype=_y,_y.constructor=Wy,wy(gy,Uy,Wy,{constructor:!0})}var Hy=j,zy=function(t,e){var r=[][t];return!!r&&Hy((function(){r.call(null,e||function(){return 1},1)}))},Vy=wo,Yy=Ln.indexOf,$y=zy,Jy=$([].indexOf),Qy=!!Jy&&1/Jy([1],1,-0)<0,Ky=$y("indexOf");Vy({target:"Array",proto:!0,forced:Qy||!Ky},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Qy?Jy(this,t,e)||0:Yy(this,t,e)}});var Xy=Id.every;wo({target:"Array",proto:!0,forced:!zy("every")},{every:function(t){return Xy(this,t,arguments.length>1?arguments[1]:void 0)}}),wo({target:"Array",stat:!0},{isArray:So});var Zy=$([].slice),tv=wo,ev=So,rv=Qo,nv=lt,ov=On,iv=Tn,av=st,uv=xo,sv=we,cv=Zy,fv=ui("slice"),lv=sv("species"),pv=Array,hv=Math.max;tv({target:"Array",proto:!0,forced:!fv},{slice:function(t,e){var r,n,o,i=av(this),a=iv(i),u=ov(t,a),s=ov(void 0===e?a:e,a);if(ev(i)&&(r=i.constructor,(rv(r)&&(r===pv||ev(r.prototype))||nv(r)&&null===(r=r[lv]))&&(r=void 0),r===pv||void 0===r))return cv(i,u,s);for(n=new(void 0===r?pv:r)(hv(s-u,0)),o=0;u<s;u++,o++)u in i&&uv(n,o,i[u]);return n.length=o,n}});var dv=Ft,yv=ee,vv=nt,gv=Tn,mv=TypeError,bv=function(t){return function(e,r,n,o){dv(r);var i=yv(e),a=vv(i),u=gv(i),s=t?u-1:0,c=t?-1:1;if(n<2)for(;;){if(s in a){o=a[s],s+=c;break}if(s+=c,t?s<0:u<=s)throw mv("Reduce of empty array with no initial value")}for(;t?s>=0:u>s;s+=c)s in a&&(o=r(o,a[s],s,i));return o}},wv={left:bv(!1),right:bv(!0)},Av="process"==X(k.process),Sv=wv.left,Ev=Et,Rv=Av;wo({target:"Array",proto:!0,forced:!zy("reduce")||!Rv&&Ev>79&&Ev<83},{reduce:function(t){var e=arguments.length;return Sv(this,t,e,e>1?arguments[1]:void 0)}});var Pv=ee,Ov=ta;wo({target:"Object",stat:!0,forced:j((function(){Ov(1)}))},{keys:function(t){return Ov(Pv(t))}});var xv,kv=function(t){p(r,t);var e=A(r);function r(t,n,o,i,a){var u;s(this,r);var c=o-n.length,f=r.extractErrorIndex(c,i,a),l=r.buildErrorMessage(c,o,f);return(u=e.call(this,l)).name="KintoneAllRecordsError",u.processedRecordsResult=t,u.unprocessedRecords=n,u.error=i,u.errorIndex=f,u.message=l,Object.setPrototypeOf(b(u),r.prototype),u}return f(r,null,[{key:"parseErrorIndex",value:function(t){var e=Object.keys(t)[0].match(/records\[(\d+)\]/);return e?Number(e[1]):null}},{key:"extractErrorIndex",value:function(t,e,n){if(void 0!==e.bulkRequestIndex&&e.errors){var o=r.parseErrorIndex(e.errors);if(null!==o)return t+e.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")}}]),r}(g(Error)),Iv=["condition","orderBy","withCursor"],jv=["fields"],Tv=["condition"],Uv=["condition","orderBy"],Nv=function(){function t(e,r,n){s(this,t),this.client=e,this.bulkRequestClient=r,this.guestSpaceId=n,this.didWarnMaximumOffsetValue=!1}var e,r,i,a,c,p,h,d,y,v,g,b,w,A,E,R,P,O;return f(t,[{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=u(o().mark((function t(e){var r,n,i,a,u,s,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.app,n=e.updateKey,i=e.record,t.next=3,this.getRecords({app:r,query:"".concat(n.field,' = "').concat(n.value,'"')});case 3:if(a=t.sent,!((u=a.records).length>0)){t.next=13;break}if("__ID__"!==u[0].$id.type){t.next=12;break}return t.next=9,this.updateRecord(e);case 9:return s=t.sent,c=s.revision,t.abrupt("return",{id:u[0].$id.value,revision:c});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({},i,l({},n.field,{value:n.value}))}));case 14:case"end":return t.stop()}}),t,this)}))),function(t){return O.apply(this,arguments)})},{key:"getRecords",value:(P=u(o().mark((function t(e){var r,n;return o().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 P.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:(R=u(o().mark((function t(e){var r,n,i,a;return o().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,i=n.ids,a=n.revisions,t.abrupt("return",{ids:i,revisions:a,records:i.map((function(t,e){return{id:t,revision:a[e]}}))});case 7:case"end":return t.stop()}}),t,this)}))),function(t){return R.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=u(o().mark((function t(e){var r,i,a,u,s,c,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.condition,i=e.orderBy,a=e.withCursor,u=void 0===a||a,s=m(e,Iv),i){t.next=3;break}return t.abrupt("return",this.getAllRecordsWithId(n(n({},s),{},{condition:r})));case 3:if(!u){t.next=7;break}return c=r?"".concat(r," "):"",f="".concat(c).concat(i?"order by ".concat(i):""),t.abrupt("return",this.getAllRecordsWithCursor(n(n({},s),{},{query:f})));case 7:return t.abrupt("return",this.getAllRecordsWithOffset(n(n({},s),{},{orderBy:i,condition:r})));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return E.apply(this,arguments)})},{key:"getAllRecordsWithId",value:(A=u(o().mark((function t(e){var r,i,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.fields,i=m(e,jv),(a=r)&&a.length>0&&-1===a.indexOf("$id")&&(a=[].concat(S(a),["$id"])),t.abrupt("return",this.getAllRecordsRecursiveWithId(n(n({},i),{},{fields:a}),"0",[]));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return A.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithId",value:(w=u(o().mark((function t(e,r,i){var a,u,s,c,f,l,p,h,d;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=500,u=e.condition,s=m(e,Tv),c=u?"(".concat(u,") and "):"",f="".concat(c,"$id > ").concat(r," order by $id asc limit ").concat(a),t.next=6,this.getRecords(n(n({},s),{},{query:f}));case 6:if(l=t.sent,p=i.concat(l.records),!(l.records.length<a)){t.next=10;break}return t.abrupt("return",p);case 10:if("__ID__"!==(h=l.records[l.records.length-1]).$id.type){t.next=14;break}return d=h.$id.value,t.abrupt("return",this.getAllRecordsRecursiveWithId(e,d,p));case 14: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 15:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return w.apply(this,arguments)})},{key:"getAllRecordsWithOffset",value:(b=u(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getAllRecordsRecursiveWithOffset(e,0,[]));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return b.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithOffset",value:(g=u(o().mark((function t(e,r,i){var a,u,s,c,f,l,p,h;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=500,u=e.condition,s=e.orderBy,c=m(e,Uv),f=u?"".concat(u," "):"",l="".concat(f).concat(s?"order by ".concat(s," "):"","limit ").concat(a," offset ").concat(r),t.next=6,this.getRecords(n(n({},c),{},{query:l}));case 6:if(p=t.sent,h=i.concat(p.records),!(p.records.length<a)){t.next=10;break}return t.abrupt("return",h);case 10:return t.abrupt("return",this.getAllRecordsRecursiveWithOffset(e,r+a,h));case 11:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return g.apply(this,arguments)})},{key:"getAllRecordsWithCursor",value:(v=u(o().mark((function t(e){var r,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.createCursor(e);case 2:return r=t.sent,n=r.id,t.prev=4,t.next=7,this.getAllRecordsRecursiveByCursor(n,[]);case 7:return t.abrupt("return",t.sent);case 10:return t.prev=10,t.t0=t.catch(4),t.next=14,this.deleteCursor({id:n});case 14:throw t.t0;case 15:case"end":return t.stop()}}),t,this,[[4,10]])}))),function(t){return v.apply(this,arguments)})},{key:"getAllRecordsRecursiveByCursor",value:(y=u(o().mark((function t(e,r){var n,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getRecordsByCursor({id:e});case 2:if(n=t.sent,i=r.concat(n.records),!n.next){t.next=6;break}return t.abrupt("return",this.getAllRecordsRecursiveByCursor(e,i));case 6:return t.abrupt("return",i);case 7:case"end":return t.stop()}}),t,this)}))),function(t,e){return y.apply(this,arguments)})},{key:"addAllRecords",value:(d=u(o().mark((function t(e){return o().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 d.apply(this,arguments)})},{key:"addAllRecordsRecursive",value:(h=u(o().mark((function t(e,r,n){var i,a,u,s,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,a=e.app,u=e.records,0!==(s=u.slice(0,i)).length){t.next=5;break}return t.abrupt("return",{records:n});case 5:return t.prev=5,t.next=8,this.addAllRecordsWithBulkRequest({app:a,records:s});case 8:c=t.sent,t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(5),new kv({records:n},u,r,t.t0,100);case 14:return t.abrupt("return",this.addAllRecordsRecursive({app:a,records:u.slice(i)},r,n.concat(c)));case 15:case"end":return t.stop()}}),t,this,[[5,11]])}))),function(t,e,r){return h.apply(this,arguments)})},{key:"addAllRecordsWithBulkRequest",value:(p=u(o().mark((function t(e){var r,n,i;return o().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 i=t.sent.results,t.abrupt("return",i.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 p.apply(this,arguments)})},{key:"updateAllRecords",value:(c=u(o().mark((function t(e){return o().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 c.apply(this,arguments)})},{key:"updateAllRecordsRecursive",value:(a=u(o().mark((function t(e,r,n){var i,a,u,s,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,a=e.app,u=e.records,0!==(s=u.slice(0,i)).length){t.next=5;break}return t.abrupt("return",{records:n});case 5:return t.prev=5,t.next=8,this.updateAllRecordsWithBulkRequest({app:a,records:s});case 8:c=t.sent,t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(5),new kv({records:n},u,r,t.t0,100);case 14:return t.abrupt("return",this.updateAllRecordsRecursive({app:a,records:u.slice(i)},r,n.concat(c)));case 15:case"end":return t.stop()}}),t,this,[[5,11]])}))),function(t,e,r){return a.apply(this,arguments)})},{key:"updateAllRecordsWithBulkRequest",value:(i=u(o().mark((function t(e){var r,n,i;return o().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,records:t}}})),t.next=4,this.bulkRequestClient.send({requests:n});case 4:return i=t.sent.results,t.abrupt("return",i.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 i.apply(this,arguments)})},{key:"deleteAllRecords",value:function(t){return this.deleteAllRecordsRecursive(t,t.records.length)}},{key:"deleteAllRecordsRecursive",value:(r=u(o().mark((function t(e,r){var n,i,a,u;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,i=e.app,a=e.records,0!==(u=a.slice(0,n)).length){t.next=5;break}return t.abrupt("return",{});case 5:return t.prev=5,t.next=8,this.deleteAllRecordsWithBulkRequest({app:i,records:u});case 8:t.next=13;break;case 10:throw t.prev=10,t.t0=t.catch(5),new kv({},a,r,t.t0,100);case 13:return t.abrupt("return",this.deleteAllRecordsRecursive({app:i,records:a.slice(n)},r));case 14:case"end":return t.stop()}}),t,this,[[5,10]])}))),function(t,e){return r.apply(this,arguments)})},{key:"deleteAllRecordsWithBulkRequest",value:(e=u(o().mark((function t(e){var r,n;return o().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 e.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(S(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)}},{key:"buildPathWithGuestSpaceId",value:function(t){return Td(n(n({},t),{},{guestSpaceId:this.guestSpaceId}))}}]),t}(),_v="object"==typeof self?self.FormData:window.FormData,Cv=function(){function t(e,r){s(this,t),this.client=e,this.guestSpaceId=r}var r;return f(t,[{key:"uploadFile",value:(r=u(o().mark((function t(r){var n,i,a,u,s,c,f,l;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.buildPathWithGuestSpaceId({endpointName:"file"}),i=new _v,!("path"in r.file)){t.next=19;break}return t.prev=3,t.next=6,e.readFileFromPath(r.file.path);case 6:a=t.sent,u=a.name,s=a.data,i.append("file",s,u),t.next=17;break;case 12:if(t.prev=12,t.t0=t.catch(3),!(t.t0 instanceof Fi)){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=21;break;case 19:c=r.file,f=c.name,l=c.data,i.append("file",e.buildFormDataValue(l),f);case 21:return t.abrupt("return",this.client.postData(n,i));case 22:case"end":return t.stop()}}),t,this,[[3,12]])}))),function(t){return r.apply(this,arguments)})},{key:"downloadFile",value:function(t){var e=this.buildPathWithGuestSpaceId({endpointName:"file"});return this.client.getData(e,t)}},{key:"buildPathWithGuestSpaceId",value:function(t){return Td(n(n({},t),{},{guestSpaceId:this.guestSpaceId}))}}]),t}(),Lv={exports:{}},Bv={exports:{}},Fv=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}},Dv=Fv,Mv=Object.prototype.toString,Wv=(xv=Object.create(null),function(t){var e=Mv.call(t);return xv[e]||(xv[e]=e.slice(8,-1).toLowerCase())});function qv(t){return t=t.toLowerCase(),function(e){return Wv(e)===t}}function Gv(t){return Array.isArray(t)}function Hv(t){return void 0===t}var zv=qv("ArrayBuffer");function Vv(t){return null!==t&&"object"==typeof t}function Yv(t){if("object"!==Wv(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var $v=qv("Date"),Jv=qv("File"),Qv=qv("Blob"),Kv=qv("FileList");function Xv(t){return"[object Function]"===Mv.call(t)}var Zv=qv("URLSearchParams");function tg(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),Gv(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}var eg=function(t){return function(e){return t&&e instanceof t}}("undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array)),rg={isArray:Gv,isArrayBuffer:zv,isBuffer:function(t){return null!==t&&!Hv(t)&&null!==t.constructor&&!Hv(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||Mv.call(t)===e||Xv(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&zv(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:Vv,isPlainObject:Yv,isUndefined:Hv,isDate:$v,isFile:Jv,isBlob:Qv,isFunction:Xv,isStream:function(t){return Vv(t)&&Xv(t.pipe)},isURLSearchParams:Zv,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:tg,merge:function t(){var e={};function r(r,n){Yv(e[n])&&Yv(r)?e[n]=t(e[n],r):Yv(r)?e[n]=t({},r):Gv(r)?e[n]=r.slice():e[n]=r}for(var n=0,o=arguments.length;n<o;n++)tg(arguments[n],r);return e},extend:function(t,e,r){return tg(e,(function(e,n){t[n]=r&&"function"==typeof e?Dv(e,r):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,r,n){t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,r&&Object.assign(t.prototype,r)},toFlatObject:function(t,e,r){var n,o,i,a={};e=e||{};do{for(o=(n=Object.getOwnPropertyNames(t)).length;o-- >0;)a[i=n[o]]||(e[i]=t[i],a[i]=!0);t=Object.getPrototypeOf(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:Wv,kindOfTest:qv,endsWith:function(t,e,r){t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;var n=t.indexOf(e,r);return-1!==n&&n===r},toArray:function(t){if(!t)return null;var e=t.length;if(Hv(e))return null;for(var r=new Array(e);e-- >0;)r[e]=t[e];return r},isTypedArray:eg,isFileList:Kv},ng=rg;function og(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var ig=function(t,e,r){if(!e)return t;var n;if(r)n=r(e);else if(ng.isURLSearchParams(e))n=e.toString();else{var o=[];ng.forEach(e,(function(t,e){null!=t&&(ng.isArray(t)?e+="[]":t=[t],ng.forEach(t,(function(t){ng.isDate(t)?t=t.toISOString():ng.isObject(t)&&(t=JSON.stringify(t)),o.push(og(e)+"="+og(t))})))})),n=o.join("&")}if(n){var i=t.indexOf("#");-1!==i&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t},ag=rg;function ug(){this.handlers=[]}ug.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},ug.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},ug.prototype.forEach=function(t){ag.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var sg=ug,cg="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function fg(){throw new Error("setTimeout has not been defined")}function lg(){throw new Error("clearTimeout has not been defined")}var pg=fg,hg=lg;function dg(t){if(pg===setTimeout)return setTimeout(t,0);if((pg===fg||!pg)&&setTimeout)return pg=setTimeout,setTimeout(t,0);try{return pg(t,0)}catch(e){try{return pg.call(null,t,0)}catch(e){return pg.call(this,t,0)}}}"function"==typeof cg.setTimeout&&(pg=setTimeout),"function"==typeof cg.clearTimeout&&(hg=clearTimeout);var yg,vg=[],gg=!1,mg=-1;function bg(){gg&&yg&&(gg=!1,yg.length?vg=yg.concat(vg):mg=-1,vg.length&&wg())}function wg(){if(!gg){var t=dg(bg);gg=!0;for(var e=vg.length;e;){for(yg=vg,vg=[];++mg<e;)yg&&yg[mg].run();mg=-1,e=vg.length}yg=null,gg=!1,function(t){if(hg===clearTimeout)return clearTimeout(t);if((hg===lg||!hg)&&clearTimeout)return hg=clearTimeout,clearTimeout(t);try{hg(t)}catch(e){try{return hg.call(null,t)}catch(e){return hg.call(this,t)}}}(t)}}function Ag(t,e){this.fun=t,this.array=e}Ag.prototype.run=function(){this.fun.apply(null,this.array)};function Sg(){}var Eg=Sg,Rg=Sg,Pg=Sg,Og=Sg,xg=Sg,kg=Sg,Ig=Sg;var jg=cg.performance||{},Tg=jg.now||jg.mozNow||jg.msNow||jg.oNow||jg.webkitNow||function(){return(new Date).getTime()};var Ug=new Date;var Ng,_g,Cg={nextTick: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];vg.push(new Ag(t,e)),1!==vg.length||gg||dg(wg)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Eg,addListener:Rg,once:Pg,off:Og,removeListener:xg,removeAllListeners:kg,emit:Ig,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*Tg.call(jg),r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r-=t[0],(n-=t[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Ug)/1e3}},Lg=rg;function Bg(){if(_g)return Ng;_g=1;var t=rg;function e(t,e,r,n,o){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}t.inherits(e,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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var r=e.prototype,n={};return["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"].forEach((function(t){n[t]={value:t}})),Object.defineProperties(e,n),Object.defineProperty(r,"isAxiosError",{value:!0}),e.from=function(n,o,i,a,u,s){var c=Object.create(r);return t.toFlatObject(n,c,(function(t){return t!==Error.prototype})),e.call(c,n.message,o,i,a,u),c.name=n.name,s&&Object.assign(c,s),c},Ng=e}var Fg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dg=[],Mg=[],Wg="undefined"!=typeof Uint8Array?Uint8Array:Array,qg=!1;function Gg(){qg=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)Dg[e]=t[e],Mg[t.charCodeAt(e)]=e;Mg["-".charCodeAt(0)]=62,Mg["_".charCodeAt(0)]=63}function Hg(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(Dg[(o=n)>>18&63]+Dg[o>>12&63]+Dg[o>>6&63]+Dg[63&o]);return i.join("")}function zg(t){var e;qg||Gg();for(var r=t.length,n=r%3,o="",i=[],a=16383,u=0,s=r-n;u<s;u+=a)i.push(Hg(t,u,u+a>s?s:u+a));return 1===n?(e=t[r-1],o+=Dg[e>>2],o+=Dg[e<<4&63],o+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],o+=Dg[e>>10],o+=Dg[e>>4&63],o+=Dg[e<<2&63],o+="="),i.push(o),i.join("")}function Vg(t,e,r,n,o){var i,a,u=8*o-n-1,s=(1<<u)-1,c=s>>1,f=-7,l=r?o-1:0,p=r?-1:1,h=t[e+l];for(l+=p,i=h&(1<<-f)-1,h>>=-f,f+=u;f>0;i=256*i+t[e+l],l+=p,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=256*a+t[e+l],l+=p,f-=8);if(0===i)i=1-c;else{if(i===s)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 Yg(t,e,r,n,o,i){var a,u,s,c=8*i-o-1,f=(1<<c)-1,l=f>>1,p=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?(u=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),(e+=a+l>=1?p/s:p*Math.pow(2,1-l))*s>=2&&(a++,s/=2),a+l>=f?(u=0,a=f):a+l>=1?(u=(e*s-1)*Math.pow(2,o),a+=l):(u=e*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;t[r+h]=255&u,h+=d,u/=256,o-=8);for(a=a<<o|u,c+=o;c>0;t[r+h]=255&a,h+=d,a/=256,c-=8);t[r+h-d]|=128*y}var $g={}.toString,Jg=Array.isArray||function(t){return"[object Array]"==$g.call(t)};function Qg(){return Xg.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Kg(t,e){if(Qg()<e)throw new RangeError("Invalid typed array length");return Xg.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=Xg.prototype:(null===t&&(t=new Xg(e)),t.length=e),t}function Xg(t,e,r){if(!(Xg.TYPED_ARRAY_SUPPORT||this instanceof Xg))return new Xg(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 em(this,t)}return Zg(this,t,e,r)}function Zg(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);Xg.TYPED_ARRAY_SUPPORT?(t=e).__proto__=Xg.prototype:t=rm(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!Xg.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|im(e,r),o=(t=Kg(t,n)).write(e,r);o!==n&&(t=t.slice(0,o));return t}(t,e,r):function(t,e){if(om(e)){var r=0|nm(e.length);return 0===(t=Kg(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?Kg(t,0):rm(t,e);if("Buffer"===e.type&&Jg(e.data))return rm(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function tm(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 em(t,e){if(tm(e),t=Kg(t,e<0?0:0|nm(e)),!Xg.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function rm(t,e){var r=e.length<0?0:0|nm(e.length);t=Kg(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function nm(t){if(t>=Qg())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Qg().toString(16)+" bytes");return 0|t}function om(t){return!(null==t||!t._isBuffer)}function im(t,e){if(om(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 Fm(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Dm(t).length;default:if(n)return Fm(t).length;e=(""+e).toLowerCase(),n=!0}}function am(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 Am(this,e,r);case"utf8":case"utf-8":return gm(this,e,r);case"ascii":return bm(this,e,r);case"latin1":case"binary":return wm(this,e,r);case"base64":return vm(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sm(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function um(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function sm(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=Xg.from(e,n)),om(e))return 0===e.length?-1:cm(t,e,r,n,o);if("number"==typeof e)return e&=255,Xg.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):cm(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function cm(t,e,r,n,o){var i,a=1,u=t.length,s=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,u/=2,s/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var f=-1;for(i=r;i<u;i++)if(c(t,i)===c(e,-1===f?0:i-f)){if(-1===f&&(f=i),i-f+1===s)return f*a}else-1!==f&&(i-=i-f),f=-1}else for(r+s>u&&(r=u-s),i=r;i>=0;i--){for(var l=!0,p=0;p<s;p++)if(c(t,i+p)!==c(e,p)){l=!1;break}if(l)return i}return-1}function fm(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 u=parseInt(e.substr(2*a,2),16);if(isNaN(u))return a;t[r+a]=u}return a}function lm(t,e,r,n){return Mm(Fm(e,t.length-r),t,r,n)}function pm(t,e,r,n){return Mm(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function hm(t,e,r,n){return pm(t,e,r,n)}function dm(t,e,r,n){return Mm(Dm(e),t,r,n)}function ym(t,e,r,n){return Mm(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 vm(t,e,r){return 0===e&&r===t.length?zg(t):zg(t.slice(e,r))}function gm(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,a,u,s,c=t[o],f=null,l=c>239?4:c>223?3:c>191?2:1;if(o+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128==(192&(i=t[o+1]))&&(s=(31&c)<<6|63&i)>127&&(f=s);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(s=(15&c)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(f=s);break;case 4:i=t[o+1],a=t[o+2],u=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&u)&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&u)>65535&&s<1114112&&(f=s)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),o+=l}return function(t){var e=t.length;if(e<=mm)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=mm));return r}(n)}Xg.TYPED_ARRAY_SUPPORT=void 0===cg.TYPED_ARRAY_SUPPORT||cg.TYPED_ARRAY_SUPPORT,Qg(),Xg.poolSize=8192,Xg._augment=function(t){return t.__proto__=Xg.prototype,t},Xg.from=function(t,e,r){return Zg(null,t,e,r)},Xg.TYPED_ARRAY_SUPPORT&&(Xg.prototype.__proto__=Uint8Array.prototype,Xg.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Xg[Symbol.species]),Xg.alloc=function(t,e,r){return function(t,e,r,n){return tm(e),e<=0?Kg(t,e):void 0!==r?"string"==typeof n?Kg(t,e).fill(r,n):Kg(t,e).fill(r):Kg(t,e)}(null,t,e,r)},Xg.allocUnsafe=function(t){return em(null,t)},Xg.allocUnsafeSlow=function(t){return em(null,t)},Xg.isBuffer=function(t){return null!=t&&(!!t._isBuffer||Wm(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&Wm(t.slice(0,0))}(t))},Xg.compare=function(t,e){if(!om(t)||!om(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},Xg.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}},Xg.concat=function(t,e){if(!Jg(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return Xg.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=Xg.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var i=t[r];if(!om(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},Xg.byteLength=im,Xg.prototype._isBuffer=!0,Xg.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)um(this,e,e+1);return this},Xg.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)um(this,e,e+3),um(this,e+1,e+2);return this},Xg.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)um(this,e,e+7),um(this,e+1,e+6),um(this,e+2,e+5),um(this,e+3,e+4);return this},Xg.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?gm(this,0,t):am.apply(this,arguments)},Xg.prototype.equals=function(t){if(!om(t))throw new TypeError("Argument must be a Buffer");return this===t||0===Xg.compare(this,t)},Xg.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+">"},Xg.prototype.compare=function(t,e,r,n,o){if(!om(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),u=Math.min(i,a),s=this.slice(n,o),c=t.slice(e,r),f=0;f<u;++f)if(s[f]!==c[f]){i=s[f],a=c[f];break}return i<a?-1:a<i?1:0},Xg.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},Xg.prototype.indexOf=function(t,e,r){return sm(this,t,e,r,!0)},Xg.prototype.lastIndexOf=function(t,e,r){return sm(this,t,e,r,!1)},Xg.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 fm(this,t,e,r);case"utf8":case"utf-8":return lm(this,t,e,r);case"ascii":return pm(this,t,e,r);case"latin1":case"binary":return hm(this,t,e,r);case"base64":return dm(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ym(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},Xg.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var mm=4096;function bm(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 wm(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 Am(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+=Bm(t[i]);return o}function Sm(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 Em(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 Rm(t,e,r,n,o,i){if(!om(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 Pm(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 Om(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 xm(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 km(t,e,r,n,o){return o||xm(t,0,r,4),Yg(t,e,r,n,23,4),r+4}function Im(t,e,r,n,o){return o||xm(t,0,r,8),Yg(t,e,r,n,52,8),r+8}Xg.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),Xg.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=Xg.prototype;else{var o=e-t;r=new Xg(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},Xg.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||Em(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},Xg.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||Em(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},Xg.prototype.readUInt8=function(t,e){return e||Em(t,1,this.length),this[t]},Xg.prototype.readUInt16LE=function(t,e){return e||Em(t,2,this.length),this[t]|this[t+1]<<8},Xg.prototype.readUInt16BE=function(t,e){return e||Em(t,2,this.length),this[t]<<8|this[t+1]},Xg.prototype.readUInt32LE=function(t,e){return e||Em(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Xg.prototype.readUInt32BE=function(t,e){return e||Em(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Xg.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||Em(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},Xg.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||Em(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},Xg.prototype.readInt8=function(t,e){return e||Em(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Xg.prototype.readInt16LE=function(t,e){e||Em(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},Xg.prototype.readInt16BE=function(t,e){e||Em(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},Xg.prototype.readInt32LE=function(t,e){return e||Em(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Xg.prototype.readInt32BE=function(t,e){return e||Em(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Xg.prototype.readFloatLE=function(t,e){return e||Em(t,4,this.length),Vg(this,t,!0,23,4)},Xg.prototype.readFloatBE=function(t,e){return e||Em(t,4,this.length),Vg(this,t,!1,23,4)},Xg.prototype.readDoubleLE=function(t,e){return e||Em(t,8,this.length),Vg(this,t,!0,52,8)},Xg.prototype.readDoubleBE=function(t,e){return e||Em(t,8,this.length),Vg(this,t,!1,52,8)},Xg.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||Rm(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},Xg.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||Rm(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},Xg.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||Rm(this,t,e,1,255,0),Xg.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},Xg.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||Rm(this,t,e,2,65535,0),Xg.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Pm(this,t,e,!0),e+2},Xg.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||Rm(this,t,e,2,65535,0),Xg.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Pm(this,t,e,!1),e+2},Xg.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||Rm(this,t,e,4,4294967295,0),Xg.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):Om(this,t,e,!0),e+4},Xg.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||Rm(this,t,e,4,4294967295,0),Xg.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Om(this,t,e,!1),e+4},Xg.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);Rm(this,t,e,r,o-1,-o)}var i=0,a=1,u=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===u&&0!==this[e+i-1]&&(u=1),this[e+i]=(t/a>>0)-u&255;return e+r},Xg.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);Rm(this,t,e,r,o-1,-o)}var i=r-1,a=1,u=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===u&&0!==this[e+i+1]&&(u=1),this[e+i]=(t/a>>0)-u&255;return e+r},Xg.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||Rm(this,t,e,1,127,-128),Xg.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},Xg.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||Rm(this,t,e,2,32767,-32768),Xg.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Pm(this,t,e,!0),e+2},Xg.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||Rm(this,t,e,2,32767,-32768),Xg.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Pm(this,t,e,!1),e+2},Xg.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||Rm(this,t,e,4,2147483647,-2147483648),Xg.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Om(this,t,e,!0),e+4},Xg.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||Rm(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Xg.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Om(this,t,e,!1),e+4},Xg.prototype.writeFloatLE=function(t,e,r){return km(this,t,e,!0,r)},Xg.prototype.writeFloatBE=function(t,e,r){return km(this,t,e,!1,r)},Xg.prototype.writeDoubleLE=function(t,e,r){return Im(this,t,e,!0,r)},Xg.prototype.writeDoubleBE=function(t,e,r){return Im(this,t,e,!1,r)},Xg.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||!Xg.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},Xg.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&&!Xg.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=om(t)?t:Fm(new Xg(t,n).toString()),u=a.length;for(i=0;i<r-e;++i)this[i+e]=a[i%u]}return this};var jm,Tm,Um,Nm,_m,Cm,Lm=/[^+\/0-9A-Za-z-_]/g;function Bm(t){return t<16?"0"+t.toString(16):t.toString(16)}function Fm(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 Dm(t){return function(t){var e,r,n,o,i,a;qg||Gg();var u=t.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===t[u-2]?2:"="===t[u-1]?1:0,a=new Wg(3*u/4-i),n=i>0?u-4:u;var s=0;for(e=0,r=0;e<n;e+=4,r+=3)o=Mg[t.charCodeAt(e)]<<18|Mg[t.charCodeAt(e+1)]<<12|Mg[t.charCodeAt(e+2)]<<6|Mg[t.charCodeAt(e+3)],a[s++]=o>>16&255,a[s++]=o>>8&255,a[s++]=255&o;return 2===i?(o=Mg[t.charCodeAt(e)]<<2|Mg[t.charCodeAt(e+1)]>>4,a[s++]=255&o):1===i&&(o=Mg[t.charCodeAt(e)]<<10|Mg[t.charCodeAt(e+1)]<<4|Mg[t.charCodeAt(e+2)]>>2,a[s++]=o>>8&255,a[s++]=255&o),a}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(Lm,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Mm(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 Wm(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function qm(){if(Tm)return jm;Tm=1;var t=rg;return jm=function(e,r){r=r||new FormData;var n=[];function o(e){return null===e?"":t.isDate(e)?e.toISOString():t.isArrayBuffer(e)||t.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Xg.from(e):e}return function e(i,a){if(t.isPlainObject(i)||t.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+a);n.push(i),t.forEach(i,(function(n,i){if(!t.isUndefined(n)){var u,s=a?a+"."+i:i;if(n&&!a&&"object"==typeof n)if(t.endsWith(i,"{}"))n=JSON.stringify(n);else if(t.endsWith(i,"[]")&&(u=t.toArray(n)))return void u.forEach((function(e){!t.isUndefined(e)&&r.append(s,o(e))}));e(n,s)}})),n.pop()}else r.append(a,o(i))}(e),r}}function Gm(){if(Nm)return Um;Nm=1;var t=Bg();return Um=function(e,r,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?r(new t("Request failed with status code "+n.status,[t.ERR_BAD_REQUEST,t.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}}function Hm(){if(Cm)return _m;Cm=1;var t=rg;return _m=t.isStandardBrowserEnv()?{write:function(e,r,n,o,i,a){var u=[];u.push(e+"="+encodeURIComponent(r)),t.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),t.isString(o)&&u.push("path="+o),t.isString(i)&&u.push("domain="+i),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}}var zm,Vm,Ym,$m,Jm,Qm,Km,Xm,Zm,tb,eb,rb,nb=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},ob=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t},ib=function(t,e){return t&&!nb(e)?ob(t,e):e};function ab(){if(Vm)return zm;Vm=1;var t=rg,e=["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"];return zm=function(r){var n,o,i,a={};return r?(t.forEach(r.split("\n"),(function(r){if(i=r.indexOf(":"),n=t.trim(r.substr(0,i)).toLowerCase(),o=t.trim(r.substr(i+1)),n){if(a[n]&&e.indexOf(n)>=0)return;a[n]="set-cookie"===n?(a[n]?a[n]:[]).concat([o]):a[n]?a[n]+", "+o:o}})),a):a}}function ub(){if($m)return Ym;$m=1;var t=rg;return Ym=t.isStandardBrowserEnv()?function(){var e,r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var e=t;return r&&(n.setAttribute("href",e),e=n.href),n.setAttribute("href",e),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(r){var n=t.isString(r)?o(r):r;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}}function sb(){if(Qm)return Jm;Qm=1;var t=Bg();function e(e){t.call(this,null==e?"canceled":e,t.ERR_CANCELED),this.name="CanceledError"}return rg.inherits(e,t,{__CANCEL__:!0}),Jm=e}function cb(){return Xm?Km:(Xm=1,Km=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""})}function fb(){if(tb)return Zm;tb=1;var t=rg,e=Gm(),r=Hm(),n=ig,o=ib,i=ab(),a=ub(),u=Fg,s=Bg(),c=sb(),f=cb();return Zm=function(l){return new Promise((function(p,h){var d,y=l.data,v=l.headers,g=l.responseType;function m(){l.cancelToken&&l.cancelToken.unsubscribe(d),l.signal&&l.signal.removeEventListener("abort",d)}t.isFormData(y)&&t.isStandardBrowserEnv()&&delete v["Content-Type"];var b=new XMLHttpRequest;if(l.auth){var w=l.auth.username||"",A=l.auth.password?unescape(encodeURIComponent(l.auth.password)):"";v.Authorization="Basic "+btoa(w+":"+A)}var S=o(l.baseURL,l.url);function E(){if(b){var t="getAllResponseHeaders"in b?i(b.getAllResponseHeaders()):null,r={data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:t,config:l,request:b};e((function(t){p(t),m()}),(function(t){h(t),m()}),r),b=null}}if(b.open(l.method.toUpperCase(),n(S,l.params,l.paramsSerializer),!0),b.timeout=l.timeout,"onloadend"in b?b.onloadend=E:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(E)},b.onabort=function(){b&&(h(new s("Request aborted",s.ECONNABORTED,l,b)),b=null)},b.onerror=function(){h(new s("Network Error",s.ERR_NETWORK,l,b,b)),b=null},b.ontimeout=function(){var t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",e=l.transitional||u;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),h(new s(t,e.clarifyTimeoutError?s.ETIMEDOUT:s.ECONNABORTED,l,b)),b=null},t.isStandardBrowserEnv()){var R=(l.withCredentials||a(S))&&l.xsrfCookieName?r.read(l.xsrfCookieName):void 0;R&&(v[l.xsrfHeaderName]=R)}"setRequestHeader"in b&&t.forEach(v,(function(t,e){void 0===y&&"content-type"===e.toLowerCase()?delete v[e]:b.setRequestHeader(e,t)})),t.isUndefined(l.withCredentials)||(b.withCredentials=!!l.withCredentials),g&&"json"!==g&&(b.responseType=l.responseType),"function"==typeof l.onDownloadProgress&&b.addEventListener("progress",l.onDownloadProgress),"function"==typeof l.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",l.onUploadProgress),(l.cancelToken||l.signal)&&(d=function(t){b&&(h(!t||t&&t.type?new c:t),b.abort(),b=null)},l.cancelToken&&l.cancelToken.subscribe(d),l.signal&&(l.signal.aborted?d():l.signal.addEventListener("abort",d))),y||(y=null);var P=f(S);P&&-1===["http","https","file"].indexOf(P)?h(new s("Unsupported protocol "+P+":",s.ERR_BAD_REQUEST,l)):b.send(y)}))}}var lb=rg,pb=function(t,e){Lg.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))},hb=Bg(),db=Fg,yb=qm(),vb={"Content-Type":"application/x-www-form-urlencoded"};function gb(t,e){!lb.isUndefined(t)&&lb.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var mb,bb={transitional:db,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==Cg&&"[object process]"===Object.prototype.toString.call(Cg))&&(mb=fb()),mb),transformRequest:[function(t,e){if(pb(e,"Accept"),pb(e,"Content-Type"),lb.isFormData(t)||lb.isArrayBuffer(t)||lb.isBuffer(t)||lb.isStream(t)||lb.isFile(t)||lb.isBlob(t))return t;if(lb.isArrayBufferView(t))return t.buffer;if(lb.isURLSearchParams(t))return gb(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r,n=lb.isObject(t),o=e&&e["Content-Type"];if((r=lb.isFileList(t))||n&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return yb(r?{"files[]":t}:t,i&&new i)}return n||"application/json"===o?(gb(e,"application/json"),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){var e=this.transitional||bb.transitional,r=e&&e.silentJSONParsing,n=e&&e.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&lb.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(o){if("SyntaxError"===t.name)throw hb.from(t,hb.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:rb?eb:(rb=1,eb=null)},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};lb.forEach(["delete","get","head"],(function(t){bb.headers[t]={}})),lb.forEach(["post","put","patch"],(function(t){bb.headers[t]=lb.merge(vb)}));var wb,Ab,Sb=bb,Eb=rg,Rb=Sb;function Pb(){return Ab?wb:(Ab=1,wb=function(t){return!(!t||!t.__CANCEL__)})}var Ob=rg,xb=function(t,e,r){var n=this||Rb;return Eb.forEach(r,(function(r){t=r.call(n,t,e)})),t},kb=Pb(),Ib=Sb,jb=sb();function Tb(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new jb}var Ub,Nb,_b=rg,Cb=function(t,e){e=e||{};var r={};function n(t,e){return _b.isPlainObject(t)&&_b.isPlainObject(e)?_b.merge(t,e):_b.isPlainObject(e)?_b.merge({},e):_b.isArray(e)?e.slice():e}function o(r){return _b.isUndefined(e[r])?_b.isUndefined(t[r])?void 0:n(void 0,t[r]):n(t[r],e[r])}function i(t){if(!_b.isUndefined(e[t]))return n(void 0,e[t])}function a(r){return _b.isUndefined(e[r])?_b.isUndefined(t[r])?void 0:n(void 0,t[r]):n(void 0,e[r])}function u(r){return r in e?n(t[r],e[r]):r in t?n(void 0,t[r]):void 0}var s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return _b.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=s[t]||o,n=e(t);_b.isUndefined(n)&&e!==u||(r[t]=n)})),r};function Lb(){return Nb?Ub:(Nb=1,Ub={version:"0.27.2"})}var Bb=Lb().version,Fb=Bg(),Db={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){Db[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var Mb={};Db.transitional=function(t,e,r){function n(t,e){return"[Axios v"+Bb+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,o,i){if(!1===t)throw new Fb(n(o," has been removed"+(e?" in "+e:"")),Fb.ERR_DEPRECATED);return e&&!Mb[o]&&(Mb[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)}};var Wb,qb,Gb,Hb,zb,Vb,Yb=rg,$b=ig,Jb=sg,Qb=function(t){return Tb(t),t.headers=t.headers||{},t.data=xb.call(t,t.data,t.headers,t.transformRequest),t.headers=Ob.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Ob.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||Ib.adapter)(t).then((function(e){return Tb(t),e.data=xb.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return kb(e)||(Tb(t),e&&e.response&&(e.response.data=xb.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},Kb=Cb,Xb=ib,Zb={assertOptions:function(t,e,r){if("object"!=typeof t)throw new Fb("options must be an object",Fb.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(t),o=n.length;o-- >0;){var i=n[o],a=e[i];if(a){var u=t[i],s=void 0===u||a(u,i,t);if(!0!==s)throw new Fb("option "+i+" must be "+s,Fb.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Fb("Unknown option "+i,Fb.ERR_BAD_OPTION)}},validators:Db},tw=Zb.validators;function ew(t){this.defaults=t,this.interceptors={request:new Jb,response:new Jb}}ew.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=Kb(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;void 0!==r&&Zb.assertOptions(r,{silentJSONParsing:tw.transitional(tw.boolean),forcedJSONParsing:tw.transitional(tw.boolean),clarifyTimeoutError:tw.transitional(tw.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(o=o&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(t){a.push(t.fulfilled,t.rejected)})),!o){var u=[Qb,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(a),i=Promise.resolve(e);u.length;)i=i.then(u.shift(),u.shift());return i}for(var s=e;n.length;){var c=n.shift(),f=n.shift();try{s=c(s)}catch(t){f(t);break}}try{i=Qb(s)}catch(t){return Promise.reject(t)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},ew.prototype.getUri=function(t){t=Kb(this.defaults,t);var e=Xb(t.baseURL,t.url);return $b(e,t.params,t.paramsSerializer)},Yb.forEach(["delete","get","head","options"],(function(t){ew.prototype[t]=function(e,r){return this.request(Kb(r||{},{method:t,url:e,data:(r||{}).data}))}})),Yb.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(Kb(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ew.prototype[t]=e(),ew.prototype[t+"Form"]=e(!0)}));var rw=rg,nw=Fv,ow=ew,iw=Cb;var aw=function t(e){var r=new ow(e),n=nw(ow.prototype.request,r);return rw.extend(n,ow.prototype,r),rw.extend(n,r),n.create=function(r){return t(iw(e,r))},n}(Sb);aw.Axios=ow,aw.CanceledError=sb(),aw.CancelToken=function(){if(qb)return Wb;qb=1;var t=sb();function e(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var r;this.promise=new Promise((function(t){r=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e<r;e++)n._listeners[e](t);n._listeners=null}})),this.promise.then=function(t){var e,r=new Promise((function(t){n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},e((function(e){n.reason||(n.reason=new t(e),r(n.reason))}))}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},e.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},e.source=function(){var t;return{token:new e((function(e){t=e})),cancel:t}},Wb=e}(),aw.isCancel=Pb(),aw.VERSION=Lb().version,aw.toFormData=qm(),aw.AxiosError=Bg(),aw.Cancel=aw.CanceledError,aw.all=function(t){return Promise.all(t)},aw.spread=Hb?Gb:(Hb=1,Gb=function(t){return function(e){return t.apply(null,e)}}),aw.isAxiosError=function(){if(Vb)return zb;Vb=1;var t=rg;return zb=function(e){return t.isObject(e)&&!0===e.isAxiosError}}(),Bv.exports=aw,Bv.exports.default=aw,function(t){t.exports=Bv.exports}(Lv);var uw=P(Lv.exports),sw=function(){function t(e){var r=e.responseHandler,n=e.requestConfigBuilder;s(this,t),this.responseHandler=r,this.requestConfigBuilder=n}var e,r,i,a,c,l;return f(t,[{key:"get",value:(l=u(o().mark((function t(e,r){var n;return o().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 l.apply(this,arguments)})},{key:"getData",value:(c=u(o().mark((function t(e,r){var n;return o().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 c.apply(this,arguments)})},{key:"post",value:(a=u(o().mark((function t(e,r){var n;return o().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 a.apply(this,arguments)})},{key:"postData",value:(i=u(o().mark((function t(e,r){var n;return o().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 i.apply(this,arguments)})},{key:"put",value:(r=u(o().mark((function t(e,r){var n;return o().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,e){return r.apply(this,arguments)})},{key:"delete",value:(e=u(o().mark((function t(e,r){var n;return o().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(t,r){return e.apply(this,arguments)})},{key:"sendRequest",value:function(t){return this.responseHandler.handle(uw(n(n({},t),{},{maxBodyLength:1/0,maxContentLength:1/0})))}}]),t}(),cw=wo,fw=nt,lw=st,pw=zy,hw=$([].join),dw=fw!=Object,yw=pw("join",",");cw({target:"Array",proto:!0,forced:dw||!yw},{join:function(t){return hw(lw(this),void 0===t?",":t)}});var vw,gw=R.Symbol,mw=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(e 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 n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0},bw=function(){return"function"==typeof gw&&("function"==typeof Symbol&&("symbol"==typeof gw("foo")&&("symbol"==typeof Symbol("bar")&&mw())))},ww="Function.prototype.bind called on incompatible ",Aw=Array.prototype.slice,Sw=Object.prototype.toString,Ew="[object Function]",Rw=function(t){var e=this;if("function"!=typeof e||Sw.call(e)!==Ew)throw new TypeError(ww+e);for(var r,n=Aw.call(arguments,1),o=function(){if(this instanceof r){var o=e.apply(this,n.concat(Aw.call(arguments)));return Object(o)===o?o:this}return e.apply(t,n.concat(Aw.call(arguments)))},i=Math.max(0,e.length-n.length),a=[],u=0;u<i;u++)a.push("$"+u);if(r=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(o),e.prototype){var s=function(){};s.prototype=e.prototype,r.prototype=new s,s.prototype=null}return r},Pw=Function.prototype.bind||Rw,Ow=Pw.call(Function.call,Object.prototype.hasOwnProperty),xw=SyntaxError,kw=Function,Iw=TypeError,jw=function(t){try{return kw('"use strict"; return ('+t+").constructor;")()}catch(t){}},Tw=Object.getOwnPropertyDescriptor;if(Tw)try{Tw({},"")}catch(t){Tw=null}var Uw,Nw=function(){throw new Iw},_w=Tw?function(){try{return Nw}catch(t){try{return Tw(arguments,"callee").get}catch(t){return Nw}}}():Nw,Cw=bw(),Lw=Object.getPrototypeOf||function(t){return t.__proto__},Bw={},Fw="undefined"==typeof Uint8Array?vw:Lw(Uint8Array),Dw={"%AggregateError%":"undefined"==typeof AggregateError?vw:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?vw:ArrayBuffer,"%ArrayIteratorPrototype%":Cw?Lw([][Symbol.iterator]()):vw,"%AsyncFromSyncIteratorPrototype%":vw,"%AsyncFunction%":Bw,"%AsyncGenerator%":Bw,"%AsyncGeneratorFunction%":Bw,"%AsyncIteratorPrototype%":Bw,"%Atomics%":"undefined"==typeof Atomics?vw:Atomics,"%BigInt%":"undefined"==typeof BigInt?vw:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?vw:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?vw:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?vw:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?vw:FinalizationRegistry,"%Function%":kw,"%GeneratorFunction%":Bw,"%Int8Array%":"undefined"==typeof Int8Array?vw:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?vw:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?vw:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Cw?Lw(Lw([][Symbol.iterator]())):vw,"%JSON%":"object"==typeof JSON?JSON:vw,"%Map%":"undefined"==typeof Map?vw:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Cw?Lw((new Map)[Symbol.iterator]()):vw,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?vw:Promise,"%Proxy%":"undefined"==typeof Proxy?vw:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?vw:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?vw:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Cw?Lw((new Set)[Symbol.iterator]()):vw,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?vw:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Cw?Lw(""[Symbol.iterator]()):vw,"%Symbol%":Cw?Symbol:vw,"%SyntaxError%":xw,"%ThrowTypeError%":_w,"%TypedArray%":Fw,"%TypeError%":Iw,"%Uint8Array%":"undefined"==typeof Uint8Array?vw:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?vw:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?vw:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?vw:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?vw:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?vw:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?vw:WeakSet},Mw=function t(e){var r;if("%AsyncFunction%"===e)r=jw("async function () {}");else if("%GeneratorFunction%"===e)r=jw("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=jw("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(r=Lw(o.prototype))}return Dw[e]=r,r},Ww={"%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"]},qw=Pw,Gw=Ow,Hw=qw.call(Function.call,Array.prototype.concat),zw=qw.call(Function.apply,Array.prototype.splice),Vw=qw.call(Function.call,String.prototype.replace),Yw=qw.call(Function.call,String.prototype.slice),$w=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Jw=/\\(\\)?/g,Qw=function(t){var e=Yw(t,0,1),r=Yw(t,-1);if("%"===e&&"%"!==r)throw new xw("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new xw("invalid intrinsic syntax, expected opening `%`");var n=[];return Vw(t,$w,(function(t,e,r,o){n[n.length]=r?Vw(o,Jw,"$1"):e||t})),n},Kw=function(t,e){var r,n=t;if(Gw(Ww,n)&&(n="%"+(r=Ww[n])[0]+"%"),Gw(Dw,n)){var o=Dw[n];if(o===Bw&&(o=Mw(n)),void 0===o&&!e)throw new Iw("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new xw("intrinsic "+t+" does not exist!")},Xw=SyntaxError,Zw=Function,tA=TypeError,eA=function(t){try{return Function('"use strict"; return ('+t+").constructor;")()}catch(t){}},rA=Object.getOwnPropertyDescriptor;if(rA)try{rA({},"")}catch(t){rA=null}var nA=function(){throw new tA},oA=rA?function(){try{return nA}catch(t){try{return rA(arguments,"callee").get}catch(t){return nA}}}():nA,iA=bw(),aA=Object.getPrototypeOf||function(t){return t.__proto__},uA=eA("async function* () {}"),sA=uA?uA.prototype:Uw,cA=sA?sA.prototype:Uw,fA="undefined"==typeof Uint8Array?Uw:aA(Uint8Array),lA={"%AggregateError%":"undefined"==typeof AggregateError?Uw:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Uw:ArrayBuffer,"%ArrayIteratorPrototype%":iA?aA([][Symbol.iterator]()):Uw,"%AsyncFromSyncIteratorPrototype%":Uw,"%AsyncFunction%":eA("async function () {}"),"%AsyncGenerator%":sA,"%AsyncGeneratorFunction%":uA,"%AsyncIteratorPrototype%":cA?aA(cA):Uw,"%Atomics%":"undefined"==typeof Atomics?Uw:Atomics,"%BigInt%":"undefined"==typeof BigInt?Uw:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Uw:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?Uw:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Uw:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Uw:FinalizationRegistry,"%Function%":Zw,"%GeneratorFunction%":eA("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?Uw:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Uw:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Uw:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":iA?aA(aA([][Symbol.iterator]())):Uw,"%JSON%":"object"==typeof JSON?JSON:Uw,"%Map%":"undefined"==typeof Map?Uw:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&iA?aA((new Map)[Symbol.iterator]()):Uw,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Uw:Promise,"%Proxy%":"undefined"==typeof Proxy?Uw:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?Uw:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Uw:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&iA?aA((new Set)[Symbol.iterator]()):Uw,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Uw:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":iA?aA(""[Symbol.iterator]()):Uw,"%Symbol%":iA?Symbol:Uw,"%SyntaxError%":Xw,"%ThrowTypeError%":oA,"%TypedArray%":fA,"%TypeError%":tA,"%Uint8Array%":"undefined"==typeof Uint8Array?Uw:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Uw:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Uw:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Uw:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?Uw:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Uw:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Uw:WeakSet},pA={"%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=Pw,dA=Ow,yA=hA.call(Function.call,Array.prototype.concat),vA=hA.call(Function.apply,Array.prototype.splice),gA=hA.call(Function.call,String.prototype.replace),mA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,bA=/\\(\\)?/g,wA=function(t){var e=[];return gA(t,mA,(function(t,r,n,o){e[e.length]=n?gA(o,bA,"$1"):r||t})),e},AA=function(t,e){var r,n=t;if(dA(pA,n)&&(n="%"+(r=pA[n])[0]+"%"),dA(lA,n)){var o=lA[n];if(void 0===o&&!e)throw new tA("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Xw("intrinsic "+t+" does not exist!")},SA=function(t,e){if("string"!=typeof t||0===t.length)throw new tA("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new tA('"allowMissing" argument must be a boolean');var r=wA(t),n=r.length>0?r[0]:"",o=AA("%"+n+"%",e),i=o.name,a=o.value,u=!1,s=o.alias;s&&(n=s[0],vA(r,yA([0,1],s)));for(var c=1,f=!0;c<r.length;c+=1){var l=r[c];if("constructor"!==l&&f||(u=!0),dA(lA,i="%"+(n+="."+l)+"%"))a=lA[i];else if(null!=a){if(rA&&c+1>=r.length){var p=rA(a,l);if(f=!!p,!e&&!(l in a))throw new tA("base intrinsic for "+t+" exists, but the property is not available.");a=f&&"get"in p&&!("originalValue"in p.get)?p.get:a[l]}else f=dA(a,l),a=a[l];f&&!u&&(lA[i]=a)}}return a},EA={exports:{}};!function(t){var e=Pw,r=SA,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||e.call(o,n),a=r("%Object.defineProperty%",!0);if(a)try{a({},"a",{value:1})}catch(t){a=null}t.exports=function(){return i(e,o,arguments)};var u=function(){return i(e,n,arguments)};a?a(t.exports,"apply",{value:u}):t.exports.apply=u}(EA);var RA=SA,PA=EA.exports,OA=PA(RA("String.prototype.indexOf")),xA=O(Object.freeze({__proto__:null,default:{}})),kA="function"==typeof Map&&Map.prototype,IA=Object.getOwnPropertyDescriptor&&kA?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,jA=kA&&IA&&"function"==typeof IA.get?IA.get:null,TA=kA&&Map.prototype.forEach,UA="function"==typeof Set&&Set.prototype,NA=Object.getOwnPropertyDescriptor&&UA?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,_A=UA&&NA&&"function"==typeof NA.get?NA.get:null,CA=UA&&Set.prototype.forEach,LA="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,BA="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,FA=Boolean.prototype.valueOf,DA=Object.prototype.toString,MA=Function.prototype.toString,WA=String.prototype.match,qA="function"==typeof BigInt?BigInt.prototype.valueOf:null,GA=Object.getOwnPropertySymbols,HA="function"==typeof Symbol?Symbol.prototype.toString:null,zA=Object.prototype.propertyIsEnumerable,VA=xA.custom,YA=VA&&KA(VA)?VA:null;function $A(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function JA(t){return String(t).replace(/"/g,""")}function QA(t){return"[object Array]"===tS(t)}function KA(t){return"[object Symbol]"===tS(t)}var XA=Object.prototype.hasOwnProperty||function(t){return t in this};function ZA(t,e){return XA.call(t,e)}function tS(t){return DA.call(t)}function eS(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 rS(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return rS(t.slice(0,e.maxStringLength),e)+n}return $A(t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,nS),"single",e)}function nS(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":"")+e.toString(16).toUpperCase()}function oS(t){return"Object("+t+")"}function iS(t){return t+" { ? }"}function aS(t,e,r,n){return t+" ("+e+") {"+(n?uS(r,n):r.join(", "))+"}"}function uS(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+t.join(","+r)+"\n"+e.prev}function sS(t,e){var r=QA(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=ZA(t,o)?e(t[o],t):""}for(var i in t)ZA(t,i)&&(r&&String(Number(i))===i&&i<t.length||(/[^\w$]/.test(i)?n.push(e(i,t)+": "+e(t[i],t)):n.push(i+": "+e(t[i],t))));if("function"==typeof GA)for(var a=GA(t),u=0;u<a.length;u++)zA.call(t,a[u])&&n.push("["+e(a[u])+"]: "+e(t[a[u]],t));return n}var cS=function(t,e){if("string"!=typeof t||0===t.length)throw new Iw("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new Iw('"allowMissing" argument must be a boolean');var r=Qw(t),n=r.length>0?r[0]:"",o=Kw("%"+n+"%",e),i=o.name,a=o.value,u=!1,s=o.alias;s&&(n=s[0],zw(r,Hw([0,1],s)));for(var c=1,f=!0;c<r.length;c+=1){var l=r[c],p=Yw(l,0,1),h=Yw(l,-1);if(('"'===p||"'"===p||"`"===p||'"'===h||"'"===h||"`"===h)&&p!==h)throw new xw("property names with quotes must have matching quotes");if("constructor"!==l&&f||(u=!0),Gw(Dw,i="%"+(n+="."+l)+"%"))a=Dw[i];else if(null!=a){if(!(l in a)){if(!e)throw new Iw("base intrinsic for "+t+" exists, but the property is not available.");return}if(Tw&&c+1>=r.length){var d=Tw(a,l);a=(f=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[l]}else f=Gw(a,l),a=a[l];f&&!u&&(Dw[i]=a)}}return a},fS=function(t,e){var r=RA(t,!!e);return"function"==typeof r&&OA(t,".prototype.")>-1?PA(r):r},lS=function t(e,r,n,o){var i=r||{};if(ZA(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ZA(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=!ZA(i,"customInspect")||i.customInspect;if("boolean"!=typeof a)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(ZA(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return rS(e,i);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var u=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=u&&u>0&&"object"==typeof e)return QA(e)?"[Array]":"[Object]";var s=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=Array(t.indent+1).join(" ")}return{base:r,prev:Array(e+1).join(r)}}(i,n);if(void 0===o)o=[];else if(eS(o,e)>=0)return"[Circular]";function c(e,r,a){if(r&&(o=o.slice()).push(r),a){var u={depth:i.depth};return ZA(i,"quoteStyle")&&(u.quoteStyle=i.quoteStyle),t(e,u,n+1,o)}return t(e,i,n+1,o)}if("function"==typeof e){var f=function(t){if(t.name)return t.name;var e=WA.call(MA.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),l=sS(e,c);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(l.length>0?" { "+l.join(", ")+" }":"")}if(KA(e)){var p=HA.call(e);return"object"==typeof e?oS(p):p}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 h="<"+String(e.nodeName).toLowerCase(),d=e.attributes||[],y=0;y<d.length;y++)h+=" "+d[y].name+"="+$A(JA(d[y].value),"double",i);return h+=">",e.childNodes&&e.childNodes.length&&(h+="..."),h+="</"+String(e.nodeName).toLowerCase()+">"}if(QA(e)){if(0===e.length)return"[]";var v=sS(e,c);return s&&!function(t){for(var e=0;e<t.length;e++)if(eS(t[e],"\n")>=0)return!1;return!0}(v)?"["+uS(v,s)+"]":"[ "+v.join(", ")+" ]"}if(function(t){return"[object Error]"===tS(t)}(e)){var g=sS(e,c);return 0===g.length?"["+String(e)+"]":"{ ["+String(e)+"] "+g.join(", ")+" }"}if("object"==typeof e&&a){if(YA&&"function"==typeof e[YA])return e[YA]();if("function"==typeof e.inspect)return e.inspect()}if(function(t){if(!jA||!t||"object"!=typeof t)return!1;try{jA.call(t);try{_A.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var m=[];return TA.call(e,(function(t,r){m.push(c(r,e,!0)+" => "+c(t,e))})),aS("Map",jA.call(e),m,s)}if(function(t){if(!_A||!t||"object"!=typeof t)return!1;try{_A.call(t);try{jA.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var b=[];return CA.call(e,(function(t){b.push(c(t,e))})),aS("Set",_A.call(e),b,s)}if(function(t){if(!LA||!t||"object"!=typeof t)return!1;try{LA.call(t,LA);try{BA.call(t,BA)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return iS("WeakMap");if(function(t){if(!BA||!t||"object"!=typeof t)return!1;try{BA.call(t,BA);try{LA.call(t,LA)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return iS("WeakSet");if(function(t){return"[object Number]"===tS(t)}(e))return oS(c(Number(e)));if(function(t){return"[object BigInt]"===tS(t)}(e))return oS(c(qA.call(e)));if(function(t){return"[object Boolean]"===tS(t)}(e))return oS(FA.call(e));if(function(t){return"[object String]"===tS(t)}(e))return oS(c(String(e)));if(!function(t){return"[object Date]"===tS(t)}(e)&&!function(t){return"[object RegExp]"===tS(t)}(e)){var w=sS(e,c);return 0===w.length?"{}":s?"{"+uS(w,s)+"}":"{ "+w.join(", ")+" }"}return String(e)},pS=cS("%TypeError%"),hS=cS("%WeakMap%",!0),dS=cS("%Map%",!0),yS=fS("WeakMap.prototype.get",!0),vS=fS("WeakMap.prototype.set",!0),gS=fS("WeakMap.prototype.has",!0),mS=fS("Map.prototype.get",!0),bS=fS("Map.prototype.set",!0),wS=fS("Map.prototype.has",!0),AS=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r},SS=String.prototype.replace,ES=/%20/g,RS="RFC3986",PS={default:RS,formatters:{RFC1738:function(t){return SS.call(t,ES,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:RS},OS=PS,xS=Object.prototype.hasOwnProperty,kS=Array.isArray,IS=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),jS=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r},TS={arrayToObject:jS,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),u=0;u<a.length;++u){var s=a[u],c=i[s];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(e.push({obj:i,prop:s}),r.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(kS(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="",u=0;u<i.length;++u){var s=i.charCodeAt(u);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||o===OS.RFC1738&&(40===s||41===s)?a+=i.charAt(u):s<128?a+=IS[s]:s<2048?a+=IS[192|s>>6]+IS[128|63&s]:s<55296||s>=57344?a+=IS[224|s>>12]+IS[128|s>>6&63]+IS[128|63&s]:(u+=1,s=65536+((1023&s)<<10|1023&i.charCodeAt(u)),a+=IS[240|s>>18]+IS[128|s>>12&63]+IS[128|s>>6&63]+IS[128|63&s])}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(kS(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){if(kS(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!xS.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var o=e;return kS(e)&&!kS(r)&&(o=jS(e,n)),kS(e)&&kS(r)?(r.forEach((function(r,o){if(xS.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 xS.call(e,o)?e[o]=t(e[o],i,n):e[o]=i,e}),o)}},US=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new pS("Side channel does not contain "+lS(t))},get:function(n){if(hS&&n&&("object"==typeof n||"function"==typeof n)){if(t)return yS(t,n)}else if(dS){if(e)return mS(e,n)}else if(r)return function(t,e){var r=AS(t,e);return r&&r.value}(r,n)},has:function(n){if(hS&&n&&("object"==typeof n||"function"==typeof n)){if(t)return gS(t,n)}else if(dS){if(e)return wS(e,n)}else if(r)return function(t,e){return!!AS(t,e)}(r,n);return!1},set:function(n,o){hS&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new hS),vS(t,n,o)):dS?(e||(e=new dS),bS(e,n,o)):(r||(r={key:{},next:null}),function(t,e,r){var n=AS(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,o))}};return n},NS=TS,_S=PS,CS=Object.prototype.hasOwnProperty,LS={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},BS=Array.isArray,FS=String.prototype.split,DS=Array.prototype.push,MS=function(t,e){DS.apply(t,BS(e)?e:[e])},WS=Date.prototype.toISOString,qS=_S.default,GS={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:NS.encode,encodeValuesOnly:!1,format:qS,formatter:_S.formatters[qS],indices:!1,serializeDate:function(t){return WS.call(t)},skipNulls:!1,strictNullHandling:!1},HS={},zS=function t(e,r,n,o,i,a,u,s,c,f,l,p,h,d,y){for(var v,g=e,m=y,b=0,w=!1;void 0!==(m=m.get(HS))&&!w;){var A=m.get(e);if(b+=1,void 0!==A){if(A===b)throw new RangeError("Cyclic object value");w=!0}void 0===m.get(HS)&&(b=0)}if("function"==typeof u?g=u(r,g):g instanceof Date?g=f(g):"comma"===n&&BS(g)&&(g=NS.maybeMap(g,(function(t){return t instanceof Date?f(t):t}))),null===g){if(o)return a&&!h?a(r,GS.encoder,d,"key",l):r;g=""}if("string"==typeof(v=g)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||NS.isBuffer(g)){if(a){var S=h?r:a(r,GS.encoder,d,"key",l);if("comma"===n&&h){for(var E=FS.call(String(g),","),R="",P=0;P<E.length;++P)R+=(0===P?"":",")+p(a(E[P],GS.encoder,d,"value",l));return[p(S)+(BS(g)&&1===E.length?"[]":"")+"="+R]}return[p(S)+"="+p(a(g,GS.encoder,d,"value",l))]}return[p(r)+"="+p(String(g))]}var O,x=[];if(void 0===g)return x;if("comma"===n&&BS(g))O=[{value:g.length>0?g.join(",")||null:void 0}];else if(BS(u))O=u;else{var k=Object.keys(g);O=s?k.sort(s):k}for(var I="comma"===n&&BS(g)&&1===g.length?r+"[]":r,j=0;j<O.length;++j){var T=O[j],U="object"==typeof T&&void 0!==T.value?T.value:g[T];if(!i||null!==U){var N=BS(g)?"function"==typeof n?n(I,T):I:I+(c?"."+T:"["+T+"]");y.set(e,b);var _=US();_.set(HS,y),MS(x,t(U,N,n,o,i,a,u,s,c,f,l,p,h,d,_))}}return x},VS=TS,YS=Object.prototype.hasOwnProperty,$S=Array.isArray,JS={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:VS.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},QS=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},KS=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},XS=function(t,e,r,n){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),u=a?o.slice(0,a.index):o,s=[];if(u){if(!r.plainObjects&&YS.call(Object.prototype,u)&&!r.allowPrototypes)return;s.push(u)}for(var c=0;r.depth>0&&null!==(a=i.exec(o))&&c<r.depth;){if(c+=1,!r.plainObjects&&YS.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;s.push(a[1])}return a&&s.push("["+o.slice(a.index)+"]"),function(t,e,r,n){for(var o=n?e:KS(e,r),i=t.length-1;i>=0;--i){var a,u=t[i];if("[]"===u&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var s="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,c=parseInt(s,10);r.parseArrays||""!==s?!isNaN(c)&&u!==s&&String(c)===s&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(a=[])[c]=o:"__proto__"!==s&&(a[s]=o):a={0:o}}o=a}return o}(s,e,r,n)}},ZS={formats:PS,parse:function(t,e){var r=function(t){if(!t)return JS;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");var e=void 0===t.charset?JS.charset:t.charset;return{allowDots:void 0===t.allowDots?JS.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:JS.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:JS.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:JS.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:JS.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:JS.comma,decoder:"function"==typeof t.decoder?t.decoder:JS.decoder,delimiter:"string"==typeof t.delimiter||VS.isRegExp(t.delimiter)?t.delimiter:JS.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:JS.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:JS.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:JS.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:JS.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:JS.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof t?function(t,e){var r,n={},o=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=e.parameterLimit===1/0?void 0:e.parameterLimit,a=o.split(e.delimiter,i),u=-1,s=e.charset;if(e.charsetSentinel)for(r=0;r<a.length;++r)0===a[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[r]?s="utf-8":"utf8=%26%2310003%3B"===a[r]&&(s="iso-8859-1"),u=r,r=a.length);for(r=0;r<a.length;++r)if(r!==u){var c,f,l=a[r],p=l.indexOf("]="),h=-1===p?l.indexOf("="):p+1;-1===h?(c=e.decoder(l,JS.decoder,s,"key"),f=e.strictNullHandling?null:""):(c=e.decoder(l.slice(0,h),JS.decoder,s,"key"),f=VS.maybeMap(KS(l.slice(h+1),e),(function(t){return e.decoder(t,JS.decoder,s,"value")}))),f&&e.interpretNumericEntities&&"iso-8859-1"===s&&(f=QS(f)),l.indexOf("[]=")>-1&&(f=$S(f)?[f]:f),YS.call(n,c)?n[c]=VS.combine(n[c],f):n[c]=f}return n}(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var u=i[a],s=XS(u,n[u],r,"string"==typeof t);o=VS.merge(o,s,r)}return!0===r.allowSparse?o:VS.compact(o)},stringify:function(t,e){var r,n=t,o=function(t){if(!t)return GS;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||GS.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=_S.default;if(void 0!==t.format){if(!CS.call(_S.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=_S.formatters[r],o=GS.filter;return("function"==typeof t.filter||BS(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:GS.addQueryPrefix,allowDots:void 0===t.allowDots?GS.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:GS.charsetSentinel,delimiter:void 0===t.delimiter?GS.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:GS.encode,encoder:"function"==typeof t.encoder?t.encoder:GS.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:GS.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:GS.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:GS.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:GS.strictNullHandling}}(e);"function"==typeof o.filter?n=(0,o.filter)("",n):BS(o.filter)&&(r=o.filter);var i,a=[];if("object"!=typeof n||null===n)return"";i=e&&e.arrayFormat in LS?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var u=LS[i];r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var s=US(),c=0;c<r.length;++c){var f=r[c];o.skipNulls&&null===n[f]||MS(a,zS(n[f],f,u,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,s))}var l=a.join(o.delimiter),p=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),l.length>0?p+l:""}};const tE="function"==typeof btoa,eE="function"==typeof Buffer,rE=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),nE=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),oE=((t=>{let e={};t.forEach(((t,r)=>e[t]=r))})(nE),String.fromCharCode.bind(String)),iE=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),t=>t.replace(/=/g,"").replace(/[+\/]/g,(t=>"+"==t?"-":"_"))),aE=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+=nE[e>>18&63]+nE[e>>12&63]+nE[e>>6&63]+nE[63&e]}return a?i.slice(0,a-3)+"===".substring(a):i},uE=tE?t=>btoa(t):eE?t=>Buffer.from(t,"binary").toString("base64"):aE,sE=eE?t=>Buffer.from(t).toString("base64"):t=>{let e=[];for(let r=0,n=t.length;r<n;r+=4096)e.push(oE.apply(null,t.subarray(r,r+4096)));return uE(e.join(""))},cE=t=>{if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?oE(192|e>>>6)+oE(128|63&e):oE(224|e>>>12&15)+oE(128|e>>>6&63)+oE(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return oE(240|e>>>18&7)+oE(128|e>>>12&63)+oE(128|e>>>6&63)+oE(128|63&e)},fE=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,lE=t=>t.replace(fE,cE),pE=eE?t=>Buffer.from(t,"utf8").toString("base64"):rE?t=>sE(rE.encode(t)):t=>uE(lE(t)),hE=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?iE(pE(t)):pE(t)},dE=hE;var yE=function(){function t(e){if(s(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}var r,i,a;return f(t,[{key:"build",value:(a=u(o().mark((function t(r,i,a,u){var s,c,f,l;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s=n(n(n({method:r,headers:this.headers,url:"".concat(this.baseUrl).concat(i)},u||{}),e.buildPlatformDependentConfig({httpsAgent:this.httpsAgent,clientCertAuth:this.clientCertAuth})),{},{proxy: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(!((c=this.buildRequestUrl(i,a)).length>4096)){t.next=15;break}return t.t1=n,t.t2=n({},s),t.t3={},t.t4=n(n({},this.headers),{},{"X-HTTP-Method-Override":"GET"}),t.next=12,this.buildData(a);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",n(n({},s),{},{url:c}));case 16:if(!(a instanceof _v)){t.next=21;break}return t.next=19,this.buildData(a);case 19:return f=t.sent,t.abrupt("return",n(n({},s),{},{headers:"function"==typeof f.getHeaders?n(n({},this.headers),f.getHeaders()):this.headers,data:f}));case 21:return t.t7=n,t.t8=n({},s),t.t9={},t.next=26,this.buildData(a);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=n,t.t13=n({},s),t.t14={},t.next=34,this.buildData(a);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=i,t.next=41,this.buildData(a);case 41:return t.t19=t.sent,l=t.t17.buildRequestUrl.call(t.t17,t.t18,t.t19),t.abrupt("return",n(n({},s),{},{url:l}));case 44:throw new Error("".concat(r," method is not supported"));case 45:case"end":return t.stop()}}),t,this)}))),function(t,e,r,n){return a.apply(this,arguments)})},{key:"buildRequestUrl",value:function(t,e){return"".concat(this.baseUrl).concat(t,"?").concat(ZS.stringify(e))}},{key:"buildData",value:(i=u(o().mark((function t(e){var r;return o().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 _v)){t.next=7;break}return e.append("__REQUEST_TOKEN__",r),t.abrupt("return",e);case 7:return t.abrupt("return",n({__REQUEST_TOKEN__:r},e));case 8:return t.abrupt("return",e);case 9:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"buildHeaders",value:function(t){var r=t.basicAuth,o=t.userAgent,i=r?{Authorization:"Basic ".concat(dE("".concat(r.username,":").concat(r.password)))}:{},a=n(n({},e.buildHeaders({userAgent:o})),i);switch(this.auth.type){case"password":return n(n({},a),{},{"X-Cybozu-Authorization":dE("".concat(this.auth.username,":").concat(this.auth.password))});case"apiToken":var u=this.auth.apiToken;return Array.isArray(u)?n(n({},a),{},{"X-Cybozu-API-Token":u.join(",")}):n(n({},a),{},{"X-Cybozu-API-Token":u});case"oAuthToken":return n(n({},a),{},{Authorization:"Bearer ".concat(this.auth.oAuthToken)});default:return n(n({},a),{},{"X-Requested-With":"XMLHttpRequest"})}}},{key:"getRequestToken",value:(r=u(o().mark((function t(){return o().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 r.apply(this,arguments)})}]),t}(),vE=$,gE=gn,mE=Date.prototype,bE="Invalid Date",wE="toString",AE=vE(mE.toString),SE=vE(mE.getTime);String(new Date(NaN))!=bE&&gE(mE,wE,(function(){var t=SE(this);return t==t?AE(this):bE}));var EE=C,RE=oe,PE=vt,OE=zi,xE=RegExp.prototype,kE=br.PROPER,IE=gn,jE=Xe,TE=Gi,UE=j,NE=function(t){var e=t.flags;return void 0!==e||"flags"in xE||RE(t,"flags")||!PE(xE,t)?e:EE(OE,t)},_E="toString",CE=RegExp.prototype.toString,LE=UE((function(){return"/a/b"!=CE.call({source:"a",flags:"b"})})),BE=kE&&CE.name!=_E;(LE||BE)&&IE(RegExp.prototype,_E,(function(){var t=jE(this);return"/"+TE(t.source)+"/"+TE(NE(t))}),{unsafe:!0});var FE,DE=function(t){p(r,t);var e=A(r);function r(t){var n;return s(this,r),(n=e.call(this,t)).name="KintoneAbortSearchError",n.message=t,Object.setPrototypeOf(b(n),r.prototype),n}return f(r)}(g(Error)),ME=function(t){p(r,t);var e=A(r);function r(t){var n;s(this,r);var o=r.buildErrorResponseDateWithIndex(t),i=o.data,a=o.bulkRequestIndex;return(n=e.call(this,i.message)).name="KintoneRestAPIError",n.id=i.id,n.code=i.code,n.errors=i.errors,n.status=t.status,n.bulkRequestIndex=a,n.headers=t.headers,n.message="[".concat(t.status,"] [").concat(n.code,"] ").concat(n.message," (").concat(n.id,")"),Error.captureStackTrace&&Error.captureStackTrace(b(n),r),Object.setPrototypeOf(b(n),r.prototype),n}return f(r,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?r.findErrorResponseDataWithIndex(t.data.results):{data:t.data}}}]),r}(g(Error)),WE=["data"],qE=function(){function t(e){var r=e.enableAbortSearchError;s(this,t),this.enableAbortSearchError=r}return f(t,[{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 DE(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,o=m(e,WE);if("string"==typeof r)throw new Error("".concat(o.status,": ").concat(o.statusText));throw new ME(n({data:r},o))}}]),t}(),GE=function(t){if("username"in t)return n({type:"password"},t);if("apiToken"in t)return n({type:"apiToken"},t);if("oAuthToken"in t)return n({type:"oAuthToken"},t);try{return e.getDefaultAuth()}catch(t){if(t instanceof Fi)throw new Error("session authentication is not supported in ".concat(t.platform," environment."));throw t}},HE=function(){function t(){var r,o,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,t),zE(a),this.baseUrl=e.buildBaseUrl(a.baseUrl).replace(/\/+$/,"");var u=GE(null!==(r=a.auth)&&void 0!==r?r:{}),c=new yE(n(n({},a),{},{baseUrl:this.baseUrl,auth:u})),f=new qE({enableAbortSearchError:null!==(o=null===(i=a.featureFlags)||void 0===i?void 0:i.enableAbortSearchError)&&void 0!==o&&o}),l=new sw({responseHandler:f,requestConfigBuilder:c}),p=a.guestSpaceId;this.bulkRequest_=new Nd(l,p),this.record=new Nv(l,this.bulkRequest_,p),this.app=new $d(l,p),this.file=new Cv(l,p)}return f(t,[{key:"getBaseUrl",value:function(){return this.baseUrl}},{key:"bulkRequest",value:function(t){return this.bulkRequest_.send(t)}}],[{key:"version",get:function(){return e.getVersion()}}]),t}(),zE=function(t){VE(t.baseUrl),YE(t.guestSpaceId)},VE=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".')}},YE=function(t){if(""===t||null===t)throw new Error("invalid guestSpaceId: got [".concat(t,"]"))};(FE=Mi).readFileFromPath&&(e.readFileFromPath=FE.readFileFromPath),FE.getRequestToken&&(e.getRequestToken=FE.getRequestToken),FE.getDefaultAuth&&(e.getDefaultAuth=FE.getDefaultAuth),FE.buildPlatformDependentConfig&&(e.buildPlatformDependentConfig=FE.buildPlatformDependentConfig),FE.buildHeaders&&(e.buildHeaders=FE.buildHeaders),FE.buildFormDataValue&&(e.buildFormDataValue=FE.buildFormDataValue),FE.buildBaseUrl&&(e.buildBaseUrl=FE.buildBaseUrl),FE.getVersion&&(e.getVersion=FE.getVersion),t.KintoneAbortSearchError=DE,t.KintoneAllRecordsError=kv,t.KintoneRestAPIClient=HE,t.KintoneRestAPIError=ME,Object.defineProperty(t,"__esModule",{value:!0})}));
|