@kibalabs/core 0.5.10-next.2 → 0.5.11-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/package.json +2 -12
  2. package/CHANGELOG.md +0 -82
  3. package/dist/index.d.ts +0 -6
  4. package/dist/index.d.ts.map +0 -1
  5. package/dist/index.js +0 -2
  6. package/dist/index.js.LICENSE.txt +0 -1
  7. package/dist/model/index.d.ts +0 -2
  8. package/dist/model/index.d.ts.map +0 -1
  9. package/dist/model/kibaException.d.ts +0 -5
  10. package/dist/model/kibaException.d.ts.map +0 -1
  11. package/dist/requester/index.d.ts +0 -5
  12. package/dist/requester/index.d.ts.map +0 -1
  13. package/dist/requester/request.d.ts +0 -12
  14. package/dist/requester/request.d.ts.map +0 -1
  15. package/dist/requester/requester.d.ts +0 -27
  16. package/dist/requester/requester.d.ts.map +0 -1
  17. package/dist/requester/response.d.ts +0 -8
  18. package/dist/requester/response.d.ts.map +0 -1
  19. package/dist/requester/restMethod.d.ts +0 -10
  20. package/dist/requester/restMethod.d.ts.map +0 -1
  21. package/dist/services/index.d.ts +0 -2
  22. package/dist/services/index.d.ts.map +0 -1
  23. package/dist/services/serviceClient.d.ts +0 -15
  24. package/dist/services/serviceClient.d.ts.map +0 -1
  25. package/dist/storage/index.d.ts +0 -2
  26. package/dist/storage/index.d.ts.map +0 -1
  27. package/dist/storage/localStorageClient.d.ts +0 -11
  28. package/dist/storage/localStorageClient.d.ts.map +0 -1
  29. package/dist/util/asyncUtil.d.ts +0 -2
  30. package/dist/util/asyncUtil.d.ts.map +0 -1
  31. package/dist/util/browserUtil.d.ts +0 -5
  32. package/dist/util/browserUtil.d.ts.map +0 -1
  33. package/dist/util/chainUtil.d.ts +0 -6
  34. package/dist/util/chainUtil.d.ts.map +0 -1
  35. package/dist/util/classNameUtil.d.ts +0 -4
  36. package/dist/util/classNameUtil.d.ts.map +0 -1
  37. package/dist/util/dateUtil.d.ts +0 -10
  38. package/dist/util/dateUtil.d.ts.map +0 -1
  39. package/dist/util/fileUtil.d.ts +0 -4
  40. package/dist/util/fileUtil.d.ts.map +0 -1
  41. package/dist/util/index.d.ts +0 -14
  42. package/dist/util/index.d.ts.map +0 -1
  43. package/dist/util/numberUtil.d.ts +0 -4
  44. package/dist/util/numberUtil.d.ts.map +0 -1
  45. package/dist/util/objectUtil.d.ts +0 -5
  46. package/dist/util/objectUtil.d.ts.map +0 -1
  47. package/dist/util/promiseUtil.d.ts +0 -2
  48. package/dist/util/promiseUtil.d.ts.map +0 -1
  49. package/dist/util/serializationUtil.d.ts +0 -11
  50. package/dist/util/serializationUtil.d.ts.map +0 -1
  51. package/dist/util/stringUtil.d.ts +0 -14
  52. package/dist/util/stringUtil.d.ts.map +0 -1
  53. package/dist/util/typeUtil.d.ts +0 -4
  54. package/dist/util/typeUtil.d.ts.map +0 -1
  55. package/dist/util/urlUtils.d.ts +0 -7
  56. package/dist/util/urlUtils.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kibalabs/core",
3
- "version": "0.5.10-next.2",
3
+ "version": "0.5.11-next.0",
4
4
  "description": "Utilities for use in front-end projects at Kiba Labs",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -9,16 +9,6 @@
9
9
  },
10
10
  "homepage": "https://github.com/kibalabs/core-js",
11
11
  "bugs": "https://github.com/kibalabs/core-js/issues",
12
- "scripts": {
13
- "build": "build-module",
14
- "start": "build-module --start",
15
- "start-dev": "build-module --start --dev",
16
- "clean": "rm -rf ./node_modules ./package-lock.json ./dist",
17
- "lint": "lint",
18
- "lint-fix": "lint --fix",
19
- "type-check": "type-check",
20
- "publish-next": "kiba-publish --next"
21
- },
22
12
  "files": [
23
13
  "dist/*"
24
14
  ],
@@ -33,6 +23,6 @@
33
23
  "fast-deep-equal": "^3.1.3"
34
24
  },
35
25
  "devDependencies": {
36
- "@kibalabs/build": "^0.9.0"
26
+ "@kibalabs/build": "^0.12.0"
37
27
  }
38
28
  }
package/CHANGELOG.md DELETED
@@ -1,82 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) with some additions:
6
- - For all changes include one of [PATCH | MINOR | MAJOR] with the scope of the change being made.
7
-
8
- ## [Unreleased]
9
-
10
- ### Added
11
- -[MINOR] Added `createSearchParams` to `urlUtil`
12
-
13
- ### Changed
14
- -[MINOR] Updated `Requester` to support multiple values for query params
15
- -[MINOR] Updated `ServiceClient` to expose baseUrl
16
-
17
- ### Removed
18
-
19
- ## [0.5.9] - 2022-06-22
20
-
21
- ### Added
22
- -[MINOR] Added `makeFormPutRequest` to `requester`
23
- -[MINOR] Added `getRequest`, `posttRequest`, `puttRequest`, `deleteRequest` to `requester`
24
-
25
- ## [0.5.8] - 2022-04-05
26
-
27
- ### Added
28
- -[MINOR] Added `dateToRelativeString`, `dateToRelativeShortString` to `dateUtil`
29
- -[MINOR] Added `etherToNumber`, `shortFormatEther`, `longFormatEther` to `chainUtil`
30
- -[MINOR] Added `etherToNumber`, `shortFormatNumber`, `longFormatNumber` to `numberUtil`
31
- -[MINOR] Added `truncateEnd` to `stringUtil`
32
- -[MINOR] Added `resolveUrl` to `urlUtil`
33
-
34
- ### Changed
35
- -[MINOR] Remove reference to `window` in `Requester` (#22)
36
-
37
- ## [0.5.7] - 2021-12-26
38
-
39
- ### Added
40
- -[MINOR] Added `isSameDay`, `isToday`, `isYesterday` to `dateUtil`
41
- -[MINOR] Added `numberWithCommas` to `numberUtil`
42
-
43
- ### Changed
44
- -[MINOR] Updated `numberUtil.numberWithCommas` to not use regex lookbehind
45
-
46
- ## [0.5.6] - 2021-11-21
47
-
48
- ### Added
49
- -[MINOR] Created `browserUtil`, `stringUtil` and `urlUtil`
50
- -[MINOR] Added `copyFileSync`, `copyDirectorySync` to `fileUtil`
51
-
52
- ### Changed
53
-
54
- -[MINOR] Fixed `browserUtil` for SSR
55
-
56
- ## [0.5.5] - 2021-07-23
57
-
58
- ### Changed
59
- -[MINOR] Updated `Requester` to not set content-type header for formdata request
60
-
61
- ## [0.5.4] - 2021-07-06
62
-
63
- ### Changed
64
- -[MINOR] Updated `Requester` to set `content-type` if not set
65
-
66
- ## [0.5.3] - 2021-01-07
67
-
68
- ### Changed
69
- -[MINOR] Updated `serviceClient` typing
70
-
71
- ## [0.5.2] - 2020-12-31
72
-
73
- ## [0.5.1] - 2020-12-29
74
-
75
- ### Changed
76
- -[PATCH] Updated type-check in `classNameUtil` and `dateUtil`
77
-
78
- ## [0.5.0] - 2020-11-25
79
-
80
- ### Added
81
-
82
- Initial Commit - extracted from everypage
package/dist/index.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export * from './model';
2
- export * from './requester';
3
- export * from './services';
4
- export * from './storage';
5
- export * from './util';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"}
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see index.js.LICENSE.txt */
2
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@kibalabs/core",[],e):"object"==typeof exports?exports["@kibalabs/core"]=e():t["@kibalabs/core"]=e()}(global,(()=>(()=>{var t={834:t=>{t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n},t.exports.__esModule=!0,t.exports.default=t.exports},141:t=>{t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},734:t=>{t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},357:t=>{function e(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,o)}t.exports=function(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function u(t){e(a,o,i,u,s,"next",t)}function s(t){e(a,o,i,u,s,"throw",t)}u(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},853:t=>{t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},783:(t,e,r)=>{var n=r(204),o=r(271);function i(e,r,a){return o()?(t.exports=i=Reflect.construct.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=i=function(t,e,r){var o=[null];o.push.apply(o,e);var i=new(Function.bind.apply(t,o));return r&&n(i,r.prototype),i},t.exports.__esModule=!0,t.exports.default=t.exports),i.apply(null,arguments)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},147:t=>{function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},156:t=>{t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},470:t=>{function e(r){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},50:(t,e,r)=>{var n=r(204);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&n(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},53:t=>{t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},t.exports.__esModule=!0,t.exports.default=t.exports},271:t=>{t.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},t.exports.__esModule=!0,t.exports.default=t.exports},830:t=>{t.exports=function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}},t.exports.__esModule=!0,t.exports.default=t.exports},48:t=>{t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},56:(t,e,r)=>{var n=r(559).default,o=r(734);t.exports=function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},893:(t,e,r)=>{var n=r(559).default;function o(){"use strict";t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new O(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=E(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=d(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,x=g&&g(g(T([])));x&&x!==r&&i.call(x,u)&&(m=x);var b=y.prototype=h.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,u,s){var c=d(t[o],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==n(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(f).then((function(t){l.value=t,u(l)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,p;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:M}}function M(){return{value:void 0,done:!0}}return v.prototype=y,l(b,"constructor",y),l(y,"constructor",v),v.displayName=l(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},w(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),l(b,c,"Generator"),l(b,u,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=T,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(R),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=i.call(o,"catchLoc"),s=i.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;R(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},204:t=>{function e(r,n){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},432:(t,e,r)=>{var n=r(141),o=r(830),i=r(798),a=r(48);t.exports=function(t,e){return n(t)||o(t,e)||i(t,e)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},559:t=>{function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},798:(t,e,r)=>{var n=r(834);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},556:(t,e,r)=>{var n=r(470),o=r(204),i=r(53),a=r(783);function u(e){var r="function"==typeof Map?new Map:void 0;return t.exports=u=function(t){if(null===t||!i(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return a(t,arguments,n(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),o(e,t)},t.exports.__esModule=!0,t.exports.default=t.exports,u(e)}t.exports=u,t.exports.__esModule=!0,t.exports.default=t.exports},129:(t,e,r)=>{var n=r(893)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},935:(t,e,r)=>{"use strict";r.d(e,{E:()=>n.E});var n=r(728)},728:(t,e,r)=>{"use strict";r.d(e,{E:()=>x});var n=r(147),o=r.n(n),i=r(853),a=r.n(i),u=r(734),s=r.n(u),c=r(50),l=r.n(c),f=r(56),d=r.n(f),p=r(470),h=r.n(p),v=r(556),y=r.n(v),m=r(156),g=r.n(m);var x=function(t){l()(i,t);var e,r,n=(e=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=h()(e);if(r){var o=h()(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return d()(this,t)});function i(t,e){var r;return a()(this,i),r=n.call(this,t),g()(s()(r),"statusCode",void 0),r.name=r.constructor.name,r.statusCode=e||500,r}return o()(i)}(y()(Error))},649:(t,e,r)=>{"use strict";var n;r.d(e,{Ki:()=>l,jq:()=>f,lV:()=>S,kx:()=>w,Tu:()=>n}),function(t){t.DELETE="delete",t.GET="get",t.HEAD="head",t.OPTIONS="options",t.PATCH="patch",t.POST="post",t.PUT="put"}(n||(n={}));var o=r(147),i=r.n(o),a=r(853),u=r.n(a),s=r(156),c=r.n(s),l=i()((function t(e,r,n,o,i,a,s){u()(this,t),c()(this,"method",void 0),c()(this,"url",void 0),c()(this,"headers",void 0),c()(this,"data",void 0),c()(this,"formData",void 0),c()(this,"date",void 0),c()(this,"timeoutSeconds",void 0),this.method=e,this.url=r,this.headers=n||{},this.data=o||null,this.formData=i||null,this.date=a||new Date,this.timeoutSeconds=s&&s>0?s:null})),f=i()((function t(e,r,n,o){u()(this,t),c()(this,"status",void 0),c()(this,"headers",{}),c()(this,"date",void 0),c()(this,"content",""),this.status=e,this.headers=r,this.date=n,this.content=o})),d=r(357),p=r.n(d),h=r(129),v=r.n(h),y=r(728),m=r(362),g=r(169);function x(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function b(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?x(Object(r),!0).forEach((function(e){c()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var w=function(){function t(){u()(this,t)}return i()(t,[{key:"modifyRequest",value:function(t){return t}},{key:"modifyResponse",value:function(t){return t}}]),t}(),S=i()((function t(e,r){var o=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];u()(this,t),c()(this,"headers",void 0),c()(this,"modifiers",void 0),c()(this,"shouldIncludeCrossSiteCredentials",void 0),c()(this,"addModifier",(function(t){o.modifiers.push(t)})),c()(this,"modifyRequest",(function(t){return o.modifiers.reduce((function(t,e){return e.modifyRequest(t)}),t)})),c()(this,"modifyResponse",(function(t){return o.modifiers.reduce((function(t,e){return e.modifyResponse(t)}),t)})),c()(this,"getRequest",function(){var t=p()(v().mark((function t(e,r,i,a){var u;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=new l(n.GET,e,i,r,void 0,new Date,a),t.abrupt("return",o.makeRequestInternal(u));case 2:case"end":return t.stop()}}),t)})));return function(e,r,n,o){return t.apply(this,arguments)}}()),c()(this,"postRequest",function(){var t=p()(v().mark((function t(e,r,i,a){var u;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=new l(n.POST,e,i,r,void 0,new Date,a),t.abrupt("return",o.makeRequestInternal(u));case 2:case"end":return t.stop()}}),t)})));return function(e,r,n,o){return t.apply(this,arguments)}}()),c()(this,"putRequest",function(){var t=p()(v().mark((function t(e,r,i,a){var u;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=new l(n.PUT,e,i,r,void 0,new Date,a),t.abrupt("return",o.makeRequestInternal(u));case 2:case"end":return t.stop()}}),t)})));return function(e,r,n,o){return t.apply(this,arguments)}}()),c()(this,"deleteRequest",function(){var t=p()(v().mark((function t(e,r,i,a){var u;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=new l(n.DELETE,e,i,r,void 0,new Date,a),t.abrupt("return",o.makeRequestInternal(u));case 2:case"end":return t.stop()}}),t)})));return function(e,r,n,o){return t.apply(this,arguments)}}()),c()(this,"makeRequest",function(){var t=p()(v().mark((function t(e,r,n,i,a){var u;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=new l(e,r,i,n,void 0,new Date,a),t.abrupt("return",o.makeRequestInternal(u));case 2:case"end":return t.stop()}}),t)})));return function(e,r,n,o,i){return t.apply(this,arguments)}}()),c()(this,"makeFormRequest",function(){var t=p()(v().mark((function t(e,r,i,a){var u;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=new l(n.POST,e,i,void 0,r,new Date,a),t.abrupt("return",o.makeRequestInternal(u));case 2:case"end":return t.stop()}}),t)})));return function(e,r,n,o){return t.apply(this,arguments)}}()),c()(this,"makeFormPutRequest",function(){var t=p()(v().mark((function t(e,r,i,a){var u;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=new l(n.PUT,e,i,void 0,r,new Date,a),t.abrupt("return",o.makeRequestInternal(u));case 2:case"end":return t.stop()}}),t)})));return function(e,r,n,o){return t.apply(this,arguments)}}()),c()(this,"makeRequestInternal",function(){var t=p()(v().mark((function t(e){var r,n,i;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.modifyRequest(e),t.next=3,o.makeFetchRequest(r);case 3:if(n=t.sent,!((n=o.modifyResponse(n)).status>=400&&n.status<600)){t.next=11;break}i=null;try{i=JSON.parse(n.content)}catch(t){}if(!i||!("message"in i)){t.next=10;break}throw new y.E(i.message,n.status);case 10:throw new y.E(n.content,n.status);case 11:return t.abrupt("return",n);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),c()(this,"makeFetchRequest",function(){var t=p()(v().mark((function t(e){var r,i,a,u,s,c,l;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new URL(e.url),i=new Headers(b(b({},o.headers),e.headers||{})),a={method:e.method.toUpperCase(),headers:i,credentials:o.shouldIncludeCrossSiteCredentials?"include":"same-origin"},e.method===n.GET||e.method===n.DELETE?e.data&&(u=b({},e.data),Object.keys(u).forEach((function(t){void 0===u[t]&&delete u[t]})),r.search=(0,g.fW)(u).toString()):(s=i.get("Content-Type"),e.data?(a.body=JSON.stringify(e.data),s&&"application/json"!==s&&console.warn("Overwriting content-type header for request from ".concat(s," to application/json")),i.set("content-type","application/json")):e.formData&&(a.body=e.formData)),c=fetch(r.toString(),a).catch((function(t){throw new y.E("The request was made but no response was received: [".concat(t.code,'] "').concat(t.message,'"'))})).then(function(){var t=p()(v().mark((function t(e){var r,n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}throw new y.E("The request was made but no response was received.");case 2:return t.next=4,e.text();case 4:return r=t.sent,n={},e.headers.forEach((function(t,e){n[e]&&console.warn("key ".concat(e," will be overwritten. TODO(krish): Implement joining keys!")),n[e]=t})),t.abrupt("return",new f(e.status,n,new Date,r));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),t.next=7,e.timeoutSeconds?(0,m.G)(e.timeoutSeconds,c):c;case 7:return l=t.sent,t.abrupt("return",l);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),this.headers=e||{},this.modifiers=r||[],this.shouldIncludeCrossSiteCredentials=i}))},591:(t,e,r)=>{"use strict";r.d(e,{m4:()=>p,p5:()=>h,St:()=>v});var n=r(357),o=r.n(n),i=r(147),a=r.n(i),u=r(853),s=r.n(u),c=r(156),l=r.n(c),f=r(129),d=r.n(f),p=a()((function t(){s()(this,t),l()(this,"toObject",(function(){return{}}))})),h=a()((function t(){s()(this,t)})),v=a()((function t(e,r){var n=this;s()(this,t),l()(this,"requester",void 0),l()(this,"baseUrl",void 0),l()(this,"makeRequest",function(){var t=o()(d().mark((function t(e,r,o,i){var a,u;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a="".concat(n.baseUrl,"/").concat(r),t.next=3,n.requester.makeRequest(e,a,null==o?void 0:o.toObject());case 3:return u=t.sent,t.abrupt("return",i?i.fromObject(JSON.parse(u.content)):null);case 5:case"end":return t.stop()}}),t)})));return function(e,r,n,o){return t.apply(this,arguments)}}()),this.requester=e,this.baseUrl=r}))},226:(t,e,r)=>{"use strict";r.d(e,{w:()=>c});var n=r(853),o=r.n(n),i=r(147),a=r.n(i),u=r(156),s=r.n(u),c=function(){function t(e){o()(this,t),s()(this,"localStorage",void 0),this.localStorage=e}return a()(t,[{key:"getValue",value:function(t){return this.localStorage.getItem(t)}},{key:"setValue",value:function(t,e){null==e?this.removeValue(t):this.localStorage.setItem(t,e)}},{key:"getBoolean",value:function(t){var e=this.getValue(t);return"1"===e||"0"!==e&&null}},{key:"setBoolean",value:function(t,e){null==e?this.removeValue(t):this.setValue(t,e?"1":"0")}},{key:"removeValue",value:function(t){this.localStorage.removeItem(t)}},{key:"clear",value:function(){this.localStorage.clear()}}]),t}()},77:(t,e,r)=>{"use strict";r.d(e,{g:()=>n});var n=function(t){return new Promise((function(e){setTimeout(e,t)}))}},351:(t,e,r)=>{"use strict";r.d(e,{jU:()=>u,jk:()=>s,oc:()=>c,tq:()=>l});var n=r(357),o=r.n(n),i=r(129),a=r.n(i),u=function(){return"undefined"!=typeof document},s=function(){var t=o()(a().mark((function t(e,r){var n,o,i;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=new Blob([r]),t.next=3,URL.createObjectURL(n);case 3:o=t.sent,(i=document.createElement("a")).href=o,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i);case 10:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),c=function(){return!!u()&&(void 0!==document.hidden?t="hidden":void 0!==document.msHidden?t="msHidden":void 0!==document.webkitHidden&&(t="webkitHidden"),!t||!document[t]);var t},l=function(){return"undefined"!=typeof navigator&&[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some((function(t){return t.test(navigator.userAgent)}))}},367:(t,e,r)=>{"use strict";r.d(e,{c0:()=>i,qN:()=>a,Ar:()=>s,g9:()=>u});const n=require("@ethersproject/bignumber");var o=r(331),i=n.BigNumber.from("1000000000000000000"),a=function(t){return t.mul(1e3).div(i).toNumber()/1e3},u=function(t){var e=(0,o.D7)(a(t));return"Ξ".concat(e)},s=function(t){var e=(0,o.gJ)(a(t));return"Ξ".concat(e)}},692:(t,e,r)=>{"use strict";r.d(e,{g:()=>n});var n=function(){for(var t=[],e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];r.forEach((function(e){e&&t.push(String(e).trim().split(" "))}));var o=t.reduce((function(t,e){return t.concat(e)}),[]);return o=o.reverse(),(o=(o=Array.from(new Set(o))).reverse()).join(" ")}},295:(t,e,r)=>{"use strict";r.d(e,{E9:()=>h,E4:()=>b,x9:()=>v,zh:()=>S,Ec:()=>w,UW:()=>y,KC:()=>m,zk:()=>g,gO:()=>x});const n=require("date-fns-tz/format");var o=r.n(n);const i=require("date-fns/addMinutes");var a=r.n(i);const u=require("date-fns/isValid");var s=r.n(u);const c=require("date-fns/parse");var l=r.n(c);const f=require("date-fns/parseISO");var d=r.n(f),p=r(728),h="yyyy-MM-dd'T'HH:mm:ss.SSSXXX",v=function(t,e){var r;if(e)try{r=l()(t,e,new Date)}catch(t){}else r=d()(t);if(!r||!s()(r))throw new p.E("Invalid date string ".concat(t," passed to dateFromString"));return r},y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t;r&&(n=a()(n,n.getTimezoneOffset()));var i=o()(n,e,r?{timeZone:"UTC"}:{});return i},m=function(t,e){return t.getDate()===e.getDate()&&t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()},g=function(t){return m(t,new Date)},x=function(t){var e=new Date;return e.setDate(e.getDate()-1),m(t,e)},b=function(t,e){var r=new Date(t.getTime());return r.setDate(r.getDate()+e),r},w=function(t){var e,r=Math.floor(((new Date).valueOf()-t.valueOf())/1e3),n=Math.floor(r/31536e3);return n>=1?e="year":(n=Math.floor(r/2592e3))>=1?e="month":(n=Math.floor(r/86400))>=1?e="day":(n=Math.floor(r/3600))>=1?e="hour":(n=Math.floor(r/60))>=1?e="minute":(n=r,e="second"),(n>1||0===n)&&(e+="s"),"".concat(n," ").concat(e," ago")},S=function(t){var e,r=Math.floor(((new Date).valueOf()-t.valueOf())/1e3),n=Math.floor(r/31536e3);return n>=1?e="y":(n=Math.floor(r/2592e3))>=1?e="m":(n=Math.floor(r/86400))>=1?e="d":(n=Math.floor(r/3600))>=1?e="h":(n=Math.floor(r/60))>=1?e="m":(n=r,e="s"),"".concat(n).concat(e," ago")}},294:(t,e,r)=>{"use strict";r.d(e,{CP:()=>c,Qp:()=>s,gB:()=>u});const n=require("fs");var o=r.n(n);const i=require("path");var a=r.n(i),u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(0===t)return"0 B";var r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(t)/Math.log(1024)),o=parseFloat((t/Math.pow(1024,n)).toFixed(e<0?0:e));return"".concat(o," ").concat(r[n])},s=function(t,e){var r=e;o().existsSync(e)&&o().lstatSync(e).isDirectory()&&(r=a().join(e,a().basename(t)));var n=a().dirname(r);o().existsSync(n)||o().mkdirSync(n,{recursive:!0}),o().writeFileSync(r,o().readFileSync(t))},c=function t(e,r){if(!o().lstatSync(e).isDirectory())throw new Error("copyDirectorySync must be called with a directory. source ".concat(e," is not a directory"));if(o().existsSync(r)){if(!o().lstatSync(e).isDirectory())throw new Error("copyDirectorySync must be called with a directory. target ".concat(r," is not a directory"))}else o().mkdirSync(r,{recursive:!0});o().readdirSync(e).forEach((function(n){var i=a().join(e,n),u=a().join(r,n);o().lstatSync(i).isDirectory()?t(i,u):s(i,u)}))}},850:(t,e,r)=>{"use strict";r.r(e),r.d(e,{CHARACTERS_ALPHA:()=>d.Ke,CHARACTERS_ALPHANUMERIC:()=>d.ln,CHARACTERS_ALPHA_LOWERCASE:()=>d.xE,CHARACTERS_ALPHA_UPPERCASE:()=>d.om,CHARACTERS_HEX:()=>d.iz,CHARACTERS_NUMERIC:()=>d.L$,ETHER:()=>y.c0,JSON_DATE_FORMAT:()=>a.E9,addDays:()=>a.E4,asyncSleep:()=>n.g,booleanFromString:()=>f.eU,booleanToString:()=>f.R2,camelCaseToKebabCase:()=>d.w9,copyDirectorySync:()=>u.CP,copyFileSync:()=>u.Qp,createSearchParams:()=>v.fW,dateFromString:()=>a.x9,dateToRelativeShortString:()=>a.zh,dateToRelativeString:()=>a.Ec,dateToString:()=>a.UW,deepCompare:()=>c.dm,downloadFileFromBrowser:()=>o.jk,etherToNumber:()=>y.qN,generateRandomString:()=>d.zs,generateUUID:()=>d.DO,getClassName:()=>i.g,getLinkableUrl:()=>v.MO,getUrlDisplayString:()=>v.TF,humanFileSize:()=>u.gB,integerFromString:()=>f.Ax,integerToString:()=>f.Ak,isBrowser:()=>o.jU,isDocumentVisible:()=>o.oc,isMobile:()=>o.tq,isSameDay:()=>a.KC,isToday:()=>a.zk,isValidEmail:()=>d.vV,isYesterday:()=>a.gO,longFormatEther:()=>y.Ar,longFormatNumber:()=>s.gJ,merge:()=>c.TS,mergePartial:()=>c.rP,numberFromString:()=>f.kz,numberToString:()=>f.D$,numberWithCommas:()=>s.x6,objectFromString:()=>f.VA,objectToString:()=>f.IC,resolveUrl:()=>v.Kk,shortFormatEther:()=>y.g9,shortFormatNumber:()=>s.D7,stringListFromString:()=>f.CG,stringListToString:()=>f._T,timeoutPromise:()=>l.G,truncateEnd:()=>d.d8,truncateMiddle:()=>d.ro,truncateStart:()=>d.xh});var n=r(77),o=r(351),i=r(692),a=r(295),u=r(294),s=r(331),c=r(468),l=r(362),f=r(668),d=r(293),p=r(337),h={};for(const t in p)["default","asyncSleep","downloadFileFromBrowser","isBrowser","isDocumentVisible","isMobile","getClassName","JSON_DATE_FORMAT","addDays","dateFromString","dateToRelativeShortString","dateToRelativeString","dateToString","isSameDay","isToday","isYesterday","copyDirectorySync","copyFileSync","humanFileSize","longFormatNumber","numberWithCommas","shortFormatNumber","deepCompare","merge","mergePartial","timeoutPromise","booleanFromString","booleanToString","integerFromString","integerToString","numberFromString","numberToString","objectFromString","objectToString","stringListFromString","stringListToString","CHARACTERS_ALPHA","CHARACTERS_ALPHANUMERIC","CHARACTERS_ALPHA_LOWERCASE","CHARACTERS_ALPHA_UPPERCASE","CHARACTERS_HEX","CHARACTERS_NUMERIC","camelCaseToKebabCase","generateRandomString","generateUUID","isValidEmail","truncateEnd","truncateMiddle","truncateStart"].indexOf(t)<0&&(h[t]=()=>p[t]);r.d(e,h);var v=r(169),y=r(367)},331:(t,e,r)=>{"use strict";r.d(e,{D7:()=>o,gJ:()=>i,x6:()=>n});var n=function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},o=function(t){return t>=1e9?"".concat((t/1e9).toFixed(0),"B"):t>=1e7?"".concat((t/1e6).toFixed(0),"M"):t>=1e6?"".concat((t/1e6).toFixed(1),"M"):t>=1e4?"".concat((t/1e3).toFixed(0),"K"):t>=1e3?"".concat((t/1e3).toFixed(1),"K"):t>100?t.toFixed(0):t>1?t.toFixed(1):t.toFixed(2)},i=function(t){var e=t.toFixed(2);return"".concat(e.toLocaleString())}},468:(t,e,r)=>{"use strict";r.d(e,{dm:()=>s,TS:()=>a,rP:()=>u});const n=require("deepmerge"),o=require("fast-deep-equal");var i=r.n(o);function a(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];return n(t,u.apply(void 0,r))}function u(){for(var t={},e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.forEach((function(e){e&&(t=n(t,e))})),t}function s(t,e){return i()(t,e)}},362:(t,e,r)=>{"use strict";r.d(e,{G:()=>o});var n=r(728),o=function(t,e){return new Promise((function(r,o){var i=setTimeout((function(){o(new n.E("TIMEOUT"))}),1e3*t);e.then((function(t){clearTimeout(i),r(t)}),(function(t){clearTimeout(i),o(t)}))}))}},668:(t,e,r)=>{"use strict";r.d(e,{Ak:()=>c,Ax:()=>l,CG:()=>d,D$:()=>u,IC:()=>n,R2:()=>i,VA:()=>o,_T:()=>f,eU:()=>a,kz:()=>s});var n=function(t){if(void 0!==t)return null===t?null:JSON.stringify(t)},o=function(t){if(void 0!==t)return null===t?null:JSON.parse(t)},i=function(t){if(void 0!==t)return null===t?null:t?"1":"0"},a=function(t){if(void 0!==t)return null===t?null:"1"===t||"true"===t},u=function(t){if(void 0!==t)return null===t?null:String(t)},s=function(t){if(void 0!==t){if(null===t)return null;var e=Number(t);return Number.isNaN(e)?null:e}},c=function(t){return t?String(Math.round(t)):u(t)},l=function(t){var e=s(t);return e?Math.round(e):e},f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";if(void 0!==t)return null===t?"":t.join(e)},d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";if(void 0!==t)return null===t?[]:t?t.split(e):[]}},293:(t,e,r)=>{"use strict";r.d(e,{DO:()=>l,Ke:()=>a,L$:()=>n,d8:()=>v,iz:()=>s,ln:()=>u,om:()=>i,ro:()=>p,vV:()=>f,w9:()=>d,xE:()=>o,xh:()=>h,zs:()=>c});var n="1234567890",o="abcdefghijklmnopqrstuvwxyz",i="ABCDEFGHIJKLMNOPQRSTUVWXYZ",a="".concat(o).concat(i),u="".concat(a).concat(n),s="".concat(n,"abcdef"),c=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,r="",n=0;n<t;n+=1)r+=e[Math.floor(Math.random()*e.length)];return r},l=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=c(32,s);return t&&(e=[e.substring(0,8),e.substring(8,12),e.substring(12,16),e.substring(16,20),e.substring(20)].join("-")),e},f=function(t){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)},d=function(t){return t.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()},p=function(t,e){if(t.length-e>0){var r=t.substring(0,Math.ceil(e/2)),n=t.substring(t.length-Math.floor(e/2),t.length);return"".concat(r,"...").concat(n)}return t},h=function(t,e){if(t.length-e>0){var r=t.substring(0,e);return"".concat(r,"...")}return t},v=function(t,e){if(t.length-e>0){var r=t.substring(0,e);return"".concat(r,"...")}return t}},337:()=>{},169:(t,e,r)=>{"use strict";r.d(e,{Kk:()=>u,MO:()=>a,TF:()=>i,fW:()=>s});var n=r(432),o=r.n(n),i=function(t){var e=t;for(e.startsWith("http://")&&(e=e.slice("http://".length)),e.startsWith("https://")&&(e=e.slice("https://".length));e.endsWith("/");)e=e.slice(0,e.length-1);return e},a=function(t){var e=t;return e.startsWith("http://")||e.startsWith("https://")||(e="http://".concat(e)),e},u=function(t){return t.startsWith("ipfs://")?t.replace("ipfs://","https://pablo-images.kibalabs.com/v1/ipfs/"):t},s=function(t){var e=new URLSearchParams;return Object.entries(t).forEach((function(t){var r=o()(t,2),n=r[0],i=r[1];Array.isArray(i)?i.forEach((function(t){e.append(n,t)})):e.append(n,i)})),e}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.r(n),r.d(n,{KibaException:()=>t.E,KibaRequest:()=>e.Ki,KibaResponse:()=>e.jq,LocalStorageClient:()=>i.w,RequestData:()=>o.m4,Requester:()=>e.lV,RequesterModifier:()=>e.kx,ResponseData:()=>o.p5,RestMethod:()=>e.Tu,ServiceClient:()=>o.St});var t=r(935),e=r(649),o=r(591),i=r(226),a=r(850),u={};for(const t in a)["default","KibaException","KibaRequest","KibaResponse","Requester","RequesterModifier","RestMethod","RequestData","ResponseData","ServiceClient","LocalStorageClient"].indexOf(t)<0&&(u[t]=()=>a[t]);r.d(n,u)})(),n})()));
@@ -1 +0,0 @@
1
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -1,2 +0,0 @@
1
- export * from './kibaException';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare class KibaException extends Error {
2
- statusCode: number;
3
- constructor(message: string, statusCode?: number);
4
- }
5
- //# sourceMappingURL=kibaException.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"kibaException.d.ts","sourceRoot":"","sources":["../../src/model/kibaException.ts"],"names":[],"mappings":"AACA,qBAAa,aAAc,SAAQ,KAAK;IAC/B,UAAU,EAAE,MAAM,CAAC;gBAEP,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM;CAKxD"}
@@ -1,5 +0,0 @@
1
- export * from './restMethod';
2
- export * from './request';
3
- export * from './response';
4
- export * from './requester';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/requester/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
@@ -1,12 +0,0 @@
1
- import { RestMethod } from './restMethod';
2
- export declare class KibaRequest {
3
- method: RestMethod;
4
- url: string;
5
- headers: Record<string, string>;
6
- data: Record<string, unknown> | null;
7
- formData: FormData | null;
8
- date: Date;
9
- timeoutSeconds: number | null;
10
- constructor(method: RestMethod, url: string, headers?: Record<string, string>, data?: Record<string, unknown>, formData?: FormData, date?: Date, timeoutSeconds?: number);
11
- }
12
- //# sourceMappingURL=request.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../src/requester/request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,qBAAa,WAAW;IACf,MAAM,EAAE,UAAU,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACrC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,IAAI,CAAC;IACX,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;gBAElB,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,cAAc,CAAC,EAAE,MAAM;CAShL"}
@@ -1,27 +0,0 @@
1
- /// <reference lib="dom" />
2
- import { KibaRequest } from './request';
3
- import { KibaResponse } from './response';
4
- import { RestMethod } from './restMethod';
5
- export declare class RequesterModifier {
6
- modifyRequest(request: KibaRequest): KibaRequest;
7
- modifyResponse(response: KibaResponse): KibaResponse;
8
- }
9
- export declare class Requester {
10
- private headers;
11
- private modifiers;
12
- private shouldIncludeCrossSiteCredentials;
13
- constructor(headers?: Record<string, string>, modifiers?: RequesterModifier[], shouldIncludeCrossSiteCredentials?: boolean);
14
- addModifier: (modifier: RequesterModifier) => void;
15
- private modifyRequest;
16
- private modifyResponse;
17
- getRequest: (url: string, data?: Record<string, unknown>, headers?: Record<string, string>, timeout?: number) => Promise<KibaResponse>;
18
- postRequest: (url: string, data?: Record<string, unknown>, headers?: Record<string, string>, timeout?: number) => Promise<KibaResponse>;
19
- putRequest: (url: string, data?: Record<string, unknown>, headers?: Record<string, string>, timeout?: number) => Promise<KibaResponse>;
20
- deleteRequest: (url: string, data?: Record<string, unknown>, headers?: Record<string, string>, timeout?: number) => Promise<KibaResponse>;
21
- makeRequest: (method: RestMethod, url: string, data?: Record<string, unknown>, headers?: Record<string, string>, timeout?: number) => Promise<KibaResponse>;
22
- makeFormRequest: (url: string, data?: FormData, headers?: Record<string, string>, timeout?: number) => Promise<KibaResponse>;
23
- makeFormPutRequest: (url: string, data?: FormData, headers?: Record<string, string>, timeout?: number) => Promise<KibaResponse>;
24
- private makeRequestInternal;
25
- private makeFetchRequest;
26
- }
27
- //# sourceMappingURL=requester.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"requester.d.ts","sourceRoot":"","sources":["../../src/requester/requester.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,qBAAa,iBAAiB;IAErB,aAAa,CAAC,OAAO,EAAE,WAAW,GAAG,WAAW;IAKhD,cAAc,CAAC,QAAQ,EAAE,YAAY,GAAG,YAAY;CAG5D;AAED,qBAAa,SAAS;IACpB,OAAO,CAAC,OAAO,CAAyB;IACxC,OAAO,CAAC,SAAS,CAAsB;IACvC,OAAO,CAAC,iCAAiC,CAAU;gBAEhC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,SAAS,CAAC,EAAE,iBAAiB,EAAE,EAAE,iCAAiC,UAAO;IAMvH,WAAW,aAAc,iBAAiB,KAAG,IAAI,CAEtD;IAEF,OAAO,CAAC,aAAa,CAInB;IAEF,OAAO,CAAC,cAAc,CAIpB;IAEK,UAAU,QAAe,MAAM,SAAS,OAAO,MAAM,EAAE,OAAO,CAAC,YAAY,OAAO,MAAM,EAAE,MAAM,CAAC,YAAY,MAAM,KAAG,QAAQ,YAAY,CAAC,CAGhJ;IAEK,WAAW,QAAe,MAAM,SAAS,OAAO,MAAM,EAAE,OAAO,CAAC,YAAY,OAAO,MAAM,EAAE,MAAM,CAAC,YAAY,MAAM,KAAG,QAAQ,YAAY,CAAC,CAGjJ;IAEK,UAAU,QAAe,MAAM,SAAS,OAAO,MAAM,EAAE,OAAO,CAAC,YAAY,OAAO,MAAM,EAAE,MAAM,CAAC,YAAY,MAAM,KAAG,QAAQ,YAAY,CAAC,CAGhJ;IAEK,aAAa,QAAe,MAAM,SAAS,OAAO,MAAM,EAAE,OAAO,CAAC,YAAY,OAAO,MAAM,EAAE,MAAM,CAAC,YAAY,MAAM,KAAG,QAAQ,YAAY,CAAC,CAGnJ;IAEK,WAAW,WAAkB,UAAU,OAAO,MAAM,SAAS,OAAO,MAAM,EAAE,OAAO,CAAC,YAAY,OAAO,MAAM,EAAE,MAAM,CAAC,YAAY,MAAM,KAAG,QAAQ,YAAY,CAAC,CAGrK;IAEK,eAAe,QAAe,MAAM,SAAS,QAAQ,YAAY,OAAO,MAAM,EAAE,MAAM,CAAC,YAAY,MAAM,KAAG,QAAQ,YAAY,CAAC,CAGtI;IAEK,kBAAkB,QAAe,MAAM,SAAS,QAAQ,YAAY,OAAO,MAAM,EAAE,MAAM,CAAC,YAAY,MAAM,KAAG,QAAQ,YAAY,CAAC,CAGzI;IAEF,OAAO,CAAC,mBAAmB,CAiBzB;IAEF,OAAO,CAAC,gBAAgB,CAyDtB;CACH"}
@@ -1,8 +0,0 @@
1
- export declare class KibaResponse {
2
- status: number;
3
- headers: Record<string, string>;
4
- date: Date;
5
- content: string;
6
- constructor(status: number, headers: Record<string, string>, date: Date, content: string);
7
- }
8
- //# sourceMappingURL=response.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../src/requester/response.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAY;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM;IACrC,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,SAAM;gBAED,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM;CAMhG"}
@@ -1,10 +0,0 @@
1
- export declare enum RestMethod {
2
- DELETE = "delete",
3
- GET = "get",
4
- HEAD = "head",
5
- OPTIONS = "options",
6
- PATCH = "patch",
7
- POST = "post",
8
- PUT = "put"
9
- }
10
- //# sourceMappingURL=restMethod.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"restMethod.d.ts","sourceRoot":"","sources":["../../src/requester/restMethod.ts"],"names":[],"mappings":"AACA,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ"}
@@ -1,2 +0,0 @@
1
- export * from './serviceClient';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -1,15 +0,0 @@
1
- import { Requester, RestMethod } from '../requester';
2
- export declare class RequestData {
3
- toObject: () => Record<string, unknown>;
4
- }
5
- export declare class ResponseData {
6
- }
7
- declare type Constructor<T = Record<string, unknown>> = new (...args: any[]) => T;
8
- export declare class ServiceClient {
9
- protected requester: Requester;
10
- baseUrl: string;
11
- constructor(requester: Requester, baseUrl: string);
12
- protected makeRequest: <ResponseType_1 extends ResponseData>(method: RestMethod, path: string, request?: RequestData | undefined, responseClass?: Constructor<ResponseType_1> | undefined) => Promise<ResponseType_1>;
13
- }
14
- export {};
15
- //# sourceMappingURL=serviceClient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serviceClient.d.ts","sourceRoot":"","sources":["../../src/services/serviceClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAGrD,qBAAa,WAAW;IAEf,QAAQ,QAAO,OAAO,MAAM,EAAE,OAAO,CAAC,CAE3C;CACH;AAGD,qBAAa,YAAY;CAIxB;AAGD,aAAK,WAAW,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AAE1E,qBAAa,aAAa;IACxB,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;gBAEJ,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM;IAKxD,SAAS,CAAC,WAAW,gDAAqD,UAAU,QAAQ,MAAM,YAAY,WAAW,GAAG,SAAS,sFAKnI;CACH"}
@@ -1,2 +0,0 @@
1
- export * from './localStorageClient';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storage/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
@@ -1,11 +0,0 @@
1
- export declare class LocalStorageClient {
2
- private localStorage;
3
- constructor(localStorage: Storage);
4
- getValue(key: string): string | null;
5
- setValue(key: string, value: string | null | undefined): void;
6
- getBoolean(key: string): boolean | null;
7
- setBoolean(key: string, value: boolean | null | undefined): void;
8
- removeValue(key: string): void;
9
- clear(): void;
10
- }
11
- //# sourceMappingURL=localStorageClient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"localStorageClient.d.ts","sourceRoot":"","sources":["../../src/storage/localStorageClient.ts"],"names":[],"mappings":"AACA,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,YAAY,CAAU;gBAElB,YAAY,EAAE,OAAO;IAI1B,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAIpC,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;IAQ7D,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI;IAWvC,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;IAQhE,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAI9B,KAAK,IAAI,IAAI;CAGrB"}
@@ -1,2 +0,0 @@
1
- export declare const asyncSleep: (sleepTime: number) => Promise<void>;
2
- //# sourceMappingURL=asyncUtil.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"asyncUtil.d.ts","sourceRoot":"","sources":["../../src/util/asyncUtil.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,cAAe,MAAM,KAAG,QAAQ,IAAI,CAI1D,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const isBrowser: () => boolean;
2
- export declare const downloadFileFromBrowser: (filename: string, content: string) => Promise<void>;
3
- export declare const isDocumentVisible: () => boolean;
4
- export declare const isMobile: () => boolean;
5
- //# sourceMappingURL=browserUtil.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"browserUtil.d.ts","sourceRoot":"","sources":["../../src/util/browserUtil.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,QAAO,OAE5B,CAAC;AAEF,eAAO,MAAM,uBAAuB,aAAoB,MAAM,WAAW,MAAM,KAAG,QAAQ,IAAI,CAS7F,CAAC;AAGF,eAAO,MAAM,iBAAiB,QAAO,OAiBpC,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAO,OAgB3B,CAAC"}
@@ -1,6 +0,0 @@
1
- import { BigNumber } from '@ethersproject/bignumber';
2
- export declare const ETHER: BigNumber;
3
- export declare const etherToNumber: (value: BigNumber) => number;
4
- export declare const shortFormatEther: (value: BigNumber) => string;
5
- export declare const longFormatEther: (value: BigNumber) => string;
6
- //# sourceMappingURL=chainUtil.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chainUtil.d.ts","sourceRoot":"","sources":["../../src/util/chainUtil.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAIrD,eAAO,MAAM,KAAK,WAAwC,CAAC;AAE3D,eAAO,MAAM,aAAa,UAAW,SAAS,KAAG,MAEhD,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,SAAS,KAAG,MAGnD,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,SAAS,KAAG,MAGlD,CAAC"}
@@ -1,4 +0,0 @@
1
- declare type ArgType = string | number | boolean | null | undefined;
2
- export declare const getClassName: (...args: ArgType[]) => string;
3
- export {};
4
- //# sourceMappingURL=classNameUtil.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"classNameUtil.d.ts","sourceRoot":"","sources":["../../src/util/classNameUtil.ts"],"names":[],"mappings":"AACA,aAAK,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;AAG5D,eAAO,MAAM,YAAY,YAAa,OAAO,EAAE,KAAG,MAYjD,CAAC"}
@@ -1,10 +0,0 @@
1
- export declare const JSON_DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX";
2
- export declare const dateFromString: (dateString: string, format?: string) => Date;
3
- export declare const dateToString: (date: Date, format?: string, convertToUtc?: boolean) => string;
4
- export declare const isSameDay: (date1: Date, date2: Date) => boolean;
5
- export declare const isToday: (date: Date) => boolean;
6
- export declare const isYesterday: (date: Date) => boolean;
7
- export declare const addDays: (date: Date, days: number) => Date;
8
- export declare const dateToRelativeString: (date: Date) => string;
9
- export declare const dateToRelativeShortString: (date: Date) => string;
10
- //# sourceMappingURL=dateUtil.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dateUtil.d.ts","sourceRoot":"","sources":["../../src/util/dateUtil.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,gBAAgB,iCAAmC,CAAC;AAEjE,eAAO,MAAM,cAAc,eAAgB,MAAM,WAAW,MAAM,KAAG,IAepE,CAAC;AAEF,eAAO,MAAM,YAAY,SAAU,IAAI,WAAU,MAAM,6BAA4C,MAOlG,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,IAAI,SAAS,IAAI,KAAG,OAEpD,CAAC;AAEF,eAAO,MAAM,OAAO,SAAU,IAAI,KAAG,OAEpC,CAAC;AAEF,eAAO,MAAM,WAAW,SAAU,IAAI,KAAG,OAIxC,CAAC;AAEF,eAAO,MAAM,OAAO,SAAU,IAAI,QAAQ,MAAM,KAAG,IAIlD,CAAC;AAEF,eAAO,MAAM,oBAAoB,SAAU,IAAI,KAAG,MAmCjD,CAAC;AAEF,eAAO,MAAM,yBAAyB,SAAU,IAAI,KAAG,MAgCtD,CAAC"}
@@ -1,4 +0,0 @@
1
- export declare const humanFileSize: (size: number, decimals?: number) => string;
2
- export declare const copyFileSync: (sourceFilePath: string, targetPath: string) => void;
3
- export declare const copyDirectorySync: (sourceDirectory: string, targetDirectory: string) => void;
4
- //# sourceMappingURL=fileUtil.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fileUtil.d.ts","sourceRoot":"","sources":["../../src/util/fileUtil.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,SAAU,MAAM,wBAAiB,MAQ1D,CAAC;AAEF,eAAO,MAAM,YAAY,mBAAoB,MAAM,cAAc,MAAM,KAAG,IAUzE,CAAC;AAEF,eAAO,MAAM,iBAAiB,oBAAqB,MAAM,mBAAmB,MAAM,KAAG,IAkBpF,CAAC"}
@@ -1,14 +0,0 @@
1
- export * from './asyncUtil';
2
- export * from './browserUtil';
3
- export * from './classNameUtil';
4
- export * from './dateUtil';
5
- export * from './fileUtil';
6
- export * from './numberUtil';
7
- export * from './objectUtil';
8
- export * from './promiseUtil';
9
- export * from './serializationUtil';
10
- export * from './stringUtil';
11
- export * from './typeUtil';
12
- export * from './urlUtils';
13
- export * from './chainUtil';
14
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
@@ -1,4 +0,0 @@
1
- export declare const numberWithCommas: (value: number) => string;
2
- export declare const shortFormatNumber: (value: number) => string;
3
- export declare const longFormatNumber: (value: number) => string;
4
- //# sourceMappingURL=numberUtil.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"numberUtil.d.ts","sourceRoot":"","sources":["../../src/util/numberUtil.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,UAAW,MAAM,KAAG,MAEhD,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,MAAM,KAAG,MAuBjD,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,MAAM,KAAG,MAGhD,CAAC"}
@@ -1,5 +0,0 @@
1
- import { RecursivePartial } from '.';
2
- export declare function merge<T>(base: T, ...partials: (RecursivePartial<T> | undefined)[]): T;
3
- export declare function mergePartial<T>(...partials: (RecursivePartial<T> | undefined)[]): RecursivePartial<T>;
4
- export declare function deepCompare<T>(object1: T, object2: T): boolean;
5
- //# sourceMappingURL=objectUtil.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"objectUtil.d.ts","sourceRoot":"","sources":["../../src/util/objectUtil.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,GAAG,CAAC;AAErC,wBAAgB,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,EAAE,GAAG,CAAC,CAGrF;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,EAAE,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAUrG;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,OAAO,CAE9D"}
@@ -1,2 +0,0 @@
1
- export declare const timeoutPromise: <T>(timeoutSeconds: number, promise: Promise<T>) => Promise<T>;
2
- //# sourceMappingURL=promiseUtil.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"promiseUtil.d.ts","sourceRoot":"","sources":["../../src/util/promiseUtil.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,sBAAuB,MAAM,oCAgBvD,CAAC"}
@@ -1,11 +0,0 @@
1
- export declare const objectToString: (value: Record<string, unknown> | null | undefined) => string | null | undefined;
2
- export declare const objectFromString: (value: string | null | undefined) => Record<string, unknown> | null | undefined;
3
- export declare const booleanToString: (value: boolean | null | undefined) => string | null | undefined;
4
- export declare const booleanFromString: (value: string | null | undefined) => boolean | null | undefined;
5
- export declare const numberToString: (value: number | null | undefined) => string | null | undefined;
6
- export declare const numberFromString: (value: string | null | undefined) => number | null | undefined;
7
- export declare const integerToString: (value: number | null | undefined) => string | null | undefined;
8
- export declare const integerFromString: (value: string | null | undefined) => number | null | undefined;
9
- export declare const stringListToString: (value: string[] | null | undefined, delimiter?: string) => string | undefined;
10
- export declare const stringListFromString: (value: string | null | undefined, delimiter?: string) => string[] | undefined;
11
- //# sourceMappingURL=serializationUtil.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serializationUtil.d.ts","sourceRoot":"","sources":["../../src/util/serializationUtil.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,UAAW,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,KAAG,MAAM,GAAG,IAAI,GAAG,SAQlG,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAQpG,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,OAAO,GAAG,IAAI,GAAG,SAAS,KAAG,MAAM,GAAG,IAAI,GAAG,SAQnF,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,OAAO,GAAG,IAAI,GAAG,SAQrF,CAAC;AAEF,eAAO,MAAM,cAAc,UAAW,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,MAAM,GAAG,IAAI,GAAG,SAQjF,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,MAAM,GAAG,IAAI,GAAG,SASnF,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,MAAM,GAAG,IAAI,GAAG,SAElF,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,MAAM,GAAG,IAAI,GAAG,SAGpF,CAAC;AAEF,eAAO,MAAM,kBAAkB,UAAW,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,yBAAoB,MAAM,GAAG,SAQjG,CAAC;AAEF,eAAO,MAAM,oBAAoB,UAAW,MAAM,GAAG,IAAI,GAAG,SAAS,yBAAoB,MAAM,EAAE,GAAG,SAQnG,CAAC"}
@@ -1,14 +0,0 @@
1
- export declare const CHARACTERS_NUMERIC = "1234567890";
2
- export declare const CHARACTERS_ALPHA_LOWERCASE = "abcdefghijklmnopqrstuvwxyz";
3
- export declare const CHARACTERS_ALPHA_UPPERCASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
4
- export declare const CHARACTERS_ALPHA: string;
5
- export declare const CHARACTERS_ALPHANUMERIC: string;
6
- export declare const CHARACTERS_HEX: string;
7
- export declare const generateRandomString: (length: number, characters?: string) => string;
8
- export declare const generateUUID: (shouldIncludeDashes?: boolean) => string;
9
- export declare const isValidEmail: (email: string) => boolean;
10
- export declare const camelCaseToKebabCase: (value: string) => string;
11
- export declare const truncateMiddle: (text: string, maxLength: number) => string;
12
- export declare const truncateStart: (text: string, maxLength: number) => string;
13
- export declare const truncateEnd: (text: string, maxLength: number) => string;
14
- //# sourceMappingURL=stringUtil.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stringUtil.d.ts","sourceRoot":"","sources":["../../src/util/stringUtil.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAC/C,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AACvE,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AACvE,eAAO,MAAM,gBAAgB,QAA+D,CAAC;AAC7F,eAAO,MAAM,uBAAuB,QAA6C,CAAC;AAClF,eAAO,MAAM,cAAc,QAAgC,CAAC;AAE5D,eAAO,MAAM,oBAAoB,WAAY,MAAM,eAAc,MAAM,KAA6B,MAMnG,CAAC;AAEF,eAAO,MAAM,YAAY,qCAAiC,MAYzD,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,MAAM,KAAG,OAG5C,CAAC;AAEF,eAAO,MAAM,oBAAoB,UAAW,MAAM,KAAG,MAEpD,CAAC;AAEF,eAAO,MAAM,cAAc,SAAU,MAAM,aAAa,MAAM,KAAG,MAQhE,CAAC;AAEF,eAAO,MAAM,aAAa,SAAU,MAAM,aAAa,MAAM,KAAG,MAO/D,CAAC;AAGF,eAAO,MAAM,WAAW,SAAU,MAAM,aAAa,MAAM,KAAG,MAO7D,CAAC"}
@@ -1,4 +0,0 @@
1
- export declare type RecursivePartial<T> = {
2
- [P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends (Record<string, unknown> | undefined) ? RecursivePartial<T[P]> : T[P];
3
- };
4
- //# sourceMappingURL=typeUtil.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typeUtil.d.ts","sourceRoot":"","sources":["../../src/util/typeUtil.ts"],"names":[],"mappings":"AACA,oBAAY,gBAAgB,CAAC,CAAC,IAAI;KAC/B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,gBAAgB,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACvJ,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const getUrlDisplayString: (url: string) => string;
2
- export declare const getLinkableUrl: (url: string) => string;
3
- export declare const resolveUrl: (url: string) => string;
4
- export declare const createSearchParams: (params: {
5
- [key: string]: string | string[];
6
- }) => URLSearchParams;
7
- //# sourceMappingURL=urlUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"urlUtils.d.ts","sourceRoot":"","sources":["../../src/util/urlUtils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,QAAS,MAAM,KAAG,MAYjD,CAAC;AAEF,eAAO,MAAM,cAAc,QAAS,MAAM,KAAG,MAM5C,CAAC;AAEF,eAAO,MAAM,UAAU,QAAS,MAAM,KAAG,MAExC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;MAAmD,eAYjF,CAAC"}