@pushwoosh/session-store 1.4.1 → 2.0.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.
package/README.md CHANGED
@@ -1,28 +1,23 @@
1
1
  # Pushwoosh / Micro Frontends / Session Store
2
2
  Этот пакет является частью микрофронтендовой архитектуры
3
3
  <br/>
4
- За основу взят проект [Single SPA](https://single-spa.js.org)
5
- <br/>
6
4
  Является хранилищем данных о текущем сеансе
7
5
 
8
6
  ## Установка
9
- 1. Установить в переменную окружения терминала `NPM_TOKEN`. Его можно получить у администраторов ([Slack](https://pushwoosh.slack.com/archives/C02H0N5RMKJ))
10
- 2. Сгенерировать ключи для запуска сервера в режиме HTTPS. ([Confluence](https://confluence.corp.pushwoosh.com/display/FD/HTTPS+on+localhost))
11
- 3. Выполнить `npm ci`
7
+ 1. Сгенерировать ключи для запуска сервера в режиме HTTPS ([Confluence](https://confluence.corp.pushwoosh.com/display/FD/HTTPS+on+localhost))
8
+ 2. Выполнить `npm ci`
12
9
 
13
10
  ## Запуск разработки
14
- 0. Скопировать файл `.env.example` в `.env`. Удалить из него комментарии к переменным
15
- 1. Выполнить `npm start`
11
+ 1. Скопировать файл `.env.example` в `.env`
12
+ 2. Выполнить `npm start`
16
13
 
17
14
  ## Работа с библиотекой
18
15
 
19
- ### Инициализация экземпляра SessionStore
16
+ ### Создание экземпляра SessionStore и первая загрузка данных
20
17
  ```typescript
21
18
  import { HttpClient } from '@pushwoosh/http-client';
22
19
  import { SessionStore } from '@pushwoosh/session-store';
23
20
 
24
- // Create new instance of http client, initialize and etc..
25
-
26
21
  const sessionStore = new SessionStore(httpClient);
27
22
  await sessionStore.update();
28
23
  ```
@@ -251,3 +251,4 @@ export declare class Account {
251
251
  };
252
252
  constructor(accountData: AccountData);
253
253
  }
254
+ //# sourceMappingURL=account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/entities/account.ts"],"names":[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;WAGG;QACH,QAAQ,CAAC,+BAA+B,EAAE,MAAM,CAAC;QAEjD;;;WAGG;QACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;QAElC;;;WAGG;QACH,QAAQ,CAAC,wBAAwB,EAAE,MAAM,CAAC;QAE1C;;;WAGG;QACH,QAAQ,CAAC,2BAA2B,EAAE,MAAM,CAAC;QAE7C;;;WAGG;QACH,QAAQ,CAAC,yBAAyB,EAAE,MAAM,GAAG,SAAS,CAAC;QAEvD;;;WAGG;QACH,QAAQ,CAAC,0BAA0B,EAAE,MAAM,GAAG,SAAS,CAAC;QAExD;;;WAGG;QACH,QAAQ,CAAC,4BAA4B,EAAE,MAAM,GAAG,SAAS,CAAC;QAE1D;;;WAGG;QACH,QAAQ,CAAC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;QAE7C;;;WAGG;QACH,QAAQ,CAAC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;QAE7C;;;WAGG;QACH,QAAQ,CAAC,yBAAyB,EAAE,MAAM,GAAG,SAAS,CAAC;QAEvD;;;WAGG;QACH,QAAQ,CAAC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;QAE7C;;;WAGG;QACH,QAAQ,CAAC,yBAAyB,EAAE,MAAM,GAAG,SAAS,CAAC;KACxD,CAAC;gBAEU,WAAW,EAAE,WAAW;CA4DrC"}
@@ -89,3 +89,4 @@ export declare class Permissions {
89
89
  readonly canModifyEmailTemplates: boolean;
90
90
  constructor(account: AccountData);
91
91
  }
92
+ //# sourceMappingURL=permissions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/entities/permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C;;GAEG;AACH,qBAAa,WAAW;IACtB;;OAEG;IACH,SAAgB,cAAc,EAAE,OAAO,CAAC;IAExC;;OAEG;IACH,SAAgB,qBAAqB,EAAE,OAAO,CAAC;IAE/C;;OAEG;IACH,SAAgB,qBAAqB,EAAE,OAAO,CAAC;IAE/C;;OAEG;IACH,SAAgB,yBAAyB,EAAE,OAAO,CAAC;IAEnD;;OAEG;IACH,SAAgB,iBAAiB,EAAE,OAAO,CAAC;IAE3C;;OAEG;IACH,SAAgB,kBAAkB,EAAE,OAAO,CAAC;IAE5C;;OAEG;IACH,SAAgB,qBAAqB,EAAE,OAAO,CAAC;IAE/C;;OAEG;IACH,SAAgB,uBAAuB,EAAE,OAAO,CAAC;IAEjD;;OAEG;IACH,SAAgB,0BAA0B,EAAE,OAAO,CAAC;IAEpD;;OAEG;IACH,SAAgB,cAAc,EAAE,OAAO,CAAC;IAExC;;OAEG;IACH,SAAgB,iBAAiB,EAAE,OAAO,CAAC;IAE3C;;OAEG;IACH,SAAgB,eAAe,EAAE,OAAO,CAAC;IAEzC;;OAEG;IACH,SAAgB,UAAU,EAAE,OAAO,CAAC;IAEpC;;OAEG;IACH,SAAgB,aAAa,EAAE,OAAO,CAAC;IAEvC;;OAEG;IACH,SAAgB,cAAc,EAAE,OAAO,CAAC;IAExC;;OAEG;IACH,SAAgB,iBAAiB,EAAE,OAAO,CAAC;IAE3C;;OAEG;IACH,SAAgB,eAAe,EAAE,OAAO,CAAC;IAEzC;;OAEG;IACH,SAAgB,kBAAkB,EAAE,OAAO,CAAC;IAE5C;;OAEG;IACH,SAAgB,YAAY,EAAE,OAAO,CAAC;IAEtC;;OAEG;IACH,SAAgB,oBAAoB,EAAE,OAAO,CAAC;IAE9C;;OAEG;IACH,SAAgB,uBAAuB,EAAE,OAAO,CAAC;gBAErC,OAAO,EAAE,WAAW;CAqCjC"}
@@ -68,3 +68,4 @@ export declare class Platforms {
68
68
  */
69
69
  checkIsAvailablePlatform: (platform: Platform) => boolean;
70
70
  }
71
+ //# sourceMappingURL=platforms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platforms.d.ts","sourceRoot":"","sources":["../../src/entities/platforms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C;;GAEG;AACH,oBAAY,QAAQ;IAClB,GAAG,IAAI;IACP,UAAU,IAAI;IACd,OAAO,IAAI;IAEX,aAAa,IAAI;IAEjB,MAAM,IAAI;IACV,OAAO,IAAI;IACX,MAAM,IAAI;IACV,MAAM,KAAK;IACX,MAAM,KAAK;IACX,OAAO,KAAK;IACZ,EAAE,KAAK;IACP,KAAK,KAAK;IAEV,KAAK,KAAK;IACV,MAAM,KAAK;CACZ;AAED;;GAEG;AACH,oBAAY,YAAY;IACtB,GAAG,QAAQ;IACX,UAAU,eAAe;IACzB,OAAO,YAAY;IAEnB,aAAa,kBAAkB;IAE/B,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,EAAE,sBAAsB;IACxB,KAAK,UAAU;IAEf,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,qBAAa,SAAS;IACpB;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB,CAKjC;IAEF;;;;;OAKG;IACH,OAAc,eAAe,aAAc,QAAQ,KAAG,MAAM,CAQ1D;IAEF;;OAEG;IACH,SAAgB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;gBAE/B,WAAW,EAAE,WAAW;IAKpC;;;;;OAKG;IACI,wBAAwB,aAAc,QAAQ,KAAG,OAAO,CAE7D;CACH"}
@@ -480,3 +480,4 @@ export declare class Restrictions {
480
480
  readonly messageHistoryStoriedPeriodInDays: number;
481
481
  constructor(accountData: AccountData);
482
482
  }
483
+ //# sourceMappingURL=restrictions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restrictions.d.ts","sourceRoot":"","sources":["../../src/entities/restrictions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAA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CAAC;IAEtC;;;OAGG;IACH,SAAgB,WAAW,EAAE,MAAM,CAAC;IAEpC;;;OAGG;IACH,SAAgB,WAAW,EAAE,MAAM,CAAC;IAEpC;;;OAGG;IACH,SAAgB,iCAAiC,EAAE,MAAM,CAAC;gBAE9C,WAAW,EAAE,WAAW;CA4IrC"}
@@ -75,3 +75,4 @@ export declare class User {
75
75
  readonly isSubscribedForNotificationDisablePlatform: boolean;
76
76
  constructor(accountData: AccountData, userData: UserData);
77
77
  }
78
+ //# sourceMappingURL=user.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/entities/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAErD;;GAEG;AACH,qBAAa,IAAI;IACf;;;OAGG;IACH,SAAgB,IAAI,EAAE,MAAM,CAAC;IAE7B;;;OAGG;IACH,SAAgB,KAAK,EAAE,MAAM,CAAC;IAE9B;;;OAGG;IACH,SAAgB,QAAQ,EAAE,OAAO,CAAC;IAElC;;;OAGG;IACH,SAAgB,OAAO,EAAE,OAAO,CAAC;IAEjC;;;OAGG;IACH,SAAgB,SAAS,EAAE,OAAO,CAAC;IAEnC;;;OAGG;IACH,SAAgB,QAAQ,EAAE,MAAM,CAAC;IAEjC;;;OAGG;IACH,SAAgB,cAAc,EAAE,MAAM,CAAC;IAEvC;;;OAGG;IACH,SAAgB,YAAY,EAAE,MAAM,CAAC;IAErC;;;OAGG;IACH,SAAgB,0BAA0B,EAAE,OAAO,CAAC;IAEpD;;;OAGG;IACH,SAAgB,+BAA+B,EAAE,OAAO,CAAC;IAEzD;;;OAGG;IACH,SAAgB,kDAAkD,EAAE,OAAO,CAAC;IAE5E;;;OAGG;IACH,SAAgB,gDAAgD,EAAE,OAAO,CAAC;IAE1E;;;OAGG;IACH,SAAgB,yCAAyC,EAAE,OAAO,CAAC;IAEnE;;;OAGG;IACH,SAAgB,0CAA0C,EAAE,OAAO,CAAC;gBAExD,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ;CAsBzD"}
package/dist/index.d.ts CHANGED
@@ -5,3 +5,4 @@ export * from './entities/restrictions';
5
5
  export * from './entities/user';
6
6
  export * from './session-store';
7
7
  export * from './session-store.types';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("tslib"),require("rxjs")):"function"==typeof define&&define.amd?define(["tslib","rxjs"],e):"object"==typeof exports?exports["@pushwoosh/session-store"]=e(require("tslib"),require("rxjs")):t["@pushwoosh/session-store"]=e(t.tslib,t.rxjs)}(this,(function(t,e){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=60)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(30))},function(t,e,n){var i=n(6),o=Function.prototype,s=o.bind,r=o.call,a=i&&s.bind(r,r);t.exports=i?function(t){return t&&a(t)}:function(t){return t&&function(){return r.apply(t,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e,n){var i=n(2);t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,n){e.exports=t},function(t,e,n){var i=n(2);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},function(t,e,n){var i=n(3);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},function(t,e,n){var i=n(6),o=Function.prototype.call;t.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},function(t,e,n){var i=n(0).TypeError;t.exports=function(t){if(null==t)throw i("Can't call method on "+t);return t}},function(t,e){t.exports={}},function(t,e,n){var i=n(0),o=n(43),s=n(12),r=n(48),a=n(19),l=n(18),u=o("wks"),c=i.Symbol,p=c&&c.for,f=l?c:c&&c.withoutSetter||r;t.exports=function(t){if(!s(u,t)||!a&&"string"!=typeof u[t]){var e="Symbol."+t;a&&s(c,t)?u[t]=c[t]:u[t]=l&&p?p(e):f(e)}return u[t]}},function(t,e,n){var i=n(1),o=n(47),s=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return s(o(t),e)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(1),o=i({}.toString),s=i("".slice);t.exports=function(t){return s(o(t),8,-1)}},function(t,e,n){var i=n(36),o=n(16);t.exports=function(t){var e=i(t,"string");return o(e)?e:e+""}},function(t,e,n){var i=n(0),o=n(17),s=n(3),r=n(37),a=n(18),l=i.Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return s(e)&&r(e.prototype,l(t))}},function(t,e,n){var i=n(10),o=n(0),s=n(3),r=function(t){return s(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?r(i[t])||r(o[t]):i[t]&&i[t][e]||o[t]&&o[t][e]}},function(t,e,n){var i=n(19);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var i=n(38),o=n(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},function(t,e,n){var i=n(0),o=n(3),s=n(41),r=i.TypeError;t.exports=function(t){if(o(t))return t;throw r(s(t)+" is not a function")}},function(t,e,n){var i=n(4),o=n(2),s=n(49);t.exports=!i&&!o((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var i=n(0),o=n(57),s=i.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return s(t)}},function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(t,e,n){t.exports=n(26)},function(t,n){t.exports=e},function(t,e,n){var i=n(27);t.exports=i},function(t,e,n){n(28);var i=n(10);t.exports=i.parseFloat},function(t,e,n){var i=n(29),o=n(56);i({global:!0,forced:parseFloat!=o},{parseFloat:o})},function(t,e,n){"use strict";var i=n(0),o=n(31),s=n(1),r=n(3),a=n(32).f,l=n(50),u=n(10),c=n(51),p=n(52),f=n(12),h=function(t){var e=function(n,i,s){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,i)}return new t(n,i,s)}return o(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var n,o,m,d,b,g,y,v,w=t.target,A=t.global,S=t.stat,C=t.proto,x=A?i:S?i[w]:(i[w]||{}).prototype,E=A?u:u[w]||p(u,w,{})[w],M=E.prototype;for(m in e)n=!l(A?m:w+(S?".":"#")+m,t.forced)&&x&&f(x,m),b=E[m],n&&(g=t.noTargetGet?(v=a(x,m))&&v.value:x[m]),d=n&&g?g:e[m],n&&typeof b==typeof d||(y=t.bind&&n?c(d,i):t.wrap&&n?h(d):C&&r(d)?s(d):d,(t.sham||d&&d.sham||b&&b.sham)&&p(y,"sham",!0),p(E,m,y),C&&(f(u,o=w+"Prototype")||p(u,o,{}),p(u[o],m,d),t.real&&M&&!M[m]&&p(M,m,d)))}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var i=n(6),o=Function.prototype,s=o.apply,r=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?r.bind(s):function(){return r.apply(s,arguments)})},function(t,e,n){var i=n(4),o=n(8),s=n(33),r=n(13),a=n(34),l=n(15),u=n(12),c=n(21),p=Object.getOwnPropertyDescriptor;e.f=i?p:function(t,e){if(t=a(t),e=l(e),c)try{return p(t,e)}catch(n){}if(u(t,e))return r(!o(s.f,t,e),t[e])}},function(t,e,n){"use strict";var i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,s=o&&!i.call({1:2},1);e.f=s?function(t){var e=o(this,t);return!!e&&e.enumerable}:i},function(t,e,n){var i=n(35),o=n(9);t.exports=function(t){return i(o(t))}},function(t,e,n){var i=n(0),o=n(1),s=n(2),r=n(14),a=i.Object,l=o("".split);t.exports=s((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?l(t,""):a(t)}:a},function(t,e,n){var i=n(0),o=n(8),s=n(7),r=n(16),a=n(40),l=n(42),u=n(11),c=i.TypeError,p=u("toPrimitive");t.exports=function(t,e){if(!s(t)||r(t))return t;var n,i=a(t,p);if(i){if(void 0===e&&(e="default"),n=o(i,t,e),!s(n)||r(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),l(t,e)}},function(t,e,n){var i=n(1);t.exports=i({}.isPrototypeOf)},function(t,e,n){var i,o,s=n(0),r=n(39),a=s.process,l=s.Deno,u=a&&a.versions||l&&l.version,c=u&&u.v8;c&&(o=(i=c.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&r&&(!(i=r.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=r.match(/Chrome\/(\d+)/))&&(o=+i[1]),t.exports=o},function(t,e,n){var i=n(17);t.exports=i("navigator","userAgent")||""},function(t,e,n){var i=n(20);t.exports=function(t,e){var n=t[e];return null==n?void 0:i(n)}},function(t,e,n){var i=n(0).String;t.exports=function(t){try{return i(t)}catch(e){return"Object"}}},function(t,e,n){var i=n(0),o=n(8),s=n(3),r=n(7),a=i.TypeError;t.exports=function(t,e){var n,i;if("string"===e&&s(n=t.toString)&&!r(i=o(n,t)))return i;if(s(n=t.valueOf)&&!r(i=o(n,t)))return i;if("string"!==e&&s(n=t.toString)&&!r(i=o(n,t)))return i;throw a("Can't convert object to primitive value")}},function(t,e,n){var i=n(44),o=n(45);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.20.3",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.20.3/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t,e){t.exports=!0},function(t,e,n){var i=n(0),o=n(46),s="__core-js_shared__",r=i[s]||o(s,{});t.exports=r},function(t,e,n){var i=n(0),o=Object.defineProperty;t.exports=function(t,e){try{o(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},function(t,e,n){var i=n(0),o=n(9),s=i.Object;t.exports=function(t){return s(o(t))}},function(t,e,n){var i=n(1),o=0,s=Math.random(),r=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++o+s,36)}},function(t,e,n){var i=n(0),o=n(7),s=i.document,r=o(s)&&o(s.createElement);t.exports=function(t){return r?s.createElement(t):{}}},function(t,e,n){var i=n(2),o=n(3),s=/#|\.prototype\./,r=function(t,e){var n=l[a(t)];return n==c||n!=u&&(o(e)?i(e):!!e)},a=r.normalize=function(t){return String(t).replace(s,".").toLowerCase()},l=r.data={},u=r.NATIVE="N",c=r.POLYFILL="P";t.exports=r},function(t,e,n){var i=n(1),o=n(20),s=n(6),r=i(i.bind);t.exports=function(t,e){return o(t),void 0===e?t:s?r(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(4),o=n(53),s=n(13);t.exports=i?function(t,e,n){return o.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(0),o=n(4),s=n(21),r=n(54),a=n(55),l=n(15),u=i.TypeError,c=Object.defineProperty,p=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",m="writable";e.f=o?r?function(t,e,n){if(a(t),e=l(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&m in n&&!n.writable){var i=p(t,e);i&&i.writable&&(t[e]=n.value,n={configurable:h in n?n.configurable:i.configurable,enumerable:f in n?n.enumerable:i.enumerable,writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=l(e),a(n),s)try{return c(t,e,n)}catch(i){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(4),o=n(2);t.exports=i&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(t,e,n){var i=n(0),o=n(7),s=i.String,r=i.TypeError;t.exports=function(t){if(o(t))return t;throw r(s(t)+" is not an object")}},function(t,e,n){var i=n(0),o=n(2),s=n(1),r=n(22),a=n(59).trim,l=n(23),u=s("".charAt),c=i.parseFloat,p=i.Symbol,f=p&&p.iterator,h=1/c(l+"-0")!=-1/0||f&&!o((function(){c(Object(f))}));t.exports=h?function(t){var e=a(r(t)),n=c(e);return 0===n&&"-"==u(e,0)?-0:n}:c},function(t,e,n){var i=n(0),o=n(58),s=n(3),r=n(14),a=n(11)("toStringTag"),l=i.Object,u="Arguments"==r(function(){return arguments}());t.exports=o?r:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=l(t),a))?n:u?r(e):"Object"==(i=r(e))&&s(e.callee)?"Arguments":i}},function(t,e,n){var i={};i[n(11)("toStringTag")]="z",t.exports="[object z]"===String(i)},function(t,e,n){var i=n(1),o=n(9),s=n(22),r=n(23),a=i("".replace),l="["+r+"]",u=RegExp("^"+l+l+"*"),c=RegExp(l+l+"*$"),p=function(t){return function(e){var n=s(o(e));return 1&t&&(n=a(n,u,"")),2&t&&(n=a(n,c,"")),n}};t.exports={start:p(1),end:p(2),trim:p(3)}},function(t,e,n){"use strict";var i;n.r(e),n.d(e,"ProductType",(function(){return i})),n.d(e,"Account",(function(){return r})),n.d(e,"Permissions",(function(){return a})),n.d(e,"Platform",(function(){return o})),n.d(e,"PlatformName",(function(){return s})),n.d(e,"Platforms",(function(){return l})),n.d(e,"Restrictions",(function(){return u})),n.d(e,"User",(function(){return f})),n.d(e,"SessionStore",(function(){return d})),function(t){t.FREE="Free",t.DEVELOPER="Developer",t.MARKETING="Marketing",t.ENTERPRISE="Enterprise"}(i||(i={}));var o,s,r=function(t){this.name=t.name,this.registrationDate=t.registrationDate,this.billing={companyName:t.billingAddress.company_name,companyCountry:t.billingAddress.country,companyCountryCode:t.billingAddress.country_code,companyState:t.billingAddress.state,companyStateCode:t.billingAddress.state_code,companyCity:t.billingAddress.city,companyStreet:t.billingAddress.street,companyZip:t.billingAddress.zip,companyPhone:t.billingAddress.phone,companyVAT:t.billingAddress.vat_number,companyNumber:t.billingAddress.company_number,primaryPersonFirstName:t.billingAddress.first_name,primaryPersonLastName:t.billingAddress.last_name,primaryPersonEmail:t.billingAddress.paymentEmail,secondaryPersonFirstName:t.billingAddress.secondary_person_first_name,secondaryPersonLastName:t.billingAddress.secondary_person_last_name,secondaryPersonEmail:t.billingAddress.secondary_person_email,industry:t.billingAddress.industry,department:t.billingAddress.department,additionalEmails:t.billingAddress.additionalEmails},this.productType=t.productType,this.productName=t.restriction,this.isEnterprise=t.isEnterprise,this.expiryDate=t.expireDate,this.isFrozen=t.frozen,this.isDeviceLimitReached=t.isDeviceLimitReached,this.isEnabledBackup=t.allowBackup,this.statistics={currentMonthActiveUsers:t.MAU,lastMonthActiveUsers:t.lastMAU,calendarMonthActiveUsers:t.calendarMAU,currentMonthActiveDevicesCount:t.MAD,lastMonthActiveDevicesCount:t.lastMAD,calendarMonthActiveDevicesCount:t.calendarMAD,totalSubscribers:t.totalSubscribers,pushAvailableSubscribers:t.pushAvailableSubscribers,pushNotAvailableSubscribers:t.pushNotAvailableSubscribers,currentDaySentEmailsCount:t.dailyEmailStat,currentMontSentEmailsCount:t.monthlyEmailStat,calendarMonthSentEmailsCount:t.lastEmailStat,freeEmailsLimit:t.freeEmailLimit,freeEmailsQuota:t.freeEmailQuota,freeEmailsQuotaUpdateDate:t.freeEmailLimitUpdateDate,paidEmailsQuota:t.paidEmailQuota,paidEmailsQuotaExpiryDate:t.paidEmailExpireDate},Object.freeze(this.billing),Object.freeze(this.statistics),Object.freeze(this)},a=function(t){this.hasSuperRights=t.ACESuperRight,this.canManageSubscription=t.ACEManageSubscription,this.canManageAccessTokens=t.ACESeeAPIAccess,this.canManageDomainsAndEmails=t.ACEDomainAndEmailVerification,this.canManageSubUsers=t.ACEManageUsers,this.canSeeApplications=t.ACESeeApplications,this.canModifyApplications=t.ACEModifyApplications,this.canSeeApplicationGroups=t.ACESeeAppGroups,this.canModifyApplicationGroups=t.ACEModifyAppGroups,this.canSeeMessages=t.ACESeeMessages,this.canModifyMessages=t.ACEModifyMessages&&this.canSeeMessages,this.canSendMessages=t.ACESendMessages&&this.canSeeMessages,this.canSeeTags=t.ACESeeTags,this.canModifyTags=t.ACEModifyTags,this.canSeeSegments=t.ACESeeFilters&&this.canSeeTags,this.canModifySegments=t.ACEModifyFilters&&this.canSeeTags,this.canSeeRichMedia=t.ACESeeRichMedia&&this.canSeeTags&&this.canSeeSegments,this.canModifyRichMedia=t.ACEModifyRichMedia&&this.canSeeTags&&this.canSeeSegments,this.canSeeInApps=this.canSeeTags&&this.canSeeSegments&&this.canSeeRichMedia,this.canSeeEmailTemplates=t.ACESeeEmailTemplates&&this.canSeeTags,this.canModifyEmailTemplates=t.ACEModifyEmailTemplates&&this.canSeeTags,Object.freeze(this)};!function(t){t[t.IOS=1]="IOS",t[t.BLACKBERRY=2]="BLACKBERRY",t[t.ANDROID=3]="ANDROID",t[t.WINDOWS_PHONE=5]="WINDOWS_PHONE",t[t.MAC_OS=7]="MAC_OS",t[t.WINDOWS=8]="WINDOWS",t[t.AMAZON=9]="AMAZON",t[t.SAFARI=10]="SAFARI",t[t.CHROME=11]="CHROME",t[t.FIREFOX=12]="FIREFOX",t[t.IE=13]="IE",t[t.EMAIL=14]="EMAIL",t[t.BAIDU=16]="BAIDU",t[t.HUAWEI=17]="HUAWEI"}(o||(o={})),function(t){t.IOS="iOS",t.BLACKBERRY="Blackberry",t.ANDROID="Android",t.WINDOWS_PHONE="Windows Phone",t.MAC_OS="Mac OS",t.WINDOWS="Windows",t.AMAZON="Amazon",t.SAFARI="Safari",t.CHROME="Chrome",t.FIREFOX="Firefox",t.IE="Internet Explorer",t.EMAIL="Email",t.BAIDU="Baidu",t.HUAWEI="Huawei"}(s||(s={}));var l=function(){function t(e){var n=this;this.checkIsAvailablePlatform=function(t){return n.available.includes(t)},this.available=t.filterAllowPlatforms(e.allowPlatforms),Object.freeze(this)}return t.filterAllowPlatforms=function(t){var e=Object.values(o);return t.filter((function(t){return e.includes(t)}))},t.getPlatformName=function(t){var e=Object.keys(s).find((function(e){return o[e]===t}));return e?s[e]:"Unknown platform!"},t}(),u=function(t){this.allowUseSubUsers=t.allowSubUsers,this.maxUsersCount=t.maxUsers,this.maxDevicesCount=t.maxDevices,this.maxApplicationsCount=t.maxApplications,this.totalApplicationsCount=t.applicationsCount,this.allowUseApplicationGroups=t.allowAppGroups,this.maxApplicationGroupsCount=t.maxAppGroups,this.totalApplicationGroupsCount=t.appGroupsCount,this.allowUseCampaigns=t.allowCampaigns,this.maxCampaignsCount=t.maxCampaigns,this.totalCampaignsCount=t.campaignsCount,this.allowUseTags=t.allowTags,this.allowUseUserSpecificTags=t.allowUseUserSpecificTags,this.maxTagsCount=t.maxTags,this.totalTagsCount=t.tagsCount,this.allowUseFilters=t.allowFilters,this.allowUseFiltersCompiling=t.allowFilterCompiling,this.allowUseFiltersWithTagNotSet=t.allowTagNotSetFilter,this.maxFiltersCount=t.maxFilters,this.totalFiltersCount=t.filtersCount,this.maxFastFiltersCount=t.maxPreparedFilters,this.allowUseEvents=t.allowEvents,this.maxEventsCount=t.maxEvents,this.totalEventsCount=t.eventsCount,this.allowUseRichMedia=t.allowRichMedia,this.maxRichMediaCount=t.maxRichMedia,this.totalRichMediaCount=t.richMediaCount,this.allowUseInApps=t.allowInApps,this.maxInAppsCount=t.maxInApps,this.totalInAppsCount=t.inAppsCount,this.maxDomainsCount=t.maxAccountDomains,this.totalDomainsCount=t.accountDomainsCount,this.maxMailsCount=t.maxEmailMails,this.totalMailsCount=t.accountMailsCount,this.maxEmailTemplatesCount=t.maxEmailTemplates,this.totalEmailTemplatesCount=t.emailTemplatesCount,this.allowUsePresets=t.allowPresets,this.maxPresetsCount=t.maxPresets,this.totalPresetsCount=t.presetsCount,this.allowUseAutoPushes=t.allowAutoPushes,this.maxAutoPushesCount=t.maxAutoPushes,this.totalAutoPushesCount=t.autoPushesCount,this.allowUseAutoEmails=t.allowAutoEmails,this.maxAutoEmailsCount=t.maxAutoEmails,this.totalAutoEmailsCount=t.autoEmailsCount,this.allowUseGeozones=t.allowGeozones,this.allowUseSendToGeozones=t.allowSendToGeoZone,this.maxGeozonesCount=t.maxGeoZones,this.totalGeozonesCount=t.geoZonesCount,this.maxGeozoneRange=t.maxGeozoneRange,this.minGeozoneRange=t.minGeozoneRange,this.allowUseDeepLinks=t.allowDeeplinks,this.maxDeepLinksCount=t.maxDeeplinks,this.totalDeepLinksCount=t.deeplinksCount,this.allowUseBeacons=t.allowBeacons,this.maxBeaconsCount=t.maxBeacons,this.totalBeaconsCount=t.beaconsCount,this.allowUseTwitterFeeds=t.allowTwitterFeeds,this.maxTwitterFeedsCount=t.maxTwitterFeeds,this.totalTwitterFeedsCount=t.twitterFeedsCount,this.allowUseRssFeeds=t.allowRSSFeeds,this.allowUseRssFeedsCustomPollingInterval=t.allowCustomRssPollingInterval,this.maxRssFeedsCount=t.maxRssFeeds,this.totalRssFeedsCount=t.rssFeedsCount,this.allowUseTestDevices=t.allowTestDevices,this.maxTestDevicesCount=t.maxTestDevices,this.totalTestDevicesCount=t.testDevicesCount,this.allowUseTriggeredMessages=t.allowPushOnEvent,this.maxTriggeredMessagesCount=t.maxTriggeredMessagePresets,this.totalTriggeredMessagesCount=t.triggeredMessagesCount,this.maxTriggeredMessagesDelayInDays=t.maxPushOnEventDelayInDays,this.allowUseAccessTokens=t.allowAPI,this.allowUseDataKeys=t.allowCustomData,this.allowUseStatistics=t.allowStatsAccess,this.allowUseScheduling=t.allowScheduling,this.allowUseIOSAutoConfig=t.allowAutoConfig,this.allowUseTwoFactorAuth=t.allowTwoFactorAuth,this.allowUseSendMessageByCsv=t.allowCSVMessage,this.allowUseAbTests=t.allowAbTests,this.allowUseHtmlPages=t.allowHtmlPages,this.allowUseRemotePage=t.allowUseRemotePage,this.allowUseIOSCategories=t.allowIOSCategories,this.allowUseGoalTracking=t.allowGoalTracking,this.allowUseDynamicContent=t.allowDynamicContent,this.allowUseDebugMode=t.allowDebugMode,this.allowUseUninstallTracking=t.allowTrackingUninstall,this.allowUseFrequencyCapping=t.allowFrequencyCapping,this.allowUseInbox=t.allowInbox,this.maxInboxTtlDays=t.maxInboxTtlDays,this.allowUseChannels=t.allowChannels,this.allowUseSendExternalAndroidStatistics=t.allowSendExternalStats,this.allowUseGDPR=t.allowGDPR,this.sendRateMin=t.sendRateMin,this.sendRateMax=t.sendRateMax,this.messageHistoryStoriedPeriodInDays=t.messageHistoryStorePeriod,Object.freeze(this)},c=n(24),p=n.n(c),f=function(t,e){this.name=e.username,this.email=e.email,this.isActive=e.isActive,this.isOwner=t.admin,this.isUnderSU=t.isUnderSu,this.timezone=e.timezone,this.timezoneOffset=60*p()(e.timezoneOffset),this.accountCount=e.accountsCount,this.isSubscribedForNewsletters=e.allowNewsletters,this.isSubscribedForDailyStatsGlobal=e.allowDailyStatsGlobal,this.isSubscribedForNotificationSubscribersLimitReached=e.allowNotificationSubscribers,this.isSubscribedForNotificationExpiredIOSCertificate=e.allowNotificationIosLicense,this.isSubscribedForNotificationUserInactivity=e.allowNotificationUserInactivity,this.isSubscribedForNotificationDisablePlatform=e.allowNotificationDisablePlatform,Object.freeze(this)},h=n(5),m=n(25),d=function(t){var e=this;this.updateSubject=function(t,n){e.subject.next({account:new r(t),permissions:new a(t),platforms:new l(t),restrictions:new u(t),user:new f(t,n)})},this.load=function(){return Object(h.__awaiter)(e,void 0,void 0,(function(){var t=this;return Object(h.__generator)(this,(function(e){return[2,this.httpClient.post("/cp/_rpc/",{body:{calls:[{name:"account.get"},{name:"user.get"}]},withAuthorization:!0,withCredentials:!1,responseMiddleware:function(e){var n=t.httpClient.basicResponseMiddleware(e).responses,i=n[0],o=n[1];return[i.result,o.result]}})]}))}))},this.update=function(){return Object(h.__awaiter)(e,void 0,void 0,(function(){var t,e,n;return Object(h.__generator)(this,(function(i){switch(i.label){case 0:return[4,this.load()];case 1:return t=i.sent(),e=t[0],n=t[1],this.updateSubject(e,n),[2]}}))}))},this.subscribe=function(t){return e.subject.subscribe(t)},this.httpClient=t,this.subject=new m.ReplaySubject(1)}}])}));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("tslib"),require("rxjs"),require("@pushwoosh/http-client")):"function"==typeof define&&define.amd?define(["tslib","rxjs","@pushwoosh/http-client"],e):"object"==typeof exports?exports["@pushwoosh/session-store"]=e(require("tslib"),require("rxjs"),require("@pushwoosh/http-client")):t["@pushwoosh/session-store"]=e(t.tslib,t.rxjs,t["@pushwoosh/http-client"])}(self,(function(t,e,s){return(()=>{var i={1238:(t,e,s)=>{t.exports=s(6877)},7579:(t,e,s)=>{s(9718);var i=s(4058);t.exports=i.parseFloat},4883:(t,e,s)=>{var i=s(1899),o=s(7475),n=s(9826),r=i.TypeError;t.exports=function(t){if(o(t))return t;throw r(n(t)+" is not a function")}},6059:(t,e,s)=>{var i=s(1899),o=s(941),n=i.String,r=i.TypeError;t.exports=function(t){if(o(t))return t;throw r(n(t)+" is not an object")}},2532:(t,e,s)=>{var i=s(5329),o=i({}.toString),n=i("".slice);t.exports=function(t){return n(o(t),8,-1)}},9697:(t,e,s)=>{var i=s(1899),o=s(2885),n=s(7475),r=s(2532),a=s(9813)("toStringTag"),l=i.Object,u="Arguments"==r(function(){return arguments}());t.exports=o?r:function(t){var e,s,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(s=function(t,e){try{return t[e]}catch(t){}}(e=l(t),a))?s:u?r(e):"Object"==(i=r(e))&&n(e.callee)?"Arguments":i}},2029:(t,e,s)=>{var i=s(5746),o=s(5988),n=s(1887);t.exports=i?function(t,e,s){return o.f(t,e,n(1,s))}:function(t,e,s){return t[e]=s,t}},1887:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},5746:(t,e,s)=>{var i=s(5981);t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},1333:(t,e,s)=>{var i=s(1899),o=s(941),n=i.document,r=o(n)&&o(n.createElement);t.exports=function(t){return r?n.createElement(t):{}}},2861:(t,e,s)=>{var i=s(626);t.exports=i("navigator","userAgent")||""},3385:(t,e,s)=>{var i,o,n=s(1899),r=s(2861),a=n.process,l=n.Deno,u=a&&a.versions||l&&l.version,c=u&&u.v8;c&&(o=(i=c.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&r&&(!(i=r.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=r.match(/Chrome\/(\d+)/))&&(o=+i[1]),t.exports=o},6887:(t,e,s)=>{"use strict";var i=s(1899),o=s(9730),n=s(5329),r=s(7475),a=s(9677).f,l=s(7252),u=s(4058),c=s(6843),p=s(2029),h=s(953),m=function(t){var e=function(s,i,n){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(s);case 2:return new t(s,i)}return new t(s,i,n)}return o(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var s,o,f,d,b,g,w,y,v=t.target,A=t.global,S=t.stat,C=t.proto,x=A?i:S?i[v]:(i[v]||{}).prototype,E=A?u:u[v]||p(u,v,{})[v],M=E.prototype;for(f in e)s=!l(A?f:v+(S?".":"#")+f,t.forced)&&x&&h(x,f),b=E[f],s&&(g=t.noTargetGet?(y=a(x,f))&&y.value:x[f]),d=s&&g?g:e[f],s&&typeof b==typeof d||(w=t.bind&&s?c(d,i):t.wrap&&s?m(d):C&&r(d)?n(d):d,(t.sham||d&&d.sham||b&&b.sham)&&p(w,"sham",!0),p(E,f,w),C&&(h(u,o=v+"Prototype")||p(u,o,{}),p(u[o],f,d),t.real&&M&&!M[f]&&p(M,f,d)))}},5981:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},9730:(t,e,s)=>{var i=s(8285),o=Function.prototype,n=o.apply,r=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?r.bind(n):function(){return r.apply(n,arguments)})},6843:(t,e,s)=>{var i=s(5329),o=s(4883),n=s(8285),r=i(i.bind);t.exports=function(t,e){return o(t),void 0===e?t:n?r(t,e):function(){return t.apply(e,arguments)}}},8285:(t,e,s)=>{var i=s(5981);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8834:(t,e,s)=>{var i=s(8285),o=Function.prototype.call;t.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},5329:(t,e,s)=>{var i=s(8285),o=Function.prototype,n=o.bind,r=o.call,a=i&&n.bind(r,r);t.exports=i?function(t){return t&&a(t)}:function(t){return t&&function(){return r.apply(t,arguments)}}},626:(t,e,s)=>{var i=s(4058),o=s(1899),n=s(7475),r=function(t){return n(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?r(i[t])||r(o[t]):i[t]&&i[t][e]||o[t]&&o[t][e]}},4229:(t,e,s)=>{var i=s(4883);t.exports=function(t,e){var s=t[e];return null==s?void 0:i(s)}},1899:(t,e,s)=>{var i=function(t){return t&&t.Math==Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof s.g&&s.g)||function(){return this}()||Function("return this")()},953:(t,e,s)=>{var i=s(5329),o=s(9678),n=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return n(o(t),e)}},2840:(t,e,s)=>{var i=s(5746),o=s(5981),n=s(1333);t.exports=!i&&!o((function(){return 7!=Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))},7026:(t,e,s)=>{var i=s(1899),o=s(5329),n=s(5981),r=s(2532),a=i.Object,l=o("".split);t.exports=n((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?l(t,""):a(t)}:a},7475:t=>{t.exports=function(t){return"function"==typeof t}},7252:(t,e,s)=>{var i=s(5981),o=s(7475),n=/#|\.prototype\./,r=function(t,e){var s=l[a(t)];return s==c||s!=u&&(o(e)?i(e):!!e)},a=r.normalize=function(t){return String(t).replace(n,".").toLowerCase()},l=r.data={},u=r.NATIVE="N",c=r.POLYFILL="P";t.exports=r},941:(t,e,s)=>{var i=s(7475);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},2529:t=>{t.exports=!0},6664:(t,e,s)=>{var i=s(1899),o=s(626),n=s(7475),r=s(7046),a=s(2302),l=i.Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return n(e)&&r(e.prototype,l(t))}},2497:(t,e,s)=>{var i=s(3385),o=s(5981);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},1942:(t,e,s)=>{var i=s(1899),o=s(5981),n=s(5329),r=s(5803),a=s(4853).trim,l=s(3483),u=n("".charAt),c=i.parseFloat,p=i.Symbol,h=p&&p.iterator,m=1/c(l+"-0")!=-1/0||h&&!o((function(){c(Object(h))}));t.exports=m?function(t){var e=a(r(t)),s=c(e);return 0===s&&"-"==u(e,0)?-0:s}:c},5988:(t,e,s)=>{var i=s(1899),o=s(5746),n=s(2840),r=s(3937),a=s(6059),l=s(3894),u=i.TypeError,c=Object.defineProperty,p=Object.getOwnPropertyDescriptor,h="enumerable",m="configurable",f="writable";e.f=o?r?function(t,e,s){if(a(t),e=l(e),a(s),"function"==typeof t&&"prototype"===e&&"value"in s&&f in s&&!s.writable){var i=p(t,e);i&&i.writable&&(t[e]=s.value,s={configurable:m in s?s.configurable:i.configurable,enumerable:h in s?s.enumerable:i.enumerable,writable:!1})}return c(t,e,s)}:c:function(t,e,s){if(a(t),e=l(e),a(s),n)try{return c(t,e,s)}catch(t){}if("get"in s||"set"in s)throw u("Accessors not supported");return"value"in s&&(t[e]=s.value),t}},9677:(t,e,s)=>{var i=s(5746),o=s(8834),n=s(6760),r=s(1887),a=s(4529),l=s(3894),u=s(953),c=s(2840),p=Object.getOwnPropertyDescriptor;e.f=i?p:function(t,e){if(t=a(t),e=l(e),c)try{return p(t,e)}catch(t){}if(u(t,e))return r(!o(n.f,t,e),t[e])}},7046:(t,e,s)=>{var i=s(5329);t.exports=i({}.isPrototypeOf)},6760:(t,e)=>{"use strict";var s={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!s.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:s},9811:(t,e,s)=>{var i=s(1899),o=s(8834),n=s(7475),r=s(941),a=i.TypeError;t.exports=function(t,e){var s,i;if("string"===e&&n(s=t.toString)&&!r(i=o(s,t)))return i;if(n(s=t.valueOf)&&!r(i=o(s,t)))return i;if("string"!==e&&n(s=t.toString)&&!r(i=o(s,t)))return i;throw a("Can't convert object to primitive value")}},4058:t=>{t.exports={}},8219:(t,e,s)=>{var i=s(1899).TypeError;t.exports=function(t){if(null==t)throw i("Can't call method on "+t);return t}},4911:(t,e,s)=>{var i=s(1899),o=Object.defineProperty;t.exports=function(t,e){try{o(i,t,{value:e,configurable:!0,writable:!0})}catch(s){i[t]=e}return e}},3030:(t,e,s)=>{var i=s(1899),o=s(4911),n="__core-js_shared__",r=i[n]||o(n,{});t.exports=r},8726:(t,e,s)=>{var i=s(2529),o=s(3030);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.0",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE",source:"https://github.com/zloirock/core-js"})},4853:(t,e,s)=>{var i=s(5329),o=s(8219),n=s(5803),r=s(3483),a=i("".replace),l="["+r+"]",u=RegExp("^"+l+l+"*"),c=RegExp(l+l+"*$"),p=function(t){return function(e){var s=n(o(e));return 1&t&&(s=a(s,u,"")),2&t&&(s=a(s,c,"")),s}};t.exports={start:p(1),end:p(2),trim:p(3)}},4529:(t,e,s)=>{var i=s(7026),o=s(8219);t.exports=function(t){return i(o(t))}},9678:(t,e,s)=>{var i=s(1899),o=s(8219),n=i.Object;t.exports=function(t){return n(o(t))}},6935:(t,e,s)=>{var i=s(1899),o=s(8834),n=s(941),r=s(6664),a=s(4229),l=s(9811),u=s(9813),c=i.TypeError,p=u("toPrimitive");t.exports=function(t,e){if(!n(t)||r(t))return t;var s,i=a(t,p);if(i){if(void 0===e&&(e="default"),s=o(i,t,e),!n(s)||r(s))return s;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),l(t,e)}},3894:(t,e,s)=>{var i=s(6935),o=s(6664);t.exports=function(t){var e=i(t,"string");return o(e)?e:e+""}},2885:(t,e,s)=>{var i={};i[s(9813)("toStringTag")]="z",t.exports="[object z]"===String(i)},5803:(t,e,s)=>{var i=s(1899),o=s(9697),n=i.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return n(t)}},9826:(t,e,s)=>{var i=s(1899).String;t.exports=function(t){try{return i(t)}catch(t){return"Object"}}},9418:(t,e,s)=>{var i=s(5329),o=0,n=Math.random(),r=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++o+n,36)}},2302:(t,e,s)=>{var i=s(2497);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3937:(t,e,s)=>{var i=s(5746),o=s(5981);t.exports=i&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},9813:(t,e,s)=>{var i=s(1899),o=s(8726),n=s(953),r=s(9418),a=s(2497),l=s(2302),u=o("wks"),c=i.Symbol,p=c&&c.for,h=l?c:c&&c.withoutSetter||r;t.exports=function(t){if(!n(u,t)||!a&&"string"!=typeof u[t]){var e="Symbol."+t;a&&n(c,t)?u[t]=c[t]:u[t]=l&&p?p(e):h(e)}return u[t]}},3483:t=>{t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},9718:(t,e,s)=>{var i=s(6887),o=s(1942);i({global:!0,forced:parseFloat!=o},{parseFloat:o})},6877:(t,e,s)=>{var i=s(7579);t.exports=i},4904:t=>{"use strict";t.exports=s},3832:t=>{"use strict";t.exports=e},6748:e=>{"use strict";e.exports=t}},o={};function n(t){var e=o[t];if(void 0!==e)return e.exports;var s=o[t]={exports:{}};return i[t](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var s in e)n.o(e,s)&&!n.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";var t;n.r(r),n.d(r,{Account:()=>i,Permissions:()=>o,Platform:()=>e,PlatformName:()=>s,Platforms:()=>a,ProductType:()=>t,Restrictions:()=>l,SessionStore:()=>d,User:()=>p}),function(t){t.FREE="Free",t.DEVELOPER="Developer",t.MARKETING="Marketing",t.ENTERPRISE="Enterprise"}(t||(t={}));var e,s,i=function(t){this.name=t.name,this.registrationDate=t.registrationDate,this.billing={companyName:t.billingAddress.company_name,companyCountry:t.billingAddress.country,companyCountryCode:t.billingAddress.country_code,companyState:t.billingAddress.state,companyStateCode:t.billingAddress.state_code,companyCity:t.billingAddress.city,companyStreet:t.billingAddress.street,companyZip:t.billingAddress.zip,companyPhone:t.billingAddress.phone,companyVAT:t.billingAddress.vat_number,companyNumber:t.billingAddress.company_number,primaryPersonFirstName:t.billingAddress.first_name,primaryPersonLastName:t.billingAddress.last_name,primaryPersonEmail:t.billingAddress.paymentEmail,secondaryPersonFirstName:t.billingAddress.secondary_person_first_name,secondaryPersonLastName:t.billingAddress.secondary_person_last_name,secondaryPersonEmail:t.billingAddress.secondary_person_email,industry:t.billingAddress.industry,department:t.billingAddress.department,additionalEmails:t.billingAddress.additionalEmails},this.productType=t.productType,this.productName=t.restriction,this.isEnterprise=t.isEnterprise,this.expiryDate=t.expireDate,this.isFrozen=t.frozen,this.isDeviceLimitReached=t.isDeviceLimitReached,this.isEnabledBackup=t.allowBackup,this.statistics={currentMonthActiveUsers:t.MAU,lastMonthActiveUsers:t.lastMAU,calendarMonthActiveUsers:t.calendarMAU,currentMonthActiveDevicesCount:t.MAD,lastMonthActiveDevicesCount:t.lastMAD,calendarMonthActiveDevicesCount:t.calendarMAD,totalSubscribers:t.totalSubscribers,pushAvailableSubscribers:t.pushAvailableSubscribers,pushNotAvailableSubscribers:t.pushNotAvailableSubscribers,currentDaySentEmailsCount:t.dailyEmailStat,currentMontSentEmailsCount:t.monthlyEmailStat,calendarMonthSentEmailsCount:t.lastEmailStat,freeEmailsLimit:t.freeEmailLimit,freeEmailsQuota:t.freeEmailQuota,freeEmailsQuotaUpdateDate:t.freeEmailLimitUpdateDate,paidEmailsQuota:t.paidEmailQuota,paidEmailsQuotaExpiryDate:t.paidEmailExpireDate},Object.freeze(this.billing),Object.freeze(this.statistics),Object.freeze(this)},o=function(t){this.hasSuperRights=t.ACESuperRight,this.canManageSubscription=t.ACEManageSubscription,this.canManageAccessTokens=t.ACESeeAPIAccess,this.canManageDomainsAndEmails=t.ACEDomainAndEmailVerification,this.canManageSubUsers=t.ACEManageUsers,this.canSeeApplications=t.ACESeeApplications,this.canModifyApplications=t.ACEModifyApplications,this.canSeeApplicationGroups=t.ACESeeAppGroups,this.canModifyApplicationGroups=t.ACEModifyAppGroups,this.canSeeMessages=t.ACESeeMessages,this.canModifyMessages=t.ACEModifyMessages&&this.canSeeMessages,this.canSendMessages=t.ACESendMessages&&this.canSeeMessages,this.canSeeTags=t.ACESeeTags,this.canModifyTags=t.ACEModifyTags,this.canSeeSegments=t.ACESeeFilters&&this.canSeeTags,this.canModifySegments=t.ACEModifyFilters&&this.canSeeTags,this.canSeeRichMedia=t.ACESeeRichMedia&&this.canSeeTags&&this.canSeeSegments,this.canModifyRichMedia=t.ACEModifyRichMedia&&this.canSeeTags&&this.canSeeSegments,this.canSeeInApps=this.canSeeTags&&this.canSeeSegments&&this.canSeeRichMedia,this.canSeeEmailTemplates=t.ACESeeEmailTemplates&&this.canSeeTags,this.canModifyEmailTemplates=t.ACEModifyEmailTemplates&&this.canSeeTags,Object.freeze(this)};!function(t){t[t.IOS=1]="IOS",t[t.BLACKBERRY=2]="BLACKBERRY",t[t.ANDROID=3]="ANDROID",t[t.WINDOWS_PHONE=5]="WINDOWS_PHONE",t[t.MAC_OS=7]="MAC_OS",t[t.WINDOWS=8]="WINDOWS",t[t.AMAZON=9]="AMAZON",t[t.SAFARI=10]="SAFARI",t[t.CHROME=11]="CHROME",t[t.FIREFOX=12]="FIREFOX",t[t.IE=13]="IE",t[t.EMAIL=14]="EMAIL",t[t.BAIDU=16]="BAIDU",t[t.HUAWEI=17]="HUAWEI"}(e||(e={})),function(t){t.IOS="iOS",t.BLACKBERRY="Blackberry",t.ANDROID="Android",t.WINDOWS_PHONE="Windows Phone",t.MAC_OS="Mac OS",t.WINDOWS="Windows",t.AMAZON="Amazon",t.SAFARI="Safari",t.CHROME="Chrome",t.FIREFOX="Firefox",t.IE="Internet Explorer",t.EMAIL="Email",t.BAIDU="Baidu",t.HUAWEI="Huawei"}(s||(s={}));var a=function(){function t(e){var s=this;this.checkIsAvailablePlatform=function(t){return s.available.includes(t)},this.available=t.filterAllowPlatforms(e.allowPlatforms),Object.freeze(this)}return t.filterAllowPlatforms=function(t){var s=Object.values(e);return t.filter((function(t){return s.includes(t)}))},t.getPlatformName=function(t){var i=Object.keys(s).find((function(s){return e[s]===t}));return i?s[i]:"Unknown platform!"},t}(),l=function(t){this.allowUseSubUsers=t.allowSubUsers,this.maxUsersCount=t.maxUsers,this.maxDevicesCount=t.maxDevices,this.maxApplicationsCount=t.maxApplications,this.totalApplicationsCount=t.applicationsCount,this.allowUseApplicationGroups=t.allowAppGroups,this.maxApplicationGroupsCount=t.maxAppGroups,this.totalApplicationGroupsCount=t.appGroupsCount,this.allowUseCampaigns=t.allowCampaigns,this.maxCampaignsCount=t.maxCampaigns,this.totalCampaignsCount=t.campaignsCount,this.allowUseTags=t.allowTags,this.allowUseUserSpecificTags=t.allowUseUserSpecificTags,this.maxTagsCount=t.maxTags,this.totalTagsCount=t.tagsCount,this.allowUseFilters=t.allowFilters,this.allowUseFiltersCompiling=t.allowFilterCompiling,this.allowUseFiltersWithTagNotSet=t.allowTagNotSetFilter,this.maxFiltersCount=t.maxFilters,this.totalFiltersCount=t.filtersCount,this.maxFastFiltersCount=t.maxPreparedFilters,this.allowUseEvents=t.allowEvents,this.maxEventsCount=t.maxEvents,this.totalEventsCount=t.eventsCount,this.allowUseRichMedia=t.allowRichMedia,this.maxRichMediaCount=t.maxRichMedia,this.totalRichMediaCount=t.richMediaCount,this.allowUseInApps=t.allowInApps,this.maxInAppsCount=t.maxInApps,this.totalInAppsCount=t.inAppsCount,this.maxDomainsCount=t.maxAccountDomains,this.totalDomainsCount=t.accountDomainsCount,this.maxMailsCount=t.maxEmailMails,this.totalMailsCount=t.accountMailsCount,this.maxEmailTemplatesCount=t.maxEmailTemplates,this.totalEmailTemplatesCount=t.emailTemplatesCount,this.allowUsePresets=t.allowPresets,this.maxPresetsCount=t.maxPresets,this.totalPresetsCount=t.presetsCount,this.allowUseAutoPushes=t.allowAutoPushes,this.maxAutoPushesCount=t.maxAutoPushes,this.totalAutoPushesCount=t.autoPushesCount,this.allowUseAutoEmails=t.allowAutoEmails,this.maxAutoEmailsCount=t.maxAutoEmails,this.totalAutoEmailsCount=t.autoEmailsCount,this.allowUseGeozones=t.allowGeozones,this.allowUseSendToGeozones=t.allowSendToGeoZone,this.maxGeozonesCount=t.maxGeoZones,this.totalGeozonesCount=t.geoZonesCount,this.maxGeozoneRange=t.maxGeozoneRange,this.minGeozoneRange=t.minGeozoneRange,this.allowUseDeepLinks=t.allowDeeplinks,this.maxDeepLinksCount=t.maxDeeplinks,this.totalDeepLinksCount=t.deeplinksCount,this.allowUseBeacons=t.allowBeacons,this.maxBeaconsCount=t.maxBeacons,this.totalBeaconsCount=t.beaconsCount,this.allowUseTwitterFeeds=t.allowTwitterFeeds,this.maxTwitterFeedsCount=t.maxTwitterFeeds,this.totalTwitterFeedsCount=t.twitterFeedsCount,this.allowUseRssFeeds=t.allowRSSFeeds,this.allowUseRssFeedsCustomPollingInterval=t.allowCustomRssPollingInterval,this.maxRssFeedsCount=t.maxRssFeeds,this.totalRssFeedsCount=t.rssFeedsCount,this.allowUseTestDevices=t.allowTestDevices,this.maxTestDevicesCount=t.maxTestDevices,this.totalTestDevicesCount=t.testDevicesCount,this.allowUseTriggeredMessages=t.allowPushOnEvent,this.maxTriggeredMessagesCount=t.maxTriggeredMessagePresets,this.totalTriggeredMessagesCount=t.triggeredMessagesCount,this.maxTriggeredMessagesDelayInDays=t.maxPushOnEventDelayInDays,this.allowUseAccessTokens=t.allowAPI,this.allowUseDataKeys=t.allowCustomData,this.allowUseStatistics=t.allowStatsAccess,this.allowUseScheduling=t.allowScheduling,this.allowUseIOSAutoConfig=t.allowAutoConfig,this.allowUseTwoFactorAuth=t.allowTwoFactorAuth,this.allowUseSendMessageByCsv=t.allowCSVMessage,this.allowUseAbTests=t.allowAbTests,this.allowUseHtmlPages=t.allowHtmlPages,this.allowUseRemotePage=t.allowUseRemotePage,this.allowUseIOSCategories=t.allowIOSCategories,this.allowUseGoalTracking=t.allowGoalTracking,this.allowUseDynamicContent=t.allowDynamicContent,this.allowUseDebugMode=t.allowDebugMode,this.allowUseUninstallTracking=t.allowTrackingUninstall,this.allowUseFrequencyCapping=t.allowFrequencyCapping,this.allowUseInbox=t.allowInbox,this.maxInboxTtlDays=t.maxInboxTtlDays,this.allowUseChannels=t.allowChannels,this.allowUseSendExternalAndroidStatistics=t.allowSendExternalStats,this.allowUseGDPR=t.allowGDPR,this.sendRateMin=t.sendRateMin,this.sendRateMax=t.sendRateMax,this.messageHistoryStoriedPeriodInDays=t.messageHistoryStorePeriod,Object.freeze(this)},u=n(1238),c=n.n(u),p=function(t,e){this.name=e.username,this.email=e.email,this.isActive=e.isActive,this.isOwner=t.admin,this.isUnderSU=t.isUnderSu,this.timezone=e.timezone,this.timezoneOffset=60*c()(e.timezoneOffset),this.accountCount=e.accountsCount,this.isSubscribedForNewsletters=e.allowNewsletters,this.isSubscribedForDailyStatsGlobal=e.allowDailyStatsGlobal,this.isSubscribedForNotificationSubscribersLimitReached=e.allowNotificationSubscribers,this.isSubscribedForNotificationExpiredIOSCertificate=e.allowNotificationIosLicense,this.isSubscribedForNotificationUserInactivity=e.allowNotificationUserInactivity,this.isSubscribedForNotificationDisablePlatform=e.allowNotificationDisablePlatform,Object.freeze(this)},h=n(6748),m=n(3832),f=n(4904),d=function(t){var e=this;this.updateSubject=function(t,s){e.subject.next({account:new i(t),permissions:new o(t),platforms:new a(t),restrictions:new l(t),user:new p(t,s)})},this.load=function(){return(0,h.__awaiter)(e,void 0,void 0,(function(){return(0,h.__generator)(this,(function(t){return[2,this.httpClient.post("/cp/_rpc/",{body:{calls:[{name:"account.get"},{name:"user.get"}]},withAuthorization:!0,responseMiddleware:function(t){var e=(0,f.defaultResponseMiddleware)(t).responses,s=e[0],i=e[1];return[(0,f.defaultResponseMiddleware)({result:s.result,status:s.error||200,message:s.message,details:t.details}),(0,f.defaultResponseMiddleware)({result:i.result,status:i.error||200,message:i.message,details:t.details})]}})]}))}))},this.update=function(){return(0,h.__awaiter)(e,void 0,void 0,(function(){var t,e,s;return(0,h.__generator)(this,(function(i){switch(i.label){case 0:return[4,this.load()];case 1:return t=i.sent(),e=t[0],s=t[1],this.updateSubject(e,s),[2]}}))}))},this.subscribe=function(t){return e.subject.subscribe(t)},this.httpClient=t,this.subject=new m.ReplaySubject(1)}})(),r})()}));
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://@pushwoosh/session-store/webpack/universalModuleDefinition","webpack://@pushwoosh/session-store/webpack/bootstrap","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/global.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/function-uncurry-this.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/fails.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/is-callable.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/descriptors.js","webpack://@pushwoosh/session-store/external \"tslib\"","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/function-bind-native.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/is-object.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/function-call.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/require-object-coercible.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/path.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/well-known-symbol.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/has-own-property.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/create-property-descriptor.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/classof-raw.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/to-property-key.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/is-symbol.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/get-built-in.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/use-symbol-as-uid.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/native-symbol.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/a-callable.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/ie8-dom-define.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/to-string.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/whitespaces.js","webpack://@pushwoosh/session-store/./node_modules/@babel/runtime-corejs3/core-js-stable/parse-float.js","webpack://@pushwoosh/session-store/external \"rxjs\"","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/stable/parse-float.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/es/parse-float.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/modules/es.parse-float.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/export.js","webpack://@pushwoosh/session-store/(webpack)/buildin/global.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/function-apply.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/object-get-own-property-descriptor.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/object-property-is-enumerable.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/to-indexed-object.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/indexed-object.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/to-primitive.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/object-is-prototype-of.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/engine-v8-version.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/engine-user-agent.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/get-method.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/try-to-string.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/ordinary-to-primitive.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/shared.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/is-pure.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/shared-store.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/set-global.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/to-object.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/uid.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/document-create-element.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/is-forced.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/function-bind-context.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/create-non-enumerable-property.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/object-define-property.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/v8-prototype-define-bug.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/an-object.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/number-parse-float.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/classof.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/to-string-tag-support.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/string-trim.js","webpack://@pushwoosh/session-store/./src/entities/account.ts","webpack://@pushwoosh/session-store/./src/entities/platforms.ts","webpack://@pushwoosh/session-store/./src/entities/permissions.ts","webpack://@pushwoosh/session-store/./src/entities/restrictions.ts","webpack://@pushwoosh/session-store/./src/entities/user.ts","webpack://@pushwoosh/session-store/./src/session-store.ts"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE__5__","__WEBPACK_EXTERNAL_MODULE__25__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","it","Math","check","globalThis","window","self","global","Function","NATIVE_BIND","FunctionPrototype","uncurryThis","fn","apply","arguments","exec","error","argument","fails","test","isCallable","TypeError","undefined","shared","hasOwn","uid","NATIVE_SYMBOL","USE_SYMBOL_AS_UID","WellKnownSymbolsStore","symbolFor","createWellKnownSymbol","withoutSetter","description","toObject","bitmap","configurable","writable","toString","stringSlice","slice","toPrimitive","isSymbol","getBuiltIn","isPrototypeOf","$Symbol","path","aFunction","variable","namespace","method","length","sham","iterator","V8_VERSION","getOwnPropertySymbols","symbol","String","tryToString","DESCRIPTORS","createElement","a","classof","parent","parseFloat","$","$parseFloat","forced","getOwnPropertyDescriptor","f","isForced","createNonEnumerableProperty","wrapConstructor","NativeConstructor","Wrapper","b","options","source","USE_NATIVE","VIRTUAL_PROTOTYPE","sourceProperty","targetProperty","nativeProperty","resultProperty","descriptor","TARGET","target","GLOBAL","STATIC","stat","PROTO","proto","nativeSource","targetPrototype","noTargetGet","wrap","real","g","e","Reflect","propertyIsEnumerableModule","createPropertyDescriptor","toIndexedObject","toPropertyKey","IE8_DOM_DEFINE","$getOwnPropertyDescriptor","O","P","$propertyIsEnumerable","propertyIsEnumerable","NASHORN_BUG","V","IndexedObject","requireObjectCoercible","split","isObject","getMethod","ordinaryToPrimitive","wellKnownSymbol","TO_PRIMITIVE","input","pref","result","exoticToPrim","match","version","userAgent","process","Deno","versions","v8","aCallable","func","val","valueOf","IS_PURE","store","push","copyright","license","setGlobal","SHARED","id","postfix","random","document","EXISTS","replacement","feature","detection","data","normalize","POLYFILL","NATIVE","string","replace","toLowerCase","that","definePropertyModule","V8_PROTOTYPE_DEFINE_BUG","anObject","$defineProperty","ENUMERABLE","CONFIGURABLE","WRITABLE","Attributes","current","trim","whitespaces","charAt","n$ParseFloat","ITERATOR","FORCED","Infinity","trimmedString","TO_STRING_TAG_SUPPORT","classofRaw","TO_STRING_TAG","CORRECT_ARGUMENTS","tag","tryGet","callee","whitespace","ltrim","RegExp","rtrim","createMethod","TYPE","$this","start","end","ProductType","Platform","PlatformName","Account","accountData","registrationDate","billing","companyName","billingAddress","company_name","companyCountry","country","companyCountryCode","country_code","companyState","state","companyStateCode","state_code","companyCity","city","companyStreet","street","companyZip","zip","companyPhone","phone","companyVAT","vat_number","companyNumber","company_number","primaryPersonFirstName","first_name","primaryPersonLastName","last_name","primaryPersonEmail","paymentEmail","secondaryPersonFirstName","secondary_person_first_name","secondaryPersonLastName","secondary_person_last_name","secondaryPersonEmail","secondary_person_email","industry","department","additionalEmails","productType","productName","restriction","isEnterprise","expiryDate","expireDate","isFrozen","frozen","isDeviceLimitReached","isEnabledBackup","allowBackup","statistics","currentMonthActiveUsers","MAU","lastMonthActiveUsers","lastMAU","calendarMonthActiveUsers","calendarMAU","currentMonthActiveDevicesCount","MAD","lastMonthActiveDevicesCount","lastMAD","calendarMonthActiveDevicesCount","calendarMAD","totalSubscribers","pushAvailableSubscribers","pushNotAvailableSubscribers","currentDaySentEmailsCount","dailyEmailStat","currentMontSentEmailsCount","monthlyEmailStat","calendarMonthSentEmailsCount","lastEmailStat","freeEmailsLimit","freeEmailLimit","freeEmailsQuota","freeEmailQuota","freeEmailsQuotaUpdateDate","freeEmailLimitUpdateDate","paidEmailsQuota","paidEmailQuota","paidEmailsQuotaExpiryDate","paidEmailExpireDate","freeze","Permissions","account","hasSuperRights","ACESuperRight","canManageSubscription","ACEManageSubscription","canManageAccessTokens","ACESeeAPIAccess","canManageDomainsAndEmails","ACEDomainAndEmailVerification","canManageSubUsers","ACEManageUsers","canSeeApplications","ACESeeApplications","canModifyApplications","ACEModifyApplications","canSeeApplicationGroups","ACESeeAppGroups","canModifyApplicationGroups","ACEModifyAppGroups","canSeeMessages","ACESeeMessages","canModifyMessages","ACEModifyMessages","canSendMessages","ACESendMessages","canSeeTags","ACESeeTags","canModifyTags","ACEModifyTags","canSeeSegments","ACESeeFilters","canModifySegments","ACEModifyFilters","canSeeRichMedia","ACESeeRichMedia","canModifyRichMedia","ACEModifyRichMedia","canSeeInApps","canSeeEmailTemplates","ACESeeEmailTemplates","canModifyEmailTemplates","ACEModifyEmailTemplates","Platforms","_this","checkIsAvailablePlatform","platform","available","includes","filterAllowPlatforms","allowPlatforms","platforms","platformTypes","values","filter","getPlatformName","foundedPlatform","keys","find","Restrictions","allowUseSubUsers","allowSubUsers","maxUsersCount","maxUsers","maxDevicesCount","maxDevices","maxApplicationsCount","maxApplications","totalApplicationsCount","applicationsCount","allowUseApplicationGroups","allowAppGroups","maxApplicationGroupsCount","maxAppGroups","totalApplicationGroupsCount","appGroupsCount","allowUseCampaigns","allowCampaigns","maxCampaignsCount","maxCampaigns","totalCampaignsCount","campaignsCount","allowUseTags","allowTags","allowUseUserSpecificTags","maxTagsCount","maxTags","totalTagsCount","tagsCount","allowUseFilters","allowFilters","allowUseFiltersCompiling","allowFilterCompiling","allowUseFiltersWithTagNotSet","allowTagNotSetFilter","maxFiltersCount","maxFilters","totalFiltersCount","filtersCount","maxFastFiltersCount","maxPreparedFilters","allowUseEvents","allowEvents","maxEventsCount","maxEvents","totalEventsCount","eventsCount","allowUseRichMedia","allowRichMedia","maxRichMediaCount","maxRichMedia","totalRichMediaCount","richMediaCount","allowUseInApps","allowInApps","maxInAppsCount","maxInApps","totalInAppsCount","inAppsCount","maxDomainsCount","maxAccountDomains","totalDomainsCount","accountDomainsCount","maxMailsCount","maxEmailMails","totalMailsCount","accountMailsCount","maxEmailTemplatesCount","maxEmailTemplates","totalEmailTemplatesCount","emailTemplatesCount","allowUsePresets","allowPresets","maxPresetsCount","maxPresets","totalPresetsCount","presetsCount","allowUseAutoPushes","allowAutoPushes","maxAutoPushesCount","maxAutoPushes","totalAutoPushesCount","autoPushesCount","allowUseAutoEmails","allowAutoEmails","maxAutoEmailsCount","maxAutoEmails","totalAutoEmailsCount","autoEmailsCount","allowUseGeozones","allowGeozones","allowUseSendToGeozones","allowSendToGeoZone","maxGeozonesCount","maxGeoZones","totalGeozonesCount","geoZonesCount","maxGeozoneRange","minGeozoneRange","allowUseDeepLinks","allowDeeplinks","maxDeepLinksCount","maxDeeplinks","totalDeepLinksCount","deeplinksCount","allowUseBeacons","allowBeacons","maxBeaconsCount","maxBeacons","totalBeaconsCount","beaconsCount","allowUseTwitterFeeds","allowTwitterFeeds","maxTwitterFeedsCount","maxTwitterFeeds","totalTwitterFeedsCount","twitterFeedsCount","allowUseRssFeeds","allowRSSFeeds","allowUseRssFeedsCustomPollingInterval","allowCustomRssPollingInterval","maxRssFeedsCount","maxRssFeeds","totalRssFeedsCount","rssFeedsCount","allowUseTestDevices","allowTestDevices","maxTestDevicesCount","maxTestDevices","totalTestDevicesCount","testDevicesCount","allowUseTriggeredMessages","allowPushOnEvent","maxTriggeredMessagesCount","maxTriggeredMessagePresets","totalTriggeredMessagesCount","triggeredMessagesCount","maxTriggeredMessagesDelayInDays","maxPushOnEventDelayInDays","allowUseAccessTokens","allowAPI","allowUseDataKeys","allowCustomData","allowUseStatistics","allowStatsAccess","allowUseScheduling","allowScheduling","allowUseIOSAutoConfig","allowAutoConfig","allowUseTwoFactorAuth","allowTwoFactorAuth","allowUseSendMessageByCsv","allowCSVMessage","allowUseAbTests","allowAbTests","allowUseHtmlPages","allowHtmlPages","allowUseRemotePage","allowUseIOSCategories","allowIOSCategories","allowUseGoalTracking","allowGoalTracking","allowUseDynamicContent","allowDynamicContent","allowUseDebugMode","allowDebugMode","allowUseUninstallTracking","allowTrackingUninstall","allowUseFrequencyCapping","allowFrequencyCapping","allowUseInbox","allowInbox","maxInboxTtlDays","allowUseChannels","allowChannels","allowUseSendExternalAndroidStatistics","allowSendExternalStats","allowUseGDPR","allowGDPR","sendRateMin","sendRateMax","messageHistoryStoriedPeriodInDays","messageHistoryStorePeriod","User","userData","username","email","isActive","isOwner","admin","isUnderSU","isUnderSu","timezone","timezoneOffset","accountCount","accountsCount","isSubscribedForNewsletters","allowNewsletters","isSubscribedForDailyStatsGlobal","allowDailyStatsGlobal","isSubscribedForNotificationSubscribersLimitReached","allowNotificationSubscribers","isSubscribedForNotificationExpiredIOSCertificate","allowNotificationIosLicense","isSubscribedForNotificationUserInactivity","allowNotificationUserInactivity","isSubscribedForNotificationDisablePlatform","allowNotificationDisablePlatform","SessionStore","httpClient","updateSubject","subject","next","permissions","restrictions","user","load","__awaiter","__generator","_a","post","body","calls","withAuthorization","withCredentials","responseMiddleware","response","basicResponseMiddleware","responses","accountResponse","userResponse","update","_b","label","sent","subscribe","callback","ReplaySubject"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,SAAUA,QAAQ,SAC1B,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAAC,QAAS,QAASJ,GACA,iBAAZC,QACdA,QAAQ,4BAA8BD,EAAQG,QAAQ,SAAUA,QAAQ,SAExEJ,EAAK,4BAA8BC,EAAQD,EAAY,MAAGA,EAAW,MARvE,CASGO,MAAM,SAASC,EAAgCC,GAClD,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,E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AAayU,GACzB,CAAC,WAUxBhjB,KAAKmmB,UAAY,SAAUC,GAAY,OAAQ5P,EAAMmO,QAAQwB,UAAUC,IACvEpmB,KAAKykB,WAAaA,EAClBzkB,KAAK2kB,QAAU,IAAI0B,gBAAc","file":"index.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"tslib\"), require(\"rxjs\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"tslib\", \"rxjs\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"@pushwoosh/session-store\"] = factory(require(\"tslib\"), require(\"rxjs\"));\n\telse\n\t\troot[\"@pushwoosh/session-store\"] = factory(root[\"tslib\"], root[\"rxjs\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE__5__, __WEBPACK_EXTERNAL_MODULE__25__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 60);\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar bind = FunctionPrototype.bind;\nvar call = FunctionPrototype.call;\nvar uncurryThis = NATIVE_BIND && bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? function (fn) {\n return fn && uncurryThis(fn);\n} : function (fn) {\n return fn && function () {\n return call.apply(fn, arguments);\n };\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = function (argument) {\n return typeof argument == 'function';\n};\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","module.exports = __WEBPACK_EXTERNAL_MODULE__5__;","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var isCallable = require('../internals/is-callable');\n\nmodule.exports = function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var global = require('../internals/global');\n\nvar TypeError = global.TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","module.exports = {};\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar symbolFor = Symbol && Symbol['for'];\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {\n var description = 'Symbol.' + name;\n if (NATIVE_SYMBOL && hasOwn(Symbol, name)) {\n WellKnownSymbolsStore[name] = Symbol[name];\n } else if (USE_SYMBOL_AS_UID && symbolFor) {\n WellKnownSymbolsStore[name] = symbolFor(description);\n } else {\n WellKnownSymbolsStore[name] = createWellKnownSymbol(description);\n }\n } return WellKnownSymbolsStore[name];\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Object = global.Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, Object(it));\n};\n","var path = require('../internals/path');\nvar global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (variable) {\n return isCallable(variable) ? variable : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])\n : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];\n};\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar TypeError = global.TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw TypeError(tryToString(argument) + ' is not a function');\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var global = require('../internals/global');\nvar classof = require('../internals/classof');\n\nvar String = global.String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return String(argument);\n};\n","// a string of all valid unicode whitespaces\nmodule.exports = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002' +\n '\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","module.exports = require(\"core-js-pure/stable/parse-float\");","module.exports = __WEBPACK_EXTERNAL_MODULE__25__;","var parent = require('../es/parse-float');\n\nmodule.exports = parent;\n","require('../modules/es.parse-float');\nvar path = require('../internals/path');\n\nmodule.exports = path.parseFloat;\n","var $ = require('../internals/export');\nvar $parseFloat = require('../internals/number-parse-float');\n\n// `parseFloat` method\n// https://tc39.es/ecma262/#sec-parsefloat-string\n$({ global: true, forced: parseFloat != $parseFloat }, {\n parseFloat: $parseFloat\n});\n","'use strict';\nvar global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar isForced = require('../internals/is-forced');\nvar path = require('../internals/path');\nvar bind = require('../internals/function-bind-context');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\n\nvar wrapConstructor = function (NativeConstructor) {\n var Wrapper = function (a, b, c) {\n if (this instanceof Wrapper) {\n switch (arguments.length) {\n case 0: return new NativeConstructor();\n case 1: return new NativeConstructor(a);\n case 2: return new NativeConstructor(a, b);\n } return new NativeConstructor(a, b, c);\n } return apply(NativeConstructor, this, arguments);\n };\n Wrapper.prototype = NativeConstructor.prototype;\n return Wrapper;\n};\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.noTargetGet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var PROTO = options.proto;\n\n var nativeSource = GLOBAL ? global : STATIC ? global[TARGET] : (global[TARGET] || {}).prototype;\n\n var target = GLOBAL ? path : path[TARGET] || createNonEnumerableProperty(path, TARGET, {})[TARGET];\n var targetPrototype = target.prototype;\n\n var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;\n var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;\n\n for (key in source) {\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contains in native\n USE_NATIVE = !FORCED && nativeSource && hasOwn(nativeSource, key);\n\n targetProperty = target[key];\n\n if (USE_NATIVE) if (options.noTargetGet) {\n descriptor = getOwnPropertyDescriptor(nativeSource, key);\n nativeProperty = descriptor && descriptor.value;\n } else nativeProperty = nativeSource[key];\n\n // export native or implementation\n sourceProperty = (USE_NATIVE && nativeProperty) ? nativeProperty : source[key];\n\n if (USE_NATIVE && typeof targetProperty == typeof sourceProperty) continue;\n\n // bind timers to global for call from export context\n if (options.bind && USE_NATIVE) resultProperty = bind(sourceProperty, global);\n // wrap global constructors for prevent changs in this version\n else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);\n // make static versions for prototype methods\n else if (PROTO && isCallable(sourceProperty)) resultProperty = uncurryThis(sourceProperty);\n // default case\n else resultProperty = sourceProperty;\n\n // add a flag to not completely full polyfills\n if (options.sham || (sourceProperty && sourceProperty.sham) || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(resultProperty, 'sham', true);\n }\n\n createNonEnumerableProperty(target, key, resultProperty);\n\n if (PROTO) {\n VIRTUAL_PROTOTYPE = TARGET + 'Prototype';\n if (!hasOwn(path, VIRTUAL_PROTOTYPE)) {\n createNonEnumerableProperty(path, VIRTUAL_PROTOTYPE, {});\n }\n // export virtual prototype methods\n createNonEnumerableProperty(path[VIRTUAL_PROTOTYPE], key, sourceProperty);\n // export real prototype methods\n if (options.real && targetPrototype && !targetPrototype[key]) {\n createNonEnumerableProperty(targetPrototype, key, sourceProperty);\n }\n }\n }\n};\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar Object = global.Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : Object(it);\n} : Object;\n","var global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TypeError = global.TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n","var aCallable = require('../internals/a-callable');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return func == null ? undefined : aCallable(func);\n};\n","var global = require('../internals/global');\n\nvar String = global.String;\n\nmodule.exports = function (argument) {\n try {\n return String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar TypeError = global.TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.20.3',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.20.3/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","module.exports = true;\n","var global = require('../internals/global');\nvar setGlobal = require('../internals/set-global');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || setGlobal(SHARED, {});\n\nmodule.exports = store;\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var global = require('../internals/global');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar Object = global.Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return Object(requireObjectCoercible(argument));\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var global = require('../internals/global');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar TypeError = global.TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar String = global.String;\nvar TypeError = global.TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw TypeError(String(argument) + ' is not an object');\n};\n","var global = require('../internals/global');\nvar fails = require('../internals/fails');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar trim = require('../internals/string-trim').trim;\nvar whitespaces = require('../internals/whitespaces');\n\nvar charAt = uncurryThis(''.charAt);\nvar n$ParseFloat = global.parseFloat;\nvar Symbol = global.Symbol;\nvar ITERATOR = Symbol && Symbol.iterator;\nvar FORCED = 1 / n$ParseFloat(whitespaces + '-0') !== -Infinity\n // MS Edge 18- broken with boxed symbols\n || (ITERATOR && !fails(function () { n$ParseFloat(Object(ITERATOR)); }));\n\n// `parseFloat` method\n// https://tc39.es/ecma262/#sec-parsefloat-string\nmodule.exports = FORCED ? function parseFloat(string) {\n var trimmedString = trim(toString(string));\n var result = n$ParseFloat(trimmedString);\n return result === 0 && charAt(trimmedString, 0) == '-' ? -0 : result;\n} : n$ParseFloat;\n","var global = require('../internals/global');\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar Object = global.Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar whitespaces = require('../internals/whitespaces');\n\nvar replace = uncurryThis(''.replace);\nvar whitespace = '[' + whitespaces + ']';\nvar ltrim = RegExp('^' + whitespace + whitespace + '*');\nvar rtrim = RegExp(whitespace + whitespace + '*$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod = function (TYPE) {\n return function ($this) {\n var string = toString(requireObjectCoercible($this));\n if (TYPE & 1) string = replace(string, ltrim, '');\n if (TYPE & 2) string = replace(string, rtrim, '');\n return string;\n };\n};\n\nmodule.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.es/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n","export var ProductType;\n(function (ProductType) {\n ProductType[\"FREE\"] = \"Free\";\n ProductType[\"DEVELOPER\"] = \"Developer\";\n ProductType[\"MARKETING\"] = \"Marketing\";\n ProductType[\"ENTERPRISE\"] = \"Enterprise\";\n})(ProductType || (ProductType = {}));\n/**\n * Информация об аккаунте.\n */\nvar Account = /** @class */ (function () {\n function Account(accountData) {\n this.name = accountData.name;\n this.registrationDate = accountData.registrationDate;\n this.billing = {\n companyName: accountData.billingAddress.company_name,\n companyCountry: accountData.billingAddress.country,\n companyCountryCode: accountData.billingAddress.country_code,\n companyState: accountData.billingAddress.state,\n companyStateCode: accountData.billingAddress.state_code,\n companyCity: accountData.billingAddress.city,\n companyStreet: accountData.billingAddress.street,\n companyZip: accountData.billingAddress.zip,\n companyPhone: accountData.billingAddress.phone,\n companyVAT: accountData.billingAddress.vat_number,\n companyNumber: accountData.billingAddress.company_number,\n primaryPersonFirstName: accountData.billingAddress.first_name,\n primaryPersonLastName: accountData.billingAddress.last_name,\n primaryPersonEmail: accountData.billingAddress.paymentEmail,\n secondaryPersonFirstName: accountData.billingAddress.secondary_person_first_name,\n secondaryPersonLastName: accountData.billingAddress.secondary_person_last_name,\n secondaryPersonEmail: accountData.billingAddress.secondary_person_email,\n industry: accountData.billingAddress.industry,\n department: accountData.billingAddress.department,\n additionalEmails: accountData.billingAddress.additionalEmails,\n };\n this.productType = accountData.productType;\n this.productName = accountData.restriction;\n this.isEnterprise = accountData.isEnterprise;\n this.expiryDate = accountData.expireDate;\n this.isFrozen = accountData.frozen;\n this.isDeviceLimitReached = accountData.isDeviceLimitReached;\n this.isEnabledBackup = accountData.allowBackup;\n this.statistics = {\n currentMonthActiveUsers: accountData.MAU,\n lastMonthActiveUsers: accountData.lastMAU,\n calendarMonthActiveUsers: accountData.calendarMAU,\n currentMonthActiveDevicesCount: accountData.MAD,\n lastMonthActiveDevicesCount: accountData.lastMAD,\n calendarMonthActiveDevicesCount: accountData.calendarMAD,\n totalSubscribers: accountData.totalSubscribers,\n pushAvailableSubscribers: accountData.pushAvailableSubscribers,\n pushNotAvailableSubscribers: accountData.pushNotAvailableSubscribers,\n currentDaySentEmailsCount: accountData.dailyEmailStat,\n currentMontSentEmailsCount: accountData.monthlyEmailStat,\n calendarMonthSentEmailsCount: accountData.lastEmailStat,\n freeEmailsLimit: accountData.freeEmailLimit,\n freeEmailsQuota: accountData.freeEmailQuota,\n freeEmailsQuotaUpdateDate: accountData.freeEmailLimitUpdateDate,\n paidEmailsQuota: accountData.paidEmailQuota,\n paidEmailsQuotaExpiryDate: accountData.paidEmailExpireDate,\n };\n Object.freeze(this.billing);\n Object.freeze(this.statistics);\n Object.freeze(this);\n }\n return Account;\n}());\nexport { Account };\n","/**\n * Идентификатор платформы.\n */\nexport var Platform;\n(function (Platform) {\n Platform[Platform[\"IOS\"] = 1] = \"IOS\";\n Platform[Platform[\"BLACKBERRY\"] = 2] = \"BLACKBERRY\";\n Platform[Platform[\"ANDROID\"] = 3] = \"ANDROID\";\n // ASHA = 4, // RIP\n Platform[Platform[\"WINDOWS_PHONE\"] = 5] = \"WINDOWS_PHONE\";\n // BADA = 6, // RIP\n Platform[Platform[\"MAC_OS\"] = 7] = \"MAC_OS\";\n Platform[Platform[\"WINDOWS\"] = 8] = \"WINDOWS\";\n Platform[Platform[\"AMAZON\"] = 9] = \"AMAZON\";\n Platform[Platform[\"SAFARI\"] = 10] = \"SAFARI\";\n Platform[Platform[\"CHROME\"] = 11] = \"CHROME\";\n Platform[Platform[\"FIREFOX\"] = 12] = \"FIREFOX\";\n Platform[Platform[\"IE\"] = 13] = \"IE\";\n Platform[Platform[\"EMAIL\"] = 14] = \"EMAIL\";\n // FACEBOOK_MESSENGER = 15, // RIP\n Platform[Platform[\"BAIDU\"] = 16] = \"BAIDU\";\n Platform[Platform[\"HUAWEI\"] = 17] = \"HUAWEI\";\n})(Platform || (Platform = {}));\n/**\n * Название платформы.\n */\nexport var PlatformName;\n(function (PlatformName) {\n PlatformName[\"IOS\"] = \"iOS\";\n PlatformName[\"BLACKBERRY\"] = \"Blackberry\";\n PlatformName[\"ANDROID\"] = \"Android\";\n // ASHA = 'Asha', // RIP\n PlatformName[\"WINDOWS_PHONE\"] = \"Windows Phone\";\n // BADA = 'Bada', // RIP\n PlatformName[\"MAC_OS\"] = \"Mac OS\";\n PlatformName[\"WINDOWS\"] = \"Windows\";\n PlatformName[\"AMAZON\"] = \"Amazon\";\n PlatformName[\"SAFARI\"] = \"Safari\";\n PlatformName[\"CHROME\"] = \"Chrome\";\n PlatformName[\"FIREFOX\"] = \"Firefox\";\n PlatformName[\"IE\"] = \"Internet Explorer\";\n PlatformName[\"EMAIL\"] = \"Email\";\n // FACEBOOK_MESSENGER = 'Facebook Messenger', // RIP\n PlatformName[\"BAIDU\"] = \"Baidu\";\n PlatformName[\"HUAWEI\"] = \"Huawei\";\n})(PlatformName || (PlatformName = {}));\n/**\n * Вспомогательный класс для работы с платформами.\n */\nvar Platforms = /** @class */ (function () {\n function Platforms(accountData) {\n var _this = this;\n /**\n * Проверить, доступна ли платформа для использования.\n *\n * @param { Platform } platform - идентификатор платформы.\n * @return { boolean } - доступна ли платформа для использования.\n */\n this.checkIsAvailablePlatform = function (platform) { return (_this.available.includes(platform)); };\n this.available = Platforms.filterAllowPlatforms(accountData.allowPlatforms);\n Object.freeze(this);\n }\n /**\n * Отсеять неизвестные значения.\n *\n * @param { Array<number> } platforms - массив доступных платформ.\n * @return { Array<Platform> } platforms - безопасный массив доступных платформ.\n */\n Platforms.filterAllowPlatforms = function (platforms) {\n var platformTypes = Object.values(Platform);\n return platforms.filter(function (platform) { return (platformTypes.includes(platform)); });\n };\n /**\n * Получить название платформы по ее идентификатору.\n *\n * @param { Platform } platform - идентификатор платформы.\n * @return { string } идентификатор платформы.\n */\n Platforms.getPlatformName = function (platform) {\n var platformKeys = Object.keys(PlatformName);\n var foundedPlatform = platformKeys.find(function (key) { return Platform[key] === platform; });\n if (!foundedPlatform) {\n return 'Unknown platform!';\n }\n return PlatformName[foundedPlatform];\n };\n return Platforms;\n}());\nexport { Platforms };\n","/**\n * Разрешения на использование функционала со стороны владельца аккаунта.\n */\nvar Permissions = /** @class */ (function () {\n function Permissions(account) {\n this.hasSuperRights = account.ACESuperRight;\n this.canManageSubscription = account.ACEManageSubscription;\n this.canManageAccessTokens = account.ACESeeAPIAccess;\n this.canManageDomainsAndEmails = account.ACEDomainAndEmailVerification;\n this.canManageSubUsers = account.ACEManageUsers;\n this.canSeeApplications = account.ACESeeApplications;\n this.canModifyApplications = account.ACEModifyApplications;\n this.canSeeApplicationGroups = account.ACESeeAppGroups;\n this.canModifyApplicationGroups = account.ACEModifyAppGroups;\n this.canSeeMessages = account.ACESeeMessages;\n this.canModifyMessages = account.ACEModifyMessages && this.canSeeMessages;\n this.canSendMessages = account.ACESendMessages && this.canSeeMessages;\n this.canSeeTags = account.ACESeeTags;\n this.canModifyTags = account.ACEModifyTags;\n this.canSeeSegments = account.ACESeeFilters && this.canSeeTags;\n this.canModifySegments = account.ACEModifyFilters && this.canSeeTags;\n this.canSeeRichMedia = account.ACESeeRichMedia && this.canSeeTags && this.canSeeSegments;\n this.canModifyRichMedia = account.ACEModifyRichMedia && this.canSeeTags && this.canSeeSegments;\n this.canSeeInApps = this.canSeeTags && this.canSeeSegments && this.canSeeRichMedia;\n this.canSeeEmailTemplates = account.ACESeeEmailTemplates && this.canSeeTags;\n this.canModifyEmailTemplates = account.ACEModifyEmailTemplates && this.canSeeTags;\n Object.freeze(this);\n }\n return Permissions;\n}());\nexport { Permissions };\n","/**\n * Ограничения на использование функционала со стороны PW.\n */\nvar Restrictions = /** @class */ (function () {\n function Restrictions(accountData) {\n this.allowUseSubUsers = accountData.allowSubUsers;\n this.maxUsersCount = accountData.maxUsers;\n this.maxDevicesCount = accountData.maxDevices;\n this.maxApplicationsCount = accountData.maxApplications;\n this.totalApplicationsCount = accountData.applicationsCount;\n this.allowUseApplicationGroups = accountData.allowAppGroups;\n this.maxApplicationGroupsCount = accountData.maxAppGroups;\n this.totalApplicationGroupsCount = accountData.appGroupsCount;\n this.allowUseCampaigns = accountData.allowCampaigns;\n this.maxCampaignsCount = accountData.maxCampaigns;\n this.totalCampaignsCount = accountData.campaignsCount;\n this.allowUseTags = accountData.allowTags;\n this.allowUseUserSpecificTags = accountData.allowUseUserSpecificTags;\n this.maxTagsCount = accountData.maxTags;\n this.totalTagsCount = accountData.tagsCount;\n this.allowUseFilters = accountData.allowFilters;\n this.allowUseFiltersCompiling = accountData.allowFilterCompiling;\n this.allowUseFiltersWithTagNotSet = accountData.allowTagNotSetFilter;\n this.maxFiltersCount = accountData.maxFilters;\n this.totalFiltersCount = accountData.filtersCount;\n this.maxFastFiltersCount = accountData.maxPreparedFilters;\n this.allowUseEvents = accountData.allowEvents;\n this.maxEventsCount = accountData.maxEvents;\n this.totalEventsCount = accountData.eventsCount;\n this.allowUseRichMedia = accountData.allowRichMedia;\n this.maxRichMediaCount = accountData.maxRichMedia;\n this.totalRichMediaCount = accountData.richMediaCount;\n this.allowUseInApps = accountData.allowInApps;\n this.maxInAppsCount = accountData.maxInApps;\n this.totalInAppsCount = accountData.inAppsCount;\n this.maxDomainsCount = accountData.maxAccountDomains;\n this.totalDomainsCount = accountData.accountDomainsCount;\n this.maxMailsCount = accountData.maxEmailMails;\n this.totalMailsCount = accountData.accountMailsCount;\n this.maxEmailTemplatesCount = accountData.maxEmailTemplates;\n this.totalEmailTemplatesCount = accountData.emailTemplatesCount;\n this.allowUsePresets = accountData.allowPresets;\n this.maxPresetsCount = accountData.maxPresets;\n this.totalPresetsCount = accountData.presetsCount;\n this.allowUseAutoPushes = accountData.allowAutoPushes;\n this.maxAutoPushesCount = accountData.maxAutoPushes;\n this.totalAutoPushesCount = accountData.autoPushesCount;\n this.allowUseAutoEmails = accountData.allowAutoEmails;\n this.maxAutoEmailsCount = accountData.maxAutoEmails;\n this.totalAutoEmailsCount = accountData.autoEmailsCount;\n this.allowUseGeozones = accountData.allowGeozones;\n this.allowUseSendToGeozones = accountData.allowSendToGeoZone;\n this.maxGeozonesCount = accountData.maxGeoZones;\n this.totalGeozonesCount = accountData.geoZonesCount;\n this.maxGeozoneRange = accountData.maxGeozoneRange;\n this.minGeozoneRange = accountData.minGeozoneRange;\n this.allowUseDeepLinks = accountData.allowDeeplinks;\n this.maxDeepLinksCount = accountData.maxDeeplinks;\n this.totalDeepLinksCount = accountData.deeplinksCount;\n this.allowUseBeacons = accountData.allowBeacons;\n this.maxBeaconsCount = accountData.maxBeacons;\n this.totalBeaconsCount = accountData.beaconsCount;\n this.allowUseTwitterFeeds = accountData.allowTwitterFeeds;\n this.maxTwitterFeedsCount = accountData.maxTwitterFeeds;\n this.totalTwitterFeedsCount = accountData.twitterFeedsCount;\n this.allowUseRssFeeds = accountData.allowRSSFeeds;\n this.allowUseRssFeedsCustomPollingInterval = accountData.allowCustomRssPollingInterval;\n this.maxRssFeedsCount = accountData.maxRssFeeds;\n this.totalRssFeedsCount = accountData.rssFeedsCount;\n this.allowUseTestDevices = accountData.allowTestDevices;\n this.maxTestDevicesCount = accountData.maxTestDevices;\n this.totalTestDevicesCount = accountData.testDevicesCount;\n this.allowUseTriggeredMessages = accountData.allowPushOnEvent;\n this.maxTriggeredMessagesCount = accountData.maxTriggeredMessagePresets;\n this.totalTriggeredMessagesCount = accountData.triggeredMessagesCount;\n this.maxTriggeredMessagesDelayInDays = accountData.maxPushOnEventDelayInDays;\n this.allowUseAccessTokens = accountData.allowAPI;\n this.allowUseDataKeys = accountData.allowCustomData;\n this.allowUseStatistics = accountData.allowStatsAccess;\n this.allowUseScheduling = accountData.allowScheduling;\n this.allowUseIOSAutoConfig = accountData.allowAutoConfig;\n this.allowUseTwoFactorAuth = accountData.allowTwoFactorAuth;\n this.allowUseSendMessageByCsv = accountData.allowCSVMessage;\n this.allowUseAbTests = accountData.allowAbTests;\n this.allowUseHtmlPages = accountData.allowHtmlPages;\n this.allowUseRemotePage = accountData.allowUseRemotePage;\n this.allowUseIOSCategories = accountData.allowIOSCategories;\n this.allowUseGoalTracking = accountData.allowGoalTracking;\n this.allowUseDynamicContent = accountData.allowDynamicContent;\n this.allowUseDebugMode = accountData.allowDebugMode;\n this.allowUseUninstallTracking = accountData.allowTrackingUninstall;\n this.allowUseFrequencyCapping = accountData.allowFrequencyCapping;\n this.allowUseInbox = accountData.allowInbox;\n this.maxInboxTtlDays = accountData.maxInboxTtlDays;\n this.allowUseChannels = accountData.allowChannels;\n this.allowUseSendExternalAndroidStatistics = accountData.allowSendExternalStats;\n this.allowUseGDPR = accountData.allowGDPR;\n this.sendRateMin = accountData.sendRateMin;\n this.sendRateMax = accountData.sendRateMax;\n this.messageHistoryStoriedPeriodInDays = accountData.messageHistoryStorePeriod;\n Object.freeze(this);\n }\n return Restrictions;\n}());\nexport { Restrictions };\n","/**\n * Информация о пользователе.\n */\nvar User = /** @class */ (function () {\n function User(accountData, userData) {\n this.name = userData.username;\n this.email = userData.email;\n this.isActive = userData.isActive;\n this.isOwner = accountData.admin;\n this.isUnderSU = accountData.isUnderSu;\n this.timezone = userData.timezone;\n this.timezoneOffset = parseFloat(userData.timezoneOffset) * 60;\n this.accountCount = userData.accountsCount;\n this.isSubscribedForNewsletters = userData.allowNewsletters;\n this.isSubscribedForDailyStatsGlobal = userData.allowDailyStatsGlobal;\n this.isSubscribedForNotificationSubscribersLimitReached = userData.allowNotificationSubscribers;\n this.isSubscribedForNotificationExpiredIOSCertificate = userData.allowNotificationIosLicense;\n this.isSubscribedForNotificationUserInactivity = userData.allowNotificationUserInactivity;\n this.isSubscribedForNotificationDisablePlatform = userData.allowNotificationDisablePlatform;\n Object.freeze(this);\n }\n return User;\n}());\nexport { User };\n","import { __awaiter, __generator } from \"tslib\";\nimport { ReplaySubject } from 'rxjs';\nimport { Account } from './entities/account';\nimport { Permissions } from './entities/permissions';\nimport { Platforms } from './entities/platforms';\nimport { Restrictions } from './entities/restrictions';\nimport { User } from './entities/user';\n/**\n * Хранилище сеанса.\n */\nvar SessionStore = /** @class */ (function () {\n /**\n * Создать экземпляр класса SessionStore.\n *\n * @param { HttpClient } httpClient - клиент для работы с http запросами.\n */\n function SessionStore(httpClient) {\n var _this = this;\n /**\n * Обновить \"Наблюдаемый объект\" текущего сеанса.\n */\n this.updateSubject = function (accountData, userData) {\n _this.subject.next({\n account: new Account(accountData),\n permissions: new Permissions(accountData),\n platforms: new Platforms(accountData),\n restrictions: new Restrictions(accountData),\n user: new User(accountData, userData),\n });\n };\n /**\n * Загрузить данные об аккаунте и пользователе.\n *\n * @return { [*, *, *] } - данные об аккаунте и пользователе.\n */\n this.load = function () { return __awaiter(_this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n return [2 /*return*/, (this.httpClient.post('/cp/_rpc/', {\n body: {\n calls: [{ name: 'account.get' }, { name: 'user.get' }],\n },\n withAuthorization: true,\n withCredentials: false,\n responseMiddleware: function (response) {\n var _a = _this.httpClient.basicResponseMiddleware(response).responses, accountResponse = _a[0], userResponse = _a[1];\n return [accountResponse.result, userResponse.result];\n },\n }))];\n });\n }); };\n /**\n * Обновить сеанс.\n */\n this.update = function () { return __awaiter(_this, void 0, void 0, function () {\n var _a, accountData, userData;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, this.load()];\n case 1:\n _a = _b.sent(), accountData = _a[0], userData = _a[1];\n this.updateSubject(accountData, userData);\n return [2 /*return*/];\n }\n });\n }); };\n /**\n * Подписаться на изменение сеанса.\n *\n * @param { Function } callback - колбэк, который будет вызван при изменении сеанса.\n * @return { Subscription } - подписка на изменение сеанса.\n */\n this.subscribe = function (callback) { return (_this.subject.subscribe(callback)); };\n this.httpClient = httpClient;\n this.subject = new ReplaySubject(1);\n }\n return SessionStore;\n}());\nexport { SessionStore };\n"],"sourceRoot":""}
1
+ {"version":3,"file":"index.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,SAAUA,QAAQ,QAASA,QAAQ,2BAC3C,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAAC,QAAS,OAAQ,0BAA2BJ,GAC1B,iBAAZC,QACdA,QAAQ,4BAA8BD,EAAQG,QAAQ,SAAUA,QAAQ,QAASA,QAAQ,2BAEzFJ,EAAK,4BAA8BC,EAAQD,EAAY,MAAGA,EAAW,KAAGA,EAAK,2BAR/E,CASGO,MAAM,SAASC,EAAmCC,EAAmCC,GACxF,M,4BCVAP,EAAOD,QAAU,EAAjB,O,eCAA,EAAQ,MACR,IAAIS,EAAO,EAAQ,MAEnBR,EAAOD,QAAUS,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aC,EAAAA,EAAAA,2BAAuC,CACzDvjB,OAAQwjB,EAAgBxjB,OACxB0jB,OAAQF,EAAgBrjB,OAAS,IACjCwjB,QAASH,EAAgBG,QACzBC,QAASP,EAASO,WAGHL,EAAAA,EAAAA,2BAAoC,CACnDvjB,OAAQyjB,EAAazjB,OACrB0jB,OAAQD,EAAatjB,OAAS,IAC9BwjB,QAASF,EAAaE,QACtBC,QAASP,EAASO,sBAWnB,KAAAC,OAAS,6D,2EACkB,SAAMlhB,KAAKogB,Q,cAArCe,EAA0BC,EAAAA,OAAzBxX,EAAW,KAAEqU,EAAQ,KAC5Bje,KAAK0f,cAAc9V,EAAaqU,G,YAQ3B,KAAAoD,UAAY,SAACC,GAAsD,OACxEzP,EAAK8N,QAAQ0B,UAAUC,IAhEvBthB,KAAKyf,WAAaA,EAElBzf,KAAK2f,QAAU,IAAI4B,EAAAA,cAAuB,K","sources":["webpack://@pushwoosh/session-store/webpack/universalModuleDefinition","webpack://@pushwoosh/session-store/./node_modules/@babel/runtime-corejs3/core-js-stable/parse-float.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/es/parse-float.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/a-callable.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/an-object.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/classof-raw.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/classof.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/create-non-enumerable-property.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/create-property-descriptor.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/descriptors.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/document-create-element.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/engine-user-agent.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/engine-v8-version.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/export.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/fails.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/function-apply.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/function-bind-context.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/function-bind-native.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/function-call.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/function-uncurry-this.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/get-built-in.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/get-method.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/global.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/has-own-property.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/ie8-dom-define.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/indexed-object.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/is-callable.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/is-forced.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/is-object.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/is-pure.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/is-symbol.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/native-symbol.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/number-parse-float.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/object-define-property.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/object-get-own-property-descriptor.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/object-is-prototype-of.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/object-property-is-enumerable.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/ordinary-to-primitive.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/path.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/require-object-coercible.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/set-global.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/shared-store.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/shared.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/string-trim.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/to-indexed-object.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/to-object.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/to-primitive.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/to-property-key.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/to-string-tag-support.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/to-string.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/try-to-string.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/uid.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/use-symbol-as-uid.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/v8-prototype-define-bug.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/well-known-symbol.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/internals/whitespaces.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/modules/es.parse-float.js","webpack://@pushwoosh/session-store/./node_modules/core-js-pure/stable/parse-float.js","webpack://@pushwoosh/session-store/external umd \"@pushwoosh/http-client\"","webpack://@pushwoosh/session-store/external umd \"rxjs\"","webpack://@pushwoosh/session-store/external umd \"tslib\"","webpack://@pushwoosh/session-store/webpack/bootstrap","webpack://@pushwoosh/session-store/webpack/runtime/compat get default export","webpack://@pushwoosh/session-store/webpack/runtime/define property getters","webpack://@pushwoosh/session-store/webpack/runtime/global","webpack://@pushwoosh/session-store/webpack/runtime/hasOwnProperty shorthand","webpack://@pushwoosh/session-store/webpack/runtime/make namespace object","webpack://@pushwoosh/session-store/./src/entities/account.ts","webpack://@pushwoosh/session-store/./src/entities/platforms.ts","webpack://@pushwoosh/session-store/./src/entities/permissions.ts","webpack://@pushwoosh/session-store/./src/entities/restrictions.ts","webpack://@pushwoosh/session-store/./src/entities/user.ts","webpack://@pushwoosh/session-store/./src/session-store.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"tslib\"), require(\"rxjs\"), require(\"@pushwoosh/http-client\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"tslib\", \"rxjs\", \"@pushwoosh/http-client\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"@pushwoosh/session-store\"] = factory(require(\"tslib\"), require(\"rxjs\"), require(\"@pushwoosh/http-client\"));\n\telse\n\t\troot[\"@pushwoosh/session-store\"] = factory(root[\"tslib\"], root[\"rxjs\"], root[\"@pushwoosh/http-client\"]);\n})(self, function(__WEBPACK_EXTERNAL_MODULE__6748__, __WEBPACK_EXTERNAL_MODULE__3832__, __WEBPACK_EXTERNAL_MODULE__4904__) {\nreturn ","module.exports = require(\"core-js-pure/stable/parse-float\");","require('../modules/es.parse-float');\nvar path = require('../internals/path');\n\nmodule.exports = path.parseFloat;\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar TypeError = global.TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw TypeError(tryToString(argument) + ' is not a function');\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar String = global.String;\nvar TypeError = global.TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw TypeError(String(argument) + ' is not an object');\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var global = require('../internals/global');\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar Object = global.Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","'use strict';\nvar global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar isForced = require('../internals/is-forced');\nvar path = require('../internals/path');\nvar bind = require('../internals/function-bind-context');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\n\nvar wrapConstructor = function (NativeConstructor) {\n var Wrapper = function (a, b, c) {\n if (this instanceof Wrapper) {\n switch (arguments.length) {\n case 0: return new NativeConstructor();\n case 1: return new NativeConstructor(a);\n case 2: return new NativeConstructor(a, b);\n } return new NativeConstructor(a, b, c);\n } return apply(NativeConstructor, this, arguments);\n };\n Wrapper.prototype = NativeConstructor.prototype;\n return Wrapper;\n};\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.noTargetGet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var PROTO = options.proto;\n\n var nativeSource = GLOBAL ? global : STATIC ? global[TARGET] : (global[TARGET] || {}).prototype;\n\n var target = GLOBAL ? path : path[TARGET] || createNonEnumerableProperty(path, TARGET, {})[TARGET];\n var targetPrototype = target.prototype;\n\n var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;\n var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;\n\n for (key in source) {\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contains in native\n USE_NATIVE = !FORCED && nativeSource && hasOwn(nativeSource, key);\n\n targetProperty = target[key];\n\n if (USE_NATIVE) if (options.noTargetGet) {\n descriptor = getOwnPropertyDescriptor(nativeSource, key);\n nativeProperty = descriptor && descriptor.value;\n } else nativeProperty = nativeSource[key];\n\n // export native or implementation\n sourceProperty = (USE_NATIVE && nativeProperty) ? nativeProperty : source[key];\n\n if (USE_NATIVE && typeof targetProperty == typeof sourceProperty) continue;\n\n // bind timers to global for call from export context\n if (options.bind && USE_NATIVE) resultProperty = bind(sourceProperty, global);\n // wrap global constructors for prevent changs in this version\n else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);\n // make static versions for prototype methods\n else if (PROTO && isCallable(sourceProperty)) resultProperty = uncurryThis(sourceProperty);\n // default case\n else resultProperty = sourceProperty;\n\n // add a flag to not completely full polyfills\n if (options.sham || (sourceProperty && sourceProperty.sham) || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(resultProperty, 'sham', true);\n }\n\n createNonEnumerableProperty(target, key, resultProperty);\n\n if (PROTO) {\n VIRTUAL_PROTOTYPE = TARGET + 'Prototype';\n if (!hasOwn(path, VIRTUAL_PROTOTYPE)) {\n createNonEnumerableProperty(path, VIRTUAL_PROTOTYPE, {});\n }\n // export virtual prototype methods\n createNonEnumerableProperty(path[VIRTUAL_PROTOTYPE], key, sourceProperty);\n // export real prototype methods\n if (options.real && targetPrototype && !targetPrototype[key]) {\n createNonEnumerableProperty(targetPrototype, key, sourceProperty);\n }\n }\n }\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar bind = FunctionPrototype.bind;\nvar call = FunctionPrototype.call;\nvar uncurryThis = NATIVE_BIND && bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? function (fn) {\n return fn && uncurryThis(fn);\n} : function (fn) {\n return fn && function () {\n return call.apply(fn, arguments);\n };\n};\n","var path = require('../internals/path');\nvar global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (variable) {\n return isCallable(variable) ? variable : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])\n : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];\n};\n","var aCallable = require('../internals/a-callable');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return func == null ? undefined : aCallable(func);\n};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar Object = global.Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : Object(it);\n} : Object;\n","// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = function (argument) {\n return typeof argument == 'function';\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var isCallable = require('../internals/is-callable');\n\nmodule.exports = function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","module.exports = true;\n","var global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Object = global.Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, Object(it));\n};\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","var global = require('../internals/global');\nvar fails = require('../internals/fails');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar trim = require('../internals/string-trim').trim;\nvar whitespaces = require('../internals/whitespaces');\n\nvar charAt = uncurryThis(''.charAt);\nvar n$ParseFloat = global.parseFloat;\nvar Symbol = global.Symbol;\nvar ITERATOR = Symbol && Symbol.iterator;\nvar FORCED = 1 / n$ParseFloat(whitespaces + '-0') !== -Infinity\n // MS Edge 18- broken with boxed symbols\n || (ITERATOR && !fails(function () { n$ParseFloat(Object(ITERATOR)); }));\n\n// `parseFloat` method\n// https://tc39.es/ecma262/#sec-parsefloat-string\nmodule.exports = FORCED ? function parseFloat(string) {\n var trimmedString = trim(toString(string));\n var result = n$ParseFloat(trimmedString);\n return result === 0 && charAt(trimmedString, 0) == '-' ? -0 : result;\n} : n$ParseFloat;\n","var global = require('../internals/global');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar TypeError = global.TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","var global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar TypeError = global.TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","module.exports = {};\n","var global = require('../internals/global');\n\nvar TypeError = global.TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var global = require('../internals/global');\nvar setGlobal = require('../internals/set-global');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || setGlobal(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.21.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar whitespaces = require('../internals/whitespaces');\n\nvar replace = uncurryThis(''.replace);\nvar whitespace = '[' + whitespaces + ']';\nvar ltrim = RegExp('^' + whitespace + whitespace + '*');\nvar rtrim = RegExp(whitespace + whitespace + '*$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod = function (TYPE) {\n return function ($this) {\n var string = toString(requireObjectCoercible($this));\n if (TYPE & 1) string = replace(string, ltrim, '');\n if (TYPE & 2) string = replace(string, rtrim, '');\n return string;\n };\n};\n\nmodule.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.es/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var global = require('../internals/global');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar Object = global.Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return Object(requireObjectCoercible(argument));\n};\n","var global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TypeError = global.TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var global = require('../internals/global');\nvar classof = require('../internals/classof');\n\nvar String = global.String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return String(argument);\n};\n","var global = require('../internals/global');\n\nvar String = global.String;\n\nmodule.exports = function (argument) {\n try {\n return String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar symbolFor = Symbol && Symbol['for'];\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {\n var description = 'Symbol.' + name;\n if (NATIVE_SYMBOL && hasOwn(Symbol, name)) {\n WellKnownSymbolsStore[name] = Symbol[name];\n } else if (USE_SYMBOL_AS_UID && symbolFor) {\n WellKnownSymbolsStore[name] = symbolFor(description);\n } else {\n WellKnownSymbolsStore[name] = createWellKnownSymbol(description);\n }\n } return WellKnownSymbolsStore[name];\n};\n","// a string of all valid unicode whitespaces\nmodule.exports = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002' +\n '\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","var $ = require('../internals/export');\nvar $parseFloat = require('../internals/number-parse-float');\n\n// `parseFloat` method\n// https://tc39.es/ecma262/#sec-parsefloat-string\n$({ global: true, forced: parseFloat != $parseFloat }, {\n parseFloat: $parseFloat\n});\n","var parent = require('../es/parse-float');\n\nmodule.exports = parent;\n","module.exports = __WEBPACK_EXTERNAL_MODULE__4904__;","module.exports = __WEBPACK_EXTERNAL_MODULE__3832__;","module.exports = __WEBPACK_EXTERNAL_MODULE__6748__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { AccountData } from '../rpc.types';\n\nexport enum ProductType {\n FREE = 'Free',\n DEVELOPER = 'Developer',\n MARKETING = 'Marketing',\n ENTERPRISE = 'Enterprise',\n}\n\n/**\n * Информация об аккаунте.\n */\nexport class Account {\n /**\n * Название аккаунта.\n * (account.name)\n */\n public readonly name: string;\n\n /**\n * Дата регистрации аккаунта.\n * (account.registrationDate)\n */\n public readonly registrationDate: string;\n\n /**\n * Данные для выставления счетов.\n */\n public readonly billing: {\n /**\n * Название компании.\n * (account.billingAddress.company_name)\n */\n readonly companyName: string | undefined;\n\n /**\n * Страна.\n * (account.billingAddress.country)\n */\n readonly companyCountry: string | undefined;\n\n /**\n * Код страны.\n * (account.billingAddress.country_code)\n */\n readonly companyCountryCode: string | undefined;\n\n /**\n * Штат (только для USA).\n * (account.billingAddress.state)\n */\n readonly companyState: string | undefined;\n\n /**\n * Код штата (только для USA).\n * (account.billingAddress.state_code)\n */\n readonly companyStateCode: string | undefined;\n\n /**\n * Город.\n * (account.billingAddress.city)\n */\n readonly companyCity: string | undefined;\n\n /**\n * Улица.\n * (account.billingAddress.street)\n */\n readonly companyStreet: string | undefined;\n\n /**\n * Почтовый индекс.\n * (account.billingAddress.zip)\n */\n readonly companyZip: string | undefined;\n\n /**\n * Телефонный номер.\n * (account.billingAddress.phone)\n */\n readonly companyPhone: string | undefined;\n\n /**\n * ИНН предприятия.\n * (account.billingAddress.vat_number)\n */\n readonly companyVAT: string | undefined;\n\n /**\n * Используется как номер закупки.\n * (account.billingAddress.company_number)\n */\n readonly companyNumber: string | undefined;\n\n /**\n * Имя контакта для связи.\n * (account.billingAddress.first_name)\n */\n readonly primaryPersonFirstName: string | undefined;\n\n /**\n * Фамилия контакта для связи.\n * (account.billingAddress.last_name)\n */\n readonly primaryPersonLastName: string | undefined;\n\n /**\n * Эл. почта контакта для связи.\n * (account.billingAddress.paymentEmail)\n */\n readonly primaryPersonEmail: string | undefined;\n\n /**\n * Имя дополнительного контакта для связи.\n * (account.billingAddress.secondary_person_first_name)\n */\n readonly secondaryPersonFirstName: string | undefined;\n\n /**\n * Фамилия дополнительного контакта для связи.\n * (account.billingAddress.secondary_person_last_name)\n */\n readonly secondaryPersonLastName: string | undefined;\n\n /**\n * Эл. почта дополнительного контакта для связи.\n * (account.billingAddress.secondary_person_email)\n */\n readonly secondaryPersonEmail: string | undefined;\n\n /**\n * Сфера промышленности.\n * (account.billingAddress.industry)\n */\n readonly industry: string | undefined;\n\n /**\n * Департамент.\n * (account.billingAddress.department)\n */\n readonly department: string | undefined;\n\n /**\n * Дополнительные эл. адреса для связи.\n * (account.billingAddress.additionalEmails)\n */\n readonly additionalEmails: string | undefined;\n };\n\n /**\n * Какой тип подписки куплен.\n * (account.productType)\n */\n public readonly productType: ProductType;\n\n /**\n * Название плана подписки. Просто строка, чтобы отобразить в настройках.\n * (account.restriction)\n */\n public readonly productName: string;\n\n /**\n * Является ли аккаунт энтерпрайзом.\n * (account.isEnterprise)\n */\n public readonly isEnterprise: boolean;\n\n /**\n * Дата окончания подписки.\n * (account.expireDate)\n */\n public readonly expiryDate: string;\n\n /**\n * Заморожен ли аккаунт.\n * (account.frozen)\n */\n public readonly isFrozen: boolean;\n\n /**\n * Превышено ли количество доступных девайсов.\n * (account.isDeviceLimitReached)\n */\n public readonly isDeviceLimitReached: boolean;\n\n /**\n * Включено ли создание резервных копий.\n * (account.allowBackup)\n */\n public readonly isEnabledBackup: boolean;\n\n /**\n * Статистика по аккаунту.\n */\n public readonly statistics: {\n /**\n * Количество активных пользователей с начала текущего месяца.\n * (account.MAU)\n */\n readonly currentMonthActiveUsers: number;\n\n /**\n * Количество активных пользователей за предыдущий месяц.\n * (account.lastMAU)\n */\n readonly lastMonthActiveUsers: number;\n\n /**\n * Количество активных пользователей за 30/31 календарный день.\n * (account.calendarMAU)\n */\n readonly calendarMonthActiveUsers: number;\n\n /**\n * Количество активных девайсов с начала текущего месяца.\n * (account.MAD)\n */\n readonly currentMonthActiveDevicesCount: number;\n\n /**\n * Количество активных девайсов за предыдущий месяц.\n * (account.lastMAD)\n */\n readonly lastMonthActiveDevicesCount: number;\n\n /**\n * Количество активных девайсов за 30/31 календарный день.\n * (account.calendarMAD)\n */\n readonly calendarMonthActiveDevicesCount: number;\n\n /**\n * Количество подписчиков.\n * (account.totalSubscribers)\n */\n readonly totalSubscribers: number;\n\n /**\n * Количество устройств, которым есть возможность показывать пуш-уведомления.\n * (account.pushAvailableSubscribers)\n */\n readonly pushAvailableSubscribers: number;\n\n /**\n * Количество устройств, которым нельзя показывать пуш-уведомления.\n * (account.pushNotAvailableSubscribers)\n */\n readonly pushNotAvailableSubscribers: number;\n\n /**\n * Количество отправленных писем за сегодняшний день.\n * (account.dailyEmailStat)\n */\n readonly currentDaySentEmailsCount: number | undefined;\n\n /**\n * Количество отправленных писем с начала текущего месяца.\n * (account.monthlyEmailStat)\n */\n readonly currentMontSentEmailsCount: number | undefined;\n\n /**\n * Количество отправленных писем за 30/31 день.\n * (account.lastEmailStat)\n */\n readonly calendarMonthSentEmailsCount: number | undefined;\n\n /**\n * Предоставленный лимит бесплатных писем.\n * (account.freeEmailLimit)\n */\n readonly freeEmailsLimit: number | undefined;\n\n /**\n * Оставшееся количество бесплатных писем.\n * (account.freeEmailQuota)\n */\n readonly freeEmailsQuota: number | undefined;\n\n /**\n * Дата обновления квоты бесплатных писем.\n * (account.freeEmailLimitUpdateDate)\n */\n readonly freeEmailsQuotaUpdateDate: string | undefined;\n\n /**\n * Оставшееся количество купленных писем.\n * (account.paidEmailQuota)\n */\n readonly paidEmailsQuota: number | undefined;\n\n /**\n * Дата окончания действия квоты купленных писем.\n * (account.paidEmailExpireDate)\n */\n readonly paidEmailsQuotaExpiryDate: string | undefined;\n };\n\n constructor(accountData: AccountData) {\n this.name = accountData.name;\n this.registrationDate = accountData.registrationDate;\n\n this.billing = {\n companyName: accountData.billingAddress.company_name,\n companyCountry: accountData.billingAddress.country,\n companyCountryCode: accountData.billingAddress.country_code,\n companyState: accountData.billingAddress.state,\n companyStateCode: accountData.billingAddress.state_code,\n companyCity: accountData.billingAddress.city,\n companyStreet: accountData.billingAddress.street,\n companyZip: accountData.billingAddress.zip,\n companyPhone: accountData.billingAddress.phone,\n companyVAT: accountData.billingAddress.vat_number,\n companyNumber: accountData.billingAddress.company_number,\n primaryPersonFirstName: accountData.billingAddress.first_name,\n primaryPersonLastName: accountData.billingAddress.last_name,\n primaryPersonEmail: accountData.billingAddress.paymentEmail,\n secondaryPersonFirstName: accountData.billingAddress.secondary_person_first_name,\n secondaryPersonLastName: accountData.billingAddress.secondary_person_last_name,\n secondaryPersonEmail: accountData.billingAddress.secondary_person_email,\n industry: accountData.billingAddress.industry,\n department: accountData.billingAddress.department,\n additionalEmails: accountData.billingAddress.additionalEmails,\n };\n\n this.productType = accountData.productType as ProductType;\n this.productName = accountData.restriction;\n this.isEnterprise = accountData.isEnterprise;\n this.expiryDate = accountData.expireDate;\n\n this.isFrozen = accountData.frozen;\n this.isDeviceLimitReached = accountData.isDeviceLimitReached;\n this.isEnabledBackup = accountData.allowBackup;\n\n this.statistics = {\n currentMonthActiveUsers: accountData.MAU,\n lastMonthActiveUsers: accountData.lastMAU,\n calendarMonthActiveUsers: accountData.calendarMAU,\n currentMonthActiveDevicesCount: accountData.MAD,\n lastMonthActiveDevicesCount: accountData.lastMAD,\n calendarMonthActiveDevicesCount: accountData.calendarMAD,\n totalSubscribers: accountData.totalSubscribers,\n pushAvailableSubscribers: accountData.pushAvailableSubscribers,\n pushNotAvailableSubscribers: accountData.pushNotAvailableSubscribers,\n currentDaySentEmailsCount: accountData.dailyEmailStat,\n currentMontSentEmailsCount: accountData.monthlyEmailStat,\n calendarMonthSentEmailsCount: accountData.lastEmailStat,\n freeEmailsLimit: accountData.freeEmailLimit,\n freeEmailsQuota: accountData.freeEmailQuota,\n freeEmailsQuotaUpdateDate: accountData.freeEmailLimitUpdateDate,\n paidEmailsQuota: accountData.paidEmailQuota,\n paidEmailsQuotaExpiryDate: accountData.paidEmailExpireDate,\n };\n\n Object.freeze(this.billing);\n Object.freeze(this.statistics);\n Object.freeze(this);\n }\n}\n","import { AccountData } from '../rpc.types';\n\n/**\n * Идентификатор платформы.\n */\nexport enum Platform {\n IOS = 1,\n BLACKBERRY = 2,\n ANDROID = 3,\n // ASHA = 4, // RIP\n WINDOWS_PHONE = 5,\n // BADA = 6, // RIP\n MAC_OS = 7,\n WINDOWS = 8,\n AMAZON = 9,\n SAFARI = 10,\n CHROME = 11,\n FIREFOX = 12,\n IE = 13,\n EMAIL = 14,\n // FACEBOOK_MESSENGER = 15, // RIP\n BAIDU = 16,\n HUAWEI = 17,\n}\n\n/**\n * Название платформы.\n */\nexport enum PlatformName {\n IOS = 'iOS',\n BLACKBERRY = 'Blackberry',\n ANDROID = 'Android',\n // ASHA = 'Asha', // RIP\n WINDOWS_PHONE = 'Windows Phone',\n // BADA = 'Bada', // RIP\n MAC_OS = 'Mac OS',\n WINDOWS = 'Windows',\n AMAZON = 'Amazon',\n SAFARI = 'Safari',\n CHROME = 'Chrome',\n FIREFOX = 'Firefox',\n IE = 'Internet Explorer',\n EMAIL = 'Email',\n // FACEBOOK_MESSENGER = 'Facebook Messenger', // RIP\n BAIDU = 'Baidu',\n HUAWEI = 'Huawei',\n}\n\n/**\n * Вспомогательный класс для работы с платформами.\n */\nexport class Platforms {\n /**\n * Отсеять неизвестные значения.\n *\n * @param { Array<number> } platforms - массив доступных платформ.\n * @return { Array<Platform> } platforms - безопасный массив доступных платформ.\n */\n private static filterAllowPlatforms = (platforms: Array<number>): Array<Platform> => {\n const platformTypes = Object.values(Platform) as Array<Platform>;\n return platforms.filter((platform) => (\n platformTypes.includes(platform)\n ));\n };\n\n /**\n * Получить название платформы по ее идентификатору.\n *\n * @param { Platform } platform - идентификатор платформы.\n * @return { string } идентификатор платформы.\n */\n public static getPlatformName = (platform: Platform): string => {\n const platformKeys = Object.keys(PlatformName) as Array<keyof typeof PlatformName>;\n const foundedPlatform = platformKeys.find((key) => Platform[key] === platform);\n if (!foundedPlatform) {\n return 'Unknown platform!';\n }\n\n return PlatformName[foundedPlatform];\n };\n\n /**\n * Массив доступных платформ.\n */\n public readonly available: Array<Platform>;\n\n constructor(accountData: AccountData) {\n this.available = Platforms.filterAllowPlatforms(accountData.allowPlatforms);\n Object.freeze(this);\n }\n\n /**\n * Проверить, доступна ли платформа для использования.\n *\n * @param { Platform } platform - идентификатор платформы.\n * @return { boolean } - доступна ли платформа для использования.\n */\n public checkIsAvailablePlatform = (platform: Platform): boolean => (\n this.available.includes(platform)\n );\n}\n","import { AccountData } from '../rpc.types';\n\n/**\n * Разрешения на использование функционала со стороны владельца аккаунта.\n */\nexport class Permissions {\n /**\n * Есть ли у пользователя супер-права.\n */\n public readonly hasSuperRights: boolean;\n\n /**\n * Может ли пользователь управлять подпиской.\n */\n public readonly canManageSubscription: boolean;\n\n /**\n * Может ли пользователь управлять ключами доступа.\n */\n public readonly canManageAccessTokens: boolean;\n\n /**\n * Может ли пользователь управлять доменами и электронными адресами.\n */\n public readonly canManageDomainsAndEmails: boolean;\n\n /**\n * Может ли пользователь управлять правами других пользователей.\n */\n public readonly canManageSubUsers: boolean;\n\n /**\n * Может ли пользователь просматривать приложения.\n */\n public readonly canSeeApplications: boolean;\n\n /**\n * Может ли пользователь редактировать приложения.\n */\n public readonly canModifyApplications: boolean;\n\n /**\n * Может ли пользователь просматривать группы приложений.\n */\n public readonly canSeeApplicationGroups: boolean;\n\n /**\n * Может ли пользователь редактировать группы приложений.\n */\n public readonly canModifyApplicationGroups: boolean;\n\n /**\n * Может ли пользователь просматривать отправленные сообщения.\n */\n public readonly canSeeMessages: boolean;\n\n /**\n * Может ли пользователь редактировать (отменять) отправленные сообщения.\n */\n public readonly canModifyMessages: boolean;\n\n /**\n * Может ли пользователь отправлять сообщения.\n */\n public readonly canSendMessages: boolean;\n\n /**\n * Может ли пользователь просматривать теги.\n */\n public readonly canSeeTags: boolean;\n\n /**\n * Может ли пользователь редактировать теги.\n */\n public readonly canModifyTags: boolean;\n\n /**\n * Может ли пользователь просматривать сегменты.\n */\n public readonly canSeeSegments: boolean;\n\n /**\n * Может ли пользователь редактировать сегменты.\n */\n public readonly canModifySegments: boolean;\n\n /**\n * Может ли пользователь просматривать рич-медиа.\n */\n public readonly canSeeRichMedia: boolean;\n\n /**\n * Может ли пользователь редактировать рич-медиа.\n */\n public readonly canModifyRichMedia: boolean;\n\n /**\n * Может ли пользователь просматривать рич-медиа.\n */\n public readonly canSeeInApps: boolean;\n\n /**\n * Может ли пользователь просматривать шаблоны писем.\n */\n public readonly canSeeEmailTemplates: boolean;\n\n /**\n * Может ли пользователь редактировать шаблоны писем.\n */\n public readonly canModifyEmailTemplates: boolean;\n\n constructor(account: AccountData) {\n this.hasSuperRights = account.ACESuperRight;\n\n this.canManageSubscription = account.ACEManageSubscription;\n\n this.canManageAccessTokens = account.ACESeeAPIAccess;\n\n this.canManageDomainsAndEmails = account.ACEDomainAndEmailVerification;\n\n this.canManageSubUsers = account.ACEManageUsers;\n\n this.canSeeApplications = account.ACESeeApplications;\n this.canModifyApplications = account.ACEModifyApplications;\n\n this.canSeeApplicationGroups = account.ACESeeAppGroups;\n this.canModifyApplicationGroups = account.ACEModifyAppGroups;\n\n this.canSeeMessages = account.ACESeeMessages;\n this.canModifyMessages = account.ACEModifyMessages && this.canSeeMessages;\n this.canSendMessages = account.ACESendMessages && this.canSeeMessages;\n\n this.canSeeTags = account.ACESeeTags;\n this.canModifyTags = account.ACEModifyTags;\n\n this.canSeeSegments = account.ACESeeFilters && this.canSeeTags;\n this.canModifySegments = account.ACEModifyFilters && this.canSeeTags;\n\n this.canSeeRichMedia = account.ACESeeRichMedia && this.canSeeTags && this.canSeeSegments;\n this.canModifyRichMedia = account.ACEModifyRichMedia && this.canSeeTags && this.canSeeSegments;\n\n this.canSeeInApps = this.canSeeTags && this.canSeeSegments && this.canSeeRichMedia;\n\n this.canSeeEmailTemplates = account.ACESeeEmailTemplates && this.canSeeTags;\n this.canModifyEmailTemplates = account.ACEModifyEmailTemplates && this.canSeeTags;\n\n Object.freeze(this);\n }\n}\n","import { AccountData } from '../rpc.types';\n\n/**\n * Ограничения на использование функционала со стороны PW.\n */\nexport class Restrictions {\n /**\n * Доступно ли использование суб-пользователей.\n * (account.allowSubUsers)\n */\n public readonly allowUseSubUsers: boolean;\n\n /**\n * Доступное количество пользователей (включая владельца аккаунта).\n * (account.maxUsers)\n */\n public readonly maxUsersCount: number;\n\n /**\n * Доступное количество девайсов.\n * (account.maxDevices)\n */\n public readonly maxDevicesCount: number;\n\n /**\n * Доступное количество \"Applications\".\n * (account.maxApplications)\n */\n public readonly maxApplicationsCount: number;\n\n /**\n * Количество существующих \"Applications\".\n * (account.applicationsCount)\n */\n public readonly totalApplicationsCount: number;\n\n /**\n * Доступно ли использование \"Application Groups\".\n * (account.allowAppGroups)\n */\n public readonly allowUseApplicationGroups: boolean;\n\n /**\n * Доступное количество \"Application Groups\".\n * (account.maxAppGroups)\n */\n public readonly maxApplicationGroupsCount: number;\n\n /**\n * Количество существующих \"Application Groups\".\n * (account.appGroupsCount)\n */\n public readonly totalApplicationGroupsCount: number;\n\n /**\n * Доступно ли использование \"Campaigns\".\n * (account.allowCampaigns)\n */\n public readonly allowUseCampaigns: boolean;\n\n /**\n * Доступное количество \"Campaigns\".\n * (account.maxCampaigns)\n */\n public readonly maxCampaignsCount: number;\n\n /**\n * Количество существующих \"Campaigns\".\n * (account.campaignsCount)\n */\n public readonly totalCampaignsCount: number;\n\n /**\n * Доступно ли использование \"Tags\".\n * (account.allowTags)\n */\n public readonly allowUseTags: boolean;\n\n /**\n * Доступно ли использование \"User Specific Tags\".\n * (account.allowUseUserSpecificTags)\n */\n public readonly allowUseUserSpecificTags: boolean;\n\n /**\n * Доступное количество \"Tags\".\n * (account.maxTags)\n */\n public readonly maxTagsCount: number;\n\n /**\n * Количество существующих \"Tags\".\n * (account.tagsCount)\n */\n public readonly totalTagsCount: number;\n\n /**\n * Доступно ли использование \"Filters\".\n * (account.allowFilters)\n */\n public readonly allowUseFilters: boolean;\n\n /**\n * Доступно ли использование \"Filters Compiling\".\n * (account.allowFilterCompiling)\n */\n public readonly allowUseFiltersCompiling: boolean;\n\n /**\n * Доступно ли использование \"Filter With Tag Not Set\".\n * (account.allowTagNotSetFilter)\n */\n public readonly allowUseFiltersWithTagNotSet: boolean;\n\n /**\n * Доступное количество \"Filters\".\n * (account.maxFilters)\n */\n public readonly maxFiltersCount: number;\n\n /**\n * Количество существующих \"Filters\".\n * (account.filtersCount)\n */\n public readonly totalFiltersCount: number;\n\n /**\n * Доступное количество \"Fast Filters\".\n * (account.maxPreparedFilters)\n */\n public readonly maxFastFiltersCount: number;\n\n /**\n * Доступно ли использование \"Events\".\n * (account.allowEvents)\n */\n public readonly allowUseEvents: boolean;\n\n /**\n * Доступное количество \"Events\".\n * (account.maxEvents)\n */\n public readonly maxEventsCount: number;\n\n /**\n * Количество существующих \"Events\".\n * (account.eventsCount)\n */\n public readonly totalEventsCount: number;\n\n /**\n * Доступно ли использование \"Rich Media\".\n * (account.allowRichMedia)\n */\n public readonly allowUseRichMedia: boolean;\n\n /**\n * Доступное количество \"Rich Media\".\n * (account.maxRichMedia)\n */\n public readonly maxRichMediaCount: number;\n\n /**\n * Количество существующих \"Rich Media\".\n * (account.richMediaCount)\n */\n public readonly totalRichMediaCount: number;\n\n /**\n * Доступно ли использование \"InApps\".\n * (account.allowInApps)\n */\n public readonly allowUseInApps: boolean;\n\n /**\n * Доступное количество \"In Apps\".\n * (account.maxInApps)\n */\n public readonly maxInAppsCount: number;\n\n /**\n * Количество существующих \"In Apps\".\n * (account.inAppsCount)\n */\n public readonly totalInAppsCount: number;\n\n /**\n * Доступное количество сконфигурированных доменов.\n * (account.maxAccountDomains)\n */\n public readonly maxDomainsCount: number;\n\n /**\n * Количество существующих сконфигурированных доменов.\n * (account.accountDomainsCount)\n */\n public readonly totalDomainsCount: number;\n\n /**\n * Доступное количество сконфигурированных электронных адресов.\n * (account.maxEmailMails)\n */\n public readonly maxMailsCount: number;\n\n /**\n * Количество существующих сконфигурированных электронных адресов.\n * (account.accountMailsCount)\n */\n public readonly totalMailsCount: number;\n\n /**\n * Доступное количество шаблонов электронных писем.\n * (account.maxEmailTemplates)\n */\n public readonly maxEmailTemplatesCount: number;\n\n /**\n * Количество существующих шаблонов электронных писем.\n * (account.emailTemplatesCount)\n */\n public readonly totalEmailTemplatesCount: number;\n\n /**\n * Доступно ли использование \"Presets\".\n * (account.allowPresets)\n */\n public readonly allowUsePresets: boolean;\n\n /**\n * Доступное количество \"Presets\".\n * (account.maxPresets)\n */\n public readonly maxPresetsCount: number;\n\n /**\n * Количество существующих \"Presets\".\n * (account.presetsCount)\n */\n public readonly totalPresetsCount: number;\n\n /**\n * Доступно ли использование \"Auto Pushes\".\n * (account.allowAutoPushes)\n */\n public readonly allowUseAutoPushes: boolean;\n\n /**\n * Доступное количество \"Auto Pushes\".\n * (account.maxAutoPushes)\n */\n public readonly maxAutoPushesCount: number;\n\n /**\n * Количество существующих \"Auto Pushes\".\n * (account.autoPushesCount)\n */\n public readonly totalAutoPushesCount: number;\n\n /**\n * Доступно ли использование \"Auto Emails\".\n * (account.allowAutoEmails)\n */\n public readonly allowUseAutoEmails: boolean;\n\n /**\n * Доступное количество \"Auto Emails\".\n * (account.maxAutoEmails)\n */\n public readonly maxAutoEmailsCount: number;\n\n /**\n * Количество существующих \"Auto Emails\".\n * (account.autoEmailsCount)\n */\n public readonly totalAutoEmailsCount: number;\n\n /**\n * Доступно ли использование \"Geozones\".\n * (account.allowGeozones)\n */\n public readonly allowUseGeozones: boolean;\n\n /**\n * Доступна ли отправка сообщений с использованием \"Geozones\".\n * (account.allowSendToGeoZone)\n */\n public readonly allowUseSendToGeozones: boolean;\n\n /**\n * Доступное количество \"Geozones\".\n * (account.maxGeoZones)\n */\n public readonly maxGeozonesCount: number;\n\n /**\n * Количество существующих \"Geozones\".\n * (account.geoZonesCount)\n */\n public readonly totalGeozonesCount: number;\n\n /**\n * Максимальная зона выделения \"Geozone\".\n * (account.maxGeozoneRange)\n */\n public readonly maxGeozoneRange: number;\n\n /**\n * Минимальная зона выделения \"Geozone\".\n * (account.minGeozoneRange)\n */\n public readonly minGeozoneRange: number;\n\n /**\n * Доступно ли использование \"Deep Links\".\n * (account.allowDeeplinks)\n */\n public readonly allowUseDeepLinks: boolean;\n\n /**\n * Доступное количество \"Deep Links\".\n * (account.maxDeeplinks)\n */\n public readonly maxDeepLinksCount: number;\n\n /**\n * Количество существующих \"Deep Links\".\n * (account.deeplinksCount)\n */\n public readonly totalDeepLinksCount: number;\n\n /**\n * Доступно ли использование \"Beacons\".\n * (account.allowBeacons)\n */\n public readonly allowUseBeacons: boolean;\n\n /**\n * Доступное количество \"Beacons\".\n * (account.maxBeacons)\n */\n public readonly maxBeaconsCount: number;\n\n /**\n * Количество существующих \"Beacons\".\n * (account.beaconsCount)\n */\n public readonly totalBeaconsCount: number;\n\n /**\n * Доступно ли использование \"Twitter Feeds\".\n * (account.allowTwitterFeeds)\n */\n public readonly allowUseTwitterFeeds: boolean;\n\n /**\n * Доступное количество \"Twitter Feeds\".\n * (account.maxTwitterFeeds)\n */\n public readonly maxTwitterFeedsCount: number;\n\n /**\n * Количество существующих \"Twitter Feeds\".\n * (account.twitterFeedsCount)\n */\n public readonly totalTwitterFeedsCount: number;\n\n /**\n * Доступно ли использование \"Rss Feeds\".\n * (account.allowRSSFeeds)\n */\n public readonly allowUseRssFeeds: boolean;\n\n /**\n * Доступно ли использование \"Rss Feeds Custom Polling Interval\".\n * (account.allowCustomRssPollingInterval)\n */\n public readonly allowUseRssFeedsCustomPollingInterval: boolean;\n\n /**\n * Доступное количество \"Rss Feeds\".\n * (account.maxRssFeeds)\n */\n public readonly maxRssFeedsCount: number;\n\n /**\n * Количество существующих \"Rss Feeds\".\n * (account.rssFeedsCount)\n */\n public readonly totalRssFeedsCount: number;\n\n /**\n * Доступно ли использование \"Test Devices\".\n * (account.allowTestDevices)\n */\n public readonly allowUseTestDevices: boolean;\n\n /**\n * Доступное количество \"Test Devices\".\n * (account.maxTestDevices)\n */\n public readonly maxTestDevicesCount: number;\n\n /**\n * Количество существующих \"Test Devices\".\n * (account.testDevicesCount)\n */\n public readonly totalTestDevicesCount: number;\n\n /**\n * Доступно ли использование \"Triggered Messages\".\n * (account.allowPushOnEvent)\n */\n public readonly allowUseTriggeredMessages: boolean;\n\n /**\n * Доступное количество \"Triggered Messages\".\n * (account.maxTriggeredMessagePresets)\n */\n public readonly maxTriggeredMessagesCount: number;\n\n /**\n * Количество существующих \"Triggered Messages\".\n * (account.triggeredMessagesCount)\n */\n public readonly totalTriggeredMessagesCount: number;\n\n /**\n * Максимальное время задержки выполнения цепочки \"Triggered Messages\".\n * (account.maxPushOnEventDelayInDays)\n */\n public readonly maxTriggeredMessagesDelayInDays: number;\n\n /**\n * Доступно ли использование \"Access Tokens\".\n * (account.allowAPI)\n */\n public readonly allowUseAccessTokens: boolean;\n\n /**\n * Доступно ли использование \"Data Keys\".\n * (account.allowCustomData)\n */\n public readonly allowUseDataKeys: boolean;\n\n /**\n * Доступен ли просмотр различной статистики.\n * (account.allowStatsAccess)\n */\n public readonly allowUseStatistics: boolean;\n\n /**\n * Доступна ли отправка сообщений по расписанию.\n * (account.allowScheduling)\n */\n public readonly allowUseScheduling: boolean;\n\n /**\n * Доступно ли использование автоконфигурации IOS платформы.\n * (account.allowAutoConfig)\n */\n public readonly allowUseIOSAutoConfig: boolean;\n\n /**\n * Доступно ли использование двухфакторной аутентификации.\n * (account.allowTwoFactorAuth)\n */\n public readonly allowUseTwoFactorAuth: boolean;\n\n /**\n * Доступна ли отправка сообщений по CSV.\n * (account.allowCSVMessage)\n */\n public readonly allowUseSendMessageByCsv: boolean;\n\n /**\n * Доступно ли использование \"AB Tests\"\n * (account.allowAbTests)\n */\n public readonly allowUseAbTests: boolean;\n\n /**\n * Доступно ли использование \"Html Pages\"\n * (account.allowHtmlPages)\n */\n public readonly allowUseHtmlPages: boolean;\n\n /**\n * Доступно ли использование \"Remote Pages\"\n * (account.allowUseRemotePage)\n */\n public readonly allowUseRemotePage: boolean;\n\n /**\n * Доступно ли использование \"IOS Categories\"\n * (account.allowIOSCategories)\n */\n public readonly allowUseIOSCategories: boolean;\n\n /**\n * Доступно ли использование \"Goal Tracking\".\n * (account.allowGoalTracking)\n */\n public readonly allowUseGoalTracking: boolean;\n\n /**\n * Доступно ли использование \"Dynamic Content\".\n * (account.allowDynamicContent)\n */\n public readonly allowUseDynamicContent: boolean;\n\n /**\n * Доступно ли использование \"Debug Mode\".\n * (account.allowDebugMode)\n */\n public readonly allowUseDebugMode: boolean;\n\n /**\n * Доступно ли использование \"Tracking Uninstall\".\n * (account.allowTrackingUninstall)\n */\n public readonly allowUseUninstallTracking: boolean;\n\n /**\n * Доступно ли использование \"Frequency Capping\".\n * (account.allowFrequencyCapping)\n */\n public readonly allowUseFrequencyCapping: boolean;\n\n /**\n * Доступно ли использование \"Inbox\".\n * (account.allowInbox)\n */\n public readonly allowUseInbox: boolean;\n\n /**\n * Время хранения сообщения в \"Inbox\".\n * (account.maxInboxTtlDays)\n */\n public readonly maxInboxTtlDays: number;\n\n /**\n * Доступно ли использование \"Channels\".\n * (account.allowChannels)\n */\n public readonly allowUseChannels: boolean;\n\n /**\n * Доступна ли отправка дополнительной статистики для Android приложений.\n * (account.allowSendExternalStats)\n */\n public readonly allowUseSendExternalAndroidStatistics: boolean;\n\n /**\n * Доступно ли использование \"GDPR\".\n * (account.allowUseGDPR)\n */\n public readonly allowUseGDPR: boolean;\n\n /**\n * Минимальная скорость отправки сообщений.\n * (account.sendRateMin)\n */\n public readonly sendRateMin: number;\n\n /**\n * Максимальная скорость отправки сообщений.\n * (account.sendRateMax)\n */\n public readonly sendRateMax: number;\n\n /**\n * Период сохранения истории сообщений в днях.\n * (account.messageHistoryStorePeriod)\n */\n public readonly messageHistoryStoriedPeriodInDays: number;\n\n constructor(accountData: AccountData) {\n this.allowUseSubUsers = accountData.allowSubUsers;\n this.maxUsersCount = accountData.maxUsers;\n\n this.maxDevicesCount = accountData.maxDevices;\n\n this.maxApplicationsCount = accountData.maxApplications;\n this.totalApplicationsCount = accountData.applicationsCount;\n\n this.allowUseApplicationGroups = accountData.allowAppGroups;\n this.maxApplicationGroupsCount = accountData.maxAppGroups;\n this.totalApplicationGroupsCount = accountData.appGroupsCount;\n\n this.allowUseCampaigns = accountData.allowCampaigns;\n this.maxCampaignsCount = accountData.maxCampaigns;\n this.totalCampaignsCount = accountData.campaignsCount;\n\n this.allowUseTags = accountData.allowTags;\n this.allowUseUserSpecificTags = accountData.allowUseUserSpecificTags;\n this.maxTagsCount = accountData.maxTags;\n this.totalTagsCount = accountData.tagsCount;\n\n this.allowUseFilters = accountData.allowFilters;\n this.allowUseFiltersCompiling = accountData.allowFilterCompiling;\n this.allowUseFiltersWithTagNotSet = accountData.allowTagNotSetFilter;\n this.maxFiltersCount = accountData.maxFilters;\n this.totalFiltersCount = accountData.filtersCount;\n this.maxFastFiltersCount = accountData.maxPreparedFilters;\n\n this.allowUseEvents = accountData.allowEvents;\n this.maxEventsCount = accountData.maxEvents;\n this.totalEventsCount = accountData.eventsCount;\n\n this.allowUseRichMedia = accountData.allowRichMedia;\n this.maxRichMediaCount = accountData.maxRichMedia;\n this.totalRichMediaCount = accountData.richMediaCount;\n\n this.allowUseInApps = accountData.allowInApps;\n this.maxInAppsCount = accountData.maxInApps;\n this.totalInAppsCount = accountData.inAppsCount;\n\n this.maxDomainsCount = accountData.maxAccountDomains;\n this.totalDomainsCount = accountData.accountDomainsCount;\n this.maxMailsCount = accountData.maxEmailMails;\n this.totalMailsCount = accountData.accountMailsCount;\n this.maxEmailTemplatesCount = accountData.maxEmailTemplates;\n this.totalEmailTemplatesCount = accountData.emailTemplatesCount;\n\n this.allowUsePresets = accountData.allowPresets;\n this.maxPresetsCount = accountData.maxPresets;\n this.totalPresetsCount = accountData.presetsCount;\n\n this.allowUseAutoPushes = accountData.allowAutoPushes;\n this.maxAutoPushesCount = accountData.maxAutoPushes;\n this.totalAutoPushesCount = accountData.autoPushesCount;\n\n this.allowUseAutoEmails = accountData.allowAutoEmails;\n this.maxAutoEmailsCount = accountData.maxAutoEmails;\n this.totalAutoEmailsCount = accountData.autoEmailsCount;\n\n this.allowUseGeozones = accountData.allowGeozones;\n this.allowUseSendToGeozones = accountData.allowSendToGeoZone;\n this.maxGeozonesCount = accountData.maxGeoZones;\n this.totalGeozonesCount = accountData.geoZonesCount;\n this.maxGeozoneRange = accountData.maxGeozoneRange;\n this.minGeozoneRange = accountData.minGeozoneRange;\n\n this.allowUseDeepLinks = accountData.allowDeeplinks;\n this.maxDeepLinksCount = accountData.maxDeeplinks;\n this.totalDeepLinksCount = accountData.deeplinksCount;\n\n this.allowUseBeacons = accountData.allowBeacons;\n this.maxBeaconsCount = accountData.maxBeacons;\n this.totalBeaconsCount = accountData.beaconsCount;\n\n this.allowUseTwitterFeeds = accountData.allowTwitterFeeds;\n this.maxTwitterFeedsCount = accountData.maxTwitterFeeds;\n this.totalTwitterFeedsCount = accountData.twitterFeedsCount;\n\n this.allowUseRssFeeds = accountData.allowRSSFeeds;\n this.allowUseRssFeedsCustomPollingInterval = accountData.allowCustomRssPollingInterval;\n this.maxRssFeedsCount = accountData.maxRssFeeds;\n this.totalRssFeedsCount = accountData.rssFeedsCount;\n\n this.allowUseTestDevices = accountData.allowTestDevices;\n this.maxTestDevicesCount = accountData.maxTestDevices;\n this.totalTestDevicesCount = accountData.testDevicesCount;\n\n this.allowUseTriggeredMessages = accountData.allowPushOnEvent;\n this.maxTriggeredMessagesCount = accountData.maxTriggeredMessagePresets;\n this.totalTriggeredMessagesCount = accountData.triggeredMessagesCount;\n this.maxTriggeredMessagesDelayInDays = accountData.maxPushOnEventDelayInDays;\n\n this.allowUseAccessTokens = accountData.allowAPI;\n\n this.allowUseDataKeys = accountData.allowCustomData;\n\n this.allowUseStatistics = accountData.allowStatsAccess;\n\n this.allowUseScheduling = accountData.allowScheduling;\n\n this.allowUseIOSAutoConfig = accountData.allowAutoConfig;\n\n this.allowUseTwoFactorAuth = accountData.allowTwoFactorAuth;\n\n this.allowUseSendMessageByCsv = accountData.allowCSVMessage;\n\n this.allowUseAbTests = accountData.allowAbTests;\n\n this.allowUseHtmlPages = accountData.allowHtmlPages;\n\n this.allowUseRemotePage = accountData.allowUseRemotePage;\n\n this.allowUseIOSCategories = accountData.allowIOSCategories;\n\n this.allowUseGoalTracking = accountData.allowGoalTracking;\n\n this.allowUseDynamicContent = accountData.allowDynamicContent;\n\n this.allowUseDebugMode = accountData.allowDebugMode;\n\n this.allowUseUninstallTracking = accountData.allowTrackingUninstall;\n\n this.allowUseFrequencyCapping = accountData.allowFrequencyCapping;\n\n this.allowUseInbox = accountData.allowInbox;\n this.maxInboxTtlDays = accountData.maxInboxTtlDays;\n\n this.allowUseChannels = accountData.allowChannels;\n\n this.allowUseSendExternalAndroidStatistics = accountData.allowSendExternalStats;\n this.allowUseGDPR = accountData.allowGDPR;\n\n this.sendRateMin = accountData.sendRateMin;\n this.sendRateMax = accountData.sendRateMax;\n\n this.messageHistoryStoriedPeriodInDays = accountData.messageHistoryStorePeriod;\n\n Object.freeze(this);\n }\n}\n","import { AccountData, UserData } from '../rpc.types';\n\n/**\n * Информация о пользователе.\n */\nexport class User {\n /**\n * Имя пользователя.\n * (user.username)\n */\n public readonly name: string;\n\n /**\n * Электронная почта пользователя.\n * (user.email)\n */\n public readonly email: string;\n\n /**\n * Активен ли пользователь.\n * (user.isActive)\n */\n public readonly isActive: boolean;\n\n /**\n * Является ли пользователь владельцем рабочего пространства.\n * (account.admin)\n */\n public readonly isOwner: boolean;\n\n /**\n * Является ли пользователь работником Pushwoosh.\n * (user.isUnderSu)\n */\n public readonly isUnderSU: boolean;\n\n /**\n * Часовой пояс пользователя.\n * (user.timezone)\n */\n public readonly timezone: string;\n\n /**\n * Смещение часового пояса пользователя.\n * (user.timezoneOffset)\n */\n public readonly timezoneOffset: number;\n\n /**\n * Доступное количество аккаунтов для входа.\n * (user.accountsCount)\n */\n public readonly accountCount: number;\n\n /**\n * Подписан ли пользователь на получение новостей.\n * (user.allowNewsletters)\n */\n public readonly isSubscribedForNewsletters: boolean;\n\n /**\n * Подписан ли пользователь на получение ежедневных отчетов.\n * (user.allowDailyStatsGlobal)\n */\n public readonly isSubscribedForDailyStatsGlobal: boolean;\n\n /**\n * Подписан ли пользователь на получение сообщений о превышении лимита подписчиков.\n * (user.allowNotificationSubscribers)\n */\n public readonly isSubscribedForNotificationSubscribersLimitReached: boolean;\n\n /**\n * Подписан ли пользователь на получения сообщений об истечении срока действия Apple сертификата.\n * (user.allowNotificationIosLicense)\n */\n public readonly isSubscribedForNotificationExpiredIOSCertificate: boolean;\n\n /**\n * Подписан ли пользователь на получение сообщений об отсутствии активности.\n * (user.allowNotificationUserInactivity)\n */\n public readonly isSubscribedForNotificationUserInactivity: boolean;\n\n /**\n * Подписан ли пользователь на получение сообщений об отключении платформ.\n * (user.allowNotificationDisablePlatform)\n */\n public readonly isSubscribedForNotificationDisablePlatform: boolean;\n\n constructor(accountData: AccountData, userData: UserData) {\n this.name = userData.username;\n this.email = userData.email;\n\n this.isActive = userData.isActive;\n this.isOwner = accountData.admin;\n this.isUnderSU = accountData.isUnderSu;\n\n this.timezone = userData.timezone;\n this.timezoneOffset = parseFloat(userData.timezoneOffset) * 60;\n\n this.accountCount = userData.accountsCount;\n\n this.isSubscribedForNewsletters = userData.allowNewsletters;\n this.isSubscribedForDailyStatsGlobal = userData.allowDailyStatsGlobal;\n this.isSubscribedForNotificationSubscribersLimitReached = userData.allowNotificationSubscribers;\n this.isSubscribedForNotificationExpiredIOSCertificate = userData.allowNotificationIosLicense;\n this.isSubscribedForNotificationUserInactivity = userData.allowNotificationUserInactivity;\n this.isSubscribedForNotificationDisablePlatform = userData.allowNotificationDisablePlatform;\n\n Object.freeze(this);\n }\n}\n","import { ReplaySubject, Subscription } from 'rxjs';\n\nimport { HttpClient, defaultResponseMiddleware } from '@pushwoosh/http-client';\n\nimport { Account } from './entities/account';\nimport { Permissions } from './entities/permissions';\nimport { Platforms } from './entities/platforms';\nimport { Restrictions } from './entities/restrictions';\nimport { User } from './entities/user';\n\nimport { AccountData, RPCResponse, UserData } from './rpc.types';\nimport { Session } from './session-store.types';\n\nexport class SessionStore {\n /**\n * Клиент для работы c HTTP запросами\n */\n private readonly httpClient: HttpClient;\n\n /**\n * \"Наблюдаемый объект\" сеанса\n */\n private readonly subject: ReplaySubject<Session>;\n\n /**\n * Создать экземпляр класса SessionStore\n *\n * @param httpClient - клиент для работы с HTTP запросами\n */\n constructor(httpClient: HttpClient) {\n this.httpClient = httpClient;\n\n this.subject = new ReplaySubject<Session>(1);\n }\n\n /**\n * Обновить \"Наблюдаемый объект\" текущего сеанса\n */\n private updateSubject = (accountData: AccountData, userData: UserData): void => {\n this.subject.next({\n account: new Account(accountData),\n permissions: new Permissions(accountData),\n platforms: new Platforms(accountData),\n restrictions: new Restrictions(accountData),\n user: new User(accountData, userData),\n });\n };\n\n /**\n * Загрузить данные об аккаунте и пользователе\n */\n private load = async (): Promise<[AccountData, UserData]> => (\n this.httpClient.post<[AccountData, UserData], never, never, { calls: Array<{ name: string }> }>('/cp/_rpc/', {\n body: {\n calls: [{ name: 'account.get' }, { name: 'user.get' }],\n },\n withAuthorization: true,\n responseMiddleware: (response) => {\n const { responses } = defaultResponseMiddleware<{ responses: [RPCResponse<AccountData>, RPCResponse<UserData>] }>(response);\n const [accountResponse, userResponse] = responses;\n\n const accountData = defaultResponseMiddleware<AccountData>({\n result: accountResponse.result,\n status: accountResponse.error || 200,\n message: accountResponse.message,\n details: response.details,\n });\n\n const userData = defaultResponseMiddleware<UserData>({\n result: userResponse.result,\n status: userResponse.error || 200,\n message: userResponse.message,\n details: response.details,\n });\n\n return [accountData, userData];\n },\n })\n );\n\n /**\n * Обновить сеанс\n */\n public update = async (): Promise<void> => {\n const [accountData, userData] = await this.load();\n this.updateSubject(accountData, userData);\n };\n\n /**\n * Подписаться на изменение сеанса\n *\n * @param callback - колбэк, который будет вызван при изменении сеанса\n */\n public subscribe = (callback: (session: Session) => any): Subscription => (\n this.subject.subscribe(callback)\n );\n}\n"],"names":["root","factory","exports","module","require","define","amd","self","__WEBPACK_EXTERNAL_MODULE__6748__","__WEBPACK_EXTERNAL_MODULE__3832__","__WEBPACK_EXTERNAL_MODULE__4904__","path","parseFloat","global","isCallable","tryToString","TypeError","argument","isObject","String","uncurryThis","toString","stringSlice","slice","it","TO_STRING_TAG_SUPPORT","classofRaw","TO_STRING_TAG","wellKnownSymbol","Object","CORRECT_ARGUMENTS","arguments","O","tag","result","undefined","key","error","tryGet","callee","DESCRIPTORS","definePropertyModule","createPropertyDescriptor","object","value","f","bitmap","enumerable","configurable","writable","fails","defineProperty","get","document","EXISTS","createElement","getBuiltIn","match","version","userAgent","process","Deno","versions","v8","split","apply","getOwnPropertyDescriptor","isForced","bind","createNonEnumerableProperty","hasOwn","wrapConstructor","NativeConstructor","Wrapper","a","b","c","this","length","prototype","options","source","USE_NATIVE","VIRTUAL_PROTOTYPE","sourceProperty","targetProperty","nativeProperty","resultProperty","descriptor","TARGET","target","GLOBAL","STATIC","stat","PROTO","proto","nativeSource","targetPrototype","forced","noTargetGet","wrap","sham","real","exec","NATIVE_BIND","FunctionPrototype","Function","call","Reflect","aCallable","fn","that","test","hasOwnProperty","aFunction","variable","namespace","method","V","P","func","check","Math","globalThis","window","g","toObject","classof","propertyIsEnumerable","replacement","feature","detection","data","normalize","POLYFILL","NATIVE","string","replace","toLowerCase","isPrototypeOf","USE_SYMBOL_AS_UID","$Symbol","V8_VERSION","getOwnPropertySymbols","symbol","Symbol","trim","whitespaces","charAt","n$ParseFloat","ITERATOR","iterator","FORCED","Infinity","trimmedString","IE8_DOM_DEFINE","V8_PROTOTYPE_DEFINE_BUG","anObject","toPropertyKey","$defineProperty","$getOwnPropertyDescriptor","ENUMERABLE","CONFIGURABLE","WRITABLE","Attributes","current","propertyIsEnumerableModule","toIndexedObject","$propertyIsEnumerable","NASHORN_BUG","input","pref","val","valueOf","setGlobal","SHARED","store","IS_PURE","push","mode","copyright","license","requireObjectCoercible","whitespace","ltrim","RegExp","rtrim","createMethod","TYPE","$this","start","end","IndexedObject","isSymbol","getMethod","ordinaryToPrimitive","TO_PRIMITIVE","exoticToPrim","toPrimitive","id","postfix","random","NATIVE_SYMBOL","shared","uid","WellKnownSymbolsStore","symbolFor","createWellKnownSymbol","withoutSetter","name","description","$","$parseFloat","parent","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","__esModule","d","definition","o","e","obj","prop","r","toStringTag","ProductType","Platform","PlatformName","accountData","registrationDate","billing","companyName","billingAddress","company_name","companyCountry","country","companyCountryCode","country_code","companyState","state","companyStateCode","state_code","companyCity","city","companyStreet","street","companyZip","zip","companyPhone","phone","companyVAT","vat_number","companyNumber","company_number","primaryPersonFirstName","first_name","primaryPersonLastName","last_name","primaryPersonEmail","paymentEmail","secondaryPersonFirstName","secondary_person_first_name","secondaryPersonLastName","secondary_person_last_name","secondaryPersonEmail","secondary_person_email","industry","department","additionalEmails","productType","productName","restriction","isEnterprise","expiryDate","expireDate","isFrozen","frozen","isDeviceLimitReached","isEnabledBackup","allowBackup","statistics","currentMonthActiveUsers","MAU","lastMonthActiveUsers","lastMAU","calendarMonthActiveUsers","calendarMAU","currentMonthActiveDevicesCount","MAD","lastMonthActiveDevicesCount","lastMAD","calendarMonthActiveDevicesCount","calendarMAD","totalSubscribers","pushAvailableSubscribers","pushNotAvailableSubscribers","currentDaySentEmailsCount","dailyEmailStat","currentMontSentEmailsCount","monthlyEmailStat","calendarMonthSentEmailsCount","lastEmailStat","freeEmailsLimit","freeEmailLimit","freeEmailsQuota","freeEmailQuota","freeEmailsQuotaUpdateDate","freeEmailLimitUpdateDate","paidEmailsQuota","paidEmailQuota","paidEmailsQuotaExpiryDate","paidEmailExpireDate","freeze","account","hasSuperRights","ACESuperRight","canManageSubscription","ACEManageSubscription","canManageAccessTokens","ACESeeAPIAccess","canManageDomainsAndEmails","ACEDomainAndEmailVerification","canManageSubUsers","ACEManageUsers","canSeeApplications","ACESeeApplications","canModifyApplications","ACEModifyApplications","canSeeApplicationGroups","ACESeeAppGroups","canModifyApplicationGroups","ACEModifyAppGroups","canSeeMessages","ACESeeMessages","canModifyMessages","ACEModifyMessages","canSendMessages","ACESendMessages","canSeeTags","ACESeeTags","canModifyTags","ACEModifyTags","canSeeSegments","ACESeeFilters","canModifySegments","ACEModifyFilters","canSeeRichMedia","ACESeeRichMedia","canModifyRichMedia","ACEModifyRichMedia","canSeeInApps","canSeeEmailTemplates","ACESeeEmailTemplates","canModifyEmailTemplates","ACEModifyEmailTemplates","checkIsAvailablePlatform","platform","_this","available","includes","Platforms","filterAllowPlatforms","allowPlatforms","platforms","platformTypes","values","filter","foundedPlatform","keys","find","allowUseSubUsers","allowSubUsers","maxUsersCount","maxUsers","maxDevicesCount","maxDevices","maxApplicationsCount","maxApplications","totalApplicationsCount","applicationsCount","allowUseApplicationGroups","allowAppGroups","maxApplicationGroupsCount","maxAppGroups","totalApplicationGroupsCount","appGroupsCount","allowUseCampaigns","allowCampaigns","maxCampaignsCount","maxCampaigns","totalCampaignsCount","campaignsCount","allowUseTags","allowTags","allowUseUserSpecificTags","maxTagsCount","maxTags","totalTagsCount","tagsCount","allowUseFilters","allowFilters","allowUseFiltersCompiling","allowFilterCompiling","allowUseFiltersWithTagNotSet","allowTagNotSetFilter","maxFiltersCount","maxFilters","totalFiltersCount","filtersCount","maxFastFiltersCount","maxPreparedFilters","allowUseEvents","allowEvents","maxEventsCount","maxEvents","totalEventsCount","eventsCount","allowUseRichMedia","allowRichMedia","maxRichMediaCount","maxRichMedia","totalRichMediaCount","richMediaCount","allowUseInApps","allowInApps","maxInAppsCount","maxInApps","totalInAppsCount","inAppsCount","maxDomainsCount","maxAccountDomains","totalDomainsCount","accountDomainsCount","maxMailsCount","maxEmailMails","totalMailsCount","accountMailsCount","maxEmailTemplatesCount","maxEmailTemplates","totalEmailTemplatesCount","emailTemplatesCount","allowUsePresets","allowPresets","maxPresetsCount","maxPresets","totalPresetsCount","presetsCount","allowUseAutoPushes","allowAutoPushes","maxAutoPushesCount","maxAutoPushes","totalAutoPushesCount","autoPushesCount","allowUseAutoEmails","allowAutoEmails","maxAutoEmailsCount","maxAutoEmails","totalAutoEmailsCount","autoEmailsCount","allowUseGeozones","allowGeozones","allowUseSendToGeozones","allowSendToGeoZone","maxGeozonesCount","maxGeoZones","totalGeozonesCount","geoZonesCount","maxGeozoneRange","minGeozoneRange","allowUseDeepLinks","allowDeeplinks","maxDeepLinksCount","maxDeeplinks","totalDeepLinksCount","deeplinksCount","allowUseBeacons","allowBeacons","maxBeaconsCount","maxBeacons","totalBeaconsCount","beaconsCount","allowUseTwitterFeeds","allowTwitterFeeds","maxTwitterFeedsCount","maxTwitterFeeds","totalTwitterFeedsCount","twitterFeedsCount","allowUseRssFeeds","allowRSSFeeds","allowUseRssFeedsCustomPollingInterval","allowCustomRssPollingInterval","maxRssFeedsCount","maxRssFeeds","totalRssFeedsCount","rssFeedsCount","allowUseTestDevices","allowTestDevices","maxTestDevicesCount","maxTestDevices","totalTestDevicesCount","testDevicesCount","allowUseTriggeredMessages","allowPushOnEvent","maxTriggeredMessagesCount","maxTriggeredMessagePresets","totalTriggeredMessagesCount","triggeredMessagesCount","maxTriggeredMessagesDelayInDays","maxPushOnEventDelayInDays","allowUseAccessTokens","allowAPI","allowUseDataKeys","allowCustomData","allowUseStatistics","allowStatsAccess","allowUseScheduling","allowScheduling","allowUseIOSAutoConfig","allowAutoConfig","allowUseTwoFactorAuth","allowTwoFactorAuth","allowUseSendMessageByCsv","allowCSVMessage","allowUseAbTests","allowAbTests","allowUseHtmlPages","allowHtmlPages","allowUseRemotePage","allowUseIOSCategories","allowIOSCategories","allowUseGoalTracking","allowGoalTracking","allowUseDynamicContent","allowDynamicContent","allowUseDebugMode","allowDebugMode","allowUseUninstallTracking","allowTrackingUninstall","allowUseFrequencyCapping","allowFrequencyCapping","allowUseInbox","allowInbox","maxInboxTtlDays","allowUseChannels","allowChannels","allowUseSendExternalAndroidStatistics","allowSendExternalStats","allowUseGDPR","allowGDPR","sendRateMin","sendRateMax","messageHistoryStoriedPeriodInDays","messageHistoryStorePeriod","userData","username","email","isActive","isOwner","admin","isUnderSU","isUnderSu","timezone","timezoneOffset","accountCount","accountsCount","isSubscribedForNewsletters","allowNewsletters","isSubscribedForDailyStatsGlobal","allowDailyStatsGlobal","isSubscribedForNotificationSubscribersLimitReached","allowNotificationSubscribers","isSubscribedForNotificationExpiredIOSCertificate","allowNotificationIosLicense","isSubscribedForNotificationUserInactivity","allowNotificationUserInactivity","isSubscribedForNotificationDisablePlatform","allowNotificationDisablePlatform","httpClient","updateSubject","subject","next","Account","permissions","Permissions","restrictions","Restrictions","user","User","load","post","body","calls","withAuthorization","responseMiddleware","response","responses","defaultResponseMiddleware","accountResponse","userResponse","status","message","details","update","_a","_b","subscribe","callback","ReplaySubject"],"sourceRoot":""}
@@ -1,3 +1,9 @@
1
+ export declare type RPCResponse<R extends unknown> = {
2
+ readonly name: string;
3
+ readonly message: string;
4
+ readonly error?: number;
5
+ readonly result: R;
6
+ };
1
7
  export declare type AccountData = {
2
8
  readonly name: string;
3
9
  readonly isEnterprise: boolean;
@@ -205,3 +211,4 @@ export declare type UserData = {
205
211
  readonly allowNotificationUserInactivity: boolean;
206
212
  readonly allowNotificationDisablePlatform: boolean;
207
213
  };
214
+ //# sourceMappingURL=rpc.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rpc.types.d.ts","sourceRoot":"","sources":["../src/rpc.types.ts"],"names":[],"mappings":"AAAA,oBAAY,W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U,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACpC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,sBAAsB,EAAE,OAAO,CAAC;IACzC,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;CACnC,CAAC;AAEF,oBAAY,QAAQ,GAAG;IACrB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAAC;IACxC,QAAQ,CAAC,4BAA4B,EAAE,OAAO,CAAC;IAC/C,QAAQ,CAAC,2BAA2B,EAAE,OAAO,CAAC;IAC9C,QAAQ,CAAC,+BAA+B,EAAE,OAAO,CAAC;IAClD,QAAQ,CAAC,gCAAgC,EAAE,OAAO,CAAC;CACpD,CAAC"}
@@ -1,43 +1,38 @@
1
1
  import { Subscription } from 'rxjs';
2
2
  import { HttpClient } from '@pushwoosh/http-client';
3
3
  import { Session } from './session-store.types';
4
- /**
5
- * Хранилище сеанса.
6
- */
7
4
  export declare class SessionStore {
8
5
  /**
9
- * Клиент для работы с http запросами.
6
+ * Клиент для работы c HTTP запросами
10
7
  */
11
8
  private readonly httpClient;
12
9
  /**
13
- * "Наблюдаемый объект" сеанса.
10
+ * "Наблюдаемый объект" сеанса
14
11
  */
15
12
  private readonly subject;
16
13
  /**
17
- * Создать экземпляр класса SessionStore.
14
+ * Создать экземпляр класса SessionStore
18
15
  *
19
- * @param { HttpClient } httpClient - клиент для работы с http запросами.
16
+ * @param httpClient - клиент для работы с HTTP запросами
20
17
  */
21
18
  constructor(httpClient: HttpClient);
22
19
  /**
23
- * Обновить "Наблюдаемый объект" текущего сеанса.
20
+ * Обновить "Наблюдаемый объект" текущего сеанса
24
21
  */
25
22
  private updateSubject;
26
23
  /**
27
- * Загрузить данные об аккаунте и пользователе.
28
- *
29
- * @return { [*, *, *] } - данные об аккаунте и пользователе.
24
+ * Загрузить данные об аккаунте и пользователе
30
25
  */
31
26
  private load;
32
27
  /**
33
- * Обновить сеанс.
28
+ * Обновить сеанс
34
29
  */
35
30
  update: () => Promise<void>;
36
31
  /**
37
- * Подписаться на изменение сеанса.
32
+ * Подписаться на изменение сеанса
38
33
  *
39
- * @param { Function } callback - колбэк, который будет вызван при изменении сеанса.
40
- * @return { Subscription } - подписка на изменение сеанса.
34
+ * @param callback - колбэк, который будет вызван при изменении сеанса
41
35
  */
42
36
  subscribe: (callback: (session: Session) => any) => Subscription;
43
37
  }
38
+ //# sourceMappingURL=session-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-store.d.ts","sourceRoot":"","sources":["../src/session-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,YAAY,EAAE,MAAM,MAAM,CAAC;AAEnD,OAAO,EAAE,UAAU,EAA6B,MAAM,wBAAwB,CAAC;AAS/E,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,YAAY;IACvB;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;IAExC;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;IAEjD;;;;OAIG;gBACS,UAAU,EAAE,UAAU;IAMlC;;OAEG;IACH,OAAO,CAAC,aAAa,CAQnB;IAEF;;OAEG;IACH,OAAO,CAAC,IAAI,CA2BV;IAEF;;OAEG;IACI,MAAM,QAAa,QAAQ,IAAI,CAAC,CAGrC;IAEF;;;;OAIG;IACI,SAAS,uBAAwB,OAAO,KAAK,GAAG,KAAG,YAAY,CAEpE;CACH"}
@@ -10,3 +10,4 @@ export declare type Session = {
10
10
  readonly restrictions: Restrictions;
11
11
  readonly user: User;
12
12
  };
13
+ //# sourceMappingURL=session-store.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-store.types.d.ts","sourceRoot":"","sources":["../src/session-store.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEvC,oBAAY,OAAO,GAAG;IACpB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;CACrB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,5 @@
1
1
  {
2
2
  "name": "@pushwoosh/session-store",
3
- "version": "1.4.1",
4
- "license": "MIT",
5
3
  "main": "./dist/index.js",
6
4
  "types": "./dist/index.d.ts",
7
5
  "files": [
@@ -12,57 +10,55 @@
12
10
  "build": "npm run production",
13
11
  "development": "cross-env NODE_ENV=development webpack-dev-server --config webpack.development.config.js",
14
12
  "production": "cross-env NODE_ENV=production webpack --config webpack.production.config.js",
15
- "check": "npm run check:lint && npm run check:types && npm run check:tests",
13
+ "check": "npm run check:lint && npm run check:tests && npm run check:types",
16
14
  "check:lint": "echo \"Run check:lint\" && eslint .",
17
15
  "check:tests": "echo \"Run check:tests\" && jest --passWithNoTests",
18
16
  "check:types": "echo \"Run check:types\" && tsc --project tsconfig.json --noEmit"
19
17
  },
20
18
  "pre-commit": "check",
21
19
  "dependencies": {
22
- "@babel/runtime-corejs3": "^7.16.5",
23
- "core-js": "^3.20.0"
20
+ "@babel/runtime-corejs3": "^7.17.2",
21
+ "core-js": "^3.21.0"
24
22
  },
25
23
  "devDependencies": {
26
- "@babel/core": "^7.16.5",
27
- "@babel/plugin-transform-runtime": "^7.16.5",
28
- "@babel/preset-env": "^7.16.5",
29
- "@types/jest": "^26.0.24",
24
+ "@babel/core": "^7.17.2",
25
+ "@babel/plugin-transform-runtime": "^7.17.0",
26
+ "@babel/preset-env": "^7.16.11",
27
+ "@types/jest": "^27.4.0",
30
28
  "@types/webpack-env": "^1.16.3",
31
- "@typescript-eslint/eslint-plugin": "^4.33.0",
32
- "@typescript-eslint/parser": "^4.33.0",
29
+ "@typescript-eslint/eslint-plugin": "^5.11.0",
30
+ "@typescript-eslint/parser": "^5.11.0",
33
31
  "babel-loader": "^8.2.3",
34
- "clean-webpack-plugin": "^3.0.0",
32
+ "clean-webpack-plugin": "^4.0.0",
35
33
  "cross-env": "^7.0.3",
36
- "dotenv": "^10.0.0",
37
- "eslint": "^7.32.0",
38
- "eslint-config-airbnb": "^18.2.1",
39
- "eslint-config-airbnb-typescript": "^14.0.2",
40
- "eslint-import-resolver-alias": "^1.1.2",
41
- "eslint-plugin-import": "^2.25.3",
34
+ "dotenv": "^16.0.0",
35
+ "eslint": "^8.8.0",
36
+ "eslint-config-airbnb": "^19.0.4",
37
+ "eslint-config-airbnb-typescript": "^16.1.0",
38
+ "eslint-plugin-compat": "^4.0.2",
39
+ "eslint-plugin-import": "^2.25.4",
42
40
  "eslint-plugin-jsx-a11y": "^6.5.1",
43
- "eslint-plugin-react": "^7.27.1",
41
+ "eslint-plugin-react": "^7.28.0",
44
42
  "eslint-plugin-react-hooks": "^4.3.0",
45
- "history": "^4.10.1",
46
- "jest": "^26.6.3",
43
+ "jest": "^27.5.1",
47
44
  "pre-commit": "^1.2.2",
48
- "terser-webpack-plugin": "^4.2.3",
49
- "ts-jest": "^26.5.6",
50
- "ts-loader": "^8.3.0",
51
- "tslib": "^2.3.1",
52
- "typescript": "^4.5.4",
53
- "unused-files-webpack-plugin": "^3.4.0",
54
- "webpack": "^4.46.0",
55
- "webpack-cli": "^3.3.12",
56
- "webpack-dev-server": "^3.11.3",
45
+ "terser-webpack-plugin": "^5.3.1",
46
+ "ts-jest": "^27.1.3",
47
+ "ts-loader": "^9.2.6",
48
+ "typescript": "^4.5.5",
49
+ "webpack": "^5.68.0",
50
+ "webpack-cli": "^4.9.2",
51
+ "webpack-dev-server": "^4.7.4",
57
52
  "webpack-merge": "^5.8.0"
58
53
  },
59
54
  "peerDependencies": {
60
- "@pushwoosh/http-client": "^1.4.0",
55
+ "@pushwoosh/http-client": "^2.0.0",
61
56
  "rxjs": "^7.5.2",
62
57
  "tslib": "^2.3.1"
63
58
  },
64
59
  "engines": {
65
- "node": ">= 16",
66
- "npm": ">= 7"
67
- }
60
+ "node": ">=16.0.0",
61
+ "npm": ">=7.0.0"
62
+ },
63
+ "version": "2.0.0"
68
64
  }