@eid-easy/eideasy-browser-client 2.17.1 → 2.19.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.
@@ -1,9 +1,9 @@
1
- # [2.17.0](https://github.com/eideasy/eideasy-browser-client/compare/v2.16.0...v2.17.0) (2022-04-13)
1
+ # [2.18.0](https://github.com/eideasy/eideasy-browser-client/compare/v2.17.2...v2.18.0) (2022-04-20)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * add Chave Movel signature method" ([f21166c](https://github.com/eideasy/eideasy-browser-client/commit/f21166c5c4991522cf124cf5d6502fc2b3002f82))
6
+ * add fi-ftn-qes-signature method module ([384fe71](https://github.com/eideasy/eideasy-browser-client/commit/384fe715b3da2a539f9e0b029eaeb4d6c1abd91d))
7
7
 
8
8
 
9
9
 
package/CHANGELOG.md CHANGED
@@ -1,3 +1,30 @@
1
+ # [2.19.0](https://github.com/eideasy/eideasy-browser-client/compare/v2.18.0...v2.19.0) (2022-04-21)
2
+
3
+
4
+ ### Features
5
+
6
+ * add module for norwegian-bankid-qes-signature ([ba0d6c8](https://github.com/eideasy/eideasy-browser-client/commit/ba0d6c88499b032924cce17371624bc05f462a2a))
7
+
8
+
9
+
10
+ # [2.18.0](https://github.com/eideasy/eideasy-browser-client/compare/v2.17.2...v2.18.0) (2022-04-20)
11
+
12
+
13
+ ### Features
14
+
15
+ * add fi-ftn-qes-signature method module ([384fe71](https://github.com/eideasy/eideasy-browser-client/commit/384fe715b3da2a539f9e0b029eaeb4d6c1abd91d))
16
+
17
+
18
+
19
+ ## [2.17.2](https://github.com/eideasy/eideasy-browser-client/compare/v2.17.1...v2.17.2) (2022-04-15)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * fix an issue where id card signing module acted on wrong window postMessage events ([c6a6dbc](https://github.com/eideasy/eideasy-browser-client/commit/c6a6dbc44961a3da4cc82fd9f7620ca41d070ff0))
25
+
26
+
27
+
1
28
  ## [2.17.1](https://github.com/eideasy/eideasy-browser-client/compare/v2.17.0...v2.17.1) (2022-04-14)
2
29
 
3
30
 
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.eidEasyBrowserClient=t():e.eidEasyBrowserClient=t()}(self,(function(){return function(){var e,t,n={7757:function(e,t,n){e.exports=n(5666)},9669:function(e,t,n){e.exports=n(1609)},5448:function(e,t,n){"use strict";var r=n(4867),o=n(6026),i=n(4372),a=n(5327),c=n(4097),u=n(4109),s=n(7985),d=n(5061);e.exports=function(e){return new Promise((function(t,n){var l=e.data,p=e.headers,f=e.responseType;r.isFormData(l)&&delete p["Content-Type"];var g=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(h+":"+v)}var y=c(e.baseURL,e.url);function m(){if(g){var r="getAllResponseHeaders"in g?u(g.getAllResponseHeaders()):null,i={data:f&&"text"!==f&&"json"!==f?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g};o(t,n,i),g=null}}if(g.open(e.method.toUpperCase(),a(y,e.params,e.paramsSerializer),!0),g.timeout=e.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(d("Request aborted",e,"ECONNABORTED",g)),g=null)},g.onerror=function(){n(d("Network Error",e,null,g)),g=null},g.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(d(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",g)),g=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||s(y))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;b&&(p[e.xsrfHeaderName]=b)}"setRequestHeader"in g&&r.forEach(p,(function(e,t){void 0===l&&"content-type"===t.toLowerCase()?delete p[t]:g.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(g.withCredentials=!!e.withCredentials),f&&"json"!==f&&(g.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&g.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){g&&(g.abort(),n(e),g=null)})),l||(l=null),g.send(l)}))}},1609:function(e,t,n){"use strict";var r=n(4867),o=n(1849),i=n(321),a=n(7185);function c(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var u=c(n(5655));u.Axios=i,u.create=function(e){return c(a(u.defaults,e))},u.Cancel=n(5263),u.CancelToken=n(4972),u.isCancel=n(6502),u.all=function(e){return Promise.all(e)},u.spread=n(8713),u.isAxiosError=n(6268),e.exports=u,e.exports.default=u},5263:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:function(e,t,n){"use strict";var r=n(5263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},6502:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:function(e,t,n){"use strict";var r=n(4867),o=n(5327),i=n(782),a=n(3572),c=n(7185),u=n(4875),s=u.validators;function d(e){this.defaults=e,this.interceptors={request:new i,response:new i}}d.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=c(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&u.assertOptions(t,{silentJSONParsing:s.transitional(s.boolean,"1.0.0"),forcedJSONParsing:s.transitional(s.boolean,"1.0.0"),clarifyTimeoutError:s.transitional(s.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var d=[a,void 0];for(Array.prototype.unshift.apply(d,n),d.concat(i),o=Promise.resolve(e);d.length;)o=o.then(d.shift(),d.shift());return o}for(var l=e;n.length;){var p=n.shift(),f=n.shift();try{l=p(l)}catch(e){f(e);break}}try{o=a(l)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},d.prototype.getUri=function(e){return e=c(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(c(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){d.prototype[e]=function(t,n,r){return this.request(c(r||{},{method:e,url:t,data:n}))}})),e.exports=d},782:function(e,t,n){"use strict";var r=n(4867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},4097:function(e,t,n){"use strict";var r=n(1793),o=n(7303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},5061:function(e,t,n){"use strict";var r=n(481);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},3572:function(e,t,n){"use strict";var r=n(4867),o=n(8527),i=n(6502),a=n(5655);function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return c(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:function(e){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},7185:function(e,t,n){"use strict";var r=n(4867);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],c=["validateStatus"];function u(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function s(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=u(void 0,e[o])):n[o]=u(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=u(void 0,t[e]))})),r.forEach(i,s),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=u(void 0,e[o])):n[o]=u(void 0,t[o])})),r.forEach(c,(function(r){r in t?n[r]=u(e[r],t[r]):r in e&&(n[r]=u(void 0,e[r]))}));var d=o.concat(i).concat(a).concat(c),l=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===d.indexOf(e)}));return r.forEach(l,s),n}},6026:function(e,t,n){"use strict";var r=n(5061);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8527:function(e,t,n){"use strict";var r=n(4867),o=n(5655);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},5655:function(e,t,n){"use strict";var r=n(4867),o=n(6016),i=n(481),a={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,s={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=n(5448)),u),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(c(t,"application/json"),JSON.stringify(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){s.headers[e]=r.merge(a)})),e.exports=s},1849:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},5327:function(e,t,n){"use strict";var r=n(4867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var c=e.indexOf("#");-1!==c&&(e=e.slice(0,c)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:function(e,t,n){"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var c=[];c.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},6268:function(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},7985:function(e,t,n){"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6016:function(e,t,n){"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4109:function(e,t,n){"use strict";var r=n(4867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:function(e,t,n){"use strict";var r=n(696),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},a=r.version.split(".");function c(e,t){for(var n=t?t.split("."):a,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}o.transitional=function(e,t,n){var o=t&&c(t);function a(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,c){if(!1===e)throw new Error(a(r," has been removed in "+t));return o&&!i[r]&&(i[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,c)}},e.exports={isOlderVersion:c,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var c=e[i],u=void 0===c||a(c,i,e);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},4867:function(e,t,n){"use strict";var r=n(1849),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function c(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function s(e){return"[object Function]"===o.call(e)}function d(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:c,isPlainObject:u,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:s,isStream:function(e){return c(e)&&s(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:d,merge:function e(){var t={};function n(n,r){u(t[r])&&u(n)?t[r]=e(t[r],n):u(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)d(arguments[r],n);return t},extend:function(e,t,n){return d(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},696:function(e){"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.2","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},2050:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o;n.r(t),n.d(t,{allMethods:function(){return u},createClient:function(){return Vt},default:function(){return Jt},getMethodByHandlingModule:function(){return s},methodActionTypes:function(){return a},methodTypes:function(){return i},moduleNames:function(){return c}});var i={IDENTIFICATION:"identification",SIGNATURE:"signature"},a={BE_ID_LOGIN:"be-id-login",EE_ID_LOGIN:"ee-id-login",FI_ID_LOGIN:"fi-id-login",PT_ID_LOGIN:"pt-id-login",LV_ID_LOGIN:"lv-id-login",LT_ID_LOGIN:"lt-id-login",RS_ID_LOGIN:"rs-id-login",EE_MOBILE_ID:"mid-login",LV_EPARAKSTS_MOBILE_LOGIN:"lv-eparaksts-mobile-login",LT_MOBILE_ID:"lt-mobile-id",SMART_ID:"smartid",FREJA_EID_LOGIN:"freja-eid-login",ZEALID_LOGIN:"zealid-login",CZ_MOJEID:"mojeid",AT_HANDY_SIGNATUR_LOGIN:"at-handy-signatur-login",FI_FTN_LOGIN:"finnish-ftn-login",ZEAL_ID_SIGNATURE:"zealid-signature",EE_IDCARD_SIGNATURE:"id-signature",EE_MOBILEID_SIGNATURE:"mid-signature",LT_MOBILEID_SIGNATURE:"lt-mid-signature",SMARTID_SIGNATURE:"smart-id-signature",BE_IDCARD_SIGNATURE:"be-id-signature",LV_IDCARD_SIGNATURE:"lv-id-signature",LT_IDCARD_SIGNATURE:"lt-id-signature",FI_IDCARD_SIGNATURE:"fi-id-signature",LU_IDCARD_SIGNATURE:"lu-id-signature",PT_IDCARD_SIGNATURE:"pt-id-signature",LV_EPARAKSTS_MOBILE_SIGNATURE:"lv-eparaksts-mobile-signature",AT_HANDY_SIGNATUR_SIGNATURE:"at-handy-signatur-signature",REGISTRU_CENTRAS_SIGNATURE:"registru-centras-signature",OTP_EMAIL:"otp-email-non-qualified",FI_FTN_ADVANCED_SIGNATURE:"fi-ftn-advanced-signature",EVROTRUST_SIGNATURE:"evrotrust-signature",CZ_MOJEID_ADVANCED_SIGNATURE:"cz-mojeid-advanced-signature",GOOGLE_SIGNATURE:"google-signature",SE_BANKID_SIGNATURE:"swedish-bankid-signature",D_TRUST_SIGN_ME_QUALIFIED_SIGNATURE:"d-trust-sign-me-qes-signature",CHAVE_MOVEL_QUALIFIED_SIGNATURE:"chave-movel-qes-signature",MIT_ID_SIMPLE_SIGNATURE:"mit-id-simple-signature"},c={idCard:"idCard",mobileId:"mobileId",eParakstsMobile:"eParakstsMobile",smartId:"smartId",frejaEid:"frejaEid",zealId:"zealId",mojeId:"mojeId",finnishTrustNetwork:"finnishTrustNetwork",atHandy:"atHandy",idCardSignature:"idCardSignature",mobileIdSignature:"mobileIdSignature",smartIdSignature:"smartIdSignature",evroTrustSignature:"evroTrustSignature",otpSignature:"otpSignature",eParakstsMobileSignature:"eParakstsMobileSignature",ftnSignature:"ftnSignature",atHandySignature:"atHandySignature",zealIdSignature:"zealIdSignature",mojeIdSignature:"mojeIdSignature",googleSignature:"googleSignature",seBankIdSignature:"seBankIdSignature",dTrustSignMeSignature:"dTrustSignMeSignature",chaveMovelSignature:"chaveMovelSignature",mitIdSignature:"mitIdSignature"},u=Object.freeze((r(o={},i.IDENTIFICATION,[{actionType:a.BE_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["BE"]},{actionType:a.EE_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["EE"]},{actionType:a.FI_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["FI"]},{actionType:a.LV_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["LV"]},{actionType:a.LT_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["LT"]},{actionType:a.PT_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["PT"]},{actionType:a.RS_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["RS"]},{actionType:a.LV_EPARAKSTS_MOBILE_LOGIN,handlingModule:c.eParakstsMobile,supportedCountries:["LV"]},{actionType:a.LT_MOBILE_ID,handlingModule:c.mobileId,supportedCountries:["LT"]},{actionType:a.EE_MOBILE_ID,handlingModule:c.mobileId,supportedCountries:["EE"]},{actionType:a.SMART_ID,handlingModule:c.smartId,supportedCountries:["EE","LV","LT"]},{actionType:a.FREJA_EID_LOGIN,handlingModule:c.frejaEid,supportedCountries:["FI","SE","NO","DK"]},{actionType:a.ZEALID_LOGIN,handlingModule:c.zealId,supportedCountries:["AT","BE","BG","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HR","HU","IE","IT","LV","LT","NL","NO","PL","PT","RO","RS","SE","SI","SK"]},{actionType:a.CZ_MOJEID,handlingModule:c.mojeId,supportedCountries:["CZ"]},{actionType:a.FI_FTN_LOGIN,handlingModule:c.finnishTrustNetwork,supportedCountries:["FI"]},{actionType:a.AT_HANDY_SIGNATUR_LOGIN,handlingModule:c.atHandy,supportedCountries:["AT"]}]),r(o,i.SIGNATURE,[{actionType:a.EE_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["EE"]},{actionType:a.LV_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["LV"]},{actionType:a.LT_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["LT"]},{actionType:a.FI_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["FI"]},{actionType:a.PT_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["PT"]},{actionType:a.BE_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["BE"]},{actionType:a.EE_MOBILEID_SIGNATURE,handlingModule:c.mobileIdSignature,supportedCountries:["EE"]},{actionType:a.LT_MOBILEID_SIGNATURE,handlingModule:c.mobileIdSignature,supportedCountries:["LT"]},{actionType:a.SMARTID_SIGNATURE,handlingModule:c.smartIdSignature,supportedCountries:["EE","LV","LT"]},{actionType:a.EVROTRUST_SIGNATURE,handlingModule:c.evroTrustSignature,supportedCountries:["AL","AD","AM","AU","AT","AZ","BY","BE","BA","BG","CA","HR","CY","CZ","DK","EE","FI","FR","GE","DE","GR","HU","IS","IE","IT","IL","KZ","KE","XK","LV","LI","LT","LU","MT","MD","MC","ME","NL","NZ","NO","MK","PL","PT","RO","RU","SM","RS","SK","SI","ES","SE","CH","TW","TR","UA","GB","US","VA"]},{actionType:a.OTP_EMAIL,handlingModule:c.otpSignature,supportedCountries:["WORLD"]},{actionType:a.LV_EPARAKSTS_MOBILE_SIGNATURE,handlingModule:c.eParakstsMobileSignature,supportedCountries:["LV"]},{actionType:a.FI_FTN_ADVANCED_SIGNATURE,handlingModule:c.ftnSignature,supportedCountries:["FI"]},{actionType:a.AT_HANDY_SIGNATUR_SIGNATURE,handlingModule:c.atHandySignature,supportedCountries:["AT"]},{actionType:a.ZEAL_ID_SIGNATURE,handlingModule:c.zealIdSignature,supportedCountries:["AT","BE","BG","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HR","HU","IE","IT","LV","LT","NL","NO","PL","PT","RO","RS","SE","SI","SK"]},{actionType:a.CZ_MOJEID_ADVANCED_SIGNATURE,handlingModule:c.mojeIdSignature,supportedCountries:["CZ"]},{actionType:a.GOOGLE_SIGNATURE,handlingModule:c.googleSignature,supportedCountries:["WORLD"]},{actionType:a.SE_BANKID_SIGNATURE,handlingModule:c.seBankIdSignature,supportedCountries:["SE"]},{actionType:a.D_TRUST_SIGN_ME_QUALIFIED_SIGNATURE,handlingModule:c.dTrustSignMeSignature,supportedCountries:["DE","CA","ZA","GR","NL","BE","FR","ES","PT","LU","IE","IS","MT","CY","AX","FI","BG","HU","LT","LV","EE","HR","SI","IT","RO","CH","CZ","SK","LI","AT","GG","DK","SE","NO","PL","MX","AR","BR","CL","AU","ID","PH","SG","RU","JP","KR","CN","TR","IN","SA","AE","QA"]},{actionType:a.CHAVE_MOVEL_QUALIFIED_SIGNATURE,handlingModule:c.chaveMovelSignature,supportedCountries:["PT"]},{actionType:a.MIT_ID_SIMPLE_SIGNATURE,handlingModule:c.mitIdSignature,supportedCountries:["DK"]}]),o)),s=function(e,t,n){var r=u[e];if(t&&n){var o=r.find((function(e){return e.handlingModule===t&&(e.supportedCountries.includes(n)||e.supportedCountries.includes("WORLD"))}));if(!o){if(0===r.filter((function(e){return e.handlingModule===t})).length)throw new Error("Could not find matching method configuration for ".concat(e,' module "').concat(t,'"'));throw new Error('Country "'.concat(n,'" is not supported for ').concat(e,'\n module "').concat(t,'".'))}return o}return r.find((function(e){return e.handlingModule===t}))},d=n(2492),l=n.n(d),p=n(9669),f=n.n(p),g=f().CancelToken,h=f().isCancel;f().Cancel,f().interceptors.response.use((function(e){return(t=e.data)&&["error","No ID or basic level only","USER_CANCELLED","USER_REFUSED","refused","TIMEOUT","NOT_MID_CLIENT","ERROR"].includes(t.status)?Promise.reject(function(e){var t=e.message,n=e.config,r=e.code,o=e.request,i=e.response,a=new Error(t);return a.config=n,r&&(a.code=r),a.request=o,a.response=i,a.isRequestError=!0,a}({message:"Request failed with status code ".concat(e.status),config:e.config,request:e.request,response:e})):e;var t}));var v=function(e){return f()(e)};function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=function(e,t){var n,r=t.modifyRequestSettings,o=e;return"function"==typeof r&&(n=r(o)),n&&(o=l()(o,n)),o},I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(b(m({method:"get",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},t),e))},n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(b(m({method:"post",cache:"no-cache",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},t),e))};return Object.freeze({get:t,post:n,CancelToken:g})};function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.identificationModules,n=void 0===t?[]:t,r=e.signingModules,o=void 0===r?[]:r,i=e.settings,a=void 0===i?{}:i,c=e.i18n,s=e.apiEndpoints,d=e.monitoringService,l=T({},a);l.apiEndpoints=s,c.setLanguage(l.language);var p=function(e){l.countryCode=e},f=function(){return l.countryCode},g=function(){return u},h={};n.forEach((function(e){var t=e({coreContext:{config:l,i18n:c,monitoringService:d},apiClient:I({modifyRequestSettings:l.modifyRequestSettings})});h[t.MODULE_NAME]=t}));var v={};return o.forEach((function(e){var t=e({coreContext:{config:l,i18n:c,monitoringService:d},apiClient:I({modifyRequestSettings:l.modifyRequestSettings})});v[t.MODULE_NAME]=t})),Object.freeze({identification:T({},h),signature:T({},v),getAllMethods:g,setLanguage:c.setLanguage,setCountryCode:p,getCountryCode:f})};function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var j=function(e){var t=e.rawSettings,n=e.schema,o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t);return Object.keys(n).forEach((function(e){var r=n[e],i=t[e];if(r.required&&void 0===i)throw new Error('Missing required setting "'.concat(e,'"'));if(void 0===i&&(o[e]=r.default),void 0!==o[e]&&void 0!==r.type&&r.type!==w(o[e]))throw new Error('Expected "'.concat(e,'" to be type of "').concat(r.type,'", but received "').concat(w(o[e]),'"'))})),o},S={countryCode:{type:"string"},sandbox:{default:!1,type:"boolean"},clientId:{required:!0,type:"string"},redirectUri:{type:"string"},docId:{type:"string"},contractId:{type:"string"},apiEndpoints:{type:"object"},modifyRequestSettings:{type:"function"},language:{default:"en",type:"string"},success:{default:function(){},type:"function"},fail:{default:function(){},type:"function"},finished:{default:function(){},type:"function"},started:{default:function(){},type:"function"},redirect:{default:function(e){var t=e.data&&e.data.redirect_uri;return t?(window.location!==window.top.location?window.top.location.href=t:window.location.href=t,new Promise((function(){}))):e},type:"function"},remoteMonitoringEnabled:{default:!1}},C=JSON.parse('{"id-card-read-timeout":"Das Auslesen des Ausweises hat zu lange gedauert. Bitte schließen Sie alle geöffneten Browserfenster und versuchen Sie es erneut.","no_certificates":"Zertifikate konnten nicht gelesen werden. Stellen Sie sicher, dass sich die Karte im Lesegerät befindet und das Lesegerät richtig funktioniert."}'),x=n.t(C,2),k=JSON.parse('{"id-card-read-timeout":"Reading the ID card took too long. Please close all the open browser windows and then try again.","no_certificates":"Could not read certificates. Make sure that the card is in the reader and the reader is working properly."}'),A=n.t(k,2),N=JSON.parse('{"id-card-read-timeout":"ID kaardi lugemine võttis liiga kaua aega. Palun sulge kõik brauseri aknad ja proovi uuesti.","no_certificates":"Sertfikaatide lugemine ebaõnnestus. Veendu, et ID kaart on lugejas ning lugeja on arvutiga ühendatud."}'),R=n.t(N,2),D=JSON.parse('{"id-card-read-timeout":"Perskaityti asmens tapatybės kortelę užtruko per ilgai. Uždarykite visus atidarytus naršyklės langus ir bandykite dar kartą.","no_certificates":"Nepavyko perskaityti sertifikatų. Įsitikinkite, kad kortelė yra skaitytuve ir skaitytuvas veikia tinkamai."}'),P=n.t(D,2),M=JSON.parse('{"id-card-read-timeout":"ID kartes lasīšana aizņēma pārāk ilgu laiku. Lūdzu, aizveriet visus atvērtos pārlūkprogrammas logus un pēc tam mēģiniet vēlreiz.","no_certificates":"Nevarēja nolasīt sertifikātus. Pārliecinieties, vai karte ir lasītājā un lasītājs darbojas pareizi."}'),U=n.t(M,2),L=JSON.parse('{"id-card-read-timeout":"Чтение удостоверения личности заняло слишком много времени. Закройте все открытые окна браузера и повторите попытку.","no_certificates":"Не удалось прочитать сертификаты. Убедитесь, что карта находится в считывателе и считыватель работает исправно."}'),G={de:x,en:A,et:R,lt:P,lv:U,ru:n.t(L,2)},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.currentLanguage,n=void 0===t?"en":t,r=e.locales,o=void 0===r?G:r,i={currentLanguage:n},a="en",c=function(e){i.currentLanguage=e},u=function(){return i.currentLanguage},s=function(e){var t=o[i.currentLanguage];t||(t=o[a]);var n=t[e]||o[a][e];return n||(n=e),n};return Object.freeze({setLanguage:c,t:s,getCurrentLanguage:u})},B=function(e){var t=e.clientId,n=e.remoteMonitoringEnabled,r=e.apiEndpoints;return{dispatch:function(e){var o=e.message;n&&v({url:r.inCurrentMode.eideasyMonitoring(),method:"post",cache:"no-cache",withCredentials:!1,data:{client_id:t,source:"browser-client",message:o}})}}};function q(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function z(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){q(i,r,o,a,c,"next",e)}function c(e){q(i,r,o,a,c,"throw",e)}a(void 0)}))}}var H=n(7757),V=n.n(H),J=n(361),K=n.n(J)(),Z=function(e){var t=e;return h(e)&&(t.isCancel=!0),t.response&&t.response.data&&(t.response.data.message&&(t.userMessage=t.response.data.message),t.response.data.errors&&(t.userDetails=t.response.data.errors)),t},W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=e.message,r=K({message:n});if(t)r.data=t;else{if(!e.result||!e.result.data)throw new Error('Formatting the result failed.\n The function provided to createStep must return an object that has a "data" property.\n You provided: '.concat(JSON.stringify(r),"\n Set shouldFormatResult to false if you wish to disable autoformatting"));r.data=e.result.data}return r},$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.error},Y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.shouldFormatResult,r=void 0===n||n;return function(){var t=z(V().mark((function t(){var n,o,i=arguments;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.apply(void 0,i);case 2:if(n=t.sent,!(o=$(n))){t.next=6;break}throw Z(o);case 6:return t.abrupt("return",r?W(n):n);case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()};Error;const X=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],Q=Symbol(".toJSON was called"),ee=({from:e,seen:t,to_:n,forceEnumerable:r,maxDepth:o,depth:i})=>{const a=n||(Array.isArray(e)?[]:{});if(t.push(e),i>=o)return a;if("function"==typeof e.toJSON&&!0!==e[Q])return(e=>{e[Q]=!0;const t=e.toJSON();return delete e[Q],t})(e);for(const[n,c]of Object.entries(e))"function"==typeof Buffer&&Buffer.isBuffer(c)?a[n]="[object Buffer]":null===c||"object"!=typeof c||"function"!=typeof c.pipe?"function"!=typeof c&&(c&&"object"==typeof c?t.includes(e[n])?a[n]="[Circular]":(i++,a[n]=ee({from:e[n],seen:[...t],forceEnumerable:r,maxDepth:o,depth:i})):a[n]=c):a[n]="[object Stream]";for(const{property:t,enumerable:n}of X)"string"==typeof e[t]&&Object.defineProperty(a,t,{value:e[t],enumerable:!!r||n,configurable:!0,writable:!0});return a};function te(e,t={}){const{maxDepth:n=Number.POSITIVE_INFINITY}=t;return"object"==typeof e&&null!==e?ee({from:e,seen:[],forceEnumerable:!0,maxDepth:n,depth:0}):"function"==typeof e?`[Function: ${e.name||"anonymous"}]`:e}function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var oe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){var o=r.coreContext,i=r.apiClient,a=o.i18n,c=o.config,u=o.monitoringService;return Object.freeze({MODULE_NAME:e,start:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=re(re({},S),n),o=re(re({},c),e),s=j({rawSettings:o,schema:r}),d=s.success,l=s.fail,p=s.finished,f=e.language||a.getCurrentLanguage(),g=i.CancelToken.source(),h=g.token,v={onCancelByUser:function(){}},y=function(e){v.onCancelByUser=e},m=function(){g.cancel()},b=function(){v.onCancelByUser(),m()},I=function(){var e=z(V().mark((function e(){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(re(re({},s),{},{language:f,i18n:a,monitoringService:u,cancelToken:h,cancel:m,setOnCancelByUser:y,apiClient:i})).then((function(e){d(e)})).catch((function(e){console&&console.error&&console.error(e),u.dispatch({message:JSON.stringify(te(e))}),l(Z(e))})).finally(p);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return I().catch(console.error),Object.freeze({cancel:b})}})}};function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ce=c.idCard,ue=oe(ce,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.cancelToken,r=t.language,o=t.apiClient,a=t.i18n,c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.apiEndpoints.inCurrentMode.readCard({countryCode:e.countryCode,clientId:e.clientId});return e.nonce&&(t+="?nonce=".concat(e.nonce)),o.get({url:t,cancelToken:e.cancelToken})},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=s(i.IDENTIFICATION,ce,e.countryCode);return o.post({url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,country:e.countryCode,method:t.actionType,lang:e.language},cancelToken:e.cancelToken})},e.next=5,Y(c)(ae(ae({},t),{},{language:r,cancelToken:n})).catch((function(e){throw"ECONNABORTED"===e.code&&(e.userMessage=a.t("id-card-read-timeout")),e}));case 5:return d=e.sent,e.next=8,Y(u)(ae(ae({},t),{},{cancelToken:n,language:r,data:d.data}));case 8:return d=e.sent,e.abrupt("return",d);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0}}),se=function(){var e=z(V().mark((function e(t){var n,r,o,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.fn,r=t.shouldContinue,o=t.interval,i=0,a=function(){var e=z(V().mark((function e(t,c){var u,s;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i+=1,e.prev=1,e.next=4,n();case 4:u=e.sent,s=void 0,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),u=void 0,s=e.t0;case 12:if(!r({result:u,attempts:i,error:s})){e.next=14;break}return e.abrupt("return",setTimeout(a,o,t,c));case 14:return e.abrupt("return",t({result:u,error:s}));case 15:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t,n){return e.apply(this,arguments)}}(),e.abrupt("return",new Promise(a));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pe=c.smartId,fe=oe(pe,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d,l,p,f,g,v;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.started,r=void 0===n?function(){}:n,o=t.idcode,a=t.pollInterval,c=void 0===a?1e3:a,u=t.cancelToken,d=t.language,l=t.apiClient,p=function(e){var t=s(i.IDENTIFICATION,pe);return l.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:e.idcode,country:e.countryCode,method:t.actionType,lang:e.language}})},f=function(e){var t=s(i.IDENTIFICATION,pe);return l.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,method:t.actionType,timeout:2,lang:e.language}})},g=function(e){var t=1e5/e.pollInterval,n=0;return se({fn:function(){return f(le(le({},e.config),{},{data:e.data,cancelToken:e.cancelToken,language:e.language}))},shouldContinue:function(e){var r=e.result,o=r&&r.data&&r.data.status,i=h(e.error),a=e.error&&!e.error.response&&!i;a&&(n+=1);var c=!1;return e.attempts<t&&n<3&&(c=a||"RUNNING"===o),c},interval:2e3})},e.next=6,Y(p)(le(le({},t),{},{cancelToken:u,language:d,idcode:o}));case 6:return v=e.sent,r(v),e.next=10,Y(g)({config:t,data:le({},v.data),cancelToken:u,pollInterval:c,language:d});case 10:return v=e.sent,e.abrupt("return",v);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ve=c.mobileId,ye=oe(ve,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d,l,p,f,g,v,y;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.cancelToken,r=t.language,o=t.apiClient,a=t.started,c=void 0===a?function(){}:a,u=t.idcode,d=t.phone,l=t.pollInterval,p=void 0===l?1e3:l,f=function(e){var t=s(i.IDENTIFICATION,ve,e.countryCode);return o.post({url:e.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:e.idcode,phone:e.phone,country:e.countryCode,method:t.actionType,lang:e.language},cancelToken:e.cancelToken})},g=function(e){var t=s(i.IDENTIFICATION,ve,e.countryCode);return o.post({url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,method:t.actionType,timeout:2,lang:e.language},cancelToken:e.cancelToken})},v=function(e){var t=12e4/p,n=0;return se({fn:function(){return g(he(he({},e.config),{},{data:e.data,cancelToken:e.cancelToken,language:e.language}))},shouldContinue:function(e){var r=e.result,o=r&&r.data&&r.data.status,i=h(e.error),a=e.error&&!e.error.response&&!i;a&&(n+=1);var c=!1;return e.attempts<t&&n<3&&(c=a||"RUNNING"===o),c},interval:1e3})},e.next=6,Y(f)(he(he({},t),{},{cancelToken:n,language:r,idcode:u,phone:d}));case 6:return y=e.sent,c(y),e.next=10,Y(v)({config:t,data:y.data,cancelToken:n,language:r,pollInterval:p});case 10:return y=e.sent,e.abrupt("return",y);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0}}),me=c.eParakstsMobile,be=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri;return{data:{redirect_uri:t.inCurrentMode.eParakstsMobile({clientId:n,redirectUri:r})}}},Ie=oe(me,function(){var e=z(V().mark((function e(t){var n,r,o,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,o=t.clientId,i=t.redirectUri,e.next=3,Y(be)({apiEndpoints:r,clientId:o,redirectUri:i});case 3:return a=e.sent,e.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Oe=c.frejaEid,we=oe(Oe,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d,l,p,f,g,v;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.started,r=void 0===n?function(){}:n,o=t.idcode,a=t.pollInterval,c=void 0===a?1e3:a,u=t.cancelToken,d=t.language,l=t.apiClient,p=function(e){var t=s(i.IDENTIFICATION,Oe);return l.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:e.idcode,country:e.countryCode,method:t.actionType,lang:e.language}})},f=function(e){var t=s(i.IDENTIFICATION,Oe);return l.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,method:t.actionType,lang:e.language,timeout:2}})},g=function(e){var t=1e5/e.pollInterval,n=0;return se({fn:function(){return f(Te(Te({},e.config),{},{data:e.data,language:e.language,cancelToken:e.cancelToken}))},shouldContinue:function(e){var r=e.result,o=r&&r.data&&r.data.status,i=h(e.error),a=e.error&&!e.error.response&&!i;a&&(n+=1);var c=!1;return e.attempts<t&&n<3&&(c=a||"RUNNING"===o),c},interval:2e3})},e.next=6,Y(p)(Te(Te({},t),{},{cancelToken:u,language:d,idcode:o}));case 6:return v=e.sent,r(v),e.next=10,Y(g)({config:t,data:Te({},v.data),cancelToken:u,language:d,pollInterval:c});case 10:return v=e.sent,e.abrupt("return",v);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Se=c.zealId,Ce=oe(Se,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.cancelToken,r=t.apiClient,o=t.language,a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.get({withCredentials:!1,cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.zealIdIframeUrl({clientId:e.clientId})})},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.iframeHolder,n=document.createElement("iframe"),r=e.iframeUrl;n.setAttribute("src",r),n.setAttribute("referrerpolicy","origin"),n.style.border="0",t.innerHTML="";var o=function(e,t,n){var r=new URL(e.data),o=r.searchParams.get("error"),i=r.searchParams.get("code");o?n(o):i?t({data:{code:i}}):n(e.data)},i=new Promise((function(e,t){window.addEventListener("message",(function(n){var i=new URL(r);n.origin===i.origin&&(window.removeEventListener("message",o),o(n,e,t))}))}));return t.appendChild(n),i},u=function(e){var t=s(i.IDENTIFICATION,Se);return r.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{method:t.actionType,code:e.data.code,lang:e.language}})},e.next=6,Y(a)(je(je({},t),{},{cancelToken:n}));case 6:return d=e.sent,e.next=9,Y(c)(je(je({},t),{},{cancelToken:n,iframeUrl:d.data.url}));case 9:return d=e.sent,e.next=12,Y(u)(je(je({},t),{},{cancelToken:n,language:o},d));case 12:return d=e.sent,e.abrupt("return",d);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},iframeHolder:{type:"object",required:!0}}),xe=c.mojeId,ke=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri;return{data:{redirect_uri:t.inCurrentMode.mojeId({clientId:n,redirectUri:r})}}},Ae=oe(xe,function(){var e=z(V().mark((function e(t){var n,r,o,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,o=t.clientId,i=t.redirectUri,e.next=3,Y(ke)({apiEndpoints:r,clientId:o,redirectUri:i});case 3:return a=e.sent,e.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),Ne=c.finnishTrustNetwork,Re=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri,o=e.language;return{data:{redirect_uri:t.inCurrentMode.finnishTrustNetwork({clientId:n,redirectUri:r,language:o})}}},De=oe(Ne,function(){var e=z(V().mark((function e(t){var n,r,o,i,a,c;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,o=t.clientId,i=t.redirectUri,a=t.language,e.next=3,Y(Re)({apiEndpoints:r,clientId:o,redirectUri:i,language:a});case 3:return c=e.sent,e.abrupt("return",Y(n,{shouldFormatResult:!1})(c));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),Pe=c.atHandy,Me=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri;return{data:{redirect_uri:t.inCurrentMode.atHandy({clientId:n,redirectUri:r})}}},Ue=oe(Pe,function(){var e=z(V().mark((function e(t){var n,r,o,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,o=t.clientId,i=t.redirectUri,e.next=3,Y(Me)({apiEndpoints:r,clientId:o,redirectUri:i});case 3:return a=e.sent,e.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),Le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,n=void 0===t?"":t,r=e.userMessage,o=void 0===r?"":r,i=e.details,a=void 0===i?{}:i;this.message=n,this.userMessage=o,this.details=a,this.stack=(new Error).stack};(Le.prototype=new Error).name="MethodException";var Ge=Le,Fe=c.idCardSignature,Be=function(e){var t=e.iframe,n=new URL(t.src);return{post:function(e){t.contentWindow.postMessage(e,n.origin)}}},qe=function(e){var t=e.countryCode,n=e.clientId,r=e.apiEndpoints,o=s(i.SIGNATURE,Fe,t);return r.inCurrentMode.idCardIframe({clientId:n,actionType:o.actionType})},ze=function(e,t){if(e instanceof Error)throw e;var n;throw"no_certificates"===e.result&&(n=t.t("no_certificates")),new Ge({userMessage:n,message:e.message,details:e})},He=function(e){var t=e.iframeHolder,n=e.iframeUrl,r=e.i18n,o=document.createElement("iframe");o.setAttribute("src",n),o.setAttribute("referrerpolicy","origin"),o.style.width="0",o.style.height="0",o.style.position="absolute",o.style.border="0",t.innerHTML="";var i=new Promise((function(e,t){window.addEventListener("message",(function(n){var r=n.data,i=r.operation,a=r.error,c=r.status;a||"ready"!==i&&"welcome"!==i||"OK"!==c?t(n.data):e(o)}),{once:!0}),window.setTimeout((function(){return t({message:r.t("createIframeTimeout")})}),3e4)}));return t.appendChild(o),i},Ve=function(e){var t=e.messenger,n=new Promise((function(e,t){window.addEventListener("message",(function(n){var r=n.data.certificate||n.data.cert;if(r)e({certificate:r});else{var o={};!n.data||"user_cancel"!==n.data.result&&"user_cancel"!==n.data.message?o=n.data:o.isCancel=!0,t(o)}}),{once:!0})}));return t.post({operation:"getCertificate"}),n},Je=function(e){var t=e.certificate,n=e.clientId,r=e.docId,o=e.cancelToken,i=e.apiEndpoints,a=e.apiClient,c=i.inCurrentMode.startSigning();return a.post({url:c,withCredentials:!1,data:{client_id:n,doc_id:r,sign_type:"id-card",certificate:t},cancelToken:o})},Ke=function(e){var t=e.messenger,n=e.hexDigest,r=new Promise((function(e,t){window.addEventListener("message",(function(n){var r=n.data.signature_value||n.data.signature;if(r)e({signature:r});else{var o={};!n.data||"user_cancel"!==n.data.result&&"user_cancel"!==n.data.message?o=n.data:o.isCancel=!0,t(o)}}),{once:!0})}));return t.post({operation:"getSignature",hexDigest:n}),r},Ze=function(e){var t=e.signature,n=e.clientId,r=e.docId,o=e.cancelToken,i=e.apiEndpoints,a=e.apiClient,c=i.inCurrentMode.completeSignatureIdCard();return a.post({url:c,withCredentials:!1,data:{client_id:n,doc_id:r,signature_value:t},cancelToken:o})},We=oe(Fe,function(){var e=z(V().mark((function e(t){var n,r,o,i,a,c,u,s,d,l,p,f,g,h,v;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.countryCode,r=t.clientId,o=t.apiEndpoints,i=t.iframeHolder,a=t.i18n,c=t.docId,u=t.cancelToken,s=t.apiClient,d=t.monitoringService,e.next=3,Y(qe,{shouldFormatResult:!1})({countryCode:n,clientId:r,apiEndpoints:o,monitoringService:d});case 3:return l=e.sent,e.next=6,Y(He,{shouldFormatResult:!1})({iframeUrl:l,iframeHolder:i,i18n:a}).catch((function(e){return ze(e,a)}));case 6:return p=e.sent,e.next=9,Y(Be,{shouldFormatResult:!1})({iframe:p});case 9:return f=e.sent,e.next=12,Y(Ve,{shouldFormatResult:!1})({messenger:f}).catch((function(e){return ze(e,a)}));case 12:return g=e.sent,e.next=15,Y(Je)({certificate:g.certificate,clientId:r,docId:c,cancelToken:u,apiEndpoints:o,apiClient:s});case 15:return h=e.sent,e.next=18,Y(Ke,{shouldFormatResult:!1})({messenger:f,hexDigest:h.data.hexDigest}).catch((function(e){return ze(e,a)}));case 18:return v=e.sent,console.log(v),e.abrupt("return",Y(Ze)({signature:v.signature,clientId:r,docId:c,cancelToken:u,apiEndpoints:o,apiClient:s}));case 21:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{iframeHolder:{type:"object"},docId:{type:"string",required:!0}});function $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ye=function(e){var t,n=e.pollInterval,r=void 0===n?2e3:n,o=e.maxPollDuration,i=e.fn,a=e.fnArgs;o&&(t=o/r);var c=0;return{start:function(){return se({fn:function(){return i.apply(void 0,function(e){if(Array.isArray(e))return $e(e)}(e=a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return $e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$e(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var e},shouldContinue:function(e){var n=e.result,r=n&&n.data&&n.data.status,o=h(e.error),i=e.error&&!e.error.response&&!o;i&&(c+=1);var a,u,s=!1;return a=e.attempts,(!(u=t)||a<u)&&c<3&&(s=i||"RUNNING"===r),s},interval:r})}}},Xe=c.mobileIdSignature,Qe=function(e){var t=e.phone,n=e.idcode,r=e.clientId,o=e.docId,i=e.cancelToken,a=e.apiEndpoints,c=e.apiClient,u=e.countryCode,s=e.language,d=a.inCurrentMode.startSigning();return c.post({url:d,withCredentials:!1,data:{doc_id:o,client_id:r,sign_type:"mobile-id",phone:t,idcode:n,country:u,lang:s},cancelToken:i})},et=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,o=e.language,i=e.cancelToken,a=e.docId,c=e.clientId;return n.post({url:r.inCurrentMode.completeSignatureMobileId(),withCredentials:!1,data:{token:t.token,doc_id:a,timeout:2,lang:o,client_id:c},cancelToken:i})},tt=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,o=e.language,i=e.cancelToken,a=e.docId,c=e.clientId;return Ye({pollInterval:2e3,maxPollDuration:12e4,fn:et,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:o,cancelToken:i,docId:a,clientId:c}]}).start()},nt=oe(Xe,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d,l,p,f,g,h,v;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.clientId,r=t.docId,o=t.cancelToken,a=t.apiEndpoints,c=t.apiClient,u=t.monitoringService,d=t.language,l=t.idcode,p=t.phone,f=t.countryCode,g=t.started,h=s(i.SIGNATURE,Xe,f),u.dispatch({message:"".concat(h.actionType,": signing started")}),e.next=5,Y(Qe)({clientId:n,docId:r,cancelToken:o,apiEndpoints:a,apiClient:c,language:d,idcode:l,phone:p,countryCode:f});case 5:return v=e.sent,g(v),e.abrupt("return",Y(tt)({data:v.data,apiClient:c,apiEndpoints:a,language:d,cancelToken:o,docId:r,clientId:n}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),rt=c.smartIdSignature,ot=function(e){var t=e.contractId,n=e.idcode,r=e.clientId,o=e.docId,i=e.cancelToken,a=e.apiEndpoints,c=e.apiClient,u=e.countryCode,s=e.language,d=a.inCurrentMode.startSigning();return c.post({url:d,withCredentials:!1,data:{doc_id:o,contract_id:t,client_id:r,sign_type:"smart-id",idcode:n,country:u,lang:s},cancelToken:i})},it=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,o=e.language,i=e.cancelToken,a=e.docId,c=e.clientId;return n.post({url:r.inCurrentMode.completeSignatureSmartId(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:o,client_id:c,timeout:2},cancelToken:i})},at=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,o=e.language,i=e.cancelToken,a=e.docId,c=e.clientId;return Ye({pollInterval:2e3,maxPollDuration:12e4,fn:it,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:o,cancelToken:i,docId:a,clientId:c}]}).start()},ct=oe(rt,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d,l,p,f,g,h,v;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.clientId,r=t.docId,o=t.contractId,a=t.cancelToken,c=t.apiEndpoints,u=t.apiClient,d=t.monitoringService,l=t.language,p=t.idcode,f=t.countryCode,g=t.started,h=s(i.SIGNATURE,rt,f),d.dispatch({message:"".concat(h.actionType,": signing started")}),e.next=5,Y(ot)({clientId:n,docId:r,cancelToken:a,apiEndpoints:c,apiClient:u,language:l,idcode:p,countryCode:f,contractId:o});case 5:return v=e.sent,g(v),e.abrupt("return",Y(at)({data:v.data,apiClient:u,apiEndpoints:c,language:l,cancelToken:a,docId:r,clientId:n}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),ut=c.evroTrustSignature,st=function(e){var t=e.contractId,n=e.idcode,r=e.clientId,o=e.docId,i=e.cancelToken,a=e.apiEndpoints,c=e.apiClient,u=e.countryCode,s=e.language,d=e.email,l=e.phone,p=e.actionType,f=a.inCurrentMode.startSigning();return c.post({url:f,withCredentials:!1,data:{doc_id:o,contract_id:t,client_id:r,sign_type:p,idcode:n,email:d,phone:l,country:u,lang:s},cancelToken:i})},dt=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,o=e.language,i=e.cancelToken,a=e.docId,c=e.clientId;return n.post({url:r.inCurrentMode.completeSignatureEvrotrust(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:o,client_id:c},cancelToken:i})},lt=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,o=e.language,i=e.cancelToken,a=e.docId,c=e.clientId;return Ye({pollInterval:2e3,fn:dt,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:o,cancelToken:i,docId:a,clientId:c}]}).start()},pt=oe(ut,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d,l,p,f,g,h,v,y,m;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.clientId,r=t.docId,o=t.contractId,a=t.cancelToken,c=t.apiEndpoints,u=t.apiClient,d=t.monitoringService,l=t.language,p=t.idcode,f=t.phone,g=t.email,h=t.countryCode,v=t.started,y=s(i.SIGNATURE,ut,h),d.dispatch({message:"".concat(y.actionType,": signing started")}),e.next=5,Y(st)({clientId:n,docId:r,cancelToken:a,apiEndpoints:c,apiClient:u,language:l,idcode:p,phone:f,email:g,countryCode:h,contractId:o,actionType:y.actionType});case 5:return m=e.sent,v(m),e.abrupt("return",Y(lt)({data:m.data,apiClient:u,apiEndpoints:c,language:l,cancelToken:a,docId:r,clientId:n}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),ft=c.otpSignature,gt=function(e){var t=e.apiClient,n=e.apiEndpoints,r=e.language,o=e.cancelToken,i=e.docId,a=e.clientId,c=e.emailToken,u=e.smsToken;return t.post({url:n.inCurrentMode.completeOtp(),withCredentials:!1,data:{doc_id:i,timeout:2,lang:r,client_id:a,email_token:c,sms_token:u},cancelToken:o})},ht=oe(ft,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d,l,p,f,g;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.clientId,r=t.docId,o=t.cancelToken,a=t.apiEndpoints,c=t.apiClient,u=t.monitoringService,d=t.language,l=t.countryCode,p=t.emailToken,f=t.smsToken,g=s(i.SIGNATURE,ft,l),console.log(g),u.dispatch({message:"".concat(g.actionType,": signing started")}),e.abrupt("return",Y(gt)({apiClient:c,apiEndpoints:a,language:d,cancelToken:o,docId:r,clientId:n,emailToken:p,smsToken:f}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),vt={docId:{type:"string",required:!0}},yt=function(e){var t=e.moduleName,n=e.createModuleCreator,r=function(e){var t=e.contractId,n=e.clientId,r=e.docId,o=e.cancelToken,i=e.apiEndpoints,a=e.apiClient,c=e.language,u=e.actionType,s=i.inCurrentMode.startSigning();return a.post({url:s,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:u,lang:c},cancelToken:o})};return n(t,function(){var e=z(V().mark((function e(n){var o,a,c,u,d,l,p,f,g,h,v,y;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=n.clientId,a=n.docId,c=n.contractId,u=n.cancelToken,d=n.apiEndpoints,l=n.apiClient,p=n.monitoringService,f=n.language,g=n.countryCode,h=n.redirect,v=s(i.SIGNATURE,t,g),p.dispatch({message:"".concat(v.actionType,": signing started")}),e.next=5,Y(r)({contractId:c,clientId:o,docId:a,cancelToken:u,apiEndpoints:d,apiClient:l,language:f,actionType:v.actionType});case 5:return y=e.sent,e.abrupt("return",Y(h,{shouldFormatResult:!1})(y));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),vt)},mt=yt({moduleName:c.eParakstsMobileSignature,createModuleCreator:oe}),bt=yt({moduleName:c.ftnSignature,createModuleCreator:oe}),It=yt({moduleName:c.atHandySignature,createModuleCreator:oe}),Et=c.zealIdSignature,Tt=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.docId;return{data:{redirect_uri:t.inCurrentMode.startZealIdSignature({clientId:n,docId:r})}}},Ot=oe(Et,function(){var e=z(V().mark((function e(t){var n,r,o,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,o=t.clientId,i=t.docId,e.next=3,Y(Tt)({apiEndpoints:r,clientId:o,docId:i});case 3:return a=e.sent,e.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),wt=yt({moduleName:c.mojeIdSignature,createModuleCreator:oe}),_t=yt({moduleName:c.googleSignature,createModuleCreator:oe}),jt=yt({moduleName:c.seBankIdSignature,createModuleCreator:oe}),St=function(e){var t=e.url,n=e.onClosed,r={width:800,height:600},o=function(e){var t=e.parent,n=e.child;return{left:t.width/2-n.width/2+t.left,top:t.height/2-n.height/2+t.top}}({parent:{width:window.outerWidth,height:window.outerHeight,left:window.screenLeft,top:window.screenTop},child:r}),i=["toolbar=no","location=no","directories=no","status=no","menubar=no","scrollbars=no","resizable=no","copyhistory=no","width=".concat(r.width),"height=".concat(r.height),"left=".concat(o.left),"top=".concat(o.top)],a=window.open(t,"eID Easy",i.join(", ")),c=setInterval((function(){a.closed&&(clearInterval(c),n())}),500);return{window:a}},Ct=c.dTrustSignMeSignature,xt=function(e){var t=e.username,n=e.language,r=e.clientId,o=e.docId,i=e.cancelToken,a=e.apiEndpoints,c=e.apiClient,u=e.actionType,s=a.inCurrentMode.startSigning();return c.post({url:s,withCredentials:!1,data:{doc_id:o,client_id:r,sign_type:u,lang:n,username:t},cancelToken:i})},kt=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,o=e.language,i=e.cancelToken,a=e.docId,c=e.clientId;return n.post({url:r.inCurrentMode.completeSignatureDTrustSignMe(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:o,client_id:c},cancelToken:i})},At=function(e){var t=e.url,n=e.onClosed;return{data:St({url:t,onClosed:n})}},Nt=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,o=e.language,i=e.cancelToken,a=e.docId,c=e.clientId;return Ye({pollInterval:2e3,fn:kt,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:o,cancelToken:i,docId:a,clientId:c}]}).start()},Rt=oe(Ct,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d,l,p,f,g,h,v,y,m;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.clientId,r=t.docId,o=t.cancelToken,a=t.apiEndpoints,c=t.apiClient,u=t.monitoringService,d=t.username,l=t.countryCode,p=t.language,f=t.started,g=t.cancel,h=s(i.SIGNATURE,Ct,l),u.dispatch({message:"".concat(h.actionType,": signing started")}),e.next=5,Y(xt)({clientId:n,docId:r,cancelToken:o,apiEndpoints:a,apiClient:c,username:d,language:p,actionType:h.actionType});case 5:return v=e.sent,f(v),e.next=9,Y(At)({url:v.data.redirect_uri,onClosed:function(){return g()}});case 9:return y=e.sent,e.next=12,Y(Nt)({data:v.data,apiClient:c,apiEndpoints:a,language:p,cancelToken:o,docId:r,clientId:n});case 12:return m=e.sent,y.data.window.close(),e.abrupt("return",m);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{username:{type:"string"},docId:{type:"string",required:!0}}),Dt=c.chaveMovelSignature,Pt=function(e){var t=e.signingPin,n=e.phone,r=e.language,o=e.clientId,i=e.docId,a=e.cancelToken,c=e.apiEndpoints,u=e.apiClient,s=e.actionType,d=c.inCurrentMode.startSigning();return u.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:o,sign_type:s,lang:r,signing_pin:t,phone:n},cancelToken:a})},Mt=function(e){var t=e.startSigningResult,n=e.confirmationCodeRequest,r=e.setOnCancelByUser;return new Promise((function(e,o){r((function(){var e=new Error("USER_REFUSED");e.isCancel=!0,o(e)})),n({data:t.data},e,o)}))},Ut=function(e){var t=e.token,n=e.apiClient,r=e.apiEndpoints,o=e.language,i=e.cancelToken,a=e.docId,c=e.clientId,u=e.confirmationCode;return n.post({url:r.inCurrentMode.completeSignatureChaveMovel(),withCredentials:!1,data:{token:t,doc_id:a,lang:o,client_id:c,confirmation_code:u},cancelToken:i})},Lt=oe(Dt,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d,l,p,f,g,h,v,y,m,b;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.clientId,r=t.docId,o=t.cancelToken,a=t.apiEndpoints,c=t.apiClient,u=t.monitoringService,d=t.countryCode,l=t.language,p=t.started,f=t.confirmationCodeRequest,g=t.signingPin,h=t.phone,v=t.setOnCancelByUser,y=s(i.SIGNATURE,Dt,d),u.dispatch({message:"".concat(y.actionType,": signing started")}),e.next=5,Y(Pt)({clientId:n,docId:r,cancelToken:o,apiEndpoints:a,apiClient:c,language:l,actionType:y.actionType,signingPin:g,phone:h});case 5:return m=e.sent,p(m),e.next=9,Y(Mt,{shouldFormatResult:!1})({startSigningResult:m,confirmationCodeRequest:f,setOnCancelByUser:v});case 9:return b=e.sent,e.abrupt("return",Y(Ut)({token:m.data.token,apiClient:c,apiEndpoints:a,language:l,cancelToken:o,docId:r,clientId:n,confirmationCode:b}));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{pin:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Gt=yt({moduleName:c.mitIdSignature,createModuleCreator:oe}),Ft=Object.freeze({sandbox:"sandbox",production:"production"});function Bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zt=function(e,t,n){var r={};return Object.keys(e).forEach((function(o){r[o]=function(e,t,n){return function(r){var o=qt(qt({},t),r);return n?n(e(o)):e(o)}}(e[o],t,n)})),r},Ht=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=qt({base:function(e){return e.baseUrl},readCard:function(e){var n=e.countryCode,r=void 0===n?t.countryCode.toLowerCase():n,o=e.clientId;return"https://".concat(r,".eideasy.com/api/identity/").concat(o,"/read-card")},eParakstsMobile:function(e){var t=e.baseUrl,n=e.clientId,r=e.redirectUri;return"".concat(t,"/oauth/start/lv-eparaksts-mobile-login?client_id=").concat(n,"&redirect_uri=").concat(r,"&response_type=code")},zealIdIframeUrl:function(e){var t=e.baseUrl,n=e.clientId;return"".concat(t,"/api/identity/").concat(n,"/zealid/get_iframe_url")},mojeId:function(e){var t=e.baseUrl,n=e.clientId,r=e.redirectUri;return"".concat(t,"/oauth/start/mojeid?client_id=").concat(n,"&redirect_uri=").concat(r,"&response_type=code")},finnishTrustNetwork:function(e){var t=e.baseUrl,n=e.clientId,r=e.redirectUri,o=e.language;return"".concat(t,"/oauth/start/finnish-ftn-login?client_id=").concat(n,"&redirect_uri=").concat(r,"&response_type=code&lang=").concat(o)},atHandy:function(e){var t=e.baseUrl,n=e.clientId,r=e.redirectUri;return"".concat(t,"/oauth/authorize?client_id=").concat(n,"&redirect_uri=").concat(r,"&response_type=code&method=at-handy-signatur-login")},idCardIframe:function(e){var t=e.baseUrl,n=e.clientId,r=e.actionType;return"".concat(t,"/signatures/integration/").concat(n,"/").concat(r)},startSigning:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/start-signing")},completeSignatureIdCard:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/id-card/complete")},completeSignatureMobileId:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/sk-mobile-id/complete")},completeSignatureSmartId:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/sk-smart-id/complete")},completeSignatureEvrotrust:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/evrotrust-signature/complete")},completeSignatureDTrustSignMe:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/d-trust-sign-me-qes-signature/complete")},completeSignatureChaveMovel:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/chave-movel-qes-signature/complete")},completeOtp:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/non-qualified/complete")},eideasyMonitoring:function(e){var t=e.baseUrl;return"".concat(t,"/api/monitor")},startZealIdSignature:function(e){var t=e.baseUrl,n=e.clientId,r=e.docId;return"".concat(t,"/zealid/signature/start?client_id=").concat(n,"&doc_id=").concat(r)}},n),i=(r(e={},Ft.production,qt({},zt(o,{baseUrl:n.base?n.base():"https://id.eideasy.com"},t.modifyEndpointUrl))),r(e,Ft.sandbox,qt({},zt(o,{baseUrl:n.base?n.base():"https://test.eideasy.com"},t.modifyEndpointUrl))),e);return{get inCurrentMode(){var e=t.sandbox?Ft.sandbox:Ft.production;return i[e]}}},Vt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=j({rawSettings:e,schema:S}),n=F({currentLanguage:"en"}),r=Ht({countryCode:t.countryCode,sandbox:t.sandbox,modifyEndpointUrl:t.modifyEndpointUrl},t.apiEndpoints),o=B({clientId:t.clientId,remoteMonitoringEnabled:t.remoteMonitoringEnabled,apiEndpoints:r});return O({settings:t,i18n:n,monitoringService:o,apiEndpoints:r,identificationModules:[ue,fe,ye,Ie,we,Ce,Ae,De,Ue],signingModules:[We,nt,ct,pt,ht,mt,bt,It,Ot,wt,_t,jt,Rt,Lt,Gt]})},Jt=Vt},8552:function(e,t,n){var r=n(852)(n(5639),"DataView");e.exports=r},1989:function(e,t,n){var r=n(1789),o=n(401),i=n(7667),a=n(1327),c=n(1866);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},8407:function(e,t,n){var r=n(7040),o=n(4125),i=n(2117),a=n(7518),c=n(4705);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},7071:function(e,t,n){var r=n(852)(n(5639),"Map");e.exports=r},3369:function(e,t,n){var r=n(4785),o=n(1285),i=n(6e3),a=n(9916),c=n(5265);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},3818:function(e,t,n){var r=n(852)(n(5639),"Promise");e.exports=r},8525:function(e,t,n){var r=n(852)(n(5639),"Set");e.exports=r},6384:function(e,t,n){var r=n(8407),o=n(7465),i=n(3779),a=n(7599),c=n(4758),u=n(4309);function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,e.exports=s},2705:function(e,t,n){var r=n(5639).Symbol;e.exports=r},1149:function(e,t,n){var r=n(5639).Uint8Array;e.exports=r},577:function(e,t,n){var r=n(852)(n(5639),"WeakMap");e.exports=r},6874:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},7412:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},4963:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},4636:function(e,t,n){var r=n(2545),o=n(5694),i=n(1469),a=n(4144),c=n(5776),u=n(6719),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),d=!n&&o(e),l=!n&&!d&&a(e),p=!n&&!d&&!l&&u(e),f=n||d||l||p,g=f?r(e.length,String):[],h=g.length;for(var v in e)!t&&!s.call(e,v)||f&&("length"==v||l&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||c(v,h))||g.push(v);return g}},2488:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},6556:function(e,t,n){var r=n(9465),o=n(7813);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},4865:function(e,t,n){var r=n(9465),o=n(7813),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},8470:function(e,t,n){var r=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},4037:function(e,t,n){var r=n(8363),o=n(3674);e.exports=function(e,t){return e&&r(t,o(t),e)}},3886:function(e,t,n){var r=n(8363),o=n(1704);e.exports=function(e,t){return e&&r(t,o(t),e)}},9465:function(e,t,n){var r=n(8777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},5990:function(e,t,n){var r=n(6384),o=n(7412),i=n(4865),a=n(4037),c=n(3886),u=n(4626),s=n(278),d=n(8805),l=n(1911),p=n(8234),f=n(6904),g=n(4160),h=n(3824),v=n(9148),y=n(8517),m=n(1469),b=n(4144),I=n(6688),E=n(3218),T=n(2928),O=n(3674),w=n(1704),_="[object Arguments]",j="[object Function]",S="[object Object]",C={};C[_]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[S]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[j]=C["[object WeakMap]"]=!1,e.exports=function e(t,n,x,k,A,N){var R,D=1&n,P=2&n,M=4&n;if(x&&(R=A?x(t,k,A,N):x(t)),void 0!==R)return R;if(!E(t))return t;var U=m(t);if(U){if(R=h(t),!D)return s(t,R)}else{var L=g(t),G=L==j||"[object GeneratorFunction]"==L;if(b(t))return u(t,D);if(L==S||L==_||G&&!A){if(R=P||G?{}:y(t),!D)return P?l(t,c(R,t)):d(t,a(R,t))}else{if(!C[L])return A?t:{};R=v(t,L,D)}}N||(N=new r);var F=N.get(t);if(F)return F;N.set(t,R),T(t)?t.forEach((function(r){R.add(e(r,n,x,r,t,N))})):I(t)&&t.forEach((function(r,o){R.set(o,e(r,n,x,o,t,N))}));var B=U?void 0:(M?P?f:p:P?w:O)(t);return o(B||t,(function(r,o){B&&(r=t[o=r]),i(R,o,e(r,n,x,o,t,N))})),R}},3118:function(e,t,n){var r=n(3218),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},8483:function(e,t,n){var r=n(5063)();e.exports=r},8866:function(e,t,n){var r=n(2488),o=n(1469);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},4239:function(e,t,n){var r=n(2705),o=n(9607),i=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},9454:function(e,t,n){var r=n(4239),o=n(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},5588:function(e,t,n){var r=n(4160),o=n(7005);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},8458:function(e,t,n){var r=n(3560),o=n(5346),i=n(3218),a=n(346),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,d=u.toString,l=s.hasOwnProperty,p=RegExp("^"+d.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:c).test(a(e))}},9221:function(e,t,n){var r=n(4160),o=n(7005);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},8749:function(e,t,n){var r=n(4239),o=n(1780),i=n(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},280:function(e,t,n){var r=n(5726),o=n(6916),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},313:function(e,t,n){var r=n(3218),o=n(5726),i=n(3498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var c in e)("constructor"!=c||!t&&a.call(e,c))&&n.push(c);return n}},2980:function(e,t,n){var r=n(6384),o=n(6556),i=n(8483),a=n(9783),c=n(3218),u=n(1704),s=n(6390);e.exports=function e(t,n,d,l,p){t!==n&&i(n,(function(i,u){if(p||(p=new r),c(i))a(t,n,u,d,e,l,p);else{var f=l?l(s(t,u),i,u+"",t,n,p):void 0;void 0===f&&(f=i),o(t,u,f)}}),u)}},9783:function(e,t,n){var r=n(6556),o=n(4626),i=n(7133),a=n(278),c=n(8517),u=n(5694),s=n(1469),d=n(9246),l=n(4144),p=n(3560),f=n(3218),g=n(8630),h=n(6719),v=n(6390),y=n(9881);e.exports=function(e,t,n,m,b,I,E){var T=v(e,n),O=v(t,n),w=E.get(O);if(w)r(e,n,w);else{var _=I?I(T,O,n+"",e,t,E):void 0,j=void 0===_;if(j){var S=s(O),C=!S&&l(O),x=!S&&!C&&h(O);_=O,S||C||x?s(T)?_=T:d(T)?_=a(T):C?(j=!1,_=o(O,!0)):x?(j=!1,_=i(O,!0)):_=[]:g(O)||u(O)?(_=T,u(T)?_=y(T):f(T)&&!p(T)||(_=c(O))):j=!1}j&&(E.set(O,_),b(_,O,m,I,E),E.delete(O)),r(e,n,_)}}},5976:function(e,t,n){var r=n(6557),o=n(5357),i=n(61);e.exports=function(e,t){return i(o(e,t,r),e+"")}},6560:function(e,t,n){var r=n(5703),o=n(8777),i=n(6557),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},2545:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},1717:function(e){e.exports=function(e){return function(t){return e(t)}}},4318:function(e,t,n){var r=n(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},4626:function(e,t,n){e=n.nmd(e);var r=n(5639),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,c=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}},7157:function(e,t,n){var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},3147:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},419:function(e,t,n){var r=n(2705),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},7133:function(e,t,n){var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},278:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},8363:function(e,t,n){var r=n(4865),o=n(9465);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var c=-1,u=t.length;++c<u;){var s=t[c],d=i?i(n[s],e[s],s,n,e):void 0;void 0===d&&(d=e[s]),a?o(n,s,d):r(n,s,d)}return n}},8805:function(e,t,n){var r=n(8363),o=n(9551);e.exports=function(e,t){return r(e,o(e),t)}},1911:function(e,t,n){var r=n(8363),o=n(1442);e.exports=function(e,t){return r(e,o(e),t)}},4429:function(e,t,n){var r=n(5639)["__core-js_shared__"];e.exports=r},1463:function(e,t,n){var r=n(5976),o=n(6612);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,c=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,c&&o(n[0],n[1],c)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t}))}},5063:function(e){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),c=a.length;c--;){var u=a[e?c:++o];if(!1===n(i[u],u,i))break}return t}}},8777:function(e,t,n){var r=n(852),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},1957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8234:function(e,t,n){var r=n(8866),o=n(9551),i=n(3674);e.exports=function(e){return r(e,i,o)}},6904:function(e,t,n){var r=n(8866),o=n(1442),i=n(1704);e.exports=function(e){return r(e,i,o)}},5050:function(e,t,n){var r=n(7019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},852:function(e,t,n){var r=n(8458),o=n(7801);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},5924:function(e,t,n){var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},9607:function(e,t,n){var r=n(2705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}},9551:function(e,t,n){var r=n(4963),o=n(479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=c},1442:function(e,t,n){var r=n(2488),o=n(5924),i=n(9551),a=n(479),c=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=c},4160:function(e,t,n){var r=n(8552),o=n(7071),i=n(3818),a=n(8525),c=n(577),u=n(4239),s=n(346),d="[object Map]",l="[object Promise]",p="[object Set]",f="[object WeakMap]",g="[object DataView]",h=s(r),v=s(o),y=s(i),m=s(a),b=s(c),I=u;(r&&I(new r(new ArrayBuffer(1)))!=g||o&&I(new o)!=d||i&&I(i.resolve())!=l||a&&I(new a)!=p||c&&I(new c)!=f)&&(I=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case h:return g;case v:return d;case y:return l;case m:return p;case b:return f}return t}),e.exports=I},7801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},1789:function(e,t,n){var r=n(4536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:function(e,t,n){var r=n(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},1327:function(e,t,n){var r=n(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},1866:function(e,t,n){var r=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},3824:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},9148:function(e,t,n){var r=n(4318),o=n(7157),i=n(3147),a=n(419),c=n(7133);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return c(e,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return i(e);case"[object Set]":return new u;case"[object Symbol]":return a(e)}}},8517:function(e,t,n){var r=n(3118),o=n(5924),i=n(5726);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},5776:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6612:function(e,t,n){var r=n(7813),o=n(8612),i=n(5776),a=n(3218);e.exports=function(e,t,n){if(!a(n))return!1;var c=typeof t;return!!("number"==c?o(n)&&i(t,n.length):"string"==c&&t in n)&&r(n[t],e)}},7019:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:function(e,t,n){var r,o=n(4429),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},5726:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},7040:function(e){e.exports=function(){this.__data__=[],this.size=0}},4125:function(e,t,n){var r=n(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},2117:function(e,t,n){var r=n(8470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7518:function(e,t,n){var r=n(8470);e.exports=function(e){return r(this.__data__,e)>-1}},4705:function(e,t,n){var r=n(8470);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},4785:function(e,t,n){var r=n(1989),o=n(8407),i=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},1285:function(e,t,n){var r=n(5050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6e3:function(e,t,n){var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:function(e,t,n){var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:function(e,t,n){var r=n(5050);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},4536:function(e,t,n){var r=n(852)(Object,"create");e.exports=r},6916:function(e,t,n){var r=n(5569)(Object.keys,Object);e.exports=r},3498:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},1167:function(e,t,n){e=n.nmd(e);var r=n(1957),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,c=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=c},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},5357:function(e,t,n){var r=n(6874),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,c=o(i.length-t,0),u=Array(c);++a<c;)u[a]=i[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=i[a];return s[t]=n(u),r(e,this,s)}}},5639:function(e,t,n){var r=n(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},6390:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},61:function(e,t,n){var r=n(6560),o=n(1275)(r);e.exports=o},1275:function(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7465:function(e,t,n){var r=n(8407);e.exports=function(){this.__data__=new r,this.size=0}},3779:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:function(e){e.exports=function(e){return this.__data__.get(e)}},4758:function(e){e.exports=function(e){return this.__data__.has(e)}},4309:function(e,t,n){var r=n(8407),o=n(7071),i=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},361:function(e,t,n){var r=n(5990);e.exports=function(e){return r(e,5)}},5703:function(e){e.exports=function(e){return function(){return e}}},7813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},6557:function(e){e.exports=function(e){return e}},5694:function(e,t,n){var r=n(9454),o=n(7005),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!c.call(e,"callee")};e.exports=u},1469:function(e){var t=Array.isArray;e.exports=t},8612:function(e,t,n){var r=n(3560),o=n(1780);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},9246:function(e,t,n){var r=n(8612),o=n(7005);e.exports=function(e){return o(e)&&r(e)}},4144:function(e,t,n){e=n.nmd(e);var r=n(5639),o=n(5062),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,c=a&&a.exports===i?r.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;e.exports=u},3560:function(e,t,n){var r=n(4239),o=n(3218);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6688:function(e,t,n){var r=n(5588),o=n(1717),i=n(1167),a=i&&i.isMap,c=a?o(a):r;e.exports=c},3218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},8630:function(e,t,n){var r=n(4239),o=n(5924),i=n(7005),a=Function.prototype,c=Object.prototype,u=a.toString,s=c.hasOwnProperty,d=u.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==d}},2928:function(e,t,n){var r=n(9221),o=n(1717),i=n(1167),a=i&&i.isSet,c=a?o(a):r;e.exports=c},6719:function(e,t,n){var r=n(8749),o=n(1717),i=n(1167),a=i&&i.isTypedArray,c=a?o(a):r;e.exports=c},3674:function(e,t,n){var r=n(4636),o=n(280),i=n(8612);e.exports=function(e){return i(e)?r(e):o(e)}},1704:function(e,t,n){var r=n(4636),o=n(313),i=n(8612);e.exports=function(e){return i(e)?r(e,!0):o(e)}},2492:function(e,t,n){var r=n(2980),o=n(1463)((function(e,t,n){r(e,t,n)}));e.exports=o},479:function(e){e.exports=function(){return[]}},5062:function(e){e.exports=function(){return!1}},9881:function(e,t,n){var r=n(8363),o=n(1704);e.exports=function(e){return r(e,o(e))}},5666:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new C(r||[]);return i._invoke=function(e,t,n){var r=l;return function(o,i){if(r===f)throw new Error("Generator is already running");if(r===g){if("throw"===o)throw i;return k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=d(e,t,n);if("normal"===u.type){if(r=n.done?g:p,u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=g,n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var l="suspendedStart",p="suspendedYield",f="executing",g="completed",h={};function v(){}function y(){}function m(){}var b={};b[i]=function(){return this};var I=Object.getPrototypeOf,E=I&&I(I(x([])));E&&E!==n&&r.call(E,i)&&(b=E);var T=m.prototype=v.prototype=Object.create(b);function O(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,i,a,c){var u=d(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,c)}))}c(u.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function _(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,_(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=d(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function x(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:k}}function k(){return{value:t,done:!0}}return y.prototype=T.constructor=m,m.constructor=y,y.displayName=u(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u(e,c,"GeneratorFunction")),e.prototype=Object.create(T),e},e.awrap=function(e){return{__await:e}},O(w.prototype),w.prototype[a]=function(){return this},e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(T),u(T,c,"Generator"),T[i]=function(){return this},T.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:x(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e](i,i.exports,o),i.loaded=!0,i.exports}return o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&r&&n;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},o.d(i,a),i},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},o(2050)}()}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.eidEasyBrowserClient=t():e.eidEasyBrowserClient=t()}(self,(function(){return function(){var e,t,n={7757:function(e,t,n){e.exports=n(5666)},9669:function(e,t,n){e.exports=n(1609)},5448:function(e,t,n){"use strict";var r=n(4867),o=n(6026),i=n(4372),a=n(5327),c=n(4097),u=n(4109),s=n(7985),d=n(5061);e.exports=function(e){return new Promise((function(t,n){var l=e.data,p=e.headers,f=e.responseType;r.isFormData(l)&&delete p["Content-Type"];var g=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(h+":"+v)}var y=c(e.baseURL,e.url);function m(){if(g){var r="getAllResponseHeaders"in g?u(g.getAllResponseHeaders()):null,i={data:f&&"text"!==f&&"json"!==f?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g};o(t,n,i),g=null}}if(g.open(e.method.toUpperCase(),a(y,e.params,e.paramsSerializer),!0),g.timeout=e.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(d("Request aborted",e,"ECONNABORTED",g)),g=null)},g.onerror=function(){n(d("Network Error",e,null,g)),g=null},g.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(d(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",g)),g=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||s(y))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;b&&(p[e.xsrfHeaderName]=b)}"setRequestHeader"in g&&r.forEach(p,(function(e,t){void 0===l&&"content-type"===t.toLowerCase()?delete p[t]:g.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(g.withCredentials=!!e.withCredentials),f&&"json"!==f&&(g.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&g.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){g&&(g.abort(),n(e),g=null)})),l||(l=null),g.send(l)}))}},1609:function(e,t,n){"use strict";var r=n(4867),o=n(1849),i=n(321),a=n(7185);function c(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var u=c(n(5655));u.Axios=i,u.create=function(e){return c(a(u.defaults,e))},u.Cancel=n(5263),u.CancelToken=n(4972),u.isCancel=n(6502),u.all=function(e){return Promise.all(e)},u.spread=n(8713),u.isAxiosError=n(6268),e.exports=u,e.exports.default=u},5263:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:function(e,t,n){"use strict";var r=n(5263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},6502:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:function(e,t,n){"use strict";var r=n(4867),o=n(5327),i=n(782),a=n(3572),c=n(7185),u=n(4875),s=u.validators;function d(e){this.defaults=e,this.interceptors={request:new i,response:new i}}d.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=c(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&u.assertOptions(t,{silentJSONParsing:s.transitional(s.boolean,"1.0.0"),forcedJSONParsing:s.transitional(s.boolean,"1.0.0"),clarifyTimeoutError:s.transitional(s.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var d=[a,void 0];for(Array.prototype.unshift.apply(d,n),d.concat(i),o=Promise.resolve(e);d.length;)o=o.then(d.shift(),d.shift());return o}for(var l=e;n.length;){var p=n.shift(),f=n.shift();try{l=p(l)}catch(e){f(e);break}}try{o=a(l)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},d.prototype.getUri=function(e){return e=c(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(c(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){d.prototype[e]=function(t,n,r){return this.request(c(r||{},{method:e,url:t,data:n}))}})),e.exports=d},782:function(e,t,n){"use strict";var r=n(4867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},4097:function(e,t,n){"use strict";var r=n(1793),o=n(7303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},5061:function(e,t,n){"use strict";var r=n(481);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},3572:function(e,t,n){"use strict";var r=n(4867),o=n(8527),i=n(6502),a=n(5655);function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return c(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:function(e){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},7185:function(e,t,n){"use strict";var r=n(4867);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],c=["validateStatus"];function u(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function s(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=u(void 0,e[o])):n[o]=u(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=u(void 0,t[e]))})),r.forEach(i,s),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=u(void 0,e[o])):n[o]=u(void 0,t[o])})),r.forEach(c,(function(r){r in t?n[r]=u(e[r],t[r]):r in e&&(n[r]=u(void 0,e[r]))}));var d=o.concat(i).concat(a).concat(c),l=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===d.indexOf(e)}));return r.forEach(l,s),n}},6026:function(e,t,n){"use strict";var r=n(5061);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8527:function(e,t,n){"use strict";var r=n(4867),o=n(5655);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},5655:function(e,t,n){"use strict";var r=n(4867),o=n(6016),i=n(481),a={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,s={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=n(5448)),u),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(c(t,"application/json"),JSON.stringify(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){s.headers[e]=r.merge(a)})),e.exports=s},1849:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},5327:function(e,t,n){"use strict";var r=n(4867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var c=e.indexOf("#");-1!==c&&(e=e.slice(0,c)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:function(e,t,n){"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var c=[];c.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},6268:function(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},7985:function(e,t,n){"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6016:function(e,t,n){"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4109:function(e,t,n){"use strict";var r=n(4867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:function(e,t,n){"use strict";var r=n(696),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},a=r.version.split(".");function c(e,t){for(var n=t?t.split("."):a,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}o.transitional=function(e,t,n){var o=t&&c(t);function a(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,c){if(!1===e)throw new Error(a(r," has been removed in "+t));return o&&!i[r]&&(i[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,c)}},e.exports={isOlderVersion:c,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var c=e[i],u=void 0===c||a(c,i,e);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},4867:function(e,t,n){"use strict";var r=n(1849),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function c(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function s(e){return"[object Function]"===o.call(e)}function d(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:c,isPlainObject:u,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:s,isStream:function(e){return c(e)&&s(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:d,merge:function e(){var t={};function n(n,r){u(t[r])&&u(n)?t[r]=e(t[r],n):u(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)d(arguments[r],n);return t},extend:function(e,t,n){return d(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},696:function(e){"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.2","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},198:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o;n.r(t),n.d(t,{allMethods:function(){return u},createClient:function(){return Wt},default:function(){return $t},getMethodByHandlingModule:function(){return s},methodActionTypes:function(){return a},methodTypes:function(){return i},moduleNames:function(){return c}});var i={IDENTIFICATION:"identification",SIGNATURE:"signature"},a={BE_ID_LOGIN:"be-id-login",EE_ID_LOGIN:"ee-id-login",FI_ID_LOGIN:"fi-id-login",PT_ID_LOGIN:"pt-id-login",LV_ID_LOGIN:"lv-id-login",LT_ID_LOGIN:"lt-id-login",RS_ID_LOGIN:"rs-id-login",EE_MOBILE_ID:"mid-login",LV_EPARAKSTS_MOBILE_LOGIN:"lv-eparaksts-mobile-login",LT_MOBILE_ID:"lt-mobile-id",SMART_ID:"smartid",FREJA_EID_LOGIN:"freja-eid-login",ZEALID_LOGIN:"zealid-login",CZ_MOJEID:"mojeid",AT_HANDY_SIGNATUR_LOGIN:"at-handy-signatur-login",FI_FTN_LOGIN:"finnish-ftn-login",ZEAL_ID_SIGNATURE:"zealid-signature",EE_IDCARD_SIGNATURE:"id-signature",EE_MOBILEID_SIGNATURE:"mid-signature",LT_MOBILEID_SIGNATURE:"lt-mid-signature",SMARTID_SIGNATURE:"smart-id-signature",BE_IDCARD_SIGNATURE:"be-id-signature",LV_IDCARD_SIGNATURE:"lv-id-signature",LT_IDCARD_SIGNATURE:"lt-id-signature",FI_IDCARD_SIGNATURE:"fi-id-signature",LU_IDCARD_SIGNATURE:"lu-id-signature",PT_IDCARD_SIGNATURE:"pt-id-signature",LV_EPARAKSTS_MOBILE_SIGNATURE:"lv-eparaksts-mobile-signature",AT_HANDY_SIGNATUR_SIGNATURE:"at-handy-signatur-signature",REGISTRU_CENTRAS_SIGNATURE:"registru-centras-signature",OTP_EMAIL:"otp-email-non-qualified",FI_FTN_ADVANCED_SIGNATURE:"fi-ftn-advanced-signature",FI_FTN_QUALIFIED_SIGNATURE:"fi-ftn-qes-signature",EVROTRUST_SIGNATURE:"evrotrust-signature",CZ_MOJEID_ADVANCED_SIGNATURE:"cz-mojeid-advanced-signature",GOOGLE_SIGNATURE:"google-signature",SE_BANKID_SIGNATURE:"swedish-bankid-signature",D_TRUST_SIGN_ME_QUALIFIED_SIGNATURE:"d-trust-sign-me-qes-signature",CHAVE_MOVEL_QUALIFIED_SIGNATURE:"chave-movel-qes-signature",MIT_ID_SIMPLE_SIGNATURE:"mit-id-simple-signature",NORWEGIAN_BANKID_QUALIFIED_SIGNATURE:"norwegian-bankid-qes-signature"},c={idCard:"idCard",mobileId:"mobileId",eParakstsMobile:"eParakstsMobile",smartId:"smartId",frejaEid:"frejaEid",zealId:"zealId",mojeId:"mojeId",finnishTrustNetwork:"finnishTrustNetwork",atHandy:"atHandy",idCardSignature:"idCardSignature",mobileIdSignature:"mobileIdSignature",smartIdSignature:"smartIdSignature",evroTrustSignature:"evroTrustSignature",otpSignature:"otpSignature",eParakstsMobileSignature:"eParakstsMobileSignature",ftnSignature:"ftnSignature",ftnQesSignature:"ftnQesSignature",atHandySignature:"atHandySignature",zealIdSignature:"zealIdSignature",mojeIdSignature:"mojeIdSignature",googleSignature:"googleSignature",seBankIdSignature:"seBankIdSignature",dTrustSignMeSignature:"dTrustSignMeSignature",chaveMovelSignature:"chaveMovelSignature",mitIdSignature:"mitIdSignature",noBankIdQesSignature:"noBankIdQesSignature"},u=Object.freeze((r(o={},i.IDENTIFICATION,[{actionType:a.BE_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["BE"]},{actionType:a.EE_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["EE"]},{actionType:a.FI_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["FI"]},{actionType:a.LV_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["LV"]},{actionType:a.LT_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["LT"]},{actionType:a.PT_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["PT"]},{actionType:a.RS_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["RS"]},{actionType:a.LV_EPARAKSTS_MOBILE_LOGIN,handlingModule:c.eParakstsMobile,supportedCountries:["LV"]},{actionType:a.LT_MOBILE_ID,handlingModule:c.mobileId,supportedCountries:["LT"]},{actionType:a.EE_MOBILE_ID,handlingModule:c.mobileId,supportedCountries:["EE"]},{actionType:a.SMART_ID,handlingModule:c.smartId,supportedCountries:["EE","LV","LT"]},{actionType:a.FREJA_EID_LOGIN,handlingModule:c.frejaEid,supportedCountries:["FI","SE","NO","DK"]},{actionType:a.ZEALID_LOGIN,handlingModule:c.zealId,supportedCountries:["AT","BE","BG","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HR","HU","IE","IT","LV","LT","NL","NO","PL","PT","RO","RS","SE","SI","SK"]},{actionType:a.CZ_MOJEID,handlingModule:c.mojeId,supportedCountries:["CZ"]},{actionType:a.FI_FTN_LOGIN,handlingModule:c.finnishTrustNetwork,supportedCountries:["FI"]},{actionType:a.AT_HANDY_SIGNATUR_LOGIN,handlingModule:c.atHandy,supportedCountries:["AT"]}]),r(o,i.SIGNATURE,[{actionType:a.EE_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["EE"]},{actionType:a.LV_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["LV"]},{actionType:a.LT_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["LT"]},{actionType:a.FI_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["FI"]},{actionType:a.PT_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["PT"]},{actionType:a.BE_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["BE"]},{actionType:a.EE_MOBILEID_SIGNATURE,handlingModule:c.mobileIdSignature,supportedCountries:["EE"]},{actionType:a.LT_MOBILEID_SIGNATURE,handlingModule:c.mobileIdSignature,supportedCountries:["LT"]},{actionType:a.SMARTID_SIGNATURE,handlingModule:c.smartIdSignature,supportedCountries:["EE","LV","LT"]},{actionType:a.EVROTRUST_SIGNATURE,handlingModule:c.evroTrustSignature,supportedCountries:["AL","AD","AM","AU","AT","AZ","BY","BE","BA","BG","CA","HR","CY","CZ","DK","EE","FI","FR","GE","DE","GR","HU","IS","IE","IT","IL","KZ","KE","XK","LV","LI","LT","LU","MT","MD","MC","ME","NL","NZ","NO","MK","PL","PT","RO","RU","SM","RS","SK","SI","ES","SE","CH","TW","TR","UA","GB","US","VA"]},{actionType:a.OTP_EMAIL,handlingModule:c.otpSignature,supportedCountries:["WORLD"]},{actionType:a.LV_EPARAKSTS_MOBILE_SIGNATURE,handlingModule:c.eParakstsMobileSignature,supportedCountries:["LV"]},{actionType:a.FI_FTN_ADVANCED_SIGNATURE,handlingModule:c.ftnSignature,supportedCountries:["FI"]},{actionType:a.FI_FTN_QUALIFIED_SIGNATURE,handlingModule:c.ftnQesSignature,supportedCountries:["FI"]},{actionType:a.AT_HANDY_SIGNATUR_SIGNATURE,handlingModule:c.atHandySignature,supportedCountries:["AT"]},{actionType:a.ZEAL_ID_SIGNATURE,handlingModule:c.zealIdSignature,supportedCountries:["AT","BE","BG","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HR","HU","IE","IT","LV","LT","NL","NO","PL","PT","RO","RS","SE","SI","SK"]},{actionType:a.CZ_MOJEID_ADVANCED_SIGNATURE,handlingModule:c.mojeIdSignature,supportedCountries:["CZ"]},{actionType:a.GOOGLE_SIGNATURE,handlingModule:c.googleSignature,supportedCountries:["WORLD"]},{actionType:a.SE_BANKID_SIGNATURE,handlingModule:c.seBankIdSignature,supportedCountries:["SE"]},{actionType:a.D_TRUST_SIGN_ME_QUALIFIED_SIGNATURE,handlingModule:c.dTrustSignMeSignature,supportedCountries:["DE","CA","ZA","GR","NL","BE","FR","ES","PT","LU","IE","IS","MT","CY","AX","FI","BG","HU","LT","LV","EE","HR","SI","IT","RO","CH","CZ","SK","LI","AT","GG","DK","SE","NO","PL","MX","AR","BR","CL","AU","ID","PH","SG","RU","JP","KR","CN","TR","IN","SA","AE","QA"]},{actionType:a.CHAVE_MOVEL_QUALIFIED_SIGNATURE,handlingModule:c.chaveMovelSignature,supportedCountries:["PT"]},{actionType:a.NORWEGIAN_BANKID_QUALIFIED_SIGNATURE,handlingModule:c.noBankIdQesSignature,supportedCountries:["NO"]}]),o)),s=function(e,t,n){var r=u[e];if(t&&n){var o=r.find((function(e){return e.handlingModule===t&&(e.supportedCountries.includes(n)||e.supportedCountries.includes("WORLD"))}));if(!o){if(0===r.filter((function(e){return e.handlingModule===t})).length)throw new Error("Could not find matching method configuration for ".concat(e,' module "').concat(t,'"'));throw new Error('Country "'.concat(n,'" is not supported for ').concat(e,'\n module "').concat(t,'".'))}return o}return r.find((function(e){return e.handlingModule===t}))},d=n(2492),l=n.n(d),p=n(9669),f=n.n(p),g=f().CancelToken,h=f().isCancel;f().Cancel,f().interceptors.response.use((function(e){return(t=e.data)&&["error","No ID or basic level only","USER_CANCELLED","USER_REFUSED","refused","TIMEOUT","NOT_MID_CLIENT","ERROR"].includes(t.status)?Promise.reject(function(e){var t=e.message,n=e.config,r=e.code,o=e.request,i=e.response,a=new Error(t);return a.config=n,r&&(a.code=r),a.request=o,a.response=i,a.isRequestError=!0,a}({message:"Request failed with status code ".concat(e.status),config:e.config,request:e.request,response:e})):e;var t}));var v=function(e){return f()(e)};function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=function(e,t){var n,r=t.modifyRequestSettings,o=e;return"function"==typeof r&&(n=r(o)),n&&(o=l()(o,n)),o},I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(b(m({method:"get",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},t),e))},n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(b(m({method:"post",cache:"no-cache",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},t),e))};return Object.freeze({get:t,post:n,CancelToken:g})};function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.identificationModules,n=void 0===t?[]:t,r=e.signingModules,o=void 0===r?[]:r,i=e.settings,a=void 0===i?{}:i,c=e.i18n,s=e.apiEndpoints,d=e.monitoringService,l=T({},a);l.apiEndpoints=s,c.setLanguage(l.language);var p=function(e){l.countryCode=e},f=function(){return l.countryCode},g=function(){return u},h={};n.forEach((function(e){var t=e({coreContext:{config:l,i18n:c,monitoringService:d},apiClient:I({modifyRequestSettings:l.modifyRequestSettings})});h[t.MODULE_NAME]=t}));var v={};return o.forEach((function(e){var t=e({coreContext:{config:l,i18n:c,monitoringService:d},apiClient:I({modifyRequestSettings:l.modifyRequestSettings})});v[t.MODULE_NAME]=t})),Object.freeze({identification:T({},h),signature:T({},v),getAllMethods:g,setLanguage:c.setLanguage,setCountryCode:p,getCountryCode:f})};function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var j=function(e){var t=e.rawSettings,n=e.schema,o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t);return Object.keys(n).forEach((function(e){var r=n[e],i=t[e];if(r.required&&void 0===i)throw new Error('Missing required setting "'.concat(e,'"'));if(void 0===i&&(o[e]=r.default),void 0!==o[e]&&void 0!==r.type&&r.type!==w(o[e]))throw new Error('Expected "'.concat(e,'" to be type of "').concat(r.type,'", but received "').concat(w(o[e]),'"'))})),o},S={countryCode:{type:"string"},sandbox:{default:!1,type:"boolean"},clientId:{required:!0,type:"string"},redirectUri:{type:"string"},docId:{type:"string"},contractId:{type:"string"},apiEndpoints:{type:"object"},modifyRequestSettings:{type:"function"},language:{default:"en",type:"string"},success:{default:function(){},type:"function"},fail:{default:function(){},type:"function"},finished:{default:function(){},type:"function"},started:{default:function(){},type:"function"},redirect:{default:function(e){var t=e.data&&e.data.redirect_uri;return t?(window.location!==window.top.location?window.top.location.href=t:window.location.href=t,new Promise((function(){}))):e},type:"function"},remoteMonitoringEnabled:{default:!1}},C=JSON.parse('{"id-card-read-timeout":"Das Auslesen des Ausweises hat zu lange gedauert. Bitte schließen Sie alle geöffneten Browserfenster und versuchen Sie es erneut.","no_certificates":"Zertifikate konnten nicht gelesen werden. Stellen Sie sicher, dass sich die Karte im Lesegerät befindet und das Lesegerät richtig funktioniert."}'),x=n.t(C,2),k=JSON.parse('{"id-card-read-timeout":"Reading the ID card took too long. Please close all the open browser windows and then try again.","no_certificates":"Could not read certificates. Make sure that the card is in the reader and the reader is working properly."}'),A=n.t(k,2),N=JSON.parse('{"id-card-read-timeout":"ID kaardi lugemine võttis liiga kaua aega. Palun sulge kõik brauseri aknad ja proovi uuesti.","no_certificates":"Sertfikaatide lugemine ebaõnnestus. Veendu, et ID kaart on lugejas ning lugeja on arvutiga ühendatud."}'),R=n.t(N,2),D=JSON.parse('{"id-card-read-timeout":"Perskaityti asmens tapatybės kortelę užtruko per ilgai. Uždarykite visus atidarytus naršyklės langus ir bandykite dar kartą.","no_certificates":"Nepavyko perskaityti sertifikatų. Įsitikinkite, kad kortelė yra skaitytuve ir skaitytuvas veikia tinkamai."}'),U=n.t(D,2),P=JSON.parse('{"id-card-read-timeout":"ID kartes lasīšana aizņēma pārāk ilgu laiku. Lūdzu, aizveriet visus atvērtos pārlūkprogrammas logus un pēc tam mēģiniet vēlreiz.","no_certificates":"Nevarēja nolasīt sertifikātus. Pārliecinieties, vai karte ir lasītājā un lasītājs darbojas pareizi."}'),M=n.t(P,2),L=JSON.parse('{"id-card-read-timeout":"Чтение удостоверения личности заняло слишком много времени. Закройте все открытые окна браузера и повторите попытку.","no_certificates":"Не удалось прочитать сертификаты. Убедитесь, что карта находится в считывателе и считыватель работает исправно."}'),G={de:x,en:A,et:R,lt:U,lv:M,ru:n.t(L,2)},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.currentLanguage,n=void 0===t?"en":t,r=e.locales,o=void 0===r?G:r,i={currentLanguage:n},a="en",c=function(e){i.currentLanguage=e},u=function(){return i.currentLanguage},s=function(e){var t=o[i.currentLanguage];t||(t=o[a]);var n=t[e]||o[a][e];return n||(n=e),n};return Object.freeze({setLanguage:c,t:s,getCurrentLanguage:u})},B=function(e){var t=e.clientId,n=e.remoteMonitoringEnabled,r=e.apiEndpoints;return{dispatch:function(e){var o=e.message;n&&v({url:r.inCurrentMode.eideasyMonitoring(),method:"post",cache:"no-cache",withCredentials:!1,data:{client_id:t,source:"browser-client",message:o}})}}};function q(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function z(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){q(i,r,o,a,c,"next",e)}function c(e){q(i,r,o,a,c,"throw",e)}a(void 0)}))}}var H=n(7757),V=n.n(H),J=n(361),K=n.n(J)(),Z=function(e){var t=e;return h(e)&&(t.isCancel=!0),t.response&&t.response.data&&(t.response.data.message&&(t.userMessage=t.response.data.message),t.response.data.errors&&(t.userDetails=t.response.data.errors)),t},Q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=e.message,r=K({message:n});if(t)r.data=t;else{if(!e.result||!e.result.data)throw new Error('Formatting the result failed.\n The function provided to createStep must return an object that has a "data" property.\n You provided: '.concat(JSON.stringify(r),"\n Set shouldFormatResult to false if you wish to disable autoformatting"));r.data=e.result.data}return r},W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.error},$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.shouldFormatResult,r=void 0===n||n;return function(){var t=z(V().mark((function t(){var n,o,i=arguments;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.apply(void 0,i);case 2:if(n=t.sent,!(o=W(n))){t.next=6;break}throw Z(o);case 6:return t.abrupt("return",r?Q(n):n);case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()};Error;const Y=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],X=Symbol(".toJSON was called"),ee=({from:e,seen:t,to_:n,forceEnumerable:r,maxDepth:o,depth:i})=>{const a=n||(Array.isArray(e)?[]:{});if(t.push(e),i>=o)return a;if("function"==typeof e.toJSON&&!0!==e[X])return(e=>{e[X]=!0;const t=e.toJSON();return delete e[X],t})(e);for(const[n,c]of Object.entries(e))"function"==typeof Buffer&&Buffer.isBuffer(c)?a[n]="[object Buffer]":null===c||"object"!=typeof c||"function"!=typeof c.pipe?"function"!=typeof c&&(c&&"object"==typeof c?t.includes(e[n])?a[n]="[Circular]":(i++,a[n]=ee({from:e[n],seen:[...t],forceEnumerable:r,maxDepth:o,depth:i})):a[n]=c):a[n]="[object Stream]";for(const{property:t,enumerable:n}of Y)"string"==typeof e[t]&&Object.defineProperty(a,t,{value:e[t],enumerable:!!r||n,configurable:!0,writable:!0});return a};function te(e,t={}){const{maxDepth:n=Number.POSITIVE_INFINITY}=t;return"object"==typeof e&&null!==e?ee({from:e,seen:[],forceEnumerable:!0,maxDepth:n,depth:0}):"function"==typeof e?`[Function: ${e.name||"anonymous"}]`:e}function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var oe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){var o=r.coreContext,i=r.apiClient,a=o.i18n,c=o.config,u=o.monitoringService;return Object.freeze({MODULE_NAME:e,start:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=re(re({},S),n),o=re(re({},c),e),s=j({rawSettings:o,schema:r}),d=s.success,l=s.fail,p=s.finished,f=e.language||a.getCurrentLanguage(),g=i.CancelToken.source(),h=g.token,v={onCancelByUser:function(){}},y=function(e){v.onCancelByUser=e},m=function(){g.cancel()},b=function(){v.onCancelByUser(),m()},I=function(){var e=z(V().mark((function e(){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(re(re({},s),{},{language:f,i18n:a,monitoringService:u,cancelToken:h,cancel:m,setOnCancelByUser:y,apiClient:i})).then((function(e){d(e)})).catch((function(e){console&&console.error&&console.error(e),u.dispatch({message:JSON.stringify(te(e))}),l(Z(e))})).finally(p);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return I().catch(console.error),Object.freeze({cancel:b})}})}};function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ce=c.idCard,ue=oe(ce,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.cancelToken,r=t.language,o=t.apiClient,a=t.i18n,c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.apiEndpoints.inCurrentMode.readCard({countryCode:e.countryCode,clientId:e.clientId});return e.nonce&&(t+="?nonce=".concat(e.nonce)),o.get({url:t,cancelToken:e.cancelToken})},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=s(i.IDENTIFICATION,ce,e.countryCode);return o.post({url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,country:e.countryCode,method:t.actionType,lang:e.language},cancelToken:e.cancelToken})},e.next=5,$(c)(ae(ae({},t),{},{language:r,cancelToken:n})).catch((function(e){throw"ECONNABORTED"===e.code&&(e.userMessage=a.t("id-card-read-timeout")),e}));case 5:return d=e.sent,e.next=8,$(u)(ae(ae({},t),{},{cancelToken:n,language:r,data:d.data}));case 8:return d=e.sent,e.abrupt("return",d);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0}}),se=function(){var e=z(V().mark((function e(t){var n,r,o,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.fn,r=t.shouldContinue,o=t.interval,i=0,a=function(){var e=z(V().mark((function e(t,c){var u,s;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i+=1,e.prev=1,e.next=4,n();case 4:u=e.sent,s=void 0,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),u=void 0,s=e.t0;case 12:if(!r({result:u,attempts:i,error:s})){e.next=14;break}return e.abrupt("return",setTimeout(a,o,t,c));case 14:return e.abrupt("return",t({result:u,error:s}));case 15:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t,n){return e.apply(this,arguments)}}(),e.abrupt("return",new Promise(a));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pe=c.smartId,fe=oe(pe,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d,l,p,f,g,v;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.started,r=void 0===n?function(){}:n,o=t.idcode,a=t.pollInterval,c=void 0===a?1e3:a,u=t.cancelToken,d=t.language,l=t.apiClient,p=function(e){var t=s(i.IDENTIFICATION,pe);return l.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:e.idcode,country:e.countryCode,method:t.actionType,lang:e.language}})},f=function(e){var t=s(i.IDENTIFICATION,pe);return l.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,method:t.actionType,timeout:2,lang:e.language}})},g=function(e){var t=1e5/e.pollInterval,n=0;return se({fn:function(){return f(le(le({},e.config),{},{data:e.data,cancelToken:e.cancelToken,language:e.language}))},shouldContinue:function(e){var r=e.result,o=r&&r.data&&r.data.status,i=h(e.error),a=e.error&&!e.error.response&&!i;a&&(n+=1);var c=!1;return e.attempts<t&&n<3&&(c=a||"RUNNING"===o),c},interval:2e3})},e.next=6,$(p)(le(le({},t),{},{cancelToken:u,language:d,idcode:o}));case 6:return v=e.sent,r(v),e.next=10,$(g)({config:t,data:le({},v.data),cancelToken:u,pollInterval:c,language:d});case 10:return v=e.sent,e.abrupt("return",v);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ve=c.mobileId,ye=oe(ve,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d,l,p,f,g,v,y;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.cancelToken,r=t.language,o=t.apiClient,a=t.started,c=void 0===a?function(){}:a,u=t.idcode,d=t.phone,l=t.pollInterval,p=void 0===l?1e3:l,f=function(e){var t=s(i.IDENTIFICATION,ve,e.countryCode);return o.post({url:e.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:e.idcode,phone:e.phone,country:e.countryCode,method:t.actionType,lang:e.language},cancelToken:e.cancelToken})},g=function(e){var t=s(i.IDENTIFICATION,ve,e.countryCode);return o.post({url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,method:t.actionType,timeout:2,lang:e.language},cancelToken:e.cancelToken})},v=function(e){var t=12e4/p,n=0;return se({fn:function(){return g(he(he({},e.config),{},{data:e.data,cancelToken:e.cancelToken,language:e.language}))},shouldContinue:function(e){var r=e.result,o=r&&r.data&&r.data.status,i=h(e.error),a=e.error&&!e.error.response&&!i;a&&(n+=1);var c=!1;return e.attempts<t&&n<3&&(c=a||"RUNNING"===o),c},interval:1e3})},e.next=6,$(f)(he(he({},t),{},{cancelToken:n,language:r,idcode:u,phone:d}));case 6:return y=e.sent,c(y),e.next=10,$(v)({config:t,data:y.data,cancelToken:n,language:r,pollInterval:p});case 10:return y=e.sent,e.abrupt("return",y);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0}}),me=c.eParakstsMobile,be=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri;return{data:{redirect_uri:t.inCurrentMode.eParakstsMobile({clientId:n,redirectUri:r})}}},Ie=oe(me,function(){var e=z(V().mark((function e(t){var n,r,o,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,o=t.clientId,i=t.redirectUri,e.next=3,$(be)({apiEndpoints:r,clientId:o,redirectUri:i});case 3:return a=e.sent,e.abrupt("return",$(n,{shouldFormatResult:!1})(a));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Oe=c.frejaEid,we=oe(Oe,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d,l,p,f,g,v;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.started,r=void 0===n?function(){}:n,o=t.idcode,a=t.pollInterval,c=void 0===a?1e3:a,u=t.cancelToken,d=t.language,l=t.apiClient,p=function(e){var t=s(i.IDENTIFICATION,Oe);return l.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:e.idcode,country:e.countryCode,method:t.actionType,lang:e.language}})},f=function(e){var t=s(i.IDENTIFICATION,Oe);return l.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,method:t.actionType,lang:e.language,timeout:2}})},g=function(e){var t=1e5/e.pollInterval,n=0;return se({fn:function(){return f(Te(Te({},e.config),{},{data:e.data,language:e.language,cancelToken:e.cancelToken}))},shouldContinue:function(e){var r=e.result,o=r&&r.data&&r.data.status,i=h(e.error),a=e.error&&!e.error.response&&!i;a&&(n+=1);var c=!1;return e.attempts<t&&n<3&&(c=a||"RUNNING"===o),c},interval:2e3})},e.next=6,$(p)(Te(Te({},t),{},{cancelToken:u,language:d,idcode:o}));case 6:return v=e.sent,r(v),e.next=10,$(g)({config:t,data:Te({},v.data),cancelToken:u,language:d,pollInterval:c});case 10:return v=e.sent,e.abrupt("return",v);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Se=c.zealId,Ce=oe(Se,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.cancelToken,r=t.apiClient,o=t.language,a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.get({withCredentials:!1,cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.zealIdIframeUrl({clientId:e.clientId})})},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.iframeHolder,n=document.createElement("iframe"),r=e.iframeUrl;n.setAttribute("src",r),n.setAttribute("referrerpolicy","origin"),n.style.border="0",t.innerHTML="";var o=function(e,t,n){var r=new URL(e.data),o=r.searchParams.get("error"),i=r.searchParams.get("code");o?n(o):i?t({data:{code:i}}):n(e.data)},i=new Promise((function(e,t){window.addEventListener("message",(function(n){var i=new URL(r);n.origin===i.origin&&(window.removeEventListener("message",o),o(n,e,t))}))}));return t.appendChild(n),i},u=function(e){var t=s(i.IDENTIFICATION,Se);return r.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{method:t.actionType,code:e.data.code,lang:e.language}})},e.next=6,$(a)(je(je({},t),{},{cancelToken:n}));case 6:return d=e.sent,e.next=9,$(c)(je(je({},t),{},{cancelToken:n,iframeUrl:d.data.url}));case 9:return d=e.sent,e.next=12,$(u)(je(je({},t),{},{cancelToken:n,language:o},d));case 12:return d=e.sent,e.abrupt("return",d);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},iframeHolder:{type:"object",required:!0}}),xe=c.mojeId,ke=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri;return{data:{redirect_uri:t.inCurrentMode.mojeId({clientId:n,redirectUri:r})}}},Ae=oe(xe,function(){var e=z(V().mark((function e(t){var n,r,o,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,o=t.clientId,i=t.redirectUri,e.next=3,$(ke)({apiEndpoints:r,clientId:o,redirectUri:i});case 3:return a=e.sent,e.abrupt("return",$(n,{shouldFormatResult:!1})(a));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),Ne=c.finnishTrustNetwork,Re=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri,o=e.language;return{data:{redirect_uri:t.inCurrentMode.finnishTrustNetwork({clientId:n,redirectUri:r,language:o})}}},De=oe(Ne,function(){var e=z(V().mark((function e(t){var n,r,o,i,a,c;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,o=t.clientId,i=t.redirectUri,a=t.language,e.next=3,$(Re)({apiEndpoints:r,clientId:o,redirectUri:i,language:a});case 3:return c=e.sent,e.abrupt("return",$(n,{shouldFormatResult:!1})(c));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),Ue=c.atHandy,Pe=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri;return{data:{redirect_uri:t.inCurrentMode.atHandy({clientId:n,redirectUri:r})}}},Me=oe(Ue,function(){var e=z(V().mark((function e(t){var n,r,o,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,o=t.clientId,i=t.redirectUri,e.next=3,$(Pe)({apiEndpoints:r,clientId:o,redirectUri:i});case 3:return a=e.sent,e.abrupt("return",$(n,{shouldFormatResult:!1})(a));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),Le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,n=void 0===t?"":t,r=e.userMessage,o=void 0===r?"":r,i=e.details,a=void 0===i?{}:i;this.message=n,this.userMessage=o,this.details=a,this.stack=(new Error).stack};(Le.prototype=new Error).name="MethodException";var Ge=Le,Fe=c.idCardSignature,Be=function(e){var t=e.iframe,n=new URL(t.src);return{post:function(e){t.contentWindow.postMessage(e,n.origin)}}},qe=function(e){return e.data&&"EIDEASY_ID_CARD_INTEGRATION"===e.data.sender},ze=function(e){var t=e.countryCode,n=e.clientId,r=e.apiEndpoints,o=s(i.SIGNATURE,Fe,t);return r.inCurrentMode.idCardIframe({clientId:n,actionType:o.actionType})},He=function(e,t){if(e instanceof Error)throw e;var n;throw"no_certificates"===e.result&&(n=t.t("no_certificates")),new Ge({userMessage:n,message:e.message,details:e})},Ve=function(e){var t=e.iframeHolder,n=e.iframeUrl,r=e.i18n,o=document.createElement("iframe");o.setAttribute("src",n),o.setAttribute("referrerpolicy","origin"),o.style.width="0",o.style.height="0",o.style.position="absolute",o.style.border="0",t.innerHTML="";var i={resolve:null,reject:null};function a(e){if(!qe(e))return!1;var t=e.data,n=t.operation,r=t.error,c=t.status;r||"ready"!==n&&"welcome"!==n||"OK"!==c?i.reject(e.data):i.resolve(o),window.removeEventListener("message",a,!1)}var c=new Promise((function(e,t){i.resolve=e,i.reject=t,window.addEventListener("message",a,!1),window.setTimeout((function(){return t({message:r.t("createIframeTimeout")})}),3e4)}));return t.appendChild(o),c},Je=function(e){var t=e.messenger,n={resolve:null,reject:null};function r(e){if(!qe(e))return!1;var t=e.data.certificate||e.data.cert;if(t)n.resolve({certificate:t});else{var o={};!e.data||"user_cancel"!==e.data.result&&"user_cancel"!==e.data.message?o=e.data:o.isCancel=!0,n.reject(o)}window.removeEventListener("message",r,!1)}var o=new Promise((function(e,t){n.resolve=e,n.reject=t,window.addEventListener("message",r,!1)}));return t.post({operation:"getCertificate"}),o},Ke=function(e){var t=e.certificate,n=e.clientId,r=e.docId,o=e.cancelToken,i=e.apiEndpoints,a=e.apiClient,c=i.inCurrentMode.startSigning();return a.post({url:c,withCredentials:!1,data:{client_id:n,doc_id:r,sign_type:"id-card",certificate:t},cancelToken:o})},Ze=function(e){var t=e.messenger,n=e.hexDigest,r={resolve:null,reject:null};function o(e){if(!qe(e))return!1;var t=e.data.signature_value||e.data.signature;if(t)r.resolve({signature:t});else{var n={};!e.data||"user_cancel"!==e.data.result&&"user_cancel"!==e.data.message?n=e.data:n.isCancel=!0,r.reject(n)}window.removeEventListener("message",o,!1)}var i=new Promise((function(e,t){r.resolve=e,r.reject=t,window.addEventListener("message",o,!1)}));return t.post({operation:"getSignature",hexDigest:n}),i},Qe=function(e){var t=e.signature,n=e.clientId,r=e.docId,o=e.cancelToken,i=e.apiEndpoints,a=e.apiClient,c=i.inCurrentMode.completeSignatureIdCard();return a.post({url:c,withCredentials:!1,data:{client_id:n,doc_id:r,signature_value:t},cancelToken:o})},We=oe(Fe,function(){var e=z(V().mark((function e(t){var n,r,o,i,a,c,u,s,d,l,p,f,g,h,v;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.countryCode,r=t.clientId,o=t.apiEndpoints,i=t.iframeHolder,a=t.i18n,c=t.docId,u=t.cancelToken,s=t.apiClient,d=t.monitoringService,e.next=3,$(ze,{shouldFormatResult:!1})({countryCode:n,clientId:r,apiEndpoints:o,monitoringService:d});case 3:return l=e.sent,e.next=6,$(Ve,{shouldFormatResult:!1})({iframeUrl:l,iframeHolder:i,i18n:a}).catch((function(e){return He(e,a)}));case 6:return p=e.sent,e.next=9,$(Be,{shouldFormatResult:!1})({iframe:p});case 9:return f=e.sent,e.next=12,$(Je,{shouldFormatResult:!1})({messenger:f}).catch((function(e){return He(e,a)}));case 12:return g=e.sent,e.next=15,$(Ke)({certificate:g.certificate,clientId:r,docId:c,cancelToken:u,apiEndpoints:o,apiClient:s});case 15:return h=e.sent,e.next=18,$(Ze,{shouldFormatResult:!1})({messenger:f,hexDigest:h.data.hexDigest}).catch((function(e){return He(e,a)}));case 18:return v=e.sent,console.log(v),e.abrupt("return",$(Qe)({signature:v.signature,clientId:r,docId:c,cancelToken:u,apiEndpoints:o,apiClient:s}));case 21:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{iframeHolder:{type:"object"},docId:{type:"string",required:!0}});function $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ye=function(e){var t,n=e.pollInterval,r=void 0===n?2e3:n,o=e.maxPollDuration,i=e.fn,a=e.fnArgs;o&&(t=o/r);var c=0;return{start:function(){return se({fn:function(){return i.apply(void 0,function(e){if(Array.isArray(e))return $e(e)}(e=a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return $e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$e(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var e},shouldContinue:function(e){var n=e.result,r=n&&n.data&&n.data.status,o=h(e.error),i=e.error&&!e.error.response&&!o;i&&(c+=1);var a,u,s=!1;return a=e.attempts,(!(u=t)||a<u)&&c<3&&(s=i||"RUNNING"===r),s},interval:r})}}},Xe=c.mobileIdSignature,et=function(e){var t=e.phone,n=e.idcode,r=e.clientId,o=e.docId,i=e.cancelToken,a=e.apiEndpoints,c=e.apiClient,u=e.countryCode,s=e.language,d=a.inCurrentMode.startSigning();return c.post({url:d,withCredentials:!1,data:{doc_id:o,client_id:r,sign_type:"mobile-id",phone:t,idcode:n,country:u,lang:s},cancelToken:i})},tt=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,o=e.language,i=e.cancelToken,a=e.docId,c=e.clientId;return n.post({url:r.inCurrentMode.completeSignatureMobileId(),withCredentials:!1,data:{token:t.token,doc_id:a,timeout:2,lang:o,client_id:c},cancelToken:i})},nt=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,o=e.language,i=e.cancelToken,a=e.docId,c=e.clientId;return Ye({pollInterval:2e3,maxPollDuration:12e4,fn:tt,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:o,cancelToken:i,docId:a,clientId:c}]}).start()},rt=oe(Xe,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d,l,p,f,g,h,v;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.clientId,r=t.docId,o=t.cancelToken,a=t.apiEndpoints,c=t.apiClient,u=t.monitoringService,d=t.language,l=t.idcode,p=t.phone,f=t.countryCode,g=t.started,h=s(i.SIGNATURE,Xe,f),u.dispatch({message:"".concat(h.actionType,": signing started")}),e.next=5,$(et)({clientId:n,docId:r,cancelToken:o,apiEndpoints:a,apiClient:c,language:d,idcode:l,phone:p,countryCode:f});case 5:return v=e.sent,g(v),e.abrupt("return",$(nt)({data:v.data,apiClient:c,apiEndpoints:a,language:d,cancelToken:o,docId:r,clientId:n}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),ot=c.smartIdSignature,it=function(e){var t=e.contractId,n=e.idcode,r=e.clientId,o=e.docId,i=e.cancelToken,a=e.apiEndpoints,c=e.apiClient,u=e.countryCode,s=e.language,d=a.inCurrentMode.startSigning();return c.post({url:d,withCredentials:!1,data:{doc_id:o,contract_id:t,client_id:r,sign_type:"smart-id",idcode:n,country:u,lang:s},cancelToken:i})},at=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,o=e.language,i=e.cancelToken,a=e.docId,c=e.clientId;return n.post({url:r.inCurrentMode.completeSignatureSmartId(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:o,client_id:c,timeout:2},cancelToken:i})},ct=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,o=e.language,i=e.cancelToken,a=e.docId,c=e.clientId;return Ye({pollInterval:2e3,maxPollDuration:12e4,fn:at,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:o,cancelToken:i,docId:a,clientId:c}]}).start()},ut=oe(ot,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d,l,p,f,g,h,v;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.clientId,r=t.docId,o=t.contractId,a=t.cancelToken,c=t.apiEndpoints,u=t.apiClient,d=t.monitoringService,l=t.language,p=t.idcode,f=t.countryCode,g=t.started,h=s(i.SIGNATURE,ot,f),d.dispatch({message:"".concat(h.actionType,": signing started")}),e.next=5,$(it)({clientId:n,docId:r,cancelToken:a,apiEndpoints:c,apiClient:u,language:l,idcode:p,countryCode:f,contractId:o});case 5:return v=e.sent,g(v),e.abrupt("return",$(ct)({data:v.data,apiClient:u,apiEndpoints:c,language:l,cancelToken:a,docId:r,clientId:n}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),st=c.evroTrustSignature,dt=function(e){var t=e.contractId,n=e.idcode,r=e.clientId,o=e.docId,i=e.cancelToken,a=e.apiEndpoints,c=e.apiClient,u=e.countryCode,s=e.language,d=e.email,l=e.phone,p=e.actionType,f=a.inCurrentMode.startSigning();return c.post({url:f,withCredentials:!1,data:{doc_id:o,contract_id:t,client_id:r,sign_type:p,idcode:n,email:d,phone:l,country:u,lang:s},cancelToken:i})},lt=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,o=e.language,i=e.cancelToken,a=e.docId,c=e.clientId;return n.post({url:r.inCurrentMode.completeSignatureEvrotrust(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:o,client_id:c},cancelToken:i})},pt=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,o=e.language,i=e.cancelToken,a=e.docId,c=e.clientId;return Ye({pollInterval:2e3,fn:lt,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:o,cancelToken:i,docId:a,clientId:c}]}).start()},ft=oe(st,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d,l,p,f,g,h,v,y,m;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.clientId,r=t.docId,o=t.contractId,a=t.cancelToken,c=t.apiEndpoints,u=t.apiClient,d=t.monitoringService,l=t.language,p=t.idcode,f=t.phone,g=t.email,h=t.countryCode,v=t.started,y=s(i.SIGNATURE,st,h),d.dispatch({message:"".concat(y.actionType,": signing started")}),e.next=5,$(dt)({clientId:n,docId:r,cancelToken:a,apiEndpoints:c,apiClient:u,language:l,idcode:p,phone:f,email:g,countryCode:h,contractId:o,actionType:y.actionType});case 5:return m=e.sent,v(m),e.abrupt("return",$(pt)({data:m.data,apiClient:u,apiEndpoints:c,language:l,cancelToken:a,docId:r,clientId:n}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),gt=c.otpSignature,ht=function(e){var t=e.apiClient,n=e.apiEndpoints,r=e.language,o=e.cancelToken,i=e.docId,a=e.clientId,c=e.emailToken,u=e.smsToken;return t.post({url:n.inCurrentMode.completeOtp(),withCredentials:!1,data:{doc_id:i,timeout:2,lang:r,client_id:a,email_token:c,sms_token:u},cancelToken:o})},vt=oe(gt,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d,l,p,f,g;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.clientId,r=t.docId,o=t.cancelToken,a=t.apiEndpoints,c=t.apiClient,u=t.monitoringService,d=t.language,l=t.countryCode,p=t.emailToken,f=t.smsToken,g=s(i.SIGNATURE,gt,l),console.log(g),u.dispatch({message:"".concat(g.actionType,": signing started")}),e.abrupt("return",$(ht)({apiClient:c,apiEndpoints:a,language:d,cancelToken:o,docId:r,clientId:n,emailToken:p,smsToken:f}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),yt={docId:{type:"string",required:!0}},mt=function(e){var t=e.moduleName,n=e.createModuleCreator,r=function(e){var t=e.contractId,n=e.clientId,r=e.docId,o=e.cancelToken,i=e.apiEndpoints,a=e.apiClient,c=e.language,u=e.actionType,s=i.inCurrentMode.startSigning();return a.post({url:s,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:u,lang:c},cancelToken:o})};return n(t,function(){var e=z(V().mark((function e(n){var o,a,c,u,d,l,p,f,g,h,v,y;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=n.clientId,a=n.docId,c=n.contractId,u=n.cancelToken,d=n.apiEndpoints,l=n.apiClient,p=n.monitoringService,f=n.language,g=n.countryCode,h=n.redirect,v=s(i.SIGNATURE,t,g),p.dispatch({message:"".concat(v.actionType,": signing started")}),e.next=5,$(r)({contractId:c,clientId:o,docId:a,cancelToken:u,apiEndpoints:d,apiClient:l,language:f,actionType:v.actionType});case 5:return y=e.sent,e.abrupt("return",$(h,{shouldFormatResult:!1})(y));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),yt)},bt=mt({moduleName:c.eParakstsMobileSignature,createModuleCreator:oe}),It=mt({moduleName:c.ftnSignature,createModuleCreator:oe}),Et=mt({moduleName:c.atHandySignature,createModuleCreator:oe}),Tt=c.zealIdSignature,Ot=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.docId;return{data:{redirect_uri:t.inCurrentMode.startZealIdSignature({clientId:n,docId:r})}}},wt=oe(Tt,function(){var e=z(V().mark((function e(t){var n,r,o,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,o=t.clientId,i=t.docId,e.next=3,$(Ot)({apiEndpoints:r,clientId:o,docId:i});case 3:return a=e.sent,e.abrupt("return",$(n,{shouldFormatResult:!1})(a));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),_t=mt({moduleName:c.mojeIdSignature,createModuleCreator:oe}),jt=mt({moduleName:c.googleSignature,createModuleCreator:oe}),St=mt({moduleName:c.seBankIdSignature,createModuleCreator:oe}),Ct=function(e){var t=e.url,n=e.onClosed,r={width:800,height:600},o=function(e){var t=e.parent,n=e.child;return{left:t.width/2-n.width/2+t.left,top:t.height/2-n.height/2+t.top}}({parent:{width:window.outerWidth,height:window.outerHeight,left:window.screenLeft,top:window.screenTop},child:r}),i=["toolbar=no","location=no","directories=no","status=no","menubar=no","scrollbars=no","resizable=no","copyhistory=no","width=".concat(r.width),"height=".concat(r.height),"left=".concat(o.left),"top=".concat(o.top)],a=window.open(t,"eID Easy",i.join(", ")),c=setInterval((function(){a.closed&&(clearInterval(c),n())}),500);return{window:a}},xt=c.dTrustSignMeSignature,kt=function(e){var t=e.username,n=e.language,r=e.clientId,o=e.docId,i=e.cancelToken,a=e.apiEndpoints,c=e.apiClient,u=e.actionType,s=a.inCurrentMode.startSigning();return c.post({url:s,withCredentials:!1,data:{doc_id:o,client_id:r,sign_type:u,lang:n,username:t},cancelToken:i})},At=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,o=e.language,i=e.cancelToken,a=e.docId,c=e.clientId;return n.post({url:r.inCurrentMode.completeSignatureDTrustSignMe(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:o,client_id:c},cancelToken:i})},Nt=function(e){var t=e.url,n=e.onClosed;return{data:Ct({url:t,onClosed:n})}},Rt=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,o=e.language,i=e.cancelToken,a=e.docId,c=e.clientId;return Ye({pollInterval:2e3,fn:At,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:o,cancelToken:i,docId:a,clientId:c}]}).start()},Dt=oe(xt,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d,l,p,f,g,h,v,y,m;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.clientId,r=t.docId,o=t.cancelToken,a=t.apiEndpoints,c=t.apiClient,u=t.monitoringService,d=t.username,l=t.countryCode,p=t.language,f=t.started,g=t.cancel,h=s(i.SIGNATURE,xt,l),u.dispatch({message:"".concat(h.actionType,": signing started")}),e.next=5,$(kt)({clientId:n,docId:r,cancelToken:o,apiEndpoints:a,apiClient:c,username:d,language:p,actionType:h.actionType});case 5:return v=e.sent,f(v),e.next=9,$(Nt)({url:v.data.redirect_uri,onClosed:function(){return g()}});case 9:return y=e.sent,e.next=12,$(Rt)({data:v.data,apiClient:c,apiEndpoints:a,language:p,cancelToken:o,docId:r,clientId:n});case 12:return m=e.sent,y.data.window.close(),e.abrupt("return",m);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{username:{type:"string"},docId:{type:"string",required:!0}}),Ut=c.chaveMovelSignature,Pt=function(e){var t=e.signingPin,n=e.phone,r=e.language,o=e.clientId,i=e.docId,a=e.cancelToken,c=e.apiEndpoints,u=e.apiClient,s=e.actionType,d=c.inCurrentMode.startSigning();return u.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:o,sign_type:s,lang:r,signing_pin:t,phone:n},cancelToken:a})},Mt=function(e){var t=e.startSigningResult,n=e.confirmationCodeRequest,r=e.setOnCancelByUser;return new Promise((function(e,o){r((function(){var e=new Error("USER_REFUSED");e.isCancel=!0,o(e)})),n({data:t.data},e,o)}))},Lt=function(e){var t=e.token,n=e.apiClient,r=e.apiEndpoints,o=e.language,i=e.cancelToken,a=e.docId,c=e.clientId,u=e.confirmationCode;return n.post({url:r.inCurrentMode.completeSignatureChaveMovel(),withCredentials:!1,data:{token:t,doc_id:a,lang:o,client_id:c,confirmation_code:u},cancelToken:i})},Gt=oe(Ut,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d,l,p,f,g,h,v,y,m,b;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.clientId,r=t.docId,o=t.cancelToken,a=t.apiEndpoints,c=t.apiClient,u=t.monitoringService,d=t.countryCode,l=t.language,p=t.started,f=t.confirmationCodeRequest,g=t.signingPin,h=t.phone,v=t.setOnCancelByUser,y=s(i.SIGNATURE,Ut,d),u.dispatch({message:"".concat(y.actionType,": signing started")}),e.next=5,$(Pt)({clientId:n,docId:r,cancelToken:o,apiEndpoints:a,apiClient:c,language:l,actionType:y.actionType,signingPin:g,phone:h});case 5:return m=e.sent,p(m),e.next=9,$(Mt,{shouldFormatResult:!1})({startSigningResult:m,confirmationCodeRequest:f,setOnCancelByUser:v});case 9:return b=e.sent,e.abrupt("return",$(Lt)({token:m.data.token,apiClient:c,apiEndpoints:a,language:l,cancelToken:o,docId:r,clientId:n,confirmationCode:b}));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{pin:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Ft=mt({moduleName:c.mitIdSignature,createModuleCreator:oe}),Bt=c.ftnQesSignature,qt=function(e){var t=e.contractId,n=e.clientId,r=e.docId,o=e.cancelToken,i=e.apiEndpoints,a=e.apiClient,c=e.language,u=e.actionType,s=e.phone,d=e.email,l=i.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:u,lang:c,phone:s,email:d},cancelToken:o})},zt=oe(Bt,function(){var e=z(V().mark((function e(t){var n,r,o,a,c,u,d,l,p,f,g,h,v,y;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.clientId,r=t.docId,o=t.contractId,a=t.cancelToken,c=t.apiEndpoints,u=t.apiClient,d=t.monitoringService,l=t.language,p=t.countryCode,f=t.phone,g=t.email,h=t.redirect,v=s(i.SIGNATURE,Bt,p),d.dispatch({message:"".concat(v.actionType,": signing started")}),e.next=5,$(qt)({contractId:o,clientId:n,docId:r,cancelToken:a,apiEndpoints:c,apiClient:u,language:l,phone:f,email:g,actionType:v.actionType});case 5:return y=e.sent,e.abrupt("return",$(h,{shouldFormatResult:!1})(y));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{phone:{type:"string",required:!0},email:{type:"string",required:!0}}),Ht=mt({moduleName:c.noBankIdQesSignature,createModuleCreator:oe}),Vt=Object.freeze({sandbox:"sandbox",production:"production"});function Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jt(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zt=function(e,t,n){var r={};return Object.keys(e).forEach((function(o){r[o]=function(e,t,n){return function(r){var o=Kt(Kt({},t),r);return n?n(e(o)):e(o)}}(e[o],t,n)})),r},Qt=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Kt({base:function(e){return e.baseUrl},readCard:function(e){var n=e.countryCode,r=void 0===n?t.countryCode.toLowerCase():n,o=e.clientId;return"https://".concat(r,".eideasy.com/api/identity/").concat(o,"/read-card")},eParakstsMobile:function(e){var t=e.baseUrl,n=e.clientId,r=e.redirectUri;return"".concat(t,"/oauth/start/lv-eparaksts-mobile-login?client_id=").concat(n,"&redirect_uri=").concat(r,"&response_type=code")},zealIdIframeUrl:function(e){var t=e.baseUrl,n=e.clientId;return"".concat(t,"/api/identity/").concat(n,"/zealid/get_iframe_url")},mojeId:function(e){var t=e.baseUrl,n=e.clientId,r=e.redirectUri;return"".concat(t,"/oauth/start/mojeid?client_id=").concat(n,"&redirect_uri=").concat(r,"&response_type=code")},finnishTrustNetwork:function(e){var t=e.baseUrl,n=e.clientId,r=e.redirectUri,o=e.language;return"".concat(t,"/oauth/start/finnish-ftn-login?client_id=").concat(n,"&redirect_uri=").concat(r,"&response_type=code&lang=").concat(o)},atHandy:function(e){var t=e.baseUrl,n=e.clientId,r=e.redirectUri;return"".concat(t,"/oauth/authorize?client_id=").concat(n,"&redirect_uri=").concat(r,"&response_type=code&method=at-handy-signatur-login")},idCardIframe:function(e){var t=e.baseUrl,n=e.clientId,r=e.actionType;return"".concat(t,"/signatures/integration/").concat(n,"/").concat(r)},startSigning:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/start-signing")},completeSignatureIdCard:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/id-card/complete")},completeSignatureMobileId:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/sk-mobile-id/complete")},completeSignatureSmartId:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/sk-smart-id/complete")},completeSignatureEvrotrust:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/evrotrust-signature/complete")},completeSignatureDTrustSignMe:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/d-trust-sign-me-qes-signature/complete")},completeSignatureChaveMovel:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/chave-movel-qes-signature/complete")},completeOtp:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/non-qualified/complete")},eideasyMonitoring:function(e){var t=e.baseUrl;return"".concat(t,"/api/monitor")},startZealIdSignature:function(e){var t=e.baseUrl,n=e.clientId,r=e.docId;return"".concat(t,"/zealid/signature/start?client_id=").concat(n,"&doc_id=").concat(r)}},n),i=(r(e={},Vt.production,Kt({},Zt(o,{baseUrl:n.base?n.base():"https://id.eideasy.com"},t.modifyEndpointUrl))),r(e,Vt.sandbox,Kt({},Zt(o,{baseUrl:n.base?n.base():"https://test.eideasy.com"},t.modifyEndpointUrl))),e);return{get inCurrentMode(){var e=t.sandbox?Vt.sandbox:Vt.production;return i[e]}}},Wt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=j({rawSettings:e,schema:S}),n=F({currentLanguage:"en"}),r=Qt({countryCode:t.countryCode,sandbox:t.sandbox,modifyEndpointUrl:t.modifyEndpointUrl},t.apiEndpoints),o=B({clientId:t.clientId,remoteMonitoringEnabled:t.remoteMonitoringEnabled,apiEndpoints:r});return O({settings:t,i18n:n,monitoringService:o,apiEndpoints:r,identificationModules:[ue,fe,ye,Ie,we,Ce,Ae,De,Me],signingModules:[We,rt,ut,ft,vt,bt,It,zt,Et,wt,_t,jt,St,Dt,Gt,Ft,Ht]})},$t=Wt},8552:function(e,t,n){var r=n(852)(n(5639),"DataView");e.exports=r},1989:function(e,t,n){var r=n(1789),o=n(401),i=n(7667),a=n(1327),c=n(1866);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},8407:function(e,t,n){var r=n(7040),o=n(4125),i=n(2117),a=n(7518),c=n(4705);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},7071:function(e,t,n){var r=n(852)(n(5639),"Map");e.exports=r},3369:function(e,t,n){var r=n(4785),o=n(1285),i=n(6e3),a=n(9916),c=n(5265);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},3818:function(e,t,n){var r=n(852)(n(5639),"Promise");e.exports=r},8525:function(e,t,n){var r=n(852)(n(5639),"Set");e.exports=r},6384:function(e,t,n){var r=n(8407),o=n(7465),i=n(3779),a=n(7599),c=n(4758),u=n(4309);function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,e.exports=s},2705:function(e,t,n){var r=n(5639).Symbol;e.exports=r},1149:function(e,t,n){var r=n(5639).Uint8Array;e.exports=r},577:function(e,t,n){var r=n(852)(n(5639),"WeakMap");e.exports=r},6874:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},7412:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},4963:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},4636:function(e,t,n){var r=n(2545),o=n(5694),i=n(1469),a=n(4144),c=n(5776),u=n(6719),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),d=!n&&o(e),l=!n&&!d&&a(e),p=!n&&!d&&!l&&u(e),f=n||d||l||p,g=f?r(e.length,String):[],h=g.length;for(var v in e)!t&&!s.call(e,v)||f&&("length"==v||l&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||c(v,h))||g.push(v);return g}},2488:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},6556:function(e,t,n){var r=n(9465),o=n(7813);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},4865:function(e,t,n){var r=n(9465),o=n(7813),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},8470:function(e,t,n){var r=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},4037:function(e,t,n){var r=n(8363),o=n(3674);e.exports=function(e,t){return e&&r(t,o(t),e)}},3886:function(e,t,n){var r=n(8363),o=n(1704);e.exports=function(e,t){return e&&r(t,o(t),e)}},9465:function(e,t,n){var r=n(8777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},5990:function(e,t,n){var r=n(6384),o=n(7412),i=n(4865),a=n(4037),c=n(3886),u=n(4626),s=n(278),d=n(8805),l=n(1911),p=n(8234),f=n(6904),g=n(4160),h=n(3824),v=n(9148),y=n(8517),m=n(1469),b=n(4144),I=n(6688),E=n(3218),T=n(2928),O=n(3674),w=n(1704),_="[object Arguments]",j="[object Function]",S="[object Object]",C={};C[_]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[S]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[j]=C["[object WeakMap]"]=!1,e.exports=function e(t,n,x,k,A,N){var R,D=1&n,U=2&n,P=4&n;if(x&&(R=A?x(t,k,A,N):x(t)),void 0!==R)return R;if(!E(t))return t;var M=m(t);if(M){if(R=h(t),!D)return s(t,R)}else{var L=g(t),G=L==j||"[object GeneratorFunction]"==L;if(b(t))return u(t,D);if(L==S||L==_||G&&!A){if(R=U||G?{}:y(t),!D)return U?l(t,c(R,t)):d(t,a(R,t))}else{if(!C[L])return A?t:{};R=v(t,L,D)}}N||(N=new r);var F=N.get(t);if(F)return F;N.set(t,R),T(t)?t.forEach((function(r){R.add(e(r,n,x,r,t,N))})):I(t)&&t.forEach((function(r,o){R.set(o,e(r,n,x,o,t,N))}));var B=M?void 0:(P?U?f:p:U?w:O)(t);return o(B||t,(function(r,o){B&&(r=t[o=r]),i(R,o,e(r,n,x,o,t,N))})),R}},3118:function(e,t,n){var r=n(3218),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},8483:function(e,t,n){var r=n(5063)();e.exports=r},8866:function(e,t,n){var r=n(2488),o=n(1469);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},4239:function(e,t,n){var r=n(2705),o=n(9607),i=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},9454:function(e,t,n){var r=n(4239),o=n(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},5588:function(e,t,n){var r=n(4160),o=n(7005);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},8458:function(e,t,n){var r=n(3560),o=n(5346),i=n(3218),a=n(346),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,d=u.toString,l=s.hasOwnProperty,p=RegExp("^"+d.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:c).test(a(e))}},9221:function(e,t,n){var r=n(4160),o=n(7005);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},8749:function(e,t,n){var r=n(4239),o=n(1780),i=n(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},280:function(e,t,n){var r=n(5726),o=n(6916),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},313:function(e,t,n){var r=n(3218),o=n(5726),i=n(3498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var c in e)("constructor"!=c||!t&&a.call(e,c))&&n.push(c);return n}},2980:function(e,t,n){var r=n(6384),o=n(6556),i=n(8483),a=n(9783),c=n(3218),u=n(1704),s=n(6390);e.exports=function e(t,n,d,l,p){t!==n&&i(n,(function(i,u){if(p||(p=new r),c(i))a(t,n,u,d,e,l,p);else{var f=l?l(s(t,u),i,u+"",t,n,p):void 0;void 0===f&&(f=i),o(t,u,f)}}),u)}},9783:function(e,t,n){var r=n(6556),o=n(4626),i=n(7133),a=n(278),c=n(8517),u=n(5694),s=n(1469),d=n(9246),l=n(4144),p=n(3560),f=n(3218),g=n(8630),h=n(6719),v=n(6390),y=n(9881);e.exports=function(e,t,n,m,b,I,E){var T=v(e,n),O=v(t,n),w=E.get(O);if(w)r(e,n,w);else{var _=I?I(T,O,n+"",e,t,E):void 0,j=void 0===_;if(j){var S=s(O),C=!S&&l(O),x=!S&&!C&&h(O);_=O,S||C||x?s(T)?_=T:d(T)?_=a(T):C?(j=!1,_=o(O,!0)):x?(j=!1,_=i(O,!0)):_=[]:g(O)||u(O)?(_=T,u(T)?_=y(T):f(T)&&!p(T)||(_=c(O))):j=!1}j&&(E.set(O,_),b(_,O,m,I,E),E.delete(O)),r(e,n,_)}}},5976:function(e,t,n){var r=n(6557),o=n(5357),i=n(61);e.exports=function(e,t){return i(o(e,t,r),e+"")}},6560:function(e,t,n){var r=n(5703),o=n(8777),i=n(6557),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},2545:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},1717:function(e){e.exports=function(e){return function(t){return e(t)}}},4318:function(e,t,n){var r=n(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},4626:function(e,t,n){e=n.nmd(e);var r=n(5639),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,c=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}},7157:function(e,t,n){var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},3147:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},419:function(e,t,n){var r=n(2705),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},7133:function(e,t,n){var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},278:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},8363:function(e,t,n){var r=n(4865),o=n(9465);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var c=-1,u=t.length;++c<u;){var s=t[c],d=i?i(n[s],e[s],s,n,e):void 0;void 0===d&&(d=e[s]),a?o(n,s,d):r(n,s,d)}return n}},8805:function(e,t,n){var r=n(8363),o=n(9551);e.exports=function(e,t){return r(e,o(e),t)}},1911:function(e,t,n){var r=n(8363),o=n(1442);e.exports=function(e,t){return r(e,o(e),t)}},4429:function(e,t,n){var r=n(5639)["__core-js_shared__"];e.exports=r},1463:function(e,t,n){var r=n(5976),o=n(6612);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,c=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,c&&o(n[0],n[1],c)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t}))}},5063:function(e){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),c=a.length;c--;){var u=a[e?c:++o];if(!1===n(i[u],u,i))break}return t}}},8777:function(e,t,n){var r=n(852),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},1957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8234:function(e,t,n){var r=n(8866),o=n(9551),i=n(3674);e.exports=function(e){return r(e,i,o)}},6904:function(e,t,n){var r=n(8866),o=n(1442),i=n(1704);e.exports=function(e){return r(e,i,o)}},5050:function(e,t,n){var r=n(7019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},852:function(e,t,n){var r=n(8458),o=n(7801);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},5924:function(e,t,n){var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},9607:function(e,t,n){var r=n(2705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}},9551:function(e,t,n){var r=n(4963),o=n(479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=c},1442:function(e,t,n){var r=n(2488),o=n(5924),i=n(9551),a=n(479),c=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=c},4160:function(e,t,n){var r=n(8552),o=n(7071),i=n(3818),a=n(8525),c=n(577),u=n(4239),s=n(346),d="[object Map]",l="[object Promise]",p="[object Set]",f="[object WeakMap]",g="[object DataView]",h=s(r),v=s(o),y=s(i),m=s(a),b=s(c),I=u;(r&&I(new r(new ArrayBuffer(1)))!=g||o&&I(new o)!=d||i&&I(i.resolve())!=l||a&&I(new a)!=p||c&&I(new c)!=f)&&(I=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case h:return g;case v:return d;case y:return l;case m:return p;case b:return f}return t}),e.exports=I},7801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},1789:function(e,t,n){var r=n(4536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:function(e,t,n){var r=n(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},1327:function(e,t,n){var r=n(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},1866:function(e,t,n){var r=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},3824:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},9148:function(e,t,n){var r=n(4318),o=n(7157),i=n(3147),a=n(419),c=n(7133);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return c(e,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return i(e);case"[object Set]":return new u;case"[object Symbol]":return a(e)}}},8517:function(e,t,n){var r=n(3118),o=n(5924),i=n(5726);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},5776:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6612:function(e,t,n){var r=n(7813),o=n(8612),i=n(5776),a=n(3218);e.exports=function(e,t,n){if(!a(n))return!1;var c=typeof t;return!!("number"==c?o(n)&&i(t,n.length):"string"==c&&t in n)&&r(n[t],e)}},7019:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:function(e,t,n){var r,o=n(4429),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},5726:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},7040:function(e){e.exports=function(){this.__data__=[],this.size=0}},4125:function(e,t,n){var r=n(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},2117:function(e,t,n){var r=n(8470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7518:function(e,t,n){var r=n(8470);e.exports=function(e){return r(this.__data__,e)>-1}},4705:function(e,t,n){var r=n(8470);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},4785:function(e,t,n){var r=n(1989),o=n(8407),i=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},1285:function(e,t,n){var r=n(5050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6e3:function(e,t,n){var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:function(e,t,n){var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:function(e,t,n){var r=n(5050);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},4536:function(e,t,n){var r=n(852)(Object,"create");e.exports=r},6916:function(e,t,n){var r=n(5569)(Object.keys,Object);e.exports=r},3498:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},1167:function(e,t,n){e=n.nmd(e);var r=n(1957),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,c=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=c},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},5357:function(e,t,n){var r=n(6874),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,c=o(i.length-t,0),u=Array(c);++a<c;)u[a]=i[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=i[a];return s[t]=n(u),r(e,this,s)}}},5639:function(e,t,n){var r=n(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},6390:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},61:function(e,t,n){var r=n(6560),o=n(1275)(r);e.exports=o},1275:function(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7465:function(e,t,n){var r=n(8407);e.exports=function(){this.__data__=new r,this.size=0}},3779:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:function(e){e.exports=function(e){return this.__data__.get(e)}},4758:function(e){e.exports=function(e){return this.__data__.has(e)}},4309:function(e,t,n){var r=n(8407),o=n(7071),i=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},361:function(e,t,n){var r=n(5990);e.exports=function(e){return r(e,5)}},5703:function(e){e.exports=function(e){return function(){return e}}},7813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},6557:function(e){e.exports=function(e){return e}},5694:function(e,t,n){var r=n(9454),o=n(7005),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!c.call(e,"callee")};e.exports=u},1469:function(e){var t=Array.isArray;e.exports=t},8612:function(e,t,n){var r=n(3560),o=n(1780);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},9246:function(e,t,n){var r=n(8612),o=n(7005);e.exports=function(e){return o(e)&&r(e)}},4144:function(e,t,n){e=n.nmd(e);var r=n(5639),o=n(5062),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,c=a&&a.exports===i?r.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;e.exports=u},3560:function(e,t,n){var r=n(4239),o=n(3218);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6688:function(e,t,n){var r=n(5588),o=n(1717),i=n(1167),a=i&&i.isMap,c=a?o(a):r;e.exports=c},3218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},8630:function(e,t,n){var r=n(4239),o=n(5924),i=n(7005),a=Function.prototype,c=Object.prototype,u=a.toString,s=c.hasOwnProperty,d=u.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==d}},2928:function(e,t,n){var r=n(9221),o=n(1717),i=n(1167),a=i&&i.isSet,c=a?o(a):r;e.exports=c},6719:function(e,t,n){var r=n(8749),o=n(1717),i=n(1167),a=i&&i.isTypedArray,c=a?o(a):r;e.exports=c},3674:function(e,t,n){var r=n(4636),o=n(280),i=n(8612);e.exports=function(e){return i(e)?r(e):o(e)}},1704:function(e,t,n){var r=n(4636),o=n(313),i=n(8612);e.exports=function(e){return i(e)?r(e,!0):o(e)}},2492:function(e,t,n){var r=n(2980),o=n(1463)((function(e,t,n){r(e,t,n)}));e.exports=o},479:function(e){e.exports=function(){return[]}},5062:function(e){e.exports=function(){return!1}},9881:function(e,t,n){var r=n(8363),o=n(1704);e.exports=function(e){return r(e,o(e))}},5666:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new C(r||[]);return i._invoke=function(e,t,n){var r=l;return function(o,i){if(r===f)throw new Error("Generator is already running");if(r===g){if("throw"===o)throw i;return k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=d(e,t,n);if("normal"===u.type){if(r=n.done?g:p,u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=g,n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var l="suspendedStart",p="suspendedYield",f="executing",g="completed",h={};function v(){}function y(){}function m(){}var b={};b[i]=function(){return this};var I=Object.getPrototypeOf,E=I&&I(I(x([])));E&&E!==n&&r.call(E,i)&&(b=E);var T=m.prototype=v.prototype=Object.create(b);function O(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,i,a,c){var u=d(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,c)}))}c(u.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function _(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,_(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=d(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function x(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:k}}function k(){return{value:t,done:!0}}return y.prototype=T.constructor=m,m.constructor=y,y.displayName=u(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u(e,c,"GeneratorFunction")),e.prototype=Object.create(T),e},e.awrap=function(e){return{__await:e}},O(w.prototype),w.prototype[a]=function(){return this},e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(T),u(T,c,"Generator"),T[i]=function(){return this},T.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:x(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e](i,i.exports,o),i.loaded=!0,i.exports}return o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&r&&n;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},o.d(i,a),i},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},o(198)}()}));
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@eid-easy/eideasy-browser-client",
3
- "version": "2.17.1",
3
+ "version": "2.19.0",
4
4
  "description": "eideasy-browser-client is a handy tool that you can use to handle the client side parts of the identification and signing flows when using eID Easy API.",
5
5
  "main": "dist/eideasy-browser-client.js",
6
- "sri": "sha256-P59FP/TY7SGBSKm/tp7AEtX7VcUEUgBQhUIPTl/DLL0=",
7
- "productionReleaseVersion": "2.17.1",
8
- "productionReleaseSri": "sha256-P59FP/TY7SGBSKm/tp7AEtX7VcUEUgBQhUIPTl/DLL0=",
6
+ "sri": "sha256-hrXQh/roZr1Lg0uBrxvL8tTOcGdN7MItetQl3aXWB84=",
7
+ "productionReleaseVersion": "2.19.0",
8
+ "productionReleaseSri": "sha256-hrXQh/roZr1Lg0uBrxvL8tTOcGdN7MItetQl3aXWB84=",
9
9
  "files": [
10
10
  "dist"
11
11
  ],