1 line
92 KiB
JavaScript
1 line
92 KiB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.KintoneRestAPIClient=t():e.KintoneRestAPIClient=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=74)}([function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")()}).call(this,r(40))},function(e,t,r){var n=r(0),o=r(41),i=r(4),u=r(45),s=r(46),a=r(78),c=o("wks"),f=n.Symbol,l=a?f:f&&f.withoutSetter||u;e.exports=function(e){return i(c,e)||(s&&i(f,e)?c[e]=f[e]:c[e]=l("Symbol."+e)),c[e]}},function(e,t,r){"use strict";var n=r(65),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function u(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function a(e){return"[object Function]"===o.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(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)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(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:s,isUndefined:u,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:a,isStream:function(e){return s(e)&&a(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:c,merge:function e(){var t={};function r(r,n){"object"==typeof t[n]&&"object"==typeof r?t[n]=e(t[n],r):t[n]=r}for(var n=0,o=arguments.length;n<o;n++)c(arguments[n],r);return t},deepMerge:function e(){var t={};function r(r,n){"object"==typeof t[n]&&"object"==typeof r?t[n]=e(t[n],r):t[n]="object"==typeof r?e({},r):r}for(var n=0,o=arguments.length;n<o;n++)c(arguments[n],r);return t},extend:function(e,t,r){return c(t,(function(t,o){e[o]=r&&"function"==typeof t?n(t,r):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,r){var n=r(9);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(7),o=r(8),i=r(19);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){var n=r(6);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,r){var n=r(7),o=r(43),i=r(3),u=r(44),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(i(e),t=u(t,!0),i(r),o)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){var n=r(0),o=r(33).f,i=r(5),u=r(12),s=r(26),a=r(85),c=r(52);e.exports=function(e,t){var r,f,l,p,d,h=e.target,v=e.global,y=e.stat;if(r=v?n:y?n[h]||s(h,{}):(n[h]||{}).prototype)for(f in t){if(p=t[f],l=e.noTargetGet?(d=o(r,f))&&d.value:r[f],!c(v?f:h+(y?".":"#")+f,e.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(e.sham||l&&l.sham)&&i(p,"sham",!0),u(r,f,p,e)}}},function(e,t,r){var n=r(49),o=r(0),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e])||i(o[e]):n[e]&&n[e][t]||o[e]&&o[e][t]}},function(e,t,r){var n=r(0),o=r(5),i=r(4),u=r(26),s=r(28),a=r(15),c=a.get,f=a.enforce,l=String(String).split("String");(e.exports=function(e,t,r,s){var a=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof t||i(r,"name")||o(r,"name",t),f(r).source=l.join("string"==typeof t?t:"")),e!==n?(a?!p&&e[t]&&(c=!0):delete e[t],c?e[t]=r:o(e,t,r)):c?e[t]=r:u(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t){e.exports=!1},function(e,t,r){var n,o,i,u=r(79),s=r(0),a=r(9),c=r(5),f=r(4),l=r(29),p=r(30),d=s.WeakMap;if(u){var h=new d,v=h.get,y=h.has,m=h.set;n=function(e,t){return m.call(h,e,t),t},o=function(e){return v.call(h,e)||{}},i=function(e){return y.call(h,e)}}else{var b=l("state");p[b]=!0,n=function(e,t){return c(e,b,t),t},o=function(e){return f(e,b)?e[b]:{}},i=function(e){return f(e,b)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!a(t)||(r=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports={}},function(e,t,r){"use strict";var n=r(13),o=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new o(e)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(84),o=r(32);e.exports=function(e){return n(o(e))}},function(e,t,r){var n=r(3),o=r(105),i=r(51),u=r(57),s=r(106),a=r(107),c=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,r,f,l){var p,d,h,v,y,m,b,g=u(t,r,f?2:1);if(l)p=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(o(d)){for(h=0,v=i(e.length);v>h;h++)if((y=f?g(n(b=e[h])[0],b[1]):g(e[h]))&&y instanceof c)return y;return new c(!1)}p=d.call(e)}for(m=p.next;!(b=m.call(p)).done;)if("object"==typeof(y=a(p,g,b.value,f))&&y&&y instanceof c)return y;return new c(!1)}).stop=function(e){return new c(!0,e)}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.injectPlatformDeps=t.platformDeps=void 0,t.platformDeps={readFileFromPath:function(){throw new Error("not implemented")},getRequestToken:function(){throw new Error("not implemented")},buildPlatformDependentConfig:function(){throw new Error("not implemented")},buildHeaders:function(){throw new Error("not implemented")}},t.injectPlatformDeps=function(e){t.platformDeps.readFileFromPath=e.readFileFromPath,t.platformDeps.getRequestToken=e.getRequestToken,t.platformDeps.buildPlatformDependentConfig=e.buildPlatformDependentConfig,t.platformDeps.buildHeaders=e.buildHeaders}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildPath=void 0,t.buildPath=function(e){var t=e.endpointName,r=e.guestSpaceId;return"/k"+(void 0!==r?"/guest/"+r:"")+"/v1"+(e.preview?"/preview":"")+"/"+t+".json"}},function(e,t,r){var n={};n[r(1)("toStringTag")]="z",e.exports="[object z]"===String(n)},function(e,t,r){var n=r(0),o=r(5);e.exports=function(e,t){try{o(n,e,t)}catch(r){n[e]=t}return t}},function(e,t,r){var n=r(0),o=r(9),i=n.document,u=o(i)&&o(i.createElement);e.exports=function(e){return u?i.createElement(e):{}}},function(e,t,r){var n=r(42),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return o.call(e)}),e.exports=n.inspectSource},function(e,t,r){var n=r(41),o=r(45),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t){e.exports={}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(7),o=r(83),i=r(19),u=r(20),s=r(44),a=r(4),c=r(43),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=u(e),t=s(t,!0),c)try{return f(e,t)}catch(e){}if(a(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,r){var n=r(4),o=r(92),i=r(29),u=r(93),s=i("IE_PROTO"),a=Object.prototype;e.exports=u?Object.getPrototypeOf:function(e){return e=o(e),n(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,r){var n,o=r(3),i=r(94),u=r(34),s=r(30),a=r(54),c=r(27),f=r(29),l=f("IE_PROTO"),p=function(){},d=function(e){return"<script>"+e+"<\/script>"},h=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=n?function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t}(n):((t=c("iframe")).style.display="none",a.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F);for(var r=u.length;r--;)delete h.prototype[u[r]];return h()};s[l]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p.prototype=o(e),r=new p,p.prototype=null,r[l]=e):r=h(),void 0===t?r:i(r,t)}},function(e,t,r){var n=r(8).f,o=r(4),i=r(1)("toStringTag");e.exports=function(e,t,r){e&&!o(e=r?e:e.prototype,i)&&n(e,i,{configurable:!0,value:t})}},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedPlatformError=void 0;var i=function(e){function t(r){var n=this,o="This function is not supported in "+r+" environment";return n=e.call(this,o)||this,Error.captureStackTrace&&Error.captureStackTrace(n,t),n.name="UnsupportedPlatformError",n.platform=r,Object.setPrototypeOf(n,t.prototype),n}return o(t,e),t}(Error);t.UnsupportedPlatformError=i},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),u=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};e.exports={arrayToObject:u,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 i=t[n],u=i.obj[i.prop],s=Object.keys(u),a=0;a<s.length;++a){var c=s[a],f=u[c];"object"==typeof f&&null!==f&&-1===r.indexOf(f)&&(t.push({obj:u,prop:c}),r.push(f))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);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){if(0===e.length)return e;var n=e;if("symbol"==typeof e?n=Symbol.prototype.toString.call(e):"string"!=typeof e&&(n=String(e)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",u=0;u<n.length;++u){var s=n.charCodeAt(u);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=n.charAt(u):s<128?o+=i[s]:s<2048?o+=i[192|s>>6]+i[128|63&s]:s<55296||s>=57344?o+=i[224|s>>12]+i[128|s>>6&63]+i[128|63&s]:(u+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(u)),o+=i[240|s>>18]+i[128|s>>12&63]+i[128|s>>6&63]+i[128|63&s])}return o},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(o(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,i){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var s=t;return o(t)&&!o(r)&&(s=u(t,i)),o(t)&&o(r)?(r.forEach((function(r,o){if(n.call(t,o)){var u=t[o];u&&"object"==typeof u&&r&&"object"==typeof r?t[o]=e(u,r,i):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var u=r[o];return n.call(t,o)?t[o]=e(t[o],u,i):t[o]=u,t}),s)}}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){var n=r(14),o=r(42);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(0),o=r(26),i=n["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,r){var n=r(7),o=r(6),i=r(27);e.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){var n=r(9);e.exports=function(e,t){if(!n(e))return e;var r,o;if(t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if(!t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t,r){var n=r(6);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(e,t,r){var n=r(25),o=r(16),i=r(1)("toStringTag"),u="Arguments"==o(function(){return arguments}());e.exports=n?o: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=Object(e),i))?r:u?o(t):"Object"==(n=o(t))&&"function"==typeof t.callee?"Arguments":n}},function(e,t,r){"use strict";var n=r(10),o=r(91),i=r(35),u=r(55),s=r(37),a=r(5),c=r(12),f=r(1),l=r(14),p=r(17),d=r(53),h=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,y=f("iterator"),m=function(){return this};e.exports=function(e,t,r,f,d,b,g){o(r,t,f);var w,x,P,_=function(e){if(e===d&&j)return j;if(!v&&e in R)return R[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},S=t+" Iterator",O=!1,R=e.prototype,A=R[y]||R["@@iterator"]||d&&R[d],j=!v&&A||_(d),E="Array"==t&&R.entries||A;if(E&&(w=i(E.call(new e)),h!==Object.prototype&&w.next&&(l||i(w)===h||(u?u(w,h):"function"!=typeof w[y]&&a(w,y,m)),s(w,S,!0,!0),l&&(p[S]=m))),"values"==d&&A&&"values"!==A.name&&(O=!0,j=function(){return A.call(this)}),l&&!g||R[y]===j||a(R,y,j),p[t]=j,d)if(x={values:_("values"),keys:b?j:_("keys"),entries:_("entries")},g)for(P in x)(v||O||!(P in R))&&c(R,P,x[P]);else n({target:t,proto:!0,forced:v||O},x);return x}},function(e,t,r){var n=r(0);e.exports=n},function(e,t,r){var n=r(4),o=r(20),i=r(88).indexOf,u=r(30);e.exports=function(e,t){var r,s=o(e),a=0,c=[];for(r in s)!n(u,r)&&n(s,r)&&c.push(r);for(;t.length>a;)n(s,r=t[a++])&&(~i(c,r)||c.push(r));return c}},function(e,t,r){var n=r(31),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},function(e,t,r){var n=r(6),o=/#|\.prototype\./,i=function(e,t){var r=s[u(e)];return r==c||r!=a&&("function"==typeof t?n(t):!!t)},u=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},a=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},function(e,t,r){"use strict";var n,o,i,u=r(35),s=r(5),a=r(4),c=r(1),f=r(14),l=c("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(n=o):p=!0),null==n&&(n={}),f||a(n,l)||s(n,l,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},function(e,t,r){var n=r(11);e.exports=n("document","documentElement")},function(e,t,r){var n=r(3),o=r(96);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return n(r),o(i),t?e.call(r,i):r.__proto__=i,r}}():void 0)},function(e,t,r){var n=r(0);e.exports=n.Promise},function(e,t,r){var n=r(13);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){var n=r(3),o=r(13),i=r(1)("species");e.exports=function(e,t){var r,u=n(e).constructor;return void 0===u||null==(r=n(u)[i])?t:o(r)}},function(e,t,r){var n,o,i,u=r(0),s=r(6),a=r(16),c=r(57),f=r(54),l=r(27),p=r(60),d=u.location,h=u.setImmediate,v=u.clearImmediate,y=u.process,m=u.MessageChannel,b=u.Dispatch,g=0,w={},x=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},P=function(e){return function(){x(e)}},_=function(e){x(e.data)},S=function(e){u.postMessage(e+"",d.protocol+"//"+d.host)};h&&v||(h=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return w[++g]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(g),g},v=function(e){delete w[e]},"process"==a(y)?n=function(e){y.nextTick(P(e))}:b&&b.now?n=function(e){b.now(P(e))}:m&&!p?(i=(o=new m).port2,o.port1.onmessage=_,n=c(i.postMessage,i,1)):!u.addEventListener||"function"!=typeof postMessage||u.importScripts||s(S)||"file:"===d.protocol?n="onreadystatechange"in l("script")?function(e){f.appendChild(l("script")).onreadystatechange=function(){f.removeChild(this),x(e)}}:function(e){setTimeout(P(e),0)}:(n=S,u.addEventListener("message",_,!1))),e.exports={set:h,clear:v}},function(e,t,r){var n=r(61);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(e,t,r){var n=r(11);e.exports=n("navigator","userAgent")||""},function(e,t,r){var n=r(3),o=r(9),i=r(18);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){"use strict";var n=r(10),o=r(13),i=r(18),u=r(22),s=r(21);n({target:"Promise",stat:!0},{allSettled:function(e){var t=this,r=i.f(t),n=r.resolve,a=r.reject,c=u((function(){var r=o(t.resolve),i=[],u=0,a=1;s(e,(function(e){var o=u++,s=!1;i.push(void 0),a++,r.call(t,e).then((function(e){s||(s=!0,i[o]={status:"fulfilled",value:e},--a||n(i))}),(function(e){s||(s=!0,i[o]={status:"rejected",reason:e},--a||n(i))}))})),--a||n(i)}));return c.error&&a(c.value),r.promise}})},function(e,t){e.exports="object"==typeof self?self.FormData:window.FormData},function(e,t,r){"use strict";e.exports=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)}}},function(e,t,r){"use strict";var n=r(2);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var u=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),u.push(o(t)+"="+o(e))})))})),i=u.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,r){"use strict";(function(t){var n=r(2),o=r(133),i={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,a={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(s=r(69)),s),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(u(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};a.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(e){a.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){a.headers[e]=n.merge(i)})),e.exports=a}).call(this,r(132))},function(e,t,r){"use strict";var n=r(2),o=r(134),i=r(66),u=r(136),s=r(139),a=r(140),c=r(70);e.exports=function(e){return new Promise((function(t,f){var l=e.data,p=e.headers;n.isFormData(l)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",v=e.auth.password||"";p.Authorization="Basic "+btoa(h+":"+v)}var y=u(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),i(y,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?s(d.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:e,request:d};o(t,f,n),d=null}},d.onabort=function(){d&&(f(c("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){f(c("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),f(c(t,e,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var m=r(141),b=(e.withCredentials||a(y))&&e.xsrfCookieName?m.read(e.xsrfCookieName):void 0;b&&(p[e.xsrfHeaderName]=b)}if("setRequestHeader"in d&&n.forEach(p,(function(e,t){void 0===l&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),f(e),d=null)})),void 0===l&&(l=null),d.send(l)}))}},function(e,t,r){"use strict";var n=r(135);e.exports=function(e,t,r,o,i){var u=new Error(e);return n(u,t,r,o,i)}},function(e,t,r){"use strict";var n=r(2);e.exports=function(e,t){t=t||{};var r={},o=["url","method","params","data"],i=["headers","auth","proxy"],u=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];n.forEach(o,(function(e){void 0!==t[e]&&(r[e]=t[e])})),n.forEach(i,(function(o){n.isObject(t[o])?r[o]=n.deepMerge(e[o],t[o]):void 0!==t[o]?r[o]=t[o]:n.isObject(e[o])?r[o]=n.deepMerge(e[o]):void 0!==e[o]&&(r[o]=e[o])})),n.forEach(u,(function(n){void 0!==t[n]?r[n]=t[n]:void 0!==e[n]&&(r[n]=e[n])}));var s=o.concat(i).concat(u),a=Object.keys(t).filter((function(e){return-1===s.indexOf(e)}));return n.forEach(a,(function(n){void 0!==t[n]?r[n]=t[n]:void 0!==e[n]&&(r[n]=e[n])})),r}},function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g,i=r(39),u={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:u.RFC3986,formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return String(e)}}},u)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),r(75);var u=r(23),s=i(r(117));u.injectPlatformDeps(s);var a=r(118);Object.defineProperty(t,"KintoneRestAPIClient",{enumerable:!0,get:function(){return a.KintoneRestAPIClient}})},function(e,t,r){var n=r(76);r(113),r(114),r(115),r(116),e.exports=n},function(e,t,r){r(77),r(81),r(97),r(101),r(63),r(112);var n=r(49);e.exports=n.Promise},function(e,t,r){var n=r(25),o=r(12),i=r(80);n||o(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,r){var n=r(46);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,r){var n=r(0),o=r(28),i=n.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},function(e,t,r){"use strict";var n=r(25),o=r(47);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,r){"use strict";var n=r(82).charAt,o=r(15),i=r(48),u=o.set,s=o.getterFor("String Iterator");i(String,"String",(function(e){u(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=s(this),r=t.string,o=t.index;return o>=r.length?{value:void 0,done:!0}:(e=n(r,o),t.index+=e.length,{value:e,done:!1})}))},function(e,t,r){var n=r(31),o=r(32),i=function(e){return function(t,r){var i,u,s=String(o(t)),a=n(r),c=s.length;return a<0||a>=c?e?"":void 0:(i=s.charCodeAt(a))<55296||i>56319||a+1===c||(u=s.charCodeAt(a+1))<56320||u>57343?e?s.charAt(a):i:e?s.slice(a,a+2):u-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},function(e,t,r){var n=r(6),o=r(16),i="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t,r){var n=r(4),o=r(86),i=r(33),u=r(8);e.exports=function(e,t){for(var r=o(t),s=u.f,a=i.f,c=0;c<r.length;c++){var f=r[c];n(e,f)||s(e,f,a(t,f))}}},function(e,t,r){var n=r(11),o=r(87),i=r(90),u=r(3);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(u(e)),r=i.f;return r?t.concat(r(e)):t}},function(e,t,r){var n=r(50),o=r(34).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},function(e,t,r){var n=r(20),o=r(51),i=r(89),u=function(e){return function(t,r,u){var s,a=n(t),c=o(a.length),f=i(u,c);if(e&&r!=r){for(;c>f;)if((s=a[f++])!=s)return!0}else for(;c>f;f++)if((e||f in a)&&a[f]===r)return e||f||0;return!e&&-1}};e.exports={includes:u(!0),indexOf:u(!1)}},function(e,t,r){var n=r(31),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){"use strict";var n=r(53).IteratorPrototype,o=r(36),i=r(19),u=r(37),s=r(17),a=function(){return this};e.exports=function(e,t,r){var c=t+" Iterator";return e.prototype=o(n,{next:i(1,r)}),u(e,c,!1,!0),s[c]=a,e}},function(e,t,r){var n=r(32);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(6);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,r){var n=r(7),o=r(8),i=r(3),u=r(95);e.exports=n?Object.defineProperties:function(e,t){i(e);for(var r,n=u(t),s=n.length,a=0;s>a;)o.f(e,r=n[a++],t[r]);return e}},function(e,t,r){var n=r(50),o=r(34);e.exports=Object.keys||function(e){return n(e,o)}},function(e,t,r){var n=r(9);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,r){var n=r(0),o=r(98),i=r(99),u=r(5),s=r(1),a=s("iterator"),c=s("toStringTag"),f=i.values;for(var l in o){var p=n[l],d=p&&p.prototype;if(d){if(d[a]!==f)try{u(d,a,f)}catch(e){d[a]=f}if(d[c]||u(d,c,l),o[l])for(var h in i)if(d[h]!==i[h])try{u(d,h,i[h])}catch(e){d[h]=i[h]}}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,r){"use strict";var n=r(20),o=r(100),i=r(17),u=r(15),s=r(48),a=u.set,c=u.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){a(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,r){var n=r(1),o=r(36),i=r(8),u=n("unscopables"),s=Array.prototype;null==s[u]&&i.f(s,u,{configurable:!0,value:o(null)}),e.exports=function(e){s[u][e]=!0}},function(e,t,r){"use strict";var n,o,i,u,s=r(10),a=r(14),c=r(0),f=r(11),l=r(56),p=r(12),d=r(102),h=r(37),v=r(103),y=r(9),m=r(13),b=r(104),g=r(16),w=r(28),x=r(21),P=r(108),_=r(58),S=r(59).set,O=r(109),R=r(62),A=r(110),j=r(18),E=r(22),C=r(15),I=r(52),T=r(1),k=r(111),N=T("species"),D="Promise",B=C.get,q=C.set,F=C.getterFor(D),W=l,L=c.TypeError,M=c.document,G=c.process,U=f("fetch"),H=j.f,K=H,z="process"==g(G),V=!!(M&&M.createEvent&&c.dispatchEvent),Q=I(D,(function(){if(!(w(W)!==String(W))){if(66===k)return!0;if(!z&&"function"!=typeof PromiseRejectionEvent)return!0}if(a&&!W.prototype.finally)return!0;if(k>=51&&/native code/.test(W))return!1;var e=W.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[N]=t,!(e.then((function(){}))instanceof t)})),$=Q||!P((function(e){W.all(e).catch((function(){}))})),X=function(e){var t;return!(!y(e)||"function"!=typeof(t=e.then))&&t},Y=function(e,t,r){if(!t.notified){t.notified=!0;var n=t.reactions;O((function(){for(var o=t.value,i=1==t.state,u=0;n.length>u;){var s,a,c,f=n[u++],l=i?f.ok:f.fail,p=f.resolve,d=f.reject,h=f.domain;try{l?(i||(2===t.rejection&&te(e,t),t.rejection=1),!0===l?s=o:(h&&h.enter(),s=l(o),h&&(h.exit(),c=!0)),s===f.promise?d(L("Promise-chain cycle")):(a=X(s))?a.call(s,p,d):p(s)):d(o)}catch(e){h&&!c&&h.exit(),d(e)}}t.reactions=[],t.notified=!1,r&&!t.rejection&&Z(e,t)}))}},J=function(e,t,r){var n,o;V?((n=M.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},(o=c["on"+e])?o(n):"unhandledrejection"===e&&A("Unhandled promise rejection",r)},Z=function(e,t){S.call(c,(function(){var r,n=t.value;if(ee(t)&&(r=E((function(){z?G.emit("unhandledRejection",n,e):J("unhandledrejection",e,n)})),t.rejection=z||ee(t)?2:1,r.error))throw r.value}))},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){S.call(c,(function(){z?G.emit("rejectionHandled",e):J("rejectionhandled",e,t.value)}))},re=function(e,t,r,n){return function(o){e(t,r,o,n)}},ne=function(e,t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=2,Y(e,t,!0))},oe=function(e,t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(e===r)throw L("Promise can't be resolved itself");var o=X(r);o?O((function(){var n={done:!1};try{o.call(r,re(oe,e,n,t),re(ne,e,n,t))}catch(r){ne(e,n,r,t)}})):(t.value=r,t.state=1,Y(e,t,!1))}catch(r){ne(e,{done:!1},r,t)}}};Q&&(W=function(e){b(this,W,D),m(e),n.call(this);var t=B(this);try{e(re(oe,this,t),re(ne,this,t))}catch(e){ne(this,t,e)}},(n=function(e){q(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(W.prototype,{then:function(e,t){var r=F(this),n=H(_(this,W));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=z?G.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&Y(this,r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n,t=B(e);this.promise=e,this.resolve=re(oe,e,t),this.reject=re(ne,e,t)},j.f=H=function(e){return e===W||e===i?new o(e):K(e)},a||"function"!=typeof l||(u=l.prototype.then,p(l.prototype,"then",(function(e,t){var r=this;return new W((function(e,t){u.call(r,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof U&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return R(W,U.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:Q},{Promise:W}),h(W,D,!1,!0),v(D),i=f(D),s({target:D,stat:!0,forced:Q},{reject:function(e){var t=H(this);return t.reject.call(void 0,e),t.promise}}),s({target:D,stat:!0,forced:a||Q},{resolve:function(e){return R(a&&this===i?W:this,e)}}),s({target:D,stat:!0,forced:$},{all:function(e){var t=this,r=H(t),n=r.resolve,o=r.reject,i=E((function(){var r=m(t.resolve),i=[],u=0,s=1;x(e,(function(e){var a=u++,c=!1;i.push(void 0),s++,r.call(t,e).then((function(e){c||(c=!0,i[a]=e,--s||n(i))}),o)})),--s||n(i)}));return i.error&&o(i.value),r.promise},race:function(e){var t=this,r=H(t),n=r.reject,o=E((function(){var o=m(t.resolve);x(e,(function(e){o.call(t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}})},function(e,t,r){var n=r(12);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},function(e,t,r){"use strict";var n=r(11),o=r(8),i=r(1),u=r(7),s=i("species");e.exports=function(e){var t=n(e),r=o.f;u&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},function(e,t,r){var n=r(1),o=r(17),i=n("iterator"),u=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||u[i]===e)}},function(e,t,r){var n=r(47),o=r(17),i=r(1)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[n(e)]}},function(e,t,r){var n=r(3);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){var i=e.return;throw void 0!==i&&n(i.call(e)),t}}},function(e,t,r){var n=r(1)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[n]=function(){return this},Array.from(u,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},function(e,t,r){var n,o,i,u,s,a,c,f,l=r(0),p=r(33).f,d=r(16),h=r(59).set,v=r(60),y=l.MutationObserver||l.WebKitMutationObserver,m=l.process,b=l.Promise,g="process"==d(m),w=p(l,"queueMicrotask"),x=w&&w.value;x||(n=function(){var e,t;for(g&&(e=m.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?u():i=void 0,e}}i=void 0,e&&e.enter()},g?u=function(){m.nextTick(n)}:y&&!v?(s=!0,a=document.createTextNode(""),new y(n).observe(a,{characterData:!0}),u=function(){a.data=s=!s}):b&&b.resolve?(c=b.resolve(void 0),f=c.then,u=function(){f.call(c,n)}):u=function(){h.call(l,n)}),e.exports=x||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,u()),i=t}},function(e,t,r){var n=r(0);e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},function(e,t,r){var n,o,i=r(0),u=r(61),s=i.process,a=s&&s.versions,c=a&&a.v8;c?o=(n=c.split("."))[0]+n[1]:u&&(!(n=u.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/))&&(o=n[1]),e.exports=o&&+o},function(e,t,r){"use strict";var n=r(10),o=r(14),i=r(56),u=r(6),s=r(11),a=r(58),c=r(62),f=r(12);n({target:"Promise",proto:!0,real:!0,forced:!!i&&u((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=a(this,s("Promise")),r="function"==typeof e;return this.then(r?function(r){return c(t,e()).then((function(){return r}))}:e,r?function(r){return c(t,e()).then((function(){throw r}))}:e)}}),o||"function"!=typeof i||i.prototype.finally||f(i.prototype,"finally",s("Promise").prototype.finally)},function(e,t,r){"use strict";var n=r(10),o=r(7),i=r(35),u=r(55),s=r(36),a=r(8),c=r(19),f=r(21),l=r(5),p=r(15),d=p.set,h=p.getterFor("AggregateError"),v=function(e,t){var r=this;if(!(r instanceof v))return new v(e,t);u&&(r=u(new Error(t),i(r)));var n=[];return f(e,n.push,n),o?d(r,{errors:n,type:"AggregateError"}):r.errors=n,void 0!==t&&l(r,"message",String(t)),r};v.prototype=s(Error.prototype,{constructor:c(5,v),message:c(5,""),name:c(5,"AggregateError")}),o&&a.f(v.prototype,"errors",{get:function(){return h(this).errors},configurable:!0}),n({global:!0},{AggregateError:v})},function(e,t,r){r(63)},function(e,t,r){"use strict";var n=r(10),o=r(18),i=r(22);n({target:"Promise",stat:!0},{try:function(e){var t=o.f(this),r=i(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}})},function(e,t,r){"use strict";var n=r(10),o=r(13),i=r(11),u=r(18),s=r(22),a=r(21);n({target:"Promise",stat:!0},{any:function(e){var t=this,r=u.f(t),n=r.resolve,c=r.reject,f=s((function(){var r=o(t.resolve),u=[],s=0,f=1,l=!1;a(e,(function(e){var o=s++,a=!1;u.push(void 0),f++,r.call(t,e).then((function(e){a||l||(l=!0,n(e))}),(function(e){a||l||(a=!0,u[o]=e,--f||c(new(i("AggregateError"))(u,"No one promise resolved")))}))})),--f||c(new(i("AggregateError"))(u,"No one promise resolved"))}));return f.error&&c(f.value),r.promise}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildHeaders=t.buildPlatformDependentConfig=t.getRequestToken=t.readFileFromPath=void 0;var n=r(38);t.readFileFromPath=function(e){throw new n.UnsupportedPlatformError("Browser")},t.getRequestToken=function(){if("undefined"==typeof kintone||"function"!=typeof kintone.getRequestToken)throw new Error("session authentication must specify a request token");return kintone.getRequestToken()},t.buildPlatformDependentConfig=function(){return{}},t.buildHeaders=function(){return{}}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.KintoneRestAPIClient=t.errorResponseHandler=void 0;var i=r(119),u=r(120),s=r(121),a=r(123),c=r(124),f=r(145),l=r(146),p=r(147),d=r(23),h=r(38);t.errorResponseHandler=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,i=o(t,["data"]);if("string"==typeof r)throw new Error(i.status+": "+i.statusText);throw new l.KintoneRestAPIError(n({data:r},i))};var v=function(){function e(e){var r,n;void 0===e&&(e={});var o=this.buildAuth(null!==(r=e.auth)&&void 0!==r?r:{}),f=this.buildParams(o);if(this.headers=this.buildHeaders(o,e.basicAuth),this.baseUrl=null!==(n=e.baseUrl)&&void 0!==n?n:null===location||void 0===location?void 0:location.origin,void 0===this.baseUrl)throw new Error("in Node.js environment, baseUrl is required");var l=new c.DefaultHttpClient({errorResponseHandler:t.errorResponseHandler,requestConfigBuilder:new p.KintoneRequestConfigBuilder(this.baseUrl,this.headers,f,{clientCertAuth:e.clientCertAuth,proxy:e.proxy})}),d=e.guestSpaceId;this.bulkRequest_=new i.BulkRequestClient(l,d),this.record=new s.RecordClient(l,this.bulkRequest_,d),this.app=new u.AppClient(l,d),this.file=new a.FileClient(l,d)}return e.prototype.getBaseUrl=function(){return this.baseUrl},e.prototype.getHeaders=function(){return this.headers},e.prototype.buildAuth=function(e){return"username"in e?n({type:"password"},e):"apiToken"in e?n({type:"apiToken"},e):"oAuthToken"in e?n({type:"oAuthToken"},e):{type:"session"}},e.prototype.buildHeaders=function(e,t){var r=t?{Authorization:"Basic "+f.Base64.encode(t.username+":"+t.password)}:{},o=d.platformDeps.buildHeaders(),i=n(n({},o),r);switch(e.type){case"password":return n(n({},i),{"X-Cybozu-Authorization":f.Base64.encode(e.username+":"+e.password)});case"apiToken":return Array.isArray(e.apiToken)?n(n({},i),{"X-Cybozu-API-Token":e.apiToken.join(",")}):n(n({},i),{"X-Cybozu-API-Token":e.apiToken});case"oAuthToken":return n(n({},i),{Authorization:"Bearer "+e.oAuthToken});default:return n(n({},i),{"X-Requested-With":"XMLHttpRequest"})}},e.prototype.buildParams=function(e){var t;if("session"===e.type)try{t=d.platformDeps.getRequestToken()}catch(e){if(e instanceof h.UnsupportedPlatformError)throw new Error("session authentication is not supported in "+e.platform+" environment.");throw e}return t?{__REQUEST_TOKEN__:t}:{}},e.prototype.bulkRequest=function(e){return this.bulkRequest_.send(e)},e}();t.KintoneRestAPIClient=v},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.BulkRequestClient=void 0;var i=r(24),u=function(){function e(e,t){this.client=e,this.guestSpaceId=t,this.REQUESTS_LENGTH_LIMIT=20}return e.prototype.send=function(e){var t=this,r=e.requests.map((function(e){if("endpointName"in e){var r=e.endpointName,i=o(e,["endpointName"]);return n({api:t.buildPathWithGuestSpaceId({endpointName:r})},i)}return e})),i=this.buildPathWithGuestSpaceId({endpointName:"bulkRequest"});return this.client.post(i,{requests:r})},e.prototype.buildPathWithGuestSpaceId=function(e){return i.buildPath(n(n({},e),{guestSpaceId:this.guestSpaceId}))},e}();t.BulkRequestClient=u},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function u(e){try{a(n.next(e))}catch(e){i(e)}}function s(e){try{a(n.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(u,s)}a((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,n=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},u=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.AppClient=void 0;var s=r(24),a=function(){function e(e,t){this.client=e,this.guestSpaceId=t}return e.prototype.getFormFields=function(e){var t=e.preview,r=u(e,["preview"]),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:t});return this.client.get(o,n({},r))},e.prototype.addFormFields=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.post(t,e)},e.prototype.updateFormFields=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.put(t,e)},e.prototype.deleteFormFields=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.delete(t,e)},e.prototype.getFormLayout=function(e){var t=e.preview,r=u(e,["preview"]),o=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:t});return this.client.get(o,n({},r))},e.prototype.updateFormLayout=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:!0});return this.client.put(t,e)},e.prototype.getViews=function(e){var t=e.preview,r=u(e,["preview"]),n=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:t});return this.client.get(n,r)},e.prototype.updateViews=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:!0});return this.client.put(t,e)},e.prototype.getApp=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app"});return this.client.get(t,e)},e.prototype.getApps=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"apps"});return this.client.get(t,e)},e.prototype.addApp=function(e){return o(this,void 0,Promise,(function(){var t,r,o,u,s;return i(this,(function(i){switch(i.label){case 0:return t=e.name,r=e.space,o=this.buildPathWithGuestSpaceId({endpointName:"app",preview:!0}),r?(u=this.buildPathWithGuestSpaceId({endpointName:"space"}),[4,this.client.get(u,{id:r})]):[3,2];case 1:return s=i.sent().defaultThread,[2,this.client.post(o,n(n({},e),{thread:s}))];case 2:return[2,this.client.post(o,{name:t})]}}))}))},e.prototype.getAppSettings=function(e){var t=e.preview,r=u(e,["preview"]),n=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:t});return this.client.get(n,r)},e.prototype.updateAppSettings=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:!0});return this.client.put(t,e)},e.prototype.getProcessManagement=function(e){var t=e.preview,r=u(e,["preview"]),n=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:t});return this.client.get(n,r)},e.prototype.updateProcessManagement=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:!0});return this.client.put(t,e)},e.prototype.getDeployStatus=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.get(t,e)},e.prototype.deployApp=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.post(t,e)},e.prototype.getFieldAcl=function(e){var t=e.preview,r=u(e,["preview"]),o=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:t});return this.client.get(o,n({},r))},e.prototype.updateFieldAcl=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:!0});return this.client.put(t,e)},e.prototype.getAppAcl=function(e){var t=e.preview,r=u(e,["preview"]),o=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:t});return this.client.get(o,n({},r))},e.prototype.updateAppAcl=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:!0});return this.client.put(t,e)},e.prototype.evaluateRecordsAcl=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/acl/evaluate"});return this.client.get(t,e)},e.prototype.getRecordAcl=function(e){var t=e.preview,r=u(e,["preview"]),o=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:t});return this.client.get(o,n({},r))},e.prototype.updateRecordAcl=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:!0});return this.client.put(t,e)},e.prototype.getAppCustomize=function(e){var t=e.preview,r=u(e,["preview"]),o=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:t});return this.client.get(o,n({},r))},e.prototype.updateAppCustomize=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:!0});return this.client.put(t,e)},e.prototype.buildPathWithGuestSpaceId=function(e){return s.buildPath(n(n({},e),{guestSpaceId:this.guestSpaceId}))},e}();t.AppClient=a},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function u(e){try{a(n.next(e))}catch(e){i(e)}}function s(e){try{a(n.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(u,s)}a((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,n=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},u=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},s=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],u=0,s=i.length;u<s;u++,o++)n[o]=i[u];return n};Object.defineProperty(t,"__esModule",{value:!0}),t.RecordClient=void 0;var a=r(24),c=r(122),f=function(){function e(e,t,r){this.client=e,this.bulkRequestClient=t,this.guestSpaceId=r,this.didWarnMaximumOffsetValue=!1}return e.prototype.getRecord=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.get(t,e)},e.prototype.addRecord=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.post(t,e)},e.prototype.updateRecord=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.put(t,e)},e.prototype.upsertRecord=function(e){return o(this,void 0,Promise,(function(){var t,r,o,u,s,a;return i(this,(function(i){switch(i.label){case 0:return t=e.app,r=e.updateKey,o=e.record,[4,this.getRecords({app:t,query:r.field+' = "'+r.value+'"'})];case 1:return(u=i.sent().records).length>0?"__ID__"!==u[0].$id.type?[3,3]:[4,this.updateRecord(e)]:[3,4];case 2:return s=i.sent().revision,[2,{id:u[0].$id.value,revision:s}];case 3: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 4:return[2,this.addRecord({app:t,record:n(n({},o),(a={},a[r.field]={value:r.value},a))})]}}))}))},e.prototype.getRecords=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records"});if(e.query){var r=e.query.match(/offset\s+(\d+)/i);!this.didWarnMaximumOffsetValue&&r&&Number(r[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."))}return this.client.get(t,e)},e.prototype.addRecords=function(e){return o(this,void 0,Promise,(function(){var t,r,n,o;return i(this,(function(i){switch(i.label){case 0:return t=this.buildPathWithGuestSpaceId({endpointName:"records"}),[4,this.client.post(t,e)];case 1:return r=i.sent(),n=r.ids,o=r.revisions,[2,{ids:n,revisions:o,records:n.map((function(e,t){return{id:e,revision:o[t]}}))}]}}))}))},e.prototype.updateRecords=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.put(t,e)},e.prototype.deleteRecords=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.delete(t,e)},e.prototype.createCursor=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.post(t,e)},e.prototype.getRecordsByCursor=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.get(t,e)},e.prototype.deleteCursor=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.delete(t,e)},e.prototype.getAllRecords=function(e){return o(this,void 0,Promise,(function(){var t,r,o,s,a,c;return i(this,(function(i){return t=e.condition,r=e.orderBy,o=e.withCursor,s=void 0===o||o,a=u(e,["condition","orderBy","withCursor"]),r?s?(c=(t?t+" ":"")+(r?"order by "+r:""),[2,this.getAllRecordsWithCursor(n(n({},a),{query:c}))]):[2,this.getAllRecordsWithOffset(n(n({},a),{orderBy:r,condition:t}))]:[2,this.getAllRecordsWithId(n(n({},a),{condition:t}))]}))}))},e.prototype.getAllRecordsWithId=function(e){return o(this,void 0,Promise,(function(){var t,r,o;return i(this,(function(i){return t=e.fields,r=u(e,["fields"]),(o=t)&&o.length>0&&-1===o.indexOf("$id")&&(o=s(o,["$id"])),[2,this.getAllRecordsRecursiveWithId(n(n({},r),{fields:o}),"0",[])]}))}))},e.prototype.getAllRecordsRecursiveWithId=function(e,t,r){return o(this,void 0,Promise,(function(){var o,s,a,c,f,l,p,d;return i(this,(function(i){switch(i.label){case 0:return o=500,s=e.condition,a=u(e,["condition"]),c=(s?s+" and ":"")+"$id > "+t+" order by $id asc limit "+o,[4,this.getRecords(n(n({},a),{query:c}))];case 1:if(f=i.sent(),l=r.concat(f.records),f.records.length<o)return[2,l];if("__ID__"===(p=f.records[f.records.length-1]).$id.type)return d=p.$id.value,[2,this.getAllRecordsRecursiveWithId(e,d,l)];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.")}}))}))},e.prototype.getAllRecordsWithOffset=function(e){return o(this,void 0,Promise,(function(){return i(this,(function(t){return[2,this.getAllRecordsRecursiveWithOffset(e,0,[])]}))}))},e.prototype.getAllRecordsRecursiveWithOffset=function(e,t,r){return o(this,void 0,Promise,(function(){var o,s,a,c,f,l,p;return i(this,(function(i){switch(i.label){case 0:return o=500,s=e.condition,a=e.orderBy,c=u(e,["condition","orderBy"]),f=(s?s+" ":"")+(a?"order by "+a+" ":"")+"limit "+o+" offset "+t,[4,this.getRecords(n(n({},c),{query:f}))];case 1:return l=i.sent(),p=r.concat(l.records),l.records.length<o?[2,p]:[2,this.getAllRecordsRecursiveWithOffset(e,t+o,p)]}}))}))},e.prototype.getAllRecordsWithCursor=function(e){return o(this,void 0,Promise,(function(){var t,r;return i(this,(function(n){switch(n.label){case 0:return[4,this.createCursor(e)];case 1:t=n.sent().id,n.label=2;case 2:return n.trys.push([2,4,,5]),[4,this.getAllRecordsRecursiveByCursor(t,[])];case 3:return[2,n.sent()];case 4:throw r=n.sent(),this.deleteCursor({id:t}),r;case 5:return[2]}}))}))},e.prototype.getAllRecordsRecursiveByCursor=function(e,t){return o(this,void 0,Promise,(function(){var r,n;return i(this,(function(o){switch(o.label){case 0:return[4,this.getRecordsByCursor({id:e})];case 1:return r=o.sent(),n=t.concat(r.records),r.next?[2,this.getAllRecordsRecursiveByCursor(e,n)]:[2,n]}}))}))},e.prototype.addAllRecords=function(e){return o(this,void 0,Promise,(function(){return i(this,(function(t){if(!e.records.every((function(e){return!Array.isArray(e)&&e instanceof Object})))throw new Error("the `records` parameter must be an array of object.");return[2,this.addAllRecordsRecursive(e,e.records.length,[])]}))}))},e.prototype.addAllRecordsRecursive=function(e,t,r){return o(this,void 0,Promise,(function(){var n,o,u,s,a,f;return i(this,(function(i){switch(i.label){case 0:if(n=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,o=e.app,u=e.records,0===(s=u.slice(0,n)).length)return[2,{records:r}];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.addAllRecordsWithBulkRequest({app:o,records:s})];case 2:return a=i.sent(),[3,4];case 3:throw f=i.sent(),new c.KintoneAllRecordsError({records:r},u,t,f,100);case 4:return[2,this.addAllRecordsRecursive({app:o,records:u.slice(n)},t,r.concat(a))]}}))}))},e.prototype.addAllRecordsWithBulkRequest=function(e){return o(this,void 0,Promise,(function(){var t,r;return i(this,(function(n){switch(n.label){case 0:return t=this.separateArrayRecursive(100,[],e.records),r=t.map((function(t){return{method:"POST",endpointName:"records",payload:{app:e.app,records:t}}})),[4,this.bulkRequestClient.send({requests:r})];case 1:return[2,n.sent().results.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)}),[])]}}))}))},e.prototype.updateAllRecords=function(e){return o(this,void 0,Promise,(function(){return i(this,(function(t){return[2,this.updateAllRecordsRecursive(e,e.records.length,[])]}))}))},e.prototype.updateAllRecordsRecursive=function(e,t,r){return o(this,void 0,Promise,(function(){var n,o,u,s,a,f;return i(this,(function(i){switch(i.label){case 0:if(n=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,o=e.app,u=e.records,0===(s=u.slice(0,n)).length)return[2,{records:r}];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.updateAllRecordsWithBulkRequest({app:o,records:s})];case 2:return a=i.sent(),[3,4];case 3:throw f=i.sent(),new c.KintoneAllRecordsError({records:r},u,t,f,100);case 4:return[2,this.updateAllRecordsRecursive({app:o,records:u.slice(n)},t,r.concat(a))]}}))}))},e.prototype.updateAllRecordsWithBulkRequest=function(e){return o(this,void 0,Promise,(function(){var t,r;return i(this,(function(n){switch(n.label){case 0:return t=this.separateArrayRecursive(100,[],e.records),r=t.map((function(t){return{method:"PUT",endpointName:"records",payload:{app:e.app,records:t}}})),[4,this.bulkRequestClient.send({requests:r})];case 1:return[2,n.sent().results.map((function(e){return e.records})).reduce((function(e,t){return e.concat(t)}),[])]}}))}))},e.prototype.deleteAllRecords=function(e){return this.deleteAllRecordsRecursive(e,e.records.length)},e.prototype.deleteAllRecordsRecursive=function(e,t){return o(this,void 0,Promise,(function(){var r,n,o,u,s;return i(this,(function(i){switch(i.label){case 0:if(r=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,n=e.app,o=e.records,0===(u=o.slice(0,r)).length)return[2,{}];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.deleteAllRecordsWithBulkRequest({app:n,records:u})];case 2:return i.sent(),[3,4];case 3:throw s=i.sent(),new c.KintoneAllRecordsError({},o,t,s,100);case 4:return[2,this.deleteAllRecordsRecursive({app:n,records:o.slice(r)},t)]}}))}))},e.prototype.deleteAllRecordsWithBulkRequest=function(e){return o(this,void 0,Promise,(function(){var t,r;return i(this,(function(n){switch(n.label){case 0:return t=this.separateArrayRecursive(100,[],e.records),r=t.map((function(t){return{method:"DELETE",endpointName:"records",payload:{app:e.app,ids:t.map((function(e){return e.id})),revisions:t.map((function(e){return e.revision}))}}})),[4,this.bulkRequestClient.send({requests:r})];case 1:return n.sent(),[2]}}))}))},e.prototype.separateArrayRecursive=function(e,t,r){var n=r.slice(0,e);return 0===n.length?t:this.separateArrayRecursive(e,s(t,[n]),r.slice(e))},e.prototype.addRecordComment=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.post(t,e)},e.prototype.deleteRecordComment=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.delete(t,e)},e.prototype.getRecordComments=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comments"});return this.client.get(t,e)},e.prototype.updateRecordAssignees=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/assignees"});return this.client.put(t,e)},e.prototype.updateRecordStatus=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/status"});return this.client.put(t,e)},e.prototype.updateRecordsStatus=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/status"});return this.client.put(t,e)},e.prototype.buildPathWithGuestSpaceId=function(e){return a.buildPath(n(n({},e),{guestSpaceId:this.guestSpaceId}))},e}();t.RecordClient=f},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.KintoneAllRecordsError=void 0;var i=function(e){function t(r,n,o,i,u){var s=this,a=o-n.length,c=t.extractErrorIndex(a,i,u),f=t.buildErrorMessage(a,o,c);return(s=e.call(this,f)||this).name="KintoneAllRecordsError",s.processedRecordsResult=r,s.unprocessedRecords=n,s.error=i,s.errorIndex=c,s.message=f,Object.setPrototypeOf(s,t.prototype),s}return o(t,e),t.parseErrorIndex=function(e){var t=Object.keys(e)[0].match(/records\[(\d+)\]/);return t?Number(t[1]):null},t.extractErrorIndex=function(e,r,n){if(void 0!==r.bulkRequestIndex&&r.errors){var o=t.parseErrorIndex(r.errors);if(null!==o)return e+r.bulkRequestIndex*n+o}},t.buildErrorMessage=function(e,t,r){var n="";return void 0!==r&&(n="An error occurred at records["+r+"]. "),n+=e+"/"+t+" records are processed successfully"},t}(Error);t.KintoneAllRecordsError=i},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function u(e){try{a(n.next(e))}catch(e){i(e)}}function s(e){try{a(n.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(u,s)}a((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,n=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FileClient=void 0;var s=r(24),a=u(r(64)),c=r(23),f=r(38),l=function(){function e(e,t){this.client=e,this.guestSpaceId=t}return e.prototype.uploadFile=function(e){return o(this,void 0,Promise,(function(){var t,r,n,o,u,s,l;return i(this,(function(i){switch(i.label){case 0:if(t=this.buildPathWithGuestSpaceId({endpointName:"file"}),r=new a.default,!("path"in e.file))return[3,5];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,c.platformDeps.readFileFromPath(e.file.path)];case 2:return n=i.sent(),s=n.name,l=n.data,r.append("file",l,s),[3,4];case 3:if((o=i.sent())instanceof f.UnsupportedPlatformError)throw new Error("uploadFile doesn't allow to accept a file path in "+o.platform+" environment.");throw o;case 4:return[3,6];case 5:u=e.file,s=u.name,l=u.data,r.append("file",l,s),i.label=6;case 6:return[2,this.client.postData(t,r)]}}))}))},e.prototype.downloadFile=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"file"});return this.client.getData(t,e)},e.prototype.buildPathWithGuestSpaceId=function(e){return s.buildPath(n(n({},e),{guestSpaceId:this.guestSpaceId}))},e}();t.FileClient=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(125);Object.defineProperty(t,"DefaultHttpClient",{enumerable:!0,get:function(){return n.AxiosClient}});var o=r(144);Object.defineProperty(t,"HttpClient",{enumerable:!0,get:function(){return o.HttpClient}})},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function u(e){try{a(n.next(e))}catch(e){i(e)}}function s(e){try{a(n.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(u,s)}a((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,n=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AxiosClient=void 0;var u=i(r(126)),s=function(){function e(e){var t=e.errorResponseHandler,r=e.requestConfigBuilder;this.errorResponseHandler=t,this.requestConfigBuilder=r}return e.prototype.get=function(e,t){return n(this,void 0,void 0,(function(){var r;return o(this,(function(n){return r=this.requestConfigBuilder.build("get",e,t),[2,this.sendRequest(r)]}))}))},e.prototype.getData=function(e,t){return n(this,void 0,void 0,(function(){var r;return o(this,(function(n){return r=this.requestConfigBuilder.build("get",e,t,{responseType:"arraybuffer"}),[2,this.sendRequest(r)]}))}))},e.prototype.post=function(e,t){return n(this,void 0,void 0,(function(){var r;return o(this,(function(n){return r=this.requestConfigBuilder.build("post",e,t),[2,this.sendRequest(r)]}))}))},e.prototype.postData=function(e,t){return n(this,void 0,void 0,(function(){var r;return o(this,(function(n){return r=this.requestConfigBuilder.build("post",e,t),[2,this.sendRequest(r)]}))}))},e.prototype.put=function(e,t){return n(this,void 0,void 0,(function(){var r;return o(this,(function(n){return r=this.requestConfigBuilder.build("put",e,t),[2,this.sendRequest(r)]}))}))},e.prototype.delete=function(e,t){return n(this,void 0,void 0,(function(){var r;return o(this,(function(n){return r=this.requestConfigBuilder.build("delete",e,t),[2,this.sendRequest(r)]}))}))},e.prototype.sendRequest=function(e){return n(this,void 0,void 0,(function(){var t,r,n;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,u.default(e)];case 1:return r=o.sent(),t=r.data,[3,3];case 2:return n=o.sent(),this.handleError(n),[3,3];case 3:return[2,t]}}))}))},e.prototype.handleError=function(e){this.errorResponseHandler(e)},e}();t.AxiosClient=s},function(e,t,r){e.exports=r(127)},function(e,t,r){"use strict";var n=r(2),o=r(65),i=r(128),u=r(71);function s(e){var t=new i(e),r=o(i.prototype.request,t);return n.extend(r,i.prototype,t),n.extend(r,t),r}var a=s(r(68));a.Axios=i,a.create=function(e){return s(u(a.defaults,e))},a.Cancel=r(72),a.CancelToken=r(142),a.isCancel=r(67),a.all=function(e){return Promise.all(e)},a.spread=r(143),e.exports=a,e.exports.default=a},function(e,t,r){"use strict";var n=r(2),o=r(66),i=r(129),u=r(130),s=r(71);function a(e){this.defaults=e,this.interceptors={request:new i,response:new i}}a.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[u,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)r=r.then(t.shift(),t.shift());return r},a.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){a.prototype[e]=function(t,r){return this.request(n.merge(r||{},{method:e,url:t}))}})),n.forEach(["post","put","patch"],(function(e){a.prototype[e]=function(t,r,o){return this.request(n.merge(o||{},{method:e,url:t,data:r}))}})),e.exports=a},function(e,t,r){"use strict";var n=r(2);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,r){"use strict";var n=r(2),o=r(131),i=r(67),u=r(68);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||u.adapter)(e).then((function(t){return s(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,r){"use strict";var n=r(2);e.exports=function(e,t,r){return n.forEach(r,(function(r){e=r(e,t)})),e}},function(e,t){var r,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:u}catch(e){n=u}}();var a,c=[],f=!1,l=-1;function p(){f&&a&&(f=!1,a.length?c=a.concat(c):l=-1,c.length&&d())}function d(){if(!f){var e=s(p);f=!0;for(var t=c.length;t;){for(a=c,c=[];++l<t;)a&&a[l].run();l=-1,t=c.length}a=null,f=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===u||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}o.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];c.push(new h(e,t)),1!==c.length||f||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,r){"use strict";var n=r(2);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},function(e,t,r){"use strict";var n=r(70);e.exports=function(e,t,r){var o=r.config.validateStatus;!o||o(r.status)?e(r):t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}},function(e,t,r){"use strict";e.exports=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}},e}},function(e,t,r){"use strict";var n=r(137),o=r(138);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},function(e,t,r){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,r){"use strict";var n=r(2),o=["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"];e.exports=function(e){var t,r,i,u={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(u[t]&&o.indexOf(t)>=0)return;u[t]="set-cookie"===t?(u[t]?u[t]:[]).concat([r]):u[t]?u[t]+", "+r:r}})),u):u}},function(e,t,r){"use strict";var n=r(2);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(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=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},function(e,t,r){"use strict";var n=r(2);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,u){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===u&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,r){"use strict";var n=r(72);function o(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;e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(module,exports,__webpack_require__){(function(global){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;!function(e,t){module.exports=t(e)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==global?global:this,(function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if(module.exports)try{buffer=eval("require('buffer').Buffer")}catch(e){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(e){for(var t={},r=0,n=e.length;r<n;r++)t[e.charAt(r)]=r;return t}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?fromCharCode(192|t>>>6)+fromCharCode(128|63&t):fromCharCode(224|t>>>12&15)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return fromCharCode(240|t>>>18&7)+fromCharCode(128|t>>>12&63)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(e){return e.replace(re_utob,cb_utob)},cb_encode=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[b64chars.charAt(r>>>18),b64chars.charAt(r>>>12&63),t>=2?"=":b64chars.charAt(r>>>6&63),t>=1?"=":b64chars.charAt(63&r)].join("")},btoa=global.btoa?function(e){return global.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)?e.toString("base64"):btoa(utob(String(e)))},encode=function(e,t){return t?_encode(String(e)).replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,""):_encode(e)},encodeURI=function(e){return encode(e,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=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 fromCharCode(55296+(t>>>10))+fromCharCode(56320+(1023&t));case 3:return fromCharCode((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return fromCharCode((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=function(e){return e.replace(re_btou,cb_btou)},cb_decode=function(e){var t=e.length,r=t%4,n=(t>0?b64tab[e.charAt(0)]<<18:0)|(t>1?b64tab[e.charAt(1)]<<12:0)|(t>2?b64tab[e.charAt(2)]<<6:0)|(t>3?b64tab[e.charAt(3)]:0),o=[fromCharCode(n>>>16),fromCharCode(n>>>8&255),fromCharCode(255&n)];return o.length-=[0,0,2,1][r],o.join("")},_atob=global.atob?function(e){return global.atob(e)}:function(e){return e.replace(/\S{1,4}/g,cb_decode)},atob=function(e){return _atob(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e,"base64")).toString()}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e,"base64")).toString()}:function(e){return btou(_atob(e))},decode=function(e){return _decode(String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var e=global.Base64;return global.Base64=_Base64,e};if(global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict,__buffer__:buffer},"function"==typeof Object.defineProperty){var noEnum=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum((function(){return decode(this)}))),Object.defineProperty(String.prototype,"toBase64",noEnum((function(e){return encode(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",noEnum((function(){return encode(this,!0)})))}}return global.Meteor&&(Base64=global.Base64),module.exports?module.exports.Base64=global.Base64:(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return global.Base64}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)),{Base64:global.Base64}}))}).call(this,__webpack_require__(40))},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.KintoneRestAPIError=void 0;var i=function(e){function t(r){var n=this,o=t.buildErrorResponseDateWithIndex(r),i=o.data,u=o.bulkRequestIndex;return(n=e.call(this,i.message)||this).name="KintoneRestAPIError",n.id=i.id,n.code=i.code,n.errors=i.errors,n.status=r.status,n.bulkRequestIndex=u,n.headers=r.headers,n.message="["+r.status+"] ["+n.code+"] "+n.message+" ("+n.id+")",Error.captureStackTrace&&Error.captureStackTrace(n,t),Object.setPrototypeOf(n,t.prototype),n}return o(t,e),t.findErrorResponseDataWithIndex=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.")},t.buildErrorResponseDateWithIndex=function(e){return"results"in e.data?t.findErrorResponseDataWithIndex(e.data.results):{data:e.data}},t}(Error);t.KintoneRestAPIError=i},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KintoneRequestConfigBuilder=void 0;var i=o(r(64)),u=o(r(148)),s=r(23),a=function(){function e(e,t,r,n){this.baseUrl=e,this.headers=t,this.params=r,this.clientCertAuth=null==n?void 0:n.clientCertAuth,this.proxy=null==n?void 0:n.proxy}return e.prototype.build=function(e,t,r,o){var u=this,a=n(n(n({method:e,headers:this.headers,url:""+this.baseUrl+t},o||{}),s.platformDeps.buildPlatformDependentConfig({clientCertAuth:this.clientCertAuth})),{proxy:this.proxy});switch(e){case"get":return(f=this.buildRequestUrl(t,r)).length>4096?n(n({},a),{method:"post",headers:n(n({},this.headers),{"X-HTTP-Method-Override":"GET"}),data:n(n({},this.params),r)}):n(n({},a),{url:f});case"post":if(r instanceof i.default){var c=r;return Object.keys(this.params).forEach((function(e){c.append(e,u.params[e])})),n(n({},a),{headers:"function"==typeof c.getHeaders?n(n({},this.headers),c.getHeaders()):this.headers,data:c})}return n(n({},a),{data:n(n({},this.params),r)});case"put":return n(n({},a),{data:n(n({},this.params),r)});case"delete":var f=this.buildRequestUrl(t,n(n({},this.params),r));return n(n({},a),{url:f});default:throw new Error(e+" method is not supported")}},e.prototype.buildRequestUrl=function(e,t){return""+this.baseUrl+e+"?"+u.default.stringify(t)},e}();t.KintoneRequestConfigBuilder=a},function(e,t,r){"use strict";var n=r(149),o=r(150),i=r(73);e.exports={formats:i,parse:o,stringify:n}},function(e,t,r){"use strict";var n=r(39),o=r(73),i=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,a=Array.prototype.push,c=function(e,t){a.apply(e,s(t)?t:[t])},f=Date.prototype.toISOString,l=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:l,formatter:o.formatters[l],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,r,o,i,u,a,f,l,d,h,v,y,m){var b,g=t;if("function"==typeof f?g=f(r,g):g instanceof Date?g=h(g):"comma"===o&&s(g)&&(g=n.maybeMap(g,(function(e){return e instanceof Date?h(e):e})).join(",")),null===g){if(i)return a&&!y?a(r,p.encoder,m,"key"):r;g=""}if("string"==typeof(b=g)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||n.isBuffer(g))return a?[v(y?r:a(r,p.encoder,m,"key"))+"="+v(a(g,p.encoder,m,"value"))]:[v(r)+"="+v(String(g))];var w,x=[];if(void 0===g)return x;if(s(f))w=f;else{var P=Object.keys(g);w=l?P.sort(l):P}for(var _=0;_<w.length;++_){var S=w[_],O=g[S];if(!u||null!==O){var R=s(g)?"function"==typeof o?o(r,S):r:r+(d?"."+S:"["+S+"]");c(x,e(O,R,o,i,u,a,f,l,d,h,v,y,m))}}return x};e.exports=function(e,t){var r,n=e,a=function(e){if(!e)return p;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||p.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=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],u=p.filter;return("function"==typeof e.filter||s(e.filter))&&(u=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:u,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof a.filter?n=(0,a.filter)("",n):s(a.filter)&&(r=a.filter);var f,l=[];if("object"!=typeof n||null===n)return"";f=t&&t.arrayFormat in u?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=u[f];r||(r=Object.keys(n)),a.sort&&r.sort(a.sort);for(var v=0;v<r.length;++v){var y=r[v];a.skipNulls&&null===n[y]||c(l,d(n[y],y,h,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.formatter,a.encodeValuesOnly,a.charset))}var m=l.join(a.delimiter),b=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),m.length>0?b+m:""}},function(e,t,r){"use strict";var n=r(39),o=Object.prototype.hasOwnProperty,i=Array.isArray,u={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},a=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,u=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,f=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;f.push(c)}for(var l=0;r.depth>0&&null!==(s=u.exec(i))&&l<r.depth;){if(l+=1,!r.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;f.push(s[1])}return s&&f.push("["+i.slice(s.index)+"]"),function(e,t,r,n){for(var o=n?t:a(t,r),i=e.length-1;i>=0;--i){var u,s=e[i];if("[]"===s&&r.parseArrays)u=[].concat(o);else{u=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,f=parseInt(c,10);r.parseArrays||""!==c?!isNaN(f)&&s!==c&&String(f)===c&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(u=[])[f]=o:u[c]=o:u={0:o}}o=u}return o}(f,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return u;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?u.charset:e.charset;return{allowDots:void 0===e.allowDots?u.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:u.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:u.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:u.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:u.comma,decoder:"function"==typeof e.decoder?e.decoder:u.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:u.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:u.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:u.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:u.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:u.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:u.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var f="string"==typeof e?function(e,t){var r,c={},f=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,p=f.split(t.delimiter,l),d=-1,h=t.charset;if(t.charsetSentinel)for(r=0;r<p.length;++r)0===p[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[r]?h="utf-8":"utf8=%26%2310003%3B"===p[r]&&(h="iso-8859-1"),d=r,r=p.length);for(r=0;r<p.length;++r)if(r!==d){var v,y,m=p[r],b=m.indexOf("]="),g=-1===b?m.indexOf("="):b+1;-1===g?(v=t.decoder(m,u.decoder,h,"key"),y=t.strictNullHandling?null:""):(v=t.decoder(m.slice(0,g),u.decoder,h,"key"),y=n.maybeMap(a(m.slice(g+1),t),(function(e){return t.decoder(e,u.decoder,h,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===h&&(y=s(y)),m.indexOf("[]=")>-1&&(y=i(y)?[y]:y),o.call(c,v)?c[v]=n.combine(c[v],y):c[v]=y}return c}(e,r):e,l=r.plainObjects?Object.create(null):{},p=Object.keys(f),d=0;d<p.length;++d){var h=p[d],v=c(h,f[h],r,"string"==typeof e);l=n.merge(l,v,r)}return n.compact(l)}}]).KintoneRestAPIClient})); |