@eid-easy/eideasy-widget 2.87.0 → 2.89.0-beta.1

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.
@@ -15,7 +15,7 @@ return /******/ (function() { // webpackBootstrap
15
15
  /***/ (function(module) {
16
16
 
17
17
  /*! For license information please see eideasy-browser-client.js.LICENSE.txt */
18
- !function(t,e){ true?module.exports=e():0}(self,(function(){return function(){var t,e,n={9669:function(t,e,n){t.exports=n(1609)},5448:function(t,e,n){"use strict";var r=n(4867),i=n(6026),o=n(4372),a=n(5327),s=n(4097),c=n(4109),u=n(7985),d=n(5061);t.exports=function(t){return new Promise((function(e,n){var l=t.data,p=t.headers,f=t.responseType;r.isFormData(l)&&delete p["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var g=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";p.Authorization="Basic "+btoa(g+":"+v)}var y=s(t.baseURL,t.url);function m(){if(h){var r="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,o={data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:t,request:h};i(e,n,o),h=null}}if(h.open(t.method.toUpperCase(),a(y,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,"onloadend"in h?h.onloadend=m:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(m)},h.onabort=function(){h&&(n(d("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(d("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(d(e,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var I=(t.withCredentials||u(y))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;I&&(p[t.xsrfHeaderName]=I)}"setRequestHeader"in h&&r.forEach(p,(function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete p[e]:h.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),f&&"json"!==f&&(h.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),n(t),h=null)})),l||(l=null),h.send(l)}))}},1609:function(t,e,n){"use strict";var r=n(4867),i=n(1849),o=n(321),a=n(7185);function s(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var c=s(n(5655));c.Axios=o,c.create=function(t){return s(a(c.defaults,t))},c.Cancel=n(5263),c.CancelToken=n(4972),c.isCancel=n(6502),c.all=function(t){return Promise.all(t)},c.spread=n(8713),c.isAxiosError=n(6268),t.exports=c,t.exports.default=c},5263:function(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},4972:function(t,e,n){"use strict";var r=n(5263);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},6502:function(t){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:function(t,e,n){"use strict";var r=n(4867),i=n(5327),o=n(782),a=n(3572),s=n(7185),c=n(4875),u=c.validators;function d(t){this.defaults=t,this.interceptors={request:new o,response:new o}}d.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&c.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(t){o.push(t.fulfilled,t.rejected)})),!r){var d=[a,void 0];for(Array.prototype.unshift.apply(d,n),d=d.concat(o),i=Promise.resolve(t);d.length;)i=i.then(d.shift(),d.shift());return i}for(var l=t;n.length;){var p=n.shift(),f=n.shift();try{l=p(l)}catch(t){f(t);break}}try{i=a(l)}catch(t){return Promise.reject(t)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},d.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){d.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){d.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}})),t.exports=d},782:function(t,e,n){"use strict";var r=n(4867);function i(){this.handlers=[]}i.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},4097:function(t,e,n){"use strict";var r=n(1793),i=n(7303);t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},5061:function(t,e,n){"use strict";var r=n(481);t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},3572:function(t,e,n){"use strict";var r=n(4867),i=n(8527),o=n(6502),a=n(5655);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=i.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=i.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},481:function(t){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.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}},t}},7185:function(t,e,n){"use strict";var r=n(4867);t.exports=function(t,e){e=e||{};var n={},i=["url","method","data"],o=["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"],s=["validateStatus"];function c(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function u(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=c(void 0,t[i])):n[i]=c(t[i],e[i])}r.forEach(i,(function(t){r.isUndefined(e[t])||(n[t]=c(void 0,e[t]))})),r.forEach(o,u),r.forEach(a,(function(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=c(void 0,t[i])):n[i]=c(void 0,e[i])})),r.forEach(s,(function(r){r in e?n[r]=c(t[r],e[r]):r in t&&(n[r]=c(void 0,t[r]))}));var d=i.concat(o).concat(a).concat(s),l=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===d.indexOf(t)}));return r.forEach(l,u),n}},6026:function(t,e,n){"use strict";var r=n(5061);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},8527:function(t,e,n){"use strict";var r=n(4867),i=n(5655);t.exports=function(t,e,n){var o=this||i;return r.forEach(n,(function(n){t=n.call(o,t,e)})),t}},5655:function(t,e,n){"use strict";var r=n(4867),i=n(6016),o=n(481),a={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(5448)),c),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(s(e,"application/json"),function(t,e,n){if(r.isString(t))try{return(0,JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional,n=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw o(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(a)})),t.exports=u},1849:function(t){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},5327:function(t,e,n){"use strict";var r=n(4867);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},7303:function(t){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4372:function(t,e,n){"use strict";var r=n(4867);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},6268:function(t){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},7985:function(t,e,n){"use strict";var r=n(4867);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(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 t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},6016:function(t,e,n){"use strict";var r=n(4867);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},4109:function(t,e,n){"use strict";var r=n(4867),i=["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"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},8713:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},4875:function(t,e,n){"use strict";var r=n(8593),i={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){i[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var o={},a=r.version.split(".");function s(t,e){for(var n=e?e.split("."):a,r=t.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}i.transitional=function(t,e,n){var i=e&&s(e);function a(t,e){return"[Axios v"+r.version+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,s){if(!1===t)throw new Error(a(r," has been removed in "+e));return i&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,s)}},t.exports={isOlderVersion:s,assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var r=Object.keys(t),i=r.length;i-- >0;){var o=r[i],a=e[o];if(a){var s=t[o],c=void 0===s||a(s,o,t);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},4867:function(t,e,n){"use strict";var r=n(1849),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function c(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===i.call(t)}function d(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:c,isUndefined:a,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:u,isStream:function(t){return s(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t 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 t(){var e={};function n(n,r){c(e[r])&&c(n)?e[r]=t(e[r],n):c(n)?e[r]=t({},n):o(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)d(arguments[r],n);return e},extend:function(t,e,n){return d(e,(function(e,i){t[i]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},8552:function(t,e,n){var r=n(852)(n(5639),"DataView");t.exports=r},1989:function(t,e,n){var r=n(1789),i=n(401),o=n(7667),a=n(1327),s=n(1866);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},8407:function(t,e,n){var r=n(7040),i=n(4125),o=n(2117),a=n(7518),s=n(4705);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},7071:function(t,e,n){var r=n(852)(n(5639),"Map");t.exports=r},3369:function(t,e,n){var r=n(4785),i=n(1285),o=n(6e3),a=n(9916),s=n(5265);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},3818:function(t,e,n){var r=n(852)(n(5639),"Promise");t.exports=r},8525:function(t,e,n){var r=n(852)(n(5639),"Set");t.exports=r},6384:function(t,e,n){var r=n(8407),i=n(7465),o=n(3779),a=n(7599),s=n(4758),c=n(4309);function u(t){var e=this.__data__=new r(t);this.size=e.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,t.exports=u},2705:function(t,e,n){var r=n(5639).Symbol;t.exports=r},1149:function(t,e,n){var r=n(5639).Uint8Array;t.exports=r},577:function(t,e,n){var r=n(852)(n(5639),"WeakMap");t.exports=r},6874:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},7412:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},4963:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}},4636:function(t,e,n){var r=n(2545),i=n(5694),o=n(1469),a=n(4144),s=n(5776),c=n(6719),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),d=!n&&i(t),l=!n&&!d&&a(t),p=!n&&!d&&!l&&c(t),f=n||d||l||p,h=f?r(t.length,String):[],g=h.length;for(var v in t)!e&&!u.call(t,v)||f&&("length"==v||l&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g))||h.push(v);return h}},2488:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},6556:function(t,e,n){var r=n(9465),i=n(7813);t.exports=function(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},4865:function(t,e,n){var r=n(9465),i=n(7813),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},8470:function(t,e,n){var r=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},4037:function(t,e,n){var r=n(8363),i=n(3674);t.exports=function(t,e){return t&&r(e,i(e),t)}},3886:function(t,e,n){var r=n(8363),i=n(1704);t.exports=function(t,e){return t&&r(e,i(e),t)}},9465:function(t,e,n){var r=n(8777);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},5990:function(t,e,n){var r=n(6384),i=n(7412),o=n(4865),a=n(4037),s=n(3886),c=n(4626),u=n(278),d=n(8805),l=n(1911),p=n(8234),f=n(6904),h=n(4160),g=n(3824),v=n(9148),y=n(8517),m=n(1469),I=n(4144),S=n(6688),T=n(3218),E=n(2928),b=n(3674),C=n(1704),w="[object Arguments]",_="[object Function]",A="[object Object]",O={};O[w]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[A]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[_]=O["[object WeakMap]"]=!1,t.exports=function t(e,n,x,N,D,R){var k,U=1&n,M=2&n,j=4&n;if(x&&(k=D?x(e,N,D,R):x(e)),void 0!==k)return k;if(!T(e))return e;var L=m(e);if(L){if(k=g(e),!U)return u(e,k)}else{var P=h(e),B=P==_||"[object GeneratorFunction]"==P;if(I(e))return c(e,U);if(P==A||P==w||B&&!D){if(k=M||B?{}:y(e),!U)return M?l(e,s(k,e)):d(e,a(k,e))}else{if(!O[P])return D?e:{};k=v(e,P,U)}}R||(R=new r);var G=R.get(e);if(G)return G;R.set(e,k),E(e)?e.forEach((function(r){k.add(t(r,n,x,r,e,R))})):S(e)&&e.forEach((function(r,i){k.set(i,t(r,n,x,i,e,R))}));var F=L?void 0:(j?M?f:p:M?C:b)(e);return i(F||e,(function(r,i){F&&(r=e[i=r]),o(k,i,t(r,n,x,i,e,R))})),k}},3118:function(t,e,n){var r=n(3218),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},8483:function(t,e,n){var r=n(5063)();t.exports=r},8866:function(t,e,n){var r=n(2488),i=n(1469);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},4239:function(t,e,n){var r=n(2705),i=n(9607),o=n(2333),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},9454:function(t,e,n){var r=n(4239),i=n(7005);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},5588:function(t,e,n){var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},8458:function(t,e,n){var r=n(3560),i=n(5346),o=n(3218),a=n(346),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,d=c.toString,l=u.hasOwnProperty,p=RegExp("^"+d.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?p:s).test(a(t))}},9221:function(t,e,n){var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},8749:function(t,e,n){var r=n(4239),i=n(1780),o=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,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},280:function(t,e,n){var r=n(5726),i=n(6916),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},313:function(t,e,n){var r=n(3218),i=n(5726),o=n(3498),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&n.push(s);return n}},2980:function(t,e,n){var r=n(6384),i=n(6556),o=n(8483),a=n(9783),s=n(3218),c=n(1704),u=n(6390);t.exports=function t(e,n,d,l,p){e!==n&&o(n,(function(o,c){if(p||(p=new r),s(o))a(e,n,c,d,t,l,p);else{var f=l?l(u(e,c),o,c+"",e,n,p):void 0;void 0===f&&(f=o),i(e,c,f)}}),c)}},9783:function(t,e,n){var r=n(6556),i=n(4626),o=n(7133),a=n(278),s=n(8517),c=n(5694),u=n(1469),d=n(9246),l=n(4144),p=n(3560),f=n(3218),h=n(8630),g=n(6719),v=n(6390),y=n(9881);t.exports=function(t,e,n,m,I,S,T){var E=v(t,n),b=v(e,n),C=T.get(b);if(C)r(t,n,C);else{var w=S?S(E,b,n+"",t,e,T):void 0,_=void 0===w;if(_){var A=u(b),O=!A&&l(b),x=!A&&!O&&g(b);w=b,A||O||x?u(E)?w=E:d(E)?w=a(E):O?(_=!1,w=i(b,!0)):x?(_=!1,w=o(b,!0)):w=[]:h(b)||c(b)?(w=E,c(E)?w=y(E):f(E)&&!p(E)||(w=s(b))):_=!1}_&&(T.set(b,w),I(w,b,m,S,T),T.delete(b)),r(t,n,w)}}},5976:function(t,e,n){var r=n(6557),i=n(5357),o=n(61);t.exports=function(t,e){return o(i(t,e,r),t+"")}},6560:function(t,e,n){var r=n(5703),i=n(8777),o=n(6557),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},2545:function(t){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},1717:function(t){t.exports=function(t){return function(e){return t(e)}}},4318:function(t,e,n){var r=n(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},4626:function(t,e,n){t=n.nmd(t);var r=n(5639),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}},7157:function(t,e,n){var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},3147:function(t){var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},419:function(t,e,n){var r=n(2705),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},7133:function(t,e,n){var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},278:function(t){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},8363:function(t,e,n){var r=n(4865),i=n(9465);t.exports=function(t,e,n,o){var a=!n;n||(n={});for(var s=-1,c=e.length;++s<c;){var u=e[s],d=o?o(n[u],t[u],u,n,t):void 0;void 0===d&&(d=t[u]),a?i(n,u,d):r(n,u,d)}return n}},8805:function(t,e,n){var r=n(8363),i=n(9551);t.exports=function(t,e){return r(t,i(t),e)}},1911:function(t,e,n){var r=n(8363),i=n(1442);t.exports=function(t,e){return r(t,i(t),e)}},4429:function(t,e,n){var r=n(5639)["__core-js_shared__"];t.exports=r},1463:function(t,e,n){var r=n(5976),i=n(6612);t.exports=function(t){return r((function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r<o;){var c=n[r];c&&t(e,c,r,a)}return e}))}},5063:function(t){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var c=a[t?s:++i];if(!1===n(o[c],c,o))break}return e}}},8777:function(t,e,n){var r=n(852),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},1957:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8234:function(t,e,n){var r=n(8866),i=n(9551),o=n(3674);t.exports=function(t){return r(t,o,i)}},6904:function(t,e,n){var r=n(8866),i=n(1442),o=n(1704);t.exports=function(t){return r(t,o,i)}},5050:function(t,e,n){var r=n(7019);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},852:function(t,e,n){var r=n(8458),i=n(7801);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},5924:function(t,e,n){var r=n(5569)(Object.getPrototypeOf,Object);t.exports=r},9607:function(t,e,n){var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},9551:function(t,e,n){var r=n(4963),i=n(479),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},1442:function(t,e,n){var r=n(2488),i=n(5924),o=n(9551),a=n(479),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:a;t.exports=s},4160:function(t,e,n){var r=n(8552),i=n(7071),o=n(3818),a=n(8525),s=n(577),c=n(4239),u=n(346),d="[object Map]",l="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",g=u(r),v=u(i),y=u(o),m=u(a),I=u(s),S=c;(r&&S(new r(new ArrayBuffer(1)))!=h||i&&S(new i)!=d||o&&S(o.resolve())!=l||a&&S(new a)!=p||s&&S(new s)!=f)&&(S=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case g:return h;case v:return d;case y:return l;case m:return p;case I:return f}return e}),t.exports=S},7801:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},1789:function(t,e,n){var r=n(4536);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:function(t,e,n){var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},1327:function(t,e,n){var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},1866:function(t,e,n){var r=n(4536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},9148:function(t,e,n){var r=n(4318),i=n(7157),o=n(3147),a=n(419),s=n(7133);t.exports=function(t,e,n){var c=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return i(t,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 s(t,n);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return o(t);case"[object Symbol]":return a(t)}}},8517:function(t,e,n){var r=n(3118),i=n(5924),o=n(5726);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},5776:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},6612:function(t,e,n){var r=n(7813),i=n(8612),o=n(5776),a=n(3218);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&o(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},7019:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:function(t,e,n){var r,i=n(4429),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},5726:function(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},7040:function(t){t.exports=function(){this.__data__=[],this.size=0}},4125:function(t,e,n){var r=n(8470),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},2117:function(t,e,n){var r=n(8470);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},7518:function(t,e,n){var r=n(8470);t.exports=function(t){return r(this.__data__,t)>-1}},4705:function(t,e,n){var r=n(8470);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},4785:function(t,e,n){var r=n(1989),i=n(8407),o=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},1285:function(t,e,n){var r=n(5050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},6e3:function(t,e,n){var r=n(5050);t.exports=function(t){return r(this,t).get(t)}},9916:function(t,e,n){var r=n(5050);t.exports=function(t){return r(this,t).has(t)}},5265:function(t,e,n){var r=n(5050);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},4536:function(t,e,n){var r=n(852)(Object,"create");t.exports=r},6916:function(t,e,n){var r=n(5569)(Object.keys,Object);t.exports=r},3498:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1167:function(t,e,n){t=n.nmd(t);var r=n(1957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},5357:function(t,e,n){var r=n(6874),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),c=Array(s);++a<s;)c[a]=o[e+a];a=-1;for(var u=Array(e+1);++a<e;)u[a]=o[a];return u[e]=n(c),r(t,this,u)}}},5639:function(t,e,n){var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},6390:function(t){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},61:function(t,e,n){var r=n(6560),i=n(1275)(r);t.exports=i},1275:function(t){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},7465:function(t,e,n){var r=n(8407);t.exports=function(){this.__data__=new r,this.size=0}},3779:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},7599:function(t){t.exports=function(t){return this.__data__.get(t)}},4758:function(t){t.exports=function(t){return this.__data__.has(t)}},4309:function(t,e,n){var r=n(8407),i=n(7071),o=n(3369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},346:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},361:function(t,e,n){var r=n(5990);t.exports=function(t){return r(t,5)}},5703:function(t){t.exports=function(t){return function(){return t}}},7813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},6557:function(t){t.exports=function(t){return t}},5694:function(t,e,n){var r=n(9454),i=n(7005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=c},1469:function(t){var e=Array.isArray;t.exports=e},8612:function(t,e,n){var r=n(3560),i=n(1780);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},9246:function(t,e,n){var r=n(8612),i=n(7005);t.exports=function(t){return i(t)&&r(t)}},4144:function(t,e,n){t=n.nmd(t);var r=n(5639),i=n(5062),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;t.exports=c},3560:function(t,e,n){var r=n(4239),i=n(3218);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:function(t,e,n){var r=n(5588),i=n(1717),o=n(1167),a=o&&o.isMap,s=a?i(a):r;t.exports=s},3218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},8630:function(t,e,n){var r=n(4239),i=n(5924),o=n(7005),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,d=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=u.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}},2928:function(t,e,n){var r=n(9221),i=n(1717),o=n(1167),a=o&&o.isSet,s=a?i(a):r;t.exports=s},6719:function(t,e,n){var r=n(8749),i=n(1717),o=n(1167),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},3674:function(t,e,n){var r=n(4636),i=n(280),o=n(8612);t.exports=function(t){return o(t)?r(t):i(t)}},1704:function(t,e,n){var r=n(4636),i=n(313),o=n(8612);t.exports=function(t){return o(t)?r(t,!0):i(t)}},2492:function(t,e,n){var r=n(2980),i=n(1463)((function(t,e,n){r(t,e,n)}));t.exports=i},479:function(t){t.exports=function(){return[]}},5062:function(t){t.exports=function(){return!1}},9881:function(t,e,n){var r=n(8363),i=n(1704);t.exports=function(t){return r(t,i(t))}},7061:function(t,e,n){var r=n(8698).default;function i(){"use strict";t.exports=i=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new O(r||[]);return a(o,"_invoke",{value:C(t,n,s)}),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var h={};function g(){}function v(){}function y(){}var m={};l(m,c,(function(){return this}));var I=Object.getPrototypeOf,S=I&&I(I(x([])));S&&S!==n&&o.call(S,c)&&(m=S);var T=y.prototype=g.prototype=Object.create(m);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function n(i,a,s,c){var u=f(t[i],t,a);if("throw"!==u.type){var d=u.arg,l=d.value;return l&&"object"==r(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):e.resolve(l).then((function(t){d.value=t,s(d)}),(function(t){return n("throw",t,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function C(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function w(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function x(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:N}}function N(){return{value:void 0,done:!0}}return v.prototype=y,a(T,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,d,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,d,"GeneratorFunction")),t.prototype=Object.create(T),t},e.awrap=function(t){return{__await:t}},E(b.prototype),l(b.prototype,u,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(p(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(T),l(T,d,"Generator"),l(T,c,(function(){return this})),l(T,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=x,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},8698:function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4687:function(t,e,n){var r=n(7061)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},8593:function(t){"use strict";t.exports=JSON.parse('{"name":"axios","version":"0.21.4","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"}]}')}},r={};function i(t){var e=r[t];if(void 0!==e)return e.exports;var o=r[t]={id:t,loaded:!1,exports:{}};return n[t](o,o.exports,i),o.loaded=!0,o.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},i.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 o=Object.create(null);i.r(o);var a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&r&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((function(t){a[t]=function(){return n[t]}}));return a.default=function(){return n},i.d(o,a),o},i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t};var o={};return function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,"string");if("object"!==t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var n;i.r(o),i.d(o,{allMethods:function(){return c},createClient:function(){return No},default:function(){return Do},getMethodByHandlingModule:function(){return u},methodActionTypes:function(){return a},methodTypes:function(){return r},moduleNames:function(){return s}});var r={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",LV_EPARAKSTS_ID_LOGIN:"lv-eparaksts-id-login",LT_MOBILE_ID:"lt-mobile-id",SMART_ID:"smartid",FREJA_EID_LOGIN:"freja-eid-login",ZEALID_LOGIN:"zealid-login",CZ_MOJEID:"mojeid",EDOAPP_EID_LOGIN:"edoapp-eid-login",AT_HANDY_SIGNATUR_LOGIN:"at-handy-signatur-login",FI_FTN_LOGIN:"finnish-ftn-login",ITSME_LOGIN:"itsme-login",ITSME_LOGIN_BASIC:"itsme-login-basic",ITSME_LOGIN_STANDARD:"itsme-login-standard",SE_BANKID_LOGIN:"swedish-bankid-login",IDIN_LOGIN:"idin-login",VERIFAI_LOGIN:"verifai-login",YOONIK_LOGIN:"yoonik-login",PL_MOJEID_LOGIN:"pl-mojeid-login",MIT_ID_LOGIN:"mit-id-login",NORWEGIAN_BANKID_LOGIN:"norwegian-bankid-login",FTN_LOGIN:"ftn-login",IDIN_CUSTOMER_ID_LOGIN:"idin-customer-id-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",HR_IDCARD_SIGNATURE:"hr-id-signature",CERTEUROPE_USB_TOKEN_SIGNATURE:"certeurope-usb-token-signature",CERTSIGN_USB_TOKEN_SIGNATURE:"certsign-usb-token-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_FULL_SIGNATURE:"fi-ftn-advanced-full-signature",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",DK_MITID_ADVANCED_SIGNATURE:"dk-mitid-advanced-signature",DK_MITID_QES_SIGNATURE:"dk-mitid-qes-signature",SE_BANK_ID_ADVANCED_SIGNATURE:"se-bankid-advanced-signature",SE_BANK_ID_QES_SIGNATURE:"se-bankid-qes-signature",NORWEGIAN_BANKID_ADVANCED_SIGNATURE:"norwegian-bankid-adv-signature",IDIN_SIMPLE_SIGNATURE:"idin-simple-signature",VERIFAI_SIMPLE_SIGNATURE:"verifai-simple-signature",SPID_QUALIFIED_SIGNATURE:"spid-qes-signature",FREJA_SIMPLE_SIGNATURE:"freja-simple-signature",AUDKENNI_QUALIFIED_SIGNATURE:"audkenni-qes-signature",YES_COM_QUALIFIED_SIGNATURE:"yes-com-qes-signature",SIMPLY_SIGN_QES_SIGNATURE:"simply-sign-qes-signature",UANATACA_QUALIFIED_SIGNATURE:"uanataca-qes-signature",CERTSIGN_WEBAPI_QUALIFIED_SIGNATURE:"certsign-webapi-qes-signature",HALCOM_QUALIFIED_SIGNATURE:"halcom-qes-signature",SWISS_ID_QUALIFIED_SIGNATURE:"swiss-id-qes-signature",SWISS_COM_QUALIFIED_SIGNATURE:"swiss-com-qes-signature",SE_FREJA_EID_ADVANCED_SIGNATURE:"se-frejaeid-advanced-signature",SE_FREJA_EID_QES_SIGNATURE:"se-frejaeid-qes-signature",ITSME_QES_SIGNATURE:"itsme-qes-signature",FR_IDENT_ADVANCED_SIGNATURE:"fr-ident-advanced-signature"},s={idCard:"idCard",mobileId:"mobileId",eParakstsMobile:"eParakstsMobile",eParakstsSmartCard:"eParakstsSmartCard",smartId:"smartId",frejaEid:"frejaEid",zealId:"zealId",mojeId:"mojeId",edoAppEid:"edoAppEid",finnishTrustNetwork:"finnishTrustNetwork",atHandy:"atHandy",itsme:"itsme",itsmeBasic:"itsmeBasic",itsmeStandard:"itsmeStandard",seBankId:"seBankId",idin:"idin",idinCustomerId:"idinCustomerId",verifai:"verifai",yoonik:"yoonik",plMojeId:"plMojeId",mitId:"mitId",norwegianBankId:"norwegianBankId",ftn:"ftn",idCardSignature:"idCardSignature",certEuropeUsbTokenSignature:"certEuropeUsbTokenSignature",certSignUsbTokenSignature:"certSignUsbTokenSignature",mobileIdSignature:"mobileIdSignature",smartIdSignature:"smartIdSignature",evroTrustSignature:"evroTrustSignature",otpSignature:"otpSignature",eParakstsMobileSignature:"eParakstsMobileSignature",ftnAdvancedFullSignature:"ftnAdvancedFullSignature",mitIdAdvancedSignature:"mitIdAdvancedSignature",mitIdQesSignature:"mitIdQesSignature",seBankIdAdvancedSignature:"seBankIdAdvancedSignature",seBankIdQesSignature:"seBankIdQesSignature",ftnSignature:"ftnSignature",ftnQesSignature:"ftnQesSignature",atHandySignature:"atHandySignature",zealIdSignature:"zealIdSignature",mojeIdSignature:"mojeIdSignature",googleSignature:"googleSignature",seBankIdSignature:"seBankIdSignature",dTrustSignMeSignature:"dTrustSignMeSignature",chaveMovelSignature:"chaveMovelSignature",mitIdSignature:"mitIdSignature",noBankIdAdvSignature:"noBankIdAdvSignature",idinSignature:"idinSignature",verifaiSignature:"verifaiSignature",spidQesSignature:"spidQesSignature",frejaSimpleSignature:"frejaSimpleSignature",audkenniQesSignature:"audkenniQesSignature",yesComQesSignature:"yesComQesSignature",simplySignQesSignature:"simplySignQesSignature",uanatacaQesSignature:"uanatacaQesSignature",certsignWebapiQesSignature:"certsignWebapiQesSignature",halcomQesSignature:"halcomQesSignature",swissIdQesSignature:"swissIdQesSignature",swissComQesSignature:"swissComQesSignature",frejaAdvancedSignature:"frejaAdvancedSignature",frejaQesSignature:"frejaQesSignature",itsmeQesSignature:"itsmeQesSignature",frIdentAdvancedSignature:"frIdentAdvancedSignature"},c=Object.freeze((e(n={},r.IDENTIFICATION,[{actionType:a.BE_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["BE"]},{actionType:a.EE_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["EE"]},{actionType:a.FI_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["FI"]},{actionType:a.LV_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["LV"]},{actionType:a.LT_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["LT"]},{actionType:a.PT_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["PT"]},{actionType:a.RS_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["RS"]},{actionType:a.LV_EPARAKSTS_MOBILE_LOGIN,handlingModule:s.eParakstsMobile,supportedCountries:["LV"]},{actionType:a.LV_EPARAKSTS_ID_LOGIN,handlingModule:s.eParakstsSmartCard,supportedCountries:["LV"]},{actionType:a.LT_MOBILE_ID,handlingModule:s.mobileId,supportedCountries:["LT"]},{actionType:a.EE_MOBILE_ID,handlingModule:s.mobileId,supportedCountries:["EE"]},{actionType:a.SMART_ID,handlingModule:s.smartId,supportedCountries:["EE","LV","LT"]},{actionType:a.FREJA_EID_LOGIN,handlingModule:s.frejaEid,supportedCountries:["FI","SE","NO","DK"]},{actionType:a.ZEALID_LOGIN,handlingModule:s.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:s.mojeId,supportedCountries:["CZ"]},{actionType:a.EDOAPP_EID_LOGIN,handlingModule:s.edoAppEid,supportedCountries:["PL"]},{actionType:a.FI_FTN_LOGIN,handlingModule:s.finnishTrustNetwork,supportedCountries:["FI"]},{actionType:a.AT_HANDY_SIGNATUR_LOGIN,handlingModule:s.atHandy,supportedCountries:["AT"]},{actionType:a.ITSME_LOGIN,handlingModule:s.itsme,supportedCountries:["BE","LU","NL"]},{actionType:a.ITSME_LOGIN_BASIC,handlingModule:s.itsmeBasic,supportedCountries:["BE","LU","NL"]},{actionType:a.ITSME_LOGIN_STANDARD,handlingModule:s.itsmeStandard,supportedCountries:["BE","LU","NL"]},{actionType:a.SE_BANKID_LOGIN,handlingModule:s.seBankId,supportedCountries:["SE"]},{actionType:a.IDIN_LOGIN,handlingModule:s.idin,supportedCountries:["NL"]},{actionType:a.IDIN_CUSTOMER_ID_LOGIN,handlingModule:s.idinCustomerId,supportedCountries:["NL"]},{actionType:a.VERIFAI_LOGIN,handlingModule:s.verifai,supportedCountries:["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","CV","KH","CM","CA","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","ER","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","GH","GI","GR","GL","GD","GP","GU","GT","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","KP","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","GS","KR","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","UM","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"]},{actionType:a.YOONIK_LOGIN,handlingModule:s.yoonik,supportedCountries:["WORLD"]},{actionType:a.PL_MOJEID_LOGIN,handlingModule:s.plMojeId,supportedCountries:["PL"]},{actionType:a.MIT_ID_LOGIN,handlingModule:s.mitId,supportedCountries:["DK"]},{actionType:a.NORWEGIAN_BANKID_LOGIN,handlingModule:s.norwegianBankId,supportedCountries:["NO"]},{actionType:a.FTN_LOGIN,handlingModule:s.ftn,supportedCountries:["FI"]}]),e(n,r.SIGNATURE,[{actionType:a.EE_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["EE"]},{actionType:a.LV_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["LV"]},{actionType:a.LT_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["LT"]},{actionType:a.FI_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["FI","AX"]},{actionType:a.PT_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["PT"]},{actionType:a.BE_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["BE"]},{actionType:a.HR_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["HR"]},{actionType:a.CERTEUROPE_USB_TOKEN_SIGNATURE,handlingModule:s.certEuropeUsbTokenSignature,supportedCountries:["FR"]},{actionType:a.CERTSIGN_USB_TOKEN_SIGNATURE,handlingModule:s.certSignUsbTokenSignature,supportedCountries:["RO"]},{actionType:a.EE_MOBILEID_SIGNATURE,handlingModule:s.mobileIdSignature,supportedCountries:["EE"]},{actionType:a.LT_MOBILEID_SIGNATURE,handlingModule:s.mobileIdSignature,supportedCountries:["LT"]},{actionType:a.SMARTID_SIGNATURE,handlingModule:s.smartIdSignature,supportedCountries:["EE","LV","LT"]},{actionType:a.EVROTRUST_SIGNATURE,handlingModule:s.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","AX"]},{actionType:a.ITSME_QES_SIGNATURE,handlingModule:s.itsmeQesSignature,supportedCountries:["BE","LU","NL"]},{actionType:a.OTP_EMAIL,handlingModule:s.otpSignature,supportedCountries:["WORLD"]},{actionType:a.LV_EPARAKSTS_MOBILE_SIGNATURE,handlingModule:s.eParakstsMobileSignature,supportedCountries:["LV"]},{actionType:a.FI_FTN_ADVANCED_SIGNATURE,handlingModule:s.ftnSignature,supportedCountries:["FI","AX"]},{actionType:a.FI_FTN_ADVANCED_FULL_SIGNATURE,handlingModule:s.ftnAdvancedFullSignature,supportedCountries:["FI","AX"]},{actionType:a.FI_FTN_QUALIFIED_SIGNATURE,handlingModule:s.ftnQesSignature,supportedCountries:["FI","AX"]},{actionType:a.AT_HANDY_SIGNATUR_SIGNATURE,handlingModule:s.atHandySignature,supportedCountries:["AT"]},{actionType:a.ZEAL_ID_SIGNATURE,handlingModule:s.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:s.mojeIdSignature,supportedCountries:["CZ"]},{actionType:a.GOOGLE_SIGNATURE,handlingModule:s.googleSignature,supportedCountries:["WORLD"]},{actionType:a.SE_BANKID_SIGNATURE,handlingModule:s.seBankIdSignature,supportedCountries:["SE"]},{actionType:a.D_TRUST_SIGN_ME_QUALIFIED_SIGNATURE,handlingModule:s.dTrustSignMeSignature,supportedCountries:["DE","CA","ZA","GR","NL","BE","FR","ES","PT","LU","IE","IS","MT","CY","AX","FI","US","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:s.chaveMovelSignature,supportedCountries:["PT"]},{actionType:a.NORWEGIAN_BANKID_ADVANCED_SIGNATURE,handlingModule:s.noBankIdAdvSignature,supportedCountries:["NO"]},{actionType:a.MIT_ID_SIMPLE_SIGNATURE,handlingModule:s.mitIdSignature,supportedCountries:["DK","GL"]},{actionType:a.IDIN_SIMPLE_SIGNATURE,handlingModule:s.idinSignature,supportedCountries:["NL"]},{actionType:a.SPID_QUALIFIED_SIGNATURE,handlingModule:s.spidQesSignature,supportedCountries:["IT"]},{actionType:a.VERIFAI_SIMPLE_SIGNATURE,handlingModule:s.verifaiSignature,supportedCountries:["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","CV","KH","CM","CA","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","ER","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","GH","GI","GR","GL","GD","GP","GU","GT","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","KP","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","GS","KR","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","UM","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"]},{actionType:a.FREJA_SIMPLE_SIGNATURE,handlingModule:s.frejaSimpleSignature,supportedCountries:["DK","EE","FI","LV","LT","NO","PL","RO","SK","SE","GL","AX"]},{actionType:a.AUDKENNI_QUALIFIED_SIGNATURE,handlingModule:s.audkenniQesSignature,supportedCountries:["IS"]},{actionType:a.YES_COM_QUALIFIED_SIGNATURE,handlingModule:s.yesComQesSignature,supportedCountries:["DE"]},{actionType:a.SIMPLY_SIGN_QES_SIGNATURE,handlingModule:s.simplySignQesSignature,supportedCountries:["PL"]},{actionType:a.UANATACA_QUALIFIED_SIGNATURE,handlingModule:s.uanatacaQesSignature,supportedCountries:["ES"]},{actionType:a.CERTSIGN_WEBAPI_QUALIFIED_SIGNATURE,handlingModule:s.certsignWebapiQesSignature,supportedCountries:["RO"]},{actionType:a.HALCOM_QUALIFIED_SIGNATURE,handlingModule:s.halcomQesSignature,supportedCountries:["SI"]},{actionType:a.SWISS_ID_QUALIFIED_SIGNATURE,handlingModule:s.swissIdQesSignature,supportedCountries:["CH"]},{actionType:a.SWISS_COM_QUALIFIED_SIGNATURE,handlingModule:s.swissComQesSignature,supportedCountries:["CH"]},{actionType:a.DK_MITID_ADVANCED_SIGNATURE,handlingModule:s.mitIdAdvancedSignature,supportedCountries:["DK"]},{actionType:a.DK_MITID_QES_SIGNATURE,handlingModule:s.mitIdQesSignature,supportedCountries:["DK"]},{actionType:a.SE_BANK_ID_ADVANCED_SIGNATURE,handlingModule:s.seBankIdAdvancedSignature,supportedCountries:["SE"]},{actionType:a.SE_BANK_ID_QES_SIGNATURE,handlingModule:s.seBankIdQesSignature,supportedCountries:["SE"]},{actionType:a.SE_FREJA_EID_ADVANCED_SIGNATURE,handlingModule:s.frejaAdvancedSignature,supportedCountries:["SE"]},{actionType:a.SE_FREJA_EID_QES_SIGNATURE,handlingModule:s.frejaQesSignature,supportedCountries:["SE"]},{actionType:a.FR_IDENT_ADVANCED_SIGNATURE,handlingModule:s.frIdentAdvancedSignature,supportedCountries:["FR"]}]),n)),u=function(t,e,n){var r=c[t];if(e&&n){var i=r.find((function(t){return t.handlingModule===e&&(t.supportedCountries.includes(n)||t.supportedCountries.includes("WORLD"))}));if(!i){if(0===r.filter((function(t){return t.handlingModule===e})).length)throw new Error("Could not find matching method configuration for ".concat(t,' module "').concat(e,'"'));throw new Error('Country "'.concat(n,'" is not supported for ').concat(t,'\n module "').concat(e,'".'))}return i}return r.find((function(t){return t.handlingModule===e}))},d=i(2492),l=i.n(d),p=i(9669),f=i.n(p),h=f().CancelToken,g=f().isCancel;f().Cancel,f().interceptors.response.use((function(t){return(e=t.data)&&["error","No ID or basic level only","USER_CANCELLED","USER_REFUSED","refused","TIMEOUT","NOT_MID_CLIENT","ERROR"].includes(e.status)?Promise.reject(function(t){var e=t.message,n=t.config,r=t.code,i=t.request,o=t.response,a=new Error(e);return a.config=n,r&&(a.code=r),a.request=i,a.response=o,a.isRequestError=!0,a}({message:"Request failed with status code ".concat(t.status),config:t.config,request:t.request,response:t})):t;var e}));var v=function(t){return f()(t)};function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?y(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var I=function(t,e){var n,r=e.modifyRequestSettings,i=t;return"function"==typeof r&&(n=r(i)),n&&(i=l()(i,n)),i},S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(I(m({method:"get",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},e),t))},n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(I(m({method:"post",cache:"no-cache",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},e),t))};return Object.freeze({get:e,post:n,CancelToken:h})};function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function E(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?T(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.identificationModules,n=void 0===e?[]:e,r=t.signingModules,i=void 0===r?[]:r,o=t.settings,a=void 0===o?{}:o,s=t.i18n,u=t.apiEndpoints,d=t.monitoringService,l=E({},a);l.apiEndpoints=u,s.setLanguage(l.language);var p=function(t){l.countryCode=t},f=function(){return l.countryCode},h=function(){return c},g={};n.forEach((function(t){var e=t({coreContext:{config:l,i18n:s,monitoringService:d},apiClient:S({modifyRequestSettings:l.modifyRequestSettings})});g[e.MODULE_NAME]=e}));var v={};return i.forEach((function(t){var e=t({coreContext:{config:l,i18n:s,monitoringService:d},apiClient:S({modifyRequestSettings:l.modifyRequestSettings})});v[e.MODULE_NAME]=e})),Object.freeze({identification:E({},g),signature:E({},v),getAllMethods:h,setLanguage:s.setLanguage,setCountryCode:p,getCountryCode:f})};function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var w=function(n){var r=n.rawSettings,i=n.schema,o=function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?C(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},r);return Object.keys(i).forEach((function(e){var n=i[e],a=r[e];if(n.required&&void 0===a)throw new Error('Missing required setting "'.concat(e,'"'));if(void 0===a&&(o[e]=n.default),void 0!==o[e]&&void 0!==n.type&&n.type!==t(o[e]))throw new Error('Expected "'.concat(e,'" to be type of "').concat(n.type,'", but received "').concat(t(o[e]),'"'))})),o},_={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(t){var e=t.data&&t.data.redirect_uri;return e?(window.location!==window.top.location?window.top.location.href=e:window.location.href=e,new Promise((function(){}))):t},type:"function"},remoteMonitoringEnabled:{default:!1},oauthParamState:{type:"string"}},A=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."}'),O=i.t(A,2),x=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."}'),N=i.t(x,2),D=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=i.t(D,2),k=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=i.t(k,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."}'),j=i.t(M,2),L=JSON.parse('{"id-card-read-timeout":"Чтение удостоверения личности заняло слишком много времени. Закройте все открытые окна браузера и повторите попытку.","no_certificates":"Не удалось прочитать сертификаты. Убедитесь, что карта находится в считывателе и считыватель работает исправно."}'),P={de:O,en:N,et:R,lt:U,lv:j,ru:i.t(L,2)},B=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.currentLanguage,n=void 0===e?"en":e,r=t.locales,i=void 0===r?P:r,o={currentLanguage:n},a="en",s=function(t){o.currentLanguage=t},c=function(){return o.currentLanguage},u=function(t){var e=i[o.currentLanguage];e||(e=i[a]);var n=e[t]||i[a][t];return n||(n=t),n};return Object.freeze({setLanguage:s,t:u,getCurrentLanguage:c})},G=function(t){var e=t.clientId,n=t.remoteMonitoringEnabled,r=t.apiEndpoints;return{dispatch:function(t){var i=t.message;n&&v({url:r.inCurrentMode.eideasyMonitoring(),method:"post",cache:"no-cache",withCredentials:!1,data:{client_id:e,source:"browser-client",message:i}})}}};function F(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function V(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){F(o,r,i,a,s,"next",t)}function s(t){F(o,r,i,a,s,"throw",t)}a(void 0)}))}}var q=i(4687),H=i.n(q),K=i(361),Q=i.n(K)(),z=function(t){var e=t;return g(t)&&(e.isCancel=!0),e.response&&e.response.data&&(e.response.data.message&&(e.userMessage=e.response.data.message),e.response.data.errors&&(e.userDetails=e.response.data.errors)),e},Z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,n=t.message,r=Q({message:n});if(e)r.data=e;else{if(!t.result||!t.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=t.result.data}return r},J=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.error},W=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.shouldFormatResult,r=void 0===n||n;return function(){var e=V(H().mark((function e(){var n,i,o=arguments;return H().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.apply(void 0,o);case 2:if(n=e.sent,!(i=J(n))){e.next=6;break}throw z(i);case 6:return e.abrupt("return",r?Z(n):n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()};class Y extends Error{name="NonError";constructor(t){super(Y._prepareSuperMessage(t))}static _prepareSuperMessage(t){try{return JSON.stringify(t)}catch{return String(t)}}}const $=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],X=Symbol(".toJSON was called"),tt=({from:t,seen:e,to_:n,forceEnumerable:r,maxDepth:i,depth:o})=>{const a=n||(Array.isArray(t)?[]:{});if(e.push(t),o>=i)return a;if("function"==typeof t.toJSON&&!0!==t[X])return(t=>{t[X]=!0;const e=t.toJSON();return delete t[X],e})(t);for(const[n,s]of Object.entries(t))"function"==typeof Buffer&&Buffer.isBuffer(s)?a[n]="[object Buffer]":null===s||"object"!=typeof s||"function"!=typeof s.pipe?"function"!=typeof s&&(s&&"object"==typeof s?e.includes(t[n])?a[n]="[Circular]":(o++,a[n]=tt({from:t[n],seen:[...e],forceEnumerable:r,maxDepth:i,depth:o})):a[n]=s):a[n]="[object Stream]";for(const{property:e,enumerable:n}of $)"string"==typeof t[e]&&Object.defineProperty(a,e,{value:t[e],enumerable:!!r||n,configurable:!0,writable:!0});return a};function et(t,e={}){const{maxDepth:n=Number.POSITIVE_INFINITY}=e;return"object"==typeof t&&null!==t?tt({from:t,seen:[],forceEnumerable:!0,maxDepth:n,depth:0}):"function"==typeof t?`[Function: ${t.name||"anonymous"}]`:t}function nt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function rt(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?nt(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var it=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){var i=r.coreContext,o=r.apiClient,a=i.i18n,s=i.config,c=i.monitoringService;return Object.freeze({MODULE_NAME:t,start:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=rt(rt({},_),n),i=rt(rt({},s),t),u=w({rawSettings:i,schema:r}),d=u.success,l=u.fail,p=u.finished,f=t.language||a.getCurrentLanguage(),h=o.CancelToken.source(),g=h.token,v={onCancelByUser:function(){}},y=function(t){v.onCancelByUser=t},m=function(){h.cancel()},I=function(){v.onCancelByUser(),m()},S=function(){var t=V(H().mark((function t(){return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(rt(rt({},u),{},{language:f,i18n:a,monitoringService:c,cancelToken:g,cancel:m,setOnCancelByUser:y,apiClient:o})).then((function(t){d(t)})).catch((function(t){console&&console.error&&console.error(t),c.dispatch({message:JSON.stringify(et(t))}),l(z(t))})).finally(p);case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return S().catch(console.error),Object.freeze({cancel:I})}})}};function ot(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function at(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ot(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var st=s.idCard,ct=function(){var t=V(H().mark((function t(e){var n,i,o,a,s,c,d;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,i=e.language,o=e.apiClient,a=e.i18n,s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.apiEndpoints.inCurrentMode.readCard({countryCode:t.countryCode,clientId:t.clientId});return t.nonce&&(e+="?nonce=".concat(t.nonce)),o.get({url:e,cancelToken:t.cancelToken})},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=u(r.IDENTIFICATION,st,t.countryCode);return o.post({url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,country:t.countryCode,method:e.actionType,lang:t.language},cancelToken:t.cancelToken})},t.next=5,W(s)(at(at({},e),{},{language:i,cancelToken:n})).catch((function(t){throw"ECONNABORTED"===t.code&&(t.userMessage=a.t("id-card-read-timeout")),t}));case 5:return d=t.sent,t.next=8,W(c)(at(at({},e),{},{cancelToken:n,language:i,data:d.data}));case 8:return d=t.sent,t.abrupt("return",d);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ut=it(st,ct,{countryCode:{type:"string",required:!0}}),dt=function(){var t=V((function(t){var e=t.fn,n=t.shouldContinue,r=t.interval;return H().mark((function t(){var i,o;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=0,o=function(){var t=V(H().mark((function t(a,s){var c,u;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i+=1,t.prev=1,t.next=4,e();case 4:c=t.sent,u=void 0,t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),c=void 0,u=t.t0;case 12:if(!n({result:c,attempts:i,error:u})){t.next=14;break}return t.abrupt("return",setTimeout(o,r,a,s));case 14:return t.abrupt("return",a({result:c,error:u}));case 15:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e,n){return t.apply(this,arguments)}}(),t.abrupt("return",new Promise(o));case 3:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),lt=dt;function pt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ft(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?pt(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var ht=s.smartId,gt=function(){var t=V(H().mark((function t(e){var n,i,o,a,s,c,d,l,p,f,h,v;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,i=void 0===n?function(){}:n,o=e.idcode,a=e.pollInterval,s=void 0===a?1e3:a,c=e.cancelToken,d=e.language,l=e.apiClient,p=function(t){var e=u(r.IDENTIFICATION,ht);return l.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,country:t.countryCode,method:e.actionType,lang:t.language}})},f=function(t){var e=u(r.IDENTIFICATION,ht);return l.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language}})},h=function(t){var e=1e5/t.pollInterval,n=0;return lt({fn:function(){return f(ft(ft({},t.config),{},{data:t.data,cancelToken:t.cancelToken,language:t.language}))},shouldContinue:function(t){var r=t.result,i=r&&r.data&&r.data.status,o=g(t.error),a=t.error&&!t.error.response&&!o;a&&(n+=1);var s=!1;return t.attempts<e&&n<3&&(s=a||"RUNNING"===i),s},interval:2e3})},t.next=6,W(p)(ft(ft({},e),{},{cancelToken:c,language:d,idcode:o}));case 6:return v=t.sent,i(v),t.next=10,W(h)({config:e,data:ft({},v.data),cancelToken:c,pollInterval:s,language:d});case 10:return v=t.sent,t.abrupt("return",v);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),vt=it(ht,gt,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function yt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function mt(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?yt(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var It=s.mobileId,St=function(){var t=V(H().mark((function t(e){var n,i,o,a,s,c,d,l,p,f,h,v,y;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,i=e.language,o=e.apiClient,a=e.started,s=void 0===a?function(){}:a,c=e.idcode,d=e.phone,l=e.pollInterval,p=void 0===l?1e3:l,f=function(t){var e=u(r.IDENTIFICATION,It,t.countryCode);return o.post({url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,phone:t.phone,country:t.countryCode,method:e.actionType,lang:t.language},cancelToken:t.cancelToken})},h=function(t){var e=u(r.IDENTIFICATION,It,t.countryCode);return o.post({url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language},cancelToken:t.cancelToken})},v=function(t){var e=12e4/p,n=0;return lt({fn:function(){return h(mt(mt({},t.config),{},{data:t.data,cancelToken:t.cancelToken,language:t.language}))},shouldContinue:function(t){var r=t.result,i=r&&r.data&&r.data.status,o=g(t.error),a=t.error&&!t.error.response&&!o;a&&(n+=1);var s=!1;return t.attempts<e&&n<3&&(s=a||"RUNNING"===i),s},interval:1e3})},t.next=6,W(f)(mt(mt({},e),{},{cancelToken:n,language:i,idcode:c,phone:d}));case 6:return y=t.sent,s(y),t.next=10,W(v)({config:e,data:y.data,cancelToken:n,language:i,pollInterval:p});case 10:return y=t.sent,t.abrupt("return",y);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Tt=it(It,St,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0}}),Et=s.eParakstsMobile,bt=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsMobile({clientId:n,redirectUri:r})}}},Ct=function(){var t=V(H().mark((function t(e){var n,r,i,o,a;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,W(bt)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),wt=it(Et,Ct);function _t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function At(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?_t(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_t(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Ot=s.frejaEid,xt=function(){var t=V(H().mark((function t(e){var n,i,o,a,s,c,d,l,p,f,h,v;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,i=void 0===n?function(){}:n,o=e.idcode,a=e.pollInterval,s=void 0===a?1e3:a,c=e.cancelToken,d=e.language,l=e.apiClient,p=function(t){var e=u(r.IDENTIFICATION,Ot);return l.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,country:t.countryCode,method:e.actionType,lang:t.language}})},f=function(t){var e=u(r.IDENTIFICATION,Ot);return l.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,lang:t.language,timeout:2}})},h=function(t){var e=1e5/t.pollInterval,n=0;return lt({fn:function(){return f(At(At({},t.config),{},{data:t.data,language:t.language,cancelToken:t.cancelToken}))},shouldContinue:function(t){var r=t.result,i=r&&r.data&&r.data.status,o=g(t.error),a=t.error&&!t.error.response&&!o;a&&(n+=1);var s=!1;return t.attempts<e&&n<3&&(s=a||"RUNNING"===i),s},interval:2e3})},t.next=6,W(p)(At(At({},e),{},{cancelToken:c,language:d,idcode:o}));case 6:return v=t.sent,i(v),t.next=10,W(h)({config:e,data:At({},v.data),cancelToken:c,language:d,pollInterval:s});case 10:return v=t.sent,t.abrupt("return",v);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Nt=it(Ot,xt,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function Dt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Rt(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Dt(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var kt=s.zealId,Ut=function(){var t=V(H().mark((function t(e){var n,i,o,a,s,c,d;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,i=e.apiClient,o=e.language,a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i.get({withCredentials:!1,cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.zealIdIframeUrl({clientId:t.clientId})})},s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.iframeHolder,n=document.createElement("iframe"),r=t.iframeUrl;n.setAttribute("src",r),n.setAttribute("referrerpolicy","origin"),n.style.border="0",e.innerHTML="";var i=function(t,e,n){var r=new URL(t.data),i=r.searchParams.get("error"),o=r.searchParams.get("code");i?n(i):o?e({data:{code:o}}):n(t.data)},o=new Promise((function(t,e){window.addEventListener("message",(function(n){var o=new URL(r);n.origin===o.origin&&(window.removeEventListener("message",i),i(n,t,e))}))}));return e.appendChild(n),o},c=function(t){var e=u(r.IDENTIFICATION,kt);return i.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{method:e.actionType,code:t.data.code,lang:t.language}})},t.next=6,W(a)(Rt(Rt({},e),{},{cancelToken:n}));case 6:return d=t.sent,t.next=9,W(s)(Rt(Rt({},e),{},{cancelToken:n,iframeUrl:d.data.url}));case 9:return d=t.sent,t.next=12,W(c)(Rt(Rt({},e),{},{cancelToken:n,language:o},d));case 12:return d=t.sent,t.abrupt("return",d);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Mt=it(kt,Ut,{countryCode:{type:"string",required:!0},iframeHolder:{type:"object",required:!0}}),jt=s.mojeId,Lt=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.mojeId({clientId:n,redirectUri:r})}}},Pt=function(){var t=V(H().mark((function t(e){var n,r,i,o,a;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,W(Lt)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Bt=it(jt,Pt),Gt=s.edoAppEid,Ft=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.edoAppEid({clientId:n,redirectUri:r})}}},Vt=function(){var t=V(H().mark((function t(e){var n,r,i,o,a;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,W(Ft)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),qt=it(Gt,Vt),Ht=s.finnishTrustNetwork,Kt=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.finnishTrustNetwork({clientId:n,redirectUri:r,language:i})}}},Qt=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,W(Kt)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),zt=it(Ht,Qt),Zt=s.atHandy,Jt=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.atHandy({clientId:n,redirectUri:r})}}},Wt=function(){var t=V(H().mark((function t(e){var n,r,i,o,a;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,W(Jt)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Yt=it(Zt,Wt),$t=s.itsme,Xt=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.itsme({clientId:n,redirectUri:r,language:i})}}},te=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,W(Xt)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ee=it($t,te),ne=s.itsmeBasic,re=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.itsmeBasic({clientId:n,redirectUri:r,language:i})}}},ie=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,W(re)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),oe=it(ne,ie),ae=s.itsmeStandard,se=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.itsmeStandard({clientId:n,redirectUri:r,language:i})}}},ce=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,W(se)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ue=it(ae,ce),de=s.seBankId,le=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.seBankId({clientId:n,redirectUri:r,language:i})}}},pe=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,W(le)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),fe=it(de,pe),he=s.idin,ge=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.idin({clientId:n,redirectUri:r,language:i})}}},ve=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,W(ge)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ye=it(he,ve),me=s.idinCustomerId,Ie=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.idinCustomerId({clientId:n,redirectUri:r,language:i})}}},Se=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,W(Ie)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Te=it(me,Se),Ee=s.verifai,be=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.verifai({clientId:n,redirectUri:r,language:i})}}},Ce=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,W(be)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),we=it(Ee,Ce),_e=s.yoonik,Ae=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.yoonik({clientId:n,redirectUri:r,language:i})}}},Oe=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,W(Ae)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),xe=it(_e,Oe),Ne=s.plMojeId,De=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.plMojeId({clientId:n,redirectUri:r})}}},Re=function(){var t=V(H().mark((function t(e){var n,r,i,o,a;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,W(De)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ke=it(Ne,Re),Ue=s.mitId,Me=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.mitId({clientId:n,redirectUri:r,language:i})}}},je=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,W(Me)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Le=it(Ue,je),Pe=s.norwegianBankId,Be=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.norwegianBankId({clientId:n,redirectUri:r,language:i})}}},Ge=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,W(Be)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Fe=it(Pe,Ge),Ve=s.ftn,qe=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.ftn({clientId:n,redirectUri:r,language:i})}}},He=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,W(qe)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ke=it(Ve,He),Qe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.message,n=void 0===e?"":e,r=t.userMessage,i=void 0===r?"":r,o=t.details,a=void 0===o?{}:o;this.message=n,this.userMessage=i,this.details=a,this.stack=(new Error).stack};(Qe.prototype=new Error).name="MethodException";var ze=Qe,Ze={iframeHolder:{type:"object"},docId:{type:"string",required:!0}},Je=function(t){var e=t.monitoringService,n=t.moduleName;return Object.freeze({log:function(t){e.dispatch({message:"".concat(n,": ").concat(t)})},logError:function(t,r){var i=JSON.stringify(et(r));e.dispatch({message:"".concat(n,": ").concat(t,", reason: ").concat(i)})}})},We=function(t){var e=t.moduleName,n=t.createModuleCreator,i=function(t){var e=t.iframe,n=new URL(e.src);return{post:function(t){e.contentWindow.postMessage(t,n.origin)}}},o=function(t){return t.data&&"EIDEASY_ID_CARD_INTEGRATION"===t.data.sender},a=function(t){var n=t.countryCode,i=t.clientId,o=t.apiEndpoints,a=u(r.SIGNATURE,e,n);return o.inCurrentMode.idCardIframe({clientId:i,actionType:a.actionType})},s=function(t,e){if(t instanceof Error)throw t;var n;throw"no_certificates"===t.result&&(n=e.t("no_certificates")),new ze({userMessage:n,message:t.message,details:t})},c=function(t){var e=t.iframeHolder,n=t.iframeUrl,r=t.i18n,i=t.monitor,a=document.createElement("iframe");a.setAttribute("src",n),a.setAttribute("referrerpolicy","origin"),a.style.width="0",a.style.height="0",a.style.position="absolute",a.style.border="0",e.innerHTML="";var s={resolve:null,reject:null};function c(t){if(!o(t))return!1;var e=t.data,n=e.operation,r=e.error,i=e.status;r||"ready"!==n&&"welcome"!==n||"OK"!==i?s.reject(t.data):s.resolve(a),window.removeEventListener("message",c,!1)}i.log("Trying to create iframe with src: ".concat(n));var u=new Promise((function(t,e){s.resolve=t,s.reject=function(t){e(t),i.logError("Iframe creation failed",t)},window.addEventListener("message",c,!1),window.setTimeout((function(){return e({message:r.t("createIframeTimeout")})}),3e4)}));return e.appendChild(a),u},d=function(t){var e=t.messenger,n=t.monitor,r={resolve:null,reject:null};function i(t){if(!o(t))return!1;var e=t.data.certificate||t.data.cert;if(e)r.resolve({data:{certificate:e}}),n.log("Got certificate: ".concat(e));else{var a={};!t.data||"user_cancel"!==t.data.result&&"user_cancel"!==t.data.message?a=t.data:a.isCancel=!0,r.reject(a)}window.removeEventListener("message",i,!1)}var a=new Promise((function(t,e){r.resolve=t,r.reject=function(t){e(t),n.logError("Failed to get the certificate",t)},window.addEventListener("message",i,!1)}));return e.post({operation:"getCertificate"}),a},l=function(t){var e=t.certificate,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=(t.monitor,o.inCurrentMode.startSigning());return a.post({url:s,withCredentials:!1,data:{client_id:n,doc_id:r,sign_type:"id-card",certificate:e},cancelToken:i})},p=function(t){var e=t.messenger,n=t.hexDigest,r=t.monitor,i={resolve:null,reject:null};function a(t){if(!o(t))return!1;var e=t.data.signature_value||t.data.signature;if(e)i.resolve({signature:e});else{var n={};!t.data||"user_cancel"!==t.data.result&&"user_cancel"!==t.data.message?n=t.data:n.isCancel=!0,i.reject(n)}window.removeEventListener("message",a,!1)}r.log("Trying to sign the hexDigest: ".concat(n));var s=new Promise((function(t,e){i.resolve=t,i.reject=function(t){e(t),r.logError("Failed to sign the hexdigest",t)},window.addEventListener("message",a,!1)}));return e.post({operation:"getSignature",hexDigest:n}),s},f=function(t){var e=t.signature,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=o.inCurrentMode.completeSignatureIdCard();return a.post({url:s,withCredentials:!1,data:{client_id:n,doc_id:r,signature_value:e},cancelToken:i})},h=function(t){var e=t.certificate,n=t.country,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=i.inCurrentMode.cscApiAuthorizeCredential();return o.post({url:a,withCredentials:!1,data:{sign_type:"id-card",certificate:e,country:n},cancelToken:r})},g=function(){var t=V((function(t){var n=t.countryCode,r=t.clientId,o=t.apiEndpoints,u=t.iframeHolder,g=t.i18n,v=t.docId,y=t.cancelToken,m=t.apiClient,I=t.monitoringService,S=t.action,T=t.redirect;return H().mark((function t(){var E,b,C,w,_,A,O,x;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return E=Je({monitoringService:I,moduleName:e}),t.next=3,W(a,{shouldFormatResult:!1})({countryCode:n,clientId:r,apiEndpoints:o});case 3:return b=t.sent,t.next=6,W(c,{shouldFormatResult:!1})({iframeUrl:b,iframeHolder:u,i18n:g,monitor:E}).catch((function(t){return s(t,g)}));case 6:return C=t.sent,t.next=9,W(i,{shouldFormatResult:!1})({iframe:C});case 9:return w=t.sent,t.next=12,W(d)({messenger:w,monitor:E}).catch((function(t){return s(t,g)}));case 12:if(_=t.sent,"cscApiAuthorizeCredential"!==S){t.next=18;break}return t.next=16,W(h)({certificate:_.data.certificate,actionType:"id-card",country:n,cancelToken:y,apiEndpoints:o,apiClient:m});case 16:return A=t.sent,t.abrupt("return",W(T,{shouldFormatResult:!1})(A));case 18:return t.next=20,W(l)({certificate:_.data.certificate,clientId:r,docId:v,cancelToken:y,apiEndpoints:o,apiClient:m,monitor:E});case 20:return O=t.sent,t.next=23,W(p,{shouldFormatResult:!1})({messenger:w,hexDigest:O.data.hexDigest,monitor:E}).catch((function(t){return s(t,g)}));case 23:return x=t.sent,t.abrupt("return",W(f)({signature:x.signature,clientId:r,docId:v,cancelToken:y,apiEndpoints:o,apiClient:m}));case 25:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,g,Ze)},Ye=We({moduleName:s.idCardSignature,createModuleCreator:it});function $e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Xe=function(t){var e,n=t.pollInterval,r=void 0===n?2e3:n,i=t.maxPollDuration,o=t.fn,a=t.fnArgs;i&&(e=i/r);var s=0;return{start:function(){return lt({fn:function(){return o.apply(void 0,function(t){if(Array.isArray(t))return $e(t)}(t=a)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return $e(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$e(t,e):void 0}}(t)||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 t},shouldContinue:function(t){var n=t.result,r=n&&n.data&&n.data.status,i=g(t.error),o=t.error&&!t.error.response&&!i;o&&(s+=1);var a,c,u=!1;return a=t.attempts,(!(c=e)||a<c)&&s<3&&(u=o||"RUNNING"===r),u},interval:r})}}},tn=s.mobileIdSignature,en=function(t){var e=t.certificate,n=t.country,r=t.phone,i=t.idcode,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=a.inCurrentMode.cscApiAuthorizeCredential();return s.post({url:c,withCredentials:!1,data:{sign_type:"mid-signature",certificate:e,country:n,phone:r,idcode:i},cancelToken:o})},nn=function(t){var e=t.phone,n=t.idcode,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.countryCode,u=t.language,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:"mobile-id",phone:e,idcode:n,country:c,lang:u},cancelToken:o})},rn=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureMobileId(),withCredentials:!1,data:{token:e.token,doc_id:a,timeout:2,lang:i,client_id:s},cancelToken:o})},on=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Xe({pollInterval:2e3,maxPollDuration:12e4,fn:rn,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},an=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.language,d=t.idcode,l=t.phone,p=t.countryCode,f=t.started,h=t.action,g=t.redirect;return H().mark((function t(){var v,y,m;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("cscApiAuthorizeCredential"!==h){t.next=5;break}return t.next=3,W(en)({country:p,idcode:d,phone:l,cancelToken:i,apiEndpoints:o,apiClient:a});case 3:return v=t.sent,t.abrupt("return",W(g,{shouldFormatResult:!1})(v));case 5:return y=u(r.SIGNATURE,tn,p),s.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=9,W(nn)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:c,idcode:d,phone:l,countryCode:p});case 9:return m=t.sent,f(m),t.abrupt("return",W(on)({data:m.data,apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:e}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),sn=it(tn,an,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),cn=s.smartIdSignature,un=function(t){var e=t.contractId,n=t.idcode,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.countryCode,u=t.language,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,contract_id:e,client_id:r,sign_type:"smart-id",idcode:n,country:c,lang:u},cancelToken:o})},dn=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureSmartId(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s,timeout:2},cancelToken:o})},ln=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Xe({pollInterval:2e3,maxPollDuration:12e4,fn:dn,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},pn=function(t){var e=t.country,n=t.cancelToken,r=t.apiEndpoints,i=t.apiClient,o=t.idcode,a=r.inCurrentMode.cscApiAuthorizeCredential();return i.post({url:a,withCredentials:!1,data:{sign_type:"smart-id-signature",country:e,idcode:o},cancelToken:n})},fn=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.idcode,p=t.countryCode,f=t.started,h=t.action,g=t.redirect;return H().mark((function t(){var v,y,m;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v=u(r.SIGNATURE,cn,p),"cscApiAuthorizeCredential"!==h){t.next=6;break}return t.next=4,W(pn)({country:p,idcode:l,cancelToken:o,apiEndpoints:a,apiClient:s});case 4:return y=t.sent,t.abrupt("return",W(g,{shouldFormatResult:!1})(y));case 6:return c.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=9,W(un)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,idcode:l,countryCode:p,contractId:i});case 9:return m=t.sent,f(m),t.abrupt("return",W(ln)({data:m.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),hn=it(cn,fn,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),gn=s.evroTrustSignature,vn=function(t){var e=t.contractId,n=t.idcode,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.countryCode,u=t.language,d=t.email,l=t.phone,p=t.actionType,f=a.inCurrentMode.startSigning();return s.post({url:f,withCredentials:!1,data:{doc_id:i,contract_id:e,client_id:r,sign_type:p,idcode:n,email:d,phone:l,country:c,lang:u},cancelToken:o})},yn=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureEvrotrust(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},mn=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Xe({pollInterval:2e3,fn:yn,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},In=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.idcode,p=t.phone,f=t.email,h=t.countryCode,g=t.started;return H().mark((function t(){var v,y;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=u(r.SIGNATURE,gn,h),c.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,W(vn)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,idcode:l,phone:p,email:f,countryCode:h,contractId:i,actionType:v.actionType});case 4:return y=t.sent,g(y),t.abrupt("return",W(mn)({data:y.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Sn=it(gn,In,{countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Tn=s.otpSignature,En=function(){var t=V((function(t){var e=t.language,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.actionType;return H().mark((function t(){var c;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=o.inCurrentMode.startSigning(),t.abrupt("return",a.post({url:c,withCredentials:!1,data:{doc_id:r,client_id:n,sign_type:s,lang:e},cancelToken:i}));case 2:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),bn=function(t){var e=t.startSigningResult,n=t.confirmationCodeRequest,r=t.setOnCancelByUser;return new Promise((function(t,i){r((function(){var t=new Error("USER_REFUSED");t.isCancel=!0,i(t)})),n({data:e.data},t,i)}))},Cn=function(t){var e=t.apiClient,n=t.apiEndpoints,r=t.language,i=t.cancelToken,o=t.docId,a=t.clientId,s=t.emailToken,c=t.smsToken,u=t.handwrittenSignatureData,d=t.handwrittenSignatureDataUrl;return e.post({url:n.inCurrentMode.completeOtp(),withCredentials:!1,data:{doc_id:o,timeout:2,lang:r,client_id:a,email_token:s,sms_token:c,handwritten_signature_data:u,handwritten_signature_data_url:d},cancelToken:i})},wn=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.language,d=t.countryCode,l=t.emailToken,p=t.smsToken,f=t.handwrittenSignatureData,h=t.handwrittenSignatureDataUrl,g=t.started,v=t.confirmationCodeRequest,y=t.setOnCancelByUser;return H().mark((function t(){var m,I,S;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m=u(r.SIGNATURE,Tn,d),console.log(m),s.dispatch({message:"".concat(m.actionType,": signing started")}),p||l){t.next=13;break}return t.next=6,W(En)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:c,actionType:m.actionType});case 6:return I=t.sent,g(I),t.next=10,W(bn,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:v,setOnCancelByUser:y});case 10:S=t.sent,p=S.smsToken,l=S.emailToken;case 13:return t.abrupt("return",W(Cn)({apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:e,emailToken:l,smsToken:p,handwrittenSignatureData:f,handwrittenSignatureDataUrl:h}));case 14:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),_n=it(Tn,wn,{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),An={docId:{type:"string",required:!0},confirmedBySigner:{validator:function(t){return[null,!0,!1].includes(t)}}},On=function(t){var e=t.certificate,n=t.country,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.actionType,s=i.inCurrentMode.cscApiAuthorizeCredentialRedirect();return o.post({url:s,withCredentials:!1,data:{sign_type:a,certificate:e,country:n},cancelToken:r})},xn=function(t){var e=t.moduleName,n=t.createModuleCreator,i=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.confirmedBySigner,d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,confirmed_by_signer:u},cancelToken:i})},o=function(){var t=V((function(t){var n=t.clientId,o=t.docId,a=t.contractId,s=t.cancelToken,c=t.apiEndpoints,d=t.apiClient,l=t.monitoringService,p=t.language,f=t.countryCode,h=t.redirect,g=t.confirmedBySigner,v=t.action;return H().mark((function t(){var y,m,I;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(y=u(r.SIGNATURE,e,f),"cscApiAuthorizeCredential"!==v){t.next=6;break}return t.next=4,W(On)({country:f,cancelToken:s,apiEndpoints:c,apiClient:d,actionType:y.actionType});case 4:return m=t.sent,t.abrupt("return",W(h,{shouldFormatResult:!1})(m));case 6:return l.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=9,W(i)({contractId:a,clientId:n,docId:o,cancelToken:s,apiEndpoints:c,apiClient:d,language:p,actionType:y.actionType,confirmedBySigner:g});case 9:return I=t.sent,t.abrupt("return",W(h,{shouldFormatResult:!1})(I));case 11:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,o,An)},Nn=xn({moduleName:s.eParakstsMobileSignature,createModuleCreator:it}),Dn=xn({moduleName:s.ftnAdvancedFullSignature,createModuleCreator:it}),Rn=xn({moduleName:s.ftnSignature,createModuleCreator:it}),kn=xn({moduleName:s.atHandySignature,createModuleCreator:it}),Un=s.zealIdSignature,Mn=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.docId;return{data:{redirect_uri:e.inCurrentMode.startZealIdSignature({clientId:n,docId:r})}}},jn=function(){var t=V(H().mark((function t(e){var n,r,i,o,a;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.docId,t.next=3,W(Mn)({apiEndpoints:r,clientId:i,docId:o});case 3:return a=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ln=it(Un,jn),Pn=xn({moduleName:s.mojeIdSignature,createModuleCreator:it}),Bn=xn({moduleName:s.googleSignature,createModuleCreator:it}),Gn=xn({moduleName:s.seBankIdSignature,createModuleCreator:it}),Fn=s.dTrustSignMeSignature,Vn=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.username,d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,username:u},cancelToken:i})},qn=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.username,f=t.redirect;return H().mark((function t(){var h,g;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,Fn,l),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,W(Vn)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,username:p,actionType:h.actionType});case 4:return g=t.sent,t.abrupt("return",W(f,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Hn=it(Fn,qn,{username:{type:"string",required:!0}});function Kn(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function Qn(t,e){return t&e}function zn(t,e){return t|e}function Zn(t,e){return t^e}function Jn(t,e){return t&~e}function Wn(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function Yn(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var $n,Xn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function tr(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=Xn.charAt(n>>6)+Xn.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=Xn.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=Xn.charAt(n>>2)+Xn.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function er(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var o=Xn.indexOf(t.charAt(e));o<0||(0==r?(n+=Kn(o>>2),i=3&o,r=1):1==r?(n+=Kn(i<<2|o>>4),i=15&o,r=2):2==r?(n+=Kn(i),n+=Kn(o>>2),i=3&o,r=3):(n+=Kn(i<<2|o>>4),n+=Kn(15&o),r=0))}return 1==r&&(n+=Kn(i<<2)),n}var nr,rr={decode:function(t){var e;if(void 0===nr){var n="= \f\n\r\t \u2028\u2029";for(nr=Object.create(null),e=0;e<64;++e)nr["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(nr["-"]=62,nr._=63,e=0;e<n.length;++e)nr[n.charAt(e)]=-1}var r=[],i=0,o=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(-1!=(a=nr[a])){if(void 0===a)throw new Error("Illegal character at offset "+e);i|=a,++o>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=255&i,i=0,o=0):i<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=rr.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return rr.decode(t)}},ir=1e13,or=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,r,i=this.buf,o=i.length;for(n=0;n<o;++n)(r=i[n]*t+e)<ir?e=0:r-=(e=0|r/ir)*ir,i[n]=r;e>0&&(i[n]=e)},t.prototype.sub=function(t){var e,n,r=this.buf,i=r.length;for(e=0;e<i;++e)(n=r[e]-t)<0?(n+=ir,t=1):t=0,r[e]=n;for(;0===r[r.length-1];)r.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),r=e.length-2;r>=0;--r)n+=(ir+e[r]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*ir+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),ar=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,sr=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function cr(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var ur,dr=function(){function t(e,n){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=n)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+this.enc.length);return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,n){for(var r="",i=t;i<e;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},t.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var n="",r=t;r<e;++r)n+=String.fromCharCode(this.get(r));return n},t.prototype.parseStringUTF=function(t,e){for(var n="",r=t;r<e;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},t.prototype.parseStringBMP=function(t,e){for(var n,r,i="",o=t;o<e;)n=this.get(o++),r=this.get(o++),i+=String.fromCharCode(n<<8|r);return i},t.prototype.parseTime=function(t,e,n){var r=this.parseStringISO(t,e),i=(n?ar:sr).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},t.prototype.parseInteger=function(t,e){for(var n,r=this.get(t),i=r>127,o=i?255:0,a="";r==o&&++t<e;)r=this.get(t);if(0==(n=e-t))return i?-1:0;if(n>4){for(a=r,n<<=3;0==(128&(+a^o));)a=+a<<1,--n;a="("+n+" bit)\n"}i&&(r-=256);for(var s=new or(r),c=t+1;c<e;++c)s.mulAdd(256,this.get(c));return a+s.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",o="",a=t+1;a<e;++a){for(var s=this.get(a),c=a==e-1?r:0,u=7;u>=c;--u)o+=s>>u&1?"1":"0";if(o.length>n)return i+cr(o,n)}return i+o},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return cr(this.parseStringISO(t,e),n);var r=e-t,i="("+r+" byte)\n";r>(n/=2)&&(e=t+n);for(var o=t;o<e;++o)i+=this.hexByte(this.get(o));return r>n&&(i+="…"),i},t.prototype.parseOID=function(t,e,n){for(var r="",i=new or,o=0,a=t;a<e;++a){var s=this.get(a);if(i.mulAdd(128,127&s),o+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof or)i.sub(80),r="2."+i.toString();else{var c=i<80?i<40?0:1:2;r=c+"."+(i-40*c)}else r+="."+i.toString();if(r.length>n)return cr(r,n);i=new or,o=0}}return o>0&&(r+=".incomplete"),r},t}(),lr=function(){function t(t,e,n,r,i){if(!(r instanceof pr))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=r,this.sub=i}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return cr(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return cr(this.stream.parseStringISO(e,e+n),t);case 30:return cr(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var n=0,r=this.sub.length;n<r;++n)e+=this.sub[n].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===n)return null;e=0;for(var r=0;r<n;++r)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substr(e,n)},t.decode=function(e){var n;n=e instanceof dr?e:new dr(e,0);var r=new dr(n),i=new pr(n),o=t.decodeLength(n),a=n.pos,s=a-r.pos,c=null,u=function(){var e=[];if(null!==o){for(var r=a+o;n.pos<r;)e[e.length]=t.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}o=a-n.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(i.tagConstructed)c=u();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=u();for(var d=0;d<c.length;++d)if(c[d].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){c=null}if(null===c){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);n.pos=a+Math.abs(o)}return new t(r,s,o,i,c)},t}(),pr=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){var n=new or;do{e=t.get(),n.mulAdd(128,127&e)}while(128&e);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),fr=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],hr=(1<<26)/fr[fr.length-1],gr=function(){function t(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%e;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=Kn(n));a>=0;)s<e?(n=(this[a]&(1<<s)-1)<<e-s,n|=this[--a]>>(s+=this.DB-e)):(n=this[a]>>(s-=e)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=Kn(n));return i?o:"0"},t.prototype.negate=function(){var e=Sr();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Or(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=Sr();return this.abs().divRemTo(e,null,n),this.s<0&&n.compareTo(t.ZERO)>0&&e.subTo(n,n),n},t.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new yr(e):new mr(e),this.exp(t,n)},t.prototype.clone=function(){var t=Sr();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,r=this.DB-t*this.DB%8,i=0;if(t-- >0)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(e[i++]=n|this.s<<this.DB-r);t>=0;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=Sr();return this.bitwiseTo(t,Qn,e),e},t.prototype.or=function(t){var e=Sr();return this.bitwiseTo(t,zn,e),e},t.prototype.xor=function(t){var e=Sr();return this.bitwiseTo(t,Zn,e),e},t.prototype.andNot=function(t){var e=Sr();return this.bitwiseTo(t,Jn,e),e},t.prototype.not=function(){for(var t=Sr(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=Sr();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=Sr();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+Wn(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=Yn(this[n]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,zn)},t.prototype.clearBit=function(t){return this.changeBit(t,Jn)},t.prototype.flipBit=function(t){return this.changeBit(t,Zn)},t.prototype.add=function(t){var e=Sr();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=Sr();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=Sr();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=Sr();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=Sr();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=Sr(),n=Sr();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),o=Ar(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new yr(e):e.isEven()?new Ir(e):new mr(e);var a=[],s=3,c=n-1,u=(1<<n)-1;if(a[1]=r.convert(this),n>1){var d=Sr();for(r.sqrTo(a[1],d);s<=u;)a[s]=Sr(),r.mulTo(d,a[s-2],a[s]),s+=2}var l,p,f=t.t-1,h=!0,g=Sr();for(i=Or(t[f])-1;f>=0;){for(i>=c?l=t[f]>>i-c&u:(l=(t[f]&(1<<i+1)-1)<<c-i,f>0&&(l|=t[f-1]>>this.DB+i-c)),s=n;0==(1&l);)l>>=1,--s;if((i-=s)<0&&(i+=this.DB,--f),h)a[l].copyTo(o),h=!1;else{for(;s>1;)r.sqrTo(o,g),r.sqrTo(g,o),s-=2;s>0?r.sqrTo(o,g):(p=o,o=g,g=p),r.mulTo(g,a[l],o)}for(;f>=0&&0==(t[f]&1<<i);)r.sqrTo(o,g),p=o,o=g,g=p,--i<0&&(i=this.DB-1,--f)}return r.revert(o)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||0==e.signum())return t.ZERO;for(var r=e.clone(),i=this.clone(),o=Ar(1),a=Ar(0),s=Ar(0),c=Ar(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(e,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&c.isEven()||(s.addTo(this,s),c.subTo(e,c)),s.rShiftTo(1,s)):c.isEven()||c.subTo(e,c),c.rShiftTo(1,c);r.compareTo(i)>=0?(r.subTo(i,r),n&&o.subTo(s,o),a.subTo(c,a)):(i.subTo(r,i),n&&s.subTo(o,s),c.subTo(a,c))}return 0!=i.compareTo(t.ONE)?t.ZERO:c.compareTo(e)>=0?c.subtract(e):c.signum()<0?(c.addTo(e,c),c.signum()<0?c.add(e):c):c},t.prototype.pow=function(t){return this.exp(t,new vr)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var i=e.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),n.rShiftTo(o,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=fr[fr.length-1]){for(e=0;e<fr.length;++e)if(n[0]==fr[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<fr.length;){for(var r=fr[e],i=e+1;i<fr.length&&r<hr;)r*=fr[i++];for(r=n.modInt(r);e<i;)if(r%fr[e++]==0)return!1}return n.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(e,n);r=2}this.t=0,this.s=0;for(var i=e.length,o=!1,a=0;--i>=0;){var s=8==r?255&+e[i]:_r(e,i);s<0?"-"==e.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&0!=(128&+e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,r=this.DB-n,i=(1<<r)-1,o=Math.floor(t/this.DB),a=this.s<<n&this.DM,s=this.t-1;s>=0;--s)e[s+o+1]=this[s]>>r|a,a=(this[s]&i)<<n;for(s=o-1;s>=0;--s)e[s]=0;e[o]=a,e.t=this.t+o+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,o=(1<<r)-1;e[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)e[a-n-1]|=(this[a]&o)<<i,e[a-n]=this[a]>>r;r>0&&(e[this.t-n-1]|=(this.s&o)<<i),e.t=this.t-n,e.clamp()}},t.prototype.subTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},t.prototype.multiplyTo=function(e,n){var r=this.abs(),i=e.abs(),o=r.t;for(n.t=o+i.t;--o>=0;)n[o]=0;for(o=0;o<i.t;++o)n[o+r.t]=r.am(0,i[o],n,o,0,r.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,n,r){var i=e.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=Sr());var a=Sr(),s=this.s,c=e.s,u=this.DB-Or(i[i.t-1]);u>0?(i.lShiftTo(u,a),o.lShiftTo(u,r)):(i.copyTo(a),o.copyTo(r));var d=a.t,l=a[d-1];if(0!=l){var p=l*(1<<this.F1)+(d>1?a[d-2]>>this.F2:0),f=this.FV/p,h=(1<<this.F1)/p,g=1<<this.F2,v=r.t,y=v-d,m=null==n?Sr():n;for(a.dlShiftTo(y,m),r.compareTo(m)>=0&&(r[r.t++]=1,r.subTo(m,r)),t.ONE.dlShiftTo(d,m),m.subTo(a,a);a.t<d;)a[a.t++]=0;for(;--y>=0;){var I=r[--v]==l?this.DM:Math.floor(r[v]*f+(r[v-1]+g)*h);if((r[v]+=a.am(0,I,r,y,0,d))<I)for(a.dlShiftTo(y,m),r.subTo(m,r);r[v]<--I;)r.subTo(m,r)}null!=n&&(r.drShiftTo(d,n),s!=c&&t.ZERO.subTo(n,n)),r.t=d,r.clamp(),u>0&&r.rShiftTo(u,r),s<0&&t.ZERO.subTo(r,r)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,n){if(e>4294967295||e<1)return t.ONE;var r=Sr(),i=Sr(),o=n.convert(this),a=Or(e)-1;for(o.copyTo(r);--a>=0;)if(n.sqrTo(r,i),(e&1<<a)>0)n.mulTo(i,o,r);else{var s=r;r=i,i=s}return n.revert(r)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),r=Ar(n),i=Sr(),o=Sr(),a="";for(this.divRemTo(r,i,o);i.signum()>0;)a=(n+o.intValue()).toString(t).substr(1)+a,i.divRemTo(r,i,o);return o.intValue().toString(t)+a},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),o=!1,a=0,s=0,c=0;c<e.length;++c){var u=_r(e,c);u<0?"-"==e.charAt(c)&&0==this.signum()&&(o=!0):(s=n*s+u,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(s,0)),o&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,r){if("number"==typeof n)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),zn,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var i=[],o=7&e;i.length=1+(e>>3),n.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(t,e,n){var r,i,o=Math.min(t.t,this.t);for(r=0;r<o;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(i=t.s&this.DM,r=o;r<this.t;++r)n[r]=e(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<t.t;++r)n[r]=e(i,t[r]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},t.prototype.changeBit=function(e,n){var r=t.ONE.shiftLeft(e);return this.bitwiseTo(r,n,r),r},t.prototype.addTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,n){var r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,t[r],n,r,0,this.t);for(i=Math.min(t.t,e);r<i;++r)this.am(0,t[r],n,r,0,e-r);n.clamp()},t.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},t.prototype.millerRabin=function(e){var n=this.subtract(t.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(e=e+1>>1)>fr.length&&(e=fr.length);for(var o=Sr(),a=0;a<e;++a){o.fromInt(fr[Math.floor(Math.random()*fr.length)]);var s=o.modPow(i,this);if(0!=s.compareTo(t.ONE)&&0!=s.compareTo(n)){for(var c=1;c++<r&&0!=s.compareTo(n);)if(0==(s=s.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=Sr();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var o=n.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)e(n);else{o<a&&(a=o),a>0&&(n.rShiftTo(a,n),r.rShiftTo(a,r));var s=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(s,0):(a>0&&r.lShiftTo(a,r),setTimeout((function(){e(r)}),0))};setTimeout(s,10)}},t.prototype.fromNumberAsync=function(e,n,r,i){if("number"==typeof n)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),zn,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>e&&o.subTo(t.ONE.shiftLeft(e-1),o),o.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(a,0)};setTimeout(a,0)}else{var s=[],c=7&e;s.length=1+(e>>3),n.nextBytes(s),c>0?s[0]&=(1<<c)-1:s[0]=0,this.fromString(s,256)}},t}(),vr=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),yr=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),mr=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=Sr();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(gr.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=Sr();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),Ir=function(){function t(t){this.m=t,this.r2=Sr(),this.q3=Sr(),gr.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=Sr();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function Sr(){return new gr(null)}function Tr(t,e){return new gr(t,e)}var Er="undefined"!=typeof navigator;Er&&"Microsoft Internet Explorer"==navigator.appName?(gr.prototype.am=function(t,e,n,r,i,o){for(var a=32767&e,s=e>>15;--o>=0;){var c=32767&this[t],u=this[t++]>>15,d=s*c+u*a;i=((c=a*c+((32767&d)<<15)+n[r]+(1073741823&i))>>>30)+(d>>>15)+s*u+(i>>>30),n[r++]=1073741823&c}return i},ur=30):Er&&"Netscape"!=navigator.appName?(gr.prototype.am=function(t,e,n,r,i,o){for(;--o>=0;){var a=e*this[t++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},ur=26):(gr.prototype.am=function(t,e,n,r,i,o){for(var a=16383&e,s=e>>14;--o>=0;){var c=16383&this[t],u=this[t++]>>14,d=s*c+u*a;i=((c=a*c+((16383&d)<<14)+n[r]+i)>>28)+(d>>14)+s*u,n[r++]=268435455&c}return i},ur=28),gr.prototype.DB=ur,gr.prototype.DM=(1<<ur)-1,gr.prototype.DV=1<<ur,gr.prototype.FV=Math.pow(2,52),gr.prototype.F1=52-ur,gr.prototype.F2=2*ur-52;var br,Cr,wr=[];for(br="0".charCodeAt(0),Cr=0;Cr<=9;++Cr)wr[br++]=Cr;for(br="a".charCodeAt(0),Cr=10;Cr<36;++Cr)wr[br++]=Cr;for(br="A".charCodeAt(0),Cr=10;Cr<36;++Cr)wr[br++]=Cr;function _r(t,e){var n=wr[t.charCodeAt(e)];return null==n?-1:n}function Ar(t){var e=Sr();return e.fromInt(t),e}function Or(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}gr.ZERO=Ar(0),gr.ONE=Ar(1);var xr,Nr,Dr=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,n,r;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[n],this.S[n]=r;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}(),Rr=null;if(null==Rr){Rr=[],Nr=0;var kr=void 0;if(window.crypto&&window.crypto.getRandomValues){var Ur=new Uint32Array(256);for(window.crypto.getRandomValues(Ur),kr=0;kr<Ur.length;++kr)Rr[Nr++]=255&Ur[kr]}var Mr=0,jr=function(t){if((Mr=Mr||0)>=256||Nr>=256)window.removeEventListener?window.removeEventListener("mousemove",jr,!1):window.detachEvent&&window.detachEvent("onmousemove",jr);else try{var e=t.x+t.y;Rr[Nr++]=255&e,Mr+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",jr,!1):window.attachEvent&&window.attachEvent("onmousemove",jr)}function Lr(){if(null==xr){for(xr=new Dr;Nr<256;){var t=Math.floor(65536*Math.random());Rr[Nr++]=255&t}for(xr.init(Rr),Nr=0;Nr<Rr.length;++Nr)Rr[Nr]=0;Nr=0}return xr.next()}var Pr=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Lr()},t}(),Br=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Tr(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=t.length-1;r>=0&&e>0;){var i=t.charCodeAt(r--);i<128?n[--e]=i:i>127&&i<2048?(n[--e]=63&i|128,n[--e]=i>>6|192):(n[--e]=63&i|128,n[--e]=i>>6&63|128,n[--e]=i>>12|224)}n[--e]=0;for(var o=new Pr,a=[];e>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);n[--e]=a[0]}return n[--e]=2,n[--e]=0,new gr(n)}(t,e);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),o=i.length,a=0;a<2*e-o;a++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Tr(t,16),this.e=parseInt(e,16),this.d=Tr(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,o,a,s){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Tr(t,16),this.e=parseInt(e,16),this.d=Tr(n,16),this.p=Tr(r,16),this.q=Tr(i,16),this.dmp1=Tr(o,16),this.dmq1=Tr(a,16),this.coeff=Tr(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new Pr,r=t>>1;this.e=parseInt(e,16);for(var i=new gr(e,16);;){for(;this.p=new gr(t-r,1,n),0!=this.p.subtract(gr.ONE).gcd(i).compareTo(gr.ONE)||!this.p.isProbablePrime(10););for(;this.q=new gr(r,1,n),0!=this.q.subtract(gr.ONE).gcd(i).compareTo(gr.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(gr.ONE),s=this.q.subtract(gr.ONE),c=a.multiply(s);if(0==c.gcd(i).compareTo(gr.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=Tr(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){for(var n=t.toByteArray(),r=0;r<n.length&&0==n[r];)++r;if(n.length-r!=e-1||2!=n[r])return null;for(++r;0!=n[r];)if(++r>=n.length)return null;for(var i="";++r<n.length;){var o=255&n[r];o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((31&o)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&o)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var r=new Pr,i=t>>1;this.e=parseInt(e,16);var o=new gr(e,16),a=this,s=function(){var e=function(){if(a.p.compareTo(a.q)<=0){var t=a.p;a.p=a.q,a.q=t}var e=a.p.subtract(gr.ONE),r=a.q.subtract(gr.ONE),i=e.multiply(r);0==i.gcd(o).compareTo(gr.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(i),a.dmp1=a.d.mod(e),a.dmq1=a.d.mod(r),a.coeff=a.q.modInverse(a.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},c=function(){a.q=Sr(),a.q.fromNumberAsync(i,1,r,(function(){a.q.subtract(gr.ONE).gcda(o,(function(t){0==t.compareTo(gr.ONE)&&a.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(c,0)}))}))},u=function(){a.p=Sr(),a.p.fromNumberAsync(t-i,1,r,(function(){a.p.subtract(gr.ONE).gcda(o,(function(t){0==t.compareTo(gr.ONE)&&a.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)}))}))};setTimeout(u,0)};setTimeout(s,0)},t.prototype.sign=function(t,e,n){var r=function(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var n=e-t.length-6,r="",i=0;i<n;i+=2)r+="ff";return Tr("0001"+r+"00"+t,16)}((Gr[n]||"")+e(t).toString(),this.n.bitLength()/4);if(null==r)return null;var i=this.doPrivate(r);if(null==i)return null;var o=i.toString(16);return 0==(1&o.length)?o:"0"+o},t.prototype.verify=function(t,e,n){var r=Tr(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in Gr)if(Gr.hasOwnProperty(e)){var n=Gr[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}(i.toString(16).replace(/^1f+00/,""))==n(t).toString()},t}(),Gr={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},Fr={};Fr.lang={extend:function(t,e,n){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),n){var i;for(i in n)t.prototype[i]=n[i];var o=function(){},a=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(t,e){for(i=0;i<a.length;i+=1){var n=a[i],r=e[n];"function"==typeof r&&r!=Object.prototype[n]&&(t[n]=r)}})}catch(t){}o(t.prototype,n)}}};var Vr={};void 0!==Vr.asn1&&Vr.asn1||(Vr.asn1={}),Vr.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";e=new gr(r,16).xor(t).add(gr.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=Vr.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,o=e.DEROctetString,a=e.DERNull,s=e.DERObjectIdentifier,c=e.DEREnumerated,u=e.DERUTF8String,d=e.DERNumericString,l=e.DERPrintableString,p=e.DERTeletexString,f=e.DERIA5String,h=e.DERUTCTime,g=e.DERGeneralizedTime,v=e.DERSequence,y=e.DERSet,m=e.DERTaggedObject,I=e.ASN1Util.newObject,S=Object.keys(t);if(1!=S.length)throw"key of param shall be only one.";var T=S[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+T+":"))throw"undefined key: "+T;if("bool"==T)return new n(t[T]);if("int"==T)return new r(t[T]);if("bitstr"==T)return new i(t[T]);if("octstr"==T)return new o(t[T]);if("null"==T)return new a(t[T]);if("oid"==T)return new s(t[T]);if("enum"==T)return new c(t[T]);if("utf8str"==T)return new u(t[T]);if("numstr"==T)return new d(t[T]);if("prnstr"==T)return new l(t[T]);if("telstr"==T)return new p(t[T]);if("ia5str"==T)return new f(t[T]);if("utctime"==T)return new h(t[T]);if("gentime"==T)return new g(t[T]);if("seq"==T){for(var E=t[T],b=[],C=0;C<E.length;C++){var w=I(E[C]);b.push(w)}return new v({array:b})}if("set"==T){for(E=t[T],b=[],C=0;C<E.length;C++)w=I(E[C]),b.push(w);return new y({array:b})}if("tag"==T){var _=t[T];if("[object Array]"===Object.prototype.toString.call(_)&&3==_.length){var A=I(_[2]);return new m({tag:_[0],explicit:_[1],obj:A})}var O={};if(void 0!==_.explicit&&(O.explicit=_.explicit),void 0!==_.tag&&(O.tag=_.tag),void 0===_.obj)throw"obj shall be specified for 'tag'.";return O.obj=I(_.obj),new m(O)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},Vr.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),r=(e=Math.floor(n/40)+"."+n%40,""),i=2;i<t.length;i+=2){var o=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);r+=o.substr(1,7),"0"==o.substr(0,1)&&(e=e+"."+new gr(r,2).toString(10),r="")}return e},Vr.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new gr(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(r=o+r,a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);return r},Vr.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+"".length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},Vr.asn1.DERAbstractString=function(t){Vr.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},Fr.lang.extend(Vr.asn1.DERAbstractString,Vr.asn1.ASN1Object),Vr.asn1.DERAbstractTime=function(t){Vr.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,n){var r=this.zeroPadding,i=this.localDateToUTC(t),o=String(i.getFullYear());"utc"==e&&(o=o.substr(2,2));var a=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var s=i.getMilliseconds();if(0!=s){var c=r(String(s),3);a=a+"."+(c=c.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,r,i,o){var a=new Date(Date.UTC(t,e-1,n,r,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},Fr.lang.extend(Vr.asn1.DERAbstractTime,Vr.asn1.ASN1Object),Vr.asn1.DERAbstractStructured=function(t){Vr.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},Fr.lang.extend(Vr.asn1.DERAbstractStructured,Vr.asn1.ASN1Object),Vr.asn1.DERBoolean=function(){Vr.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Fr.lang.extend(Vr.asn1.DERBoolean,Vr.asn1.ASN1Object),Vr.asn1.DERInteger=function(t){Vr.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Vr.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new gr(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Fr.lang.extend(Vr.asn1.DERInteger,Vr.asn1.ASN1Object),Vr.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Vr.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}Vr.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var r="";for(n=0;n<t.length-1;n+=8){var i=t.substr(n,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),r+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},Fr.lang.extend(Vr.asn1.DERBitString,Vr.asn1.ASN1Object),Vr.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Vr.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}Vr.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Fr.lang.extend(Vr.asn1.DEROctetString,Vr.asn1.DERAbstractString),Vr.asn1.DERNull=function(){Vr.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Fr.lang.extend(Vr.asn1.DERNull,Vr.asn1.ASN1Object),Vr.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new gr(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(r=o+r,a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};Vr.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=Vr.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},Fr.lang.extend(Vr.asn1.DERObjectIdentifier,Vr.asn1.ASN1Object),Vr.asn1.DEREnumerated=function(t){Vr.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Vr.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new gr(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Fr.lang.extend(Vr.asn1.DEREnumerated,Vr.asn1.ASN1Object),Vr.asn1.DERUTF8String=function(t){Vr.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Fr.lang.extend(Vr.asn1.DERUTF8String,Vr.asn1.DERAbstractString),Vr.asn1.DERNumericString=function(t){Vr.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Fr.lang.extend(Vr.asn1.DERNumericString,Vr.asn1.DERAbstractString),Vr.asn1.DERPrintableString=function(t){Vr.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Fr.lang.extend(Vr.asn1.DERPrintableString,Vr.asn1.DERAbstractString),Vr.asn1.DERTeletexString=function(t){Vr.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Fr.lang.extend(Vr.asn1.DERTeletexString,Vr.asn1.DERAbstractString),Vr.asn1.DERIA5String=function(t){Vr.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Fr.lang.extend(Vr.asn1.DERIA5String,Vr.asn1.DERAbstractString),Vr.asn1.DERUTCTime=function(t){Vr.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},Fr.lang.extend(Vr.asn1.DERUTCTime,Vr.asn1.DERAbstractTime),Vr.asn1.DERGeneralizedTime=function(t){Vr.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},Fr.lang.extend(Vr.asn1.DERGeneralizedTime,Vr.asn1.DERAbstractTime),Vr.asn1.DERSequence=function(t){Vr.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++)t+=this.asn1Array[e].getEncodedHex();return this.hV=t,this.hV}},Fr.lang.extend(Vr.asn1.DERSequence,Vr.asn1.DERAbstractStructured),Vr.asn1.DERSet=function(t){Vr.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},Fr.lang.extend(Vr.asn1.DERSet,Vr.asn1.DERAbstractStructured),Vr.asn1.DERTaggedObject=function(t){Vr.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Fr.lang.extend(Vr.asn1.DERTaggedObject,Vr.asn1.ASN1Object);var qr,Hr=(qr=function(t,e){return qr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},qr(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}qr(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Kr=function(t){function e(n){var r=t.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(e.hasPrivateKeyProperty(n)||e.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return Hr(e,t),e.prototype.parseKey=function(t){try{var e=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?function(t){var e;if(void 0===$n){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for($n={},e=0;e<16;++e)$n[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)$n[n.charAt(e)]=e;for(e=0;e<r.length;++e)$n[r.charAt(e)]=-1}var i=[],o=0,a=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=$n[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);o|=s,++a>=2?(i[i.length]=o,o=0,a=0):o<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i}(t):rr.unarmor(t),i=lr.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=Tr(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=Tr(o,16);var a=i.sub[4].getHexStringValue();this.p=Tr(a,16);var s=i.sub[5].getHexStringValue();this.q=Tr(s,16);var c=i.sub[6].getHexStringValue();this.dmp1=Tr(c,16);var u=i.sub[7].getHexStringValue();this.dmq1=Tr(u,16);var d=i.sub[8].getHexStringValue();this.coeff=Tr(d,16)}else{if(2!==i.sub.length)return!1;var l=i.sub[1].sub[0];e=l.sub[0].getHexStringValue(),this.n=Tr(e,16),n=l.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new Vr.asn1.DERInteger({int:0}),new Vr.asn1.DERInteger({bigint:this.n}),new Vr.asn1.DERInteger({int:this.e}),new Vr.asn1.DERInteger({bigint:this.d}),new Vr.asn1.DERInteger({bigint:this.p}),new Vr.asn1.DERInteger({bigint:this.q}),new Vr.asn1.DERInteger({bigint:this.dmp1}),new Vr.asn1.DERInteger({bigint:this.dmq1}),new Vr.asn1.DERInteger({bigint:this.coeff})]};return new Vr.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return tr(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new Vr.asn1.DERSequence({array:[new Vr.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Vr.asn1.DERNull]}),e=new Vr.asn1.DERSequence({array:[new Vr.asn1.DERInteger({bigint:this.n}),new Vr.asn1.DERInteger({int:this.e})]}),n=new Vr.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new Vr.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return tr(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var n="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return(t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n")+"-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return(t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n")+"-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(Br),Qr=function(){function t(t){void 0===t&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Kr(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(er(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return tr(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return tr(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,er(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new Kr,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version="3.2.1",t}(),zr=s.chaveMovelSignature,Zr={publicKey:null},Jr=function(){var t=V((function(t){var e=t.apiClient,n=t.apiEndpoints,r=t.cancelToken;return H().mark((function t(){var i,o,a;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.inCurrentMode.getChaveMovelPublicKey(),t.next=3,e.get({url:i,withCredentials:!1,cancelToken:r});case 3:if((o=t.sent).data.publicKey){t.next=6;break}return t.abrupt("return",{});case 6:return a=atob(o.data.publicKey),Zr.publicKey=a,t.abrupt("return",a);case 9:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Wr=function(){var t=V((function(t){var e=t.signingPin,n=t.phone,r=t.language,i=t.clientId,o=t.docId,a=t.cancelToken,s=t.apiEndpoints,c=t.apiClient,u=t.actionType;return H().mark((function t(){var d,l,p;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return d=s.inCurrentMode.startSigning(),t.next=3,Jr({apiClient:c,apiEndpoints:s,cancelToken:a});case 3:return l=t.sent,(p=new Qr).setPublicKey(l),t.abrupt("return",c.post({url:d,withCredentials:!1,data:{doc_id:o,client_id:i,sign_type:u,lang:r,signing_pin:p.encrypt(e),phone:p.encrypt(n)},cancelToken:a}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Yr=function(t){var e=t.startSigningResult,n=t.confirmationCodeRequest,r=t.setOnCancelByUser;return new Promise((function(t,i){r((function(){var t=new Error("USER_REFUSED");t.isCancel=!0,i(t)})),n({data:e.data},t,i)}))},$r=function(t){var e=t.token,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId,c=t.confirmationCode,u=new Qr;return u.setPublicKey(Zr.publicKey),n.post({url:r.inCurrentMode.completeSignatureChaveMovel(),withCredentials:!1,data:{token:e,doc_id:a,lang:i,client_id:s,confirmation_code:u.encrypt(c)},cancelToken:o})},Xr=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.countryCode,d=t.language,l=t.started,p=t.confirmationCodeRequest,f=t.signingPin,h=t.phone,g=t.setOnCancelByUser;return H().mark((function t(){var v,y,m;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=u(r.SIGNATURE,zr,c),s.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,W(Wr)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:d,actionType:v.actionType,signingPin:f,phone:h});case 4:return y=t.sent,l(y),t.next=8,W(Yr,{shouldFormatResult:!1})({startSigningResult:y,confirmationCodeRequest:p,setOnCancelByUser:g});case 8:return m=t.sent,t.abrupt("return",W($r)({token:y.data.token,apiClient:a,apiEndpoints:o,language:d,cancelToken:i,docId:n,clientId:e,confirmationCode:m}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ti=it(zr,Xr,{pin:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),ei=xn({moduleName:s.mitIdSignature,createModuleCreator:it}),ni=s.ftnQesSignature,ri=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.phone,d=t.email,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,phone:u,email:d},cancelToken:i})},ii=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.phone,f=t.email,h=t.redirect;return H().mark((function t(){var g,v;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=u(r.SIGNATURE,ni,l),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,W(ri)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,phone:p,email:f,actionType:g.actionType});case 4:return v=t.sent,t.abrupt("return",W(h,{shouldFormatResult:!1})(v));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),oi=it(ni,ii,{phone:{type:"string",required:!0},email:{type:"string",required:!0}}),ai=s.noBankIdAdvSignature,si=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.name,d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,name:u},cancelToken:i})},ci=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.name,f=t.redirect;return H().mark((function t(){var h,g;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,ai,l),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,W(si)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,name:p,actionType:h.actionType});case 4:return g=t.sent,t.abrupt("return",W(f,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ui=it(ai,ci,{name:{type:"string",required:!0}}),di=We({moduleName:s.certEuropeUsbTokenSignature,createModuleCreator:it}),li=We({moduleName:s.certSignUsbTokenSignature,createModuleCreator:it}),pi=xn({moduleName:s.idinSignature,createModuleCreator:it}),fi=xn({moduleName:s.verifaiSignature,createModuleCreator:it}),hi=s.spidQesSignature,gi=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.phone,d=t.email,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,phone:u,email:d},cancelToken:i})},vi=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.phone,f=t.email,h=t.redirect;return H().mark((function t(){var g,v;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=u(r.SIGNATURE,hi,l),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,W(gi)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,phone:p,email:f,actionType:g.actionType});case 4:return v=t.sent,t.abrupt("return",W(h,{shouldFormatResult:!1})(v));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),yi=it(hi,vi,{email:{type:"string",required:!0},phone:{type:"string",required:!0}}),mi=s.frejaSimpleSignature,Ii=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.actionType,u=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:e},cancelToken:o})},Si=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureFrejaSimple(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Ti=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Xe({pollInterval:2e3,fn:Si,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ei=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.idcode,d=t.countryCode,l=t.language,p=t.started;return H().mark((function t(){var f,h;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=u(r.SIGNATURE,mi,d),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,W(Ii)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:c,language:l,actionType:f.actionType,countryCode:d});case 4:return h=t.sent,p(h),t.abrupt("return",W(Ti)({data:h.data,apiClient:a,apiEndpoints:o,language:l,cancelToken:i,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),bi=it(mi,Ei,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ci=s.audkenniQesSignature,wi=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.actionType,u=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:e},cancelToken:o})},_i=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.continueSignatureAudkenni(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Ai=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureAudkenni(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Oi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Xe({pollInterval:2e3,fn:_i,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},xi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Xe({pollInterval:2e3,fn:Ai,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ni=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.idcode,d=t.countryCode,l=t.language,p=t.started;return H().mark((function t(){var f,h,g;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=u(r.SIGNATURE,Ci,d),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,W(wi)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:c,language:l,actionType:f.actionType,countryCode:d});case 4:return h=t.sent,t.next=7,W(Oi)({data:h.data,apiClient:a,apiEndpoints:o,language:l,cancelToken:i,docId:n,clientId:e});case 7:return g=t.sent,p(g),t.abrupt("return",W(xi)({data:g.data,apiClient:a,apiEndpoints:o,language:l,cancelToken:i,docId:n,clientId:e}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Di=it(Ci,Ni,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ri=xn({moduleName:s.yesComQesSignature,createModuleCreator:it}),ki=xn({moduleName:s.simplySignQesSignature,createModuleCreator:it}),Ui=s.uanatacaQesSignature,Mi=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.username,d=t.password,l=t.pin,p=o.inCurrentMode.startSigning();return a.post({url:p,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,username:u,password:d,pin:l},cancelToken:i})},ji=function(t){var e=t.startSigningResult,n=t.confirmationCodeRequest,r=t.setOnCancelByUser;return new Promise((function(t,i){r((function(){var t=new Error("USER_REFUSED");t.isCancel=!0,i(t)})),n({data:e.data},t,i)}))},Li=function(t){var e=t.token,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId,c=t.confirmationCode;return n.post({url:r.inCurrentMode.completeSignatureUanataca(),withCredentials:!1,data:{token:e,doc_id:a,lang:i,client_id:s,confirmation_code:c},cancelToken:o})},Pi=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.username,f=t.password,h=t.pin,g=t.confirmationCodeRequest,v=t.setOnCancelByUser,y=t.started;return H().mark((function t(){var m,I,S;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return m=u(r.SIGNATURE,Ui,l),c.dispatch({message:"".concat(m.actionType,": signing started")}),t.next=4,W(Mi)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,username:p,password:f,pin:h,actionType:m.actionType});case 4:return I=t.sent,y(I),t.next=8,W(ji,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:g,setOnCancelByUser:v});case 8:return S=t.sent,t.abrupt("return",W(Li)({token:I.data.token,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e,confirmationCode:S}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Bi=it(Ui,Pi,{username:{type:"string",required:!0},password:{type:"string",required:!0},pin:{type:"string",required:!0}}),Gi=xn({moduleName:s.certsignWebapiQesSignature,createModuleCreator:it}),Fi=s.halcomQesSignature,Vi=function(t){var e=t.contractId,n=t.username,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.countryCode,u=t.language,d=t.email,l=t.phone,p=t.actionType,f=a.inCurrentMode.startSigning();return s.post({url:f,withCredentials:!1,data:{doc_id:i,contract_id:e,client_id:r,sign_type:p,username:n,email:d,phone:l,country:c,lang:u},cancelToken:o})},qi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureHalcom(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Hi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Xe({pollInterval:2e3,fn:qi,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ki=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.username,p=t.phone,f=t.email,h=t.countryCode,g=t.started;return H().mark((function t(){var v,y;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=u(r.SIGNATURE,Fi,h),c.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,W(Vi)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,username:l,phone:p,email:f,countryCode:h,contractId:i,actionType:v.actionType});case 4:return y=t.sent,g(y),t.abrupt("return",W(Hi)({data:y.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Qi=it(Fi,Ki,{countryCode:{type:"string",required:!0},username:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),zi=s.swissIdQesSignature,Zi=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.countryCode,c=t.language,u=t.email,d=t.actionType,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:d,email:u,country:s,lang:c},cancelToken:i})},Ji=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureSwissId(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Wi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Xe({pollInterval:2e3,fn:Ji,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Yi=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.email,p=t.countryCode,f=t.started;return H().mark((function t(){var h,g;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,zi,p),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,W(Zi)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,email:l,countryCode:p,contractId:i,actionType:h.actionType});case 4:return g=t.sent,f(g),t.abrupt("return",W(Wi)({data:g.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),$i=it(zi,Yi,{countryCode:{type:"string",required:!0},email:{type:"string",required:!0},docId:{type:"string",required:!0}}),Xi=s.swissComQesSignature,to=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.countryCode,c=t.language,u=t.phone,d=t.actionType,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:d,phone:u,country:s,lang:c},cancelToken:i})},eo=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureSwissCom(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},no=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Xe({pollInterval:2e3,fn:eo,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ro=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.phone,p=t.countryCode,f=t.started;return H().mark((function t(){var h,g;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,Xi,p),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,W(to)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,phone:l,countryCode:p,contractId:i,actionType:h.actionType});case 4:return g=t.sent,f(g),t.abrupt("return",W(no)({data:g.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),io=it(Xi,ro,{countryCode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),oo=xn({moduleName:s.mitIdAdvancedSignature,createModuleCreator:it}),ao=xn({moduleName:s.mitIdQesSignature,createModuleCreator:it}),so=xn({moduleName:s.seBankIdAdvancedSignature,createModuleCreator:it}),co=xn({moduleName:s.seBankIdQesSignature,createModuleCreator:it}),uo=s.frejaAdvancedSignature,lo=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.actionType,u=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:e},cancelToken:o})},po=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.idcode,d=t.countryCode,l=t.language,p=t.redirect;return H().mark((function t(){var f,h;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=u(r.SIGNATURE,uo,d),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,W(lo)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:c,language:l,actionType:f.actionType,countryCode:d});case 4:return h=t.sent,t.abrupt("return",W(p,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),fo=it(uo,po,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),ho=s.frejaQesSignature,go=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.actionType,u=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:e},cancelToken:o})},vo=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.idcode,d=t.countryCode,l=t.language,p=t.redirect;return H().mark((function t(){var f,h;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=u(r.SIGNATURE,ho,d),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,W(go)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:c,language:l,actionType:f.actionType,countryCode:d});case 4:return h=t.sent,t.abrupt("return",W(p,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),yo=it(ho,vo,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),mo=Object.freeze({sandbox:"sandbox",production:"production"});function Io(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function So(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Io(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Io(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var To=function(t,e,n){var r={};return Object.keys(t).forEach((function(i){r[i]=function(t,e,n){return function(r){var i=So(So({},e),r);return n?n(t(i)):t(i)}}(t[i],e,n)})),r},Eo=function(t){var e=t.method,n=t.baseUrl,r=t.clientId,i=t.redirectUri,o=t.state,a=t.language,s="".concat(n,"/oauth/start/").concat(e,"?client_id=").concat(r,"&redirect_uri=").concat(i,"&response_type=code");return a&&(s+="&lang=".concat(a)),o&&(s+="&state=".concat(o)),s},bo=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=So({base:function(t){return t.baseUrl},readCard:function(t){var e=t.countryCode,r=void 0===e?n.countryCode.toLowerCase():e,i=t.clientId,o="eideasy.com";return n.sandbox&&["EE","BE"].includes(r)&&(o="test.eideasy.com"),"https://".concat(r,".").concat(o,"/api/identity/").concat(i,"/read-card")},zealIdIframeUrl:function(t){var e=t.baseUrl,n=t.clientId;return"".concat(e,"/api/identity/").concat(n,"/zealid/get_iframe_url")},eParakstsMobile:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"lv-eparaksts-mobile-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},eParakstsSmartCard:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"lv-eparaksts-id-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},mojeId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"mojeid",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},edoAppEid:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"edoapp-eid-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},itsme:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"itsme-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},itsmeBasic:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"itsme-login-basic",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},itsmeStandard:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"itsme-login-standard",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},seBankId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"swedish-bankid-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},finnishTrustNetwork:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"finnish-ftn-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},idin:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"idin-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},idinCustomerId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"idin-customer-id-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},verifai:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"verifai-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},yoonik:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"yoonik-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},plMojeId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"pl-mojeid-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},mitId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"mit-id-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},norwegianBankId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"norwegian-bankid-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},atHandy:function(t){var e=t.baseUrl,n=t.clientId,r=t.redirectUri,i=t.state,o="".concat(e,"/oauth/authorize?client_id=").concat(n,"&redirect_uri=").concat(r,"&response_type=code&method=at-handy-signatur-login");return i&&(o+="&state=".concat(i)),o},ftn:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"ftn-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},idCardIframe:function(t){var e=t.baseUrl,n=t.clientId,r=t.actionType;return"".concat(e,"/signatures/integration/").concat(n,"/").concat(r)},startSigning:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/start-signing")},completeSignatureIdCard:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/id-card/complete")},completeSignatureMobileId:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/sk-mobile-id/complete")},completeSignatureSmartId:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/sk-smart-id/complete")},completeSignatureEvrotrust:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/evrotrust-signature/complete")},completeSignatureHalcom:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/halcom-qes-signature/complete")},completeSignatureSwissId:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/swiss-id-qes-signature/complete")},completeSignatureSwissCom:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/swiss-com-qes-signature/complete")},completeSignatureDTrustSignMe:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/d-trust-sign-me-qes-signature/complete")},completeSignatureFrejaSimple:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/freja-simple-signature/complete")},continueSignatureAudkenni:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/audkenni-qes-signature/continue")},completeSignatureAudkenni:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/audkenni-qes-signature/complete")},completeSignatureChaveMovel:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/chave-movel-qes-signature/complete")},completeSignatureUanataca:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/uanataca-qes-signature/complete")},completeOtp:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/non-qualified/complete")},eideasyMonitoring:function(t){var e=t.baseUrl;return"".concat(e,"/api/monitor")},startZealIdSignature:function(t){var e=t.baseUrl,n=t.clientId,r=t.docId;return"".concat(e,"/zealid/signature/start?client_id=").concat(n,"&doc_id=").concat(r)},getChaveMovelPublicKey:function(t){var e=t.baseUrl;return"".concat(e,"/api/chave-movel-public-key")},cscApiAuthorizeCredential:function(t){var e=t.baseUrl;return"".concat(e,"/csc/authorize-credential")},cscApiAuthorizeCredentialRedirect:function(t){var e=t.baseUrl;return"".concat(e,"/csc/authorize-credential-redirect")}},r),o=(e(t={},mo.production,So({},To(i,{baseUrl:r.base?r.base():"https://id.eideasy.com",state:n.state},n.modifyEndpointUrl))),e(t,mo.sandbox,So({},To(i,{baseUrl:r.base?r.base():"https://test.eideasy.com",state:n.state},n.modifyEndpointUrl))),t);return{get inCurrentMode(){var t=n.sandbox?mo.sandbox:mo.production;return o[t]}}},Co=s.eParakstsSmartCard,wo=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsSmartCard({clientId:n,redirectUri:r})}}},_o=function(){var t=V(H().mark((function t(e){var n,r,i,o,a;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,W(wo)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ao=it(Co,_o),Oo=xn({moduleName:s.itsmeQesSignature,createModuleCreator:it}),xo=xn({moduleName:s.frIdentAdvancedSignature,createModuleCreator:it}),No=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=w({rawSettings:t,schema:_}),n=B({currentLanguage:"en"}),r=bo({countryCode:e.countryCode,sandbox:e.sandbox,modifyEndpointUrl:e.modifyEndpointUrl,state:e.oauthParamState},e.apiEndpoints),i=G({clientId:e.clientId,remoteMonitoringEnabled:e.remoteMonitoringEnabled,apiEndpoints:r});return b({settings:e,i18n:n,monitoringService:i,apiEndpoints:r,identificationModules:[ut,vt,Tt,wt,Ao,Nt,Mt,Bt,qt,zt,Yt,ee,oe,ue,fe,ye,Te,we,xe,ke,Le,Fe,Ke],signingModules:[Ye,sn,hn,Sn,_n,Nn,Dn,Rn,oi,kn,Ln,Pn,Bn,Gn,Hn,ti,ei,ui,di,li,pi,fi,yi,bi,Di,Ri,ki,Bi,Gi,Qi,$i,io,oo,ao,so,co,fo,yo,Oo,xo]})},Do=No}(),o}()}));
18
+ !function(t,e){ true?module.exports=e():0}(self,(function(){return function(){var t,e,n={9669:function(t,e,n){t.exports=n(1609)},5448:function(t,e,n){"use strict";var r=n(4867),i=n(6026),o=n(4372),a=n(5327),s=n(4097),c=n(4109),u=n(7985),d=n(5061);t.exports=function(t){return new Promise((function(e,n){var l=t.data,p=t.headers,f=t.responseType;r.isFormData(l)&&delete p["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var g=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";p.Authorization="Basic "+btoa(g+":"+v)}var y=s(t.baseURL,t.url);function m(){if(h){var r="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,o={data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:t,request:h};i(e,n,o),h=null}}if(h.open(t.method.toUpperCase(),a(y,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,"onloadend"in h?h.onloadend=m:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(m)},h.onabort=function(){h&&(n(d("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(d("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(d(e,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var I=(t.withCredentials||u(y))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;I&&(p[t.xsrfHeaderName]=I)}"setRequestHeader"in h&&r.forEach(p,(function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete p[e]:h.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),f&&"json"!==f&&(h.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),n(t),h=null)})),l||(l=null),h.send(l)}))}},1609:function(t,e,n){"use strict";var r=n(4867),i=n(1849),o=n(321),a=n(7185);function s(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var c=s(n(5655));c.Axios=o,c.create=function(t){return s(a(c.defaults,t))},c.Cancel=n(5263),c.CancelToken=n(4972),c.isCancel=n(6502),c.all=function(t){return Promise.all(t)},c.spread=n(8713),c.isAxiosError=n(6268),t.exports=c,t.exports.default=c},5263:function(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},4972:function(t,e,n){"use strict";var r=n(5263);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},6502:function(t){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:function(t,e,n){"use strict";var r=n(4867),i=n(5327),o=n(782),a=n(3572),s=n(7185),c=n(4875),u=c.validators;function d(t){this.defaults=t,this.interceptors={request:new o,response:new o}}d.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&c.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(t){o.push(t.fulfilled,t.rejected)})),!r){var d=[a,void 0];for(Array.prototype.unshift.apply(d,n),d=d.concat(o),i=Promise.resolve(t);d.length;)i=i.then(d.shift(),d.shift());return i}for(var l=t;n.length;){var p=n.shift(),f=n.shift();try{l=p(l)}catch(t){f(t);break}}try{i=a(l)}catch(t){return Promise.reject(t)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},d.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){d.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){d.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}})),t.exports=d},782:function(t,e,n){"use strict";var r=n(4867);function i(){this.handlers=[]}i.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},4097:function(t,e,n){"use strict";var r=n(1793),i=n(7303);t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},5061:function(t,e,n){"use strict";var r=n(481);t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},3572:function(t,e,n){"use strict";var r=n(4867),i=n(8527),o=n(6502),a=n(5655);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=i.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=i.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},481:function(t){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.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}},t}},7185:function(t,e,n){"use strict";var r=n(4867);t.exports=function(t,e){e=e||{};var n={},i=["url","method","data"],o=["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"],s=["validateStatus"];function c(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function u(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=c(void 0,t[i])):n[i]=c(t[i],e[i])}r.forEach(i,(function(t){r.isUndefined(e[t])||(n[t]=c(void 0,e[t]))})),r.forEach(o,u),r.forEach(a,(function(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=c(void 0,t[i])):n[i]=c(void 0,e[i])})),r.forEach(s,(function(r){r in e?n[r]=c(t[r],e[r]):r in t&&(n[r]=c(void 0,t[r]))}));var d=i.concat(o).concat(a).concat(s),l=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===d.indexOf(t)}));return r.forEach(l,u),n}},6026:function(t,e,n){"use strict";var r=n(5061);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},8527:function(t,e,n){"use strict";var r=n(4867),i=n(5655);t.exports=function(t,e,n){var o=this||i;return r.forEach(n,(function(n){t=n.call(o,t,e)})),t}},5655:function(t,e,n){"use strict";var r=n(4867),i=n(6016),o=n(481),a={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(5448)),c),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(s(e,"application/json"),function(t,e,n){if(r.isString(t))try{return(0,JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional,n=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw o(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(a)})),t.exports=u},1849:function(t){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},5327:function(t,e,n){"use strict";var r=n(4867);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},7303:function(t){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4372:function(t,e,n){"use strict";var r=n(4867);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},6268:function(t){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},7985:function(t,e,n){"use strict";var r=n(4867);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(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 t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},6016:function(t,e,n){"use strict";var r=n(4867);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},4109:function(t,e,n){"use strict";var r=n(4867),i=["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"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},8713:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},4875:function(t,e,n){"use strict";var r=n(8593),i={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){i[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var o={},a=r.version.split(".");function s(t,e){for(var n=e?e.split("."):a,r=t.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}i.transitional=function(t,e,n){var i=e&&s(e);function a(t,e){return"[Axios v"+r.version+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,s){if(!1===t)throw new Error(a(r," has been removed in "+e));return i&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,s)}},t.exports={isOlderVersion:s,assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var r=Object.keys(t),i=r.length;i-- >0;){var o=r[i],a=e[o];if(a){var s=t[o],c=void 0===s||a(s,o,t);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},4867:function(t,e,n){"use strict";var r=n(1849),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function c(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===i.call(t)}function d(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:c,isUndefined:a,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:u,isStream:function(t){return s(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t 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 t(){var e={};function n(n,r){c(e[r])&&c(n)?e[r]=t(e[r],n):c(n)?e[r]=t({},n):o(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)d(arguments[r],n);return e},extend:function(t,e,n){return d(e,(function(e,i){t[i]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},8552:function(t,e,n){var r=n(852)(n(5639),"DataView");t.exports=r},1989:function(t,e,n){var r=n(1789),i=n(401),o=n(7667),a=n(1327),s=n(1866);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},8407:function(t,e,n){var r=n(7040),i=n(4125),o=n(2117),a=n(7518),s=n(4705);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},7071:function(t,e,n){var r=n(852)(n(5639),"Map");t.exports=r},3369:function(t,e,n){var r=n(4785),i=n(1285),o=n(6e3),a=n(9916),s=n(5265);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},3818:function(t,e,n){var r=n(852)(n(5639),"Promise");t.exports=r},8525:function(t,e,n){var r=n(852)(n(5639),"Set");t.exports=r},6384:function(t,e,n){var r=n(8407),i=n(7465),o=n(3779),a=n(7599),s=n(4758),c=n(4309);function u(t){var e=this.__data__=new r(t);this.size=e.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,t.exports=u},2705:function(t,e,n){var r=n(5639).Symbol;t.exports=r},1149:function(t,e,n){var r=n(5639).Uint8Array;t.exports=r},577:function(t,e,n){var r=n(852)(n(5639),"WeakMap");t.exports=r},6874:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},7412:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},4963:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}},4636:function(t,e,n){var r=n(2545),i=n(5694),o=n(1469),a=n(4144),s=n(5776),c=n(6719),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),d=!n&&i(t),l=!n&&!d&&a(t),p=!n&&!d&&!l&&c(t),f=n||d||l||p,h=f?r(t.length,String):[],g=h.length;for(var v in t)!e&&!u.call(t,v)||f&&("length"==v||l&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g))||h.push(v);return h}},2488:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},6556:function(t,e,n){var r=n(9465),i=n(7813);t.exports=function(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},4865:function(t,e,n){var r=n(9465),i=n(7813),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},8470:function(t,e,n){var r=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},4037:function(t,e,n){var r=n(8363),i=n(3674);t.exports=function(t,e){return t&&r(e,i(e),t)}},3886:function(t,e,n){var r=n(8363),i=n(1704);t.exports=function(t,e){return t&&r(e,i(e),t)}},9465:function(t,e,n){var r=n(8777);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},5990:function(t,e,n){var r=n(6384),i=n(7412),o=n(4865),a=n(4037),s=n(3886),c=n(4626),u=n(278),d=n(8805),l=n(1911),p=n(8234),f=n(6904),h=n(4160),g=n(3824),v=n(9148),y=n(8517),m=n(1469),I=n(4144),b=n(6688),T=n(3218),S=n(2928),E=n(3674),C=n(1704),w="[object Arguments]",_="[object Function]",A="[object Object]",O={};O[w]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[A]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[_]=O["[object WeakMap]"]=!1,t.exports=function t(e,n,x,N,D,R){var k,U=1&n,M=2&n,j=4&n;if(x&&(k=D?x(e,N,D,R):x(e)),void 0!==k)return k;if(!T(e))return e;var L=m(e);if(L){if(k=g(e),!U)return u(e,k)}else{var P=h(e),B=P==_||"[object GeneratorFunction]"==P;if(I(e))return c(e,U);if(P==A||P==w||B&&!D){if(k=M||B?{}:y(e),!U)return M?l(e,s(k,e)):d(e,a(k,e))}else{if(!O[P])return D?e:{};k=v(e,P,U)}}R||(R=new r);var G=R.get(e);if(G)return G;R.set(e,k),S(e)?e.forEach((function(r){k.add(t(r,n,x,r,e,R))})):b(e)&&e.forEach((function(r,i){k.set(i,t(r,n,x,i,e,R))}));var F=L?void 0:(j?M?f:p:M?C:E)(e);return i(F||e,(function(r,i){F&&(r=e[i=r]),o(k,i,t(r,n,x,i,e,R))})),k}},3118:function(t,e,n){var r=n(3218),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},8483:function(t,e,n){var r=n(5063)();t.exports=r},8866:function(t,e,n){var r=n(2488),i=n(1469);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},4239:function(t,e,n){var r=n(2705),i=n(9607),o=n(2333),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},9454:function(t,e,n){var r=n(4239),i=n(7005);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},5588:function(t,e,n){var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},8458:function(t,e,n){var r=n(3560),i=n(5346),o=n(3218),a=n(346),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,d=c.toString,l=u.hasOwnProperty,p=RegExp("^"+d.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?p:s).test(a(t))}},9221:function(t,e,n){var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},8749:function(t,e,n){var r=n(4239),i=n(1780),o=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,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},280:function(t,e,n){var r=n(5726),i=n(6916),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},313:function(t,e,n){var r=n(3218),i=n(5726),o=n(3498),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&n.push(s);return n}},2980:function(t,e,n){var r=n(6384),i=n(6556),o=n(8483),a=n(9783),s=n(3218),c=n(1704),u=n(6390);t.exports=function t(e,n,d,l,p){e!==n&&o(n,(function(o,c){if(p||(p=new r),s(o))a(e,n,c,d,t,l,p);else{var f=l?l(u(e,c),o,c+"",e,n,p):void 0;void 0===f&&(f=o),i(e,c,f)}}),c)}},9783:function(t,e,n){var r=n(6556),i=n(4626),o=n(7133),a=n(278),s=n(8517),c=n(5694),u=n(1469),d=n(9246),l=n(4144),p=n(3560),f=n(3218),h=n(8630),g=n(6719),v=n(6390),y=n(9881);t.exports=function(t,e,n,m,I,b,T){var S=v(t,n),E=v(e,n),C=T.get(E);if(C)r(t,n,C);else{var w=b?b(S,E,n+"",t,e,T):void 0,_=void 0===w;if(_){var A=u(E),O=!A&&l(E),x=!A&&!O&&g(E);w=E,A||O||x?u(S)?w=S:d(S)?w=a(S):O?(_=!1,w=i(E,!0)):x?(_=!1,w=o(E,!0)):w=[]:h(E)||c(E)?(w=S,c(S)?w=y(S):f(S)&&!p(S)||(w=s(E))):_=!1}_&&(T.set(E,w),I(w,E,m,b,T),T.delete(E)),r(t,n,w)}}},5976:function(t,e,n){var r=n(6557),i=n(5357),o=n(61);t.exports=function(t,e){return o(i(t,e,r),t+"")}},6560:function(t,e,n){var r=n(5703),i=n(8777),o=n(6557),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},2545:function(t){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},1717:function(t){t.exports=function(t){return function(e){return t(e)}}},4318:function(t,e,n){var r=n(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},4626:function(t,e,n){t=n.nmd(t);var r=n(5639),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}},7157:function(t,e,n){var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},3147:function(t){var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},419:function(t,e,n){var r=n(2705),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},7133:function(t,e,n){var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},278:function(t){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},8363:function(t,e,n){var r=n(4865),i=n(9465);t.exports=function(t,e,n,o){var a=!n;n||(n={});for(var s=-1,c=e.length;++s<c;){var u=e[s],d=o?o(n[u],t[u],u,n,t):void 0;void 0===d&&(d=t[u]),a?i(n,u,d):r(n,u,d)}return n}},8805:function(t,e,n){var r=n(8363),i=n(9551);t.exports=function(t,e){return r(t,i(t),e)}},1911:function(t,e,n){var r=n(8363),i=n(1442);t.exports=function(t,e){return r(t,i(t),e)}},4429:function(t,e,n){var r=n(5639)["__core-js_shared__"];t.exports=r},1463:function(t,e,n){var r=n(5976),i=n(6612);t.exports=function(t){return r((function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r<o;){var c=n[r];c&&t(e,c,r,a)}return e}))}},5063:function(t){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var c=a[t?s:++i];if(!1===n(o[c],c,o))break}return e}}},8777:function(t,e,n){var r=n(852),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},1957:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8234:function(t,e,n){var r=n(8866),i=n(9551),o=n(3674);t.exports=function(t){return r(t,o,i)}},6904:function(t,e,n){var r=n(8866),i=n(1442),o=n(1704);t.exports=function(t){return r(t,o,i)}},5050:function(t,e,n){var r=n(7019);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},852:function(t,e,n){var r=n(8458),i=n(7801);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},5924:function(t,e,n){var r=n(5569)(Object.getPrototypeOf,Object);t.exports=r},9607:function(t,e,n){var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},9551:function(t,e,n){var r=n(4963),i=n(479),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},1442:function(t,e,n){var r=n(2488),i=n(5924),o=n(9551),a=n(479),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:a;t.exports=s},4160:function(t,e,n){var r=n(8552),i=n(7071),o=n(3818),a=n(8525),s=n(577),c=n(4239),u=n(346),d="[object Map]",l="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",g=u(r),v=u(i),y=u(o),m=u(a),I=u(s),b=c;(r&&b(new r(new ArrayBuffer(1)))!=h||i&&b(new i)!=d||o&&b(o.resolve())!=l||a&&b(new a)!=p||s&&b(new s)!=f)&&(b=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case g:return h;case v:return d;case y:return l;case m:return p;case I:return f}return e}),t.exports=b},7801:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},1789:function(t,e,n){var r=n(4536);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:function(t,e,n){var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},1327:function(t,e,n){var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},1866:function(t,e,n){var r=n(4536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},9148:function(t,e,n){var r=n(4318),i=n(7157),o=n(3147),a=n(419),s=n(7133);t.exports=function(t,e,n){var c=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return i(t,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 s(t,n);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return o(t);case"[object Symbol]":return a(t)}}},8517:function(t,e,n){var r=n(3118),i=n(5924),o=n(5726);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},5776:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},6612:function(t,e,n){var r=n(7813),i=n(8612),o=n(5776),a=n(3218);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&o(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},7019:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:function(t,e,n){var r,i=n(4429),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},5726:function(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},7040:function(t){t.exports=function(){this.__data__=[],this.size=0}},4125:function(t,e,n){var r=n(8470),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},2117:function(t,e,n){var r=n(8470);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},7518:function(t,e,n){var r=n(8470);t.exports=function(t){return r(this.__data__,t)>-1}},4705:function(t,e,n){var r=n(8470);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},4785:function(t,e,n){var r=n(1989),i=n(8407),o=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},1285:function(t,e,n){var r=n(5050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},6e3:function(t,e,n){var r=n(5050);t.exports=function(t){return r(this,t).get(t)}},9916:function(t,e,n){var r=n(5050);t.exports=function(t){return r(this,t).has(t)}},5265:function(t,e,n){var r=n(5050);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},4536:function(t,e,n){var r=n(852)(Object,"create");t.exports=r},6916:function(t,e,n){var r=n(5569)(Object.keys,Object);t.exports=r},3498:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1167:function(t,e,n){t=n.nmd(t);var r=n(1957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},5357:function(t,e,n){var r=n(6874),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),c=Array(s);++a<s;)c[a]=o[e+a];a=-1;for(var u=Array(e+1);++a<e;)u[a]=o[a];return u[e]=n(c),r(t,this,u)}}},5639:function(t,e,n){var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},6390:function(t){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},61:function(t,e,n){var r=n(6560),i=n(1275)(r);t.exports=i},1275:function(t){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},7465:function(t,e,n){var r=n(8407);t.exports=function(){this.__data__=new r,this.size=0}},3779:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},7599:function(t){t.exports=function(t){return this.__data__.get(t)}},4758:function(t){t.exports=function(t){return this.__data__.has(t)}},4309:function(t,e,n){var r=n(8407),i=n(7071),o=n(3369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},346:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},361:function(t,e,n){var r=n(5990);t.exports=function(t){return r(t,5)}},5703:function(t){t.exports=function(t){return function(){return t}}},7813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},6557:function(t){t.exports=function(t){return t}},5694:function(t,e,n){var r=n(9454),i=n(7005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=c},1469:function(t){var e=Array.isArray;t.exports=e},8612:function(t,e,n){var r=n(3560),i=n(1780);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},9246:function(t,e,n){var r=n(8612),i=n(7005);t.exports=function(t){return i(t)&&r(t)}},4144:function(t,e,n){t=n.nmd(t);var r=n(5639),i=n(5062),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;t.exports=c},3560:function(t,e,n){var r=n(4239),i=n(3218);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:function(t,e,n){var r=n(5588),i=n(1717),o=n(1167),a=o&&o.isMap,s=a?i(a):r;t.exports=s},3218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},8630:function(t,e,n){var r=n(4239),i=n(5924),o=n(7005),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,d=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=u.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}},2928:function(t,e,n){var r=n(9221),i=n(1717),o=n(1167),a=o&&o.isSet,s=a?i(a):r;t.exports=s},6719:function(t,e,n){var r=n(8749),i=n(1717),o=n(1167),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},3674:function(t,e,n){var r=n(4636),i=n(280),o=n(8612);t.exports=function(t){return o(t)?r(t):i(t)}},1704:function(t,e,n){var r=n(4636),i=n(313),o=n(8612);t.exports=function(t){return o(t)?r(t,!0):i(t)}},2492:function(t,e,n){var r=n(2980),i=n(1463)((function(t,e,n){r(t,e,n)}));t.exports=i},479:function(t){t.exports=function(){return[]}},5062:function(t){t.exports=function(){return!1}},9881:function(t,e,n){var r=n(8363),i=n(1704);t.exports=function(t){return r(t,i(t))}},7061:function(t,e,n){var r=n(8698).default;function i(){"use strict";t.exports=i=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new O(r||[]);return a(o,"_invoke",{value:C(t,n,s)}),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var h={};function g(){}function v(){}function y(){}var m={};l(m,c,(function(){return this}));var I=Object.getPrototypeOf,b=I&&I(I(x([])));b&&b!==n&&o.call(b,c)&&(m=b);var T=y.prototype=g.prototype=Object.create(m);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(i,a,s,c){var u=f(t[i],t,a);if("throw"!==u.type){var d=u.arg,l=d.value;return l&&"object"==r(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):e.resolve(l).then((function(t){d.value=t,s(d)}),(function(t){return n("throw",t,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function C(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function w(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function x(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:N}}function N(){return{value:void 0,done:!0}}return v.prototype=y,a(T,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,d,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,d,"GeneratorFunction")),t.prototype=Object.create(T),t},e.awrap=function(t){return{__await:t}},S(E.prototype),l(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new E(p(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(T),l(T,d,"Generator"),l(T,c,(function(){return this})),l(T,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=x,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},8698:function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4687:function(t,e,n){var r=n(7061)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},8593:function(t){"use strict";t.exports=JSON.parse('{"name":"axios","version":"0.21.4","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"}]}')}},r={};function i(t){var e=r[t];if(void 0!==e)return e.exports;var o=r[t]={id:t,loaded:!1,exports:{}};return n[t](o,o.exports,i),o.loaded=!0,o.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},i.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 o=Object.create(null);i.r(o);var a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&r&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((function(t){a[t]=function(){return n[t]}}));return a.default=function(){return n},i.d(o,a),o},i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t};var o={};return function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e){var n=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,"string");if("object"!==t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(n)?n:String(n)}function n(t,n,r){return(n=e(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}var r;i.r(o),i.d(o,{allMethods:function(){return u},createClient:function(){return Ro},default:function(){return ko},getMethodByHandlingModule:function(){return d},methodActionTypes:function(){return s},methodTypes:function(){return a},moduleNames:function(){return c}});var a={IDENTIFICATION:"identification",SIGNATURE:"signature"},s={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",LV_EPARAKSTS_ID_LOGIN:"lv-eparaksts-id-login",LT_MOBILE_ID:"lt-mobile-id",SMART_ID:"smartid",FREJA_EID_LOGIN:"freja-eid-login",ZEALID_LOGIN:"zealid-login",CZ_MOJEID:"mojeid",EDOAPP_EID_LOGIN:"edoapp-eid-login",AT_HANDY_SIGNATUR_LOGIN:"at-handy-signatur-login",FI_FTN_LOGIN:"finnish-ftn-login",ITSME_LOGIN:"itsme-login",ITSME_LOGIN_BASIC:"itsme-login-basic",ITSME_LOGIN_STANDARD:"itsme-login-standard",SE_BANKID_LOGIN:"swedish-bankid-login",IDIN_LOGIN:"idin-login",VERIFAI_LOGIN:"verifai-login",YOONIK_LOGIN:"yoonik-login",PL_MOJEID_LOGIN:"pl-mojeid-login",MIT_ID_LOGIN:"mit-id-login",NORWEGIAN_BANKID_LOGIN:"norwegian-bankid-login",FTN_LOGIN:"ftn-login",IDIN_CUSTOMER_ID_LOGIN:"idin-customer-id-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",HR_IDCARD_SIGNATURE:"hr-id-signature",CERTEUROPE_USB_TOKEN_SIGNATURE:"certeurope-usb-token-signature",CERTSIGN_USB_TOKEN_SIGNATURE:"certsign-usb-token-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_FULL_SIGNATURE:"fi-ftn-advanced-full-signature",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",DK_MITID_ADVANCED_SIGNATURE:"dk-mitid-advanced-signature",DK_MITID_QES_SIGNATURE:"dk-mitid-qes-signature",SE_BANK_ID_ADVANCED_SIGNATURE:"se-bankid-advanced-signature",SE_BANK_ID_QES_SIGNATURE:"se-bankid-qes-signature",NORWEGIAN_BANKID_ADVANCED_SIGNATURE:"norwegian-bankid-adv-signature",IDIN_SIMPLE_SIGNATURE:"idin-simple-signature",VERIFAI_SIMPLE_SIGNATURE:"verifai-simple-signature",SPID_QUALIFIED_SIGNATURE:"spid-qes-signature",FREJA_SIMPLE_SIGNATURE:"freja-simple-signature",AUDKENNI_QUALIFIED_SIGNATURE:"audkenni-qes-signature",YES_COM_QUALIFIED_SIGNATURE:"yes-com-qes-signature",SIMPLY_SIGN_QES_SIGNATURE:"simply-sign-qes-signature",UANATACA_QUALIFIED_SIGNATURE:"uanataca-qes-signature",CERTSIGN_WEBAPI_QUALIFIED_SIGNATURE:"certsign-webapi-qes-signature",HALCOM_QUALIFIED_SIGNATURE:"halcom-qes-signature",SWISS_ID_QUALIFIED_SIGNATURE:"swiss-id-qes-signature",SWISS_COM_QUALIFIED_SIGNATURE:"swiss-com-qes-signature",SE_FREJA_EID_ADVANCED_SIGNATURE:"se-frejaeid-advanced-signature",SE_FREJA_EID_QES_SIGNATURE:"se-frejaeid-qes-signature",ITSME_QES_SIGNATURE:"itsme-qes-signature",FR_IDENT_ADVANCED_SIGNATURE:"fr-ident-advanced-signature"},c={idCard:"idCard",mobileId:"mobileId",eParakstsMobile:"eParakstsMobile",eParakstsSmartCard:"eParakstsSmartCard",smartId:"smartId",frejaEid:"frejaEid",zealId:"zealId",mojeId:"mojeId",edoAppEid:"edoAppEid",finnishTrustNetwork:"finnishTrustNetwork",atHandy:"atHandy",itsme:"itsme",itsmeBasic:"itsmeBasic",itsmeStandard:"itsmeStandard",seBankId:"seBankId",idin:"idin",idinCustomerId:"idinCustomerId",verifai:"verifai",yoonik:"yoonik",plMojeId:"plMojeId",mitId:"mitId",norwegianBankId:"norwegianBankId",ftn:"ftn",idCardSignature:"idCardSignature",certEuropeUsbTokenSignature:"certEuropeUsbTokenSignature",certSignUsbTokenSignature:"certSignUsbTokenSignature",mobileIdSignature:"mobileIdSignature",smartIdSignature:"smartIdSignature",evroTrustSignature:"evroTrustSignature",otpSignature:"otpSignature",eParakstsMobileSignature:"eParakstsMobileSignature",ftnAdvancedFullSignature:"ftnAdvancedFullSignature",mitIdAdvancedSignature:"mitIdAdvancedSignature",mitIdQesSignature:"mitIdQesSignature",seBankIdAdvancedSignature:"seBankIdAdvancedSignature",seBankIdQesSignature:"seBankIdQesSignature",ftnSignature:"ftnSignature",ftnQesSignature:"ftnQesSignature",atHandySignature:"atHandySignature",zealIdSignature:"zealIdSignature",mojeIdSignature:"mojeIdSignature",googleSignature:"googleSignature",seBankIdSignature:"seBankIdSignature",dTrustSignMeSignature:"dTrustSignMeSignature",chaveMovelSignature:"chaveMovelSignature",mitIdSignature:"mitIdSignature",noBankIdAdvSignature:"noBankIdAdvSignature",idinSignature:"idinSignature",verifaiSignature:"verifaiSignature",spidQesSignature:"spidQesSignature",frejaSimpleSignature:"frejaSimpleSignature",audkenniQesSignature:"audkenniQesSignature",yesComQesSignature:"yesComQesSignature",simplySignQesSignature:"simplySignQesSignature",uanatacaQesSignature:"uanatacaQesSignature",certsignWebapiQesSignature:"certsignWebapiQesSignature",halcomQesSignature:"halcomQesSignature",swissIdQesSignature:"swissIdQesSignature",swissComQesSignature:"swissComQesSignature",frejaAdvancedSignature:"frejaAdvancedSignature",frejaQesSignature:"frejaQesSignature",itsmeQesSignature:"itsmeQesSignature",frIdentAdvancedSignature:"frIdentAdvancedSignature"},u=Object.freeze((n(r={},a.IDENTIFICATION,[{actionType:s.BE_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["BE"]},{actionType:s.EE_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["EE"]},{actionType:s.FI_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["FI"]},{actionType:s.LV_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["LV"]},{actionType:s.LT_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["LT"]},{actionType:s.PT_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["PT"]},{actionType:s.RS_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["RS"]},{actionType:s.LV_EPARAKSTS_MOBILE_LOGIN,handlingModule:c.eParakstsMobile,supportedCountries:["LV"]},{actionType:s.LV_EPARAKSTS_ID_LOGIN,handlingModule:c.eParakstsSmartCard,supportedCountries:["LV"]},{actionType:s.LT_MOBILE_ID,handlingModule:c.mobileId,supportedCountries:["LT"]},{actionType:s.EE_MOBILE_ID,handlingModule:c.mobileId,supportedCountries:["EE"]},{actionType:s.SMART_ID,handlingModule:c.smartId,supportedCountries:["EE","LV","LT"]},{actionType:s.FREJA_EID_LOGIN,handlingModule:c.frejaEid,supportedCountries:["FI","SE","NO","DK"]},{actionType:s.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:s.CZ_MOJEID,handlingModule:c.mojeId,supportedCountries:["CZ"]},{actionType:s.EDOAPP_EID_LOGIN,handlingModule:c.edoAppEid,supportedCountries:["PL"]},{actionType:s.FI_FTN_LOGIN,handlingModule:c.finnishTrustNetwork,supportedCountries:["FI"]},{actionType:s.AT_HANDY_SIGNATUR_LOGIN,handlingModule:c.atHandy,supportedCountries:["AT"]},{actionType:s.ITSME_LOGIN,handlingModule:c.itsme,supportedCountries:["BE","LU","NL"]},{actionType:s.ITSME_LOGIN_BASIC,handlingModule:c.itsmeBasic,supportedCountries:["BE","LU","NL"]},{actionType:s.ITSME_LOGIN_STANDARD,handlingModule:c.itsmeStandard,supportedCountries:["BE","LU","NL"]},{actionType:s.SE_BANKID_LOGIN,handlingModule:c.seBankId,supportedCountries:["SE"]},{actionType:s.IDIN_LOGIN,handlingModule:c.idin,supportedCountries:["NL"]},{actionType:s.IDIN_CUSTOMER_ID_LOGIN,handlingModule:c.idinCustomerId,supportedCountries:["NL"]},{actionType:s.VERIFAI_LOGIN,handlingModule:c.verifai,supportedCountries:["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","CV","KH","CM","CA","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","ER","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","GH","GI","GR","GL","GD","GP","GU","GT","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","KP","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","GS","KR","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","UM","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"]},{actionType:s.YOONIK_LOGIN,handlingModule:c.yoonik,supportedCountries:["WORLD"]},{actionType:s.PL_MOJEID_LOGIN,handlingModule:c.plMojeId,supportedCountries:["PL"]},{actionType:s.MIT_ID_LOGIN,handlingModule:c.mitId,supportedCountries:["DK"]},{actionType:s.NORWEGIAN_BANKID_LOGIN,handlingModule:c.norwegianBankId,supportedCountries:["NO"]},{actionType:s.FTN_LOGIN,handlingModule:c.ftn,supportedCountries:["FI"]}]),n(r,a.SIGNATURE,[{actionType:s.EE_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["EE"]},{actionType:s.LV_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["LV"]},{actionType:s.LT_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["LT"]},{actionType:s.FI_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["FI","AX"]},{actionType:s.PT_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["PT"]},{actionType:s.BE_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["BE"]},{actionType:s.HR_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["HR"]},{actionType:s.CERTEUROPE_USB_TOKEN_SIGNATURE,handlingModule:c.certEuropeUsbTokenSignature,supportedCountries:["FR"]},{actionType:s.CERTSIGN_USB_TOKEN_SIGNATURE,handlingModule:c.certSignUsbTokenSignature,supportedCountries:["RO"]},{actionType:s.EE_MOBILEID_SIGNATURE,handlingModule:c.mobileIdSignature,supportedCountries:["EE"]},{actionType:s.LT_MOBILEID_SIGNATURE,handlingModule:c.mobileIdSignature,supportedCountries:["LT"]},{actionType:s.SMARTID_SIGNATURE,handlingModule:c.smartIdSignature,supportedCountries:["EE","LV","LT"]},{actionType:s.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","AX"]},{actionType:s.ITSME_QES_SIGNATURE,handlingModule:c.itsmeQesSignature,supportedCountries:["BE","LU","NL"]},{actionType:s.OTP_EMAIL,handlingModule:c.otpSignature,supportedCountries:["WORLD"]},{actionType:s.LV_EPARAKSTS_MOBILE_SIGNATURE,handlingModule:c.eParakstsMobileSignature,supportedCountries:["LV"]},{actionType:s.FI_FTN_ADVANCED_SIGNATURE,handlingModule:c.ftnSignature,supportedCountries:["FI","AX"]},{actionType:s.FI_FTN_ADVANCED_FULL_SIGNATURE,handlingModule:c.ftnAdvancedFullSignature,supportedCountries:["FI","AX"]},{actionType:s.FI_FTN_QUALIFIED_SIGNATURE,handlingModule:c.ftnQesSignature,supportedCountries:["FI","AX"]},{actionType:s.AT_HANDY_SIGNATUR_SIGNATURE,handlingModule:c.atHandySignature,supportedCountries:["AT"]},{actionType:s.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:s.CZ_MOJEID_ADVANCED_SIGNATURE,handlingModule:c.mojeIdSignature,supportedCountries:["CZ"]},{actionType:s.GOOGLE_SIGNATURE,handlingModule:c.googleSignature,supportedCountries:["WORLD"]},{actionType:s.SE_BANKID_SIGNATURE,handlingModule:c.seBankIdSignature,supportedCountries:["SE"]},{actionType:s.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","US","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:s.CHAVE_MOVEL_QUALIFIED_SIGNATURE,handlingModule:c.chaveMovelSignature,supportedCountries:["PT"]},{actionType:s.NORWEGIAN_BANKID_ADVANCED_SIGNATURE,handlingModule:c.noBankIdAdvSignature,supportedCountries:["NO"]},{actionType:s.MIT_ID_SIMPLE_SIGNATURE,handlingModule:c.mitIdSignature,supportedCountries:["DK","GL"]},{actionType:s.IDIN_SIMPLE_SIGNATURE,handlingModule:c.idinSignature,supportedCountries:["NL"]},{actionType:s.SPID_QUALIFIED_SIGNATURE,handlingModule:c.spidQesSignature,supportedCountries:["IT"]},{actionType:s.VERIFAI_SIMPLE_SIGNATURE,handlingModule:c.verifaiSignature,supportedCountries:["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","CV","KH","CM","CA","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","ER","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","GH","GI","GR","GL","GD","GP","GU","GT","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","KP","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","GS","KR","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","UM","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"]},{actionType:s.FREJA_SIMPLE_SIGNATURE,handlingModule:c.frejaSimpleSignature,supportedCountries:["DK","EE","FI","LV","LT","NO","PL","RO","SK","SE","GL","AX"]},{actionType:s.AUDKENNI_QUALIFIED_SIGNATURE,handlingModule:c.audkenniQesSignature,supportedCountries:["IS"]},{actionType:s.YES_COM_QUALIFIED_SIGNATURE,handlingModule:c.yesComQesSignature,supportedCountries:["DE"]},{actionType:s.SIMPLY_SIGN_QES_SIGNATURE,handlingModule:c.simplySignQesSignature,supportedCountries:["PL"]},{actionType:s.UANATACA_QUALIFIED_SIGNATURE,handlingModule:c.uanatacaQesSignature,supportedCountries:["ES"]},{actionType:s.CERTSIGN_WEBAPI_QUALIFIED_SIGNATURE,handlingModule:c.certsignWebapiQesSignature,supportedCountries:["RO"]},{actionType:s.HALCOM_QUALIFIED_SIGNATURE,handlingModule:c.halcomQesSignature,supportedCountries:["SI"]},{actionType:s.SWISS_ID_QUALIFIED_SIGNATURE,handlingModule:c.swissIdQesSignature,supportedCountries:["CH"]},{actionType:s.SWISS_COM_QUALIFIED_SIGNATURE,handlingModule:c.swissComQesSignature,supportedCountries:["CH"]},{actionType:s.DK_MITID_ADVANCED_SIGNATURE,handlingModule:c.mitIdAdvancedSignature,supportedCountries:["DK"]},{actionType:s.DK_MITID_QES_SIGNATURE,handlingModule:c.mitIdQesSignature,supportedCountries:["DK"]},{actionType:s.SE_BANK_ID_ADVANCED_SIGNATURE,handlingModule:c.seBankIdAdvancedSignature,supportedCountries:["SE"]},{actionType:s.SE_BANK_ID_QES_SIGNATURE,handlingModule:c.seBankIdQesSignature,supportedCountries:["SE"]},{actionType:s.SE_FREJA_EID_ADVANCED_SIGNATURE,handlingModule:c.frejaAdvancedSignature,supportedCountries:["SE"]},{actionType:s.SE_FREJA_EID_QES_SIGNATURE,handlingModule:c.frejaQesSignature,supportedCountries:["SE"]},{actionType:s.FR_IDENT_ADVANCED_SIGNATURE,handlingModule:c.frIdentAdvancedSignature,supportedCountries:["FR"]}]),r)),d=function(t,e,n){var r=u[t];if(e&&n){var i=r.find((function(t){return t.handlingModule===e&&(t.supportedCountries.includes(n)||t.supportedCountries.includes("WORLD"))}));if(!i){if(0===r.filter((function(t){return t.handlingModule===e})).length)throw new Error("Could not find matching method configuration for ".concat(t,' module "').concat(e,'"'));throw new Error('Country "'.concat(n,'" is not supported for ').concat(t,'\n module "').concat(e,'".'))}return i}return r.find((function(t){return t.handlingModule===e}))},l=i(2492),p=i.n(l),f=i(9669),h=i.n(f),g=h().CancelToken,v=h().isCancel;h().Cancel,h().interceptors.response.use((function(t){return(e=t.data)&&["error","No ID or basic level only","USER_CANCELLED","USER_REFUSED","refused","TIMEOUT","NOT_MID_CLIENT","ERROR"].includes(e.status)?Promise.reject(function(t){var e=t.message,n=t.config,r=t.code,i=t.request,o=t.response,a=new Error(e);return a.config=n,r&&(a.code=r),a.request=i,a.response=o,a.isRequestError=!0,a}({message:"Request failed with status code ".concat(t.status),config:t.config,request:t.request,response:t})):t;var e}));var y=function(t){return h()(t)};function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function I(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var b=function(t,e){var n,r=e.modifyRequestSettings,i=t;return"function"==typeof r&&(n=r(i)),n&&(i=p()(i,n)),i},T=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(b(I({method:"get",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},e),t))},n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(b(I({method:"post",cache:"no-cache",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},e),t))};return Object.freeze({get:e,post:n,CancelToken:g})};function S(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function E(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?S(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.identificationModules,n=void 0===e?[]:e,r=t.signingModules,i=void 0===r?[]:r,o=t.settings,a=void 0===o?{}:o,s=t.i18n,c=t.apiEndpoints,d=t.monitoringService,l=E({},a);l.apiEndpoints=c,s.setLanguage(l.language);var p=function(t){l.countryCode=t},f=function(){return l.countryCode},h=function(){return u},g={};n.forEach((function(t){var e=t({coreContext:{config:l,i18n:s,monitoringService:d},apiClient:T({modifyRequestSettings:l.modifyRequestSettings})});g[e.MODULE_NAME]=e}));var v={};return i.forEach((function(t){var e=t({coreContext:{config:l,i18n:s,monitoringService:d},apiClient:T({modifyRequestSettings:l.modifyRequestSettings})});v[e.MODULE_NAME]=e})),Object.freeze({identification:E({},g),signature:E({},v),getAllMethods:h,setLanguage:s.setLanguage,setCountryCode:p,getCountryCode:f})};function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var _=function(e){var r=e.rawSettings,i=e.schema,o=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?w(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},r);return Object.keys(i).forEach((function(e){var n=i[e],a=r[e];if(n.required&&void 0===a)throw new Error('Missing required setting "'.concat(e,'"'));if(void 0===a&&(o[e]=n.default),void 0!==o[e]&&void 0!==n.type&&n.type!==t(o[e]))throw new Error('Expected "'.concat(e,'" to be type of "').concat(n.type,'", but received "').concat(t(o[e]),'"'))})),o},A={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(t){var e=t.data&&t.data.redirect_uri;return e?(window.location!==window.top.location?window.top.location.href=e:window.location.href=e,new Promise((function(){}))):t},type:"function"},remoteMonitoringEnabled:{default:!1},oauthParamState:{type:"string"}},O=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=i.t(O,2),N=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."}'),D=i.t(N,2),R=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."}'),k=i.t(R,2),U=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."}'),M=i.t(U,2),j=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."}'),L=i.t(j,2),P=JSON.parse('{"id-card-read-timeout":"Чтение удостоверения личности заняло слишком много времени. Закройте все открытые окна браузера и повторите попытку.","no_certificates":"Не удалось прочитать сертификаты. Убедитесь, что карта находится в считывателе и считыватель работает исправно."}'),B={de:x,en:D,et:k,lt:M,lv:L,ru:i.t(P,2)},G=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.currentLanguage,n=void 0===e?"en":e,r=t.locales,i=void 0===r?B:r,o={currentLanguage:n},a="en",s=function(t){o.currentLanguage=t},c=function(){return o.currentLanguage},u=function(t){var e=i[o.currentLanguage];e||(e=i[a]);var n=e[t]||i[a][t];return n||(n=t),n};return Object.freeze({setLanguage:s,t:u,getCurrentLanguage:c})},F=function(t){var e=t.clientId,n=t.remoteMonitoringEnabled,r=t.apiEndpoints;return{dispatch:function(t){var i=t.message;n&&y({url:r.inCurrentMode.eideasyMonitoring(),method:"post",cache:"no-cache",withCredentials:!1,data:{client_id:e,source:"browser-client",message:i}})}}};function V(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function q(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){V(o,r,i,a,s,"next",t)}function s(t){V(o,r,i,a,s,"throw",t)}a(void 0)}))}}var H=i(4687),K=i.n(H),Q=i(361),z=i.n(Q)(),Z=function(t){var e=t;return v(t)&&(e.isCancel=!0),e.response&&e.response.data&&(e.response.data.message&&(e.userMessage=e.response.data.message),e.response.data.errors&&(e.userDetails=e.response.data.errors)),e},J=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,n=t.message,r=z({message:n});if(e)r.data=e;else{if(!t.result||!t.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=t.result.data}return r},W=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.error},Y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.shouldFormatResult,r=void 0===n||n;return function(){var e=q(K().mark((function e(){var n,i,o=arguments;return K().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.apply(void 0,o);case 2:if(n=e.sent,!(i=W(n))){e.next=6;break}throw Z(i);case 6:return e.abrupt("return",r?J(n):n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()};function $(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function X(t,e){if(t){if("string"==typeof t)return $(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(t,e):void 0}}function tt(t){return function(t){if(Array.isArray(t))return $(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||X(t)||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.")}()}Error;var et=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],nt=Symbol(".toJSON was called"),rt=function e(n){var r,i,o=n.from,a=n.seen,s=n.to_,c=n.forceEnumerable,u=n.maxDepth,d=n.depth,l=s||(Array.isArray(o)?[]:{});if(a.push(o),d>=u)return l;if("function"==typeof o.toJSON&&!0!==o[nt])return function(t){t[nt]=!0;var e=t.toJSON();return delete t[nt],e}(o);for(var p=0,f=Object.entries(o);p<f.length;p++){var h=(r=f[p],i=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){u=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(r,i)||X(r,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=h[0],v=h[1];"function"==typeof Buffer&&Buffer.isBuffer(v)?l[g]="[object Buffer]":null===v||"object"!==t(v)||"function"!=typeof v.pipe?"function"!=typeof v&&(v&&"object"===t(v)?a.includes(o[g])?l[g]="[Circular]":(d++,l[g]=e({from:o[g],seen:tt(a),forceEnumerable:c,maxDepth:u,depth:d})):l[g]=v):l[g]="[object Stream]"}for(var y=0,m=et;y<m.length;y++){var I=m[y],b=I.property,T=I.enumerable;"string"==typeof o[b]&&Object.defineProperty(l,b,{value:o[b],enumerable:!!c||T,configurable:!0,writable:!0})}return l};function it(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.maxDepth,i=void 0===r?Number.POSITIVE_INFINITY:r;return"object"===t(e)&&null!==e?rt({from:e,seen:[],forceEnumerable:!0,maxDepth:i,depth:0}):"function"==typeof e?"[Function: ".concat(e.name||"anonymous","]"):e}function ot(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function at(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ot(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var st=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){var i=r.coreContext,o=r.apiClient,a=i.i18n,s=i.config,c=i.monitoringService;return Object.freeze({MODULE_NAME:t,start:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=at(at({},A),n),i=at(at({},s),t),u=_({rawSettings:i,schema:r}),d=u.success,l=u.fail,p=u.finished,f=t.language||a.getCurrentLanguage(),h=o.CancelToken.source(),g=h.token,v={onCancelByUser:function(){}},y=function(t){v.onCancelByUser=t},m=function(){h.cancel()},I=function(){v.onCancelByUser(),m()},b=function(){var t=q(K().mark((function t(){return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(at(at({},u),{},{language:f,i18n:a,monitoringService:c,cancelToken:g,cancel:m,setOnCancelByUser:y,apiClient:o})).then((function(t){d(t)})).catch((function(t){console&&console.error&&console.error(t),c.dispatch({message:JSON.stringify(it(t))}),l(Z(t))})).finally(p);case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return b().catch(console.error),Object.freeze({cancel:I})}})}};function ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ut(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ct(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ct(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var dt=c.idCard,lt=function(){var t=q(K().mark((function t(e){var n,r,i,o,s,c,u;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.language,i=e.apiClient,o=e.i18n,s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.apiEndpoints.inCurrentMode.readCard({countryCode:t.countryCode,clientId:t.clientId});return t.nonce&&(e+="?nonce=".concat(t.nonce)),i.get({url:e,cancelToken:t.cancelToken})},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=d(a.IDENTIFICATION,dt,t.countryCode);return i.post({url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,country:t.countryCode,method:e.actionType,lang:t.language},cancelToken:t.cancelToken})},t.next=5,Y(s)(ut(ut({},e),{},{language:r,cancelToken:n})).catch((function(t){throw"ECONNABORTED"===t.code&&(t.userMessage=o.t("id-card-read-timeout")),t}));case 5:return u=t.sent,t.next=8,Y(c)(ut(ut({},e),{},{cancelToken:n,language:r,data:u.data}));case 8:return u=t.sent,t.abrupt("return",u);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),pt=st(dt,lt,{countryCode:{type:"string",required:!0}}),ft=function(){var t=q((function(t){var e=t.fn,n=t.shouldContinue,r=t.interval;return K().mark((function t(){var i,o;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=0,o=function(){var t=q(K().mark((function t(a,s){var c,u;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i+=1,t.prev=1,t.next=4,e();case 4:c=t.sent,u=void 0,t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),c=void 0,u=t.t0;case 12:if(!n({result:c,attempts:i,error:u})){t.next=14;break}return t.abrupt("return",setTimeout(o,r,a,s));case 14:return t.abrupt("return",a({result:c,error:u}));case 15:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e,n){return t.apply(this,arguments)}}(),t.abrupt("return",new Promise(o));case 3:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ht=ft;function gt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gt(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var yt=c.smartId,mt=function(){var t=q(K().mark((function t(e){var n,r,i,o,s,c,u,l,p,f,h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,r=void 0===n?function(){}:n,i=e.idcode,o=e.pollInterval,s=void 0===o?1e3:o,c=e.cancelToken,u=e.language,l=e.apiClient,p=function(t){var e=d(a.IDENTIFICATION,yt);return l.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,country:t.countryCode,method:e.actionType,lang:t.language}})},f=function(t){var e=d(a.IDENTIFICATION,yt);return l.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language}})},h=function(t){var e=1e5/t.pollInterval,n=0;return ht({fn:function(){return f(vt(vt({},t.config),{},{data:t.data,cancelToken:t.cancelToken,language:t.language}))},shouldContinue:function(t){var r=t.result,i=r&&r.data&&r.data.status,o=v(t.error),a=t.error&&!t.error.response&&!o;a&&(n+=1);var s=!1;return t.attempts<e&&n<3&&(s=a||"RUNNING"===i),s},interval:2e3})},t.next=6,Y(p)(vt(vt({},e),{},{cancelToken:c,language:u,idcode:i}));case 6:return g=t.sent,r(g),t.next=10,Y(h)({config:e,data:vt({},g.data),cancelToken:c,pollInterval:s,language:u});case 10:return g=t.sent,t.abrupt("return",g);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),It=st(yt,mt,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bt(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var St=c.mobileId,Et=function(){var t=q(K().mark((function t(e){var n,r,i,o,s,c,u,l,p,f,h,g,y;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.language,i=e.apiClient,o=e.started,s=void 0===o?function(){}:o,c=e.idcode,u=e.phone,l=e.pollInterval,p=void 0===l?1e3:l,f=function(t){var e=d(a.IDENTIFICATION,St,t.countryCode);return i.post({url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,phone:t.phone,country:t.countryCode,method:e.actionType,lang:t.language},cancelToken:t.cancelToken})},h=function(t){var e=d(a.IDENTIFICATION,St,t.countryCode);return i.post({url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language},cancelToken:t.cancelToken})},g=function(t){var e=12e4/p,n=0;return ht({fn:function(){return h(Tt(Tt({},t.config),{},{data:t.data,cancelToken:t.cancelToken,language:t.language}))},shouldContinue:function(t){var r=t.result,i=r&&r.data&&r.data.status,o=v(t.error),a=t.error&&!t.error.response&&!o;a&&(n+=1);var s=!1;return t.attempts<e&&n<3&&(s=a||"RUNNING"===i),s},interval:1e3})},t.next=6,Y(f)(Tt(Tt({},e),{},{cancelToken:n,language:r,idcode:c,phone:u}));case 6:return y=t.sent,s(y),t.next=10,Y(g)({config:e,data:y.data,cancelToken:n,language:r,pollInterval:p});case 10:return y=t.sent,t.abrupt("return",y);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ct=st(St,Et,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0}}),wt=c.eParakstsMobile,_t=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsMobile({clientId:n,redirectUri:r})}}},At=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,Y(_t)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ot=st(wt,At);function xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Nt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xt(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Dt=c.frejaEid,Rt=function(){var t=q(K().mark((function t(e){var n,r,i,o,s,c,u,l,p,f,h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,r=void 0===n?function(){}:n,i=e.idcode,o=e.pollInterval,s=void 0===o?1e3:o,c=e.cancelToken,u=e.language,l=e.apiClient,p=function(t){var e=d(a.IDENTIFICATION,Dt);return l.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,country:t.countryCode,method:e.actionType,lang:t.language}})},f=function(t){var e=d(a.IDENTIFICATION,Dt);return l.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,lang:t.language,timeout:2}})},h=function(t){var e=1e5/t.pollInterval,n=0;return ht({fn:function(){return f(Nt(Nt({},t.config),{},{data:t.data,language:t.language,cancelToken:t.cancelToken}))},shouldContinue:function(t){var r=t.result,i=r&&r.data&&r.data.status,o=v(t.error),a=t.error&&!t.error.response&&!o;a&&(n+=1);var s=!1;return t.attempts<e&&n<3&&(s=a||"RUNNING"===i),s},interval:2e3})},t.next=6,Y(p)(Nt(Nt({},e),{},{cancelToken:c,language:u,idcode:i}));case 6:return g=t.sent,r(g),t.next=10,Y(h)({config:e,data:Nt({},g.data),cancelToken:c,language:u,pollInterval:s});case 10:return g=t.sent,t.abrupt("return",g);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),kt=st(Dt,Rt,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function Ut(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ut(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ut(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var jt=c.zealId,Lt=function(){var t=q(K().mark((function t(e){var n,r,i,o,s,c,u;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.apiClient,i=e.language,o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.get({withCredentials:!1,cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.zealIdIframeUrl({clientId:t.clientId})})},s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.iframeHolder,n=document.createElement("iframe"),r=t.iframeUrl;n.setAttribute("src",r),n.setAttribute("referrerpolicy","origin"),n.style.border="0",e.innerHTML="";var i=function(t,e,n){var r=new URL(t.data),i=r.searchParams.get("error"),o=r.searchParams.get("code");i?n(i):o?e({data:{code:o}}):n(t.data)},o=new Promise((function(t,e){window.addEventListener("message",(function(n){var o=new URL(r);n.origin===o.origin&&(window.removeEventListener("message",i),i(n,t,e))}))}));return e.appendChild(n),o},c=function(t){var e=d(a.IDENTIFICATION,jt);return r.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{method:e.actionType,code:t.data.code,lang:t.language}})},t.next=6,Y(o)(Mt(Mt({},e),{},{cancelToken:n}));case 6:return u=t.sent,t.next=9,Y(s)(Mt(Mt({},e),{},{cancelToken:n,iframeUrl:u.data.url}));case 9:return u=t.sent,t.next=12,Y(c)(Mt(Mt({},e),{},{cancelToken:n,language:i},u));case 12:return u=t.sent,t.abrupt("return",u);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Pt=st(jt,Lt,{countryCode:{type:"string",required:!0},iframeHolder:{type:"object",required:!0}}),Bt=c.mojeId,Gt=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.mojeId({clientId:n,redirectUri:r})}}},Ft=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,Y(Gt)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Vt=st(Bt,Ft),qt=c.edoAppEid,Ht=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.edoAppEid({clientId:n,redirectUri:r})}}},Kt=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,Y(Ht)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Qt=st(qt,Kt),zt=c.finnishTrustNetwork,Zt=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.finnishTrustNetwork({clientId:n,redirectUri:r,language:i})}}},Jt=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(Zt)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Wt=st(zt,Jt),Yt=c.atHandy,$t=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.atHandy({clientId:n,redirectUri:r})}}},Xt=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,Y($t)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),te=st(Yt,Xt),ee=c.itsme,ne=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.itsme({clientId:n,redirectUri:r,language:i})}}},re=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(ne)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ie=st(ee,re),oe=c.itsmeBasic,ae=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.itsmeBasic({clientId:n,redirectUri:r,language:i})}}},se=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(ae)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ce=st(oe,se),ue=c.itsmeStandard,de=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.itsmeStandard({clientId:n,redirectUri:r,language:i})}}},le=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(de)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),pe=st(ue,le),fe=c.seBankId,he=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.seBankId({clientId:n,redirectUri:r,language:i})}}},ge=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(he)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ve=st(fe,ge),ye=c.idin,me=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.idin({clientId:n,redirectUri:r,language:i})}}},Ie=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(me)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),be=st(ye,Ie),Te=c.idinCustomerId,Se=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.idinCustomerId({clientId:n,redirectUri:r,language:i})}}},Ee=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(Se)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ce=st(Te,Ee),we=c.verifai,_e=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.verifai({clientId:n,redirectUri:r,language:i})}}},Ae=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(_e)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Oe=st(we,Ae),xe=c.yoonik,Ne=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.yoonik({clientId:n,redirectUri:r,language:i})}}},De=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(Ne)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Re=st(xe,De),ke=c.plMojeId,Ue=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.plMojeId({clientId:n,redirectUri:r})}}},Me=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,Y(Ue)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),je=st(ke,Me),Le=c.mitId,Pe=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.mitId({clientId:n,redirectUri:r,language:i})}}},Be=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(Pe)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ge=st(Le,Be),Fe=c.norwegianBankId,Ve=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.norwegianBankId({clientId:n,redirectUri:r,language:i})}}},qe=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(Ve)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),He=st(Fe,qe),Ke=c.ftn,Qe=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.ftn({clientId:n,redirectUri:r,language:i})}}},ze=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(Qe)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ze=st(Ke,ze),Je=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.message,n=void 0===e?"":e,r=t.userMessage,i=void 0===r?"":r,o=t.details,a=void 0===o?{}:o;this.message=n,this.userMessage=i,this.details=a,this.stack=(new Error).stack};(Je.prototype=new Error).name="MethodException";var We=Je,Ye={iframeHolder:{type:"object"},docId:{type:"string",required:!0}},$e=function(t){var e=t.monitoringService,n=t.moduleName;return Object.freeze({log:function(t){e.dispatch({message:"".concat(n,": ").concat(t)})},logError:function(t,r){var i=JSON.stringify(it(r));e.dispatch({message:"".concat(n,": ").concat(t,", reason: ").concat(i)})}})},Xe=function(t){var e=t.moduleName,n=t.createModuleCreator,r=function(t){var e=t.iframe,n=new URL(e.src);return{post:function(t){e.contentWindow.postMessage(t,n.origin)}}},i=function(t){return t.data&&"EIDEASY_ID_CARD_INTEGRATION"===t.data.sender},o=function(t){var n=t.countryCode,r=t.clientId,i=t.apiEndpoints,o=d(a.SIGNATURE,e,n);return i.inCurrentMode.idCardIframe({clientId:r,actionType:o.actionType})},s=function(t,e){if(t instanceof Error)throw t;var n;throw"no_certificates"===t.result&&(n=e.t("no_certificates")),new We({userMessage:n,message:t.message,details:t})},c=function(t){var e=t.iframeHolder,n=t.iframeUrl,r=t.i18n,o=t.monitor,a=document.createElement("iframe");a.setAttribute("src",n),a.setAttribute("referrerpolicy","origin"),a.style.width="0",a.style.height="0",a.style.position="absolute",a.style.border="0",e.innerHTML="";var s={resolve:null,reject:null};function c(t){if(!i(t))return!1;var e=t.data,n=e.operation,r=e.error,o=e.status;r||"ready"!==n&&"welcome"!==n||"OK"!==o?s.reject(t.data):s.resolve(a),window.removeEventListener("message",c,!1)}o.log("Trying to create iframe with src: ".concat(n));var u=new Promise((function(t,e){s.resolve=t,s.reject=function(t){e(t),o.logError("Iframe creation failed",t)},window.addEventListener("message",c,!1),window.setTimeout((function(){return e({message:r.t("createIframeTimeout")})}),3e4)}));return e.appendChild(a),u},u=function(t){var e=t.messenger,n=t.monitor,r={resolve:null,reject:null};function o(t){if(!i(t))return!1;var e=t.data.certificate||t.data.cert;if(e)r.resolve({data:{certificate:e}}),n.log("Got certificate: ".concat(e));else{var a={};!t.data||"user_cancel"!==t.data.result&&"user_cancel"!==t.data.message?a=t.data:a.isCancel=!0,r.reject(a)}window.removeEventListener("message",o,!1)}var a=new Promise((function(t,e){r.resolve=t,r.reject=function(t){e(t),n.logError("Failed to get the certificate",t)},window.addEventListener("message",o,!1)}));return e.post({operation:"getCertificate"}),a},l=function(t){var e=t.certificate,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=(t.monitor,o.inCurrentMode.startSigning());return a.post({url:s,withCredentials:!1,data:{client_id:n,doc_id:r,sign_type:"id-card",certificate:e},cancelToken:i})},p=function(t){var e=t.messenger,n=t.hexDigest,r=t.monitor,o={resolve:null,reject:null};function a(t){if(!i(t))return!1;var e=t.data.signature_value||t.data.signature;if(e)o.resolve({signature:e});else{var n={};!t.data||"user_cancel"!==t.data.result&&"user_cancel"!==t.data.message?n=t.data:n.isCancel=!0,o.reject(n)}window.removeEventListener("message",a,!1)}r.log("Trying to sign the hexDigest: ".concat(n));var s=new Promise((function(t,e){o.resolve=t,o.reject=function(t){e(t),r.logError("Failed to sign the hexdigest",t)},window.addEventListener("message",a,!1)}));return e.post({operation:"getSignature",hexDigest:n}),s},f=function(t){var e=t.signature,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=o.inCurrentMode.completeSignatureIdCard();return a.post({url:s,withCredentials:!1,data:{client_id:n,doc_id:r,signature_value:e},cancelToken:i})},h=function(t){var e=t.certificate,n=t.country,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=i.inCurrentMode.cscApiAuthorizeCredential();return o.post({url:a,withCredentials:!1,data:{sign_type:"id-card",certificate:e,country:n},cancelToken:r})},g=function(){var t=q((function(t){var n=t.countryCode,i=t.clientId,a=t.apiEndpoints,d=t.iframeHolder,g=t.i18n,v=t.docId,y=t.cancelToken,m=t.apiClient,I=t.monitoringService,b=t.action,T=t.redirect;return K().mark((function t(){var S,E,C,w,_,A,O,x;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return S=$e({monitoringService:I,moduleName:e}),t.next=3,Y(o,{shouldFormatResult:!1})({countryCode:n,clientId:i,apiEndpoints:a});case 3:return E=t.sent,t.next=6,Y(c,{shouldFormatResult:!1})({iframeUrl:E,iframeHolder:d,i18n:g,monitor:S}).catch((function(t){return s(t,g)}));case 6:return C=t.sent,t.next=9,Y(r,{shouldFormatResult:!1})({iframe:C});case 9:return w=t.sent,t.next=12,Y(u)({messenger:w,monitor:S}).catch((function(t){return s(t,g)}));case 12:if(_=t.sent,"cscApiAuthorizeCredential"!==b){t.next=18;break}return t.next=16,Y(h)({certificate:_.data.certificate,actionType:"id-card",country:n,cancelToken:y,apiEndpoints:a,apiClient:m});case 16:return A=t.sent,t.abrupt("return",Y(T,{shouldFormatResult:!1})(A));case 18:return t.next=20,Y(l)({certificate:_.data.certificate,clientId:i,docId:v,cancelToken:y,apiEndpoints:a,apiClient:m,monitor:S});case 20:return O=t.sent,t.next=23,Y(p,{shouldFormatResult:!1})({messenger:w,hexDigest:O.data.hexDigest,monitor:S}).catch((function(t){return s(t,g)}));case 23:return x=t.sent,t.abrupt("return",Y(f)({signature:x.signature,clientId:i,docId:v,cancelToken:y,apiEndpoints:a,apiClient:m}));case 25:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,g,Ye)},tn=Xe({moduleName:c.idCardSignature,createModuleCreator:st}),en=function(t){var e,n=t.pollInterval,r=void 0===n?2e3:n,i=t.maxPollDuration,o=t.fn,a=t.fnArgs,s=t.onPoll,c=void 0===s?function(){}:s;i&&(e=i/r);var u=0;return{start:function(){return ht({fn:function(){return o.apply(void 0,tt(a))},shouldContinue:function(t){var n=t.result;c(t);var r=n&&n.data&&n.data.status,i=v(t.error),o=t.error&&!t.error.response&&!i;o&&(u+=1);var a,s,d=!1;return a=t.attempts,(!(s=e)||a<s)&&u<3&&(d=o||"RUNNING"===r),d},interval:r})}}},nn=c.mobileIdSignature,rn=function(t){var e=t.certificate,n=t.country,r=t.phone,i=t.idcode,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=a.inCurrentMode.cscApiAuthorizeCredential();return s.post({url:c,withCredentials:!1,data:{sign_type:"mid-signature",certificate:e,country:n,phone:r,idcode:i},cancelToken:o})},on=function(t){var e=t.phone,n=t.idcode,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.countryCode,u=t.language,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:"mobile-id",phone:e,idcode:n,country:c,lang:u},cancelToken:o})},an=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureMobileId(),withCredentials:!1,data:{token:e.token,doc_id:a,timeout:2,lang:i,client_id:s},cancelToken:o})},sn=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return en({pollInterval:2e3,maxPollDuration:12e4,fn:an,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},cn=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,c=t.language,u=t.idcode,l=t.phone,p=t.countryCode,f=t.started,h=t.action,g=t.redirect;return K().mark((function t(){var v,y,m;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("cscApiAuthorizeCredential"!==h){t.next=5;break}return t.next=3,Y(rn)({country:p,idcode:u,phone:l,cancelToken:r,apiEndpoints:i,apiClient:o});case 3:return v=t.sent,t.abrupt("return",Y(g,{shouldFormatResult:!1})(v));case 5:return y=d(a.SIGNATURE,nn,p),s.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=9,Y(on)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:c,idcode:u,phone:l,countryCode:p});case 9:return m=t.sent,f(m),t.abrupt("return",Y(sn)({data:m.data,apiClient:o,apiEndpoints:i,language:c,cancelToken:r,docId:n,clientId:e}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),un=st(nn,cn,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),dn=c.smartIdSignature,ln=function(t){var e=t.contractId,n=t.idcode,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.countryCode,u=t.language,d=t.waitForChallengeCode,l=a.inCurrentMode.startSigning();return s.post({url:l,withCredentials:!1,data:{doc_id:i,contract_id:e,client_id:r,sign_type:"smart-id",idcode:n,country:c,lang:u,wait_for_challenge_code:d},cancelToken:o})},pn=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureSmartId(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s,timeout:2},cancelToken:o})},fn=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId,c=t.onTryComplete;return en({pollInterval:2e3,maxPollDuration:12e4,onPoll:function(t){c({data:t&&t.result&&t.result.data||{}})},fn:pn,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},hn=function(t){var e=t.country,n=t.cancelToken,r=t.apiEndpoints,i=t.apiClient,o=t.idcode,a=r.inCurrentMode.cscApiAuthorizeCredential();return i.post({url:a,withCredentials:!1,data:{sign_type:"smart-id-signature",country:e,idcode:o},cancelToken:n})},gn=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,u=t.language,l=t.idcode,p=t.countryCode,f=t.started,h=t.action,g=t.redirect,v=t.onTryComplete,y=t.waitForChallengeCode,m=void 0===y||y;return K().mark((function t(){var y,I,b;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(y=d(a.SIGNATURE,dn,p),"cscApiAuthorizeCredential"!==h){t.next=6;break}return t.next=4,Y(hn)({country:p,idcode:l,cancelToken:i,apiEndpoints:o,apiClient:s});case 4:return I=t.sent,t.abrupt("return",Y(g,{shouldFormatResult:!1})(I));case 6:return c.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=9,Y(ln)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,idcode:l,countryCode:p,contractId:r,waitForChallengeCode:m});case 9:return b=t.sent,f(b),t.abrupt("return",Y(fn)({data:b.data,apiClient:s,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e,onTryComplete:v}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),vn=st(dn,gn,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),yn=c.evroTrustSignature,mn=function(t){var e=t.contractId,n=t.idcode,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.countryCode,u=t.language,d=t.email,l=t.phone,p=t.actionType,f=a.inCurrentMode.startSigning();return s.post({url:f,withCredentials:!1,data:{doc_id:i,contract_id:e,client_id:r,sign_type:p,idcode:n,email:d,phone:l,country:c,lang:u},cancelToken:o})},In=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureEvrotrust(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},bn=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return en({pollInterval:2e3,fn:In,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Tn=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,u=t.language,l=t.idcode,p=t.phone,f=t.email,h=t.countryCode,g=t.started;return K().mark((function t(){var v,y;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=d(a.SIGNATURE,yn,h),c.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,Y(mn)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,idcode:l,phone:p,email:f,countryCode:h,contractId:r,actionType:v.actionType});case 4:return y=t.sent,g(y),t.abrupt("return",Y(bn)({data:y.data,apiClient:s,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Sn=st(yn,Tn,{countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),En=c.otpSignature,Cn=function(){var t=q((function(t){var e=t.language,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.actionType;return K().mark((function t(){var c;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=o.inCurrentMode.startSigning(),t.abrupt("return",a.post({url:c,withCredentials:!1,data:{doc_id:r,client_id:n,sign_type:s,lang:e},cancelToken:i}));case 2:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),wn=function(t){var e=t.startSigningResult,n=t.confirmationCodeRequest,r=t.setOnCancelByUser;return new Promise((function(t,i){r((function(){var t=new Error("USER_REFUSED");t.isCancel=!0,i(t)})),n({data:e.data},t,i)}))},_n=function(t){var e=t.apiClient,n=t.apiEndpoints,r=t.language,i=t.cancelToken,o=t.docId,a=t.clientId,s=t.emailToken,c=t.smsToken,u=t.handwrittenSignatureData,d=t.handwrittenSignatureDataUrl;return e.post({url:n.inCurrentMode.completeOtp(),withCredentials:!1,data:{doc_id:o,timeout:2,lang:r,client_id:a,email_token:s,sms_token:c,handwritten_signature_data:u,handwritten_signature_data_url:d},cancelToken:i})},An=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,c=t.language,u=t.countryCode,l=t.emailToken,p=t.smsToken,f=t.handwrittenSignatureData,h=t.handwrittenSignatureDataUrl,g=t.started,v=t.confirmationCodeRequest,y=t.setOnCancelByUser;return K().mark((function t(){var m,I,b;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m=d(a.SIGNATURE,En,u),console.log(m),s.dispatch({message:"".concat(m.actionType,": signing started")}),p||l){t.next=13;break}return t.next=6,Y(Cn)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:c,actionType:m.actionType});case 6:return I=t.sent,g(I),t.next=10,Y(wn,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:v,setOnCancelByUser:y});case 10:b=t.sent,p=b.smsToken,l=b.emailToken;case 13:return t.abrupt("return",Y(_n)({apiClient:o,apiEndpoints:i,language:c,cancelToken:r,docId:n,clientId:e,emailToken:l,smsToken:p,handwrittenSignatureData:f,handwrittenSignatureDataUrl:h}));case 14:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),On=st(En,An,{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),xn={docId:{type:"string",required:!0},confirmedBySigner:{validator:function(t){return[null,!0,!1].includes(t)}}},Nn=function(t){var e=t.certificate,n=t.country,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.actionType,s=i.inCurrentMode.cscApiAuthorizeCredentialRedirect();return o.post({url:s,withCredentials:!1,data:{sign_type:a,certificate:e,country:n},cancelToken:r})},Dn=function(t){var e=t.moduleName,n=t.createModuleCreator,r=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.confirmedBySigner,d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,confirmed_by_signer:u},cancelToken:i})},i=function(){var t=q((function(t){var n=t.clientId,i=t.docId,o=t.contractId,s=t.cancelToken,c=t.apiEndpoints,u=t.apiClient,l=t.monitoringService,p=t.language,f=t.countryCode,h=t.redirect,g=t.confirmedBySigner,v=t.action;return K().mark((function t(){var y,m,I;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(y=d(a.SIGNATURE,e,f),"cscApiAuthorizeCredential"!==v){t.next=6;break}return t.next=4,Y(Nn)({country:f,cancelToken:s,apiEndpoints:c,apiClient:u,actionType:y.actionType});case 4:return m=t.sent,t.abrupt("return",Y(h,{shouldFormatResult:!1})(m));case 6:return l.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=9,Y(r)({contractId:o,clientId:n,docId:i,cancelToken:s,apiEndpoints:c,apiClient:u,language:p,actionType:y.actionType,confirmedBySigner:g});case 9:return I=t.sent,t.abrupt("return",Y(h,{shouldFormatResult:!1})(I));case 11:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,i,xn)},Rn=Dn({moduleName:c.eParakstsMobileSignature,createModuleCreator:st}),kn=Dn({moduleName:c.ftnAdvancedFullSignature,createModuleCreator:st}),Un=Dn({moduleName:c.ftnSignature,createModuleCreator:st}),Mn=Dn({moduleName:c.atHandySignature,createModuleCreator:st}),jn=c.zealIdSignature,Ln=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.docId;return{data:{redirect_uri:e.inCurrentMode.startZealIdSignature({clientId:n,docId:r})}}},Pn=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.docId,t.next=3,Y(Ln)({apiEndpoints:r,clientId:i,docId:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Bn=st(jn,Pn),Gn=Dn({moduleName:c.mojeIdSignature,createModuleCreator:st}),Fn=Dn({moduleName:c.googleSignature,createModuleCreator:st}),Vn=Dn({moduleName:c.seBankIdSignature,createModuleCreator:st}),qn=c.dTrustSignMeSignature,Hn=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.username,d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,username:u},cancelToken:i})},Kn=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,u=t.language,l=t.countryCode,p=t.username,f=t.redirect;return K().mark((function t(){var h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=d(a.SIGNATURE,qn,l),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Y(Hn)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,username:p,actionType:h.actionType});case 4:return g=t.sent,t.abrupt("return",Y(f,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Qn=st(qn,Kn,{username:{type:"string",required:!0}});function zn(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function Zn(t,e){return t&e}function Jn(t,e){return t|e}function Wn(t,e){return t^e}function Yn(t,e){return t&~e}function $n(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function Xn(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var tr,er="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function nr(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=er.charAt(n>>6)+er.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=er.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=er.charAt(n>>2)+er.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function rr(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var o=er.indexOf(t.charAt(e));o<0||(0==r?(n+=zn(o>>2),i=3&o,r=1):1==r?(n+=zn(i<<2|o>>4),i=15&o,r=2):2==r?(n+=zn(i),n+=zn(o>>2),i=3&o,r=3):(n+=zn(i<<2|o>>4),n+=zn(15&o),r=0))}return 1==r&&(n+=zn(i<<2)),n}var ir,or={decode:function(t){var e;if(void 0===ir){var n="= \f\n\r\t \u2028\u2029";for(ir=Object.create(null),e=0;e<64;++e)ir["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(ir["-"]=62,ir._=63,e=0;e<n.length;++e)ir[n.charAt(e)]=-1}var r=[],i=0,o=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(-1!=(a=ir[a])){if(void 0===a)throw new Error("Illegal character at offset "+e);i|=a,++o>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=255&i,i=0,o=0):i<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=or.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return or.decode(t)}},ar=1e13,sr=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,r,i=this.buf,o=i.length;for(n=0;n<o;++n)(r=i[n]*t+e)<ar?e=0:r-=(e=0|r/ar)*ar,i[n]=r;e>0&&(i[n]=e)},t.prototype.sub=function(t){var e,n,r=this.buf,i=r.length;for(e=0;e<i;++e)(n=r[e]-t)<0?(n+=ar,t=1):t=0,r[e]=n;for(;0===r[r.length-1];)r.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),r=e.length-2;r>=0;--r)n+=(ar+e[r]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*ar+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),cr=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,ur=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function dr(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var lr,pr=function(){function t(e,n){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=n)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+this.enc.length);return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,n){for(var r="",i=t;i<e;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},t.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var n="",r=t;r<e;++r)n+=String.fromCharCode(this.get(r));return n},t.prototype.parseStringUTF=function(t,e){for(var n="",r=t;r<e;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},t.prototype.parseStringBMP=function(t,e){for(var n,r,i="",o=t;o<e;)n=this.get(o++),r=this.get(o++),i+=String.fromCharCode(n<<8|r);return i},t.prototype.parseTime=function(t,e,n){var r=this.parseStringISO(t,e),i=(n?cr:ur).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},t.prototype.parseInteger=function(t,e){for(var n,r=this.get(t),i=r>127,o=i?255:0,a="";r==o&&++t<e;)r=this.get(t);if(0==(n=e-t))return i?-1:0;if(n>4){for(a=r,n<<=3;0==(128&(+a^o));)a=+a<<1,--n;a="("+n+" bit)\n"}i&&(r-=256);for(var s=new sr(r),c=t+1;c<e;++c)s.mulAdd(256,this.get(c));return a+s.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",o="",a=t+1;a<e;++a){for(var s=this.get(a),c=a==e-1?r:0,u=7;u>=c;--u)o+=s>>u&1?"1":"0";if(o.length>n)return i+dr(o,n)}return i+o},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return dr(this.parseStringISO(t,e),n);var r=e-t,i="("+r+" byte)\n";r>(n/=2)&&(e=t+n);for(var o=t;o<e;++o)i+=this.hexByte(this.get(o));return r>n&&(i+="…"),i},t.prototype.parseOID=function(t,e,n){for(var r="",i=new sr,o=0,a=t;a<e;++a){var s=this.get(a);if(i.mulAdd(128,127&s),o+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof sr)i.sub(80),r="2."+i.toString();else{var c=i<80?i<40?0:1:2;r=c+"."+(i-40*c)}else r+="."+i.toString();if(r.length>n)return dr(r,n);i=new sr,o=0}}return o>0&&(r+=".incomplete"),r},t}(),fr=function(){function t(t,e,n,r,i){if(!(r instanceof hr))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=r,this.sub=i}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return dr(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return dr(this.stream.parseStringISO(e,e+n),t);case 30:return dr(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var n=0,r=this.sub.length;n<r;++n)e+=this.sub[n].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===n)return null;e=0;for(var r=0;r<n;++r)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substr(e,n)},t.decode=function(e){var n;n=e instanceof pr?e:new pr(e,0);var r=new pr(n),i=new hr(n),o=t.decodeLength(n),a=n.pos,s=a-r.pos,c=null,u=function(){var e=[];if(null!==o){for(var r=a+o;n.pos<r;)e[e.length]=t.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}o=a-n.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(i.tagConstructed)c=u();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=u();for(var d=0;d<c.length;++d)if(c[d].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){c=null}if(null===c){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);n.pos=a+Math.abs(o)}return new t(r,s,o,i,c)},t}(),hr=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){var n=new sr;do{e=t.get(),n.mulAdd(128,127&e)}while(128&e);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),gr=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],vr=(1<<26)/gr[gr.length-1],yr=function(){function t(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%e;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=zn(n));a>=0;)s<e?(n=(this[a]&(1<<s)-1)<<e-s,n|=this[--a]>>(s+=this.DB-e)):(n=this[a]>>(s-=e)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=zn(n));return i?o:"0"},t.prototype.negate=function(){var e=Sr();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Nr(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=Sr();return this.abs().divRemTo(e,null,n),this.s<0&&n.compareTo(t.ZERO)>0&&e.subTo(n,n),n},t.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new Ir(e):new br(e),this.exp(t,n)},t.prototype.clone=function(){var t=Sr();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,r=this.DB-t*this.DB%8,i=0;if(t-- >0)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(e[i++]=n|this.s<<this.DB-r);t>=0;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=Sr();return this.bitwiseTo(t,Zn,e),e},t.prototype.or=function(t){var e=Sr();return this.bitwiseTo(t,Jn,e),e},t.prototype.xor=function(t){var e=Sr();return this.bitwiseTo(t,Wn,e),e},t.prototype.andNot=function(t){var e=Sr();return this.bitwiseTo(t,Yn,e),e},t.prototype.not=function(){for(var t=Sr(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=Sr();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=Sr();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+$n(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=Xn(this[n]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,Jn)},t.prototype.clearBit=function(t){return this.changeBit(t,Yn)},t.prototype.flipBit=function(t){return this.changeBit(t,Wn)},t.prototype.add=function(t){var e=Sr();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=Sr();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=Sr();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=Sr();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=Sr();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=Sr(),n=Sr();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),o=xr(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new Ir(e):e.isEven()?new Tr(e):new br(e);var a=[],s=3,c=n-1,u=(1<<n)-1;if(a[1]=r.convert(this),n>1){var d=Sr();for(r.sqrTo(a[1],d);s<=u;)a[s]=Sr(),r.mulTo(d,a[s-2],a[s]),s+=2}var l,p,f=t.t-1,h=!0,g=Sr();for(i=Nr(t[f])-1;f>=0;){for(i>=c?l=t[f]>>i-c&u:(l=(t[f]&(1<<i+1)-1)<<c-i,f>0&&(l|=t[f-1]>>this.DB+i-c)),s=n;0==(1&l);)l>>=1,--s;if((i-=s)<0&&(i+=this.DB,--f),h)a[l].copyTo(o),h=!1;else{for(;s>1;)r.sqrTo(o,g),r.sqrTo(g,o),s-=2;s>0?r.sqrTo(o,g):(p=o,o=g,g=p),r.mulTo(g,a[l],o)}for(;f>=0&&0==(t[f]&1<<i);)r.sqrTo(o,g),p=o,o=g,g=p,--i<0&&(i=this.DB-1,--f)}return r.revert(o)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||0==e.signum())return t.ZERO;for(var r=e.clone(),i=this.clone(),o=xr(1),a=xr(0),s=xr(0),c=xr(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(e,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&c.isEven()||(s.addTo(this,s),c.subTo(e,c)),s.rShiftTo(1,s)):c.isEven()||c.subTo(e,c),c.rShiftTo(1,c);r.compareTo(i)>=0?(r.subTo(i,r),n&&o.subTo(s,o),a.subTo(c,a)):(i.subTo(r,i),n&&s.subTo(o,s),c.subTo(a,c))}return 0!=i.compareTo(t.ONE)?t.ZERO:c.compareTo(e)>=0?c.subtract(e):c.signum()<0?(c.addTo(e,c),c.signum()<0?c.add(e):c):c},t.prototype.pow=function(t){return this.exp(t,new mr)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var i=e.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),n.rShiftTo(o,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=gr[gr.length-1]){for(e=0;e<gr.length;++e)if(n[0]==gr[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<gr.length;){for(var r=gr[e],i=e+1;i<gr.length&&r<vr;)r*=gr[i++];for(r=n.modInt(r);e<i;)if(r%gr[e++]==0)return!1}return n.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(e,n);r=2}this.t=0,this.s=0;for(var i=e.length,o=!1,a=0;--i>=0;){var s=8==r?255&+e[i]:Or(e,i);s<0?"-"==e.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&0!=(128&+e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,r=this.DB-n,i=(1<<r)-1,o=Math.floor(t/this.DB),a=this.s<<n&this.DM,s=this.t-1;s>=0;--s)e[s+o+1]=this[s]>>r|a,a=(this[s]&i)<<n;for(s=o-1;s>=0;--s)e[s]=0;e[o]=a,e.t=this.t+o+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,o=(1<<r)-1;e[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)e[a-n-1]|=(this[a]&o)<<i,e[a-n]=this[a]>>r;r>0&&(e[this.t-n-1]|=(this.s&o)<<i),e.t=this.t-n,e.clamp()}},t.prototype.subTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},t.prototype.multiplyTo=function(e,n){var r=this.abs(),i=e.abs(),o=r.t;for(n.t=o+i.t;--o>=0;)n[o]=0;for(o=0;o<i.t;++o)n[o+r.t]=r.am(0,i[o],n,o,0,r.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,n,r){var i=e.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=Sr());var a=Sr(),s=this.s,c=e.s,u=this.DB-Nr(i[i.t-1]);u>0?(i.lShiftTo(u,a),o.lShiftTo(u,r)):(i.copyTo(a),o.copyTo(r));var d=a.t,l=a[d-1];if(0!=l){var p=l*(1<<this.F1)+(d>1?a[d-2]>>this.F2:0),f=this.FV/p,h=(1<<this.F1)/p,g=1<<this.F2,v=r.t,y=v-d,m=null==n?Sr():n;for(a.dlShiftTo(y,m),r.compareTo(m)>=0&&(r[r.t++]=1,r.subTo(m,r)),t.ONE.dlShiftTo(d,m),m.subTo(a,a);a.t<d;)a[a.t++]=0;for(;--y>=0;){var I=r[--v]==l?this.DM:Math.floor(r[v]*f+(r[v-1]+g)*h);if((r[v]+=a.am(0,I,r,y,0,d))<I)for(a.dlShiftTo(y,m),r.subTo(m,r);r[v]<--I;)r.subTo(m,r)}null!=n&&(r.drShiftTo(d,n),s!=c&&t.ZERO.subTo(n,n)),r.t=d,r.clamp(),u>0&&r.rShiftTo(u,r),s<0&&t.ZERO.subTo(r,r)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,n){if(e>4294967295||e<1)return t.ONE;var r=Sr(),i=Sr(),o=n.convert(this),a=Nr(e)-1;for(o.copyTo(r);--a>=0;)if(n.sqrTo(r,i),(e&1<<a)>0)n.mulTo(i,o,r);else{var s=r;r=i,i=s}return n.revert(r)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),r=xr(n),i=Sr(),o=Sr(),a="";for(this.divRemTo(r,i,o);i.signum()>0;)a=(n+o.intValue()).toString(t).substr(1)+a,i.divRemTo(r,i,o);return o.intValue().toString(t)+a},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),o=!1,a=0,s=0,c=0;c<e.length;++c){var u=Or(e,c);u<0?"-"==e.charAt(c)&&0==this.signum()&&(o=!0):(s=n*s+u,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(s,0)),o&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,r){if("number"==typeof n)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),Jn,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var i=[],o=7&e;i.length=1+(e>>3),n.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(t,e,n){var r,i,o=Math.min(t.t,this.t);for(r=0;r<o;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(i=t.s&this.DM,r=o;r<this.t;++r)n[r]=e(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<t.t;++r)n[r]=e(i,t[r]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},t.prototype.changeBit=function(e,n){var r=t.ONE.shiftLeft(e);return this.bitwiseTo(r,n,r),r},t.prototype.addTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,n){var r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,t[r],n,r,0,this.t);for(i=Math.min(t.t,e);r<i;++r)this.am(0,t[r],n,r,0,e-r);n.clamp()},t.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},t.prototype.millerRabin=function(e){var n=this.subtract(t.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(e=e+1>>1)>gr.length&&(e=gr.length);for(var o=Sr(),a=0;a<e;++a){o.fromInt(gr[Math.floor(Math.random()*gr.length)]);var s=o.modPow(i,this);if(0!=s.compareTo(t.ONE)&&0!=s.compareTo(n)){for(var c=1;c++<r&&0!=s.compareTo(n);)if(0==(s=s.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=Sr();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var o=n.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)e(n);else{o<a&&(a=o),a>0&&(n.rShiftTo(a,n),r.rShiftTo(a,r));var s=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(s,0):(a>0&&r.lShiftTo(a,r),setTimeout((function(){e(r)}),0))};setTimeout(s,10)}},t.prototype.fromNumberAsync=function(e,n,r,i){if("number"==typeof n)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),Jn,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>e&&o.subTo(t.ONE.shiftLeft(e-1),o),o.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(a,0)};setTimeout(a,0)}else{var s=[],c=7&e;s.length=1+(e>>3),n.nextBytes(s),c>0?s[0]&=(1<<c)-1:s[0]=0,this.fromString(s,256)}},t}(),mr=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),Ir=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),br=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=Sr();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(yr.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=Sr();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),Tr=function(){function t(t){this.m=t,this.r2=Sr(),this.q3=Sr(),yr.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=Sr();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function Sr(){return new yr(null)}function Er(t,e){return new yr(t,e)}var Cr="undefined"!=typeof navigator;Cr&&"Microsoft Internet Explorer"==navigator.appName?(yr.prototype.am=function(t,e,n,r,i,o){for(var a=32767&e,s=e>>15;--o>=0;){var c=32767&this[t],u=this[t++]>>15,d=s*c+u*a;i=((c=a*c+((32767&d)<<15)+n[r]+(1073741823&i))>>>30)+(d>>>15)+s*u+(i>>>30),n[r++]=1073741823&c}return i},lr=30):Cr&&"Netscape"!=navigator.appName?(yr.prototype.am=function(t,e,n,r,i,o){for(;--o>=0;){var a=e*this[t++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},lr=26):(yr.prototype.am=function(t,e,n,r,i,o){for(var a=16383&e,s=e>>14;--o>=0;){var c=16383&this[t],u=this[t++]>>14,d=s*c+u*a;i=((c=a*c+((16383&d)<<14)+n[r]+i)>>28)+(d>>14)+s*u,n[r++]=268435455&c}return i},lr=28),yr.prototype.DB=lr,yr.prototype.DM=(1<<lr)-1,yr.prototype.DV=1<<lr,yr.prototype.FV=Math.pow(2,52),yr.prototype.F1=52-lr,yr.prototype.F2=2*lr-52;var wr,_r,Ar=[];for(wr="0".charCodeAt(0),_r=0;_r<=9;++_r)Ar[wr++]=_r;for(wr="a".charCodeAt(0),_r=10;_r<36;++_r)Ar[wr++]=_r;for(wr="A".charCodeAt(0),_r=10;_r<36;++_r)Ar[wr++]=_r;function Or(t,e){var n=Ar[t.charCodeAt(e)];return null==n?-1:n}function xr(t){var e=Sr();return e.fromInt(t),e}function Nr(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}yr.ZERO=xr(0),yr.ONE=xr(1);var Dr,Rr,kr=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,n,r;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[n],this.S[n]=r;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}(),Ur=null;if(null==Ur){Ur=[],Rr=0;var Mr=void 0;if(window.crypto&&window.crypto.getRandomValues){var jr=new Uint32Array(256);for(window.crypto.getRandomValues(jr),Mr=0;Mr<jr.length;++Mr)Ur[Rr++]=255&jr[Mr]}var Lr=0,Pr=function(t){if((Lr=Lr||0)>=256||Rr>=256)window.removeEventListener?window.removeEventListener("mousemove",Pr,!1):window.detachEvent&&window.detachEvent("onmousemove",Pr);else try{var e=t.x+t.y;Ur[Rr++]=255&e,Lr+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",Pr,!1):window.attachEvent&&window.attachEvent("onmousemove",Pr)}function Br(){if(null==Dr){for(Dr=new kr;Rr<256;){var t=Math.floor(65536*Math.random());Ur[Rr++]=255&t}for(Dr.init(Ur),Rr=0;Rr<Ur.length;++Rr)Ur[Rr]=0;Rr=0}return Dr.next()}var Gr=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Br()},t}(),Fr=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Er(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=t.length-1;r>=0&&e>0;){var i=t.charCodeAt(r--);i<128?n[--e]=i:i>127&&i<2048?(n[--e]=63&i|128,n[--e]=i>>6|192):(n[--e]=63&i|128,n[--e]=i>>6&63|128,n[--e]=i>>12|224)}n[--e]=0;for(var o=new Gr,a=[];e>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);n[--e]=a[0]}return n[--e]=2,n[--e]=0,new yr(n)}(t,e);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),o=i.length,a=0;a<2*e-o;a++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Er(t,16),this.e=parseInt(e,16),this.d=Er(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,o,a,s){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Er(t,16),this.e=parseInt(e,16),this.d=Er(n,16),this.p=Er(r,16),this.q=Er(i,16),this.dmp1=Er(o,16),this.dmq1=Er(a,16),this.coeff=Er(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new Gr,r=t>>1;this.e=parseInt(e,16);for(var i=new yr(e,16);;){for(;this.p=new yr(t-r,1,n),0!=this.p.subtract(yr.ONE).gcd(i).compareTo(yr.ONE)||!this.p.isProbablePrime(10););for(;this.q=new yr(r,1,n),0!=this.q.subtract(yr.ONE).gcd(i).compareTo(yr.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(yr.ONE),s=this.q.subtract(yr.ONE),c=a.multiply(s);if(0==c.gcd(i).compareTo(yr.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=Er(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){for(var n=t.toByteArray(),r=0;r<n.length&&0==n[r];)++r;if(n.length-r!=e-1||2!=n[r])return null;for(++r;0!=n[r];)if(++r>=n.length)return null;for(var i="";++r<n.length;){var o=255&n[r];o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((31&o)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&o)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var r=new Gr,i=t>>1;this.e=parseInt(e,16);var o=new yr(e,16),a=this,s=function(){var e=function(){if(a.p.compareTo(a.q)<=0){var t=a.p;a.p=a.q,a.q=t}var e=a.p.subtract(yr.ONE),r=a.q.subtract(yr.ONE),i=e.multiply(r);0==i.gcd(o).compareTo(yr.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(i),a.dmp1=a.d.mod(e),a.dmq1=a.d.mod(r),a.coeff=a.q.modInverse(a.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},c=function(){a.q=Sr(),a.q.fromNumberAsync(i,1,r,(function(){a.q.subtract(yr.ONE).gcda(o,(function(t){0==t.compareTo(yr.ONE)&&a.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(c,0)}))}))},u=function(){a.p=Sr(),a.p.fromNumberAsync(t-i,1,r,(function(){a.p.subtract(yr.ONE).gcda(o,(function(t){0==t.compareTo(yr.ONE)&&a.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)}))}))};setTimeout(u,0)};setTimeout(s,0)},t.prototype.sign=function(t,e,n){var r=function(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var n=e-t.length-6,r="",i=0;i<n;i+=2)r+="ff";return Er("0001"+r+"00"+t,16)}((Vr[n]||"")+e(t).toString(),this.n.bitLength()/4);if(null==r)return null;var i=this.doPrivate(r);if(null==i)return null;var o=i.toString(16);return 0==(1&o.length)?o:"0"+o},t.prototype.verify=function(t,e,n){var r=Er(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in Vr)if(Vr.hasOwnProperty(e)){var n=Vr[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}(i.toString(16).replace(/^1f+00/,""))==n(t).toString()},t}(),Vr={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},qr={};qr.lang={extend:function(t,e,n){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),n){var i;for(i in n)t.prototype[i]=n[i];var o=function(){},a=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(t,e){for(i=0;i<a.length;i+=1){var n=a[i],r=e[n];"function"==typeof r&&r!=Object.prototype[n]&&(t[n]=r)}})}catch(t){}o(t.prototype,n)}}};var Hr={};void 0!==Hr.asn1&&Hr.asn1||(Hr.asn1={}),Hr.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";e=new yr(r,16).xor(t).add(yr.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=Hr.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,o=e.DEROctetString,a=e.DERNull,s=e.DERObjectIdentifier,c=e.DEREnumerated,u=e.DERUTF8String,d=e.DERNumericString,l=e.DERPrintableString,p=e.DERTeletexString,f=e.DERIA5String,h=e.DERUTCTime,g=e.DERGeneralizedTime,v=e.DERSequence,y=e.DERSet,m=e.DERTaggedObject,I=e.ASN1Util.newObject,b=Object.keys(t);if(1!=b.length)throw"key of param shall be only one.";var T=b[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+T+":"))throw"undefined key: "+T;if("bool"==T)return new n(t[T]);if("int"==T)return new r(t[T]);if("bitstr"==T)return new i(t[T]);if("octstr"==T)return new o(t[T]);if("null"==T)return new a(t[T]);if("oid"==T)return new s(t[T]);if("enum"==T)return new c(t[T]);if("utf8str"==T)return new u(t[T]);if("numstr"==T)return new d(t[T]);if("prnstr"==T)return new l(t[T]);if("telstr"==T)return new p(t[T]);if("ia5str"==T)return new f(t[T]);if("utctime"==T)return new h(t[T]);if("gentime"==T)return new g(t[T]);if("seq"==T){for(var S=t[T],E=[],C=0;C<S.length;C++){var w=I(S[C]);E.push(w)}return new v({array:E})}if("set"==T){for(S=t[T],E=[],C=0;C<S.length;C++)w=I(S[C]),E.push(w);return new y({array:E})}if("tag"==T){var _=t[T];if("[object Array]"===Object.prototype.toString.call(_)&&3==_.length){var A=I(_[2]);return new m({tag:_[0],explicit:_[1],obj:A})}var O={};if(void 0!==_.explicit&&(O.explicit=_.explicit),void 0!==_.tag&&(O.tag=_.tag),void 0===_.obj)throw"obj shall be specified for 'tag'.";return O.obj=I(_.obj),new m(O)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},Hr.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),r=(e=Math.floor(n/40)+"."+n%40,""),i=2;i<t.length;i+=2){var o=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);r+=o.substr(1,7),"0"==o.substr(0,1)&&(e=e+"."+new yr(r,2).toString(10),r="")}return e},Hr.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new yr(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(r=o+r,a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);return r},Hr.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+"".length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},Hr.asn1.DERAbstractString=function(t){Hr.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},qr.lang.extend(Hr.asn1.DERAbstractString,Hr.asn1.ASN1Object),Hr.asn1.DERAbstractTime=function(t){Hr.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,n){var r=this.zeroPadding,i=this.localDateToUTC(t),o=String(i.getFullYear());"utc"==e&&(o=o.substr(2,2));var a=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var s=i.getMilliseconds();if(0!=s){var c=r(String(s),3);a=a+"."+(c=c.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,r,i,o){var a=new Date(Date.UTC(t,e-1,n,r,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},qr.lang.extend(Hr.asn1.DERAbstractTime,Hr.asn1.ASN1Object),Hr.asn1.DERAbstractStructured=function(t){Hr.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},qr.lang.extend(Hr.asn1.DERAbstractStructured,Hr.asn1.ASN1Object),Hr.asn1.DERBoolean=function(){Hr.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},qr.lang.extend(Hr.asn1.DERBoolean,Hr.asn1.ASN1Object),Hr.asn1.DERInteger=function(t){Hr.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Hr.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new yr(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},qr.lang.extend(Hr.asn1.DERInteger,Hr.asn1.ASN1Object),Hr.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Hr.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}Hr.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var r="";for(n=0;n<t.length-1;n+=8){var i=t.substr(n,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),r+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},qr.lang.extend(Hr.asn1.DERBitString,Hr.asn1.ASN1Object),Hr.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Hr.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}Hr.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},qr.lang.extend(Hr.asn1.DEROctetString,Hr.asn1.DERAbstractString),Hr.asn1.DERNull=function(){Hr.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},qr.lang.extend(Hr.asn1.DERNull,Hr.asn1.ASN1Object),Hr.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new yr(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(r=o+r,a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};Hr.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=Hr.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},qr.lang.extend(Hr.asn1.DERObjectIdentifier,Hr.asn1.ASN1Object),Hr.asn1.DEREnumerated=function(t){Hr.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Hr.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new yr(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},qr.lang.extend(Hr.asn1.DEREnumerated,Hr.asn1.ASN1Object),Hr.asn1.DERUTF8String=function(t){Hr.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},qr.lang.extend(Hr.asn1.DERUTF8String,Hr.asn1.DERAbstractString),Hr.asn1.DERNumericString=function(t){Hr.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},qr.lang.extend(Hr.asn1.DERNumericString,Hr.asn1.DERAbstractString),Hr.asn1.DERPrintableString=function(t){Hr.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},qr.lang.extend(Hr.asn1.DERPrintableString,Hr.asn1.DERAbstractString),Hr.asn1.DERTeletexString=function(t){Hr.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},qr.lang.extend(Hr.asn1.DERTeletexString,Hr.asn1.DERAbstractString),Hr.asn1.DERIA5String=function(t){Hr.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},qr.lang.extend(Hr.asn1.DERIA5String,Hr.asn1.DERAbstractString),Hr.asn1.DERUTCTime=function(t){Hr.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},qr.lang.extend(Hr.asn1.DERUTCTime,Hr.asn1.DERAbstractTime),Hr.asn1.DERGeneralizedTime=function(t){Hr.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},qr.lang.extend(Hr.asn1.DERGeneralizedTime,Hr.asn1.DERAbstractTime),Hr.asn1.DERSequence=function(t){Hr.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++)t+=this.asn1Array[e].getEncodedHex();return this.hV=t,this.hV}},qr.lang.extend(Hr.asn1.DERSequence,Hr.asn1.DERAbstractStructured),Hr.asn1.DERSet=function(t){Hr.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},qr.lang.extend(Hr.asn1.DERSet,Hr.asn1.DERAbstractStructured),Hr.asn1.DERTaggedObject=function(t){Hr.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},qr.lang.extend(Hr.asn1.DERTaggedObject,Hr.asn1.ASN1Object);var Kr,Qr=(Kr=function(t,e){return Kr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Kr(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Kr(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),zr=function(t){function e(n){var r=t.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(e.hasPrivateKeyProperty(n)||e.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return Qr(e,t),e.prototype.parseKey=function(t){try{var e=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?function(t){var e;if(void 0===tr){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(tr={},e=0;e<16;++e)tr[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)tr[n.charAt(e)]=e;for(e=0;e<r.length;++e)tr[r.charAt(e)]=-1}var i=[],o=0,a=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=tr[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);o|=s,++a>=2?(i[i.length]=o,o=0,a=0):o<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i}(t):or.unarmor(t),i=fr.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=Er(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=Er(o,16);var a=i.sub[4].getHexStringValue();this.p=Er(a,16);var s=i.sub[5].getHexStringValue();this.q=Er(s,16);var c=i.sub[6].getHexStringValue();this.dmp1=Er(c,16);var u=i.sub[7].getHexStringValue();this.dmq1=Er(u,16);var d=i.sub[8].getHexStringValue();this.coeff=Er(d,16)}else{if(2!==i.sub.length)return!1;var l=i.sub[1].sub[0];e=l.sub[0].getHexStringValue(),this.n=Er(e,16),n=l.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new Hr.asn1.DERInteger({int:0}),new Hr.asn1.DERInteger({bigint:this.n}),new Hr.asn1.DERInteger({int:this.e}),new Hr.asn1.DERInteger({bigint:this.d}),new Hr.asn1.DERInteger({bigint:this.p}),new Hr.asn1.DERInteger({bigint:this.q}),new Hr.asn1.DERInteger({bigint:this.dmp1}),new Hr.asn1.DERInteger({bigint:this.dmq1}),new Hr.asn1.DERInteger({bigint:this.coeff})]};return new Hr.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return nr(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new Hr.asn1.DERSequence({array:[new Hr.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Hr.asn1.DERNull]}),e=new Hr.asn1.DERSequence({array:[new Hr.asn1.DERInteger({bigint:this.n}),new Hr.asn1.DERInteger({int:this.e})]}),n=new Hr.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new Hr.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return nr(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var n="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return(t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n")+"-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return(t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n")+"-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(Fr),Zr=function(){function t(t){void 0===t&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new zr(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(rr(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return nr(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return nr(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,rr(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new zr,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version="3.2.1",t}(),Jr=c.chaveMovelSignature,Wr={publicKey:null},Yr=function(){var t=q((function(t){var e=t.apiClient,n=t.apiEndpoints,r=t.cancelToken;return K().mark((function t(){var i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.inCurrentMode.getChaveMovelPublicKey(),t.next=3,e.get({url:i,withCredentials:!1,cancelToken:r});case 3:if((o=t.sent).data.publicKey){t.next=6;break}return t.abrupt("return",{});case 6:return a=atob(o.data.publicKey),Wr.publicKey=a,t.abrupt("return",a);case 9:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),$r=function(){var t=q((function(t){var e=t.signingPin,n=t.phone,r=t.language,i=t.clientId,o=t.docId,a=t.cancelToken,s=t.apiEndpoints,c=t.apiClient,u=t.actionType;return K().mark((function t(){var d,l,p;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return d=s.inCurrentMode.startSigning(),t.next=3,Yr({apiClient:c,apiEndpoints:s,cancelToken:a});case 3:return l=t.sent,(p=new Zr).setPublicKey(l),t.abrupt("return",c.post({url:d,withCredentials:!1,data:{doc_id:o,client_id:i,sign_type:u,lang:r,signing_pin:p.encrypt(e),phone:p.encrypt(n)},cancelToken:a}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Xr=function(t){var e=t.startSigningResult,n=t.confirmationCodeRequest,r=t.setOnCancelByUser;return new Promise((function(t,i){r((function(){var t=new Error("USER_REFUSED");t.isCancel=!0,i(t)})),n({data:e.data},t,i)}))},ti=function(t){var e=t.token,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId,c=t.confirmationCode,u=new Zr;return u.setPublicKey(Wr.publicKey),n.post({url:r.inCurrentMode.completeSignatureChaveMovel(),withCredentials:!1,data:{token:e,doc_id:a,lang:i,client_id:s,confirmation_code:u.encrypt(c)},cancelToken:o})},ei=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,c=t.countryCode,u=t.language,l=t.started,p=t.confirmationCodeRequest,f=t.signingPin,h=t.phone,g=t.setOnCancelByUser;return K().mark((function t(){var v,y,m;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=d(a.SIGNATURE,Jr,c),s.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,Y($r)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:u,actionType:v.actionType,signingPin:f,phone:h});case 4:return y=t.sent,l(y),t.next=8,Y(Xr,{shouldFormatResult:!1})({startSigningResult:y,confirmationCodeRequest:p,setOnCancelByUser:g});case 8:return m=t.sent,t.abrupt("return",Y(ti)({token:y.data.token,apiClient:o,apiEndpoints:i,language:u,cancelToken:r,docId:n,clientId:e,confirmationCode:m}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ni=st(Jr,ei,{pin:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),ri=Dn({moduleName:c.mitIdSignature,createModuleCreator:st}),ii=c.ftnQesSignature,oi=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.phone,d=t.email,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,phone:u,email:d},cancelToken:i})},ai=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,u=t.language,l=t.countryCode,p=t.phone,f=t.email,h=t.redirect;return K().mark((function t(){var g,v;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=d(a.SIGNATURE,ii,l),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,Y(oi)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,phone:p,email:f,actionType:g.actionType});case 4:return v=t.sent,t.abrupt("return",Y(h,{shouldFormatResult:!1})(v));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),si=st(ii,ai,{phone:{type:"string",required:!0},email:{type:"string",required:!0}}),ci=c.noBankIdAdvSignature,ui=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.name,d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,name:u},cancelToken:i})},di=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,u=t.language,l=t.countryCode,p=t.name,f=t.redirect;return K().mark((function t(){var h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=d(a.SIGNATURE,ci,l),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Y(ui)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,name:p,actionType:h.actionType});case 4:return g=t.sent,t.abrupt("return",Y(f,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),li=st(ci,di,{name:{type:"string",required:!0}}),pi=Xe({moduleName:c.certEuropeUsbTokenSignature,createModuleCreator:st}),fi=Xe({moduleName:c.certSignUsbTokenSignature,createModuleCreator:st}),hi=Dn({moduleName:c.idinSignature,createModuleCreator:st}),gi=Dn({moduleName:c.verifaiSignature,createModuleCreator:st}),vi=c.spidQesSignature,yi=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.phone,d=t.email,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,phone:u,email:d},cancelToken:i})},mi=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,u=t.language,l=t.countryCode,p=t.phone,f=t.email,h=t.redirect;return K().mark((function t(){var g,v;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=d(a.SIGNATURE,vi,l),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,Y(yi)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,phone:p,email:f,actionType:g.actionType});case 4:return v=t.sent,t.abrupt("return",Y(h,{shouldFormatResult:!1})(v));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Ii=st(vi,mi,{email:{type:"string",required:!0},phone:{type:"string",required:!0}}),bi=c.frejaSimpleSignature,Ti=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.actionType,u=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:e},cancelToken:o})},Si=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureFrejaSimple(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Ei=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return en({pollInterval:2e3,fn:Si,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ci=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,c=t.idcode,u=t.countryCode,l=t.language,p=t.started;return K().mark((function t(){var f,h;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=d(a.SIGNATURE,bi,u),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,Y(Ti)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:c,language:l,actionType:f.actionType,countryCode:u});case 4:return h=t.sent,p(h),t.abrupt("return",Y(Ei)({data:h.data,apiClient:o,apiEndpoints:i,language:l,cancelToken:r,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),wi=st(bi,Ci,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),_i=c.audkenniQesSignature,Ai=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.actionType,u=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:e},cancelToken:o})},Oi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.continueSignatureAudkenni(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},xi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureAudkenni(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Ni=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return en({pollInterval:2e3,fn:Oi,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Di=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return en({pollInterval:2e3,fn:xi,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ri=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,c=t.idcode,u=t.countryCode,l=t.language,p=t.started;return K().mark((function t(){var f,h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=d(a.SIGNATURE,_i,u),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,Y(Ai)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:c,language:l,actionType:f.actionType,countryCode:u});case 4:return h=t.sent,t.next=7,Y(Ni)({data:h.data,apiClient:o,apiEndpoints:i,language:l,cancelToken:r,docId:n,clientId:e});case 7:return g=t.sent,p(g),t.abrupt("return",Y(Di)({data:g.data,apiClient:o,apiEndpoints:i,language:l,cancelToken:r,docId:n,clientId:e}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ki=st(_i,Ri,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ui=Dn({moduleName:c.yesComQesSignature,createModuleCreator:st}),Mi=Dn({moduleName:c.simplySignQesSignature,createModuleCreator:st}),ji=c.uanatacaQesSignature,Li=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.username,d=t.password,l=t.pin,p=o.inCurrentMode.startSigning();return a.post({url:p,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,username:u,password:d,pin:l},cancelToken:i})},Pi=function(t){var e=t.startSigningResult,n=t.confirmationCodeRequest,r=t.setOnCancelByUser;return new Promise((function(t,i){r((function(){var t=new Error("USER_REFUSED");t.isCancel=!0,i(t)})),n({data:e.data},t,i)}))},Bi=function(t){var e=t.token,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId,c=t.confirmationCode;return n.post({url:r.inCurrentMode.completeSignatureUanataca(),withCredentials:!1,data:{token:e,doc_id:a,lang:i,client_id:s,confirmation_code:c},cancelToken:o})},Gi=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,u=t.language,l=t.countryCode,p=t.username,f=t.password,h=t.pin,g=t.confirmationCodeRequest,v=t.setOnCancelByUser,y=t.started;return K().mark((function t(){var m,I,b;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return m=d(a.SIGNATURE,ji,l),c.dispatch({message:"".concat(m.actionType,": signing started")}),t.next=4,Y(Li)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,username:p,password:f,pin:h,actionType:m.actionType});case 4:return I=t.sent,y(I),t.next=8,Y(Pi,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:g,setOnCancelByUser:v});case 8:return b=t.sent,t.abrupt("return",Y(Bi)({token:I.data.token,apiClient:s,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e,confirmationCode:b}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Fi=st(ji,Gi,{username:{type:"string",required:!0},password:{type:"string",required:!0},pin:{type:"string",required:!0}}),Vi=Dn({moduleName:c.certsignWebapiQesSignature,createModuleCreator:st}),qi=c.halcomQesSignature,Hi=function(t){var e=t.contractId,n=t.username,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.countryCode,u=t.language,d=t.email,l=t.phone,p=t.actionType,f=a.inCurrentMode.startSigning();return s.post({url:f,withCredentials:!1,data:{doc_id:i,contract_id:e,client_id:r,sign_type:p,username:n,email:d,phone:l,country:c,lang:u},cancelToken:o})},Ki=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureHalcom(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Qi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return en({pollInterval:2e3,fn:Ki,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},zi=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,u=t.language,l=t.username,p=t.phone,f=t.email,h=t.countryCode,g=t.started;return K().mark((function t(){var v,y;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=d(a.SIGNATURE,qi,h),c.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,Y(Hi)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,username:l,phone:p,email:f,countryCode:h,contractId:r,actionType:v.actionType});case 4:return y=t.sent,g(y),t.abrupt("return",Y(Qi)({data:y.data,apiClient:s,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Zi=st(qi,zi,{countryCode:{type:"string",required:!0},username:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Ji=c.swissIdQesSignature,Wi=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.countryCode,c=t.language,u=t.email,d=t.actionType,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:d,email:u,country:s,lang:c},cancelToken:i})},Yi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureSwissId(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},$i=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return en({pollInterval:2e3,fn:Yi,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Xi=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,u=t.language,l=t.email,p=t.countryCode,f=t.started;return K().mark((function t(){var h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=d(a.SIGNATURE,Ji,p),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Y(Wi)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,email:l,countryCode:p,contractId:r,actionType:h.actionType});case 4:return g=t.sent,f(g),t.abrupt("return",Y($i)({data:g.data,apiClient:s,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),to=st(Ji,Xi,{countryCode:{type:"string",required:!0},email:{type:"string",required:!0},docId:{type:"string",required:!0}}),eo=c.swissComQesSignature,no=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.countryCode,c=t.language,u=t.phone,d=t.actionType,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:d,phone:u,country:s,lang:c},cancelToken:i})},ro=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureSwissCom(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},io=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return en({pollInterval:2e3,fn:ro,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},oo=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,u=t.language,l=t.phone,p=t.countryCode,f=t.started;return K().mark((function t(){var h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=d(a.SIGNATURE,eo,p),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Y(no)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,phone:l,countryCode:p,contractId:r,actionType:h.actionType});case 4:return g=t.sent,f(g),t.abrupt("return",Y(io)({data:g.data,apiClient:s,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ao=st(eo,oo,{countryCode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),so=Dn({moduleName:c.mitIdAdvancedSignature,createModuleCreator:st}),co=Dn({moduleName:c.mitIdQesSignature,createModuleCreator:st}),uo=Dn({moduleName:c.seBankIdAdvancedSignature,createModuleCreator:st}),lo=Dn({moduleName:c.seBankIdQesSignature,createModuleCreator:st}),po=c.frejaAdvancedSignature,fo=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.actionType,u=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:e},cancelToken:o})},ho=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,c=t.idcode,u=t.countryCode,l=t.language,p=t.redirect;return K().mark((function t(){var f,h;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=d(a.SIGNATURE,po,u),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,Y(fo)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:c,language:l,actionType:f.actionType,countryCode:u});case 4:return h=t.sent,t.abrupt("return",Y(p,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),go=st(po,ho,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),vo=c.frejaQesSignature,yo=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.actionType,u=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:e},cancelToken:o})},mo=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,c=t.idcode,u=t.countryCode,l=t.language,p=t.redirect;return K().mark((function t(){var f,h;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=d(a.SIGNATURE,vo,u),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,Y(yo)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:c,language:l,actionType:f.actionType,countryCode:u});case 4:return h=t.sent,t.abrupt("return",Y(p,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Io=st(vo,mo,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),bo=Object.freeze({sandbox:"sandbox",production:"production"});function To(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function So(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?To(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):To(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Eo=function(t,e,n){var r={};return Object.keys(t).forEach((function(i){r[i]=function(t,e,n){return function(r){var i=So(So({},e),r);return n?n(t(i)):t(i)}}(t[i],e,n)})),r},Co=function(t){var e=t.method,n=t.baseUrl,r=t.clientId,i=t.redirectUri,o=t.state,a=t.language,s="".concat(n,"/oauth/start/").concat(e,"?client_id=").concat(r,"&redirect_uri=").concat(i,"&response_type=code");return a&&(s+="&lang=".concat(a)),o&&(s+="&state=".concat(o)),s},wo=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=So({base:function(t){return t.baseUrl},readCard:function(t){var n=t.countryCode,r=void 0===n?e.countryCode.toLowerCase():n,i=t.clientId,o="eideasy.com";return e.sandbox&&["EE","BE"].includes(r)&&(o="test.eideasy.com"),"https://".concat(r,".").concat(o,"/api/identity/").concat(i,"/read-card")},zealIdIframeUrl:function(t){var e=t.baseUrl,n=t.clientId;return"".concat(e,"/api/identity/").concat(n,"/zealid/get_iframe_url")},eParakstsMobile:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Co({method:"lv-eparaksts-mobile-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},eParakstsSmartCard:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Co({method:"lv-eparaksts-id-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},mojeId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Co({method:"mojeid",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},edoAppEid:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Co({method:"edoapp-eid-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},itsme:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Co({method:"itsme-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},itsmeBasic:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Co({method:"itsme-login-basic",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},itsmeStandard:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Co({method:"itsme-login-standard",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},seBankId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Co({method:"swedish-bankid-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},finnishTrustNetwork:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Co({method:"finnish-ftn-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},idin:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Co({method:"idin-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},idinCustomerId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Co({method:"idin-customer-id-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},verifai:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Co({method:"verifai-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},yoonik:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Co({method:"yoonik-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},plMojeId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Co({method:"pl-mojeid-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},mitId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Co({method:"mit-id-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},norwegianBankId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Co({method:"norwegian-bankid-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},atHandy:function(t){var e=t.baseUrl,n=t.clientId,r=t.redirectUri,i=t.state,o="".concat(e,"/oauth/authorize?client_id=").concat(n,"&redirect_uri=").concat(r,"&response_type=code&method=at-handy-signatur-login");return i&&(o+="&state=".concat(i)),o},ftn:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Co({method:"ftn-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},idCardIframe:function(t){var e=t.baseUrl,n=t.clientId,r=t.actionType;return"".concat(e,"/signatures/integration/").concat(n,"/").concat(r)},startSigning:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/start-signing")},completeSignatureIdCard:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/id-card/complete")},completeSignatureMobileId:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/sk-mobile-id/complete")},completeSignatureSmartId:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/sk-smart-id/complete")},completeSignatureEvrotrust:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/evrotrust-signature/complete")},completeSignatureHalcom:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/halcom-qes-signature/complete")},completeSignatureSwissId:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/swiss-id-qes-signature/complete")},completeSignatureSwissCom:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/swiss-com-qes-signature/complete")},completeSignatureDTrustSignMe:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/d-trust-sign-me-qes-signature/complete")},completeSignatureFrejaSimple:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/freja-simple-signature/complete")},continueSignatureAudkenni:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/audkenni-qes-signature/continue")},completeSignatureAudkenni:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/audkenni-qes-signature/complete")},completeSignatureChaveMovel:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/chave-movel-qes-signature/complete")},completeSignatureUanataca:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/uanataca-qes-signature/complete")},completeOtp:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/non-qualified/complete")},eideasyMonitoring:function(t){var e=t.baseUrl;return"".concat(e,"/api/monitor")},startZealIdSignature:function(t){var e=t.baseUrl,n=t.clientId,r=t.docId;return"".concat(e,"/zealid/signature/start?client_id=").concat(n,"&doc_id=").concat(r)},getChaveMovelPublicKey:function(t){var e=t.baseUrl;return"".concat(e,"/api/chave-movel-public-key")},cscApiAuthorizeCredential:function(t){var e=t.baseUrl;return"".concat(e,"/csc/authorize-credential")},cscApiAuthorizeCredentialRedirect:function(t){var e=t.baseUrl;return"".concat(e,"/csc/authorize-credential-redirect")}},r),o=(n(t={},bo.production,So({},Eo(i,{baseUrl:r.base?r.base():"https://id.eideasy.com",state:e.state},e.modifyEndpointUrl))),n(t,bo.sandbox,So({},Eo(i,{baseUrl:r.base?r.base():"https://test.eideasy.com",state:e.state},e.modifyEndpointUrl))),t);return{get inCurrentMode(){var t=e.sandbox?bo.sandbox:bo.production;return o[t]}}},_o=c.eParakstsSmartCard,Ao=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsSmartCard({clientId:n,redirectUri:r})}}},Oo=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,Y(Ao)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),xo=st(_o,Oo),No=Dn({moduleName:c.itsmeQesSignature,createModuleCreator:st}),Do=Dn({moduleName:c.frIdentAdvancedSignature,createModuleCreator:st}),Ro=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=_({rawSettings:t,schema:A}),n=G({currentLanguage:"en"}),r=wo({countryCode:e.countryCode,sandbox:e.sandbox,modifyEndpointUrl:e.modifyEndpointUrl,state:e.oauthParamState},e.apiEndpoints),i=F({clientId:e.clientId,remoteMonitoringEnabled:e.remoteMonitoringEnabled,apiEndpoints:r});return C({settings:e,i18n:n,monitoringService:i,apiEndpoints:r,identificationModules:[pt,It,Ct,Ot,xo,kt,Pt,Vt,Qt,Wt,te,ie,ce,pe,ve,be,Ce,Oe,Re,je,Ge,He,Ze],signingModules:[tn,un,vn,Sn,On,Rn,kn,Un,si,Mn,Bn,Gn,Fn,Vn,Qn,ni,ri,li,pi,fi,hi,gi,Ii,wi,ki,Ui,Mi,Fi,Vi,Zi,to,ao,so,co,uo,lo,go,Io,No,Do]})},ko=Ro}(),o}()}));
19
19
 
20
20
  /***/ }),
21
21
 
@@ -18538,6 +18538,49 @@ module.exports = function (argument) {
18538
18538
  };
18539
18539
 
18540
18540
 
18541
+ /***/ }),
18542
+
18543
+ /***/ 51223:
18544
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18545
+
18546
+ var wellKnownSymbol = __webpack_require__(5112);
18547
+ var create = __webpack_require__(70030);
18548
+ var defineProperty = (__webpack_require__(3070).f);
18549
+
18550
+ var UNSCOPABLES = wellKnownSymbol('unscopables');
18551
+ var ArrayPrototype = Array.prototype;
18552
+
18553
+ // Array.prototype[@@unscopables]
18554
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
18555
+ if (ArrayPrototype[UNSCOPABLES] == undefined) {
18556
+ defineProperty(ArrayPrototype, UNSCOPABLES, {
18557
+ configurable: true,
18558
+ value: create(null)
18559
+ });
18560
+ }
18561
+
18562
+ // add a key to Array.prototype[@@unscopables]
18563
+ module.exports = function (key) {
18564
+ ArrayPrototype[UNSCOPABLES][key] = true;
18565
+ };
18566
+
18567
+
18568
+ /***/ }),
18569
+
18570
+ /***/ 31530:
18571
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18572
+
18573
+ "use strict";
18574
+
18575
+ var charAt = (__webpack_require__(28710).charAt);
18576
+
18577
+ // `AdvanceStringIndex` abstract operation
18578
+ // https://tc39.es/ecma262/#sec-advancestringindex
18579
+ module.exports = function (S, index, unicode) {
18580
+ return index + (unicode ? charAt(S, index).length : 1);
18581
+ };
18582
+
18583
+
18541
18584
  /***/ }),
18542
18585
 
18543
18586
  /***/ 19670:
@@ -18770,6 +18813,33 @@ module.exports = function (target, source, exceptions) {
18770
18813
  };
18771
18814
 
18772
18815
 
18816
+ /***/ }),
18817
+
18818
+ /***/ 49920:
18819
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18820
+
18821
+ var fails = __webpack_require__(47293);
18822
+
18823
+ module.exports = !fails(function () {
18824
+ function F() { /* empty */ }
18825
+ F.prototype.constructor = null;
18826
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
18827
+ return Object.getPrototypeOf(new F()) !== F.prototype;
18828
+ });
18829
+
18830
+
18831
+ /***/ }),
18832
+
18833
+ /***/ 76178:
18834
+ /***/ (function(module) {
18835
+
18836
+ // `CreateIterResultObject` abstract operation
18837
+ // https://tc39.es/ecma262/#sec-createiterresultobject
18838
+ module.exports = function (value, done) {
18839
+ return { value: value, done: done };
18840
+ };
18841
+
18842
+
18773
18843
  /***/ }),
18774
18844
 
18775
18845
  /***/ 68880:
@@ -18917,6 +18987,62 @@ module.exports = function (it) {
18917
18987
  };
18918
18988
 
18919
18989
 
18990
+ /***/ }),
18991
+
18992
+ /***/ 48324:
18993
+ /***/ (function(module) {
18994
+
18995
+ // iterable DOM collections
18996
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
18997
+ module.exports = {
18998
+ CSSRuleList: 0,
18999
+ CSSStyleDeclaration: 0,
19000
+ CSSValueList: 0,
19001
+ ClientRectList: 0,
19002
+ DOMRectList: 0,
19003
+ DOMStringList: 0,
19004
+ DOMTokenList: 1,
19005
+ DataTransferItemList: 0,
19006
+ FileList: 0,
19007
+ HTMLAllCollection: 0,
19008
+ HTMLCollection: 0,
19009
+ HTMLFormElement: 0,
19010
+ HTMLSelectElement: 0,
19011
+ MediaList: 0,
19012
+ MimeTypeArray: 0,
19013
+ NamedNodeMap: 0,
19014
+ NodeList: 1,
19015
+ PaintRequestList: 0,
19016
+ Plugin: 0,
19017
+ PluginArray: 0,
19018
+ SVGLengthList: 0,
19019
+ SVGNumberList: 0,
19020
+ SVGPathSegList: 0,
19021
+ SVGPointList: 0,
19022
+ SVGStringList: 0,
19023
+ SVGTransformList: 0,
19024
+ SourceBufferList: 0,
19025
+ StyleSheetList: 0,
19026
+ TextTrackCueList: 0,
19027
+ TextTrackList: 0,
19028
+ TouchList: 0
19029
+ };
19030
+
19031
+
19032
+ /***/ }),
19033
+
19034
+ /***/ 98509:
19035
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
19036
+
19037
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
19038
+ var documentCreateElement = __webpack_require__(80317);
19039
+
19040
+ var classList = documentCreateElement('span').classList;
19041
+ var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;
19042
+
19043
+ module.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;
19044
+
19045
+
18920
19046
  /***/ }),
18921
19047
 
18922
19048
  /***/ 35268:
@@ -19102,6 +19228,88 @@ module.exports = function (exec) {
19102
19228
  };
19103
19229
 
19104
19230
 
19231
+ /***/ }),
19232
+
19233
+ /***/ 27007:
19234
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
19235
+
19236
+ "use strict";
19237
+
19238
+ // TODO: Remove from `core-js@4` since it's moved to entry points
19239
+ __webpack_require__(74916);
19240
+ var uncurryThis = __webpack_require__(21470);
19241
+ var defineBuiltIn = __webpack_require__(98052);
19242
+ var regexpExec = __webpack_require__(22261);
19243
+ var fails = __webpack_require__(47293);
19244
+ var wellKnownSymbol = __webpack_require__(5112);
19245
+ var createNonEnumerableProperty = __webpack_require__(68880);
19246
+
19247
+ var SPECIES = wellKnownSymbol('species');
19248
+ var RegExpPrototype = RegExp.prototype;
19249
+
19250
+ module.exports = function (KEY, exec, FORCED, SHAM) {
19251
+ var SYMBOL = wellKnownSymbol(KEY);
19252
+
19253
+ var DELEGATES_TO_SYMBOL = !fails(function () {
19254
+ // String methods call symbol-named RegEp methods
19255
+ var O = {};
19256
+ O[SYMBOL] = function () { return 7; };
19257
+ return ''[KEY](O) != 7;
19258
+ });
19259
+
19260
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
19261
+ // Symbol-named RegExp methods call .exec
19262
+ var execCalled = false;
19263
+ var re = /a/;
19264
+
19265
+ if (KEY === 'split') {
19266
+ // We can't use real regex here since it causes deoptimization
19267
+ // and serious performance degradation in V8
19268
+ // https://github.com/zloirock/core-js/issues/306
19269
+ re = {};
19270
+ // RegExp[@@split] doesn't call the regex's exec method, but first creates
19271
+ // a new one. We need to return the patched regex when creating the new one.
19272
+ re.constructor = {};
19273
+ re.constructor[SPECIES] = function () { return re; };
19274
+ re.flags = '';
19275
+ re[SYMBOL] = /./[SYMBOL];
19276
+ }
19277
+
19278
+ re.exec = function () { execCalled = true; return null; };
19279
+
19280
+ re[SYMBOL]('');
19281
+ return !execCalled;
19282
+ });
19283
+
19284
+ if (
19285
+ !DELEGATES_TO_SYMBOL ||
19286
+ !DELEGATES_TO_EXEC ||
19287
+ FORCED
19288
+ ) {
19289
+ var uncurriedNativeRegExpMethod = uncurryThis(/./[SYMBOL]);
19290
+ var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
19291
+ var uncurriedNativeMethod = uncurryThis(nativeMethod);
19292
+ var $exec = regexp.exec;
19293
+ if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
19294
+ if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
19295
+ // The native String method already delegates to @@method (this
19296
+ // polyfilled function), leasing to infinite recursion.
19297
+ // We avoid it by directly calling the native @@method method.
19298
+ return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
19299
+ }
19300
+ return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
19301
+ }
19302
+ return { done: false };
19303
+ });
19304
+
19305
+ defineBuiltIn(String.prototype, KEY, methods[0]);
19306
+ defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
19307
+ }
19308
+
19309
+ if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
19310
+ };
19311
+
19312
+
19105
19313
  /***/ }),
19106
19314
 
19107
19315
  /***/ 22104:
@@ -19172,6 +19380,22 @@ module.exports = {
19172
19380
  };
19173
19381
 
19174
19382
 
19383
+ /***/ }),
19384
+
19385
+ /***/ 21470:
19386
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
19387
+
19388
+ var classofRaw = __webpack_require__(84326);
19389
+ var uncurryThis = __webpack_require__(1702);
19390
+
19391
+ module.exports = function (fn) {
19392
+ // Nashorn bug:
19393
+ // https://github.com/zloirock/core-js/issues/1128
19394
+ // https://github.com/zloirock/core-js/issues/1130
19395
+ if (classofRaw(fn) === 'Function') return uncurryThis(fn);
19396
+ };
19397
+
19398
+
19175
19399
  /***/ }),
19176
19400
 
19177
19401
  /***/ 1702:
@@ -19223,6 +19447,57 @@ module.exports = function (V, P) {
19223
19447
  };
19224
19448
 
19225
19449
 
19450
+ /***/ }),
19451
+
19452
+ /***/ 10647:
19453
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
19454
+
19455
+ var uncurryThis = __webpack_require__(1702);
19456
+ var toObject = __webpack_require__(47908);
19457
+
19458
+ var floor = Math.floor;
19459
+ var charAt = uncurryThis(''.charAt);
19460
+ var replace = uncurryThis(''.replace);
19461
+ var stringSlice = uncurryThis(''.slice);
19462
+ var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
19463
+ var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
19464
+
19465
+ // `GetSubstitution` abstract operation
19466
+ // https://tc39.es/ecma262/#sec-getsubstitution
19467
+ module.exports = function (matched, str, position, captures, namedCaptures, replacement) {
19468
+ var tailPos = position + matched.length;
19469
+ var m = captures.length;
19470
+ var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
19471
+ if (namedCaptures !== undefined) {
19472
+ namedCaptures = toObject(namedCaptures);
19473
+ symbols = SUBSTITUTION_SYMBOLS;
19474
+ }
19475
+ return replace(replacement, symbols, function (match, ch) {
19476
+ var capture;
19477
+ switch (charAt(ch, 0)) {
19478
+ case '$': return '$';
19479
+ case '&': return matched;
19480
+ case '`': return stringSlice(str, 0, position);
19481
+ case "'": return stringSlice(str, tailPos);
19482
+ case '<':
19483
+ capture = namedCaptures[stringSlice(ch, 1, -1)];
19484
+ break;
19485
+ default: // \d\d?
19486
+ var n = +ch;
19487
+ if (n === 0) return match;
19488
+ if (n > m) {
19489
+ var f = floor(n / 10);
19490
+ if (f === 0) return match;
19491
+ if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
19492
+ return match;
19493
+ }
19494
+ capture = captures[n - 1];
19495
+ }
19496
+ return capture === undefined ? '' : capture;
19497
+ });
19498
+ };
19499
+
19500
+
19226
19501
  /***/ }),
19227
19502
 
19228
19503
  /***/ 17854:
@@ -19270,6 +19545,16 @@ module.exports = Object.hasOwn || function hasOwn(it, key) {
19270
19545
  module.exports = {};
19271
19546
 
19272
19547
 
19548
+ /***/ }),
19549
+
19550
+ /***/ 60490:
19551
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
19552
+
19553
+ var getBuiltIn = __webpack_require__(35005);
19554
+
19555
+ module.exports = getBuiltIn('document', 'documentElement');
19556
+
19557
+
19273
19558
  /***/ }),
19274
19559
 
19275
19560
  /***/ 64664:
@@ -19569,6 +19854,202 @@ module.exports = USE_SYMBOL_AS_UID ? function (it) {
19569
19854
  };
19570
19855
 
19571
19856
 
19857
+ /***/ }),
19858
+
19859
+ /***/ 63061:
19860
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
19861
+
19862
+ "use strict";
19863
+
19864
+ var IteratorPrototype = (__webpack_require__(13383).IteratorPrototype);
19865
+ var create = __webpack_require__(70030);
19866
+ var createPropertyDescriptor = __webpack_require__(79114);
19867
+ var setToStringTag = __webpack_require__(58003);
19868
+ var Iterators = __webpack_require__(97497);
19869
+
19870
+ var returnThis = function () { return this; };
19871
+
19872
+ module.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
19873
+ var TO_STRING_TAG = NAME + ' Iterator';
19874
+ IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
19875
+ setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
19876
+ Iterators[TO_STRING_TAG] = returnThis;
19877
+ return IteratorConstructor;
19878
+ };
19879
+
19880
+
19881
+ /***/ }),
19882
+
19883
+ /***/ 51656:
19884
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
19885
+
19886
+ "use strict";
19887
+
19888
+ var $ = __webpack_require__(82109);
19889
+ var call = __webpack_require__(46916);
19890
+ var IS_PURE = __webpack_require__(31913);
19891
+ var FunctionName = __webpack_require__(76530);
19892
+ var isCallable = __webpack_require__(60614);
19893
+ var createIteratorConstructor = __webpack_require__(63061);
19894
+ var getPrototypeOf = __webpack_require__(79518);
19895
+ var setPrototypeOf = __webpack_require__(27674);
19896
+ var setToStringTag = __webpack_require__(58003);
19897
+ var createNonEnumerableProperty = __webpack_require__(68880);
19898
+ var defineBuiltIn = __webpack_require__(98052);
19899
+ var wellKnownSymbol = __webpack_require__(5112);
19900
+ var Iterators = __webpack_require__(97497);
19901
+ var IteratorsCore = __webpack_require__(13383);
19902
+
19903
+ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
19904
+ var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
19905
+ var IteratorPrototype = IteratorsCore.IteratorPrototype;
19906
+ var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
19907
+ var ITERATOR = wellKnownSymbol('iterator');
19908
+ var KEYS = 'keys';
19909
+ var VALUES = 'values';
19910
+ var ENTRIES = 'entries';
19911
+
19912
+ var returnThis = function () { return this; };
19913
+
19914
+ module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
19915
+ createIteratorConstructor(IteratorConstructor, NAME, next);
19916
+
19917
+ var getIterationMethod = function (KIND) {
19918
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
19919
+ if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
19920
+ switch (KIND) {
19921
+ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
19922
+ case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
19923
+ case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
19924
+ } return function () { return new IteratorConstructor(this); };
19925
+ };
19926
+
19927
+ var TO_STRING_TAG = NAME + ' Iterator';
19928
+ var INCORRECT_VALUES_NAME = false;
19929
+ var IterablePrototype = Iterable.prototype;
19930
+ var nativeIterator = IterablePrototype[ITERATOR]
19931
+ || IterablePrototype['@@iterator']
19932
+ || DEFAULT && IterablePrototype[DEFAULT];
19933
+ var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
19934
+ var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
19935
+ var CurrentIteratorPrototype, methods, KEY;
19936
+
19937
+ // fix native
19938
+ if (anyNativeIterator) {
19939
+ CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
19940
+ if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
19941
+ if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
19942
+ if (setPrototypeOf) {
19943
+ setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
19944
+ } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {
19945
+ defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);
19946
+ }
19947
+ }
19948
+ // Set @@toStringTag to native iterators
19949
+ setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
19950
+ if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;
19951
+ }
19952
+ }
19953
+
19954
+ // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
19955
+ if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
19956
+ if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {
19957
+ createNonEnumerableProperty(IterablePrototype, 'name', VALUES);
19958
+ } else {
19959
+ INCORRECT_VALUES_NAME = true;
19960
+ defaultIterator = function values() { return call(nativeIterator, this); };
19961
+ }
19962
+ }
19963
+
19964
+ // export additional methods
19965
+ if (DEFAULT) {
19966
+ methods = {
19967
+ values: getIterationMethod(VALUES),
19968
+ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
19969
+ entries: getIterationMethod(ENTRIES)
19970
+ };
19971
+ if (FORCED) for (KEY in methods) {
19972
+ if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
19973
+ defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
19974
+ }
19975
+ } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
19976
+ }
19977
+
19978
+ // define iterator
19979
+ if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
19980
+ defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });
19981
+ }
19982
+ Iterators[NAME] = defaultIterator;
19983
+
19984
+ return methods;
19985
+ };
19986
+
19987
+
19988
+ /***/ }),
19989
+
19990
+ /***/ 13383:
19991
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
19992
+
19993
+ "use strict";
19994
+
19995
+ var fails = __webpack_require__(47293);
19996
+ var isCallable = __webpack_require__(60614);
19997
+ var isObject = __webpack_require__(70111);
19998
+ var create = __webpack_require__(70030);
19999
+ var getPrototypeOf = __webpack_require__(79518);
20000
+ var defineBuiltIn = __webpack_require__(98052);
20001
+ var wellKnownSymbol = __webpack_require__(5112);
20002
+ var IS_PURE = __webpack_require__(31913);
20003
+
20004
+ var ITERATOR = wellKnownSymbol('iterator');
20005
+ var BUGGY_SAFARI_ITERATORS = false;
20006
+
20007
+ // `%IteratorPrototype%` object
20008
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
20009
+ var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
20010
+
20011
+ /* eslint-disable es/no-array-prototype-keys -- safe */
20012
+ if ([].keys) {
20013
+ arrayIterator = [].keys();
20014
+ // Safari 8 has buggy iterators w/o `next`
20015
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
20016
+ else {
20017
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
20018
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
20019
+ }
20020
+ }
20021
+
20022
+ var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {
20023
+ var test = {};
20024
+ // FF44- legacy iterators case
20025
+ return IteratorPrototype[ITERATOR].call(test) !== test;
20026
+ });
20027
+
20028
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};
20029
+ else if (IS_PURE) IteratorPrototype = create(IteratorPrototype);
20030
+
20031
+ // `%IteratorPrototype%[@@iterator]()` method
20032
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
20033
+ if (!isCallable(IteratorPrototype[ITERATOR])) {
20034
+ defineBuiltIn(IteratorPrototype, ITERATOR, function () {
20035
+ return this;
20036
+ });
20037
+ }
20038
+
20039
+ module.exports = {
20040
+ IteratorPrototype: IteratorPrototype,
20041
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
20042
+ };
20043
+
20044
+
20045
+ /***/ }),
20046
+
20047
+ /***/ 97497:
20048
+ /***/ (function(module) {
20049
+
20050
+ module.exports = {};
20051
+
20052
+
19572
20053
  /***/ }),
19573
20054
 
19574
20055
  /***/ 26244:
@@ -19668,6 +20149,123 @@ module.exports = function (argument, $default) {
19668
20149
  };
19669
20150
 
19670
20151
 
20152
+ /***/ }),
20153
+
20154
+ /***/ 70030:
20155
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
20156
+
20157
+ /* global ActiveXObject -- old IE, WSH */
20158
+ var anObject = __webpack_require__(19670);
20159
+ var definePropertiesModule = __webpack_require__(36048);
20160
+ var enumBugKeys = __webpack_require__(80748);
20161
+ var hiddenKeys = __webpack_require__(3501);
20162
+ var html = __webpack_require__(60490);
20163
+ var documentCreateElement = __webpack_require__(80317);
20164
+ var sharedKey = __webpack_require__(6200);
20165
+
20166
+ var GT = '>';
20167
+ var LT = '<';
20168
+ var PROTOTYPE = 'prototype';
20169
+ var SCRIPT = 'script';
20170
+ var IE_PROTO = sharedKey('IE_PROTO');
20171
+
20172
+ var EmptyConstructor = function () { /* empty */ };
20173
+
20174
+ var scriptTag = function (content) {
20175
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
20176
+ };
20177
+
20178
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
20179
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
20180
+ activeXDocument.write(scriptTag(''));
20181
+ activeXDocument.close();
20182
+ var temp = activeXDocument.parentWindow.Object;
20183
+ activeXDocument = null; // avoid memory leak
20184
+ return temp;
20185
+ };
20186
+
20187
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
20188
+ var NullProtoObjectViaIFrame = function () {
20189
+ // Thrash, waste and sodomy: IE GC bug
20190
+ var iframe = documentCreateElement('iframe');
20191
+ var JS = 'java' + SCRIPT + ':';
20192
+ var iframeDocument;
20193
+ iframe.style.display = 'none';
20194
+ html.appendChild(iframe);
20195
+ // https://github.com/zloirock/core-js/issues/475
20196
+ iframe.src = String(JS);
20197
+ iframeDocument = iframe.contentWindow.document;
20198
+ iframeDocument.open();
20199
+ iframeDocument.write(scriptTag('document.F=Object'));
20200
+ iframeDocument.close();
20201
+ return iframeDocument.F;
20202
+ };
20203
+
20204
+ // Check for document.domain and active x support
20205
+ // No need to use active x approach when document.domain is not set
20206
+ // see https://github.com/es-shims/es5-shim/issues/150
20207
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
20208
+ // avoid IE GC bug
20209
+ var activeXDocument;
20210
+ var NullProtoObject = function () {
20211
+ try {
20212
+ activeXDocument = new ActiveXObject('htmlfile');
20213
+ } catch (error) { /* ignore */ }
20214
+ NullProtoObject = typeof document != 'undefined'
20215
+ ? document.domain && activeXDocument
20216
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
20217
+ : NullProtoObjectViaIFrame()
20218
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
20219
+ var length = enumBugKeys.length;
20220
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
20221
+ return NullProtoObject();
20222
+ };
20223
+
20224
+ hiddenKeys[IE_PROTO] = true;
20225
+
20226
+ // `Object.create` method
20227
+ // https://tc39.es/ecma262/#sec-object.create
20228
+ // eslint-disable-next-line es/no-object-create -- safe
20229
+ module.exports = Object.create || function create(O, Properties) {
20230
+ var result;
20231
+ if (O !== null) {
20232
+ EmptyConstructor[PROTOTYPE] = anObject(O);
20233
+ result = new EmptyConstructor();
20234
+ EmptyConstructor[PROTOTYPE] = null;
20235
+ // add "__proto__" for Object.getPrototypeOf polyfill
20236
+ result[IE_PROTO] = O;
20237
+ } else result = NullProtoObject();
20238
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
20239
+ };
20240
+
20241
+
20242
+ /***/ }),
20243
+
20244
+ /***/ 36048:
20245
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
20246
+
20247
+ var DESCRIPTORS = __webpack_require__(19781);
20248
+ var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(3353);
20249
+ var definePropertyModule = __webpack_require__(3070);
20250
+ var anObject = __webpack_require__(19670);
20251
+ var toIndexedObject = __webpack_require__(45656);
20252
+ var objectKeys = __webpack_require__(81956);
20253
+
20254
+ // `Object.defineProperties` method
20255
+ // https://tc39.es/ecma262/#sec-object.defineproperties
20256
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
20257
+ exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
20258
+ anObject(O);
20259
+ var props = toIndexedObject(Properties);
20260
+ var keys = objectKeys(Properties);
20261
+ var length = keys.length;
20262
+ var index = 0;
20263
+ var key;
20264
+ while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
20265
+ return O;
20266
+ };
20267
+
20268
+
19671
20269
  /***/ }),
19672
20270
 
19673
20271
  /***/ 3070:
@@ -19774,6 +20372,34 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
19774
20372
  exports.f = Object.getOwnPropertySymbols;
19775
20373
 
19776
20374
 
20375
+ /***/ }),
20376
+
20377
+ /***/ 79518:
20378
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
20379
+
20380
+ var hasOwn = __webpack_require__(92597);
20381
+ var isCallable = __webpack_require__(60614);
20382
+ var toObject = __webpack_require__(47908);
20383
+ var sharedKey = __webpack_require__(6200);
20384
+ var CORRECT_PROTOTYPE_GETTER = __webpack_require__(49920);
20385
+
20386
+ var IE_PROTO = sharedKey('IE_PROTO');
20387
+ var $Object = Object;
20388
+ var ObjectPrototype = $Object.prototype;
20389
+
20390
+ // `Object.getPrototypeOf` method
20391
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
20392
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
20393
+ module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
20394
+ var object = toObject(O);
20395
+ if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
20396
+ var constructor = object.constructor;
20397
+ if (isCallable(constructor) && object instanceof constructor) {
20398
+ return constructor.prototype;
20399
+ } return object instanceof $Object ? ObjectPrototype : null;
20400
+ };
20401
+
20402
+
19777
20403
  /***/ }),
19778
20404
 
19779
20405
  /***/ 47976:
@@ -19811,6 +20437,22 @@ module.exports = function (object, names) {
19811
20437
  };
19812
20438
 
19813
20439
 
20440
+ /***/ }),
20441
+
20442
+ /***/ 81956:
20443
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
20444
+
20445
+ var internalObjectKeys = __webpack_require__(16324);
20446
+ var enumBugKeys = __webpack_require__(80748);
20447
+
20448
+ // `Object.keys` method
20449
+ // https://tc39.es/ecma262/#sec-object.keys
20450
+ // eslint-disable-next-line es/no-object-keys -- safe
20451
+ module.exports = Object.keys || function keys(O) {
20452
+ return internalObjectKeys(O, enumBugKeys);
20453
+ };
20454
+
20455
+
19814
20456
  /***/ }),
19815
20457
 
19816
20458
  /***/ 55296:
@@ -19926,6 +20568,256 @@ module.exports = function (Target, Source, key) {
19926
20568
  };
19927
20569
 
19928
20570
 
20571
+ /***/ }),
20572
+
20573
+ /***/ 97651:
20574
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
20575
+
20576
+ var call = __webpack_require__(46916);
20577
+ var anObject = __webpack_require__(19670);
20578
+ var isCallable = __webpack_require__(60614);
20579
+ var classof = __webpack_require__(84326);
20580
+ var regexpExec = __webpack_require__(22261);
20581
+
20582
+ var $TypeError = TypeError;
20583
+
20584
+ // `RegExpExec` abstract operation
20585
+ // https://tc39.es/ecma262/#sec-regexpexec
20586
+ module.exports = function (R, S) {
20587
+ var exec = R.exec;
20588
+ if (isCallable(exec)) {
20589
+ var result = call(exec, R, S);
20590
+ if (result !== null) anObject(result);
20591
+ return result;
20592
+ }
20593
+ if (classof(R) === 'RegExp') return call(regexpExec, R, S);
20594
+ throw $TypeError('RegExp#exec called on incompatible receiver');
20595
+ };
20596
+
20597
+
20598
+ /***/ }),
20599
+
20600
+ /***/ 22261:
20601
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
20602
+
20603
+ "use strict";
20604
+
20605
+ /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
20606
+ /* eslint-disable regexp/no-useless-quantifier -- testing */
20607
+ var call = __webpack_require__(46916);
20608
+ var uncurryThis = __webpack_require__(1702);
20609
+ var toString = __webpack_require__(41340);
20610
+ var regexpFlags = __webpack_require__(67066);
20611
+ var stickyHelpers = __webpack_require__(52999);
20612
+ var shared = __webpack_require__(72309);
20613
+ var create = __webpack_require__(70030);
20614
+ var getInternalState = (__webpack_require__(29909).get);
20615
+ var UNSUPPORTED_DOT_ALL = __webpack_require__(9441);
20616
+ var UNSUPPORTED_NCG = __webpack_require__(38173);
20617
+
20618
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
20619
+ var nativeExec = RegExp.prototype.exec;
20620
+ var patchedExec = nativeExec;
20621
+ var charAt = uncurryThis(''.charAt);
20622
+ var indexOf = uncurryThis(''.indexOf);
20623
+ var replace = uncurryThis(''.replace);
20624
+ var stringSlice = uncurryThis(''.slice);
20625
+
20626
+ var UPDATES_LAST_INDEX_WRONG = (function () {
20627
+ var re1 = /a/;
20628
+ var re2 = /b*/g;
20629
+ call(nativeExec, re1, 'a');
20630
+ call(nativeExec, re2, 'a');
20631
+ return re1.lastIndex !== 0 || re2.lastIndex !== 0;
20632
+ })();
20633
+
20634
+ var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
20635
+
20636
+ // nonparticipating capturing group, copied from es5-shim's String#split patch.
20637
+ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
20638
+
20639
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
20640
+
20641
+ if (PATCH) {
20642
+ patchedExec = function exec(string) {
20643
+ var re = this;
20644
+ var state = getInternalState(re);
20645
+ var str = toString(string);
20646
+ var raw = state.raw;
20647
+ var result, reCopy, lastIndex, match, i, object, group;
20648
+
20649
+ if (raw) {
20650
+ raw.lastIndex = re.lastIndex;
20651
+ result = call(patchedExec, raw, str);
20652
+ re.lastIndex = raw.lastIndex;
20653
+ return result;
20654
+ }
20655
+
20656
+ var groups = state.groups;
20657
+ var sticky = UNSUPPORTED_Y && re.sticky;
20658
+ var flags = call(regexpFlags, re);
20659
+ var source = re.source;
20660
+ var charsAdded = 0;
20661
+ var strCopy = str;
20662
+
20663
+ if (sticky) {
20664
+ flags = replace(flags, 'y', '');
20665
+ if (indexOf(flags, 'g') === -1) {
20666
+ flags += 'g';
20667
+ }
20668
+
20669
+ strCopy = stringSlice(str, re.lastIndex);
20670
+ // Support anchored sticky behavior.
20671
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) {
20672
+ source = '(?: ' + source + ')';
20673
+ strCopy = ' ' + strCopy;
20674
+ charsAdded++;
20675
+ }
20676
+ // ^(? + rx + ) is needed, in combination with some str slicing, to
20677
+ // simulate the 'y' flag.
20678
+ reCopy = new RegExp('^(?:' + source + ')', flags);
20679
+ }
20680
+
20681
+ if (NPCG_INCLUDED) {
20682
+ reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
20683
+ }
20684
+ if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
20685
+
20686
+ match = call(nativeExec, sticky ? reCopy : re, strCopy);
20687
+
20688
+ if (sticky) {
20689
+ if (match) {
20690
+ match.input = stringSlice(match.input, charsAdded);
20691
+ match[0] = stringSlice(match[0], charsAdded);
20692
+ match.index = re.lastIndex;
20693
+ re.lastIndex += match[0].length;
20694
+ } else re.lastIndex = 0;
20695
+ } else if (UPDATES_LAST_INDEX_WRONG && match) {
20696
+ re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
20697
+ }
20698
+ if (NPCG_INCLUDED && match && match.length > 1) {
20699
+ // Fix browsers whose `exec` methods don't consistently return `undefined`
20700
+ // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
20701
+ call(nativeReplace, match[0], reCopy, function () {
20702
+ for (i = 1; i < arguments.length - 2; i++) {
20703
+ if (arguments[i] === undefined) match[i] = undefined;
20704
+ }
20705
+ });
20706
+ }
20707
+
20708
+ if (match && groups) {
20709
+ match.groups = object = create(null);
20710
+ for (i = 0; i < groups.length; i++) {
20711
+ group = groups[i];
20712
+ object[group[0]] = match[group[1]];
20713
+ }
20714
+ }
20715
+
20716
+ return match;
20717
+ };
20718
+ }
20719
+
20720
+ module.exports = patchedExec;
20721
+
20722
+
20723
+ /***/ }),
20724
+
20725
+ /***/ 67066:
20726
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
20727
+
20728
+ "use strict";
20729
+
20730
+ var anObject = __webpack_require__(19670);
20731
+
20732
+ // `RegExp.prototype.flags` getter implementation
20733
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
20734
+ module.exports = function () {
20735
+ var that = anObject(this);
20736
+ var result = '';
20737
+ if (that.hasIndices) result += 'd';
20738
+ if (that.global) result += 'g';
20739
+ if (that.ignoreCase) result += 'i';
20740
+ if (that.multiline) result += 'm';
20741
+ if (that.dotAll) result += 's';
20742
+ if (that.unicode) result += 'u';
20743
+ if (that.unicodeSets) result += 'v';
20744
+ if (that.sticky) result += 'y';
20745
+ return result;
20746
+ };
20747
+
20748
+
20749
+ /***/ }),
20750
+
20751
+ /***/ 52999:
20752
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
20753
+
20754
+ var fails = __webpack_require__(47293);
20755
+ var global = __webpack_require__(17854);
20756
+
20757
+ // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
20758
+ var $RegExp = global.RegExp;
20759
+
20760
+ var UNSUPPORTED_Y = fails(function () {
20761
+ var re = $RegExp('a', 'y');
20762
+ re.lastIndex = 2;
20763
+ return re.exec('abcd') != null;
20764
+ });
20765
+
20766
+ // UC Browser bug
20767
+ // https://github.com/zloirock/core-js/issues/1008
20768
+ var MISSED_STICKY = UNSUPPORTED_Y || fails(function () {
20769
+ return !$RegExp('a', 'y').sticky;
20770
+ });
20771
+
20772
+ var BROKEN_CARET = UNSUPPORTED_Y || fails(function () {
20773
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
20774
+ var re = $RegExp('^r', 'gy');
20775
+ re.lastIndex = 2;
20776
+ return re.exec('str') != null;
20777
+ });
20778
+
20779
+ module.exports = {
20780
+ BROKEN_CARET: BROKEN_CARET,
20781
+ MISSED_STICKY: MISSED_STICKY,
20782
+ UNSUPPORTED_Y: UNSUPPORTED_Y
20783
+ };
20784
+
20785
+
20786
+ /***/ }),
20787
+
20788
+ /***/ 9441:
20789
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
20790
+
20791
+ var fails = __webpack_require__(47293);
20792
+ var global = __webpack_require__(17854);
20793
+
20794
+ // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
20795
+ var $RegExp = global.RegExp;
20796
+
20797
+ module.exports = fails(function () {
20798
+ var re = $RegExp('.', 's');
20799
+ return !(re.dotAll && re.exec('\n') && re.flags === 's');
20800
+ });
20801
+
20802
+
20803
+ /***/ }),
20804
+
20805
+ /***/ 38173:
20806
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
20807
+
20808
+ var fails = __webpack_require__(47293);
20809
+ var global = __webpack_require__(17854);
20810
+
20811
+ // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
20812
+ var $RegExp = global.RegExp;
20813
+
20814
+ module.exports = fails(function () {
20815
+ var re = $RegExp('(?<a>b)', 'g');
20816
+ return re.exec('b').groups.a !== 'b' ||
20817
+ 'b'.replace(re, '$<a>c') !== 'bc';
20818
+ });
20819
+
20820
+
19929
20821
  /***/ }),
19930
20822
 
19931
20823
  /***/ 84488:
@@ -19943,6 +20835,25 @@ module.exports = function (it) {
19943
20835
  };
19944
20836
 
19945
20837
 
20838
+ /***/ }),
20839
+
20840
+ /***/ 58003:
20841
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
20842
+
20843
+ var defineProperty = (__webpack_require__(3070).f);
20844
+ var hasOwn = __webpack_require__(92597);
20845
+ var wellKnownSymbol = __webpack_require__(5112);
20846
+
20847
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
20848
+
20849
+ module.exports = function (target, TAG, STATIC) {
20850
+ if (target && !STATIC) target = target.prototype;
20851
+ if (target && !hasOwn(target, TO_STRING_TAG)) {
20852
+ defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });
20853
+ }
20854
+ };
20855
+
20856
+
19946
20857
  /***/ }),
19947
20858
 
19948
20859
  /***/ 6200:
@@ -19991,6 +20902,49 @@ var store = __webpack_require__(5465);
19991
20902
  });
19992
20903
 
19993
20904
 
20905
+ /***/ }),
20906
+
20907
+ /***/ 28710:
20908
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
20909
+
20910
+ var uncurryThis = __webpack_require__(1702);
20911
+ var toIntegerOrInfinity = __webpack_require__(19303);
20912
+ var toString = __webpack_require__(41340);
20913
+ var requireObjectCoercible = __webpack_require__(84488);
20914
+
20915
+ var charAt = uncurryThis(''.charAt);
20916
+ var charCodeAt = uncurryThis(''.charCodeAt);
20917
+ var stringSlice = uncurryThis(''.slice);
20918
+
20919
+ var createMethod = function (CONVERT_TO_STRING) {
20920
+ return function ($this, pos) {
20921
+ var S = toString(requireObjectCoercible($this));
20922
+ var position = toIntegerOrInfinity(pos);
20923
+ var size = S.length;
20924
+ var first, second;
20925
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
20926
+ first = charCodeAt(S, position);
20927
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
20928
+ || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
20929
+ ? CONVERT_TO_STRING
20930
+ ? charAt(S, position)
20931
+ : first
20932
+ : CONVERT_TO_STRING
20933
+ ? stringSlice(S, position, position + 2)
20934
+ : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
20935
+ };
20936
+ };
20937
+
20938
+ module.exports = {
20939
+ // `String.prototype.codePointAt` method
20940
+ // https://tc39.es/ecma262/#sec-string.prototype.codepointat
20941
+ codeAt: createMethod(false),
20942
+ // `String.prototype.at` method
20943
+ // https://github.com/mathiasbynens/String.prototype.at
20944
+ charAt: createMethod(true)
20945
+ };
20946
+
20947
+
19994
20948
  /***/ }),
19995
20949
 
19996
20950
  /***/ 36293:
@@ -20352,6 +21306,76 @@ module.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
20352
21306
  };
20353
21307
 
20354
21308
 
21309
+ /***/ }),
21310
+
21311
+ /***/ 66992:
21312
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
21313
+
21314
+ "use strict";
21315
+
21316
+ var toIndexedObject = __webpack_require__(45656);
21317
+ var addToUnscopables = __webpack_require__(51223);
21318
+ var Iterators = __webpack_require__(97497);
21319
+ var InternalStateModule = __webpack_require__(29909);
21320
+ var defineProperty = (__webpack_require__(3070).f);
21321
+ var defineIterator = __webpack_require__(51656);
21322
+ var createIterResultObject = __webpack_require__(76178);
21323
+ var IS_PURE = __webpack_require__(31913);
21324
+ var DESCRIPTORS = __webpack_require__(19781);
21325
+
21326
+ var ARRAY_ITERATOR = 'Array Iterator';
21327
+ var setInternalState = InternalStateModule.set;
21328
+ var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
21329
+
21330
+ // `Array.prototype.entries` method
21331
+ // https://tc39.es/ecma262/#sec-array.prototype.entries
21332
+ // `Array.prototype.keys` method
21333
+ // https://tc39.es/ecma262/#sec-array.prototype.keys
21334
+ // `Array.prototype.values` method
21335
+ // https://tc39.es/ecma262/#sec-array.prototype.values
21336
+ // `Array.prototype[@@iterator]` method
21337
+ // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
21338
+ // `CreateArrayIterator` internal method
21339
+ // https://tc39.es/ecma262/#sec-createarrayiterator
21340
+ module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
21341
+ setInternalState(this, {
21342
+ type: ARRAY_ITERATOR,
21343
+ target: toIndexedObject(iterated), // target
21344
+ index: 0, // next index
21345
+ kind: kind // kind
21346
+ });
21347
+ // `%ArrayIteratorPrototype%.next` method
21348
+ // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
21349
+ }, function () {
21350
+ var state = getInternalState(this);
21351
+ var target = state.target;
21352
+ var kind = state.kind;
21353
+ var index = state.index++;
21354
+ if (!target || index >= target.length) {
21355
+ state.target = undefined;
21356
+ return createIterResultObject(undefined, true);
21357
+ }
21358
+ if (kind == 'keys') return createIterResultObject(index, false);
21359
+ if (kind == 'values') return createIterResultObject(target[index], false);
21360
+ return createIterResultObject([index, target[index]], false);
21361
+ }, 'values');
21362
+
21363
+ // argumentsList[@@iterator] is %ArrayProto_values%
21364
+ // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
21365
+ // https://tc39.es/ecma262/#sec-createmappedargumentsobject
21366
+ var values = Iterators.Arguments = Iterators.Array;
21367
+
21368
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
21369
+ addToUnscopables('keys');
21370
+ addToUnscopables('values');
21371
+ addToUnscopables('entries');
21372
+
21373
+ // V8 ~ Chrome 45- bug
21374
+ if (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {
21375
+ defineProperty(values, 'name', { value: 'values' });
21376
+ } catch (error) { /* empty */ }
21377
+
21378
+
20355
21379
  /***/ }),
20356
21380
 
20357
21381
  /***/ 57658:
@@ -20493,7 +21517,214 @@ exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
20493
21517
 
20494
21518
  /***/ }),
20495
21519
 
20496
- /***/ 12024:
21520
+ /***/ 74916:
21521
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
21522
+
21523
+ "use strict";
21524
+
21525
+ var $ = __webpack_require__(82109);
21526
+ var exec = __webpack_require__(22261);
21527
+
21528
+ // `RegExp.prototype.exec` method
21529
+ // https://tc39.es/ecma262/#sec-regexp.prototype.exec
21530
+ $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
21531
+ exec: exec
21532
+ });
21533
+
21534
+
21535
+ /***/ }),
21536
+
21537
+ /***/ 15306:
21538
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
21539
+
21540
+ "use strict";
21541
+
21542
+ var apply = __webpack_require__(22104);
21543
+ var call = __webpack_require__(46916);
21544
+ var uncurryThis = __webpack_require__(1702);
21545
+ var fixRegExpWellKnownSymbolLogic = __webpack_require__(27007);
21546
+ var fails = __webpack_require__(47293);
21547
+ var anObject = __webpack_require__(19670);
21548
+ var isCallable = __webpack_require__(60614);
21549
+ var isNullOrUndefined = __webpack_require__(68554);
21550
+ var toIntegerOrInfinity = __webpack_require__(19303);
21551
+ var toLength = __webpack_require__(17466);
21552
+ var toString = __webpack_require__(41340);
21553
+ var requireObjectCoercible = __webpack_require__(84488);
21554
+ var advanceStringIndex = __webpack_require__(31530);
21555
+ var getMethod = __webpack_require__(58173);
21556
+ var getSubstitution = __webpack_require__(10647);
21557
+ var regExpExec = __webpack_require__(97651);
21558
+ var wellKnownSymbol = __webpack_require__(5112);
21559
+
21560
+ var REPLACE = wellKnownSymbol('replace');
21561
+ var max = Math.max;
21562
+ var min = Math.min;
21563
+ var concat = uncurryThis([].concat);
21564
+ var push = uncurryThis([].push);
21565
+ var stringIndexOf = uncurryThis(''.indexOf);
21566
+ var stringSlice = uncurryThis(''.slice);
21567
+
21568
+ var maybeToString = function (it) {
21569
+ return it === undefined ? it : String(it);
21570
+ };
21571
+
21572
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
21573
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
21574
+ var REPLACE_KEEPS_$0 = (function () {
21575
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
21576
+ return 'a'.replace(/./, '$0') === '$0';
21577
+ })();
21578
+
21579
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
21580
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
21581
+ if (/./[REPLACE]) {
21582
+ return /./[REPLACE]('a', '$0') === '';
21583
+ }
21584
+ return false;
21585
+ })();
21586
+
21587
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
21588
+ var re = /./;
21589
+ re.exec = function () {
21590
+ var result = [];
21591
+ result.groups = { a: '7' };
21592
+ return result;
21593
+ };
21594
+ // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
21595
+ return ''.replace(re, '$<a>') !== '7';
21596
+ });
21597
+
21598
+ // @@replace logic
21599
+ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
21600
+ var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
21601
+
21602
+ return [
21603
+ // `String.prototype.replace` method
21604
+ // https://tc39.es/ecma262/#sec-string.prototype.replace
21605
+ function replace(searchValue, replaceValue) {
21606
+ var O = requireObjectCoercible(this);
21607
+ var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
21608
+ return replacer
21609
+ ? call(replacer, searchValue, O, replaceValue)
21610
+ : call(nativeReplace, toString(O), searchValue, replaceValue);
21611
+ },
21612
+ // `RegExp.prototype[@@replace]` method
21613
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
21614
+ function (string, replaceValue) {
21615
+ var rx = anObject(this);
21616
+ var S = toString(string);
21617
+
21618
+ if (
21619
+ typeof replaceValue == 'string' &&
21620
+ stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
21621
+ stringIndexOf(replaceValue, '$<') === -1
21622
+ ) {
21623
+ var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
21624
+ if (res.done) return res.value;
21625
+ }
21626
+
21627
+ var functionalReplace = isCallable(replaceValue);
21628
+ if (!functionalReplace) replaceValue = toString(replaceValue);
21629
+
21630
+ var global = rx.global;
21631
+ if (global) {
21632
+ var fullUnicode = rx.unicode;
21633
+ rx.lastIndex = 0;
21634
+ }
21635
+ var results = [];
21636
+ while (true) {
21637
+ var result = regExpExec(rx, S);
21638
+ if (result === null) break;
21639
+
21640
+ push(results, result);
21641
+ if (!global) break;
21642
+
21643
+ var matchStr = toString(result[0]);
21644
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
21645
+ }
21646
+
21647
+ var accumulatedResult = '';
21648
+ var nextSourcePosition = 0;
21649
+ for (var i = 0; i < results.length; i++) {
21650
+ result = results[i];
21651
+
21652
+ var matched = toString(result[0]);
21653
+ var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
21654
+ var captures = [];
21655
+ // NOTE: This is equivalent to
21656
+ // captures = result.slice(1).map(maybeToString)
21657
+ // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
21658
+ // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
21659
+ // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
21660
+ for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
21661
+ var namedCaptures = result.groups;
21662
+ if (functionalReplace) {
21663
+ var replacerArgs = concat([matched], captures, position, S);
21664
+ if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
21665
+ var replacement = toString(apply(replaceValue, undefined, replacerArgs));
21666
+ } else {
21667
+ replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
21668
+ }
21669
+ if (position >= nextSourcePosition) {
21670
+ accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
21671
+ nextSourcePosition = position + matched.length;
21672
+ }
21673
+ }
21674
+ return accumulatedResult + stringSlice(S, nextSourcePosition);
21675
+ }
21676
+ ];
21677
+ }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
21678
+
21679
+
21680
+ /***/ }),
21681
+
21682
+ /***/ 33948:
21683
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
21684
+
21685
+ var global = __webpack_require__(17854);
21686
+ var DOMIterables = __webpack_require__(48324);
21687
+ var DOMTokenListPrototype = __webpack_require__(98509);
21688
+ var ArrayIteratorMethods = __webpack_require__(66992);
21689
+ var createNonEnumerableProperty = __webpack_require__(68880);
21690
+ var wellKnownSymbol = __webpack_require__(5112);
21691
+
21692
+ var ITERATOR = wellKnownSymbol('iterator');
21693
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
21694
+ var ArrayValues = ArrayIteratorMethods.values;
21695
+
21696
+ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
21697
+ if (CollectionPrototype) {
21698
+ // some Chrome versions have non-configurable methods on DOMTokenList
21699
+ if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
21700
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
21701
+ } catch (error) {
21702
+ CollectionPrototype[ITERATOR] = ArrayValues;
21703
+ }
21704
+ if (!CollectionPrototype[TO_STRING_TAG]) {
21705
+ createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
21706
+ }
21707
+ if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
21708
+ // some Chrome versions have non-configurable methods on DOMTokenList
21709
+ if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
21710
+ createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
21711
+ } catch (error) {
21712
+ CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
21713
+ }
21714
+ }
21715
+ }
21716
+ };
21717
+
21718
+ for (var COLLECTION_NAME in DOMIterables) {
21719
+ handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME);
21720
+ }
21721
+
21722
+ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
21723
+
21724
+
21725
+ /***/ }),
21726
+
21727
+ /***/ 55478:
20497
21728
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
20498
21729
 
20499
21730
  "use strict";
@@ -22958,7 +24189,7 @@ ___CSS_LOADER_EXPORT___.locals = {
22958
24189
 
22959
24190
  /***/ }),
22960
24191
 
22961
- /***/ 97467:
24192
+ /***/ 38436:
22962
24193
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22963
24194
 
22964
24195
  "use strict";
@@ -23987,19 +25218,19 @@ exports.isValid = function (code) {
23987
25218
 
23988
25219
  /***/ }),
23989
25220
 
23990
- /***/ 84916:
25221
+ /***/ 78999:
23991
25222
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
23992
25223
 
23993
25224
  // style-loader: Adds some css to the DOM by adding a <style> tag
23994
25225
 
23995
25226
  // load the styles
23996
- var content = __webpack_require__(12024);
25227
+ var content = __webpack_require__(55478);
23997
25228
  if(content.__esModule) content = content.default;
23998
25229
  if(typeof content === 'string') content = [[module.id, content, '']];
23999
25230
  if(content.locals) module.exports = content.locals;
24000
25231
  // add the styles to the DOM
24001
25232
  var add = (__webpack_require__(54402)/* ["default"] */ .Z)
24002
- var update = add("7f4c59ff", content, true, {"sourceMap":false,"shadowMode":false});
25233
+ var update = add("ea37c25c", content, true, {"sourceMap":false,"shadowMode":false});
24003
25234
 
24004
25235
  /***/ }),
24005
25236
 
@@ -25427,19 +26658,19 @@ var update = add("2b503e96", content, true, {"sourceMap":false,"shadowMode":fals
25427
26658
 
25428
26659
  /***/ }),
25429
26660
 
25430
- /***/ 98599:
26661
+ /***/ 39349:
25431
26662
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
25432
26663
 
25433
26664
  // style-loader: Adds some css to the DOM by adding a <style> tag
25434
26665
 
25435
26666
  // load the styles
25436
- var content = __webpack_require__(97467);
26667
+ var content = __webpack_require__(38436);
25437
26668
  if(content.__esModule) content = content.default;
25438
26669
  if(typeof content === 'string') content = [[module.id, content, '']];
25439
26670
  if(content.locals) module.exports = content.locals;
25440
26671
  // add the styles to the DOM
25441
26672
  var add = (__webpack_require__(54402)/* ["default"] */ .Z)
25442
- var update = add("50d73c90", content, true, {"sourceMap":false,"shadowMode":false});
26673
+ var update = add("63bd47aa", content, true, {"sourceMap":false,"shadowMode":false});
25443
26674
 
25444
26675
  /***/ }),
25445
26676
 
@@ -26084,7 +27315,7 @@ var map = {
26084
27315
  "./fr.json": 71822,
26085
27316
  "./it.json": 65744,
26086
27317
  "./lt.json": 18102,
26087
- "./lv.json": 36048,
27318
+ "./lv.json": 44132,
26088
27319
  "./pt.json": 86709,
26089
27320
  "./ru.json": 88809,
26090
27321
  "./sv.json": 30840
@@ -26312,7 +27543,7 @@ module.exports = JSON.parse('{"no-ee-id-card":"Nepavyko rasti prijungtos asmens
26312
27543
 
26313
27544
  /***/ }),
26314
27545
 
26315
- /***/ 36048:
27546
+ /***/ 44132:
26316
27547
  /***/ (function(module) {
26317
27548
 
26318
27549
  "use strict";
@@ -34629,7 +35860,7 @@ if (inBrowser) {
34629
35860
 
34630
35861
 
34631
35862
 
34632
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/App.vue?vue&type=template&id=52b9a05a&
35863
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/App.vue?vue&type=template&id=70489aeb&
34633
35864
  var render = function render() {
34634
35865
  var _vm = this,
34635
35866
  _c = _vm._self._c;
@@ -34907,7 +36138,10 @@ var AppSpinnervue_type_template_id_85241afa_render = function render() {
34907
36138
  };
34908
36139
  var AppSpinnervue_type_template_id_85241afa_staticRenderFns = [];
34909
36140
 
36141
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
36142
+ var web_dom_collections_iterator = __webpack_require__(33948);
34910
36143
  ;// CONCATENATED MODULE: ./src/schemeMixin.js
36144
+
34911
36145
  const schemeMixin = function schemeMixin(schemes) {
34912
36146
  return {
34913
36147
  props: {
@@ -35225,7 +36459,11 @@ var CountrySelectOptionvue_type_template_id_45e2b7c2_render = function render()
35225
36459
  };
35226
36460
  var CountrySelectOptionvue_type_template_id_45e2b7c2_staticRenderFns = [];
35227
36461
 
36462
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
36463
+ var es_string_replace = __webpack_require__(15306);
35228
36464
  ;// CONCATENATED MODULE: ./src/countryFlags.js
36465
+
36466
+
35229
36467
  function importAll(r) {
35230
36468
  let images = {};
35231
36469
  r.keys().map(item => {
@@ -39846,6 +41084,7 @@ var FormCheckbox_component = normalizeComponent(
39846
41084
 
39847
41085
 
39848
41086
 
41087
+
39849
41088
  const formComponentsByType = {
39850
41089
  submit: 'FormButton',
39851
41090
  text: 'FormField',
@@ -40775,8 +42014,8 @@ var IdentificationZealId_component = normalizeComponent(
40775
42014
  )
40776
42015
 
40777
42016
  /* harmony default export */ var IdentificationZealId = (IdentificationZealId_component.exports);
40778
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/views/SignatureSmartId.vue?vue&type=template&id=2c53aa60&
40779
- var SignatureSmartIdvue_type_template_id_2c53aa60_render = function render() {
42017
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/views/SignatureSmartId.vue?vue&type=template&id=12c2ff31&
42018
+ var SignatureSmartIdvue_type_template_id_12c2ff31_render = function render() {
40780
42019
  var _vm = this,
40781
42020
  _c = _vm._self._c;
40782
42021
  return _c('div', {
@@ -40803,7 +42042,7 @@ var SignatureSmartIdvue_type_template_id_2c53aa60_render = function render() {
40803
42042
  }
40804
42043
  })], 1)]);
40805
42044
  };
40806
- var SignatureSmartIdvue_type_template_id_2c53aa60_staticRenderFns = [];
42045
+ var SignatureSmartIdvue_type_template_id_12c2ff31_staticRenderFns = [];
40807
42046
 
40808
42047
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/views/SignatureSmartId.vue?vue&type=script&lang=js&
40809
42048
 
@@ -40832,6 +42071,9 @@ var SignatureSmartIdvue_type_template_id_2c53aa60_staticRenderFns = [];
40832
42071
  mode() {
40833
42072
  return this.$root.$options.storeGetters.mode();
40834
42073
  },
42074
+ waitForChallengeCode() {
42075
+ return this.$root.$options.storeGetters.waitForChallengeCode();
42076
+ },
40835
42077
  schema() {
40836
42078
  return [{
40837
42079
  type: 'text',
@@ -40907,6 +42149,13 @@ var SignatureSmartIdvue_type_template_id_2c53aa60_staticRenderFns = [];
40907
42149
  this.startSignatureProcessing();
40908
42150
  }
40909
42151
  },
42152
+ onTryComplete: result => {
42153
+ if (result.data && result.data.challenge) {
42154
+ this.challenge = result.data.challenge;
42155
+ this.loadingEnd();
42156
+ this.startSignatureProcessing();
42157
+ }
42158
+ },
40910
42159
  fail: error => {
40911
42160
  if (!error.isCancel) {
40912
42161
  this.addFlashMessage(error);
@@ -40922,17 +42171,18 @@ var SignatureSmartIdvue_type_template_id_2c53aa60_staticRenderFns = [];
40922
42171
  this.endSignatureProcessing();
40923
42172
  this.loadingEnd();
40924
42173
  },
40925
- ...additionalMethodConfig
42174
+ ...additionalMethodConfig,
42175
+ wait_for_challenge_code: this.waitForChallengeCode
40926
42176
  });
40927
42177
  }
40928
42178
  }
40929
42179
  });
40930
42180
  ;// CONCATENATED MODULE: ./src/views/SignatureSmartId.vue?vue&type=script&lang=js&
40931
42181
  /* harmony default export */ var views_SignatureSmartIdvue_type_script_lang_js_ = (SignatureSmartIdvue_type_script_lang_js_);
40932
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-63.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-63.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-63.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-63.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-63.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/views/SignatureSmartId.vue?vue&type=style&index=0&id=2c53aa60&prod&lang=scss&module=true&
40933
- var SignatureSmartIdvue_type_style_index_0_id_2c53aa60_prod_lang_scss_module_true_ = __webpack_require__(98599);
40934
- var SignatureSmartIdvue_type_style_index_0_id_2c53aa60_prod_lang_scss_module_true_default = /*#__PURE__*/__webpack_require__.n(SignatureSmartIdvue_type_style_index_0_id_2c53aa60_prod_lang_scss_module_true_);
40935
- ;// CONCATENATED MODULE: ./src/views/SignatureSmartId.vue?vue&type=style&index=0&id=2c53aa60&prod&lang=scss&module=true&
42182
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-63.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-63.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-63.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-63.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-63.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/views/SignatureSmartId.vue?vue&type=style&index=0&id=12c2ff31&prod&lang=scss&module=true&
42183
+ var SignatureSmartIdvue_type_style_index_0_id_12c2ff31_prod_lang_scss_module_true_ = __webpack_require__(39349);
42184
+ var SignatureSmartIdvue_type_style_index_0_id_12c2ff31_prod_lang_scss_module_true_default = /*#__PURE__*/__webpack_require__.n(SignatureSmartIdvue_type_style_index_0_id_12c2ff31_prod_lang_scss_module_true_);
42185
+ ;// CONCATENATED MODULE: ./src/views/SignatureSmartId.vue?vue&type=style&index=0&id=12c2ff31&prod&lang=scss&module=true&
40936
42186
 
40937
42187
  ;// CONCATENATED MODULE: ./src/views/SignatureSmartId.vue
40938
42188
 
@@ -40945,7 +42195,7 @@ var SignatureSmartIdvue_type_style_index_0_id_2c53aa60_prod_lang_scss_module_tru
40945
42195
 
40946
42196
  function SignatureSmartId_injectStyles (context) {
40947
42197
 
40948
- this["$style"] = ((SignatureSmartIdvue_type_style_index_0_id_2c53aa60_prod_lang_scss_module_true_default()).locals || (SignatureSmartIdvue_type_style_index_0_id_2c53aa60_prod_lang_scss_module_true_default()))
42198
+ this["$style"] = ((SignatureSmartIdvue_type_style_index_0_id_12c2ff31_prod_lang_scss_module_true_default()).locals || (SignatureSmartIdvue_type_style_index_0_id_12c2ff31_prod_lang_scss_module_true_default()))
40949
42199
 
40950
42200
  }
40951
42201
 
@@ -40953,8 +42203,8 @@ function SignatureSmartId_injectStyles (context) {
40953
42203
 
40954
42204
  var SignatureSmartId_component = normalizeComponent(
40955
42205
  views_SignatureSmartIdvue_type_script_lang_js_,
40956
- SignatureSmartIdvue_type_template_id_2c53aa60_render,
40957
- SignatureSmartIdvue_type_template_id_2c53aa60_staticRenderFns,
42206
+ SignatureSmartIdvue_type_template_id_12c2ff31_render,
42207
+ SignatureSmartIdvue_type_template_id_12c2ff31_staticRenderFns,
40958
42208
  false,
40959
42209
  SignatureSmartId_injectStyles,
40960
42210
  null,
@@ -46628,6 +47878,7 @@ const callingCodes = Object.freeze({
46628
47878
  ;// CONCATENATED MODULE: ./src/splitPhoneCallingCode.js
46629
47879
 
46630
47880
 
47881
+
46631
47882
  const splitPhoneCallingCode = function splitPhoneCallingCode(phoneNumber) {
46632
47883
  const codes = [];
46633
47884
  Object.keys(src_callingCodes).forEach(key => codes.push(src_callingCodes[key]));
@@ -46781,6 +48032,10 @@ const splitPhoneCallingCode = function splitPhoneCallingCode(phoneNumber) {
46781
48032
  allowMethodChange: {
46782
48033
  type: Boolean,
46783
48034
  default: true
48035
+ },
48036
+ waitForChallengeCode: {
48037
+ type: Boolean,
48038
+ default: true
46784
48039
  }
46785
48040
  },
46786
48041
  data() {
@@ -46873,6 +48128,7 @@ const splitPhoneCallingCode = function splitPhoneCallingCode(phoneNumber) {
46873
48128
  });
46874
48129
  }
46875
48130
  this.updateAllowMethodChange(this.allowMethodChange);
48131
+ this.updateWaitForChallengeCode(this.waitForChallengeCode);
46876
48132
  if (this.emailToken) {
46877
48133
  this.updateInputValues({
46878
48134
  email_token: this.emailToken
@@ -46992,15 +48248,18 @@ const splitPhoneCallingCode = function splitPhoneCallingCode(phoneNumber) {
46992
48248
  },
46993
48249
  updateAllowMethodChange(value) {
46994
48250
  return this.$root.$options.storeActions.updateAllowMethodChange(value);
48251
+ },
48252
+ updateWaitForChallengeCode(value) {
48253
+ return this.$root.$options.storeActions.updateWaitForChallengeCode(value);
46995
48254
  }
46996
48255
  }
46997
48256
  });
46998
48257
  ;// CONCATENATED MODULE: ./src/App.vue?vue&type=script&lang=js&
46999
48258
  /* harmony default export */ var src_Appvue_type_script_lang_js_ = (Appvue_type_script_lang_js_);
47000
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-63.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-63.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-63.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-63.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-63.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/App.vue?vue&type=style&index=0&id=52b9a05a&prod&lang=scss&module=true&
47001
- var Appvue_type_style_index_0_id_52b9a05a_prod_lang_scss_module_true_ = __webpack_require__(84916);
47002
- var Appvue_type_style_index_0_id_52b9a05a_prod_lang_scss_module_true_default = /*#__PURE__*/__webpack_require__.n(Appvue_type_style_index_0_id_52b9a05a_prod_lang_scss_module_true_);
47003
- ;// CONCATENATED MODULE: ./src/App.vue?vue&type=style&index=0&id=52b9a05a&prod&lang=scss&module=true&
48259
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-63.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-63.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-63.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-63.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-63.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/App.vue?vue&type=style&index=0&id=70489aeb&prod&lang=scss&module=true&
48260
+ var Appvue_type_style_index_0_id_70489aeb_prod_lang_scss_module_true_ = __webpack_require__(78999);
48261
+ var Appvue_type_style_index_0_id_70489aeb_prod_lang_scss_module_true_default = /*#__PURE__*/__webpack_require__.n(Appvue_type_style_index_0_id_70489aeb_prod_lang_scss_module_true_);
48262
+ ;// CONCATENATED MODULE: ./src/App.vue?vue&type=style&index=0&id=70489aeb&prod&lang=scss&module=true&
47004
48263
 
47005
48264
  ;// CONCATENATED MODULE: ./src/App.vue
47006
48265
 
@@ -47013,7 +48272,7 @@ var Appvue_type_style_index_0_id_52b9a05a_prod_lang_scss_module_true_default = /
47013
48272
 
47014
48273
  function App_injectStyles (context) {
47015
48274
 
47016
- this["$style"] = ((Appvue_type_style_index_0_id_52b9a05a_prod_lang_scss_module_true_default()).locals || (Appvue_type_style_index_0_id_52b9a05a_prod_lang_scss_module_true_default()))
48275
+ this["$style"] = ((Appvue_type_style_index_0_id_70489aeb_prod_lang_scss_module_true_default()).locals || (Appvue_type_style_index_0_id_70489aeb_prod_lang_scss_module_true_default()))
47017
48276
 
47018
48277
  }
47019
48278
 
@@ -49720,6 +50979,7 @@ VueI18n.version = '8.23.0';
49720
50979
  ;// CONCATENATED MODULE: ./src/i18n/i18n.js
49721
50980
 
49722
50981
 
50982
+
49723
50983
  Vue.use(vue_i18n_esm);
49724
50984
  function loadLocaleMessages() {
49725
50985
  const locales = __webpack_require__(48011);
@@ -49794,6 +51054,7 @@ const idCardTranslationsKeys = {
49794
51054
 
49795
51055
 
49796
51056
 
51057
+
49797
51058
  const createStore = function createStore({
49798
51059
  methodsConfig
49799
51060
  }) {
@@ -49824,7 +51085,8 @@ const createStore = function createStore({
49824
51085
  requireHandwrittenSignature: false,
49825
51086
  otpFlow: null,
49826
51087
  fieldAutocomplete: false,
49827
- allowMethodChange: true
51088
+ allowMethodChange: true,
51089
+ waitForChallengeCode: true
49828
51090
  });
49829
51091
  const filterMethodsByCountry = function filterMethodsByCountry(methods, country) {
49830
51092
  return methods.filter(method => {
@@ -49889,7 +51151,8 @@ const createStore = function createStore({
49889
51151
  requireHandwrittenSignature: () => store.requireHandwrittenSignature,
49890
51152
  otpFlow: () => store.otpFlow,
49891
51153
  fieldAutocomplete: () => store.fieldAutocomplete,
49892
- allowMethodChange: () => store.allowMethodChange
51154
+ allowMethodChange: () => store.allowMethodChange,
51155
+ waitForChallengeCode: () => store.waitForChallengeCode
49893
51156
  };
49894
51157
  const mutations = {
49895
51158
  setCountryCode(countryCode) {
@@ -49963,6 +51226,9 @@ const createStore = function createStore({
49963
51226
  },
49964
51227
  setAllowMethodChange(value) {
49965
51228
  store.allowMethodChange = value;
51229
+ },
51230
+ setWaitForChallengeCode(value) {
51231
+ store.waitForChallengeCode = value;
49966
51232
  }
49967
51233
  };
49968
51234
  const actions = {
@@ -50130,6 +51396,9 @@ const createStore = function createStore({
50130
51396
  },
50131
51397
  updateAllowMethodChange(newValue) {
50132
51398
  mutations.setAllowMethodChange(newValue);
51399
+ },
51400
+ updateWaitForChallengeCode(newValue) {
51401
+ mutations.setWaitForChallengeCode(newValue);
50133
51402
  }
50134
51403
  };
50135
51404
  return {
@@ -50193,6 +51462,7 @@ const methodButtonNames = {
50193
51462
 
50194
51463
 
50195
51464
 
51465
+
50196
51466
  const allWidgetMethods = Object.freeze({
50197
51467
  [eideasy_browser_client.methodTypes.IDENTIFICATION]: [{
50198
51468
  actionType: eideasy_browser_client.methodActionTypes.BE_ID_LOGIN,