@kintone/rest-api-client 2.0.27 → 2.0.28
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 +12 -0
- package/README.md +11 -11
- package/package.json +6 -6
- package/umd/KintoneRestAPIClient.js +66 -50
- package/umd/KintoneRestAPIClient.min.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).window=e.window||{})}(this,(function(e){"use strict";var t={readFileFromPath:function(){throw new Error("not implemented")},getRequestToken:function(){throw new Error("not implemented")},getDefaultAuth:function(){throw new Error("not implemented")},buildPlatformDependentConfig:function(){throw new Error("not implemented")},buildHeaders:function(){throw new Error("not implemented")},buildFormDataValue:function(){throw new Error("not implemented")},buildBaseUrl:function(){throw new Error("not implemented")},getVersion:function(){throw new Error("not implemented")}};function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function u(e){i(a,n,o,u,c,"next",e)}function c(e){i(a,n,o,u,c,"throw",e)}u(void 0)}))}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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(e){return!1}}function h(e,t,r){return(h=y()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&d(o,r.prototype),o}).apply(null,arguments)}function v(e){var t="function"==typeof Map?new Map:void 0;return(v=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return h(e,arguments,f(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,e)})(e)}function g(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function w(e){var t=y();return function(){var r,n=f(e);if(t){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return b(this,r)}}function S(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function R(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}var P=function(e){return e&&e.Math==Math&&e},E=P("object"==typeof globalThis&&globalThis)||P("object"==typeof window&&window)||P("object"==typeof self&&self)||P("object"==typeof x&&x)||function(){return this}()||Function("return this")(),k={},O=function(e){try{return!!e()}catch(e){return!0}},j=!O((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),I=Function.prototype.call,N=I.bind?I.bind(I):function(){return I.apply(I,arguments)},T={},F={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,_=C&&!F.call({1:2},1);T.f=_?function(e){var t=C(this,e);return!!t&&t.enumerable}:F;var U,B,W=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},D=Function.prototype,G=D.bind,M=D.call,L=G&&G.bind(M),q=G?function(e){return e&&L(M,e)}:function(e){return e&&function(){return M.apply(e,arguments)}},V=q,z=V({}.toString),H=V("".slice),$=function(e){return H(z(e),8,-1)},J=q,K=O,Q=$,X=E.Object,Y=J("".split),Z=K((function(){return!X("z").propertyIsEnumerable(0)}))?function(e){return"String"==Q(e)?Y(e,""):X(e)}:X,ee=E.TypeError,te=function(e){if(null==e)throw ee("Can't call method on "+e);return e},re=Z,ne=te,oe=function(e){return re(ne(e))},ie=function(e){return"function"==typeof e},ae=ie,ue=function(e){return"object"==typeof e?null!==e:ae(e)},ce=E,se=ie,pe=function(e){return se(e)?e:void 0},le=function(e,t){return arguments.length<2?pe(ce[e]):ce[e]&&ce[e][t]},fe=q({}.isPrototypeOf),de=E,ye=le("navigator","userAgent")||"",he=de.process,ve=de.Deno,ge=he&&he.versions||ve&&ve.version,me=ge&&ge.v8;me&&(B=(U=me.split("."))[0]>0&&U[0]<4?1:+(U[0]+U[1])),!B&&ye&&(!(U=ye.match(/Edge\/(\d+)/))||U[1]>=74)&&(U=ye.match(/Chrome\/(\d+)/))&&(B=+U[1]);var be=B,we=be,Se=O,Ae=!!Object.getOwnPropertySymbols&&!Se((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&we&&we<41})),xe=Ae&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Re=le,Pe=ie,Ee=fe,ke=xe,Oe=E.Object,je=ke?function(e){return"symbol"==typeof e}:function(e){var t=Re("Symbol");return Pe(t)&&Ee(t.prototype,Oe(e))},Ie=E.String,Ne=ie,Te=function(e){try{return Ie(e)}catch(e){return"Object"}},Fe=E.TypeError,Ce=function(e){if(Ne(e))return e;throw Fe(Te(e)+" is not a function")},_e=Ce,Ue=function(e,t){var r=e[t];return null==r?void 0:_e(r)},Be=N,We=ie,De=ue,Ge=E.TypeError,Me={exports:{}},Le=E,qe=Object.defineProperty,Ve=function(e,t){try{qe(Le,e,{value:t,configurable:!0,writable:!0})}catch(r){Le[e]=t}return t},ze=Ve,He="__core-js_shared__",$e=E[He]||ze(He,{}),Je=$e;(Me.exports=function(e,t){return Je[e]||(Je[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var Ke=te,Qe=E.Object,Xe=function(e){return Qe(Ke(e))},Ye=Xe,Ze=q({}.hasOwnProperty),et=Object.hasOwn||function(e,t){return Ze(Ye(e),t)},tt=q,rt=0,nt=Math.random(),ot=tt(1..toString),it=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ot(++rt+nt,36)},at=E,ut=Me.exports,ct=et,st=it,pt=Ae,lt=xe,ft=ut("wks"),dt=at.Symbol,yt=dt&&dt.for,ht=lt?dt:dt&&dt.withoutSetter||st,vt=function(e){if(!ct(ft,e)||!pt&&"string"!=typeof ft[e]){var t="Symbol."+e;pt&&ct(dt,e)?ft[e]=dt[e]:ft[e]=lt&&yt?yt(t):ht(t)}return ft[e]},gt=N,mt=ue,bt=je,wt=Ue,St=function(e,t){var r,n;if("string"===t&&We(r=e.toString)&&!De(n=Be(r,e)))return n;if(We(r=e.valueOf)&&!De(n=Be(r,e)))return n;if("string"!==t&&We(r=e.toString)&&!De(n=Be(r,e)))return n;throw Ge("Can't convert object to primitive value")},At=vt,xt=E.TypeError,Rt=At("toPrimitive"),Pt=function(e,t){if(!mt(e)||bt(e))return e;var r,n=wt(e,Rt);if(n){if(void 0===t&&(t="default"),r=gt(n,e,t),!mt(r)||bt(r))return r;throw xt("Can't convert object to primitive value")}return void 0===t&&(t="number"),St(e,t)},Et=Pt,kt=je,Ot=function(e){var t=Et(e,"string");return kt(t)?t:t+""},jt=ue,It=E.document,Nt=jt(It)&&jt(It.createElement),Tt=function(e){return Nt?It.createElement(e):{}},Ft=Tt,Ct=!j&&!O((function(){return 7!=Object.defineProperty(Ft("div"),"a",{get:function(){return 7}}).a})),_t=j,Ut=N,Bt=T,Wt=W,Dt=oe,Gt=Ot,Mt=et,Lt=Ct,qt=Object.getOwnPropertyDescriptor;k.f=_t?qt:function(e,t){if(e=Dt(e),t=Gt(t),Lt)try{return qt(e,t)}catch(e){}if(Mt(e,t))return Wt(!Ut(Bt.f,e,t),e[t])};var Vt={},zt=E,Ht=ue,$t=zt.String,Jt=zt.TypeError,Kt=function(e){if(Ht(e))return e;throw Jt($t(e)+" is not an object")},Qt=j,Xt=Ct,Yt=Kt,Zt=Ot,er=E.TypeError,tr=Object.defineProperty;Vt.f=Qt?tr:function(e,t,r){if(Yt(e),t=Zt(t),Yt(r),Xt)try{return tr(e,t,r)}catch(e){}if("get"in r||"set"in r)throw er("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var rr=Vt,nr=W,or=j?function(e,t,r){return rr.f(e,t,nr(1,r))}:function(e,t,r){return e[t]=r,e},ir={exports:{}},ar=ie,ur=$e,cr=q(Function.toString);ar(ur.inspectSource)||(ur.inspectSource=function(e){return cr(e)});var sr,pr,lr,fr=ur.inspectSource,dr=ie,yr=fr,hr=E.WeakMap,vr=dr(hr)&&/native code/.test(yr(hr)),gr=Me.exports,mr=it,br=gr("keys"),wr=function(e){return br[e]||(br[e]=mr(e))},Sr={},Ar=vr,xr=E,Rr=q,Pr=ue,Er=or,kr=et,Or=$e,jr=wr,Ir=Sr,Nr="Object already initialized",Tr=xr.TypeError,Fr=xr.WeakMap;if(Ar||Or.state){var Cr=Or.state||(Or.state=new Fr),_r=Rr(Cr.get),Ur=Rr(Cr.has),Br=Rr(Cr.set);sr=function(e,t){if(Ur(Cr,e))throw new Tr(Nr);return t.facade=e,Br(Cr,e,t),t},pr=function(e){return _r(Cr,e)||{}},lr=function(e){return Ur(Cr,e)}}else{var Wr=jr("state");Ir[Wr]=!0,sr=function(e,t){if(kr(e,Wr))throw new Tr(Nr);return t.facade=e,Er(e,Wr,t),t},pr=function(e){return kr(e,Wr)?e[Wr]:{}},lr=function(e){return kr(e,Wr)}}var Dr={set:sr,get:pr,has:lr,enforce:function(e){return lr(e)?pr(e):sr(e,{})},getterFor:function(e){return function(t){var r;if(!Pr(t)||(r=pr(t)).type!==e)throw Tr("Incompatible receiver, "+e+" required");return r}}},Gr=j,Mr=et,Lr=Function.prototype,qr=Gr&&Object.getOwnPropertyDescriptor,Vr=Mr(Lr,"name"),zr={EXISTS:Vr,PROPER:Vr&&"something"===function(){}.name,CONFIGURABLE:Vr&&(!Gr||Gr&&qr(Lr,"name").configurable)},Hr=E,$r=ie,Jr=et,Kr=or,Qr=Ve,Xr=fr,Yr=zr.CONFIGURABLE,Zr=Dr.get,en=Dr.enforce,tn=String(String).split("String");(ir.exports=function(e,t,r,n){var o,i=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,u=!!n&&!!n.noTargetGet,c=n&&void 0!==n.name?n.name:t;$r(r)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Jr(r,"name")||Yr&&r.name!==c)&&Kr(r,"name",c),(o=en(r)).source||(o.source=tn.join("string"==typeof c?c:""))),e!==Hr?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=r:Kr(e,t,r)):a?e[t]=r:Qr(t,r)})(Function.prototype,"toString",(function(){return $r(this)&&Zr(this).source||Xr(this)}));var rn={},nn=Math.ceil,on=Math.floor,an=function(e){var t=+e;return t!=t||0===t?0:(t>0?on:nn)(t)},un=an,cn=Math.max,sn=Math.min,pn=function(e,t){var r=un(e);return r<0?cn(r+t,0):sn(r,t)},ln=an,fn=Math.min,dn=function(e){return e>0?fn(ln(e),9007199254740991):0},yn=dn,hn=function(e){return yn(e.length)},vn=oe,gn=pn,mn=hn,bn=function(e){return function(t,r,n){var o,i=vn(t),a=mn(i),u=gn(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},wn={includes:bn(!0),indexOf:bn(!1)},Sn=et,An=oe,xn=wn.indexOf,Rn=Sr,Pn=q([].push),En=function(e,t){var r,n=An(e),o=0,i=[];for(r in n)!Sn(Rn,r)&&Sn(n,r)&&Pn(i,r);for(;t.length>o;)Sn(n,r=t[o++])&&(~xn(i,r)||Pn(i,r));return i},kn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],On=En,jn=kn.concat("length","prototype");rn.f=Object.getOwnPropertyNames||function(e){return On(e,jn)};var In={};In.f=Object.getOwnPropertySymbols;var Nn=le,Tn=rn,Fn=In,Cn=Kt,_n=q([].concat),Un=Nn("Reflect","ownKeys")||function(e){var t=Tn.f(Cn(e)),r=Fn.f;return r?_n(t,r(e)):t},Bn=et,Wn=Un,Dn=k,Gn=Vt,Mn=O,Ln=ie,qn=/#|\.prototype\./,Vn=function(e,t){var r=Hn[zn(e)];return r==Jn||r!=$n&&(Ln(t)?Mn(t):!!t)},zn=Vn.normalize=function(e){return String(e).replace(qn,".").toLowerCase()},Hn=Vn.data={},$n=Vn.NATIVE="N",Jn=Vn.POLYFILL="P",Kn=Vn,Qn=E,Xn=k.f,Yn=or,Zn=ir.exports,eo=Ve,to=function(e,t){for(var r=Wn(t),n=Gn.f,o=Dn.f,i=0;i<r.length;i++){var a=r[i];Bn(e,a)||n(e,a,o(t,a))}},ro=Kn,no=function(e,t){var r,n,o,i,a,u=e.target,c=e.global,s=e.stat;if(r=c?Qn:s?Qn[u]||eo(u,{}):(Qn[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=Xn(r,n))&&a.value:r[n],!ro(c?n:u+(s?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;to(i,o)}(e.sham||o&&o.sham)&&Yn(i,"sham",!0),Zn(r,n,i,e)}},oo=$,io=Array.isArray||function(e){return"Array"==oo(e)},ao=Ot,uo=Vt,co=W,so=function(e,t,r){var n=ao(t);n in e?uo.f(e,n,co(0,r)):e[n]=r},po={};po[vt("toStringTag")]="z";var lo="[object z]"===String(po),fo=E,yo=lo,ho=ie,vo=$,go=vt("toStringTag"),mo=fo.Object,bo="Arguments"==vo(function(){return arguments}()),wo=yo?vo:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=mo(e),go))?r:bo?vo(t):"Object"==(n=vo(t))&&ho(t.callee)?"Arguments":n},So=q,Ao=O,xo=ie,Ro=wo,Po=fr,Eo=function(){},ko=[],Oo=le("Reflect","construct"),jo=/^\s*(?:class|function)\b/,Io=So(jo.exec),No=!jo.exec(Eo),To=function(e){if(!xo(e))return!1;try{return Oo(Eo,ko,e),!0}catch(e){return!1}},Fo=!Oo||Ao((function(){var e;return To(To.call)||!To(Object)||!To((function(){e=!0}))||e}))?function(e){if(!xo(e))return!1;switch(Ro(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return No||!!Io(jo,Po(e))}:To,Co=E,_o=io,Uo=Fo,Bo=ue,Wo=vt("species"),Do=Co.Array,Go=function(e){var t;return _o(e)&&(t=e.constructor,(Uo(t)&&(t===Do||_o(t.prototype))||Bo(t)&&null===(t=t[Wo]))&&(t=void 0)),void 0===t?Do:t},Mo=function(e,t){return new(Go(e))(0===t?0:t)},Lo=O,qo=be,Vo=vt("species"),zo=function(e){return qo>=51||!Lo((function(){var t=[];return(t.constructor={})[Vo]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ho=no,$o=E,Jo=O,Ko=io,Qo=ue,Xo=Xe,Yo=hn,Zo=so,ei=Mo,ti=zo,ri=be,ni=vt("isConcatSpreadable"),oi=9007199254740991,ii="Maximum allowed index exceeded",ai=$o.TypeError,ui=ri>=51||!Jo((function(){var e=[];return e[ni]=!1,e.concat()[0]!==e})),ci=ti("concat"),si=function(e){if(!Qo(e))return!1;var t=e[ni];return void 0!==t?!!t:Ko(e)};Ho({target:"Array",proto:!0,forced:!ui||!ci},{concat:function(e){var t,r,n,o,i,a=Xo(this),u=ei(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(si(i=-1===t?a:arguments[t])){if(c+(o=Yo(i))>oi)throw ai(ii);for(r=0;r<o;r++,c++)r in i&&Zo(u,c,i[r])}else{if(c>=oi)throw ai(ii);Zo(u,c++,i)}return u.length=c,u}});!function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new O(n||[]);return i._invoke=function(e,t,r){var n=l;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===y){if("throw"===o)throw i;return I()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=P(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var c=p(e,t,r);if("normal"===c.type){if(n=r.done?y:f,c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=y,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var l="suspendedStart",f="suspendedYield",d="executing",y="completed",h={};function v(){}function g(){}function m(){}var b={};b[i]=function(){return this};var w=Object.getPrototypeOf,S=w&&w(w(j([])));S&&S!==r&&n.call(S,i)&&(b=S);var A=m.prototype=v.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function r(o,i,a,u){var c=p(e[o],e,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function P(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=p(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function j(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:I}}function I(){return{value:t,done:!0}}return g.prototype=A.constructor=m,m.constructor=g,g.displayName=c(m,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,u,"GeneratorFunction")),e.prototype=Object.create(A),e},e.awrap=function(e){return{__await:e}},x(R.prototype),R.prototype[a]=function(){return this},e.AsyncIterator=R,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new R(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(A),c(A,u,"Generator"),A[i]=function(){return this},A.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=j,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var pi=j,li=zr.EXISTS,fi=q,di=Vt.f,yi=Function.prototype,hi=fi(yi.toString),vi=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,gi=fi(vi.exec);pi&&!li&&di(yi,"name",{configurable:!0,get:function(){try{return gi(vi,hi(this))[1]}catch(e){return""}}});var mi=function(e){l(r,e);var t=w(r);function r(e){var n;u(this,r);var o="This function is not supported in ".concat(e," environment");return n=t.call(this,o),Error.captureStackTrace&&Error.captureStackTrace(m(n),r),n.name="UnsupportedPlatformError",n.platform=e,Object.setPrototypeOf(m(n),r.prototype),n}return r}(v(Error)),bi=function(){var e=a(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("object"!==("undefined"==typeof kintone?"undefined":o(kintone))||null===kintone||"function"!=typeof kintone.getRequestToken){e.next=2;break}return e.abrupt("return",kintone.getRequestToken());case 2:if("object"!==("undefined"==typeof garoon?"undefined":o(garoon))||null===garoon||"function"!=typeof(null===(t=garoon.connect)||void 0===t||null===(r=t.kintone)||void 0===r?void 0:r.getRequestToken)){e.next=4;break}return e.abrupt("return",garoon.connect.kintone.getRequestToken());case 4:throw new Error("session authentication must specify a request token");case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),wi=Object.freeze({__proto__:null,readFileFromPath:function(e){throw new mi("Browser")},getRequestToken:bi,getDefaultAuth:function(){return{type:"session"}},buildPlatformDependentConfig:function(){return{}},buildHeaders:function(){return{}},buildFormDataValue:function(e){return new Blob([e])},buildBaseUrl:function(e){if(e)return e;var t=location,r=t.host,n=t.protocol;return"".concat(n,"//").concat(r)},getVersion:function(){return"2.0.27"}}),Si=Ce,Ai=q(q.bind),xi=function(e,t){return Si(e),void 0===t?e:Ai?Ai(e,t):function(){return e.apply(t,arguments)}},Ri=Z,Pi=Xe,Ei=hn,ki=Mo,Oi=q([].push),ji=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(c,s,p,l){for(var f,d,y=Pi(c),h=Ri(y),v=xi(s,p),g=Ei(h),m=0,b=l||ki,w=t?b(c,g):r||a?b(c,0):void 0;g>m;m++)if((u||m in h)&&(d=v(f=h[m],m,y),e))if(t)w[m]=d;else if(d)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:Oi(w,f)}else switch(e){case 4:return!1;case 7:Oi(w,f)}return i?-1:n||o?o:w}},Ii={forEach:ji(0),map:ji(1),filter:ji(2),some:ji(3),every:ji(4),find:ji(5),findIndex:ji(6),filterReject:ji(7)}.map;no({target:"Array",proto:!0,forced:!zo("map")},{map:function(e){return Ii(this,e,arguments.length>1?arguments[1]:void 0)}});var Ni=function(e){var t=e.endpointName,r=e.guestSpaceId,n=e.preview,o=void 0!==r?"/guest/".concat(r):"",i=n?"/preview":"";return"/k".concat(o,"/v1").concat(i,"/").concat(t,".json")},Ti=["endpointName"],Fi=function(){function e(t,r){u(this,e),this.client=t,this.guestSpaceId=r,this.REQUESTS_LENGTH_LIMIT=20}return s(e,[{key:"send",value:function(e){var t=this,r=e.requests.map((function(e){if("endpointName"in e){var r=e.endpointName,o=g(e,Ti);return n({api:t.buildPathWithGuestSpaceId({endpointName:r})},o)}return e})),o=this.buildPathWithGuestSpaceId({endpointName:"bulkRequest"});return this.client.post(o,{requests:r})}},{key:"buildPathWithGuestSpaceId",value:function(e){return Ni(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Ci=["preview"],_i=["preview"],Ui=["preview"],Bi=["preview"],Wi=["preview"],Di=["preview"],Gi=["preview"],Mi=["preview"],Li=["preview"],qi=["preview"],Vi=["preview"],zi=["preview"],Hi=["preview"],$i=["preview"],Ji=function(){function e(t,r){u(this,e),this.client=t,this.guestSpaceId=r}var t;return s(e,[{key:"getFormFields",value:function(e){var t=e.preview,r=g(e,Ci),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:t});return this.client.get(o,n({},r))}},{key:"addFormFields",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.post(t,e)}},{key:"updateFormFields",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.put(t,e)}},{key:"deleteFormFields",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.delete(t,e)}},{key:"getFormLayout",value:function(e){var t=e.preview,r=g(e,_i),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:t});return this.client.get(o,n({},r))}},{key:"updateFormLayout",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:!0});return this.client.put(t,e)}},{key:"getViews",value:function(e){var t=e.preview,r=g(e,Ui),n=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:t});return this.client.get(n,r)}},{key:"updateViews",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:!0});return this.client.put(t,e)}},{key:"getApp",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app"});return this.client.get(t,e)}},{key:"getApps",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"apps"});return this.client.get(t,e)}},{key:"addApp",value:(t=a(regeneratorRuntime.mark((function e(t){var r,o,i,a,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.name,o=t.space,i=this.buildPathWithGuestSpaceId({endpointName:"app",preview:!0}),!o){e.next=9;break}return a=this.buildPathWithGuestSpaceId({endpointName:"space"}),e.next=6,this.client.get(a,{id:o});case 6:return u=e.sent,c=u.defaultThread,e.abrupt("return",this.client.post(i,n(n({},t),{},{thread:c})));case 9:return e.abrupt("return",this.client.post(i,{name:r}));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getAppSettings",value:function(e){var t=e.preview,r=g(e,Bi),n=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:t});return this.client.get(n,r)}},{key:"updateAppSettings",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:!0});return this.client.put(t,e)}},{key:"getProcessManagement",value:function(e){var t=e.preview,r=g(e,Wi),n=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:t});return this.client.get(n,r)}},{key:"updateProcessManagement",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:!0});return this.client.put(t,e)}},{key:"getDeployStatus",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.get(t,e)}},{key:"deployApp",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.post(t,e)}},{key:"getFieldAcl",value:function(e){var t=e.preview,r=g(e,Di),o=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:t});return this.client.get(o,n({},r))}},{key:"updateFieldAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:!0});return this.client.put(t,e)}},{key:"getAppAcl",value:function(e){var t=e.preview,r=g(e,Gi),o=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:t});return this.client.get(o,n({},r))}},{key:"updateAppAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:!0});return this.client.put(t,e)}},{key:"evaluateRecordsAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/acl/evaluate"});return this.client.get(t,e)}},{key:"getRecordAcl",value:function(e){var t=e.preview,r=g(e,Mi),o=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:t});return this.client.get(o,n({},r))}},{key:"updateRecordAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:!0});return this.client.put(t,e)}},{key:"getAppCustomize",value:function(e){var t=e.preview,r=g(e,Li),o=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:t});return this.client.get(o,n({},r))}},{key:"updateAppCustomize",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:!0});return this.client.put(t,e)}},{key:"getGeneralNotifications",value:function(e){var t=e.preview,r=g(e,qi),o=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:t});return this.client.get(o,n({},r))}},{key:"updateGeneralNotifications",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:!0});return this.client.put(t,e)}},{key:"getPerRecordNotifications",value:function(e){var t=e.preview,r=g(e,Vi),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:t});return this.client.get(n,r)}},{key:"updatePerRecordNotifications",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:!0});return this.client.put(t,e)}},{key:"getReminderNotifications",value:function(e){var t=e.preview,r=g(e,zi),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:t});return this.client.get(n,r)}},{key:"updateReminderNotifications",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:!0});return this.client.put(t,e)}},{key:"getReports",value:function(e){var t=e.preview,r=g(e,Hi),n=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:t});return this.client.get(n,r)}},{key:"updateReports",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:!0});return this.client.put(t,e)}},{key:"getAppActions",value:function(e){var t=e.preview,r=g(e,$i),n=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:t});return this.client.get(n,r)}},{key:"updateAppActions",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:!0});return this.client.put(t,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return Ni(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Ki=En,Qi=kn,Xi=Object.keys||function(e){return Ki(e,Qi)},Yi=j,Zi=q,ea=N,ta=O,ra=Xi,na=In,oa=T,ia=Xe,aa=Z,ua=Object.assign,ca=Object.defineProperty,sa=Zi([].concat),pa=!ua||ta((function(){if(Yi&&1!==ua({b:1},ua(ca({},"a",{enumerable:!0,get:function(){ca(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=ua({},e)[r]||ra(ua({},t)).join("")!=n}))?function(e,t){for(var r=ia(e),n=arguments.length,o=1,i=na.f,a=oa.f;n>o;)for(var u,c=aa(arguments[o++]),s=i?sa(ra(c),i(c)):ra(c),p=s.length,l=0;p>l;)u=s[l++],Yi&&!ea(a,c,u)||(r[u]=c[u]);return r}:ua;no({target:"Object",stat:!0,forced:Object.assign!==pa},{assign:pa});var la,fa=wo,da=E.String,ya=function(e){if("Symbol"===fa(e))throw TypeError("Cannot convert a Symbol value to a string");return da(e)},ha=Kt,va=function(){var e=ha(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},ga=O,ma=E.RegExp,ba=ga((function(){var e=ma("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),wa=ba||ga((function(){return!ma("a","y").sticky})),Sa={BROKEN_CARET:ba||ga((function(){var e=ma("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:wa,UNSUPPORTED_Y:ba},Aa=Vt,xa=Kt,Ra=oe,Pa=Xi,Ea=j?Object.defineProperties:function(e,t){xa(e);for(var r,n=Ra(t),o=Pa(t),i=o.length,a=0;i>a;)Aa.f(e,r=o[a++],n[r]);return e},ka=le("document","documentElement"),Oa=Kt,ja=Ea,Ia=kn,Na=Sr,Ta=ka,Fa=Tt,Ca=wr("IE_PROTO"),_a=function(){},Ua=function(e){return"<script>"+e+"</"+"script>"},Ba=function(e){e.write(Ua("")),e.close();var t=e.parentWindow.Object;return e=null,t},Wa=function(){try{la=new ActiveXObject("htmlfile")}catch(e){}var e,t;Wa="undefined"!=typeof document?document.domain&&la?Ba(la):((t=Fa("iframe")).style.display="none",Ta.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ua("document.F=Object")),e.close(),e.F):Ba(la);for(var r=Ia.length;r--;)delete Wa.prototype[Ia[r]];return Wa()};Na[Ca]=!0;var Da,Ga,Ma=Object.create||function(e,t){var r;return null!==e?(_a.prototype=Oa(e),r=new _a,_a.prototype=null,r[Ca]=e):r=Wa(),void 0===t?r:ja(r,t)},La=O,qa=E.RegExp,Va=La((function(){var e=qa(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),za=O,Ha=E.RegExp,$a=za((function(){var e=Ha("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ja=N,Ka=q,Qa=ya,Xa=va,Ya=Sa,Za=Me.exports,eu=Ma,tu=Dr.get,ru=Va,nu=$a,ou=Za("native-string-replace",String.prototype.replace),iu=RegExp.prototype.exec,au=iu,uu=Ka("".charAt),cu=Ka("".indexOf),su=Ka("".replace),pu=Ka("".slice),lu=(Ga=/b*/g,Ja(iu,Da=/a/,"a"),Ja(iu,Ga,"a"),0!==Da.lastIndex||0!==Ga.lastIndex),fu=Ya.BROKEN_CARET,du=void 0!==/()??/.exec("")[1];(lu||du||fu||ru||nu)&&(au=function(e){var t,r,n,o,i,a,u,c=this,s=tu(c),p=Qa(e),l=s.raw;if(l)return l.lastIndex=c.lastIndex,t=Ja(au,l,p),c.lastIndex=l.lastIndex,t;var f=s.groups,d=fu&&c.sticky,y=Ja(Xa,c),h=c.source,v=0,g=p;if(d&&(y=su(y,"y",""),-1===cu(y,"g")&&(y+="g"),g=pu(p,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==uu(p,c.lastIndex-1))&&(h="(?: "+h+")",g=" "+g,v++),r=new RegExp("^(?:"+h+")",y)),du&&(r=new RegExp("^"+h+"$(?!\\s)",y)),lu&&(n=c.lastIndex),o=Ja(iu,d?r:c,g),d?o?(o.input=pu(o.input,v),o[0]=pu(o[0],v),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:lu&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),du&&o&&o.length>1&&Ja(ou,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&f)for(o.groups=a=eu(null),i=0;i<f.length;i++)a[(u=f[i])[0]]=o[u[1]];return o});var yu=au;no({target:"RegExp",proto:!0,forced:/./.exec!==yu},{exec:yu});var hu=q,vu=ir.exports,gu=yu,mu=O,bu=vt,wu=or,Su=bu("species"),Au=RegExp.prototype,xu=q,Ru=an,Pu=ya,Eu=te,ku=xu("".charAt),Ou=xu("".charCodeAt),ju=xu("".slice),Iu=function(e){return function(t,r){var n,o,i=Pu(Eu(t)),a=Ru(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=Ou(i,a))<55296||n>56319||a+1===u||(o=Ou(i,a+1))<56320||o>57343?e?ku(i,a):n:e?ju(i,a,a+2):o-56320+(n-55296<<10)+65536}},Nu={codeAt:Iu(!1),charAt:Iu(!0)}.charAt,Tu=N,Fu=Kt,Cu=ie,_u=$,Uu=yu,Bu=E.TypeError,Wu=N,Du=Kt,Gu=dn,Mu=ya,Lu=te,qu=Ue,Vu=function(e,t,r){return t+(r?Nu(e,t).length:1)},zu=function(e,t){var r=e.exec;if(Cu(r)){var n=Tu(r,e,t);return null!==n&&Fu(n),n}if("RegExp"===_u(e))return Tu(Uu,e,t);throw Bu("RegExp#exec called on incompatible receiver")};(function(e,t,r,n){var o=bu(e),i=!mu((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!mu((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Su]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var u=hu(/./[o]),c=t(o,""[e],(function(e,t,r,n,o){var a=hu(e),c=t.exec;return c===gu||c===Au.exec?i&&!o?{done:!0,value:u(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));vu(String.prototype,e,c[0]),vu(Au,o,c[1])}n&&wu(Au[o],"sham",!0)})("match",(function(e,t,r){return[function(t){var r=Lu(this),n=null==t?void 0:qu(t,e);return n?Wu(n,t,r):new RegExp(t)[e](Mu(r))},function(e){var n=Du(this),o=Mu(e),i=r(t,n,o);if(i.done)return i.value;if(!n.global)return zu(n,o);var a=n.unicode;n.lastIndex=0;for(var u,c=[],s=0;null!==(u=zu(n,o));){var p=Mu(u[0]);c[s]=p,""===p&&(n.lastIndex=Vu(o,Gu(n.lastIndex),a)),s++}return 0===s?null:c}]}));var Hu=E,$u=ie,Ju=Hu.String,Ku=Hu.TypeError,Qu=q,Xu=Kt,Yu=function(e){if("object"==typeof e||$u(e))return e;throw Ku("Can't set "+Ju(e)+" as a prototype")},Zu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Qu(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Xu(r),Yu(n),t?e(r,n):r.__proto__=n,r}}():void 0),ec=ie,tc=ue,rc=Zu,nc=q(1..valueOf),oc=te,ic=ya,ac=q("".replace),uc="[\t\n\v\f\r \u2028\u2029\ufeff]",cc=RegExp("^"+uc+uc+"*"),sc=RegExp(uc+uc+"*$"),pc=function(e){return function(t){var r=ic(oc(t));return 1&e&&(r=ac(r,cc,"")),2&e&&(r=ac(r,sc,"")),r}},lc={start:pc(1),end:pc(2),trim:pc(3)},fc=j,dc=E,yc=q,hc=Kn,vc=ir.exports,gc=et,mc=function(e,t,r){var n,o;return rc&&ec(n=t.constructor)&&n!==r&&tc(o=n.prototype)&&o!==r.prototype&&rc(e,o),e},bc=fe,wc=je,Sc=Pt,Ac=O,xc=rn.f,Rc=k.f,Pc=Vt.f,Ec=nc,kc=lc.trim,Oc="Number",jc=dc.Number,Ic=jc.prototype,Nc=dc.TypeError,Tc=yc("".slice),Fc=yc("".charCodeAt),Cc=function(e){var t=Sc(e,"number");return"bigint"==typeof t?t:_c(t)},_c=function(e){var t,r,n,o,i,a,u,c,s=Sc(e,"number");if(wc(s))throw Nc("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=kc(s),43===(t=Fc(s,0))||45===t){if(88===(r=Fc(s,2))||120===r)return NaN}else if(48===t){switch(Fc(s,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+s}for(a=(i=Tc(s,2)).length,u=0;u<a;u++)if((c=Fc(i,u))<48||c>o)return NaN;return parseInt(i,n)}return+s};if(hc(Oc,!jc(" 0o1")||!jc("0b1")||jc("+0x1"))){for(var Uc,Bc=function(e){var t=arguments.length<1?0:jc(Cc(e)),r=this;return bc(Ic,r)&&Ac((function(){Ec(r)}))?mc(Object(t),r,Bc):t},Wc=fc?xc(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(","),Dc=0;Wc.length>Dc;Dc++)gc(jc,Uc=Wc[Dc])&&!gc(Bc,Uc)&&Pc(Bc,Uc,Rc(jc,Uc));Bc.prototype=Ic,Ic.constructor=Bc,vc(dc,Oc,Bc)}var Gc=wo,Mc=lo?{}.toString:function(){return"[object "+Gc(this)+"]"},Lc=lo,qc=ir.exports,Vc=Mc;Lc||qc(Object.prototype,"toString",Vc,{unsafe:!0});var zc=q([].slice),Hc=no,$c=E,Jc=io,Kc=Fo,Qc=ue,Xc=pn,Yc=hn,Zc=oe,es=so,ts=vt,rs=zc,ns=zo("slice"),os=ts("species"),is=$c.Array,as=Math.max;Hc({target:"Array",proto:!0,forced:!ns},{slice:function(e,t){var r,n,o,i=Zc(this),a=Yc(i),u=Xc(e,a),c=Xc(void 0===t?a:t,a);if(Jc(i)&&(r=i.constructor,(Kc(r)&&(r===is||Jc(r.prototype))||Qc(r)&&null===(r=r[os]))&&(r=void 0),r===is||void 0===r))return rs(i,u,c);for(n=new(void 0===r?is:r)(as(c-u,0)),o=0;u<c;u++,o++)u in i&&es(n,o,i[u]);return n.length=o,n}});var us=Xe,cs=Xi;no({target:"Object",stat:!0,forced:O((function(){cs(1)}))},{keys:function(e){return cs(us(e))}});var ss=function(e){l(r,e);var t=w(r);function r(e,n,o,i,a){var c;u(this,r);var s=o-n.length,p=r.extractErrorIndex(s,i,a),l=r.buildErrorMessage(s,o,p);return(c=t.call(this,l)).name="KintoneAllRecordsError",c.processedRecordsResult=e,c.unprocessedRecords=n,c.error=i,c.errorIndex=p,c.message=l,Object.setPrototypeOf(m(c),r.prototype),c}return s(r,null,[{key:"parseErrorIndex",value:function(e){var t=Object.keys(e)[0].match(/records\[(\d+)\]/);return t?Number(t[1]):null}},{key:"extractErrorIndex",value:function(e,t,n){if(void 0!==t.bulkRequestIndex&&t.errors){var o=r.parseErrorIndex(t.errors);if(null!==o)return e+t.bulkRequestIndex*n+o}}},{key:"buildErrorMessage",value:function(e,t,r){var n="";return void 0!==r&&(n="An error occurred at records[".concat(r,"]. ")),n+="".concat(e,"/").concat(t," records are processed successfully")}}]),r}(v(Error)),ps=["condition","orderBy","withCursor"],ls=["fields"],fs=["condition"],ds=["condition","orderBy"],ys=function(){function e(t,r,n){u(this,e),this.client=t,this.bulkRequestClient=r,this.guestSpaceId=n,this.didWarnMaximumOffsetValue=!1}var t,r,o,i,c,l,f,d,y,h,v,m,b,w,A,x,R,P;return s(e,[{key:"getRecord",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.get(t,e)}},{key:"addRecord",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.post(t,e)}},{key:"updateRecord",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.put(t,e)}},{key:"upsertRecord",value:(P=a(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.app,n=t.updateKey,o=t.record,e.next=3,this.getRecords({app:r,query:"".concat(n.field,' = "').concat(n.value,'"')});case 3:if(i=e.sent,!((a=i.records).length>0)){e.next=13;break}if("__ID__"!==a[0].$id.type){e.next=12;break}return e.next=9,this.updateRecord(t);case 9:return u=e.sent,c=u.revision,e.abrupt("return",{id:a[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 e.abrupt("return",this.addRecord({app:r,record:Object.assign({},o,p({},n.field,{value:n.value}))}));case 14:case"end":return e.stop()}}),e,this)}))),function(e){return P.apply(this,arguments)})},{key:"getRecords",value:(R=a(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),e.next=3,this.client.get(r,t);case 3:return n=e.sent,this.warnMaximumOffsetValueIfNeeded(t.query),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return R.apply(this,arguments)})},{key:"warnMaximumOffsetValueIfNeeded",value:function(e){if(e){var t=e.match(/offset\s+(\d+)/i);!this.didWarnMaximumOffsetValue&&t&&Number(t[1])>1e4&&(this.didWarnMaximumOffsetValue=!0,console.warn("Warning: The maximum offset value will be limited to 10,000 in the future. Please use `createCursor()` and `getRecordsByCursor()` instead."))}}},{key:"addRecords",value:(x=a(regeneratorRuntime.mark((function e(t){var r,n,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),e.next=3,this.client.post(r,t);case 3:return n=e.sent,o=n.ids,i=n.revisions,e.abrupt("return",{ids:o,revisions:i,records:o.map((function(e,t){return{id:e,revision:i[t]}}))});case 7:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"updateRecords",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.put(t,e)}},{key:"deleteRecords",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.delete(t,e)}},{key:"createCursor",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.post(t,e)}},{key:"getRecordsByCursor",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.get(t,e)}},{key:"deleteCursor",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.delete(t,e)}},{key:"getAllRecords",value:(A=a(regeneratorRuntime.mark((function e(t){var r,o,i,a,u,c,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.condition,o=t.orderBy,i=t.withCursor,a=void 0===i||i,u=g(t,ps),o){e.next=3;break}return e.abrupt("return",this.getAllRecordsWithId(n(n({},u),{},{condition:r})));case 3:if(!a){e.next=7;break}return c=r?"".concat(r," "):"",s="".concat(c).concat(o?"order by ".concat(o):""),e.abrupt("return",this.getAllRecordsWithCursor(n(n({},u),{},{query:s})));case 7:return e.abrupt("return",this.getAllRecordsWithOffset(n(n({},u),{},{orderBy:o,condition:r})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"getAllRecordsWithId",value:(w=a(regeneratorRuntime.mark((function e(t){var r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.fields,o=g(t,ls),(i=r)&&i.length>0&&-1===i.indexOf("$id")&&(i=[].concat(S(i),["$id"])),e.abrupt("return",this.getAllRecordsRecursiveWithId(n(n({},o),{},{fields:i}),"0",[]));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return w.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithId",value:(b=a(regeneratorRuntime.mark((function e(t,r,o){var i,a,u,c,s,p,l,f,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=500,a=t.condition,u=g(t,fs),c=a?"(".concat(a,") and "):"",s="".concat(c,"$id > ").concat(r," order by $id asc limit ").concat(i),e.next=6,this.getRecords(n(n({},u),{},{query:s}));case 6:if(p=e.sent,l=o.concat(p.records),!(p.records.length<i)){e.next=10;break}return e.abrupt("return",l);case 10:if("__ID__"!==(f=p.records[p.records.length-1]).$id.type){e.next=14;break}return d=f.$id.value,e.abrupt("return",this.getAllRecordsRecursiveWithId(t,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 e.stop()}}),e,this)}))),function(e,t,r){return b.apply(this,arguments)})},{key:"getAllRecordsWithOffset",value:(m=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAllRecordsRecursiveWithOffset(t,0,[]));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithOffset",value:(v=a(regeneratorRuntime.mark((function e(t,r,o){var i,a,u,c,s,p,l,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=500,a=t.condition,u=t.orderBy,c=g(t,ds),s=a?"".concat(a," "):"",p="".concat(s).concat(u?"order by ".concat(u," "):"","limit ").concat(i," offset ").concat(r),e.next=6,this.getRecords(n(n({},c),{},{query:p}));case 6:if(l=e.sent,f=o.concat(l.records),!(l.records.length<i)){e.next=10;break}return e.abrupt("return",f);case 10:return e.abrupt("return",this.getAllRecordsRecursiveWithOffset(t,r+i,f));case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return v.apply(this,arguments)})},{key:"getAllRecordsWithCursor",value:(h=a(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.createCursor(t);case 2:return r=e.sent,n=r.id,e.prev=4,e.next=7,this.getAllRecordsRecursiveByCursor(n,[]);case 7:return e.abrupt("return",e.sent);case 10:return e.prev=10,e.t0=e.catch(4),e.next=14,this.deleteCursor({id:n});case 14:throw e.t0;case 15:case"end":return e.stop()}}),e,this,[[4,10]])}))),function(e){return h.apply(this,arguments)})},{key:"getAllRecordsRecursiveByCursor",value:(y=a(regeneratorRuntime.mark((function e(t,r){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRecordsByCursor({id:t});case 2:if(n=e.sent,o=r.concat(n.records),!n.next){e.next=6;break}return e.abrupt("return",this.getAllRecordsRecursiveByCursor(t,o));case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return y.apply(this,arguments)})},{key:"addAllRecords",value:(d=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.records.every((function(e){return!Array.isArray(e)&&e instanceof Object}))){e.next=2;break}throw new Error("the `records` parameter must be an array of object.");case 2:return e.abrupt("return",this.addAllRecordsRecursive(t,t.records.length,[]));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"addAllRecordsRecursive",value:(f=a(regeneratorRuntime.mark((function e(t,r,n){var o,i,a,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,i=t.app,a=t.records,0!==(u=a.slice(0,o)).length){e.next=5;break}return e.abrupt("return",{records:n});case 5:return e.prev=5,e.next=8,this.addAllRecordsWithBulkRequest({app:i,records:u});case 8:c=e.sent,e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(5),new ss({records:n},a,r,e.t0,100);case 14:return e.abrupt("return",this.addAllRecordsRecursive({app:i,records:a.slice(o)},r,n.concat(c)));case 15:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(e,t,r){return f.apply(this,arguments)})},{key:"addAllRecordsWithBulkRequest",value:(l=a(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.separateArrayRecursive(100,[],t.records),n=r.map((function(e){return{method:"POST",endpointName:"records",payload:{app:t.app,records:e}}})),e.next=4,this.bulkRequestClient.send({requests:n});case 4:return o=e.sent.results,e.abrupt("return",o.map((function(e){var t=e.ids,r=e.revisions;return t.map((function(e,t){return{id:e,revision:r[t]}}))})).reduce((function(e,t){return e.concat(t)}),[]));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"updateAllRecords",value:(c=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.updateAllRecordsRecursive(t,t.records.length,[]));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"updateAllRecordsRecursive",value:(i=a(regeneratorRuntime.mark((function e(t,r,n){var o,i,a,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,i=t.app,a=t.records,0!==(u=a.slice(0,o)).length){e.next=5;break}return e.abrupt("return",{records:n});case 5:return e.prev=5,e.next=8,this.updateAllRecordsWithBulkRequest({app:i,records:u});case 8:c=e.sent,e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(5),new ss({records:n},a,r,e.t0,100);case 14:return e.abrupt("return",this.updateAllRecordsRecursive({app:i,records:a.slice(o)},r,n.concat(c)));case 15:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(e,t,r){return i.apply(this,arguments)})},{key:"updateAllRecordsWithBulkRequest",value:(o=a(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.separateArrayRecursive(100,[],t.records),n=r.map((function(e){return{method:"PUT",endpointName:"records",payload:{app:t.app,records:e}}})),e.next=4,this.bulkRequestClient.send({requests:n});case 4:return o=e.sent.results,e.abrupt("return",o.map((function(e){return e.records})).reduce((function(e,t){return e.concat(t)}),[]));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"deleteAllRecords",value:function(e){return this.deleteAllRecordsRecursive(e,e.records.length)}},{key:"deleteAllRecordsRecursive",value:(r=a(regeneratorRuntime.mark((function e(t,r){var n,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,o=t.app,i=t.records,0!==(a=i.slice(0,n)).length){e.next=5;break}return e.abrupt("return",{});case 5:return e.prev=5,e.next=8,this.deleteAllRecordsWithBulkRequest({app:o,records:a});case 8:e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(5),new ss({},i,r,e.t0,100);case 13:return e.abrupt("return",this.deleteAllRecordsRecursive({app:o,records:i.slice(n)},r));case 14:case"end":return e.stop()}}),e,this,[[5,10]])}))),function(e,t){return r.apply(this,arguments)})},{key:"deleteAllRecordsWithBulkRequest",value:(t=a(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.separateArrayRecursive(100,[],t.records),n=r.map((function(e){return{method:"DELETE",endpointName:"records",payload:{app:t.app,ids:e.map((function(e){return e.id})),revisions:e.map((function(e){return e.revision}))}}})),e.next=4,this.bulkRequestClient.send({requests:n});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"separateArrayRecursive",value:function(e,t,r){var n=r.slice(0,e);return 0===n.length?t:this.separateArrayRecursive(e,[].concat(S(t),[n]),r.slice(e))}},{key:"addRecordComment",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.post(t,e)}},{key:"deleteRecordComment",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.delete(t,e)}},{key:"getRecordComments",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comments"});return this.client.get(t,e)}},{key:"updateRecordAssignees",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/assignees"});return this.client.put(t,e)}},{key:"updateRecordStatus",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/status"});return this.client.put(t,e)}},{key:"updateRecordsStatus",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/status"});return this.client.put(t,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return Ni(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),hs="object"==typeof self?self.FormData:window.FormData,vs=function(){function e(t,r){u(this,e),this.client=t,this.guestSpaceId=r}var r;return s(e,[{key:"uploadFile",value:(r=a(regeneratorRuntime.mark((function e(r){var n,o,i,a,u,c,s,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.buildPathWithGuestSpaceId({endpointName:"file"}),o=new hs,!("path"in r.file)){e.next=19;break}return e.prev=3,e.next=6,t.readFileFromPath(r.file.path);case 6:i=e.sent,a=i.name,u=i.data,o.append("file",u,a),e.next=17;break;case 12:if(e.prev=12,e.t0=e.catch(3),!(e.t0 instanceof mi)){e.next=16;break}throw new Error("uploadFile doesn't allow to accept a file path in ".concat(e.t0.platform," environment."));case 16:throw e.t0;case 17:e.next=21;break;case 19:c=r.file,s=c.name,p=c.data,o.append("file",t.buildFormDataValue(p),s);case 21:return e.abrupt("return",this.client.postData(n,o));case 22:case"end":return e.stop()}}),e,this,[[3,12]])}))),function(e){return r.apply(this,arguments)})},{key:"downloadFile",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"file"});return this.client.getData(t,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return Ni(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),gs={exports:{}},ms=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},bs=ms,ws=Object.prototype.toString;function Ss(e){return"[object Array]"===ws.call(e)}function As(e){return void 0===e}function xs(e){return null!==e&&"object"==typeof e}function Rs(e){if("[object Object]"!==ws.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function Ps(e){return"[object Function]"===ws.call(e)}function Es(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),Ss(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var ks={isArray:Ss,isArrayBuffer:function(e){return"[object ArrayBuffer]"===ws.call(e)},isBuffer:function(e){return null!==e&&!As(e)&&null!==e.constructor&&!As(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:xs,isPlainObject:Rs,isUndefined:As,isDate:function(e){return"[object Date]"===ws.call(e)},isFile:function(e){return"[object File]"===ws.call(e)},isBlob:function(e){return"[object Blob]"===ws.call(e)},isFunction:Ps,isStream:function(e){return xs(e)&&Ps(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:Es,merge:function e(){var t={};function r(r,n){Rs(t[n])&&Rs(r)?t[n]=e(t[n],r):Rs(r)?t[n]=e({},r):Ss(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)Es(arguments[n],r);return t},extend:function(e,t,r){return Es(t,(function(t,n){e[n]=r&&"function"==typeof t?bs(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}},Os=ks;function js(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Is=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(Os.isURLSearchParams(t))n=t.toString();else{var o=[];Os.forEach(t,(function(e,t){null!=e&&(Os.isArray(e)?t+="[]":e=[e],Os.forEach(e,(function(e){Os.isDate(e)?e=e.toISOString():Os.isObject(e)&&(e=JSON.stringify(e)),o.push(js(t)+"="+js(e))})))})),n=o.join("&")}if(n){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},Ns=ks;function Ts(){this.handlers=[]}Ts.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},Ts.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Ts.prototype.forEach=function(e){Ns.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var Fs=Ts,Cs="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function _s(){throw new Error("setTimeout has not been defined")}function Us(){throw new Error("clearTimeout has not been defined")}var Bs=_s,Ws=Us;function Ds(e){if(Bs===setTimeout)return setTimeout(e,0);if((Bs===_s||!Bs)&&setTimeout)return Bs=setTimeout,setTimeout(e,0);try{return Bs(e,0)}catch(t){try{return Bs.call(null,e,0)}catch(t){return Bs.call(this,e,0)}}}"function"==typeof Cs.setTimeout&&(Bs=setTimeout),"function"==typeof Cs.clearTimeout&&(Ws=clearTimeout);var Gs,Ms=[],Ls=!1,qs=-1;function Vs(){Ls&&Gs&&(Ls=!1,Gs.length?Ms=Gs.concat(Ms):qs=-1,Ms.length&&zs())}function zs(){if(!Ls){var e=Ds(Vs);Ls=!0;for(var t=Ms.length;t;){for(Gs=Ms,Ms=[];++qs<t;)Gs&&Gs[qs].run();qs=-1,t=Ms.length}Gs=null,Ls=!1,function(e){if(Ws===clearTimeout)return clearTimeout(e);if((Ws===Us||!Ws)&&clearTimeout)return Ws=clearTimeout,clearTimeout(e);try{Ws(e)}catch(t){try{return Ws.call(null,e)}catch(t){return Ws.call(this,e)}}}(e)}}function Hs(e,t){this.fun=e,this.array=t}Hs.prototype.run=function(){this.fun.apply(null,this.array)};function $s(){}var Js=$s,Ks=$s,Qs=$s,Xs=$s,Ys=$s,Zs=$s,ep=$s;var tp=Cs.performance||{},rp=tp.now||tp.mozNow||tp.msNow||tp.oNow||tp.webkitNow||function(){return(new Date).getTime()};var np=new Date;var op={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Ms.push(new Hs(e,t)),1!==Ms.length||Ls||Ds(zs)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Js,addListener:Ks,once:Qs,off:Xs,removeListener:Ys,removeAllListeners:Zs,emit:ep,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*rp.call(tp),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-np)/1e3}},ip=ks,ap=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.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}},e},up=ap,cp=function(e,t,r,n,o){var i=new Error(e);return up(i,t,r,n,o)},sp=cp,pp=ks,lp=pp.isStandardBrowserEnv()?{write:function(e,t,r,n,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),pp.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),pp.isString(n)&&a.push("path="+n),pp.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},fp=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)},dp=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},yp=ks,hp=["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"],vp=ks,gp=vp.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=vp.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0};function mp(e){this.message=e}mp.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},mp.prototype.__CANCEL__=!0;var bp=mp,wp=ks,Sp=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(sp("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},Ap=lp,xp=Is,Rp=function(e,t){return e&&!fp(t)?dp(e,t):t},Pp=function(e){var t,r,n,o={};return e?(yp.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=yp.trim(e.substr(0,n)).toLowerCase(),r=yp.trim(e.substr(n+1)),t){if(o[t]&&hp.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([r]):o[t]?o[t]+", "+r:r}})),o):o},Ep=gp,kp=cp,Op=Wp,jp=bp,Ip=function(e){return new Promise((function(t,r){var n,o=e.data,i=e.headers,a=e.responseType;function u(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}wp.isFormData(o)&&delete i["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var s=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(s+":"+p)}var l=Rp(e.baseURL,e.url);function f(){if(c){var n="getAllResponseHeaders"in c?Pp(c.getAllResponseHeaders()):null,o={data:a&&"text"!==a&&"json"!==a?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c};Sp((function(e){t(e),u()}),(function(e){r(e),u()}),o),c=null}}if(c.open(e.method.toUpperCase(),xp(l,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(f)},c.onabort=function(){c&&(r(kp("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){r(kp("Network Error",e,null,c)),c=null},c.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||Op.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(kp(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},wp.isStandardBrowserEnv()){var d=(e.withCredentials||Ep(l))&&e.xsrfCookieName?Ap.read(e.xsrfCookieName):void 0;d&&(i[e.xsrfHeaderName]=d)}"setRequestHeader"in c&&wp.forEach(i,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete i[t]:c.setRequestHeader(t,e)})),wp.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&"json"!==a&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(n=function(e){c&&(r(!e||e&&e.type?new jp("canceled"):e),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),o||(o=null),c.send(o)}))},Np=ks,Tp=function(e,t){ip.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},Fp=ap,Cp={"Content-Type":"application/x-www-form-urlencoded"};function _p(e,t){!Np.isUndefined(e)&&Np.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Up,Bp={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==op&&"[object process]"===Object.prototype.toString.call(op))&&(Up=Ip),Up),transformRequest:[function(e,t){return Tp(t,"Accept"),Tp(t,"Content-Type"),Np.isFormData(e)||Np.isArrayBuffer(e)||Np.isBuffer(e)||Np.isStream(e)||Np.isFile(e)||Np.isBlob(e)?e:Np.isArrayBufferView(e)?e.buffer:Np.isURLSearchParams(e)?(_p(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Np.isObject(e)||t&&"application/json"===t["Content-Type"]?(_p(t,"application/json"),function(e,t,r){if(Np.isString(e))try{return(t||JSON.parse)(e),Np.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||Bp.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&Np.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw Fp(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Np.forEach(["delete","get","head"],(function(e){Bp.headers[e]={}})),Np.forEach(["post","put","patch"],(function(e){Bp.headers[e]=Np.merge(Cp)}));var Wp=Bp,Dp=ks,Gp=Wp,Mp=function(e){return!(!e||!e.__CANCEL__)},Lp=ks,qp=function(e,t,r){var n=this||Gp;return Dp.forEach(r,(function(r){e=r.call(n,e,t)})),e},Vp=Mp,zp=Wp,Hp=bp;function $p(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hp("canceled")}var Jp=ks,Kp=function(e,t){t=t||{};var r={};function n(e,t){return Jp.isPlainObject(e)&&Jp.isPlainObject(t)?Jp.merge(e,t):Jp.isPlainObject(t)?Jp.merge({},t):Jp.isArray(t)?t.slice():t}function o(r){return Jp.isUndefined(t[r])?Jp.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function i(e){if(!Jp.isUndefined(t[e]))return n(void 0,t[e])}function a(r){return Jp.isUndefined(t[r])?Jp.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function u(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return Jp.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,n=t(e);Jp.isUndefined(n)&&t!==u||(r[e]=n)})),r},Qp="0.24.0",Xp=Qp,Yp={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Yp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var Zp={};Yp.transitional=function(e,t,r){function n(e,t){return"[Axios v"+Xp+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,o,i){if(!1===e)throw new Error(n(o," has been removed"+(t?" in "+t:"")));return t&&!Zp[o]&&(Zp[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var el=ks,tl=Is,rl=Fs,nl=function(e){return $p(e),e.headers=e.headers||{},e.data=qp.call(e,e.data,e.headers,e.transformRequest),e.headers=Lp.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Lp.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||zp.adapter)(e).then((function(t){return $p(e),t.data=qp.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Vp(t)||($p(e),t&&t.response&&(t.response.data=qp.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},ol=Kp,il={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],a=t[i];if(a){var u=e[i],c=void 0===u||a(u,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:Yp},al=il.validators;function ul(e){this.defaults=e,this.interceptors={request:new rl,response:new rl}}ul.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=ol(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&il.assertOptions(t,{silentJSONParsing:al.transitional(al.boolean),forcedJSONParsing:al.transitional(al.boolean),clarifyTimeoutError:al.transitional(al.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!n){var a=[nl,void 0];for(Array.prototype.unshift.apply(a,r),a=a.concat(i),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var u=e;r.length;){var c=r.shift(),s=r.shift();try{u=c(u)}catch(e){s(e);break}}try{o=nl(u)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},ul.prototype.getUri=function(e){return e=ol(this.defaults,e),tl(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},el.forEach(["delete","get","head","options"],(function(e){ul.prototype[e]=function(t,r){return this.request(ol(r||{},{method:e,url:t,data:(r||{}).data}))}})),el.forEach(["post","put","patch"],(function(e){ul.prototype[e]=function(t,r,n){return this.request(ol(n||{},{method:e,url:t,data:r}))}}));var cl=ul,sl=bp;function pl(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new sl(e),t(r.reason))}))}pl.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},pl.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},pl.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},pl.source=function(){var e;return{token:new pl((function(t){e=t})),cancel:e}};var ll=pl,fl=ks,dl=ms,yl=cl,hl=Kp;var vl=function e(t){var r=new yl(t),n=dl(yl.prototype.request,r);return fl.extend(n,yl.prototype,r),fl.extend(n,r),n.create=function(r){return e(hl(t,r))},n}(Wp);vl.Axios=yl,vl.Cancel=bp,vl.CancelToken=ll,vl.isCancel=Mp,vl.VERSION=Qp,vl.all=function(e){return Promise.all(e)},vl.spread=function(e){return function(t){return e.apply(null,t)}},vl.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError},gs.exports=vl,gs.exports.default=vl;var gl=gs.exports,ml=function(){function e(t){var r=t.responseHandler,n=t.requestConfigBuilder;u(this,e),this.responseHandler=r,this.requestConfigBuilder=n}var t,r,o,i,c,p;return s(e,[{key:"get",value:(p=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("get",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return p.apply(this,arguments)})},{key:"getData",value:(c=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("get",t,r,{responseType:"arraybuffer"});case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"post",value:(i=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("post",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"postData",value:(o=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("post",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"put",value:(r=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("put",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"delete",value:(t=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("delete",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})},{key:"sendRequest",value:function(e){return this.responseHandler.handle(gl(n(n({},e),{},{maxBodyLength:1/0,maxContentLength:1/0})))}}]),e}(),bl=O,wl=no,Sl=Z,Al=oe,xl=function(e,t){var r=[][e];return!!r&&bl((function(){r.call(null,t||function(){throw 1},1)}))},Rl=q([].join),Pl=Sl!=Object,El=xl("join",",");wl({target:"Array",proto:!0,forced:Pl||!El},{join:function(e){return Rl(Al(this),void 0===e?",":e)}});var kl,Ol=x.Symbol,jl=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0},Il=function(){return"function"==typeof Ol&&("function"==typeof Symbol&&("symbol"==typeof Ol("foo")&&("symbol"==typeof Symbol("bar")&&jl())))},Nl="Function.prototype.bind called on incompatible ",Tl=Array.prototype.slice,Fl=Object.prototype.toString,Cl="[object Function]",_l=function(e){var t=this;if("function"!=typeof t||Fl.call(t)!==Cl)throw new TypeError(Nl+t);for(var r,n=Tl.call(arguments,1),o=function(){if(this instanceof r){var o=t.apply(this,n.concat(Tl.call(arguments)));return Object(o)===o?o:this}return t.apply(e,n.concat(Tl.call(arguments)))},i=Math.max(0,t.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),t.prototype){var c=function(){};c.prototype=t.prototype,r.prototype=new c,c.prototype=null}return r},Ul=Function.prototype.bind||_l,Bl=Ul.call(Function.call,Object.prototype.hasOwnProperty),Wl=SyntaxError,Dl=Function,Gl=TypeError,Ml=function(e){try{return Dl('"use strict"; return ('+e+").constructor;")()}catch(e){}},Ll=Object.getOwnPropertyDescriptor;if(Ll)try{Ll({},"")}catch(e){Ll=null}var ql,Vl=function(){throw new Gl},zl=Ll?function(){try{return Vl}catch(e){try{return Ll(arguments,"callee").get}catch(e){return Vl}}}():Vl,Hl=Il(),$l=Object.getPrototypeOf||function(e){return e.__proto__},Jl={},Kl="undefined"==typeof Uint8Array?kl:$l(Uint8Array),Ql={"%AggregateError%":"undefined"==typeof AggregateError?kl:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?kl:ArrayBuffer,"%ArrayIteratorPrototype%":Hl?$l([][Symbol.iterator]()):kl,"%AsyncFromSyncIteratorPrototype%":kl,"%AsyncFunction%":Jl,"%AsyncGenerator%":Jl,"%AsyncGeneratorFunction%":Jl,"%AsyncIteratorPrototype%":Jl,"%Atomics%":"undefined"==typeof Atomics?kl:Atomics,"%BigInt%":"undefined"==typeof BigInt?kl:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?kl:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?kl:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?kl:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?kl:FinalizationRegistry,"%Function%":Dl,"%GeneratorFunction%":Jl,"%Int8Array%":"undefined"==typeof Int8Array?kl:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?kl:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?kl:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Hl?$l($l([][Symbol.iterator]())):kl,"%JSON%":"object"==typeof JSON?JSON:kl,"%Map%":"undefined"==typeof Map?kl:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Hl?$l((new Map)[Symbol.iterator]()):kl,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?kl:Promise,"%Proxy%":"undefined"==typeof Proxy?kl:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?kl:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?kl:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Hl?$l((new Set)[Symbol.iterator]()):kl,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?kl:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Hl?$l(""[Symbol.iterator]()):kl,"%Symbol%":Hl?Symbol:kl,"%SyntaxError%":Wl,"%ThrowTypeError%":zl,"%TypedArray%":Kl,"%TypeError%":Gl,"%Uint8Array%":"undefined"==typeof Uint8Array?kl:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?kl:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?kl:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?kl:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?kl:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?kl:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?kl:WeakSet},Xl=function e(t){var r;if("%AsyncFunction%"===t)r=Ml("async function () {}");else if("%GeneratorFunction%"===t)r=Ml("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=Ml("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=$l(o.prototype))}return Ql[t]=r,r},Yl={"%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"]},Zl=Ul,ef=Bl,tf=Zl.call(Function.call,Array.prototype.concat),rf=Zl.call(Function.apply,Array.prototype.splice),nf=Zl.call(Function.call,String.prototype.replace),of=Zl.call(Function.call,String.prototype.slice),af=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,uf=/\\(\\)?/g,cf=function(e){var t=of(e,0,1),r=of(e,-1);if("%"===t&&"%"!==r)throw new Wl("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new Wl("invalid intrinsic syntax, expected opening `%`");var n=[];return nf(e,af,(function(e,t,r,o){n[n.length]=r?nf(o,uf,"$1"):t||e})),n},sf=function(e,t){var r,n=e;if(ef(Yl,n)&&(n="%"+(r=Yl[n])[0]+"%"),ef(Ql,n)){var o=Ql[n];if(o===Jl&&(o=Xl(n)),void 0===o&&!t)throw new Gl("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Wl("intrinsic "+e+" does not exist!")},pf=SyntaxError,lf=Function,ff=TypeError,df=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},yf=Object.getOwnPropertyDescriptor;if(yf)try{yf({},"")}catch(e){yf=null}var hf=function(){throw new ff},vf=yf?function(){try{return hf}catch(e){try{return yf(arguments,"callee").get}catch(e){return hf}}}():hf,gf=Il(),mf=Object.getPrototypeOf||function(e){return e.__proto__},bf=df("async function* () {}"),wf=bf?bf.prototype:ql,Sf=wf?wf.prototype:ql,Af="undefined"==typeof Uint8Array?ql:mf(Uint8Array),xf={"%AggregateError%":"undefined"==typeof AggregateError?ql:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?ql:ArrayBuffer,"%ArrayIteratorPrototype%":gf?mf([][Symbol.iterator]()):ql,"%AsyncFromSyncIteratorPrototype%":ql,"%AsyncFunction%":df("async function () {}"),"%AsyncGenerator%":wf,"%AsyncGeneratorFunction%":bf,"%AsyncIteratorPrototype%":Sf?mf(Sf):ql,"%Atomics%":"undefined"==typeof Atomics?ql:Atomics,"%BigInt%":"undefined"==typeof BigInt?ql:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?ql:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?ql:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?ql:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?ql:FinalizationRegistry,"%Function%":lf,"%GeneratorFunction%":df("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?ql:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?ql:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?ql:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":gf?mf(mf([][Symbol.iterator]())):ql,"%JSON%":"object"==typeof JSON?JSON:ql,"%Map%":"undefined"==typeof Map?ql:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&gf?mf((new Map)[Symbol.iterator]()):ql,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?ql:Promise,"%Proxy%":"undefined"==typeof Proxy?ql:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?ql:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?ql:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&gf?mf((new Set)[Symbol.iterator]()):ql,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?ql:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":gf?mf(""[Symbol.iterator]()):ql,"%Symbol%":gf?Symbol:ql,"%SyntaxError%":pf,"%ThrowTypeError%":vf,"%TypedArray%":Af,"%TypeError%":ff,"%Uint8Array%":"undefined"==typeof Uint8Array?ql:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?ql:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?ql:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?ql:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?ql:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?ql:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?ql:WeakSet},Rf={"%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"]},Pf=Ul,Ef=Bl,kf=Pf.call(Function.call,Array.prototype.concat),Of=Pf.call(Function.apply,Array.prototype.splice),jf=Pf.call(Function.call,String.prototype.replace),If=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Nf=/\\(\\)?/g,Tf=function(e){var t=[];return jf(e,If,(function(e,r,n,o){t[t.length]=n?jf(o,Nf,"$1"):r||e})),t},Ff=function(e,t){var r,n=e;if(Ef(Rf,n)&&(n="%"+(r=Rf[n])[0]+"%"),Ef(xf,n)){var o=xf[n];if(void 0===o&&!t)throw new ff("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new pf("intrinsic "+e+" does not exist!")},Cf=function(e,t){if("string"!=typeof e||0===e.length)throw new ff("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new ff('"allowMissing" argument must be a boolean');var r=Tf(e),n=r.length>0?r[0]:"",o=Ff("%"+n+"%",t),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],Of(r,kf([0,1],c)));for(var s=1,p=!0;s<r.length;s+=1){var l=r[s];if("constructor"!==l&&p||(u=!0),Ef(xf,i="%"+(n+="."+l)+"%"))a=xf[i];else if(null!=a){if(yf&&s+1>=r.length){var f=yf(a,l);if(p=!!f,!t&&!(l in a))throw new ff("base intrinsic for "+e+" exists, but the property is not available.");a=p&&"get"in f&&!("originalValue"in f.get)?f.get:a[l]}else p=Ef(a,l),a=a[l];p&&!u&&(xf[i]=a)}}return a},_f={exports:{}};!function(e){var t=Ul,r=Cf,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||t.call(o,n),a=r("%Object.defineProperty%",!0);if(a)try{a({},"a",{value:1})}catch(e){a=null}e.exports=function(){return i(t,o,arguments)};var u=function(){return i(t,n,arguments)};a?a(e.exports,"apply",{value:u}):e.exports.apply=u}(_f);var Uf=Cf,Bf=_f.exports,Wf=Bf(Uf("String.prototype.indexOf")),Df=R(Object.freeze({__proto__:null,default:{}})),Gf="function"==typeof Map&&Map.prototype,Mf=Object.getOwnPropertyDescriptor&&Gf?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Lf=Gf&&Mf&&"function"==typeof Mf.get?Mf.get:null,qf=Gf&&Map.prototype.forEach,Vf="function"==typeof Set&&Set.prototype,zf=Object.getOwnPropertyDescriptor&&Vf?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Hf=Vf&&zf&&"function"==typeof zf.get?zf.get:null,$f=Vf&&Set.prototype.forEach,Jf="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Kf="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Qf=Boolean.prototype.valueOf,Xf=Object.prototype.toString,Yf=Function.prototype.toString,Zf=String.prototype.match,ed="function"==typeof BigInt?BigInt.prototype.valueOf:null,td=Object.getOwnPropertySymbols,rd="function"==typeof Symbol?Symbol.prototype.toString:null,nd=Object.prototype.propertyIsEnumerable,od=Df.custom,id=od&&sd(od)?od:null;function ad(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function ud(e){return String(e).replace(/"/g,""")}function cd(e){return"[object Array]"===fd(e)}function sd(e){return"[object Symbol]"===fd(e)}var pd=Object.prototype.hasOwnProperty||function(e){return e in this};function ld(e,t){return pd.call(e,t)}function fd(e){return Xf.call(e)}function dd(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function yd(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return yd(e.slice(0,t.maxStringLength),t)+n}return ad(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,hd),"single",t)}function hd(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function vd(e){return"Object("+e+")"}function gd(e){return e+" { ? }"}function md(e,t,r,n){return e+" ("+t+") {"+(n?bd(r,n):r.join(", "))+"}"}function bd(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+e.join(","+r)+"\n"+t.prev}function wd(e,t){var r=cd(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=ld(e,o)?t(e[o],e):""}for(var i in e)ld(e,i)&&(r&&String(Number(i))===i&&i<e.length||(/[^\w$]/.test(i)?n.push(t(i,e)+": "+t(e[i],e)):n.push(i+": "+t(e[i],e))));if("function"==typeof td)for(var a=td(e),u=0;u<a.length;u++)nd.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}var Sd=function(e,t){if("string"!=typeof e||0===e.length)throw new Gl("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Gl('"allowMissing" argument must be a boolean');var r=cf(e),n=r.length>0?r[0]:"",o=sf("%"+n+"%",t),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],rf(r,tf([0,1],c)));for(var s=1,p=!0;s<r.length;s+=1){var l=r[s],f=of(l,0,1),d=of(l,-1);if(('"'===f||"'"===f||"`"===f||'"'===d||"'"===d||"`"===d)&&f!==d)throw new Wl("property names with quotes must have matching quotes");if("constructor"!==l&&p||(u=!0),ef(Ql,i="%"+(n+="."+l)+"%"))a=Ql[i];else if(null!=a){if(!(l in a)){if(!t)throw new Gl("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ll&&s+1>=r.length){var y=Ll(a,l);a=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[l]}else p=ef(a,l),a=a[l];p&&!u&&(Ql[i]=a)}}return a},Ad=function(e,t){var r=Uf(e,!!t);return"function"==typeof r&&Wf(e,".prototype.")>-1?Bf(r):r},xd=function e(t,r,n,o){var i=r||{};if(ld(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ld(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=!ld(i,"customInspect")||i.customInspect;if("boolean"!=typeof a)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(ld(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===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return yd(t,i);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var u=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=u&&u>0&&"object"==typeof t)return cd(t)?"[Array]":"[Object]";var c=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Array(e.indent+1).join(" ")}return{base:r,prev:Array(t+1).join(r)}}(i,n);if(void 0===o)o=[];else if(dd(o,t)>=0)return"[Circular]";function s(t,r,a){if(r&&(o=o.slice()).push(r),a){var u={depth:i.depth};return ld(i,"quoteStyle")&&(u.quoteStyle=i.quoteStyle),e(t,u,n+1,o)}return e(t,i,n+1,o)}if("function"==typeof t){var p=function(e){if(e.name)return e.name;var t=Zf.call(Yf.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),l=wd(t,s);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(l.length>0?" { "+l.join(", ")+" }":"")}if(sd(t)){var f=rd.call(t);return"object"==typeof t?vd(f):f}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var d="<"+String(t.nodeName).toLowerCase(),y=t.attributes||[],h=0;h<y.length;h++)d+=" "+y[h].name+"="+ad(ud(y[h].value),"double",i);return d+=">",t.childNodes&&t.childNodes.length&&(d+="..."),d+="</"+String(t.nodeName).toLowerCase()+">"}if(cd(t)){if(0===t.length)return"[]";var v=wd(t,s);return c&&!function(e){for(var t=0;t<e.length;t++)if(dd(e[t],"\n")>=0)return!1;return!0}(v)?"["+bd(v,c)+"]":"[ "+v.join(", ")+" ]"}if(function(e){return"[object Error]"===fd(e)}(t)){var g=wd(t,s);return 0===g.length?"["+String(t)+"]":"{ ["+String(t)+"] "+g.join(", ")+" }"}if("object"==typeof t&&a){if(id&&"function"==typeof t[id])return t[id]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Lf||!e||"object"!=typeof e)return!1;try{Lf.call(e);try{Hf.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var m=[];return qf.call(t,(function(e,r){m.push(s(r,t,!0)+" => "+s(e,t))})),md("Map",Lf.call(t),m,c)}if(function(e){if(!Hf||!e||"object"!=typeof e)return!1;try{Hf.call(e);try{Lf.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var b=[];return $f.call(t,(function(e){b.push(s(e,t))})),md("Set",Hf.call(t),b,c)}if(function(e){if(!Jf||!e||"object"!=typeof e)return!1;try{Jf.call(e,Jf);try{Kf.call(e,Kf)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return gd("WeakMap");if(function(e){if(!Kf||!e||"object"!=typeof e)return!1;try{Kf.call(e,Kf);try{Jf.call(e,Jf)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return gd("WeakSet");if(function(e){return"[object Number]"===fd(e)}(t))return vd(s(Number(t)));if(function(e){return"[object BigInt]"===fd(e)}(t))return vd(s(ed.call(t)));if(function(e){return"[object Boolean]"===fd(e)}(t))return vd(Qf.call(t));if(function(e){return"[object String]"===fd(e)}(t))return vd(s(String(t)));if(!function(e){return"[object Date]"===fd(e)}(t)&&!function(e){return"[object RegExp]"===fd(e)}(t)){var w=wd(t,s);return 0===w.length?"{}":c?"{"+bd(w,c)+"}":"{ "+w.join(", ")+" }"}return String(t)},Rd=Sd("%TypeError%"),Pd=Sd("%WeakMap%",!0),Ed=Sd("%Map%",!0),kd=Ad("WeakMap.prototype.get",!0),Od=Ad("WeakMap.prototype.set",!0),jd=Ad("WeakMap.prototype.has",!0),Id=Ad("Map.prototype.get",!0),Nd=Ad("Map.prototype.set",!0),Td=Ad("Map.prototype.has",!0),Fd=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},Cd=String.prototype.replace,_d=/%20/g,Ud="RFC3986",Bd={default:Ud,formatters:{RFC1738:function(e){return Cd.call(e,_d,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Ud},Wd=Bd,Dd=Object.prototype.hasOwnProperty,Gd=Array.isArray,Md=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Ld=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},qd={arrayToObject:Ld,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),u=0;u<a.length;++u){var c=a[u],s=i[c];"object"==typeof s&&null!==s&&-1===r.indexOf(s)&&(t.push({obj:i,prop:c}),r.push(s))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(Gd(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,n,o){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",u=0;u<i.length;++u){var c=i.charCodeAt(u);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===Wd.RFC1738&&(40===c||41===c)?a+=i.charAt(u):c<128?a+=Md[c]:c<2048?a+=Md[192|c>>6]+Md[128|63&c]:c<55296||c>=57344?a+=Md[224|c>>12]+Md[128|c>>6&63]+Md[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&i.charCodeAt(u)),a+=Md[240|c>>18]+Md[128|c>>12&63]+Md[128|c>>6&63]+Md[128|63&c])}return a},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Gd(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(Gd(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!Dd.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return Gd(t)&&!Gd(r)&&(o=Ld(t,n)),Gd(t)&&Gd(r)?(r.forEach((function(r,o){if(Dd.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,n):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];return Dd.call(t,o)?t[o]=e(t[o],i,n):t[o]=i,t}),o)}},Vd=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new Rd("Side channel does not contain "+xd(e))},get:function(n){if(Pd&&n&&("object"==typeof n||"function"==typeof n)){if(e)return kd(e,n)}else if(Ed){if(t)return Id(t,n)}else if(r)return function(e,t){var r=Fd(e,t);return r&&r.value}(r,n)},has:function(n){if(Pd&&n&&("object"==typeof n||"function"==typeof n)){if(e)return jd(e,n)}else if(Ed){if(t)return Td(t,n)}else if(r)return function(e,t){return!!Fd(e,t)}(r,n);return!1},set:function(n,o){Pd&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new Pd),Od(e,n,o)):Ed?(t||(t=new Ed),Nd(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=Fd(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n},zd=qd,Hd=Bd,$d=Object.prototype.hasOwnProperty,Jd={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Kd=Array.isArray,Qd=Array.prototype.push,Xd=function(e,t){Qd.apply(e,Kd(t)?t:[t])},Yd=Date.prototype.toISOString,Zd=Hd.default,ey={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:zd.encode,encodeValuesOnly:!1,format:Zd,formatter:Hd.formatters[Zd],indices:!1,serializeDate:function(e){return Yd.call(e)},skipNulls:!1,strictNullHandling:!1},ty=function e(t,r,n,o,i,a,u,c,s,p,l,f,d,y,h){var v,g=t;if(h.has(t))throw new RangeError("Cyclic object value");if("function"==typeof u?g=u(r,g):g instanceof Date?g=p(g):"comma"===n&&Kd(g)&&(g=zd.maybeMap(g,(function(e){return e instanceof Date?p(e):e}))),null===g){if(o)return a&&!d?a(r,ey.encoder,y,"key",l):r;g=""}if("string"==typeof(v=g)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||zd.isBuffer(g))return a?[f(d?r:a(r,ey.encoder,y,"key",l))+"="+f(a(g,ey.encoder,y,"value",l))]:[f(r)+"="+f(String(g))];var m,b=[];if(void 0===g)return b;if("comma"===n&&Kd(g))m=[{value:g.length>0?g.join(",")||null:void 0}];else if(Kd(u))m=u;else{var w=Object.keys(g);m=c?w.sort(c):w}for(var S=0;S<m.length;++S){var A=m[S],x="object"==typeof A&&void 0!==A.value?A.value:g[A];if(!i||null!==x){var R=Kd(g)?"function"==typeof n?n(r,A):r:r+(s?"."+A:"["+A+"]");h.set(t,!0);var P=Vd();Xd(b,e(x,R,n,o,i,a,u,c,s,p,l,f,d,y,P))}}return b},ry=qd,ny=Object.prototype.hasOwnProperty,oy=Array.isArray,iy={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:ry.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},ay=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},uy=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},cy=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),u=a?o.slice(0,a.index):o,c=[];if(u){if(!r.plainObjects&&ny.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(u)}for(var s=0;r.depth>0&&null!==(a=i.exec(o))&&s<r.depth;){if(s+=1,!r.plainObjects&&ny.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+o.slice(a.index)+"]"),function(e,t,r,n){for(var o=n?t:uy(t,r),i=e.length-1;i>=0;--i){var a,u=e[i];if("[]"===u&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,s=parseInt(c,10);r.parseArrays||""!==c?!isNaN(s)&&u!==c&&String(s)===c&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(a=[])[s]=o:a[c]=o:a={0:o}}o=a}return o}(c,t,r,n)}},sy={formats:Bd,parse:function(e,t){var r=function(e){if(!e)return iy;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?iy.charset:e.charset;return{allowDots:void 0===e.allowDots?iy.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:iy.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:iy.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:iy.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:iy.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:iy.comma,decoder:"function"==typeof e.decoder?e.decoder:iy.decoder,delimiter:"string"==typeof e.delimiter||ry.isRegExp(e.delimiter)?e.delimiter:iy.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:iy.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:iy.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:iy.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:iy.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:iy.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){var r,n={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,a=o.split(t.delimiter,i),u=-1,c=t.charset;if(t.charsetSentinel)for(r=0;r<a.length;++r)0===a[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[r]?c="utf-8":"utf8=%26%2310003%3B"===a[r]&&(c="iso-8859-1"),u=r,r=a.length);for(r=0;r<a.length;++r)if(r!==u){var s,p,l=a[r],f=l.indexOf("]="),d=-1===f?l.indexOf("="):f+1;-1===d?(s=t.decoder(l,iy.decoder,c,"key"),p=t.strictNullHandling?null:""):(s=t.decoder(l.slice(0,d),iy.decoder,c,"key"),p=ry.maybeMap(uy(l.slice(d+1),t),(function(e){return t.decoder(e,iy.decoder,c,"value")}))),p&&t.interpretNumericEntities&&"iso-8859-1"===c&&(p=ay(p)),l.indexOf("[]=")>-1&&(p=oy(p)?[p]:p),ny.call(n,s)?n[s]=ry.combine(n[s],p):n[s]=p}return n}(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var u=i[a],c=cy(u,n[u],r,"string"==typeof e);o=ry.merge(o,c,r)}return!0===r.allowSparse?o:ry.compact(o)},stringify:function(e,t){var r,n=e,o=function(e){if(!e)return ey;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||ey.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Hd.default;if(void 0!==e.format){if(!$d.call(Hd.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=Hd.formatters[r],o=ey.filter;return("function"==typeof e.filter||Kd(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:ey.addQueryPrefix,allowDots:void 0===e.allowDots?ey.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:ey.charsetSentinel,delimiter:void 0===e.delimiter?ey.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:ey.encode,encoder:"function"==typeof e.encoder?e.encoder:ey.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:ey.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:ey.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:ey.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:ey.strictNullHandling}}(t);"function"==typeof o.filter?n=(0,o.filter)("",n):Kd(o.filter)&&(r=o.filter);var i,a=[];if("object"!=typeof n||null===n)return"";i=t&&t.arrayFormat in Jd?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var u=Jd[i];r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var c=Vd(),s=0;s<r.length;++s){var p=r[s];o.skipNulls&&null===n[p]||Xd(a,ty(n[p],p,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,c))}var l=a.join(o.delimiter),f=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),l.length>0?f+l:""}},py={exports:{}};!function(e,t){!function(t,r){e.exports=function(t){var r,n=(t=t||{}).Base64,o="2.6.4",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=function(e){for(var t={},r=0,n=e.length;r<n;r++)t[e.charAt(r)]=r;return t}(i),u=String.fromCharCode,c=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},s=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,p=function(e){return e.replace(s,c)},l=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[i.charAt(r>>>18),i.charAt(r>>>12&63),t>=2?"=":i.charAt(r>>>6&63),t>=1?"=":i.charAt(63&r)].join("")},f=t.btoa&&"function"==typeof t.btoa?function(e){return t.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,l)},d=function(e){return f(p(String(e)))},y=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},h=function(e,t){return t?y(d(e)):d(e)},v=function(e){return h(e,!0)};t.Uint8Array&&(r=function(e,t){for(var r="",n=0,o=e.length;n<o;n+=3){var a=e[n],u=e[n+1],c=e[n+2],s=a<<16|u<<8|c;r+=i.charAt(s>>>18)+i.charAt(s>>>12&63)+(void 0!==u?i.charAt(s>>>6&63):"=")+(void 0!==c?i.charAt(63&s):"=")}return t?y(r):r});var g,m=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return u(55296+(t>>>10))+u(56320+(1023&t));case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},w=function(e){return e.replace(m,b)},S=function(e){var t=e.length,r=t%4,n=(t>0?a[e.charAt(0)]<<18:0)|(t>1?a[e.charAt(1)]<<12:0)|(t>2?a[e.charAt(2)]<<6:0)|(t>3?a[e.charAt(3)]:0),o=[u(n>>>16),u(n>>>8&255),u(255&n)];return o.length-=[0,0,2,1][r],o.join("")},A=t.atob&&"function"==typeof t.atob?function(e){return t.atob(e)}:function(e){return e.replace(/\S{1,4}/g,S)},x=function(e){return A(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},R=function(e){return w(A(e))},P=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},E=function(e){return R(P(e))};t.Uint8Array&&(g=function(e){return Uint8Array.from(x(P(e)),(function(e){return e.charCodeAt(0)}))});var k=function(){var e=t.Base64;return t.Base64=n,e};if(t.Base64={VERSION:o,atob:x,btoa:f,fromBase64:E,toBase64:h,utob:p,encode:h,encodeURI:v,btou:w,decode:E,noConflict:k,fromUint8Array:r,toUint8Array:g},"function"==typeof Object.defineProperty){var O=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};t.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",O((function(){return E(this)}))),Object.defineProperty(String.prototype,"toBase64",O((function(e){return h(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",O((function(){return h(this,!0)})))}}t.Meteor&&(Base64=t.Base64);e.exports&&(e.exports.Base64=t.Base64);return{Base64:t.Base64}}(t)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:x)}(py);var ly=function(){function e(t){var r=t.baseUrl,n=t.auth,o=t.basicAuth,i=t.clientCertAuth,a=t.proxy,c=t.userAgent;u(this,e),this.baseUrl=r,this.auth=n,this.headers=this.buildHeaders({basicAuth:o,userAgent:c}),this.clientCertAuth=i,this.proxy=a,this.requestToken=null}var r,o,i;return s(e,[{key:"build",value:(i=a(regeneratorRuntime.mark((function e(r,o,i,a){var u,c,s,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u=n(n(n({method:r,headers:this.headers,url:"".concat(this.baseUrl).concat(o)},a||{}),t.buildPlatformDependentConfig({clientCertAuth:this.clientCertAuth})),{},{proxy:this.proxy}),e.t0=r,e.next="get"===e.t0?4:"post"===e.t0?16:"put"===e.t0?29:"delete"===e.t0?37:44;break;case 4:if(!((c=this.buildRequestUrl(o,i)).length>4096)){e.next=15;break}return e.t1=n,e.t2=n({},u),e.t3={},e.t4=n(n({},this.headers),{},{"X-HTTP-Method-Override":"GET"}),e.next=12,this.buildData(i);case 12:return e.t5=e.sent,e.t6={method:"post",headers:e.t4,data:e.t5},e.abrupt("return",(0,e.t1)(e.t2,e.t3,e.t6));case 15:return e.abrupt("return",n(n({},u),{},{url:c}));case 16:if(!(i instanceof hs)){e.next=21;break}return e.next=19,this.buildData(i);case 19:return s=e.sent,e.abrupt("return",n(n({},u),{},{headers:"function"==typeof s.getHeaders?n(n({},this.headers),s.getHeaders()):this.headers,data:s}));case 21:return e.t7=n,e.t8=n({},u),e.t9={},e.next=26,this.buildData(i);case 26:return e.t10=e.sent,e.t11={data:e.t10},e.abrupt("return",(0,e.t7)(e.t8,e.t9,e.t11));case 29:return e.t12=n,e.t13=n({},u),e.t14={},e.next=34,this.buildData(i);case 34:return e.t15=e.sent,e.t16={data:e.t15},e.abrupt("return",(0,e.t12)(e.t13,e.t14,e.t16));case 37:return e.t17=this,e.t18=o,e.next=41,this.buildData(i);case 41:return e.t19=e.sent,p=e.t17.buildRequestUrl.call(e.t17,e.t18,e.t19),e.abrupt("return",n(n({},u),{},{url:p}));case 44:throw new Error("".concat(r," method is not supported"));case 45:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return i.apply(this,arguments)})},{key:"buildRequestUrl",value:function(e,t){return"".concat(this.baseUrl).concat(e,"?").concat(sy.stringify(t))}},{key:"buildData",value:(o=a(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("session"!==this.auth.type){e.next=8;break}return e.next=3,this.getRequestToken();case 3:if(r=e.sent,!(t instanceof hs)){e.next=7;break}return t.append("__REQUEST_TOKEN__",r),e.abrupt("return",t);case 7:return e.abrupt("return",n({__REQUEST_TOKEN__:r},t));case 8:return e.abrupt("return",t);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"buildHeaders",value:function(e){var r=e.basicAuth,o=e.userAgent,i=r?{Authorization:"Basic ".concat(py.exports.Base64.encode("".concat(r.username,":").concat(r.password)))}:{},a=n(n({},t.buildHeaders({userAgent:o})),i);switch(this.auth.type){case"password":return n(n({},a),{},{"X-Cybozu-Authorization":py.exports.Base64.encode("".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=a(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==this.requestToken){e.next=4;break}return e.next=3,t.getRequestToken();case 3:this.requestToken=e.sent;case 4:return e.abrupt("return",this.requestToken);case 5:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}]),e}(),fy=q,dy=zr.PROPER,yy=ir.exports,hy=Kt,vy=fe,gy=ya,my=O,by=va,wy="toString",Sy=RegExp.prototype,Ay=Sy.toString,xy=fy(by),Ry=my((function(){return"/a/b"!=Ay.call({source:"a",flags:"b"})})),Py=dy&&Ay.name!=wy;(Ry||Py)&&yy(RegExp.prototype,wy,(function(){var e=hy(this),t=gy(e.source),r=e.flags;return"/"+t+"/"+gy(void 0===r&&vy(Sy,e)&&!("flags"in Sy)?xy(e):r)}),{unsafe:!0});var Ey,ky=function(e){l(r,e);var t=w(r);function r(e){var n;return u(this,r),(n=t.call(this,e)).name="KintoneAbortSearchError",n.message=e,Object.setPrototypeOf(m(n),r.prototype),n}return r}(v(Error)),Oy=function(e){l(r,e);var t=w(r);function r(e){var n;u(this,r);var o=r.buildErrorResponseDateWithIndex(e),i=o.data,a=o.bulkRequestIndex;return(n=t.call(this,i.message)).name="KintoneRestAPIError",n.id=i.id,n.code=i.code,n.errors=i.errors,n.status=e.status,n.bulkRequestIndex=a,n.headers=e.headers,n.message="[".concat(e.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 s(r,null,[{key:"findErrorResponseDataWithIndex",value:function(e){for(var t=0;t<e.length;t++){if(0!==Object.keys(e[t]).length)return{data:e[t],bulkRequestIndex:t}}throw Error("Missing response data in `results`. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.")}},{key:"buildErrorResponseDateWithIndex",value:function(e){return"results"in e.data?r.findErrorResponseDataWithIndex(e.data.results):{data:e.data}}}]),r}(v(Error)),jy=["data"],Iy=function(){function e(t){var r=t.enableAbortSearchError;u(this,e),this.enableAbortSearchError=r}return s(e,[{key:"handle",value:function(e){var t=this;return e.then((function(e){return t.handleSuccessResponse(e)}),(function(e){return t.handleErrorResponse(e)}))}},{key:"handleSuccessResponse",value:function(e){if(this.enableAbortSearchError&&/Filter aborted because of too many search results/.test(e.headers["x-cybozu-warning"]))throw new ky(e.headers["x-cybozu-warning"]);return e.data}},{key:"handleErrorResponse",value:function(e){if(!e.response){if(/mac verify failure/.test(e.toString()))throw new Error("invalid clientCertAuth setting");throw e}var t=e.response,r=t.data,o=g(t,jy);if("string"==typeof r)throw new Error("".concat(o.status,": ").concat(o.statusText));throw new Oy(n({data:r},o))}}]),e}(),Ny=function(e){if("username"in e)return n({type:"password"},e);if("apiToken"in e)return n({type:"apiToken"},e);if("oAuthToken"in e)return n({type:"oAuthToken"},e);try{return t.getDefaultAuth()}catch(e){if(e instanceof mi)throw new Error("session authentication is not supported in ".concat(e.platform," environment."));throw e}},Ty=function(){function e(){var r,o,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,e),Fy(a),this.baseUrl=t.buildBaseUrl(a.baseUrl);var c=Ny(null!==(r=a.auth)&&void 0!==r?r:{}),s=new ly(n(n({},a),{},{baseUrl:this.baseUrl,auth:c})),p=new Iy({enableAbortSearchError:null!==(o=null===(i=a.featureFlags)||void 0===i?void 0:i.enableAbortSearchError)&&void 0!==o&&o}),l=new ml({responseHandler:p,requestConfigBuilder:s}),f=a.guestSpaceId;this.bulkRequest_=new Fi(l,f),this.record=new ys(l,this.bulkRequest_,f),this.app=new Ji(l,f),this.file=new vs(l,f)}return s(e,[{key:"getBaseUrl",value:function(){return this.baseUrl}},{key:"bulkRequest",value:function(e){return this.bulkRequest_.send(e)}}],[{key:"version",get:function(){return t.getVersion()}}]),e}(),Fy=function(e){Cy(e.guestSpaceId)},Cy=function(e){if(""===e||null===e)throw new Error("invalid guestSpaceId: got [".concat(e,"]"))};Ey=wi,t.readFileFromPath=Ey.readFileFromPath,t.getRequestToken=Ey.getRequestToken,t.getDefaultAuth=Ey.getDefaultAuth,t.buildPlatformDependentConfig=Ey.buildPlatformDependentConfig,t.buildHeaders=Ey.buildHeaders,t.buildFormDataValue=Ey.buildFormDataValue,t.buildBaseUrl=Ey.buildBaseUrl,t.getVersion=Ey.getVersion,e.KintoneAbortSearchError=ky,e.KintoneAllRecordsError=ss,e.KintoneRestAPIClient=Ty,e.KintoneRestAPIError=Oy,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).window=e.window||{})}(this,(function(e){"use strict";var t={readFileFromPath:function(){throw new Error("not implemented")},getRequestToken:function(){throw new Error("not implemented")},getDefaultAuth:function(){throw new Error("not implemented")},buildPlatformDependentConfig:function(){throw new Error("not implemented")},buildHeaders:function(){throw new Error("not implemented")},buildFormDataValue:function(){throw new Error("not implemented")},buildBaseUrl:function(){throw new Error("not implemented")},getVersion:function(){throw new Error("not implemented")}};function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function u(e){i(a,n,o,u,c,"next",e)}function c(e){i(a,n,o,u,c,"throw",e)}u(void 0)}))}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&d(e,t)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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(e){return!1}}function h(e,t,r){return(h=y()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&d(o,r.prototype),o}).apply(null,arguments)}function v(e){var t="function"==typeof Map?new Map:void 0;return(v=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return h(e,arguments,f(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,e)})(e)}function g(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function w(e){var t=y();return function(){var r,n=f(e);if(t){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return b(this,r)}}function S(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function R(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}var P=function(e){return e&&e.Math==Math&&e},E=P("object"==typeof globalThis&&globalThis)||P("object"==typeof window&&window)||P("object"==typeof self&&self)||P("object"==typeof x&&x)||function(){return this}()||Function("return this")(),k={},O=function(e){try{return!!e()}catch(e){return!0}},j=!O((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),I=Function.prototype.call,N=I.bind?I.bind(I):function(){return I.apply(I,arguments)},T={},F={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,_=C&&!F.call({1:2},1);T.f=_?function(e){var t=C(this,e);return!!t&&t.enumerable}:F;var U,B,W=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},D=Function.prototype,G=D.bind,M=D.call,L=G&&G.bind(M),q=G?function(e){return e&&L(M,e)}:function(e){return e&&function(){return M.apply(e,arguments)}},V=q,z=V({}.toString),H=V("".slice),$=function(e){return H(z(e),8,-1)},J=q,K=O,Q=$,X=E.Object,Y=J("".split),Z=K((function(){return!X("z").propertyIsEnumerable(0)}))?function(e){return"String"==Q(e)?Y(e,""):X(e)}:X,ee=E.TypeError,te=function(e){if(null==e)throw ee("Can't call method on "+e);return e},re=Z,ne=te,oe=function(e){return re(ne(e))},ie=function(e){return"function"==typeof e},ae=ie,ue=function(e){return"object"==typeof e?null!==e:ae(e)},ce=E,se=ie,pe=function(e){return se(e)?e:void 0},le=function(e,t){return arguments.length<2?pe(ce[e]):ce[e]&&ce[e][t]},fe=q({}.isPrototypeOf),de=E,ye=le("navigator","userAgent")||"",he=de.process,ve=de.Deno,ge=he&&he.versions||ve&&ve.version,me=ge&&ge.v8;me&&(B=(U=me.split("."))[0]>0&&U[0]<4?1:+(U[0]+U[1])),!B&&ye&&(!(U=ye.match(/Edge\/(\d+)/))||U[1]>=74)&&(U=ye.match(/Chrome\/(\d+)/))&&(B=+U[1]);var be=B,we=be,Se=O,Ae=!!Object.getOwnPropertySymbols&&!Se((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&we&&we<41})),xe=Ae&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Re=le,Pe=ie,Ee=fe,ke=xe,Oe=E.Object,je=ke?function(e){return"symbol"==typeof e}:function(e){var t=Re("Symbol");return Pe(t)&&Ee(t.prototype,Oe(e))},Ie=E.String,Ne=ie,Te=function(e){try{return Ie(e)}catch(e){return"Object"}},Fe=E.TypeError,Ce=function(e){if(Ne(e))return e;throw Fe(Te(e)+" is not a function")},_e=Ce,Ue=function(e,t){var r=e[t];return null==r?void 0:_e(r)},Be=N,We=ie,De=ue,Ge=E.TypeError,Me={exports:{}},Le=E,qe=Object.defineProperty,Ve=function(e,t){try{qe(Le,e,{value:t,configurable:!0,writable:!0})}catch(r){Le[e]=t}return t},ze=Ve,He="__core-js_shared__",$e=E[He]||ze(He,{}),Je=$e;(Me.exports=function(e,t){return Je[e]||(Je[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var Ke=te,Qe=E.Object,Xe=function(e){return Qe(Ke(e))},Ye=Xe,Ze=q({}.hasOwnProperty),et=Object.hasOwn||function(e,t){return Ze(Ye(e),t)},tt=q,rt=0,nt=Math.random(),ot=tt(1..toString),it=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ot(++rt+nt,36)},at=E,ut=Me.exports,ct=et,st=it,pt=Ae,lt=xe,ft=ut("wks"),dt=at.Symbol,yt=dt&&dt.for,ht=lt?dt:dt&&dt.withoutSetter||st,vt=function(e){if(!ct(ft,e)||!pt&&"string"!=typeof ft[e]){var t="Symbol."+e;pt&&ct(dt,e)?ft[e]=dt[e]:ft[e]=lt&&yt?yt(t):ht(t)}return ft[e]},gt=N,mt=ue,bt=je,wt=Ue,St=function(e,t){var r,n;if("string"===t&&We(r=e.toString)&&!De(n=Be(r,e)))return n;if(We(r=e.valueOf)&&!De(n=Be(r,e)))return n;if("string"!==t&&We(r=e.toString)&&!De(n=Be(r,e)))return n;throw Ge("Can't convert object to primitive value")},At=vt,xt=E.TypeError,Rt=At("toPrimitive"),Pt=function(e,t){if(!mt(e)||bt(e))return e;var r,n=wt(e,Rt);if(n){if(void 0===t&&(t="default"),r=gt(n,e,t),!mt(r)||bt(r))return r;throw xt("Can't convert object to primitive value")}return void 0===t&&(t="number"),St(e,t)},Et=Pt,kt=je,Ot=function(e){var t=Et(e,"string");return kt(t)?t:t+""},jt=ue,It=E.document,Nt=jt(It)&&jt(It.createElement),Tt=function(e){return Nt?It.createElement(e):{}},Ft=Tt,Ct=!j&&!O((function(){return 7!=Object.defineProperty(Ft("div"),"a",{get:function(){return 7}}).a})),_t=j,Ut=N,Bt=T,Wt=W,Dt=oe,Gt=Ot,Mt=et,Lt=Ct,qt=Object.getOwnPropertyDescriptor;k.f=_t?qt:function(e,t){if(e=Dt(e),t=Gt(t),Lt)try{return qt(e,t)}catch(e){}if(Mt(e,t))return Wt(!Ut(Bt.f,e,t),e[t])};var Vt={},zt=E,Ht=ue,$t=zt.String,Jt=zt.TypeError,Kt=function(e){if(Ht(e))return e;throw Jt($t(e)+" is not an object")},Qt=j,Xt=Ct,Yt=Kt,Zt=Ot,er=E.TypeError,tr=Object.defineProperty;Vt.f=Qt?tr:function(e,t,r){if(Yt(e),t=Zt(t),Yt(r),Xt)try{return tr(e,t,r)}catch(e){}if("get"in r||"set"in r)throw er("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var rr=Vt,nr=W,or=j?function(e,t,r){return rr.f(e,t,nr(1,r))}:function(e,t,r){return e[t]=r,e},ir={exports:{}},ar=ie,ur=$e,cr=q(Function.toString);ar(ur.inspectSource)||(ur.inspectSource=function(e){return cr(e)});var sr,pr,lr,fr=ur.inspectSource,dr=ie,yr=fr,hr=E.WeakMap,vr=dr(hr)&&/native code/.test(yr(hr)),gr=Me.exports,mr=it,br=gr("keys"),wr=function(e){return br[e]||(br[e]=mr(e))},Sr={},Ar=vr,xr=E,Rr=q,Pr=ue,Er=or,kr=et,Or=$e,jr=wr,Ir=Sr,Nr="Object already initialized",Tr=xr.TypeError,Fr=xr.WeakMap;if(Ar||Or.state){var Cr=Or.state||(Or.state=new Fr),_r=Rr(Cr.get),Ur=Rr(Cr.has),Br=Rr(Cr.set);sr=function(e,t){if(Ur(Cr,e))throw new Tr(Nr);return t.facade=e,Br(Cr,e,t),t},pr=function(e){return _r(Cr,e)||{}},lr=function(e){return Ur(Cr,e)}}else{var Wr=jr("state");Ir[Wr]=!0,sr=function(e,t){if(kr(e,Wr))throw new Tr(Nr);return t.facade=e,Er(e,Wr,t),t},pr=function(e){return kr(e,Wr)?e[Wr]:{}},lr=function(e){return kr(e,Wr)}}var Dr={set:sr,get:pr,has:lr,enforce:function(e){return lr(e)?pr(e):sr(e,{})},getterFor:function(e){return function(t){var r;if(!Pr(t)||(r=pr(t)).type!==e)throw Tr("Incompatible receiver, "+e+" required");return r}}},Gr=j,Mr=et,Lr=Function.prototype,qr=Gr&&Object.getOwnPropertyDescriptor,Vr=Mr(Lr,"name"),zr={EXISTS:Vr,PROPER:Vr&&"something"===function(){}.name,CONFIGURABLE:Vr&&(!Gr||Gr&&qr(Lr,"name").configurable)},Hr=E,$r=ie,Jr=et,Kr=or,Qr=Ve,Xr=fr,Yr=zr.CONFIGURABLE,Zr=Dr.get,en=Dr.enforce,tn=String(String).split("String");(ir.exports=function(e,t,r,n){var o,i=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,u=!!n&&!!n.noTargetGet,c=n&&void 0!==n.name?n.name:t;$r(r)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Jr(r,"name")||Yr&&r.name!==c)&&Kr(r,"name",c),(o=en(r)).source||(o.source=tn.join("string"==typeof c?c:""))),e!==Hr?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=r:Kr(e,t,r)):a?e[t]=r:Qr(t,r)})(Function.prototype,"toString",(function(){return $r(this)&&Zr(this).source||Xr(this)}));var rn={},nn=Math.ceil,on=Math.floor,an=function(e){var t=+e;return t!=t||0===t?0:(t>0?on:nn)(t)},un=an,cn=Math.max,sn=Math.min,pn=function(e,t){var r=un(e);return r<0?cn(r+t,0):sn(r,t)},ln=an,fn=Math.min,dn=function(e){return e>0?fn(ln(e),9007199254740991):0},yn=dn,hn=function(e){return yn(e.length)},vn=oe,gn=pn,mn=hn,bn=function(e){return function(t,r,n){var o,i=vn(t),a=mn(i),u=gn(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},wn={includes:bn(!0),indexOf:bn(!1)},Sn=et,An=oe,xn=wn.indexOf,Rn=Sr,Pn=q([].push),En=function(e,t){var r,n=An(e),o=0,i=[];for(r in n)!Sn(Rn,r)&&Sn(n,r)&&Pn(i,r);for(;t.length>o;)Sn(n,r=t[o++])&&(~xn(i,r)||Pn(i,r));return i},kn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],On=En,jn=kn.concat("length","prototype");rn.f=Object.getOwnPropertyNames||function(e){return On(e,jn)};var In={};In.f=Object.getOwnPropertySymbols;var Nn=le,Tn=rn,Fn=In,Cn=Kt,_n=q([].concat),Un=Nn("Reflect","ownKeys")||function(e){var t=Tn.f(Cn(e)),r=Fn.f;return r?_n(t,r(e)):t},Bn=et,Wn=Un,Dn=k,Gn=Vt,Mn=O,Ln=ie,qn=/#|\.prototype\./,Vn=function(e,t){var r=Hn[zn(e)];return r==Jn||r!=$n&&(Ln(t)?Mn(t):!!t)},zn=Vn.normalize=function(e){return String(e).replace(qn,".").toLowerCase()},Hn=Vn.data={},$n=Vn.NATIVE="N",Jn=Vn.POLYFILL="P",Kn=Vn,Qn=E,Xn=k.f,Yn=or,Zn=ir.exports,eo=Ve,to=function(e,t){for(var r=Wn(t),n=Gn.f,o=Dn.f,i=0;i<r.length;i++){var a=r[i];Bn(e,a)||n(e,a,o(t,a))}},ro=Kn,no=function(e,t){var r,n,o,i,a,u=e.target,c=e.global,s=e.stat;if(r=c?Qn:s?Qn[u]||eo(u,{}):(Qn[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=Xn(r,n))&&a.value:r[n],!ro(c?n:u+(s?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;to(i,o)}(e.sham||o&&o.sham)&&Yn(i,"sham",!0),Zn(r,n,i,e)}},oo=$,io=Array.isArray||function(e){return"Array"==oo(e)},ao=Ot,uo=Vt,co=W,so=function(e,t,r){var n=ao(t);n in e?uo.f(e,n,co(0,r)):e[n]=r},po={};po[vt("toStringTag")]="z";var lo="[object z]"===String(po),fo=E,yo=lo,ho=ie,vo=$,go=vt("toStringTag"),mo=fo.Object,bo="Arguments"==vo(function(){return arguments}()),wo=yo?vo:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=mo(e),go))?r:bo?vo(t):"Object"==(n=vo(t))&&ho(t.callee)?"Arguments":n},So=q,Ao=O,xo=ie,Ro=wo,Po=fr,Eo=function(){},ko=[],Oo=le("Reflect","construct"),jo=/^\s*(?:class|function)\b/,Io=So(jo.exec),No=!jo.exec(Eo),To=function(e){if(!xo(e))return!1;try{return Oo(Eo,ko,e),!0}catch(e){return!1}},Fo=!Oo||Ao((function(){var e;return To(To.call)||!To(Object)||!To((function(){e=!0}))||e}))?function(e){if(!xo(e))return!1;switch(Ro(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return No||!!Io(jo,Po(e))}:To,Co=E,_o=io,Uo=Fo,Bo=ue,Wo=vt("species"),Do=Co.Array,Go=function(e){var t;return _o(e)&&(t=e.constructor,(Uo(t)&&(t===Do||_o(t.prototype))||Bo(t)&&null===(t=t[Wo]))&&(t=void 0)),void 0===t?Do:t},Mo=function(e,t){return new(Go(e))(0===t?0:t)},Lo=O,qo=be,Vo=vt("species"),zo=function(e){return qo>=51||!Lo((function(){var t=[];return(t.constructor={})[Vo]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ho=no,$o=E,Jo=O,Ko=io,Qo=ue,Xo=Xe,Yo=hn,Zo=so,ei=Mo,ti=zo,ri=be,ni=vt("isConcatSpreadable"),oi=9007199254740991,ii="Maximum allowed index exceeded",ai=$o.TypeError,ui=ri>=51||!Jo((function(){var e=[];return e[ni]=!1,e.concat()[0]!==e})),ci=ti("concat"),si=function(e){if(!Qo(e))return!1;var t=e[ni];return void 0!==t?!!t:Ko(e)};Ho({target:"Array",proto:!0,forced:!ui||!ci},{concat:function(e){var t,r,n,o,i,a=Xo(this),u=ei(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(si(i=-1===t?a:arguments[t])){if(c+(o=Yo(i))>oi)throw ai(ii);for(r=0;r<o;r++,c++)r in i&&Zo(u,c,i[r])}else{if(c>=oi)throw ai(ii);Zo(u,c++,i)}return u.length=c,u}});!function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new O(n||[]);return i._invoke=function(e,t,r){var n=l;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===y){if("throw"===o)throw i;return I()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=P(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var c=p(e,t,r);if("normal"===c.type){if(n=r.done?y:f,c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=y,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var l="suspendedStart",f="suspendedYield",d="executing",y="completed",h={};function v(){}function g(){}function m(){}var b={};b[i]=function(){return this};var w=Object.getPrototypeOf,S=w&&w(w(j([])));S&&S!==r&&n.call(S,i)&&(b=S);var A=m.prototype=v.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function r(o,i,a,u){var c=p(e[o],e,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function P(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=p(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function j(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:I}}function I(){return{value:t,done:!0}}return g.prototype=A.constructor=m,m.constructor=g,g.displayName=c(m,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,u,"GeneratorFunction")),e.prototype=Object.create(A),e},e.awrap=function(e){return{__await:e}},x(R.prototype),R.prototype[a]=function(){return this},e.AsyncIterator=R,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new R(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(A),c(A,u,"Generator"),A[i]=function(){return this},A.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=j,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var pi=j,li=zr.EXISTS,fi=q,di=Vt.f,yi=Function.prototype,hi=fi(yi.toString),vi=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,gi=fi(vi.exec);pi&&!li&&di(yi,"name",{configurable:!0,get:function(){try{return gi(vi,hi(this))[1]}catch(e){return""}}});var mi=function(e){l(r,e);var t=w(r);function r(e){var n;u(this,r);var o="This function is not supported in ".concat(e," environment");return n=t.call(this,o),Error.captureStackTrace&&Error.captureStackTrace(m(n),r),n.name="UnsupportedPlatformError",n.platform=e,Object.setPrototypeOf(m(n),r.prototype),n}return s(r)}(v(Error)),bi=function(){var e=a(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("object"!==("undefined"==typeof kintone?"undefined":o(kintone))||null===kintone||"function"!=typeof kintone.getRequestToken){e.next=2;break}return e.abrupt("return",kintone.getRequestToken());case 2:if("object"!==("undefined"==typeof garoon?"undefined":o(garoon))||null===garoon||"function"!=typeof(null===(t=garoon.connect)||void 0===t||null===(r=t.kintone)||void 0===r?void 0:r.getRequestToken)){e.next=4;break}return e.abrupt("return",garoon.connect.kintone.getRequestToken());case 4:throw new Error("session authentication must specify a request token");case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),wi=Object.freeze({__proto__:null,readFileFromPath:function(e){throw new mi("Browser")},getRequestToken:bi,getDefaultAuth:function(){return{type:"session"}},buildPlatformDependentConfig:function(){return{}},buildHeaders:function(){return{}},buildFormDataValue:function(e){return new Blob([e])},buildBaseUrl:function(e){if(e)return e;var t=location,r=t.host,n=t.protocol;return"".concat(n,"//").concat(r)},getVersion:function(){return"2.0.28"}}),Si=Ce,Ai=q(q.bind),xi=function(e,t){return Si(e),void 0===t?e:Ai?Ai(e,t):function(){return e.apply(t,arguments)}},Ri=Z,Pi=Xe,Ei=hn,ki=Mo,Oi=q([].push),ji=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(c,s,p,l){for(var f,d,y=Pi(c),h=Ri(y),v=xi(s,p),g=Ei(h),m=0,b=l||ki,w=t?b(c,g):r||a?b(c,0):void 0;g>m;m++)if((u||m in h)&&(d=v(f=h[m],m,y),e))if(t)w[m]=d;else if(d)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:Oi(w,f)}else switch(e){case 4:return!1;case 7:Oi(w,f)}return i?-1:n||o?o:w}},Ii={forEach:ji(0),map:ji(1),filter:ji(2),some:ji(3),every:ji(4),find:ji(5),findIndex:ji(6),filterReject:ji(7)}.map;no({target:"Array",proto:!0,forced:!zo("map")},{map:function(e){return Ii(this,e,arguments.length>1?arguments[1]:void 0)}});var Ni=function(e){var t=e.endpointName,r=e.guestSpaceId,n=e.preview,o=void 0!==r?"/guest/".concat(r):"",i=n?"/preview":"";return"/k".concat(o,"/v1").concat(i,"/").concat(t,".json")},Ti=["endpointName"],Fi=function(){function e(t,r){u(this,e),this.client=t,this.guestSpaceId=r,this.REQUESTS_LENGTH_LIMIT=20}return s(e,[{key:"send",value:function(e){var t=this,r=e.requests.map((function(e){if("endpointName"in e){var r=e.endpointName,o=g(e,Ti);return n({api:t.buildPathWithGuestSpaceId({endpointName:r})},o)}return e})),o=this.buildPathWithGuestSpaceId({endpointName:"bulkRequest"});return this.client.post(o,{requests:r})}},{key:"buildPathWithGuestSpaceId",value:function(e){return Ni(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Ci=["preview"],_i=["preview"],Ui=["preview"],Bi=["preview"],Wi=["preview"],Di=["preview"],Gi=["preview"],Mi=["preview"],Li=["preview"],qi=["preview"],Vi=["preview"],zi=["preview"],Hi=["preview"],$i=["preview"],Ji=function(){function e(t,r){u(this,e),this.client=t,this.guestSpaceId=r}var t;return s(e,[{key:"getFormFields",value:function(e){var t=e.preview,r=g(e,Ci),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:t});return this.client.get(o,n({},r))}},{key:"addFormFields",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.post(t,e)}},{key:"updateFormFields",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.put(t,e)}},{key:"deleteFormFields",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.delete(t,e)}},{key:"getFormLayout",value:function(e){var t=e.preview,r=g(e,_i),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:t});return this.client.get(o,n({},r))}},{key:"updateFormLayout",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:!0});return this.client.put(t,e)}},{key:"getViews",value:function(e){var t=e.preview,r=g(e,Ui),n=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:t});return this.client.get(n,r)}},{key:"updateViews",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:!0});return this.client.put(t,e)}},{key:"getApp",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app"});return this.client.get(t,e)}},{key:"getApps",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"apps"});return this.client.get(t,e)}},{key:"addApp",value:(t=a(regeneratorRuntime.mark((function e(t){var r,o,i,a,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.name,o=t.space,i=this.buildPathWithGuestSpaceId({endpointName:"app",preview:!0}),!o){e.next=9;break}return a=this.buildPathWithGuestSpaceId({endpointName:"space"}),e.next=6,this.client.get(a,{id:o});case 6:return u=e.sent,c=u.defaultThread,e.abrupt("return",this.client.post(i,n(n({},t),{},{thread:c})));case 9:return e.abrupt("return",this.client.post(i,{name:r}));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getAppSettings",value:function(e){var t=e.preview,r=g(e,Bi),n=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:t});return this.client.get(n,r)}},{key:"updateAppSettings",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:!0});return this.client.put(t,e)}},{key:"getProcessManagement",value:function(e){var t=e.preview,r=g(e,Wi),n=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:t});return this.client.get(n,r)}},{key:"updateProcessManagement",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:!0});return this.client.put(t,e)}},{key:"getDeployStatus",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.get(t,e)}},{key:"deployApp",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.post(t,e)}},{key:"getFieldAcl",value:function(e){var t=e.preview,r=g(e,Di),o=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:t});return this.client.get(o,n({},r))}},{key:"updateFieldAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:!0});return this.client.put(t,e)}},{key:"getAppAcl",value:function(e){var t=e.preview,r=g(e,Gi),o=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:t});return this.client.get(o,n({},r))}},{key:"updateAppAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:!0});return this.client.put(t,e)}},{key:"evaluateRecordsAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/acl/evaluate"});return this.client.get(t,e)}},{key:"getRecordAcl",value:function(e){var t=e.preview,r=g(e,Mi),o=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:t});return this.client.get(o,n({},r))}},{key:"updateRecordAcl",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:!0});return this.client.put(t,e)}},{key:"getAppCustomize",value:function(e){var t=e.preview,r=g(e,Li),o=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:t});return this.client.get(o,n({},r))}},{key:"updateAppCustomize",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:!0});return this.client.put(t,e)}},{key:"getGeneralNotifications",value:function(e){var t=e.preview,r=g(e,qi),o=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:t});return this.client.get(o,n({},r))}},{key:"updateGeneralNotifications",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:!0});return this.client.put(t,e)}},{key:"getPerRecordNotifications",value:function(e){var t=e.preview,r=g(e,Vi),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:t});return this.client.get(n,r)}},{key:"updatePerRecordNotifications",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:!0});return this.client.put(t,e)}},{key:"getReminderNotifications",value:function(e){var t=e.preview,r=g(e,zi),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:t});return this.client.get(n,r)}},{key:"updateReminderNotifications",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:!0});return this.client.put(t,e)}},{key:"getReports",value:function(e){var t=e.preview,r=g(e,Hi),n=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:t});return this.client.get(n,r)}},{key:"updateReports",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:!0});return this.client.put(t,e)}},{key:"getAppActions",value:function(e){var t=e.preview,r=g(e,$i),n=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:t});return this.client.get(n,r)}},{key:"updateAppActions",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:!0});return this.client.put(t,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return Ni(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),Ki=En,Qi=kn,Xi=Object.keys||function(e){return Ki(e,Qi)},Yi=j,Zi=q,ea=N,ta=O,ra=Xi,na=In,oa=T,ia=Xe,aa=Z,ua=Object.assign,ca=Object.defineProperty,sa=Zi([].concat),pa=!ua||ta((function(){if(Yi&&1!==ua({b:1},ua(ca({},"a",{enumerable:!0,get:function(){ca(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=ua({},e)[r]||ra(ua({},t)).join("")!=n}))?function(e,t){for(var r=ia(e),n=arguments.length,o=1,i=na.f,a=oa.f;n>o;)for(var u,c=aa(arguments[o++]),s=i?sa(ra(c),i(c)):ra(c),p=s.length,l=0;p>l;)u=s[l++],Yi&&!ea(a,c,u)||(r[u]=c[u]);return r}:ua;no({target:"Object",stat:!0,forced:Object.assign!==pa},{assign:pa});var la,fa=wo,da=E.String,ya=function(e){if("Symbol"===fa(e))throw TypeError("Cannot convert a Symbol value to a string");return da(e)},ha=Kt,va=function(){var e=ha(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},ga=O,ma=E.RegExp,ba=ga((function(){var e=ma("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),wa=ba||ga((function(){return!ma("a","y").sticky})),Sa={BROKEN_CARET:ba||ga((function(){var e=ma("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:wa,UNSUPPORTED_Y:ba},Aa=Vt,xa=Kt,Ra=oe,Pa=Xi,Ea=j?Object.defineProperties:function(e,t){xa(e);for(var r,n=Ra(t),o=Pa(t),i=o.length,a=0;i>a;)Aa.f(e,r=o[a++],n[r]);return e},ka=le("document","documentElement"),Oa=Kt,ja=Ea,Ia=kn,Na=Sr,Ta=ka,Fa=Tt,Ca=wr("IE_PROTO"),_a=function(){},Ua=function(e){return"<script>"+e+"</"+"script>"},Ba=function(e){e.write(Ua("")),e.close();var t=e.parentWindow.Object;return e=null,t},Wa=function(){try{la=new ActiveXObject("htmlfile")}catch(e){}var e,t;Wa="undefined"!=typeof document?document.domain&&la?Ba(la):((t=Fa("iframe")).style.display="none",Ta.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ua("document.F=Object")),e.close(),e.F):Ba(la);for(var r=Ia.length;r--;)delete Wa.prototype[Ia[r]];return Wa()};Na[Ca]=!0;var Da,Ga,Ma=Object.create||function(e,t){var r;return null!==e?(_a.prototype=Oa(e),r=new _a,_a.prototype=null,r[Ca]=e):r=Wa(),void 0===t?r:ja(r,t)},La=O,qa=E.RegExp,Va=La((function(){var e=qa(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),za=O,Ha=E.RegExp,$a=za((function(){var e=Ha("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ja=N,Ka=q,Qa=ya,Xa=va,Ya=Sa,Za=Me.exports,eu=Ma,tu=Dr.get,ru=Va,nu=$a,ou=Za("native-string-replace",String.prototype.replace),iu=RegExp.prototype.exec,au=iu,uu=Ka("".charAt),cu=Ka("".indexOf),su=Ka("".replace),pu=Ka("".slice),lu=(Ga=/b*/g,Ja(iu,Da=/a/,"a"),Ja(iu,Ga,"a"),0!==Da.lastIndex||0!==Ga.lastIndex),fu=Ya.BROKEN_CARET,du=void 0!==/()??/.exec("")[1];(lu||du||fu||ru||nu)&&(au=function(e){var t,r,n,o,i,a,u,c=this,s=tu(c),p=Qa(e),l=s.raw;if(l)return l.lastIndex=c.lastIndex,t=Ja(au,l,p),c.lastIndex=l.lastIndex,t;var f=s.groups,d=fu&&c.sticky,y=Ja(Xa,c),h=c.source,v=0,g=p;if(d&&(y=su(y,"y",""),-1===cu(y,"g")&&(y+="g"),g=pu(p,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==uu(p,c.lastIndex-1))&&(h="(?: "+h+")",g=" "+g,v++),r=new RegExp("^(?:"+h+")",y)),du&&(r=new RegExp("^"+h+"$(?!\\s)",y)),lu&&(n=c.lastIndex),o=Ja(iu,d?r:c,g),d?o?(o.input=pu(o.input,v),o[0]=pu(o[0],v),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:lu&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),du&&o&&o.length>1&&Ja(ou,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&f)for(o.groups=a=eu(null),i=0;i<f.length;i++)a[(u=f[i])[0]]=o[u[1]];return o});var yu=au;no({target:"RegExp",proto:!0,forced:/./.exec!==yu},{exec:yu});var hu=q,vu=ir.exports,gu=yu,mu=O,bu=vt,wu=or,Su=bu("species"),Au=RegExp.prototype,xu=q,Ru=an,Pu=ya,Eu=te,ku=xu("".charAt),Ou=xu("".charCodeAt),ju=xu("".slice),Iu=function(e){return function(t,r){var n,o,i=Pu(Eu(t)),a=Ru(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=Ou(i,a))<55296||n>56319||a+1===u||(o=Ou(i,a+1))<56320||o>57343?e?ku(i,a):n:e?ju(i,a,a+2):o-56320+(n-55296<<10)+65536}},Nu={codeAt:Iu(!1),charAt:Iu(!0)}.charAt,Tu=N,Fu=Kt,Cu=ie,_u=$,Uu=yu,Bu=E.TypeError,Wu=N,Du=Kt,Gu=dn,Mu=ya,Lu=te,qu=Ue,Vu=function(e,t,r){return t+(r?Nu(e,t).length:1)},zu=function(e,t){var r=e.exec;if(Cu(r)){var n=Tu(r,e,t);return null!==n&&Fu(n),n}if("RegExp"===_u(e))return Tu(Uu,e,t);throw Bu("RegExp#exec called on incompatible receiver")};(function(e,t,r,n){var o=bu(e),i=!mu((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!mu((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Su]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var u=hu(/./[o]),c=t(o,""[e],(function(e,t,r,n,o){var a=hu(e),c=t.exec;return c===gu||c===Au.exec?i&&!o?{done:!0,value:u(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));vu(String.prototype,e,c[0]),vu(Au,o,c[1])}n&&wu(Au[o],"sham",!0)})("match",(function(e,t,r){return[function(t){var r=Lu(this),n=null==t?void 0:qu(t,e);return n?Wu(n,t,r):new RegExp(t)[e](Mu(r))},function(e){var n=Du(this),o=Mu(e),i=r(t,n,o);if(i.done)return i.value;if(!n.global)return zu(n,o);var a=n.unicode;n.lastIndex=0;for(var u,c=[],s=0;null!==(u=zu(n,o));){var p=Mu(u[0]);c[s]=p,""===p&&(n.lastIndex=Vu(o,Gu(n.lastIndex),a)),s++}return 0===s?null:c}]}));var Hu=E,$u=ie,Ju=Hu.String,Ku=Hu.TypeError,Qu=q,Xu=Kt,Yu=function(e){if("object"==typeof e||$u(e))return e;throw Ku("Can't set "+Ju(e)+" as a prototype")},Zu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Qu(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Xu(r),Yu(n),t?e(r,n):r.__proto__=n,r}}():void 0),ec=ie,tc=ue,rc=Zu,nc=q(1..valueOf),oc=te,ic=ya,ac=q("".replace),uc="[\t\n\v\f\r \u2028\u2029\ufeff]",cc=RegExp("^"+uc+uc+"*"),sc=RegExp(uc+uc+"*$"),pc=function(e){return function(t){var r=ic(oc(t));return 1&e&&(r=ac(r,cc,"")),2&e&&(r=ac(r,sc,"")),r}},lc={start:pc(1),end:pc(2),trim:pc(3)},fc=j,dc=E,yc=q,hc=Kn,vc=ir.exports,gc=et,mc=function(e,t,r){var n,o;return rc&&ec(n=t.constructor)&&n!==r&&tc(o=n.prototype)&&o!==r.prototype&&rc(e,o),e},bc=fe,wc=je,Sc=Pt,Ac=O,xc=rn.f,Rc=k.f,Pc=Vt.f,Ec=nc,kc=lc.trim,Oc="Number",jc=dc.Number,Ic=jc.prototype,Nc=dc.TypeError,Tc=yc("".slice),Fc=yc("".charCodeAt),Cc=function(e){var t=Sc(e,"number");return"bigint"==typeof t?t:_c(t)},_c=function(e){var t,r,n,o,i,a,u,c,s=Sc(e,"number");if(wc(s))throw Nc("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=kc(s),43===(t=Fc(s,0))||45===t){if(88===(r=Fc(s,2))||120===r)return NaN}else if(48===t){switch(Fc(s,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+s}for(a=(i=Tc(s,2)).length,u=0;u<a;u++)if((c=Fc(i,u))<48||c>o)return NaN;return parseInt(i,n)}return+s};if(hc(Oc,!jc(" 0o1")||!jc("0b1")||jc("+0x1"))){for(var Uc,Bc=function(e){var t=arguments.length<1?0:jc(Cc(e)),r=this;return bc(Ic,r)&&Ac((function(){Ec(r)}))?mc(Object(t),r,Bc):t},Wc=fc?xc(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(","),Dc=0;Wc.length>Dc;Dc++)gc(jc,Uc=Wc[Dc])&&!gc(Bc,Uc)&&Pc(Bc,Uc,Rc(jc,Uc));Bc.prototype=Ic,Ic.constructor=Bc,vc(dc,Oc,Bc)}var Gc=wo,Mc=lo?{}.toString:function(){return"[object "+Gc(this)+"]"},Lc=lo,qc=ir.exports,Vc=Mc;Lc||qc(Object.prototype,"toString",Vc,{unsafe:!0});var zc=q([].slice),Hc=no,$c=E,Jc=io,Kc=Fo,Qc=ue,Xc=pn,Yc=hn,Zc=oe,es=so,ts=vt,rs=zc,ns=zo("slice"),os=ts("species"),is=$c.Array,as=Math.max;Hc({target:"Array",proto:!0,forced:!ns},{slice:function(e,t){var r,n,o,i=Zc(this),a=Yc(i),u=Xc(e,a),c=Xc(void 0===t?a:t,a);if(Jc(i)&&(r=i.constructor,(Kc(r)&&(r===is||Jc(r.prototype))||Qc(r)&&null===(r=r[os]))&&(r=void 0),r===is||void 0===r))return rs(i,u,c);for(n=new(void 0===r?is:r)(as(c-u,0)),o=0;u<c;u++,o++)u in i&&es(n,o,i[u]);return n.length=o,n}});var us=Xe,cs=Xi;no({target:"Object",stat:!0,forced:O((function(){cs(1)}))},{keys:function(e){return cs(us(e))}});var ss=function(e){l(r,e);var t=w(r);function r(e,n,o,i,a){var c;u(this,r);var s=o-n.length,p=r.extractErrorIndex(s,i,a),l=r.buildErrorMessage(s,o,p);return(c=t.call(this,l)).name="KintoneAllRecordsError",c.processedRecordsResult=e,c.unprocessedRecords=n,c.error=i,c.errorIndex=p,c.message=l,Object.setPrototypeOf(m(c),r.prototype),c}return s(r,null,[{key:"parseErrorIndex",value:function(e){var t=Object.keys(e)[0].match(/records\[(\d+)\]/);return t?Number(t[1]):null}},{key:"extractErrorIndex",value:function(e,t,n){if(void 0!==t.bulkRequestIndex&&t.errors){var o=r.parseErrorIndex(t.errors);if(null!==o)return e+t.bulkRequestIndex*n+o}}},{key:"buildErrorMessage",value:function(e,t,r){var n="";return void 0!==r&&(n="An error occurred at records[".concat(r,"]. ")),n+="".concat(e,"/").concat(t," records are processed successfully")}}]),r}(v(Error)),ps=["condition","orderBy","withCursor"],ls=["fields"],fs=["condition"],ds=["condition","orderBy"],ys=function(){function e(t,r,n){u(this,e),this.client=t,this.bulkRequestClient=r,this.guestSpaceId=n,this.didWarnMaximumOffsetValue=!1}var t,r,o,i,c,l,f,d,y,h,v,m,b,w,A,x,R,P;return s(e,[{key:"getRecord",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.get(t,e)}},{key:"addRecord",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.post(t,e)}},{key:"updateRecord",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.put(t,e)}},{key:"upsertRecord",value:(P=a(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.app,n=t.updateKey,o=t.record,e.next=3,this.getRecords({app:r,query:"".concat(n.field,' = "').concat(n.value,'"')});case 3:if(i=e.sent,!((a=i.records).length>0)){e.next=13;break}if("__ID__"!==a[0].$id.type){e.next=12;break}return e.next=9,this.updateRecord(t);case 9:return u=e.sent,c=u.revision,e.abrupt("return",{id:a[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 e.abrupt("return",this.addRecord({app:r,record:Object.assign({},o,p({},n.field,{value:n.value}))}));case 14:case"end":return e.stop()}}),e,this)}))),function(e){return P.apply(this,arguments)})},{key:"getRecords",value:(R=a(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),e.next=3,this.client.get(r,t);case 3:return n=e.sent,this.warnMaximumOffsetValueIfNeeded(t.query),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return R.apply(this,arguments)})},{key:"warnMaximumOffsetValueIfNeeded",value:function(e){if(e){var t=e.match(/offset\s+(\d+)/i);!this.didWarnMaximumOffsetValue&&t&&Number(t[1])>1e4&&(this.didWarnMaximumOffsetValue=!0,console.warn("Warning: The maximum offset value will be limited to 10,000 in the future. Please use `createCursor()` and `getRecordsByCursor()` instead."))}}},{key:"addRecords",value:(x=a(regeneratorRuntime.mark((function e(t){var r,n,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),e.next=3,this.client.post(r,t);case 3:return n=e.sent,o=n.ids,i=n.revisions,e.abrupt("return",{ids:o,revisions:i,records:o.map((function(e,t){return{id:e,revision:i[t]}}))});case 7:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"updateRecords",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.put(t,e)}},{key:"deleteRecords",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.delete(t,e)}},{key:"createCursor",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.post(t,e)}},{key:"getRecordsByCursor",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.get(t,e)}},{key:"deleteCursor",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.delete(t,e)}},{key:"getAllRecords",value:(A=a(regeneratorRuntime.mark((function e(t){var r,o,i,a,u,c,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.condition,o=t.orderBy,i=t.withCursor,a=void 0===i||i,u=g(t,ps),o){e.next=3;break}return e.abrupt("return",this.getAllRecordsWithId(n(n({},u),{},{condition:r})));case 3:if(!a){e.next=7;break}return c=r?"".concat(r," "):"",s="".concat(c).concat(o?"order by ".concat(o):""),e.abrupt("return",this.getAllRecordsWithCursor(n(n({},u),{},{query:s})));case 7:return e.abrupt("return",this.getAllRecordsWithOffset(n(n({},u),{},{orderBy:o,condition:r})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"getAllRecordsWithId",value:(w=a(regeneratorRuntime.mark((function e(t){var r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.fields,o=g(t,ls),(i=r)&&i.length>0&&-1===i.indexOf("$id")&&(i=[].concat(S(i),["$id"])),e.abrupt("return",this.getAllRecordsRecursiveWithId(n(n({},o),{},{fields:i}),"0",[]));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return w.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithId",value:(b=a(regeneratorRuntime.mark((function e(t,r,o){var i,a,u,c,s,p,l,f,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=500,a=t.condition,u=g(t,fs),c=a?"(".concat(a,") and "):"",s="".concat(c,"$id > ").concat(r," order by $id asc limit ").concat(i),e.next=6,this.getRecords(n(n({},u),{},{query:s}));case 6:if(p=e.sent,l=o.concat(p.records),!(p.records.length<i)){e.next=10;break}return e.abrupt("return",l);case 10:if("__ID__"!==(f=p.records[p.records.length-1]).$id.type){e.next=14;break}return d=f.$id.value,e.abrupt("return",this.getAllRecordsRecursiveWithId(t,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 e.stop()}}),e,this)}))),function(e,t,r){return b.apply(this,arguments)})},{key:"getAllRecordsWithOffset",value:(m=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getAllRecordsRecursiveWithOffset(t,0,[]));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"getAllRecordsRecursiveWithOffset",value:(v=a(regeneratorRuntime.mark((function e(t,r,o){var i,a,u,c,s,p,l,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=500,a=t.condition,u=t.orderBy,c=g(t,ds),s=a?"".concat(a," "):"",p="".concat(s).concat(u?"order by ".concat(u," "):"","limit ").concat(i," offset ").concat(r),e.next=6,this.getRecords(n(n({},c),{},{query:p}));case 6:if(l=e.sent,f=o.concat(l.records),!(l.records.length<i)){e.next=10;break}return e.abrupt("return",f);case 10:return e.abrupt("return",this.getAllRecordsRecursiveWithOffset(t,r+i,f));case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return v.apply(this,arguments)})},{key:"getAllRecordsWithCursor",value:(h=a(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.createCursor(t);case 2:return r=e.sent,n=r.id,e.prev=4,e.next=7,this.getAllRecordsRecursiveByCursor(n,[]);case 7:return e.abrupt("return",e.sent);case 10:return e.prev=10,e.t0=e.catch(4),e.next=14,this.deleteCursor({id:n});case 14:throw e.t0;case 15:case"end":return e.stop()}}),e,this,[[4,10]])}))),function(e){return h.apply(this,arguments)})},{key:"getAllRecordsRecursiveByCursor",value:(y=a(regeneratorRuntime.mark((function e(t,r){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRecordsByCursor({id:t});case 2:if(n=e.sent,o=r.concat(n.records),!n.next){e.next=6;break}return e.abrupt("return",this.getAllRecordsRecursiveByCursor(t,o));case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return y.apply(this,arguments)})},{key:"addAllRecords",value:(d=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.records.every((function(e){return!Array.isArray(e)&&e instanceof Object}))){e.next=2;break}throw new Error("the `records` parameter must be an array of object.");case 2:return e.abrupt("return",this.addAllRecordsRecursive(t,t.records.length,[]));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"addAllRecordsRecursive",value:(f=a(regeneratorRuntime.mark((function e(t,r,n){var o,i,a,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,i=t.app,a=t.records,0!==(u=a.slice(0,o)).length){e.next=5;break}return e.abrupt("return",{records:n});case 5:return e.prev=5,e.next=8,this.addAllRecordsWithBulkRequest({app:i,records:u});case 8:c=e.sent,e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(5),new ss({records:n},a,r,e.t0,100);case 14:return e.abrupt("return",this.addAllRecordsRecursive({app:i,records:a.slice(o)},r,n.concat(c)));case 15:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(e,t,r){return f.apply(this,arguments)})},{key:"addAllRecordsWithBulkRequest",value:(l=a(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.separateArrayRecursive(100,[],t.records),n=r.map((function(e){return{method:"POST",endpointName:"records",payload:{app:t.app,records:e}}})),e.next=4,this.bulkRequestClient.send({requests:n});case 4:return o=e.sent.results,e.abrupt("return",o.map((function(e){var t=e.ids,r=e.revisions;return t.map((function(e,t){return{id:e,revision:r[t]}}))})).reduce((function(e,t){return e.concat(t)}),[]));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"updateAllRecords",value:(c=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.updateAllRecordsRecursive(t,t.records.length,[]));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"updateAllRecordsRecursive",value:(i=a(regeneratorRuntime.mark((function e(t,r,n){var o,i,a,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,i=t.app,a=t.records,0!==(u=a.slice(0,o)).length){e.next=5;break}return e.abrupt("return",{records:n});case 5:return e.prev=5,e.next=8,this.updateAllRecordsWithBulkRequest({app:i,records:u});case 8:c=e.sent,e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(5),new ss({records:n},a,r,e.t0,100);case 14:return e.abrupt("return",this.updateAllRecordsRecursive({app:i,records:a.slice(o)},r,n.concat(c)));case 15:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(e,t,r){return i.apply(this,arguments)})},{key:"updateAllRecordsWithBulkRequest",value:(o=a(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.separateArrayRecursive(100,[],t.records),n=r.map((function(e){return{method:"PUT",endpointName:"records",payload:{app:t.app,records:e}}})),e.next=4,this.bulkRequestClient.send({requests:n});case 4:return o=e.sent.results,e.abrupt("return",o.map((function(e){return e.records})).reduce((function(e,t){return e.concat(t)}),[]));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"deleteAllRecords",value:function(e){return this.deleteAllRecordsRecursive(e,e.records.length)}},{key:"deleteAllRecordsRecursive",value:(r=a(regeneratorRuntime.mark((function e(t,r){var n,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,o=t.app,i=t.records,0!==(a=i.slice(0,n)).length){e.next=5;break}return e.abrupt("return",{});case 5:return e.prev=5,e.next=8,this.deleteAllRecordsWithBulkRequest({app:o,records:a});case 8:e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(5),new ss({},i,r,e.t0,100);case 13:return e.abrupt("return",this.deleteAllRecordsRecursive({app:o,records:i.slice(n)},r));case 14:case"end":return e.stop()}}),e,this,[[5,10]])}))),function(e,t){return r.apply(this,arguments)})},{key:"deleteAllRecordsWithBulkRequest",value:(t=a(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.separateArrayRecursive(100,[],t.records),n=r.map((function(e){return{method:"DELETE",endpointName:"records",payload:{app:t.app,ids:e.map((function(e){return e.id})),revisions:e.map((function(e){return e.revision}))}}})),e.next=4,this.bulkRequestClient.send({requests:n});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"separateArrayRecursive",value:function(e,t,r){var n=r.slice(0,e);return 0===n.length?t:this.separateArrayRecursive(e,[].concat(S(t),[n]),r.slice(e))}},{key:"addRecordComment",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.post(t,e)}},{key:"deleteRecordComment",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.delete(t,e)}},{key:"getRecordComments",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comments"});return this.client.get(t,e)}},{key:"updateRecordAssignees",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/assignees"});return this.client.put(t,e)}},{key:"updateRecordStatus",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/status"});return this.client.put(t,e)}},{key:"updateRecordsStatus",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/status"});return this.client.put(t,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return Ni(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),hs="object"==typeof self?self.FormData:window.FormData,vs=function(){function e(t,r){u(this,e),this.client=t,this.guestSpaceId=r}var r;return s(e,[{key:"uploadFile",value:(r=a(regeneratorRuntime.mark((function e(r){var n,o,i,a,u,c,s,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.buildPathWithGuestSpaceId({endpointName:"file"}),o=new hs,!("path"in r.file)){e.next=19;break}return e.prev=3,e.next=6,t.readFileFromPath(r.file.path);case 6:i=e.sent,a=i.name,u=i.data,o.append("file",u,a),e.next=17;break;case 12:if(e.prev=12,e.t0=e.catch(3),!(e.t0 instanceof mi)){e.next=16;break}throw new Error("uploadFile doesn't allow to accept a file path in ".concat(e.t0.platform," environment."));case 16:throw e.t0;case 17:e.next=21;break;case 19:c=r.file,s=c.name,p=c.data,o.append("file",t.buildFormDataValue(p),s);case 21:return e.abrupt("return",this.client.postData(n,o));case 22:case"end":return e.stop()}}),e,this,[[3,12]])}))),function(e){return r.apply(this,arguments)})},{key:"downloadFile",value:function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"file"});return this.client.getData(t,e)}},{key:"buildPathWithGuestSpaceId",value:function(e){return Ni(n(n({},e),{},{guestSpaceId:this.guestSpaceId}))}}]),e}(),gs={exports:{}},ms=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},bs=ms,ws=Object.prototype.toString;function Ss(e){return"[object Array]"===ws.call(e)}function As(e){return void 0===e}function xs(e){return null!==e&&"object"==typeof e}function Rs(e){if("[object Object]"!==ws.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function Ps(e){return"[object Function]"===ws.call(e)}function Es(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),Ss(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var ks={isArray:Ss,isArrayBuffer:function(e){return"[object ArrayBuffer]"===ws.call(e)},isBuffer:function(e){return null!==e&&!As(e)&&null!==e.constructor&&!As(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:xs,isPlainObject:Rs,isUndefined:As,isDate:function(e){return"[object Date]"===ws.call(e)},isFile:function(e){return"[object File]"===ws.call(e)},isBlob:function(e){return"[object Blob]"===ws.call(e)},isFunction:Ps,isStream:function(e){return xs(e)&&Ps(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:Es,merge:function e(){var t={};function r(r,n){Rs(t[n])&&Rs(r)?t[n]=e(t[n],r):Rs(r)?t[n]=e({},r):Ss(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)Es(arguments[n],r);return t},extend:function(e,t,r){return Es(t,(function(t,n){e[n]=r&&"function"==typeof t?bs(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}},Os=ks;function js(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Is=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(Os.isURLSearchParams(t))n=t.toString();else{var o=[];Os.forEach(t,(function(e,t){null!=e&&(Os.isArray(e)?t+="[]":e=[e],Os.forEach(e,(function(e){Os.isDate(e)?e=e.toISOString():Os.isObject(e)&&(e=JSON.stringify(e)),o.push(js(t)+"="+js(e))})))})),n=o.join("&")}if(n){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},Ns=ks;function Ts(){this.handlers=[]}Ts.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},Ts.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Ts.prototype.forEach=function(e){Ns.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var Fs=Ts,Cs="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function _s(){throw new Error("setTimeout has not been defined")}function Us(){throw new Error("clearTimeout has not been defined")}var Bs=_s,Ws=Us;function Ds(e){if(Bs===setTimeout)return setTimeout(e,0);if((Bs===_s||!Bs)&&setTimeout)return Bs=setTimeout,setTimeout(e,0);try{return Bs(e,0)}catch(t){try{return Bs.call(null,e,0)}catch(t){return Bs.call(this,e,0)}}}"function"==typeof Cs.setTimeout&&(Bs=setTimeout),"function"==typeof Cs.clearTimeout&&(Ws=clearTimeout);var Gs,Ms=[],Ls=!1,qs=-1;function Vs(){Ls&&Gs&&(Ls=!1,Gs.length?Ms=Gs.concat(Ms):qs=-1,Ms.length&&zs())}function zs(){if(!Ls){var e=Ds(Vs);Ls=!0;for(var t=Ms.length;t;){for(Gs=Ms,Ms=[];++qs<t;)Gs&&Gs[qs].run();qs=-1,t=Ms.length}Gs=null,Ls=!1,function(e){if(Ws===clearTimeout)return clearTimeout(e);if((Ws===Us||!Ws)&&clearTimeout)return Ws=clearTimeout,clearTimeout(e);try{Ws(e)}catch(t){try{return Ws.call(null,e)}catch(t){return Ws.call(this,e)}}}(e)}}function Hs(e,t){this.fun=e,this.array=t}Hs.prototype.run=function(){this.fun.apply(null,this.array)};function $s(){}var Js=$s,Ks=$s,Qs=$s,Xs=$s,Ys=$s,Zs=$s,ep=$s;var tp=Cs.performance||{},rp=tp.now||tp.mozNow||tp.msNow||tp.oNow||tp.webkitNow||function(){return(new Date).getTime()};var np=new Date;var op={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Ms.push(new Hs(e,t)),1!==Ms.length||Ls||Ds(zs)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Js,addListener:Ks,once:Qs,off:Xs,removeListener:Ys,removeAllListeners:Zs,emit:ep,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*rp.call(tp),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-np)/1e3}},ip=ks,ap=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.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}},e},up=ap,cp=function(e,t,r,n,o){var i=new Error(e);return up(i,t,r,n,o)},sp=cp,pp=ks,lp=pp.isStandardBrowserEnv()?{write:function(e,t,r,n,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),pp.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),pp.isString(n)&&a.push("path="+n),pp.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},fp=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)},dp=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},yp=ks,hp=["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"],vp=ks,gp=vp.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=vp.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0};function mp(e){this.message=e}mp.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},mp.prototype.__CANCEL__=!0;var bp=mp,wp=ks,Sp=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(sp("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},Ap=lp,xp=Is,Rp=function(e,t){return e&&!fp(t)?dp(e,t):t},Pp=function(e){var t,r,n,o={};return e?(yp.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=yp.trim(e.substr(0,n)).toLowerCase(),r=yp.trim(e.substr(n+1)),t){if(o[t]&&hp.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([r]):o[t]?o[t]+", "+r:r}})),o):o},Ep=gp,kp=cp,Op=Wp,jp=bp,Ip=function(e){return new Promise((function(t,r){var n,o=e.data,i=e.headers,a=e.responseType;function u(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}wp.isFormData(o)&&delete i["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var s=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(s+":"+p)}var l=Rp(e.baseURL,e.url);function f(){if(c){var n="getAllResponseHeaders"in c?Pp(c.getAllResponseHeaders()):null,o={data:a&&"text"!==a&&"json"!==a?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c};Sp((function(e){t(e),u()}),(function(e){r(e),u()}),o),c=null}}if(c.open(e.method.toUpperCase(),xp(l,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(f)},c.onabort=function(){c&&(r(kp("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){r(kp("Network Error",e,null,c)),c=null},c.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||Op.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(kp(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},wp.isStandardBrowserEnv()){var d=(e.withCredentials||Ep(l))&&e.xsrfCookieName?Ap.read(e.xsrfCookieName):void 0;d&&(i[e.xsrfHeaderName]=d)}"setRequestHeader"in c&&wp.forEach(i,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete i[t]:c.setRequestHeader(t,e)})),wp.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&"json"!==a&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(n=function(e){c&&(r(!e||e&&e.type?new jp("canceled"):e),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),o||(o=null),c.send(o)}))},Np=ks,Tp=function(e,t){ip.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},Fp=ap,Cp={"Content-Type":"application/x-www-form-urlencoded"};function _p(e,t){!Np.isUndefined(e)&&Np.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Up,Bp={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==op&&"[object process]"===Object.prototype.toString.call(op))&&(Up=Ip),Up),transformRequest:[function(e,t){return Tp(t,"Accept"),Tp(t,"Content-Type"),Np.isFormData(e)||Np.isArrayBuffer(e)||Np.isBuffer(e)||Np.isStream(e)||Np.isFile(e)||Np.isBlob(e)?e:Np.isArrayBufferView(e)?e.buffer:Np.isURLSearchParams(e)?(_p(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Np.isObject(e)||t&&"application/json"===t["Content-Type"]?(_p(t,"application/json"),function(e,t,r){if(Np.isString(e))try{return(t||JSON.parse)(e),Np.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||Bp.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&Np.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw Fp(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Np.forEach(["delete","get","head"],(function(e){Bp.headers[e]={}})),Np.forEach(["post","put","patch"],(function(e){Bp.headers[e]=Np.merge(Cp)}));var Wp=Bp,Dp=ks,Gp=Wp,Mp=function(e){return!(!e||!e.__CANCEL__)},Lp=ks,qp=function(e,t,r){var n=this||Gp;return Dp.forEach(r,(function(r){e=r.call(n,e,t)})),e},Vp=Mp,zp=Wp,Hp=bp;function $p(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hp("canceled")}var Jp=ks,Kp=function(e,t){t=t||{};var r={};function n(e,t){return Jp.isPlainObject(e)&&Jp.isPlainObject(t)?Jp.merge(e,t):Jp.isPlainObject(t)?Jp.merge({},t):Jp.isArray(t)?t.slice():t}function o(r){return Jp.isUndefined(t[r])?Jp.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function i(e){if(!Jp.isUndefined(t[e]))return n(void 0,t[e])}function a(r){return Jp.isUndefined(t[r])?Jp.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function u(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return Jp.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,n=t(e);Jp.isUndefined(n)&&t!==u||(r[e]=n)})),r},Qp="0.24.0",Xp=Qp,Yp={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Yp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var Zp={};Yp.transitional=function(e,t,r){function n(e,t){return"[Axios v"+Xp+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,o,i){if(!1===e)throw new Error(n(o," has been removed"+(t?" in "+t:"")));return t&&!Zp[o]&&(Zp[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var el=ks,tl=Is,rl=Fs,nl=function(e){return $p(e),e.headers=e.headers||{},e.data=qp.call(e,e.data,e.headers,e.transformRequest),e.headers=Lp.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Lp.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||zp.adapter)(e).then((function(t){return $p(e),t.data=qp.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Vp(t)||($p(e),t&&t.response&&(t.response.data=qp.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},ol=Kp,il={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],a=t[i];if(a){var u=e[i],c=void 0===u||a(u,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:Yp},al=il.validators;function ul(e){this.defaults=e,this.interceptors={request:new rl,response:new rl}}ul.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=ol(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&il.assertOptions(t,{silentJSONParsing:al.transitional(al.boolean),forcedJSONParsing:al.transitional(al.boolean),clarifyTimeoutError:al.transitional(al.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!n){var a=[nl,void 0];for(Array.prototype.unshift.apply(a,r),a=a.concat(i),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var u=e;r.length;){var c=r.shift(),s=r.shift();try{u=c(u)}catch(e){s(e);break}}try{o=nl(u)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},ul.prototype.getUri=function(e){return e=ol(this.defaults,e),tl(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},el.forEach(["delete","get","head","options"],(function(e){ul.prototype[e]=function(t,r){return this.request(ol(r||{},{method:e,url:t,data:(r||{}).data}))}})),el.forEach(["post","put","patch"],(function(e){ul.prototype[e]=function(t,r,n){return this.request(ol(n||{},{method:e,url:t,data:r}))}}));var cl=ul,sl=bp;function pl(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new sl(e),t(r.reason))}))}pl.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},pl.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},pl.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},pl.source=function(){var e;return{token:new pl((function(t){e=t})),cancel:e}};var ll=pl,fl=ks,dl=ms,yl=cl,hl=Kp;var vl=function e(t){var r=new yl(t),n=dl(yl.prototype.request,r);return fl.extend(n,yl.prototype,r),fl.extend(n,r),n.create=function(r){return e(hl(t,r))},n}(Wp);vl.Axios=yl,vl.Cancel=bp,vl.CancelToken=ll,vl.isCancel=Mp,vl.VERSION=Qp,vl.all=function(e){return Promise.all(e)},vl.spread=function(e){return function(t){return e.apply(null,t)}},vl.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError},gs.exports=vl,gs.exports.default=vl;var gl=gs.exports,ml=function(){function e(t){var r=t.responseHandler,n=t.requestConfigBuilder;u(this,e),this.responseHandler=r,this.requestConfigBuilder=n}var t,r,o,i,c,p;return s(e,[{key:"get",value:(p=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("get",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return p.apply(this,arguments)})},{key:"getData",value:(c=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("get",t,r,{responseType:"arraybuffer"});case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"post",value:(i=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("post",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"postData",value:(o=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("post",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"put",value:(r=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("put",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"delete",value:(t=a(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestConfigBuilder.build("delete",t,r);case 2:return n=e.sent,e.next=5,this.sendRequest(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})},{key:"sendRequest",value:function(e){return this.responseHandler.handle(gl(n(n({},e),{},{maxBodyLength:1/0,maxContentLength:1/0})))}}]),e}(),bl=O,wl=no,Sl=Z,Al=oe,xl=function(e,t){var r=[][e];return!!r&&bl((function(){r.call(null,t||function(){throw 1},1)}))},Rl=q([].join),Pl=Sl!=Object,El=xl("join",",");wl({target:"Array",proto:!0,forced:Pl||!El},{join:function(e){return Rl(Al(this),void 0===e?",":e)}});var kl,Ol=x.Symbol,jl=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0},Il=function(){return"function"==typeof Ol&&("function"==typeof Symbol&&("symbol"==typeof Ol("foo")&&("symbol"==typeof Symbol("bar")&&jl())))},Nl="Function.prototype.bind called on incompatible ",Tl=Array.prototype.slice,Fl=Object.prototype.toString,Cl="[object Function]",_l=function(e){var t=this;if("function"!=typeof t||Fl.call(t)!==Cl)throw new TypeError(Nl+t);for(var r,n=Tl.call(arguments,1),o=function(){if(this instanceof r){var o=t.apply(this,n.concat(Tl.call(arguments)));return Object(o)===o?o:this}return t.apply(e,n.concat(Tl.call(arguments)))},i=Math.max(0,t.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),t.prototype){var c=function(){};c.prototype=t.prototype,r.prototype=new c,c.prototype=null}return r},Ul=Function.prototype.bind||_l,Bl=Ul.call(Function.call,Object.prototype.hasOwnProperty),Wl=SyntaxError,Dl=Function,Gl=TypeError,Ml=function(e){try{return Dl('"use strict"; return ('+e+").constructor;")()}catch(e){}},Ll=Object.getOwnPropertyDescriptor;if(Ll)try{Ll({},"")}catch(e){Ll=null}var ql,Vl=function(){throw new Gl},zl=Ll?function(){try{return Vl}catch(e){try{return Ll(arguments,"callee").get}catch(e){return Vl}}}():Vl,Hl=Il(),$l=Object.getPrototypeOf||function(e){return e.__proto__},Jl={},Kl="undefined"==typeof Uint8Array?kl:$l(Uint8Array),Ql={"%AggregateError%":"undefined"==typeof AggregateError?kl:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?kl:ArrayBuffer,"%ArrayIteratorPrototype%":Hl?$l([][Symbol.iterator]()):kl,"%AsyncFromSyncIteratorPrototype%":kl,"%AsyncFunction%":Jl,"%AsyncGenerator%":Jl,"%AsyncGeneratorFunction%":Jl,"%AsyncIteratorPrototype%":Jl,"%Atomics%":"undefined"==typeof Atomics?kl:Atomics,"%BigInt%":"undefined"==typeof BigInt?kl:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?kl:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?kl:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?kl:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?kl:FinalizationRegistry,"%Function%":Dl,"%GeneratorFunction%":Jl,"%Int8Array%":"undefined"==typeof Int8Array?kl:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?kl:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?kl:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Hl?$l($l([][Symbol.iterator]())):kl,"%JSON%":"object"==typeof JSON?JSON:kl,"%Map%":"undefined"==typeof Map?kl:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Hl?$l((new Map)[Symbol.iterator]()):kl,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?kl:Promise,"%Proxy%":"undefined"==typeof Proxy?kl:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?kl:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?kl:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Hl?$l((new Set)[Symbol.iterator]()):kl,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?kl:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Hl?$l(""[Symbol.iterator]()):kl,"%Symbol%":Hl?Symbol:kl,"%SyntaxError%":Wl,"%ThrowTypeError%":zl,"%TypedArray%":Kl,"%TypeError%":Gl,"%Uint8Array%":"undefined"==typeof Uint8Array?kl:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?kl:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?kl:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?kl:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?kl:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?kl:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?kl:WeakSet},Xl=function e(t){var r;if("%AsyncFunction%"===t)r=Ml("async function () {}");else if("%GeneratorFunction%"===t)r=Ml("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=Ml("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=$l(o.prototype))}return Ql[t]=r,r},Yl={"%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"]},Zl=Ul,ef=Bl,tf=Zl.call(Function.call,Array.prototype.concat),rf=Zl.call(Function.apply,Array.prototype.splice),nf=Zl.call(Function.call,String.prototype.replace),of=Zl.call(Function.call,String.prototype.slice),af=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,uf=/\\(\\)?/g,cf=function(e){var t=of(e,0,1),r=of(e,-1);if("%"===t&&"%"!==r)throw new Wl("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new Wl("invalid intrinsic syntax, expected opening `%`");var n=[];return nf(e,af,(function(e,t,r,o){n[n.length]=r?nf(o,uf,"$1"):t||e})),n},sf=function(e,t){var r,n=e;if(ef(Yl,n)&&(n="%"+(r=Yl[n])[0]+"%"),ef(Ql,n)){var o=Ql[n];if(o===Jl&&(o=Xl(n)),void 0===o&&!t)throw new Gl("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Wl("intrinsic "+e+" does not exist!")},pf=SyntaxError,lf=Function,ff=TypeError,df=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},yf=Object.getOwnPropertyDescriptor;if(yf)try{yf({},"")}catch(e){yf=null}var hf=function(){throw new ff},vf=yf?function(){try{return hf}catch(e){try{return yf(arguments,"callee").get}catch(e){return hf}}}():hf,gf=Il(),mf=Object.getPrototypeOf||function(e){return e.__proto__},bf=df("async function* () {}"),wf=bf?bf.prototype:ql,Sf=wf?wf.prototype:ql,Af="undefined"==typeof Uint8Array?ql:mf(Uint8Array),xf={"%AggregateError%":"undefined"==typeof AggregateError?ql:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?ql:ArrayBuffer,"%ArrayIteratorPrototype%":gf?mf([][Symbol.iterator]()):ql,"%AsyncFromSyncIteratorPrototype%":ql,"%AsyncFunction%":df("async function () {}"),"%AsyncGenerator%":wf,"%AsyncGeneratorFunction%":bf,"%AsyncIteratorPrototype%":Sf?mf(Sf):ql,"%Atomics%":"undefined"==typeof Atomics?ql:Atomics,"%BigInt%":"undefined"==typeof BigInt?ql:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?ql:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?ql:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?ql:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?ql:FinalizationRegistry,"%Function%":lf,"%GeneratorFunction%":df("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?ql:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?ql:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?ql:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":gf?mf(mf([][Symbol.iterator]())):ql,"%JSON%":"object"==typeof JSON?JSON:ql,"%Map%":"undefined"==typeof Map?ql:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&gf?mf((new Map)[Symbol.iterator]()):ql,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?ql:Promise,"%Proxy%":"undefined"==typeof Proxy?ql:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?ql:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?ql:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&gf?mf((new Set)[Symbol.iterator]()):ql,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?ql:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":gf?mf(""[Symbol.iterator]()):ql,"%Symbol%":gf?Symbol:ql,"%SyntaxError%":pf,"%ThrowTypeError%":vf,"%TypedArray%":Af,"%TypeError%":ff,"%Uint8Array%":"undefined"==typeof Uint8Array?ql:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?ql:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?ql:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?ql:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?ql:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?ql:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?ql:WeakSet},Rf={"%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"]},Pf=Ul,Ef=Bl,kf=Pf.call(Function.call,Array.prototype.concat),Of=Pf.call(Function.apply,Array.prototype.splice),jf=Pf.call(Function.call,String.prototype.replace),If=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Nf=/\\(\\)?/g,Tf=function(e){var t=[];return jf(e,If,(function(e,r,n,o){t[t.length]=n?jf(o,Nf,"$1"):r||e})),t},Ff=function(e,t){var r,n=e;if(Ef(Rf,n)&&(n="%"+(r=Rf[n])[0]+"%"),Ef(xf,n)){var o=xf[n];if(void 0===o&&!t)throw new ff("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new pf("intrinsic "+e+" does not exist!")},Cf=function(e,t){if("string"!=typeof e||0===e.length)throw new ff("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new ff('"allowMissing" argument must be a boolean');var r=Tf(e),n=r.length>0?r[0]:"",o=Ff("%"+n+"%",t),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],Of(r,kf([0,1],c)));for(var s=1,p=!0;s<r.length;s+=1){var l=r[s];if("constructor"!==l&&p||(u=!0),Ef(xf,i="%"+(n+="."+l)+"%"))a=xf[i];else if(null!=a){if(yf&&s+1>=r.length){var f=yf(a,l);if(p=!!f,!t&&!(l in a))throw new ff("base intrinsic for "+e+" exists, but the property is not available.");a=p&&"get"in f&&!("originalValue"in f.get)?f.get:a[l]}else p=Ef(a,l),a=a[l];p&&!u&&(xf[i]=a)}}return a},_f={exports:{}};!function(e){var t=Ul,r=Cf,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||t.call(o,n),a=r("%Object.defineProperty%",!0);if(a)try{a({},"a",{value:1})}catch(e){a=null}e.exports=function(){return i(t,o,arguments)};var u=function(){return i(t,n,arguments)};a?a(e.exports,"apply",{value:u}):e.exports.apply=u}(_f);var Uf=Cf,Bf=_f.exports,Wf=Bf(Uf("String.prototype.indexOf")),Df=R(Object.freeze({__proto__:null,default:{}})),Gf="function"==typeof Map&&Map.prototype,Mf=Object.getOwnPropertyDescriptor&&Gf?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Lf=Gf&&Mf&&"function"==typeof Mf.get?Mf.get:null,qf=Gf&&Map.prototype.forEach,Vf="function"==typeof Set&&Set.prototype,zf=Object.getOwnPropertyDescriptor&&Vf?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Hf=Vf&&zf&&"function"==typeof zf.get?zf.get:null,$f=Vf&&Set.prototype.forEach,Jf="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Kf="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Qf=Boolean.prototype.valueOf,Xf=Object.prototype.toString,Yf=Function.prototype.toString,Zf=String.prototype.match,ed="function"==typeof BigInt?BigInt.prototype.valueOf:null,td=Object.getOwnPropertySymbols,rd="function"==typeof Symbol?Symbol.prototype.toString:null,nd=Object.prototype.propertyIsEnumerable,od=Df.custom,id=od&&sd(od)?od:null;function ad(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function ud(e){return String(e).replace(/"/g,""")}function cd(e){return"[object Array]"===fd(e)}function sd(e){return"[object Symbol]"===fd(e)}var pd=Object.prototype.hasOwnProperty||function(e){return e in this};function ld(e,t){return pd.call(e,t)}function fd(e){return Xf.call(e)}function dd(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function yd(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return yd(e.slice(0,t.maxStringLength),t)+n}return ad(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,hd),"single",t)}function hd(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function vd(e){return"Object("+e+")"}function gd(e){return e+" { ? }"}function md(e,t,r,n){return e+" ("+t+") {"+(n?bd(r,n):r.join(", "))+"}"}function bd(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+e.join(","+r)+"\n"+t.prev}function wd(e,t){var r=cd(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=ld(e,o)?t(e[o],e):""}for(var i in e)ld(e,i)&&(r&&String(Number(i))===i&&i<e.length||(/[^\w$]/.test(i)?n.push(t(i,e)+": "+t(e[i],e)):n.push(i+": "+t(e[i],e))));if("function"==typeof td)for(var a=td(e),u=0;u<a.length;u++)nd.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}var Sd=function(e,t){if("string"!=typeof e||0===e.length)throw new Gl("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Gl('"allowMissing" argument must be a boolean');var r=cf(e),n=r.length>0?r[0]:"",o=sf("%"+n+"%",t),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],rf(r,tf([0,1],c)));for(var s=1,p=!0;s<r.length;s+=1){var l=r[s],f=of(l,0,1),d=of(l,-1);if(('"'===f||"'"===f||"`"===f||'"'===d||"'"===d||"`"===d)&&f!==d)throw new Wl("property names with quotes must have matching quotes");if("constructor"!==l&&p||(u=!0),ef(Ql,i="%"+(n+="."+l)+"%"))a=Ql[i];else if(null!=a){if(!(l in a)){if(!t)throw new Gl("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ll&&s+1>=r.length){var y=Ll(a,l);a=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[l]}else p=ef(a,l),a=a[l];p&&!u&&(Ql[i]=a)}}return a},Ad=function(e,t){var r=Uf(e,!!t);return"function"==typeof r&&Wf(e,".prototype.")>-1?Bf(r):r},xd=function e(t,r,n,o){var i=r||{};if(ld(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ld(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=!ld(i,"customInspect")||i.customInspect;if("boolean"!=typeof a)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(ld(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===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return yd(t,i);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var u=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=u&&u>0&&"object"==typeof t)return cd(t)?"[Array]":"[Object]";var c=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Array(e.indent+1).join(" ")}return{base:r,prev:Array(t+1).join(r)}}(i,n);if(void 0===o)o=[];else if(dd(o,t)>=0)return"[Circular]";function s(t,r,a){if(r&&(o=o.slice()).push(r),a){var u={depth:i.depth};return ld(i,"quoteStyle")&&(u.quoteStyle=i.quoteStyle),e(t,u,n+1,o)}return e(t,i,n+1,o)}if("function"==typeof t){var p=function(e){if(e.name)return e.name;var t=Zf.call(Yf.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),l=wd(t,s);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(l.length>0?" { "+l.join(", ")+" }":"")}if(sd(t)){var f=rd.call(t);return"object"==typeof t?vd(f):f}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var d="<"+String(t.nodeName).toLowerCase(),y=t.attributes||[],h=0;h<y.length;h++)d+=" "+y[h].name+"="+ad(ud(y[h].value),"double",i);return d+=">",t.childNodes&&t.childNodes.length&&(d+="..."),d+="</"+String(t.nodeName).toLowerCase()+">"}if(cd(t)){if(0===t.length)return"[]";var v=wd(t,s);return c&&!function(e){for(var t=0;t<e.length;t++)if(dd(e[t],"\n")>=0)return!1;return!0}(v)?"["+bd(v,c)+"]":"[ "+v.join(", ")+" ]"}if(function(e){return"[object Error]"===fd(e)}(t)){var g=wd(t,s);return 0===g.length?"["+String(t)+"]":"{ ["+String(t)+"] "+g.join(", ")+" }"}if("object"==typeof t&&a){if(id&&"function"==typeof t[id])return t[id]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Lf||!e||"object"!=typeof e)return!1;try{Lf.call(e);try{Hf.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var m=[];return qf.call(t,(function(e,r){m.push(s(r,t,!0)+" => "+s(e,t))})),md("Map",Lf.call(t),m,c)}if(function(e){if(!Hf||!e||"object"!=typeof e)return!1;try{Hf.call(e);try{Lf.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var b=[];return $f.call(t,(function(e){b.push(s(e,t))})),md("Set",Hf.call(t),b,c)}if(function(e){if(!Jf||!e||"object"!=typeof e)return!1;try{Jf.call(e,Jf);try{Kf.call(e,Kf)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return gd("WeakMap");if(function(e){if(!Kf||!e||"object"!=typeof e)return!1;try{Kf.call(e,Kf);try{Jf.call(e,Jf)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return gd("WeakSet");if(function(e){return"[object Number]"===fd(e)}(t))return vd(s(Number(t)));if(function(e){return"[object BigInt]"===fd(e)}(t))return vd(s(ed.call(t)));if(function(e){return"[object Boolean]"===fd(e)}(t))return vd(Qf.call(t));if(function(e){return"[object String]"===fd(e)}(t))return vd(s(String(t)));if(!function(e){return"[object Date]"===fd(e)}(t)&&!function(e){return"[object RegExp]"===fd(e)}(t)){var w=wd(t,s);return 0===w.length?"{}":c?"{"+bd(w,c)+"}":"{ "+w.join(", ")+" }"}return String(t)},Rd=Sd("%TypeError%"),Pd=Sd("%WeakMap%",!0),Ed=Sd("%Map%",!0),kd=Ad("WeakMap.prototype.get",!0),Od=Ad("WeakMap.prototype.set",!0),jd=Ad("WeakMap.prototype.has",!0),Id=Ad("Map.prototype.get",!0),Nd=Ad("Map.prototype.set",!0),Td=Ad("Map.prototype.has",!0),Fd=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},Cd=String.prototype.replace,_d=/%20/g,Ud="RFC3986",Bd={default:Ud,formatters:{RFC1738:function(e){return Cd.call(e,_d,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Ud},Wd=Bd,Dd=Object.prototype.hasOwnProperty,Gd=Array.isArray,Md=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Ld=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},qd={arrayToObject:Ld,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),u=0;u<a.length;++u){var c=a[u],s=i[c];"object"==typeof s&&null!==s&&-1===r.indexOf(s)&&(t.push({obj:i,prop:c}),r.push(s))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(Gd(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,n,o){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",u=0;u<i.length;++u){var c=i.charCodeAt(u);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===Wd.RFC1738&&(40===c||41===c)?a+=i.charAt(u):c<128?a+=Md[c]:c<2048?a+=Md[192|c>>6]+Md[128|63&c]:c<55296||c>=57344?a+=Md[224|c>>12]+Md[128|c>>6&63]+Md[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&i.charCodeAt(u)),a+=Md[240|c>>18]+Md[128|c>>12&63]+Md[128|c>>6&63]+Md[128|63&c])}return a},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Gd(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(Gd(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!Dd.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return Gd(t)&&!Gd(r)&&(o=Ld(t,n)),Gd(t)&&Gd(r)?(r.forEach((function(r,o){if(Dd.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,n):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];return Dd.call(t,o)?t[o]=e(t[o],i,n):t[o]=i,t}),o)}},Vd=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new Rd("Side channel does not contain "+xd(e))},get:function(n){if(Pd&&n&&("object"==typeof n||"function"==typeof n)){if(e)return kd(e,n)}else if(Ed){if(t)return Id(t,n)}else if(r)return function(e,t){var r=Fd(e,t);return r&&r.value}(r,n)},has:function(n){if(Pd&&n&&("object"==typeof n||"function"==typeof n)){if(e)return jd(e,n)}else if(Ed){if(t)return Td(t,n)}else if(r)return function(e,t){return!!Fd(e,t)}(r,n);return!1},set:function(n,o){Pd&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new Pd),Od(e,n,o)):Ed?(t||(t=new Ed),Nd(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=Fd(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n},zd=qd,Hd=Bd,$d=Object.prototype.hasOwnProperty,Jd={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Kd=Array.isArray,Qd=String.prototype.split,Xd=Array.prototype.push,Yd=function(e,t){Xd.apply(e,Kd(t)?t:[t])},Zd=Date.prototype.toISOString,ey=Hd.default,ty={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:zd.encode,encodeValuesOnly:!1,format:ey,formatter:Hd.formatters[ey],indices:!1,serializeDate:function(e){return Zd.call(e)},skipNulls:!1,strictNullHandling:!1},ry={},ny=function e(t,r,n,o,i,a,u,c,s,p,l,f,d,y,h){for(var v,g=t,m=h,b=0,w=!1;void 0!==(m=m.get(ry))&&!w;){var S=m.get(t);if(b+=1,void 0!==S){if(S===b)throw new RangeError("Cyclic object value");w=!0}void 0===m.get(ry)&&(b=0)}if("function"==typeof u?g=u(r,g):g instanceof Date?g=p(g):"comma"===n&&Kd(g)&&(g=zd.maybeMap(g,(function(e){return e instanceof Date?p(e):e}))),null===g){if(o)return a&&!d?a(r,ty.encoder,y,"key",l):r;g=""}if("string"==typeof(v=g)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||zd.isBuffer(g)){if(a){var A=d?r:a(r,ty.encoder,y,"key",l);if("comma"===n&&d){for(var x=Qd.call(String(g),","),R="",P=0;P<x.length;++P)R+=(0===P?"":",")+f(a(x[P],ty.encoder,y,"value",l));return[f(A)+"="+R]}return[f(A)+"="+f(a(g,ty.encoder,y,"value",l))]}return[f(r)+"="+f(String(g))]}var E,k=[];if(void 0===g)return k;if("comma"===n&&Kd(g))E=[{value:g.length>0?g.join(",")||null:void 0}];else if(Kd(u))E=u;else{var O=Object.keys(g);E=c?O.sort(c):O}for(var j=0;j<E.length;++j){var I=E[j],N="object"==typeof I&&void 0!==I.value?I.value:g[I];if(!i||null!==N){var T=Kd(g)?"function"==typeof n?n(r,I):r:r+(s?"."+I:"["+I+"]");h.set(t,b);var F=Vd();F.set(ry,h),Yd(k,e(N,T,n,o,i,a,u,c,s,p,l,f,d,y,F))}}return k},oy=qd,iy=Object.prototype.hasOwnProperty,ay=Array.isArray,uy={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:oy.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},cy=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},sy=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},py=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),u=a?o.slice(0,a.index):o,c=[];if(u){if(!r.plainObjects&&iy.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(u)}for(var s=0;r.depth>0&&null!==(a=i.exec(o))&&s<r.depth;){if(s+=1,!r.plainObjects&&iy.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+o.slice(a.index)+"]"),function(e,t,r,n){for(var o=n?t:sy(t,r),i=e.length-1;i>=0;--i){var a,u=e[i];if("[]"===u&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,s=parseInt(c,10);r.parseArrays||""!==c?!isNaN(s)&&u!==c&&String(s)===c&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(a=[])[s]=o:a[c]=o:a={0:o}}o=a}return o}(c,t,r,n)}},ly={formats:Bd,parse:function(e,t){var r=function(e){if(!e)return uy;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?uy.charset:e.charset;return{allowDots:void 0===e.allowDots?uy.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:uy.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:uy.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:uy.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:uy.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:uy.comma,decoder:"function"==typeof e.decoder?e.decoder:uy.decoder,delimiter:"string"==typeof e.delimiter||oy.isRegExp(e.delimiter)?e.delimiter:uy.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:uy.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:uy.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:uy.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:uy.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:uy.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){var r,n={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,a=o.split(t.delimiter,i),u=-1,c=t.charset;if(t.charsetSentinel)for(r=0;r<a.length;++r)0===a[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[r]?c="utf-8":"utf8=%26%2310003%3B"===a[r]&&(c="iso-8859-1"),u=r,r=a.length);for(r=0;r<a.length;++r)if(r!==u){var s,p,l=a[r],f=l.indexOf("]="),d=-1===f?l.indexOf("="):f+1;-1===d?(s=t.decoder(l,uy.decoder,c,"key"),p=t.strictNullHandling?null:""):(s=t.decoder(l.slice(0,d),uy.decoder,c,"key"),p=oy.maybeMap(sy(l.slice(d+1),t),(function(e){return t.decoder(e,uy.decoder,c,"value")}))),p&&t.interpretNumericEntities&&"iso-8859-1"===c&&(p=cy(p)),l.indexOf("[]=")>-1&&(p=ay(p)?[p]:p),iy.call(n,s)?n[s]=oy.combine(n[s],p):n[s]=p}return n}(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var u=i[a],c=py(u,n[u],r,"string"==typeof e);o=oy.merge(o,c,r)}return!0===r.allowSparse?o:oy.compact(o)},stringify:function(e,t){var r,n=e,o=function(e){if(!e)return ty;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||ty.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Hd.default;if(void 0!==e.format){if(!$d.call(Hd.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=Hd.formatters[r],o=ty.filter;return("function"==typeof e.filter||Kd(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:ty.addQueryPrefix,allowDots:void 0===e.allowDots?ty.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:ty.charsetSentinel,delimiter:void 0===e.delimiter?ty.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:ty.encode,encoder:"function"==typeof e.encoder?e.encoder:ty.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:ty.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:ty.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:ty.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:ty.strictNullHandling}}(t);"function"==typeof o.filter?n=(0,o.filter)("",n):Kd(o.filter)&&(r=o.filter);var i,a=[];if("object"!=typeof n||null===n)return"";i=t&&t.arrayFormat in Jd?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var u=Jd[i];r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var c=Vd(),s=0;s<r.length;++s){var p=r[s];o.skipNulls&&null===n[p]||Yd(a,ny(n[p],p,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,c))}var l=a.join(o.delimiter),f=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),l.length>0?f+l:""}},fy={exports:{}};!function(e,t){!function(t,r){e.exports=function(t){var r,n=(t=t||{}).Base64,o="2.6.4",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=function(e){for(var t={},r=0,n=e.length;r<n;r++)t[e.charAt(r)]=r;return t}(i),u=String.fromCharCode,c=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},s=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,p=function(e){return e.replace(s,c)},l=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[i.charAt(r>>>18),i.charAt(r>>>12&63),t>=2?"=":i.charAt(r>>>6&63),t>=1?"=":i.charAt(63&r)].join("")},f=t.btoa&&"function"==typeof t.btoa?function(e){return t.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,l)},d=function(e){return f(p(String(e)))},y=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},h=function(e,t){return t?y(d(e)):d(e)},v=function(e){return h(e,!0)};t.Uint8Array&&(r=function(e,t){for(var r="",n=0,o=e.length;n<o;n+=3){var a=e[n],u=e[n+1],c=e[n+2],s=a<<16|u<<8|c;r+=i.charAt(s>>>18)+i.charAt(s>>>12&63)+(void 0!==u?i.charAt(s>>>6&63):"=")+(void 0!==c?i.charAt(63&s):"=")}return t?y(r):r});var g,m=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return u(55296+(t>>>10))+u(56320+(1023&t));case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},w=function(e){return e.replace(m,b)},S=function(e){var t=e.length,r=t%4,n=(t>0?a[e.charAt(0)]<<18:0)|(t>1?a[e.charAt(1)]<<12:0)|(t>2?a[e.charAt(2)]<<6:0)|(t>3?a[e.charAt(3)]:0),o=[u(n>>>16),u(n>>>8&255),u(255&n)];return o.length-=[0,0,2,1][r],o.join("")},A=t.atob&&"function"==typeof t.atob?function(e){return t.atob(e)}:function(e){return e.replace(/\S{1,4}/g,S)},x=function(e){return A(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},R=function(e){return w(A(e))},P=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},E=function(e){return R(P(e))};t.Uint8Array&&(g=function(e){return Uint8Array.from(x(P(e)),(function(e){return e.charCodeAt(0)}))});var k=function(){var e=t.Base64;return t.Base64=n,e};if(t.Base64={VERSION:o,atob:x,btoa:f,fromBase64:E,toBase64:h,utob:p,encode:h,encodeURI:v,btou:w,decode:E,noConflict:k,fromUint8Array:r,toUint8Array:g},"function"==typeof Object.defineProperty){var O=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};t.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",O((function(){return E(this)}))),Object.defineProperty(String.prototype,"toBase64",O((function(e){return h(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",O((function(){return h(this,!0)})))}}t.Meteor&&(Base64=t.Base64);e.exports&&(e.exports.Base64=t.Base64);return{Base64:t.Base64}}(t)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:x)}(fy);var dy=function(){function e(t){var r=t.baseUrl,n=t.auth,o=t.basicAuth,i=t.clientCertAuth,a=t.proxy,c=t.userAgent;u(this,e),this.baseUrl=r,this.auth=n,this.headers=this.buildHeaders({basicAuth:o,userAgent:c}),this.clientCertAuth=i,this.proxy=a,this.requestToken=null}var r,o,i;return s(e,[{key:"build",value:(i=a(regeneratorRuntime.mark((function e(r,o,i,a){var u,c,s,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u=n(n(n({method:r,headers:this.headers,url:"".concat(this.baseUrl).concat(o)},a||{}),t.buildPlatformDependentConfig({clientCertAuth:this.clientCertAuth})),{},{proxy:this.proxy}),e.t0=r,e.next="get"===e.t0?4:"post"===e.t0?16:"put"===e.t0?29:"delete"===e.t0?37:44;break;case 4:if(!((c=this.buildRequestUrl(o,i)).length>4096)){e.next=15;break}return e.t1=n,e.t2=n({},u),e.t3={},e.t4=n(n({},this.headers),{},{"X-HTTP-Method-Override":"GET"}),e.next=12,this.buildData(i);case 12:return e.t5=e.sent,e.t6={method:"post",headers:e.t4,data:e.t5},e.abrupt("return",(0,e.t1)(e.t2,e.t3,e.t6));case 15:return e.abrupt("return",n(n({},u),{},{url:c}));case 16:if(!(i instanceof hs)){e.next=21;break}return e.next=19,this.buildData(i);case 19:return s=e.sent,e.abrupt("return",n(n({},u),{},{headers:"function"==typeof s.getHeaders?n(n({},this.headers),s.getHeaders()):this.headers,data:s}));case 21:return e.t7=n,e.t8=n({},u),e.t9={},e.next=26,this.buildData(i);case 26:return e.t10=e.sent,e.t11={data:e.t10},e.abrupt("return",(0,e.t7)(e.t8,e.t9,e.t11));case 29:return e.t12=n,e.t13=n({},u),e.t14={},e.next=34,this.buildData(i);case 34:return e.t15=e.sent,e.t16={data:e.t15},e.abrupt("return",(0,e.t12)(e.t13,e.t14,e.t16));case 37:return e.t17=this,e.t18=o,e.next=41,this.buildData(i);case 41:return e.t19=e.sent,p=e.t17.buildRequestUrl.call(e.t17,e.t18,e.t19),e.abrupt("return",n(n({},u),{},{url:p}));case 44:throw new Error("".concat(r," method is not supported"));case 45:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return i.apply(this,arguments)})},{key:"buildRequestUrl",value:function(e,t){return"".concat(this.baseUrl).concat(e,"?").concat(ly.stringify(t))}},{key:"buildData",value:(o=a(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("session"!==this.auth.type){e.next=8;break}return e.next=3,this.getRequestToken();case 3:if(r=e.sent,!(t instanceof hs)){e.next=7;break}return t.append("__REQUEST_TOKEN__",r),e.abrupt("return",t);case 7:return e.abrupt("return",n({__REQUEST_TOKEN__:r},t));case 8:return e.abrupt("return",t);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"buildHeaders",value:function(e){var r=e.basicAuth,o=e.userAgent,i=r?{Authorization:"Basic ".concat(fy.exports.Base64.encode("".concat(r.username,":").concat(r.password)))}:{},a=n(n({},t.buildHeaders({userAgent:o})),i);switch(this.auth.type){case"password":return n(n({},a),{},{"X-Cybozu-Authorization":fy.exports.Base64.encode("".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=a(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==this.requestToken){e.next=4;break}return e.next=3,t.getRequestToken();case 3:this.requestToken=e.sent;case 4:return e.abrupt("return",this.requestToken);case 5:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}]),e}(),yy=q,hy=zr.PROPER,vy=ir.exports,gy=Kt,my=fe,by=ya,wy=O,Sy=va,Ay="toString",xy=RegExp.prototype,Ry=xy.toString,Py=yy(Sy),Ey=wy((function(){return"/a/b"!=Ry.call({source:"a",flags:"b"})})),ky=hy&&Ry.name!=Ay;(Ey||ky)&&vy(RegExp.prototype,Ay,(function(){var e=gy(this),t=by(e.source),r=e.flags;return"/"+t+"/"+by(void 0===r&&my(xy,e)&&!("flags"in xy)?Py(e):r)}),{unsafe:!0});var Oy,jy=function(e){l(r,e);var t=w(r);function r(e){var n;return u(this,r),(n=t.call(this,e)).name="KintoneAbortSearchError",n.message=e,Object.setPrototypeOf(m(n),r.prototype),n}return s(r)}(v(Error)),Iy=function(e){l(r,e);var t=w(r);function r(e){var n;u(this,r);var o=r.buildErrorResponseDateWithIndex(e),i=o.data,a=o.bulkRequestIndex;return(n=t.call(this,i.message)).name="KintoneRestAPIError",n.id=i.id,n.code=i.code,n.errors=i.errors,n.status=e.status,n.bulkRequestIndex=a,n.headers=e.headers,n.message="[".concat(e.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 s(r,null,[{key:"findErrorResponseDataWithIndex",value:function(e){for(var t=0;t<e.length;t++){if(0!==Object.keys(e[t]).length)return{data:e[t],bulkRequestIndex:t}}throw Error("Missing response data in `results`. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.")}},{key:"buildErrorResponseDateWithIndex",value:function(e){return"results"in e.data?r.findErrorResponseDataWithIndex(e.data.results):{data:e.data}}}]),r}(v(Error)),Ny=["data"],Ty=function(){function e(t){var r=t.enableAbortSearchError;u(this,e),this.enableAbortSearchError=r}return s(e,[{key:"handle",value:function(e){var t=this;return e.then((function(e){return t.handleSuccessResponse(e)}),(function(e){return t.handleErrorResponse(e)}))}},{key:"handleSuccessResponse",value:function(e){if(this.enableAbortSearchError&&/Filter aborted because of too many search results/.test(e.headers["x-cybozu-warning"]))throw new jy(e.headers["x-cybozu-warning"]);return e.data}},{key:"handleErrorResponse",value:function(e){if(!e.response){if(/mac verify failure/.test(e.toString()))throw new Error("invalid clientCertAuth setting");throw e}var t=e.response,r=t.data,o=g(t,Ny);if("string"==typeof r)throw new Error("".concat(o.status,": ").concat(o.statusText));throw new Iy(n({data:r},o))}}]),e}(),Fy=function(e){if("username"in e)return n({type:"password"},e);if("apiToken"in e)return n({type:"apiToken"},e);if("oAuthToken"in e)return n({type:"oAuthToken"},e);try{return t.getDefaultAuth()}catch(e){if(e instanceof mi)throw new Error("session authentication is not supported in ".concat(e.platform," environment."));throw e}},Cy=function(){function e(){var r,o,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,e),_y(a),this.baseUrl=t.buildBaseUrl(a.baseUrl);var c=Fy(null!==(r=a.auth)&&void 0!==r?r:{}),s=new dy(n(n({},a),{},{baseUrl:this.baseUrl,auth:c})),p=new Ty({enableAbortSearchError:null!==(o=null===(i=a.featureFlags)||void 0===i?void 0:i.enableAbortSearchError)&&void 0!==o&&o}),l=new ml({responseHandler:p,requestConfigBuilder:s}),f=a.guestSpaceId;this.bulkRequest_=new Fi(l,f),this.record=new ys(l,this.bulkRequest_,f),this.app=new Ji(l,f),this.file=new vs(l,f)}return s(e,[{key:"getBaseUrl",value:function(){return this.baseUrl}},{key:"bulkRequest",value:function(e){return this.bulkRequest_.send(e)}}],[{key:"version",get:function(){return t.getVersion()}}]),e}(),_y=function(e){Uy(e.guestSpaceId)},Uy=function(e){if(""===e||null===e)throw new Error("invalid guestSpaceId: got [".concat(e,"]"))};Oy=wi,t.readFileFromPath=Oy.readFileFromPath,t.getRequestToken=Oy.getRequestToken,t.getDefaultAuth=Oy.getDefaultAuth,t.buildPlatformDependentConfig=Oy.buildPlatformDependentConfig,t.buildHeaders=Oy.buildHeaders,t.buildFormDataValue=Oy.buildFormDataValue,t.buildBaseUrl=Oy.buildBaseUrl,t.getVersion=Oy.getVersion,e.KintoneAbortSearchError=jy,e.KintoneAllRecordsError=ss,e.KintoneRestAPIClient=Cy,e.KintoneRestAPIError=Iy,Object.defineProperty(e,"__esModule",{value:!0})}));
|