@eid-easy/eideasy-browser-client 2.78.1 → 2.78.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG-LATEST.md +2 -4
- package/CHANGELOG.md +1303 -1294
- package/LICENSE +7 -7
- package/README.md +13 -13
- package/dist/eideasy-browser-client.js +1 -1
- package/package.json +4 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see eideasy-browser-client.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.eidEasyBrowserClient=e():t.eidEasyBrowserClient=e()}(self,(function(){return function(){var t,e,n={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 y in t)!e&&!u.call(t,y)||f&&("length"==y||l&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,g))||h.push(y);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),y=n(9148),v=n(8517),m=n(1469),I=n(4144),E=n(6688),S=n(3218),T=n(2928),b=n(3674),C=n(1704),w="[object Arguments]",A="[object Function]",_="[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[_]=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[A]=O["[object WeakMap]"]=!1,t.exports=function t(e,n,R,N,D,U){var x,M=1&n,k=2&n,j=4&n;if(R&&(x=D?R(e,N,D,U):R(e)),void 0!==x)return x;if(!S(e))return e;var L=m(e);if(L){if(x=g(e),!M)return u(e,x)}else{var P=h(e),B=P==A||"[object GeneratorFunction]"==P;if(I(e))return c(e,M);if(P==_||P==w||B&&!D){if(x=k||B?{}:v(e),!M)return k?l(e,s(x,e)):d(e,a(x,e))}else{if(!O[P])return D?e:{};x=y(e,P,M)}}U||(U=new r);var G=U.get(e);if(G)return G;U.set(e,x),T(e)?e.forEach((function(r){x.add(t(r,n,R,r,e,U))})):E(e)&&e.forEach((function(r,i){x.set(i,t(r,n,R,i,e,U))}));var F=L?void 0:(j?k?f:p:k?C:b)(e);return i(F||e,(function(r,i){F&&(r=e[i=r]),o(x,i,t(r,n,R,i,e,U))})),x}},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),y=n(6390),v=n(9881);t.exports=function(t,e,n,m,I,E,S){var T=y(t,n),b=y(e,n),C=S.get(b);if(C)r(t,n,C);else{var w=E?E(T,b,n+"",t,e,S):void 0,A=void 0===w;if(A){var _=u(b),O=!_&&l(b),R=!_&&!O&&g(b);w=b,_||O||R?u(T)?w=T:d(T)?w=a(T):O?(A=!1,w=i(b,!0)):R?(A=!1,w=o(b,!0)):w=[]:h(b)||c(b)?(w=T,c(T)?w=v(T):f(T)&&!p(T)||(w=s(b))):A=!1}A&&(S.set(b,w),I(w,b,m,E,S),S.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),y=u(i),v=u(o),m=u(a),I=u(s),E=c;(r&&E(new r(new ArrayBuffer(1)))!=h||i&&E(new i)!=d||o&&E(o.resolve())!=l||a&&E(new a)!=p||s&&E(new s)!=f)&&(E=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 y:return d;case v:return l;case m:return p;case I:return f}return e}),t.exports=E},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 y(){}function v(){}var m={};l(m,c,(function(){return this}));var I=Object.getPrototypeOf,E=I&&I(I(R([])));E&&E!==n&&o.call(E,c)&&(m=E);var S=v.prototype=g.prototype=Object.create(m);function T(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 A(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 _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function R(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 y.prototype=v,a(S,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:y,configurable:!0}),y.displayName=l(v,d,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,d,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},T(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()}))},T(S),l(S,d,"Generator"),l(S,c,(function(){return this})),l(S,"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=R,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(_),!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),_(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;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:R(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)}}},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 Ms},default:function(){return ks},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",GB_ONE_ID_LOGIN:"gb-one-id-login",VERIFF_LOGIN:"veriff-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",GB_ONE_ID_ADVANCED_SIGNATURE:"gb-one-id-advanced-signature",HANDWRITTEN_SIMPLE_SIGNATURE:"handwritten-simple-signature",HARICA_QES_SIGNATURE:"harica-qes-signature",VERIFF_ADVANCED_SIGNATURE:"veriff-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",gbOneId:"gbOneId",veriff:"veriff",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",gbOneIdAdvancedSignature:"gbOneIdAdvancedSignature",handwrittenSignature:"handwrittenSignature",haricaQesSignature:"haricaQesSignature",veriffAdvancedSignature:"veriffAdvancedSignature"},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","BE"]},{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"]},{actionType:s.GB_ONE_ID_LOGIN,handlingModule:c.gbOneId,supportedCountries:["GB"]},{actionType:s.VERIFF_LOGIN,handlingModule:c.veriff,supportedCountries:["AD","AO","AR","AM","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BT","BO","BA","BW","BR","BN","BG","BF","BI","KH","CM","CA","CV","CF","TD","CL","CN","CO","KM","CG","CD","CR","HR","CU","CY","CZ","CI","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","SZ","ET","FJ","FI","FR","GA","GM","GE","DE","GH","GR","GD","GT","GN","GW","GY","HT","VA","HN","HU","IS","IN","ID","IR","IQ","IE","IL","IT","JM","JP","JO","KZ","KE","KI","XK","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MG","MW","MY","MV","ML","MT","MH","MR","MU","MX","FM","MD","MC","MN","ME","MA","MZ","MM","NA","NR","NP","NL","NZ","NI","NE","NG","KP","MK","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PL","PT","QA","RO","RU","RW","KN","LC","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","KR","SS","ES","LK","SD","SR","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TO","TT","TN","TR","TM","TV","UG","UA","AE","GB","US","UY","UZ","VU","VE","VN","YE","ZM","ZW"]}]),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","BE"]},{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"]},{actionType:s.GB_ONE_ID_ADVANCED_SIGNATURE,handlingModule:c.gbOneIdAdvancedSignature,supportedCountries:["GB"]},{actionType:s.HANDWRITTEN_SIMPLE_SIGNATURE,handlingModule:c.handwrittenSignature,supportedCountries:["WORLD"]},{actionType:s.HARICA_QES_SIGNATURE,handlingModule:c.haricaQesSignature,supportedCountries:["GR"]},{actionType:s.VERIFF_ADVANCED_SIGNATURE,handlingModule:c.veriffAdvancedSignature,supportedCountries:["AD","AO","AR","AM","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BT","BO","BA","BW","BR","BN","BG","BF","BI","KH","CM","CA","CV","CF","TD","CL","CN","CO","KM","CG","CD","CR","HR","CU","CY","CZ","CI","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","SZ","ET","FJ","FI","FR","GA","GM","GE","DE","GH","GR","GD","GT","GN","GW","GY","HT","VA","HN","HU","IS","IN","ID","IR","IQ","IE","IL","IT","JM","JP","JO","KZ","KE","KI","XK","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MG","MW","MY","MV","ML","MT","MH","MR","MU","MX","FM","MD","MC","MN","ME","MA","MZ","MM","NA","NR","NP","NL","NZ","NI","NE","NG","KP","MK","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PL","PT","QA","RO","RU","RW","KN","LC","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","KR","SS","ES","LK","SD","SR","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TO","TT","TN","TR","TM","TV","UG","UA","AE","GB","US","UY","UZ","VU","VE","VN","YE","ZM","ZW"]}]),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);function f(t,e){return function(){return t.apply(e,arguments)}}const{toString:h}=Object.prototype,{getPrototypeOf:g}=Object,y=(v=Object.create(null),t=>{const e=h.call(t);return v[e]||(v[e]=e.slice(8,-1).toLowerCase())});var v;const m=t=>(t=t.toLowerCase(),e=>y(e)===t),I=t=>e=>typeof e===t,{isArray:E}=Array,S=I("undefined"),T=m("ArrayBuffer"),b=I("string"),C=I("function"),w=I("number"),A=t=>null!==t&&"object"==typeof t,_=t=>{if("object"!==y(t))return!1;const e=g(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},O=m("Date"),R=m("File"),N=m("Blob"),D=m("FileList"),U=m("URLSearchParams");function x(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,i;if("object"!=typeof t&&(t=[t]),E(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let a;for(r=0;r<o;r++)a=i[r],e.call(null,t[a],a,t)}}function M(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,i=n.length;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,j=t=>!S(t)&&t!==k,L=(P="undefined"!=typeof Uint8Array&&g(Uint8Array),t=>P&&t instanceof P);var P;const B=m("HTMLFormElement"),G=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),F=m("RegExp"),V=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};x(n,((n,i)=>{let o;!1!==(o=e(n,i,t))&&(r[i]=o||n)})),Object.defineProperties(t,r)},q="abcdefghijklmnopqrstuvwxyz",H="0123456789",K={DIGIT:H,ALPHA:q,ALPHA_DIGIT:q+q.toUpperCase()+H},Q=m("AsyncFunction");var z={isArray:E,isArrayBuffer:T,isBuffer:function(t){return null!==t&&!S(t)&&null!==t.constructor&&!S(t.constructor)&&C(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||C(t.append)&&("formdata"===(e=y(t))||"object"===e&&C(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&T(t.buffer),e},isString:b,isNumber:w,isBoolean:t=>!0===t||!1===t,isObject:A,isPlainObject:_,isUndefined:S,isDate:O,isFile:R,isBlob:N,isRegExp:F,isFunction:C,isStream:t=>A(t)&&C(t.pipe),isURLSearchParams:U,isTypedArray:L,isFileList:D,forEach:x,merge:function t(){const{caseless:e}=j(this)&&this||{},n={},r=(r,i)=>{const o=e&&M(n,i)||i;_(n[o])&&_(r)?n[o]=t(n[o],r):_(r)?n[o]=t({},r):E(r)?n[o]=r.slice():n[o]=r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&x(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:r}={})=>(x(e,((e,r)=>{n&&C(e)?t[r]=f(e,n):t[r]=e}),{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let i,o,a;const s={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)a=i[o],r&&!r(a,t,e)||s[a]||(e[a]=t[a],s[a]=!0);t=!1!==n&&g(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:y,kindOfTest:m,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(E(t))return t;let e=t.length;if(!w(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:B,hasOwnProperty:G,hasOwnProp:G,reduceDescriptors:V,freezeMethods:t=>{V(t,((e,n)=>{if(C(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];C(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return E(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:M,global:k,isContextDefined:j,ALPHABET:K,generateString:(t=16,e=K.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&C(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(A(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const i=E(t)?[]:{};return x(t,((t,e)=>{const o=n(t,r+1);!S(o)&&(i[e]=o)})),e[r]=void 0,i}}return t};return n(t,0)},isAsyncFn:Q,isThenable:t=>t&&(A(t)||C(t))&&C(t.then)&&C(t.catch)};function Z(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}z.inherits(Z,Error,{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:z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const W=Z.prototype,J={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{J[t]={value:t}})),Object.defineProperties(Z,J),Object.defineProperty(W,"isAxiosError",{value:!0}),Z.from=(t,e,n,r,i,o)=>{const a=Object.create(W);return z.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),Z.call(a,t.message,e,n,r,i),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};var Y=Z;function $(t){return z.isPlainObject(t)||z.isArray(t)}function X(t){return z.endsWith(t,"[]")?t.slice(0,-2):t}function tt(t,e,n){return t?t.concat(e).map((function(t,e){return t=X(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const et=z.toFlatObject(z,{},null,(function(t){return/^is[A-Z]/.test(t)}));var nt=function(t,e,n){if(!z.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!z.isUndefined(e[t])}))).metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&z.isSpecCompliantForm(e);if(!z.isFunction(i))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(z.isDate(t))return t.toISOString();if(!s&&z.isBlob(t))throw new Y("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(t)||z.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function u(t,n,i){let s=t;if(t&&!i&&"object"==typeof t)if(z.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(z.isArray(t)&&function(t){return z.isArray(t)&&!t.some($)}(t)||(z.isFileList(t)||z.endsWith(n,"[]"))&&(s=z.toArray(t)))return n=X(n),s.forEach((function(t,r){!z.isUndefined(t)&&null!==t&&e.append(!0===a?tt([n],r,o):null===a?n:n+"[]",c(t))})),!1;return!!$(t)||(e.append(tt(i,n,o),c(t)),!1)}const d=[],l=Object.assign(et,{defaultVisitor:u,convertValue:c,isVisitable:$});if(!z.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!z.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),z.forEach(n,(function(n,o){!0===(!(z.isUndefined(n)||null===n)&&i.call(e,n,z.isString(o)?o.trim():o,r,l))&&t(n,r?r.concat(o):[o])})),d.pop()}}(t),e};function rt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function it(t,e){this._pairs=[],t&&nt(t,this,e)}const ot=it.prototype;ot.append=function(t,e){this._pairs.push([t,e])},ot.toString=function(t){const e=t?function(e){return t.call(this,e,rt)}:rt;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var at=it;function st(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ct(t,e,n){if(!e)return t;const r=n&&n.encode||st,i=n&&n.serialize;let o;if(o=i?i(e,n):z.isURLSearchParams(e)?e.toString():new at(e,n).toString(r),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}var ut=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},dt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:at,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},pt=function(t){function e(t,n,r,i){let o=t[i++];const a=Number.isFinite(+o),s=i>=t.length;return o=!o&&z.isArray(r)?r.length:o,s?(z.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&z.isObject(r[o])||(r[o]=[]),e(t,n,r[o],i)&&z.isArray(r[o])&&(r[o]=function(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}(r[o])),!a)}if(z.isFormData(t)&&z.isFunction(t.entries)){const n={};return z.forEachEntry(t,((t,r)=>{e(function(t){return z.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null};const ft={transitional:dt,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,i=z.isObject(t);if(i&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return r&&r?JSON.stringify(pt(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return nt(t,new lt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return lt.isNode&&z.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((o=z.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return nt(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),function(t,e,n){if(z.isString(t))try{return(0,JSON.parse)(t),z.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||ft.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&z.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw Y.from(t,Y.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],(t=>{ft.headers[t]={}}));var ht=ft;const gt=z.toObjectSet(["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"]),yt=Symbol("internals");function vt(t){return t&&String(t).trim().toLowerCase()}function mt(t){return!1===t||null==t?t:z.isArray(t)?t.map(mt):String(t)}function It(t,e,n,r,i){return z.isFunction(r)?r.call(this,e,n):(i&&(e=n),z.isString(e)?z.isString(r)?-1!==e.indexOf(r):z.isRegExp(r)?r.test(e):void 0:void 0)}class Et{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function i(t,e,n){const i=vt(e);if(!i)throw new Error("header name must be a non-empty string");const o=z.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||e]=mt(t))}const o=(t,e)=>z.forEach(t,((t,n)=>i(t,n,e)));return z.isPlainObject(t)||t instanceof this.constructor?o(t,e):z.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())?o((t=>{const e={};let n,r,i;return t&&t.split("\n").forEach((function(t){i=t.indexOf(":"),n=t.substring(0,i).trim().toLowerCase(),r=t.substring(i+1).trim(),!n||e[n]&>[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e):null!=t&&i(e,t,n),this}get(t,e){if(t=vt(t)){const n=z.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(z.isFunction(e))return e.call(this,t,n);if(z.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=vt(t)){const n=z.findKey(this,t);return!(!n||void 0===this[n]||e&&!It(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function i(t){if(t=vt(t)){const i=z.findKey(n,t);!i||e&&!It(0,n[i],i,e)||(delete n[i],r=!0)}}return z.isArray(t)?t.forEach(i):i(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const i=e[n];t&&!It(0,this[i],i,t,!0)||(delete this[i],r=!0)}return r}normalize(t){const e=this,n={};return z.forEach(this,((r,i)=>{const o=z.findKey(n,i);if(o)return e[o]=mt(r),void delete e[i];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete e[i],e[a]=mt(r),n[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return z.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&z.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[yt]=this[yt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=vt(t);e[r]||(function(t,e){const n=z.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,i){return this[r].call(this,e,t,n,i)},configurable:!0})}))}(n,t),e[r]=!0)}return z.isArray(t)?t.forEach(r):r(t),this}}Et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),z.reduceDescriptors(Et.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),z.freezeMethods(Et);var St=Et;function Tt(t,e){const n=this||ht,r=e||n,i=St.from(r.headers);let o=r.data;return z.forEach(t,(function(t){o=t.call(n,o,i.normalize(),e?e.status:void 0)})),i.normalize(),o}function bt(t){return!(!t||!t.__CANCEL__)}function Ct(t,e,n){Y.call(this,null==t?"canceled":t,Y.ERR_CANCELED,e,n),this.name="CanceledError"}z.inherits(Ct,Y,{__CANCEL__:!0});var wt=Ct,At=lt.isStandardBrowserEnv?{write:function(t,e,n,r,i,o){const a=[];a.push(t+"="+encodeURIComponent(e)),z.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),z.isString(r)&&a.push("path="+r),z.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){const 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(){}};function _t(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var Ot=lt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=z.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};function Rt(t,e){let n=0;const r=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i,o=0,a=0;return e=void 0!==e?e:1e3,function(s){const c=Date.now(),u=r[a];i||(i=c),n[o]=s,r[o]=c;let d=a,l=0;for(;d!==o;)l+=n[d++],d%=t;if(o=(o+1)%t,o===a&&(a=(a+1)%t),c-i<e)return;const p=u&&c-u;return p?Math.round(1e3*l/p):void 0}}(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,c=r(s);n=o;const u={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&o<=a?(a-o)/c:void 0,event:i};u[e?"download":"upload"]=!0,t(u)}}const Nt={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){let r=t.data;const i=St.from(t.headers).normalize(),o=t.responseType;let a,s;function c(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}z.isFormData(r)&&(lt.isStandardBrowserEnv||lt.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?z.isString(s=i.getContentType())&&i.setContentType(s.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let u=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(e+":"+n))}const d=_t(t.baseURL,t.url);function l(){if(!u)return;const r=St.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new Y("Request failed with status code "+n.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),c()}),(function(t){n(t),c()}),{data:o&&"text"!==o&&"json"!==o?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:t,request:u}),u=null}if(u.open(t.method.toUpperCase(),ct(d,t.params,t.paramsSerializer),!0),u.timeout=t.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(n(new Y("Request aborted",Y.ECONNABORTED,t,u)),u=null)},u.onerror=function(){n(new Y("Network Error",Y.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const r=t.transitional||dt;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new Y(e,r.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,t,u)),u=null},lt.isStandardBrowserEnv){const e=(t.withCredentials||Ot(d))&&t.xsrfCookieName&&At.read(t.xsrfCookieName);e&&i.set(t.xsrfHeaderName,e)}void 0===r&&i.setContentType(null),"setRequestHeader"in u&&z.forEach(i.toJSON(),(function(t,e){u.setRequestHeader(e,t)})),z.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),o&&"json"!==o&&(u.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&u.addEventListener("progress",Rt(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Rt(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=e=>{u&&(n(!e||e.type?new wt(null,t,u):e),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const p=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(d);p&&-1===lt.protocols.indexOf(p)?n(new Y("Unsupported protocol "+p+":",Y.ERR_BAD_REQUEST,t)):u.send(r||null)}))}};z.forEach(Nt,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const Dt=t=>`- ${t}`,Ut=t=>z.isFunction(t)||null===t||!1===t;var xt=t=>{t=z.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let o=0;o<e;o++){let e;if(n=t[o],r=n,!Ut(n)&&(r=Nt[(e=String(n)).toLowerCase()],void 0===r))throw new Y(`Unknown adapter '${e}'`);if(r)break;i[e||"#"+o]=r}if(!r){const t=Object.entries(i).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let n=e?t.length>1?"since :\n"+t.map(Dt).join("\n"):" "+Dt(t[0]):"as no adapter specified";throw new Y("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Mt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new wt(null,t)}function kt(t){return Mt(t),t.headers=St.from(t.headers),t.data=Tt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),xt(t.adapter||ht.adapter)(t).then((function(e){return Mt(t),e.data=Tt.call(t,t.transformResponse,e),e.headers=St.from(e.headers),e}),(function(e){return bt(e)||(Mt(t),e&&e.response&&(e.response.data=Tt.call(t,t.transformResponse,e.response),e.response.headers=St.from(e.response.headers))),Promise.reject(e)}))}const jt=t=>t instanceof St?t.toJSON():t;function Lt(t,e){e=e||{};const n={};function r(t,e,n){return z.isPlainObject(t)&&z.isPlainObject(e)?z.merge.call({caseless:n},t,e):z.isPlainObject(e)?z.merge({},e):z.isArray(e)?e.slice():e}function i(t,e,n){return z.isUndefined(e)?z.isUndefined(t)?void 0:r(void 0,t,n):r(t,e,n)}function o(t,e){if(!z.isUndefined(e))return r(void 0,e)}function a(t,e){return z.isUndefined(e)?z.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function s(n,i,o){return o in e?r(n,i):o in t?r(void 0,n):void 0}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(t,e)=>i(jt(t),jt(e),!0)};return z.forEach(Object.keys(Object.assign({},t,e)),(function(r){const o=c[r]||i,a=o(t[r],e[r],r);z.isUndefined(a)&&o!==s||(n[r]=a)})),n}const Pt={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Pt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const Bt={};Pt.transitional=function(t,e,n){function r(t,e){return"[Axios v1.5.1] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,i,o)=>{if(!1===t)throw new Y(r(i," has been removed"+(e?" in "+e:"")),Y.ERR_DEPRECATED);return e&&!Bt[i]&&(Bt[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,o)}};var Gt={assertOptions:function(t,e,n){if("object"!=typeof t)throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],a=e[o];if(a){const e=t[o],n=void 0===e||a(e,o,t);if(!0!==n)throw new Y("option "+o+" must be "+n,Y.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Y("Unknown option "+o,Y.ERR_BAD_OPTION)}},validators:Pt};const Ft=Gt.validators;class Vt{constructor(t){this.defaults=t,this.interceptors={request:new ut,response:new ut}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Lt(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:i}=e;void 0!==n&&Gt.assertOptions(n,{silentJSONParsing:Ft.transitional(Ft.boolean),forcedJSONParsing:Ft.transitional(Ft.boolean),clarifyTimeoutError:Ft.transitional(Ft.boolean)},!1),null!=r&&(z.isFunction(r)?e.paramsSerializer={serialize:r}:Gt.assertOptions(r,{encode:Ft.function,serialize:Ft.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=i&&z.merge(i.common,i[e.method]);i&&z.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete i[t]})),e.headers=St.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let d,l=0;if(!s){const t=[kt.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,c),d=t.length,u=Promise.resolve(e);l<d;)u=u.then(t[l++],t[l++]);return u}d=a.length;let p=e;for(l=0;l<d;){const t=a[l++],e=a[l++];try{p=t(p)}catch(t){e.call(this,t);break}}try{u=kt.call(this,p)}catch(t){return Promise.reject(t)}for(l=0,d=c.length;l<d;)u=u.then(c[l++],c[l++]);return u}getUri(t){return ct(_t((t=Lt(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}z.forEach(["delete","get","head","options"],(function(t){Vt.prototype[t]=function(e,n){return this.request(Lt(n||{},{method:t,url:e,data:(n||{}).data}))}})),z.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request(Lt(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Vt.prototype[t]=e(),Vt.prototype[t+"Form"]=e(!0)}));var qt=Vt;class Ht{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,i){n.reason||(n.reason=new wt(t,r,i),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new Ht((function(e){t=e})),cancel:t}}}var Kt=Ht;const Qt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Qt).forEach((([t,e])=>{Qt[e]=t}));var zt=Qt;const Zt=function t(e){const n=new qt(e),r=f(qt.prototype.request,n);return z.extend(r,qt.prototype,n,{allOwnKeys:!0}),z.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(Lt(e,n))},r}(ht);Zt.Axios=qt,Zt.CanceledError=wt,Zt.CancelToken=Kt,Zt.isCancel=bt,Zt.VERSION="1.5.1",Zt.toFormData=nt,Zt.AxiosError=Y,Zt.Cancel=Zt.CanceledError,Zt.all=function(t){return Promise.all(t)},Zt.spread=function(t){return function(e){return t.apply(null,e)}},Zt.isAxiosError=function(t){return z.isObject(t)&&!0===t.isAxiosError},Zt.mergeConfig=Lt,Zt.AxiosHeaders=St,Zt.formToJSON=t=>pt(z.isHTMLForm(t)?new FormData(t):t),Zt.getAdapter=xt,Zt.HttpStatusCode=zt,Zt.default=Zt;var Wt=Zt,Jt=Wt.CancelToken,Yt=Wt.isCancel;Wt.Cancel,Wt.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 $t=function(t){return Wt(t)};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 te(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 ee=function(t,e){var n,r=e.modifyRequestSettings,i=t;return"function"==typeof r&&(n=r(i)),n&&(i=p()(i,n)),i},ne=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 $t(ee(te({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 $t(ee(te({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:Jt})};function re(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 ie(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?re(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var oe=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=ie({},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:ne({modifyRequestSettings:l.modifyRequestSettings})});g[e.MODULE_NAME]=e}));var y={};return i.forEach((function(t){var e=t({coreContext:{config:l,i18n:s,monitoringService:d},apiClient:ne({modifyRequestSettings:l.modifyRequestSettings})});y[e.MODULE_NAME]=e})),Object.freeze({identification:ie({},g),signature:ie({},y),getAllMethods:h,setLanguage:s.setLanguage,setCountryCode:p,getCountryCode:f})};function ae(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 se=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?ae(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ae(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},ce={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"}},ue=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."}'),de=i.t(ue,2),le=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."}'),pe=i.t(le,2),fe=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."}'),he=i.t(fe,2),ge=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."}'),ye=i.t(ge,2),ve=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."}'),me=i.t(ve,2),Ie=JSON.parse('{"id-card-read-timeout":"Чтение удостоверения личности заняло слишком много времени. Закройте все открытые окна браузера и повторите попытку.","no_certificates":"Не удалось прочитать сертификаты. Убедитесь, что карта находится в считывателе и считыватель работает исправно."}'),Ee={de:de,en:pe,et:he,lt:ye,lv:me,ru:i.t(Ie,2)},Se=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?Ee: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})},Te=function(t){var e=t.clientId,n=t.remoteMonitoringEnabled,r=t.apiEndpoints;return{dispatch:function(t){var i=t.message;n&&$t({url:r.inCurrentMode.eideasyMonitoring(),method:"post",cache:"no-cache",withCredentials:!1,data:{client_id:e,source:"browser-client",message:i}})}}};function be(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 Ce(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){be(o,r,i,a,s,"next",t)}function s(t){be(o,r,i,a,s,"throw",t)}a(void 0)}))}}var we=i(4687),Ae=i.n(we),_e=i(361),Oe=i.n(_e)(),Re=function(t){var e=t;return Yt(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},Ne=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,n=t.message,r=Oe({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},De=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.error},Ue=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=Ce(Ae().mark((function e(){var n,i,o=arguments;return Ae().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=De(n))){e.next=6;break}throw Re(i);case 6:return e.abrupt("return",r?Ne(n):n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()};function xe(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 Me(t,e){if(t){if("string"==typeof t)return xe(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)?xe(t,e):void 0}}function ke(t){return function(t){if(Array.isArray(t))return xe(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Me(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 je=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],Le=Symbol(".toJSON was called"),Pe=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[Le])return function(t){t[Le]=!0;var e=t.toJSON();return delete t[Le],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)||Me(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],y=h[1];"function"==typeof Buffer&&Buffer.isBuffer(y)?l[g]="[object Buffer]":null===y||"object"!==t(y)||"function"!=typeof y.pipe?"function"!=typeof y&&(y&&"object"===t(y)?a.includes(o[g])?l[g]="[Circular]":(d++,l[g]=e({from:o[g],seen:ke(a),forceEnumerable:c,maxDepth:u,depth:d})):l[g]=y):l[g]="[object Stream]"}for(var v=0,m=je;v<m.length;v++){var I=m[v],E=I.property,S=I.enumerable;"string"==typeof o[E]&&Object.defineProperty(l,E,{value:o[E],enumerable:!!c||S,configurable:!0,writable:!0})}return l};function Be(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?Pe({from:e,seen:[],forceEnumerable:!0,maxDepth:i,depth:0}):"function"==typeof e?"[Function: ".concat(e.name||"anonymous","]"):e}function Ge(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 Fe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ge(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ge(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Ve=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=Fe(Fe({},ce),n),i=Fe(Fe({},s),t),u=se({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,y={onCancelByUser:function(){}},v=function(t){y.onCancelByUser=t},m=function(){h.cancel()},I=function(){y.onCancelByUser(),m()},E=function(){var t=Ce(Ae().mark((function t(){return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(Fe(Fe({},u),{},{language:f,i18n:a,monitoringService:c,cancelToken:g,cancel:m,setOnCancelByUser:v,apiClient:o})).then((function(t){d(t)})).catch((function(t){console&&console.error&&console.error(t),c.dispatch({message:JSON.stringify(Be(t))}),l(Re(t))})).finally(p);case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return E().catch((function(t){console&&console.error&&console.error(t),c.dispatch({message:JSON.stringify(Be(t))}),l(Re(t)),p(Re(t))})),Object.freeze({cancel:I})}})}};function qe(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 He(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qe(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qe(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Ke=c.idCard,Qe=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,s,c,u;return Ae().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,Ke,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,Ue(s)(He(He({},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,Ue(c)(He(He({},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)}}(),ze=Ve(Ke,Qe,{countryCode:{type:"string",required:!0}}),Ze=function(){var t=Ce((function(t){var e=t.fn,n=t.shouldContinue,r=t.interval;return Ae().mark((function t(){var i,o;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=0,o=function(){var t=Ce(Ae().mark((function t(a,s){var c,u;return Ae().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)}}(),We=Ze;function Je(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 Ye(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Je(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Je(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var $e=c.smartId,Xe=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,s,c,u,l,p,f,h,g;return Ae().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,$e);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,$e);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 We({fn:function(){return f(Ye(Ye({},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=Yt(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,Ue(p)(Ye(Ye({},e),{},{cancelToken:c,language:u,idcode:i}));case 6:return g=t.sent,r(g),t.next=10,Ue(h)({config:e,data:Ye({},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)}}(),tn=Ve($e,Xe,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function en(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 nn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?en(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):en(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var rn=c.mobileId,on=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,s,c,u,l,p,f,h,g,y;return Ae().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,rn,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,rn,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 We({fn:function(){return h(nn(nn({},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=Yt(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,Ue(f)(nn(nn({},e),{},{cancelToken:n,language:r,idcode:c,phone:u}));case 6:return y=t.sent,s(y),t.next=10,Ue(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)}}(),an=Ve(rn,on,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0}}),sn=c.eParakstsMobile,cn=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsMobile({clientId:n,redirectUri:r})}}},un=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a;return Ae().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,Ue(cn)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),dn=Ve(sn,un);function ln(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 pn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ln(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ln(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var fn=c.frejaEid,hn=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,s,c,u,l,p,f,h,g;return Ae().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,fn);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,fn);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 We({fn:function(){return f(pn(pn({},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=Yt(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,Ue(p)(pn(pn({},e),{},{cancelToken:c,language:u,idcode:i}));case 6:return g=t.sent,r(g),t.next=10,Ue(h)({config:e,data:pn({},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)}}(),gn=Ve(fn,hn,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function yn(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 vn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yn(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var mn=c.zealId,In=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,s,c,u;return Ae().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,mn);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,Ue(o)(vn(vn({},e),{},{cancelToken:n}));case 6:return u=t.sent,t.next=9,Ue(s)(vn(vn({},e),{},{cancelToken:n,iframeUrl:u.data.url}));case 9:return u=t.sent,t.next=12,Ue(c)(vn(vn({},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)}}(),En=Ve(mn,In,{countryCode:{type:"string",required:!0},iframeHolder:{type:"object",required:!0}}),Sn=c.mojeId,Tn=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.mojeId({clientId:n,redirectUri:r})}}},bn=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a;return Ae().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,Ue(Tn)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Cn=Ve(Sn,bn),wn=c.edoAppEid,An=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.edoAppEid({clientId:n,redirectUri:r})}}},_n=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a;return Ae().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,Ue(An)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),On=Ve(wn,_n),Rn=c.finnishTrustNetwork,Nn=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})}}},Dn=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a,s;return Ae().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,Ue(Nn)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Un=Ve(Rn,Dn),xn=c.atHandy,Mn=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.atHandy({clientId:n,redirectUri:r})}}},kn=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a;return Ae().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,Ue(Mn)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),jn=Ve(xn,kn),Ln=c.itsme,Pn=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})}}},Bn=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a,s;return Ae().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,Ue(Pn)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Gn=Ve(Ln,Bn),Fn=c.itsmeBasic,Vn=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})}}},qn=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a,s;return Ae().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,Ue(Vn)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Hn=Ve(Fn,qn),Kn=c.itsmeStandard,Qn=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})}}},zn=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a,s;return Ae().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,Ue(Qn)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Zn=Ve(Kn,zn),Wn=c.seBankId,Jn=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})}}},Yn=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a,s;return Ae().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,Ue(Jn)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),$n=Ve(Wn,Yn),Xn=c.idin,tr=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})}}},er=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a,s;return Ae().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,Ue(tr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),nr=Ve(Xn,er),rr=c.idinCustomerId,ir=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})}}},or=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a,s;return Ae().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,Ue(ir)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ar=Ve(rr,or),sr=c.verifai,cr=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})}}},ur=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a,s;return Ae().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,Ue(cr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),dr=Ve(sr,ur),lr=c.yoonik,pr=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})}}},fr=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a,s;return Ae().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,Ue(pr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),hr=Ve(lr,fr),gr=c.plMojeId,yr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.plMojeId({clientId:n,redirectUri:r})}}},vr=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a;return Ae().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,Ue(yr)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),mr=Ve(gr,vr),Ir=c.mitId,Er=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})}}},Sr=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a,s;return Ae().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,Ue(Er)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Tr=Ve(Ir,Sr),br=c.norwegianBankId,Cr=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})}}},wr=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a,s;return Ae().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,Ue(Cr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ar=Ve(br,wr),_r=c.ftn,Or=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})}}},Rr=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a,s;return Ae().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,Ue(Or)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Nr=Ve(_r,Rr),Dr=c.gbOneId,Ur=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.gbOneId({clientId:n,redirectUri:r,language:i})}}},xr=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a,s;return Ae().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,Ue(Ur)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Mr=Ve(Dr,xr),kr=c.veriff,jr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language,o=t.country;return{data:{redirect_uri:e.inCurrentMode.veriff({clientId:n,redirectUri:r,language:i,country:o})}}},Lr=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a,s,c;return Ae().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,s=e.country,t.next=3,Ue(jr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a,country:s});case 3:return c=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(c));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Pr=Ve(kr,Lr),Br=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};(Br.prototype=new Error).name="MethodException";var Gr=Br,Fr={iframeHolder:{type:"object"},docId:{type:"string",required:!0}},Vr=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(Be(r));e.dispatch({message:"".concat(n,": ").concat(t,", reason: ").concat(i)})}})},qr=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 Gr({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=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=Ce((function(t){var n=t.countryCode,i=t.clientId,a=t.apiEndpoints,d=t.iframeHolder,g=t.i18n,y=t.docId,v=t.cancelToken,m=t.apiClient,I=t.monitoringService,E=t.action,S=t.redirect;return Ae().mark((function t(){var T,b,C,w,A,_,O,R;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return T=Vr({monitoringService:I,moduleName:e}),t.next=3,Ue(o,{shouldFormatResult:!1})({countryCode:n,clientId:i,apiEndpoints:a});case 3:return b=t.sent,t.next=6,Ue(c,{shouldFormatResult:!1})({iframeUrl:b,iframeHolder:d,i18n:g,monitor:T}).catch((function(t){return s(t,g)}));case 6:return C=t.sent,t.next=9,Ue(r,{shouldFormatResult:!1})({iframe:C});case 9:return w=t.sent,t.next=12,Ue(u)({messenger:w,monitor:T}).catch((function(t){return s(t,g)}));case 12:if(A=t.sent,"cscApiAuthorizeCredential"!==E){t.next=18;break}return t.next=16,Ue(h)({certificate:A.data.certificate,actionType:"id-card",country:n,cancelToken:v,apiEndpoints:a,apiClient:m});case 16:return _=t.sent,t.abrupt("return",Ue(S,{shouldFormatResult:!1})(_));case 18:return t.next=20,Ue(l)({certificate:A.data.certificate,clientId:i,docId:y,cancelToken:v,apiEndpoints:a,apiClient:m,monitor:T});case 20:return O=t.sent,t.next=23,Ue(p,{shouldFormatResult:!1})({messenger:w,hexDigest:O.data.hexDigest,monitor:T}).catch((function(t){return s(t,g)}));case 23:return R=t.sent,t.abrupt("return",Ue(f)({signature:R.signature,clientId:i,docId:y,cancelToken:v,apiEndpoints:a,apiClient:m}));case 25:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,g,Fr)},Hr=qr({moduleName:c.idCardSignature,createModuleCreator:Ve}),Kr=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 We({fn:function(){return o.apply(void 0,ke(a))},shouldContinue:function(t){var n=t.result;c(t);var r=n&&n.data&&n.data.status,i=Yt(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})}}},Qr=c.mobileIdSignature,zr=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})},Zr=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})},Wr=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})},Jr=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 Kr({pollInterval:2e3,maxPollDuration:12e4,fn:Wr,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Yr=function(){var t=Ce((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 Ae().mark((function t(){var y,v,m;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("cscApiAuthorizeCredential"!==h){t.next=5;break}return t.next=3,Ue(zr)({country:p,idcode:u,phone:l,cancelToken:r,apiEndpoints:i,apiClient:o});case 3:return y=t.sent,t.abrupt("return",Ue(g,{shouldFormatResult:!1})(y));case 5:return v=d(a.SIGNATURE,Qr,p),s.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=9,Ue(Zr)({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",Ue(Jr)({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)}}(),$r=Ve(Qr,Yr,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),Xr=c.smartIdSignature,ti=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})},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 n.post({url:r.inCurrentMode.completeSignatureSmartId(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s,timeout:2},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,c=t.onTryComplete;return Kr({pollInterval:2e3,maxPollDuration:12e4,onPoll:function(t){c({data:t&&t.result&&t.result.data||{}})},fn:ei,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ri=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})},ii=function(){var t=Ce((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,y=t.onTryComplete,v=t.waitForChallengeCode,m=void 0===v||v;return Ae().mark((function t(){var v,I,E;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v=d(a.SIGNATURE,Xr,p),"cscApiAuthorizeCredential"!==h){t.next=6;break}return t.next=4,Ue(ri)({country:p,idcode:l,cancelToken:i,apiEndpoints:o,apiClient:s});case 4:return I=t.sent,t.abrupt("return",Ue(g,{shouldFormatResult:!1})(I));case 6:return c.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=9,Ue(ti)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,idcode:l,countryCode:p,contractId:r,waitForChallengeCode:m});case 9:return E=t.sent,f(E),t.abrupt("return",Ue(ni)({data:E.data,apiClient:s,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e,onTryComplete:y}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),oi=Ve(Xr,ii,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),ai=c.evroTrustSignature,si=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})},ci=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})},ui=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 Kr({pollInterval:2e3,fn:ci,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},di=function(){var t=Ce((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 Ae().mark((function t(){var y,v;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return y=d(a.SIGNATURE,ai,h),c.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=4,Ue(si)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,idcode:l,phone:p,email:f,countryCode:h,contractId:r,actionType:y.actionType});case 4:return v=t.sent,g(v),t.abrupt("return",Ue(ui)({data:v.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)}}(),li=Ve(ai,di,{countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),pi=c.otpSignature,fi=function(){var t=Ce((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 Ae().mark((function t(){var c;return Ae().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)}}(),hi=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)}))},gi=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})},yi=function(){var t=Ce((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,y=t.confirmationCodeRequest,v=t.setOnCancelByUser;return Ae().mark((function t(){var m,I,E;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m=d(a.SIGNATURE,pi,u),console.log(m),s.dispatch({message:"".concat(m.actionType,": signing started")}),p||l){t.next=13;break}return t.next=6,Ue(fi)({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,Ue(hi,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:y,setOnCancelByUser:v});case 10:E=t.sent,p=E.smsToken,l=E.emailToken;case 13:return t.abrupt("return",Ue(gi)({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)}}(),vi=Ve(pi,yi,{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),mi={docId:{type:"string",required:!0},confirmedBySigner:{validator:function(t){return[null,!0,!1].includes(t)}}},Ii=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})},Ei=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=t.country,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,confirmed_by_signer:u,country:d},cancelToken:i})},i=function(){var t=Ce((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,y=t.action;return Ae().mark((function t(){var v,m,I;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v=d(a.SIGNATURE,e,f),"cscApiAuthorizeCredential"!==y){t.next=6;break}return t.next=4,Ue(Ii)({country:f,cancelToken:s,apiEndpoints:c,apiClient:u,actionType:v.actionType});case 4:return m=t.sent,t.abrupt("return",Ue(h,{shouldFormatResult:!1})(m));case 6:return l.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=9,Ue(r)({contractId:o,clientId:n,docId:i,cancelToken:s,apiEndpoints:c,apiClient:u,language:p,actionType:v.actionType,confirmedBySigner:g,country:f});case 9:return I=t.sent,t.abrupt("return",Ue(h,{shouldFormatResult:!1})(I));case 11:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,i,mi)},Si=Ei({moduleName:c.eParakstsMobileSignature,createModuleCreator:Ve}),Ti=Ei({moduleName:c.ftnAdvancedFullSignature,createModuleCreator:Ve}),bi=Ei({moduleName:c.ftnSignature,createModuleCreator:Ve}),Ci=Ei({moduleName:c.atHandySignature,createModuleCreator:Ve}),wi=c.zealIdSignature,Ai=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.docId;return{data:{redirect_uri:e.inCurrentMode.startZealIdSignature({clientId:n,docId:r})}}},_i=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a;return Ae().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,Ue(Ai)({apiEndpoints:r,clientId:i,docId:o});case 3:return a=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Oi=Ve(wi,_i),Ri=Ei({moduleName:c.mojeIdSignature,createModuleCreator:Ve}),Ni=Ei({moduleName:c.googleSignature,createModuleCreator:Ve}),Di=Ei({moduleName:c.seBankIdSignature,createModuleCreator:Ve}),Ui=c.dTrustSignMeSignature,xi=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})},Mi=function(){var t=Ce((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 Ae().mark((function t(){var h,g;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=d(a.SIGNATURE,Ui,l),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Ue(xi)({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",Ue(f,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ki=Ve(Ui,Mi,{username:{type:"string",required:!0}});function ji(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function Li(t,e){return t&e}function Pi(t,e){return t|e}function Bi(t,e){return t^e}function Gi(t,e){return t&~e}function Fi(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 Vi(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var qi,Hi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Ki(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=Hi.charAt(n>>6)+Hi.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=Hi.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=Hi.charAt(n>>2)+Hi.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function Qi(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var o=Hi.indexOf(t.charAt(e));o<0||(0==r?(n+=ji(o>>2),i=3&o,r=1):1==r?(n+=ji(i<<2|o>>4),i=15&o,r=2):2==r?(n+=ji(i),n+=ji(o>>2),i=3&o,r=3):(n+=ji(i<<2|o>>4),n+=ji(15&o),r=0))}return 1==r&&(n+=ji(i<<2)),n}var zi,Zi={decode:function(t){var e;if(void 0===zi){var n="= \f\n\r\t \u2028\u2029";for(zi=Object.create(null),e=0;e<64;++e)zi["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(zi["-"]=62,zi._=63,e=0;e<n.length;++e)zi[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=zi[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=Zi.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 Zi.decode(t)}},Wi=1e13,Ji=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)<Wi?e=0:r-=(e=0|r/Wi)*Wi,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+=Wi,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+=(Wi+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*Wi+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),Yi=/^(\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)?)?$/,$i=/^(\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 Xi(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var to,eo=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?Yi:$i).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 Ji(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+Xi(o,n)}return i+o},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return Xi(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 Ji,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 Ji)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 Xi(r,n);i=new Ji,o=0}}return o>0&&(r+=".incomplete"),r},t}(),no=function(){function t(t,e,n,r,i){if(!(r instanceof ro))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 Xi(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return Xi(this.stream.parseStringISO(e,e+n),t);case 30:return Xi(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 eo?e:new eo(e,0);var r=new eo(n),i=new ro(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}(),ro=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 Ji;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}(),io=[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],oo=(1<<26)/io[io.length-1],ao=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=ji(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+=ji(n));return i?o:"0"},t.prototype.negate=function(){var e=po();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)+Eo(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=po();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 co(e):new uo(e),this.exp(t,n)},t.prototype.clone=function(){var t=po();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=po();return this.bitwiseTo(t,Li,e),e},t.prototype.or=function(t){var e=po();return this.bitwiseTo(t,Pi,e),e},t.prototype.xor=function(t){var e=po();return this.bitwiseTo(t,Bi,e),e},t.prototype.andNot=function(t){var e=po();return this.bitwiseTo(t,Gi,e),e},t.prototype.not=function(){for(var t=po(),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=po();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=po();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+Fi(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+=Vi(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,Pi)},t.prototype.clearBit=function(t){return this.changeBit(t,Gi)},t.prototype.flipBit=function(t){return this.changeBit(t,Bi)},t.prototype.add=function(t){var e=po();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=po();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=po();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=po();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=po();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=po(),n=po();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),o=Io(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new co(e):e.isEven()?new lo(e):new uo(e);var a=[],s=3,c=n-1,u=(1<<n)-1;if(a[1]=r.convert(this),n>1){var d=po();for(r.sqrTo(a[1],d);s<=u;)a[s]=po(),r.mulTo(d,a[s-2],a[s]),s+=2}var l,p,f=t.t-1,h=!0,g=po();for(i=Eo(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=Io(1),a=Io(0),s=Io(0),c=Io(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 so)},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]<=io[io.length-1]){for(e=0;e<io.length;++e)if(n[0]==io[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<io.length;){for(var r=io[e],i=e+1;i<io.length&&r<oo;)r*=io[i++];for(r=n.modInt(r);e<i;)if(r%io[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]:mo(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=po());var a=po(),s=this.s,c=e.s,u=this.DB-Eo(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,y=r.t,v=y-d,m=null==n?po():n;for(a.dlShiftTo(v,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(;--v>=0;){var I=r[--y]==l?this.DM:Math.floor(r[y]*f+(r[y-1]+g)*h);if((r[y]+=a.am(0,I,r,v,0,d))<I)for(a.dlShiftTo(v,m),r.subTo(m,r);r[y]<--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=po(),i=po(),o=n.convert(this),a=Eo(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=Io(n),i=po(),o=po(),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=mo(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),Pi,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)>io.length&&(e=io.length);for(var o=po(),a=0;a<e;++a){o.fromInt(io[Math.floor(Math.random()*io.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=po();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),Pi,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}(),so=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}(),co=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}(),uo=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=po();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(ao.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=po();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}(),lo=function(){function t(t){this.m=t,this.r2=po(),this.q3=po(),ao.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=po();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 po(){return new ao(null)}function fo(t,e){return new ao(t,e)}var ho="undefined"!=typeof navigator;ho&&"Microsoft Internet Explorer"==navigator.appName?(ao.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},to=30):ho&&"Netscape"!=navigator.appName?(ao.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},to=26):(ao.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},to=28),ao.prototype.DB=to,ao.prototype.DM=(1<<to)-1,ao.prototype.DV=1<<to,ao.prototype.FV=Math.pow(2,52),ao.prototype.F1=52-to,ao.prototype.F2=2*to-52;var go,yo,vo=[];for(go="0".charCodeAt(0),yo=0;yo<=9;++yo)vo[go++]=yo;for(go="a".charCodeAt(0),yo=10;yo<36;++yo)vo[go++]=yo;for(go="A".charCodeAt(0),yo=10;yo<36;++yo)vo[go++]=yo;function mo(t,e){var n=vo[t.charCodeAt(e)];return null==n?-1:n}function Io(t){var e=po();return e.fromInt(t),e}function Eo(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}ao.ZERO=Io(0),ao.ONE=Io(1);var So,To,bo=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}(),Co=null;if(null==Co){Co=[],To=0;var wo=void 0;if(window.crypto&&window.crypto.getRandomValues){var Ao=new Uint32Array(256);for(window.crypto.getRandomValues(Ao),wo=0;wo<Ao.length;++wo)Co[To++]=255&Ao[wo]}var _o=0,Oo=function(t){if((_o=_o||0)>=256||To>=256)window.removeEventListener?window.removeEventListener("mousemove",Oo,!1):window.detachEvent&&window.detachEvent("onmousemove",Oo);else try{var e=t.x+t.y;Co[To++]=255&e,_o+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",Oo,!1):window.attachEvent&&window.attachEvent("onmousemove",Oo)}function Ro(){if(null==So){for(So=new bo;To<256;){var t=Math.floor(65536*Math.random());Co[To++]=255&t}for(So.init(Co),To=0;To<Co.length;++To)Co[To]=0;To=0}return So.next()}var No=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Ro()},t}(),Do=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=fo(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 No,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 ao(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=fo(t,16),this.e=parseInt(e,16),this.d=fo(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=fo(t,16),this.e=parseInt(e,16),this.d=fo(n,16),this.p=fo(r,16),this.q=fo(i,16),this.dmp1=fo(o,16),this.dmq1=fo(a,16),this.coeff=fo(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new No,r=t>>1;this.e=parseInt(e,16);for(var i=new ao(e,16);;){for(;this.p=new ao(t-r,1,n),0!=this.p.subtract(ao.ONE).gcd(i).compareTo(ao.ONE)||!this.p.isProbablePrime(10););for(;this.q=new ao(r,1,n),0!=this.q.subtract(ao.ONE).gcd(i).compareTo(ao.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(ao.ONE),s=this.q.subtract(ao.ONE),c=a.multiply(s);if(0==c.gcd(i).compareTo(ao.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=fo(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 No,i=t>>1;this.e=parseInt(e,16);var o=new ao(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(ao.ONE),r=a.q.subtract(ao.ONE),i=e.multiply(r);0==i.gcd(o).compareTo(ao.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=po(),a.q.fromNumberAsync(i,1,r,(function(){a.q.subtract(ao.ONE).gcda(o,(function(t){0==t.compareTo(ao.ONE)&&a.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(c,0)}))}))},u=function(){a.p=po(),a.p.fromNumberAsync(t-i,1,r,(function(){a.p.subtract(ao.ONE).gcda(o,(function(t){0==t.compareTo(ao.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 fo("0001"+r+"00"+t,16)}((Uo[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=fo(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in Uo)if(Uo.hasOwnProperty(e)){var n=Uo[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}(),Uo={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},xo={};xo.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 Mo={};void 0!==Mo.asn1&&Mo.asn1||(Mo.asn1={}),Mo.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 ao(r,16).xor(t).add(ao.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=Mo.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,y=e.DERSequence,v=e.DERSet,m=e.DERTaggedObject,I=e.ASN1Util.newObject,E=Object.keys(t);if(1!=E.length)throw"key of param shall be only one.";var S=E[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+S+":"))throw"undefined key: "+S;if("bool"==S)return new n(t[S]);if("int"==S)return new r(t[S]);if("bitstr"==S)return new i(t[S]);if("octstr"==S)return new o(t[S]);if("null"==S)return new a(t[S]);if("oid"==S)return new s(t[S]);if("enum"==S)return new c(t[S]);if("utf8str"==S)return new u(t[S]);if("numstr"==S)return new d(t[S]);if("prnstr"==S)return new l(t[S]);if("telstr"==S)return new p(t[S]);if("ia5str"==S)return new f(t[S]);if("utctime"==S)return new h(t[S]);if("gentime"==S)return new g(t[S]);if("seq"==S){for(var T=t[S],b=[],C=0;C<T.length;C++){var w=I(T[C]);b.push(w)}return new y({array:b})}if("set"==S){for(T=t[S],b=[],C=0;C<T.length;C++)w=I(T[C]),b.push(w);return new v({array:b})}if("tag"==S){var A=t[S];if("[object Array]"===Object.prototype.toString.call(A)&&3==A.length){var _=I(A[2]);return new m({tag:A[0],explicit:A[1],obj:_})}var O={};if(void 0!==A.explicit&&(O.explicit=A.explicit),void 0!==A.tag&&(O.tag=A.tag),void 0===A.obj)throw"obj shall be specified for 'tag'.";return O.obj=I(A.obj),new m(O)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},Mo.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 ao(r,2).toString(10),r="")}return e},Mo.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 ao(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},Mo.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""}},Mo.asn1.DERAbstractString=function(t){Mo.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))},xo.lang.extend(Mo.asn1.DERAbstractString,Mo.asn1.ASN1Object),Mo.asn1.DERAbstractTime=function(t){Mo.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}},xo.lang.extend(Mo.asn1.DERAbstractTime,Mo.asn1.ASN1Object),Mo.asn1.DERAbstractStructured=function(t){Mo.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)},xo.lang.extend(Mo.asn1.DERAbstractStructured,Mo.asn1.ASN1Object),Mo.asn1.DERBoolean=function(){Mo.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},xo.lang.extend(Mo.asn1.DERBoolean,Mo.asn1.ASN1Object),Mo.asn1.DERInteger=function(t){Mo.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Mo.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new ao(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))},xo.lang.extend(Mo.asn1.DERInteger,Mo.asn1.ASN1Object),Mo.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Mo.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}Mo.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))},xo.lang.extend(Mo.asn1.DERBitString,Mo.asn1.ASN1Object),Mo.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Mo.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}Mo.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},xo.lang.extend(Mo.asn1.DEROctetString,Mo.asn1.DERAbstractString),Mo.asn1.DERNull=function(){Mo.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},xo.lang.extend(Mo.asn1.DERNull,Mo.asn1.ASN1Object),Mo.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 ao(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};Mo.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=Mo.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))},xo.lang.extend(Mo.asn1.DERObjectIdentifier,Mo.asn1.ASN1Object),Mo.asn1.DEREnumerated=function(t){Mo.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Mo.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new ao(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))},xo.lang.extend(Mo.asn1.DEREnumerated,Mo.asn1.ASN1Object),Mo.asn1.DERUTF8String=function(t){Mo.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},xo.lang.extend(Mo.asn1.DERUTF8String,Mo.asn1.DERAbstractString),Mo.asn1.DERNumericString=function(t){Mo.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},xo.lang.extend(Mo.asn1.DERNumericString,Mo.asn1.DERAbstractString),Mo.asn1.DERPrintableString=function(t){Mo.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},xo.lang.extend(Mo.asn1.DERPrintableString,Mo.asn1.DERAbstractString),Mo.asn1.DERTeletexString=function(t){Mo.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},xo.lang.extend(Mo.asn1.DERTeletexString,Mo.asn1.DERAbstractString),Mo.asn1.DERIA5String=function(t){Mo.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},xo.lang.extend(Mo.asn1.DERIA5String,Mo.asn1.DERAbstractString),Mo.asn1.DERUTCTime=function(t){Mo.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))},xo.lang.extend(Mo.asn1.DERUTCTime,Mo.asn1.DERAbstractTime),Mo.asn1.DERGeneralizedTime=function(t){Mo.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))},xo.lang.extend(Mo.asn1.DERGeneralizedTime,Mo.asn1.DERAbstractTime),Mo.asn1.DERSequence=function(t){Mo.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}},xo.lang.extend(Mo.asn1.DERSequence,Mo.asn1.DERAbstractStructured),Mo.asn1.DERSet=function(t){Mo.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)},xo.lang.extend(Mo.asn1.DERSet,Mo.asn1.DERAbstractStructured),Mo.asn1.DERTaggedObject=function(t){Mo.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)))},xo.lang.extend(Mo.asn1.DERTaggedObject,Mo.asn1.ASN1Object);var ko,jo=(ko=function(t,e){return ko=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])},ko(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}ko(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Lo=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 jo(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===qi){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(qi={},e=0;e<16;++e)qi[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)qi[n.charAt(e)]=e;for(e=0;e<r.length;++e)qi[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=qi[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):Zi.unarmor(t),i=no.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=fo(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=fo(o,16);var a=i.sub[4].getHexStringValue();this.p=fo(a,16);var s=i.sub[5].getHexStringValue();this.q=fo(s,16);var c=i.sub[6].getHexStringValue();this.dmp1=fo(c,16);var u=i.sub[7].getHexStringValue();this.dmq1=fo(u,16);var d=i.sub[8].getHexStringValue();this.coeff=fo(d,16)}else{if(2!==i.sub.length)return!1;var l=i.sub[1].sub[0];e=l.sub[0].getHexStringValue(),this.n=fo(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 Mo.asn1.DERInteger({int:0}),new Mo.asn1.DERInteger({bigint:this.n}),new Mo.asn1.DERInteger({int:this.e}),new Mo.asn1.DERInteger({bigint:this.d}),new Mo.asn1.DERInteger({bigint:this.p}),new Mo.asn1.DERInteger({bigint:this.q}),new Mo.asn1.DERInteger({bigint:this.dmp1}),new Mo.asn1.DERInteger({bigint:this.dmq1}),new Mo.asn1.DERInteger({bigint:this.coeff})]};return new Mo.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return Ki(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new Mo.asn1.DERSequence({array:[new Mo.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Mo.asn1.DERNull]}),e=new Mo.asn1.DERSequence({array:[new Mo.asn1.DERInteger({bigint:this.n}),new Mo.asn1.DERInteger({int:this.e})]}),n=new Mo.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new Mo.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return Ki(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}(Do),Po=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 Lo(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(Qi(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return Ki(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return Ki(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,Qi(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new Lo,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}(),Bo=c.chaveMovelSignature,Go={publicKey:null},Fo=function(){var t=Ce((function(t){var e=t.apiClient,n=t.apiEndpoints,r=t.cancelToken;return Ae().mark((function t(){var i,o,a;return Ae().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),Go.publicKey=a,t.abrupt("return",a);case 9:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Vo=function(){var t=Ce((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 Ae().mark((function t(){var d,l,p;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return d=s.inCurrentMode.startSigning(),t.next=3,Fo({apiClient:c,apiEndpoints:s,cancelToken:a});case 3:return l=t.sent,(p=new Po).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)}}(),qo=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)}))},Ho=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 Po;return u.setPublicKey(Go.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})},Ko=function(){var t=Ce((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 Ae().mark((function t(){var y,v,m;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return y=d(a.SIGNATURE,Bo,c),s.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=4,Ue(Vo)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:u,actionType:y.actionType,signingPin:f,phone:h});case 4:return v=t.sent,l(v),t.next=8,Ue(qo,{shouldFormatResult:!1})({startSigningResult:v,confirmationCodeRequest:p,setOnCancelByUser:g});case 8:return m=t.sent,t.abrupt("return",Ue(Ho)({token:v.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)}}(),Qo=Ve(Bo,Ko,{pin:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),zo=Ei({moduleName:c.mitIdSignature,createModuleCreator:Ve}),Zo=c.ftnQesSignature,Wo=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})},Jo=function(){var t=Ce((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 Ae().mark((function t(){var g,y;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=d(a.SIGNATURE,Zo,l),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,Ue(Wo)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,phone:p,email:f,actionType:g.actionType});case 4:return y=t.sent,t.abrupt("return",Ue(h,{shouldFormatResult:!1})(y));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Yo=Ve(Zo,Jo,{phone:{type:"string",required:!0},email:{type:"string",required:!0}}),$o=c.noBankIdAdvSignature,Xo=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})},ta=function(){var t=Ce((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 Ae().mark((function t(){var h,g;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=d(a.SIGNATURE,$o,l),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Ue(Xo)({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",Ue(f,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ea=Ve($o,ta,{name:{type:"string",required:!0}}),na=qr({moduleName:c.certEuropeUsbTokenSignature,createModuleCreator:Ve}),ra=qr({moduleName:c.certSignUsbTokenSignature,createModuleCreator:Ve}),ia=Ei({moduleName:c.idinSignature,createModuleCreator:Ve}),oa=Ei({moduleName:c.verifaiSignature,createModuleCreator:Ve}),aa=c.spidQesSignature,sa=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})},ca=function(){var t=Ce((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 Ae().mark((function t(){var g,y;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=d(a.SIGNATURE,aa,l),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,Ue(sa)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,phone:p,email:f,actionType:g.actionType});case 4:return y=t.sent,t.abrupt("return",Ue(h,{shouldFormatResult:!1})(y));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ua=Ve(aa,ca,{email:{type:"string",required:!0},phone:{type:"string",required:!0}}),da=c.frejaSimpleSignature,la=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})},pa=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})},fa=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 Kr({pollInterval:2e3,fn:pa,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ha=function(){var t=Ce((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 Ae().mark((function t(){var f,h;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=d(a.SIGNATURE,da,u),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,Ue(la)({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",Ue(fa)({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)}}(),ga=Ve(da,ha,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),ya=c.audkenniQesSignature,va=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})},ma=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})},Ia=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})},Ea=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 Kr({pollInterval:2e3,fn:ma,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Sa=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 Kr({pollInterval:2e3,fn:Ia,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ta=function(){var t=Ce((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 Ae().mark((function t(){var f,h,g;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=d(a.SIGNATURE,ya,u),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,Ue(va)({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,Ue(Ea)({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",Ue(Sa)({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)}}(),ba=Ve(ya,Ta,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ca=Ei({moduleName:c.yesComQesSignature,createModuleCreator:Ve}),wa=Ei({moduleName:c.simplySignQesSignature,createModuleCreator:Ve}),Aa=c.uanatacaQesSignature,_a=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})},Oa=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)}))},Ra=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})},Na=function(){var t=Ce((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,y=t.setOnCancelByUser,v=t.started;return Ae().mark((function t(){var m,I,E;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return m=d(a.SIGNATURE,Aa,l),c.dispatch({message:"".concat(m.actionType,": signing started")}),t.next=4,Ue(_a)({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,v(I),t.next=8,Ue(Oa,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:g,setOnCancelByUser:y});case 8:return E=t.sent,t.abrupt("return",Ue(Ra)({token:I.data.token,apiClient:s,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e,confirmationCode:E}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Da=Ve(Aa,Na,{username:{type:"string",required:!0},password:{type:"string",required:!0},pin:{type:"string",required:!0}}),Ua=Ei({moduleName:c.certsignWebapiQesSignature,createModuleCreator:Ve}),xa=c.halcomQesSignature,Ma=function(t){var e=t.certificate,n=t.country,r=t.phone,i=t.email,o=t.username,a=t.cancelToken,s=t.apiEndpoints,c=t.apiClient,u=s.inCurrentMode.cscApiAuthorizeCredential();return c.post({url:u,withCredentials:!1,data:{sign_type:"halcom-qes-signature",certificate:e,country:n,phone:r,email:i,username:o},cancelToken:a})},ka=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})},ja=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})},La=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 Kr({pollInterval:2e3,fn:ja,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Pa=function(){var t=Ce((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,y=t.action,v=t.redirect;return Ae().mark((function t(){var m,I,E;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m=d(a.SIGNATURE,xa,h),c.dispatch({message:"".concat(m.actionType,": signing started")}),"cscApiAuthorizeCredential"!==y){t.next=7;break}return t.next=5,Ue(Ma)({country:h,username:l,phone:p,email:f,cancelToken:i,apiEndpoints:o,apiClient:s});case 5:return I=t.sent,t.abrupt("return",Ue(v,{shouldFormatResult:!1})(I));case 7:return t.next=9,Ue(ka)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,username:l,phone:p,email:f,countryCode:h,contractId:r,actionType:m.actionType});case 9:return E=t.sent,g(E),t.abrupt("return",Ue(La)({data:E.data,apiClient:s,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Ba=Ve(xa,Pa,{countryCode:{type:"string",required:!0},username:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Ga=c.swissIdQesSignature,Fa=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})},Va=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})},qa=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 Kr({pollInterval:2e3,fn:Va,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ha=function(){var t=Ce((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 Ae().mark((function t(){var h,g;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=d(a.SIGNATURE,Ga,p),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Ue(Fa)({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",Ue(qa)({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)}}(),Ka=Ve(Ga,Ha,{countryCode:{type:"string",required:!0},email:{type:"string",required:!0},docId:{type:"string",required:!0}}),Qa=c.swissComQesSignature,za=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})},Za=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})},Wa=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 Kr({pollInterval:2e3,fn:Za,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ja=function(){var t=Ce((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 Ae().mark((function t(){var h,g;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=d(a.SIGNATURE,Qa,p),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Ue(za)({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",Ue(Wa)({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)}}(),Ya=Ve(Qa,Ja,{countryCode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),$a=Ei({moduleName:c.mitIdAdvancedSignature,createModuleCreator:Ve}),Xa=Ei({moduleName:c.mitIdQesSignature,createModuleCreator:Ve}),ts=Ei({moduleName:c.seBankIdAdvancedSignature,createModuleCreator:Ve}),es=Ei({moduleName:c.seBankIdQesSignature,createModuleCreator:Ve}),ns=c.frejaAdvancedSignature,rs=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})},is=function(){var t=Ce((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 Ae().mark((function t(){var f,h;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=d(a.SIGNATURE,ns,u),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,Ue(rs)({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",Ue(p,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),os=Ve(ns,is,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),as=c.frejaQesSignature,ss=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})},cs=function(){var t=Ce((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 Ae().mark((function t(){var f,h;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=d(a.SIGNATURE,as,u),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,Ue(ss)({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",Ue(p,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),us=Ve(as,cs,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),ds=Ei({moduleName:c.gbOneIdAdvancedSignature,createModuleCreator:Ve}),ls=c.handwrittenSignature,ps=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.completeHandwritten(),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})},fs=function(){var t=Ce((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;return Ae().mark((function t(){var g;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=d(a.SIGNATURE,ls,u),console.log(g),s.dispatch({message:"".concat(g.actionType,": signing started")}),t.abrupt("return",Ue(ps)({apiClient:o,apiEndpoints:i,language:c,cancelToken:r,docId:n,clientId:e,emailToken:l,smsToken:p,handwrittenSignatureData:f,handwrittenSignatureDataUrl:h}));case 4:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),hs=Ve(ls,fs,{docId:{type:"string",required:!0}}),gs=c.haricaQesSignature,ys=function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.actionType,s=i.inCurrentMode.startSigning();return o.post({url:s,withCredentials:!1,data:{doc_id:n,client_id:e,sign_type:a},cancelToken:r})},vs=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.username,u=t.password,d=t.otpCode;return n.post({url:r.inCurrentMode.completeSignatureHaricaQes(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s,otp_code:d,username:c,password:u},cancelToken:o})},ms=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.username,u=t.password,d=t.otpCode;return Kr({pollInterval:2e3,fn:vs,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,username:c,password:u,otpCode:d}]}).start()},Is=function(){var t=Ce((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.username,l=t.password,p=t.otpCode,f=t.countryCode,h=t.started;return Ae().mark((function t(){var g,y;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=d(a.SIGNATURE,gs,f),s.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,Ue(ys)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,actionType:g.actionType});case 4:return y=t.sent,h(y),t.abrupt("return",Ue(ms)({data:y.data,apiClient:o,apiEndpoints:i,language:c,cancelToken:r,docId:n,clientId:e,username:u,password:l,otpCode:p}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Es=Ve(gs,Is,{countryCode:{type:"string",required:!0},username:{type:"string",required:!0},password:{type:"string",required:!0},otpCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ss=Ei({moduleName:c.veriffAdvancedSignature,createModuleCreator:Ve}),Ts=Object.freeze({sandbox:"sandbox",production:"production"});function bs(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 Cs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bs(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bs(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var ws=function(t,e,n){var r={};return Object.keys(t).forEach((function(i){r[i]=function(t,e,n){return function(r){var i=Cs(Cs({},e),r);return n?n(t(i)):t(i)}}(t[i],e,n)})),r},As=function(t){var e=t.method,n=t.baseUrl,r=t.clientId,i=t.redirectUri,o=t.state,a=t.language,s=t.country,c="".concat(n,"/oauth/start/").concat(e,"?client_id=").concat(r,"&redirect_uri=").concat(i,"&response_type=code");return a&&(c+="&lang=".concat(a)),o&&(c+="&state=".concat(o)),s&&(c+="&country=".concat(s)),c},_s=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Cs({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 As({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 As({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 As({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 As({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 As({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 As({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 As({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 As({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 As({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 As({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 As({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 As({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 As({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 As({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 As({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 As({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 As({method:"ftn-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},gbOneId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return As({method:"gb-one-id-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},veriff:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language,a=t.country;return As({method:"veriff-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o,country:a})},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")},completeSignatureHaricaQes:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/harica-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")},completeHandwritten:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/handwritten-simple-signature/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={},Ts.production,Cs({},ws(i,{baseUrl:r.base?r.base():"https://id.eideasy.com",state:e.state},e.modifyEndpointUrl))),n(t,Ts.sandbox,Cs({},ws(i,{baseUrl:r.base?r.base():"https://test.eideasy.com",state:e.state},e.modifyEndpointUrl))),t);return{get inCurrentMode(){var t=e.sandbox?Ts.sandbox:Ts.production;return o[t]}}},Os=c.eParakstsSmartCard,Rs=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsSmartCard({clientId:n,redirectUri:r})}}},Ns=function(){var t=Ce(Ae().mark((function t(e){var n,r,i,o,a;return Ae().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,Ue(Rs)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Ue(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ds=Ve(Os,Ns),Us=Ei({moduleName:c.itsmeQesSignature,createModuleCreator:Ve}),xs=Ei({moduleName:c.frIdentAdvancedSignature,createModuleCreator:Ve}),Ms=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=se({rawSettings:t,schema:ce}),n=Se({currentLanguage:"en"}),r=_s({countryCode:e.countryCode,sandbox:e.sandbox,modifyEndpointUrl:e.modifyEndpointUrl,state:e.oauthParamState},e.apiEndpoints),i=Te({clientId:e.clientId,remoteMonitoringEnabled:e.remoteMonitoringEnabled,apiEndpoints:r});return oe({settings:e,i18n:n,monitoringService:i,apiEndpoints:r,identificationModules:[ze,tn,an,dn,Ds,gn,En,Cn,On,Un,jn,Gn,Hn,Zn,$n,nr,ar,dr,hr,mr,Tr,Ar,Nr,Mr,Pr],signingModules:[Hr,$r,oi,li,vi,Si,Ti,bi,Yo,Ci,Oi,Ri,Ni,Di,ki,Qo,zo,ea,na,ra,ia,oa,ua,ga,ba,Ca,wa,Da,Ua,Ba,Ka,Ya,$a,Xa,ts,es,os,us,Us,xs,ds,hs,Es,Ss]})},ks=Ms}(),o}()}));
|
|
2
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.eidEasyBrowserClient=e():t.eidEasyBrowserClient=e()}(self,(function(){return function(){var t,e,n={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 y in t)!e&&!u.call(t,y)||f&&("length"==y||l&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,g))||h.push(y);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),y=n(9148),v=n(8517),m=n(1469),I=n(4144),E=n(6688),S=n(3218),T=n(2928),b=n(3674),C=n(1704),w="[object Arguments]",A="[object Function]",_="[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[_]=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[A]=O["[object WeakMap]"]=!1,t.exports=function t(e,n,R,N,D,U){var x,M=1&n,k=2&n,j=4&n;if(R&&(x=D?R(e,N,D,U):R(e)),void 0!==x)return x;if(!S(e))return e;var L=m(e);if(L){if(x=g(e),!M)return u(e,x)}else{var P=h(e),B=P==A||"[object GeneratorFunction]"==P;if(I(e))return c(e,M);if(P==_||P==w||B&&!D){if(x=k||B?{}:v(e),!M)return k?l(e,s(x,e)):d(e,a(x,e))}else{if(!O[P])return D?e:{};x=y(e,P,M)}}U||(U=new r);var G=U.get(e);if(G)return G;U.set(e,x),T(e)?e.forEach((function(r){x.add(t(r,n,R,r,e,U))})):E(e)&&e.forEach((function(r,i){x.set(i,t(r,n,R,i,e,U))}));var F=L?void 0:(j?k?f:p:k?C:b)(e);return i(F||e,(function(r,i){F&&(r=e[i=r]),o(x,i,t(r,n,R,i,e,U))})),x}},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),y=n(6390),v=n(9881);t.exports=function(t,e,n,m,I,E,S){var T=y(t,n),b=y(e,n),C=S.get(b);if(C)r(t,n,C);else{var w=E?E(T,b,n+"",t,e,S):void 0,A=void 0===w;if(A){var _=u(b),O=!_&&l(b),R=!_&&!O&&g(b);w=b,_||O||R?u(T)?w=T:d(T)?w=a(T):O?(A=!1,w=i(b,!0)):R?(A=!1,w=o(b,!0)):w=[]:h(b)||c(b)?(w=T,c(T)?w=v(T):f(T)&&!p(T)||(w=s(b))):A=!1}A&&(S.set(b,w),I(w,b,m,E,S),S.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),y=u(i),v=u(o),m=u(a),I=u(s),E=c;(r&&E(new r(new ArrayBuffer(1)))!=h||i&&E(new i)!=d||o&&E(o.resolve())!=l||a&&E(new a)!=p||s&&E(new s)!=f)&&(E=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 y:return d;case v:return l;case m:return p;case I:return f}return e}),t.exports=E},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 y(){}function v(){}var m={};l(m,c,(function(){return this}));var I=Object.getPrototypeOf,E=I&&I(I(R([])));E&&E!==n&&o.call(E,c)&&(m=E);var S=v.prototype=g.prototype=Object.create(m);function T(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 A(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 _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function R(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 y.prototype=v,a(S,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:y,configurable:!0}),y.displayName=l(v,d,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,d,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},T(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()}))},T(S),l(S,d,"Generator"),l(S,c,(function(){return this})),l(S,"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=R,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(_),!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),_(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;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:R(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)}}},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 Us},default:function(){return xs},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",GB_ONE_ID_LOGIN:"gb-one-id-login",VERIFF_LOGIN:"veriff-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",GB_ONE_ID_ADVANCED_SIGNATURE:"gb-one-id-advanced-signature",HANDWRITTEN_SIMPLE_SIGNATURE:"handwritten-simple-signature",HARICA_QES_SIGNATURE:"harica-qes-signature",VERIFF_ADVANCED_SIGNATURE:"veriff-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",gbOneId:"gbOneId",veriff:"veriff",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",gbOneIdAdvancedSignature:"gbOneIdAdvancedSignature",handwrittenSignature:"handwrittenSignature",haricaQesSignature:"haricaQesSignature",veriffAdvancedSignature:"veriffAdvancedSignature"},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","BE"]},{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"]},{actionType:a.GB_ONE_ID_LOGIN,handlingModule:s.gbOneId,supportedCountries:["GB"]},{actionType:a.VERIFF_LOGIN,handlingModule:s.veriff,supportedCountries:["AD","AO","AR","AM","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BT","BO","BA","BW","BR","BN","BG","BF","BI","KH","CM","CA","CV","CF","TD","CL","CN","CO","KM","CG","CD","CR","HR","CU","CY","CZ","CI","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","SZ","ET","FJ","FI","FR","GA","GM","GE","DE","GH","GR","GD","GT","GN","GW","GY","HT","VA","HN","HU","IS","IN","ID","IR","IQ","IE","IL","IT","JM","JP","JO","KZ","KE","KI","XK","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MG","MW","MY","MV","ML","MT","MH","MR","MU","MX","FM","MD","MC","MN","ME","MA","MZ","MM","NA","NR","NP","NL","NZ","NI","NE","NG","KP","MK","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PL","PT","QA","RO","RU","RW","KN","LC","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","KR","SS","ES","LK","SD","SR","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TO","TT","TN","TR","TM","TV","UG","UA","AE","GB","US","UY","UZ","VU","VE","VN","YE","ZM","ZW"]}]),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","BE"]},{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"]},{actionType:a.GB_ONE_ID_ADVANCED_SIGNATURE,handlingModule:s.gbOneIdAdvancedSignature,supportedCountries:["GB"]},{actionType:a.HANDWRITTEN_SIMPLE_SIGNATURE,handlingModule:s.handwrittenSignature,supportedCountries:["WORLD"]},{actionType:a.HARICA_QES_SIGNATURE,handlingModule:s.haricaQesSignature,supportedCountries:["GR"]},{actionType:a.VERIFF_ADVANCED_SIGNATURE,handlingModule:s.veriffAdvancedSignature,supportedCountries:["AD","AO","AR","AM","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BT","BO","BA","BW","BR","BN","BG","BF","BI","KH","CM","CA","CV","CF","TD","CL","CN","CO","KM","CG","CD","CR","HR","CU","CY","CZ","CI","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","SZ","ET","FJ","FI","FR","GA","GM","GE","DE","GH","GR","GD","GT","GN","GW","GY","HT","VA","HN","HU","IS","IN","ID","IR","IQ","IE","IL","IT","JM","JP","JO","KZ","KE","KI","XK","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MG","MW","MY","MV","ML","MT","MH","MR","MU","MX","FM","MD","MC","MN","ME","MA","MZ","MM","NA","NR","NP","NL","NZ","NI","NE","NG","KP","MK","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PL","PT","QA","RO","RU","RW","KN","LC","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","KR","SS","ES","LK","SD","SR","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TO","TT","TN","TR","TM","TV","UG","UA","AE","GB","US","UY","UZ","VU","VE","VN","YE","ZM","ZW"]}]),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);function p(t,e){return function(){return t.apply(e,arguments)}}const{toString:f}=Object.prototype,{getPrototypeOf:h}=Object,g=(y=Object.create(null),t=>{const e=f.call(t);return y[e]||(y[e]=e.slice(8,-1).toLowerCase())});var y;const v=t=>(t=t.toLowerCase(),e=>g(e)===t),m=t=>e=>typeof e===t,{isArray:I}=Array,E=m("undefined"),S=v("ArrayBuffer"),T=m("string"),b=m("function"),C=m("number"),w=t=>null!==t&&"object"==typeof t,A=t=>{if("object"!==g(t))return!1;const e=h(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},_=v("Date"),O=v("File"),R=v("Blob"),N=v("FileList"),D=v("URLSearchParams");function U(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,i;if("object"!=typeof t&&(t=[t]),I(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let a;for(r=0;r<o;r++)a=i[r],e.call(null,t[a],a,t)}}function x(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,i=n.length;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,k=t=>!E(t)&&t!==M,j=(L="undefined"!=typeof Uint8Array&&h(Uint8Array),t=>L&&t instanceof L);var L;const P=v("HTMLFormElement"),B=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),G=v("RegExp"),F=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};U(n,((n,i)=>{let o;!1!==(o=e(n,i,t))&&(r[i]=o||n)})),Object.defineProperties(t,r)},V="abcdefghijklmnopqrstuvwxyz",q="0123456789",H={DIGIT:q,ALPHA:V,ALPHA_DIGIT:V+V.toUpperCase()+q},K=v("AsyncFunction");var Q={isArray:I,isArrayBuffer:S,isBuffer:function(t){return null!==t&&!E(t)&&null!==t.constructor&&!E(t.constructor)&&b(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||b(t.append)&&("formdata"===(e=g(t))||"object"===e&&b(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&S(t.buffer),e},isString:T,isNumber:C,isBoolean:t=>!0===t||!1===t,isObject:w,isPlainObject:A,isUndefined:E,isDate:_,isFile:O,isBlob:R,isRegExp:G,isFunction:b,isStream:t=>w(t)&&b(t.pipe),isURLSearchParams:D,isTypedArray:j,isFileList:N,forEach:U,merge:function t(){const{caseless:e}=k(this)&&this||{},n={},r=(r,i)=>{const o=e&&x(n,i)||i;A(n[o])&&A(r)?n[o]=t(n[o],r):A(r)?n[o]=t({},r):I(r)?n[o]=r.slice():n[o]=r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&U(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:r}={})=>(U(e,((e,r)=>{n&&b(e)?t[r]=p(e,n):t[r]=e}),{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let i,o,a;const s={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)a=i[o],r&&!r(a,t,e)||s[a]||(e[a]=t[a],s[a]=!0);t=!1!==n&&h(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:g,kindOfTest:v,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(I(t))return t;let e=t.length;if(!C(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:P,hasOwnProperty:B,hasOwnProp:B,reduceDescriptors:F,freezeMethods:t=>{F(t,((e,n)=>{if(b(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];b(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return I(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:x,global:M,isContextDefined:k,ALPHABET:H,generateString:(t=16,e=H.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&b(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(w(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const i=I(t)?[]:{};return U(t,((t,e)=>{const o=n(t,r+1);!E(o)&&(i[e]=o)})),e[r]=void 0,i}}return t};return n(t,0)},isAsyncFn:K,isThenable:t=>t&&(w(t)||b(t))&&b(t.then)&&b(t.catch)};function z(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}Q.inherits(z,Error,{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:Q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Z=z.prototype,W={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{W[t]={value:t}})),Object.defineProperties(z,W),Object.defineProperty(Z,"isAxiosError",{value:!0}),z.from=(t,e,n,r,i,o)=>{const a=Object.create(Z);return Q.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),z.call(a,t.message,e,n,r,i),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};var J=z;function Y(t){return Q.isPlainObject(t)||Q.isArray(t)}function $(t){return Q.endsWith(t,"[]")?t.slice(0,-2):t}function X(t,e,n){return t?t.concat(e).map((function(t,e){return t=$(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const tt=Q.toFlatObject(Q,{},null,(function(t){return/^is[A-Z]/.test(t)}));var et=function(t,e,n){if(!Q.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!Q.isUndefined(e[t])}))).metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Q.isSpecCompliantForm(e);if(!Q.isFunction(i))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(Q.isDate(t))return t.toISOString();if(!s&&Q.isBlob(t))throw new J("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(t)||Q.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function u(t,n,i){let s=t;if(t&&!i&&"object"==typeof t)if(Q.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(Q.isArray(t)&&function(t){return Q.isArray(t)&&!t.some(Y)}(t)||(Q.isFileList(t)||Q.endsWith(n,"[]"))&&(s=Q.toArray(t)))return n=$(n),s.forEach((function(t,r){!Q.isUndefined(t)&&null!==t&&e.append(!0===a?X([n],r,o):null===a?n:n+"[]",c(t))})),!1;return!!Y(t)||(e.append(X(i,n,o),c(t)),!1)}const d=[],l=Object.assign(tt,{defaultVisitor:u,convertValue:c,isVisitable:Y});if(!Q.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!Q.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),Q.forEach(n,(function(n,o){!0===(!(Q.isUndefined(n)||null===n)&&i.call(e,n,Q.isString(o)?o.trim():o,r,l))&&t(n,r?r.concat(o):[o])})),d.pop()}}(t),e};function nt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function rt(t,e){this._pairs=[],t&&et(t,this,e)}const it=rt.prototype;it.append=function(t,e){this._pairs.push([t,e])},it.toString=function(t){const e=t?function(e){return t.call(this,e,nt)}:nt;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var ot=rt;function at(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function st(t,e,n){if(!e)return t;const r=n&&n.encode||at,i=n&&n.serialize;let o;if(o=i?i(e,n):Q.isURLSearchParams(e)?e.toString():new ot(e,n).toString(r),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}var ct=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Q.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},ut={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ot,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},lt=function(t){function e(t,n,r,i){let o=t[i++];const a=Number.isFinite(+o),s=i>=t.length;return o=!o&&Q.isArray(r)?r.length:o,s?(Q.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&Q.isObject(r[o])||(r[o]=[]),e(t,n,r[o],i)&&Q.isArray(r[o])&&(r[o]=function(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}(r[o])),!a)}if(Q.isFormData(t)&&Q.isFunction(t.entries)){const n={};return Q.forEachEntry(t,((t,r)=>{e(function(t){return Q.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null};const pt={transitional:ut,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,i=Q.isObject(t);if(i&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return r&&r?JSON.stringify(lt(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return et(t,new dt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return dt.isNode&&Q.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((o=Q.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return et(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),function(t,e,n){if(Q.isString(t))try{return(0,JSON.parse)(t),Q.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||pt.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&Q.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw J.from(t,J.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dt.classes.FormData,Blob:dt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],(t=>{pt.headers[t]={}}));var ft=pt;const ht=Q.toObjectSet(["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"]),gt=Symbol("internals");function yt(t){return t&&String(t).trim().toLowerCase()}function vt(t){return!1===t||null==t?t:Q.isArray(t)?t.map(vt):String(t)}function mt(t,e,n,r,i){return Q.isFunction(r)?r.call(this,e,n):(i&&(e=n),Q.isString(e)?Q.isString(r)?-1!==e.indexOf(r):Q.isRegExp(r)?r.test(e):void 0:void 0)}class It{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function i(t,e,n){const i=yt(e);if(!i)throw new Error("header name must be a non-empty string");const o=Q.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||e]=vt(t))}const o=(t,e)=>Q.forEach(t,((t,n)=>i(t,n,e)));return Q.isPlainObject(t)||t instanceof this.constructor?o(t,e):Q.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())?o((t=>{const e={};let n,r,i;return t&&t.split("\n").forEach((function(t){i=t.indexOf(":"),n=t.substring(0,i).trim().toLowerCase(),r=t.substring(i+1).trim(),!n||e[n]&&ht[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e):null!=t&&i(e,t,n),this}get(t,e){if(t=yt(t)){const n=Q.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(Q.isFunction(e))return e.call(this,t,n);if(Q.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=yt(t)){const n=Q.findKey(this,t);return!(!n||void 0===this[n]||e&&!mt(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function i(t){if(t=yt(t)){const i=Q.findKey(n,t);!i||e&&!mt(0,n[i],i,e)||(delete n[i],r=!0)}}return Q.isArray(t)?t.forEach(i):i(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const i=e[n];t&&!mt(0,this[i],i,t,!0)||(delete this[i],r=!0)}return r}normalize(t){const e=this,n={};return Q.forEach(this,((r,i)=>{const o=Q.findKey(n,i);if(o)return e[o]=vt(r),void delete e[i];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete e[i],e[a]=vt(r),n[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return Q.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&Q.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[gt]=this[gt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=yt(t);e[r]||(function(t,e){const n=Q.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,i){return this[r].call(this,e,t,n,i)},configurable:!0})}))}(n,t),e[r]=!0)}return Q.isArray(t)?t.forEach(r):r(t),this}}It.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(It.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),Q.freezeMethods(It);var Et=It;function St(t,e){const n=this||ft,r=e||n,i=Et.from(r.headers);let o=r.data;return Q.forEach(t,(function(t){o=t.call(n,o,i.normalize(),e?e.status:void 0)})),i.normalize(),o}function Tt(t){return!(!t||!t.__CANCEL__)}function bt(t,e,n){J.call(this,null==t?"canceled":t,J.ERR_CANCELED,e,n),this.name="CanceledError"}Q.inherits(bt,J,{__CANCEL__:!0});var Ct=bt,wt=dt.isStandardBrowserEnv?{write:function(t,e,n,r,i,o){const a=[];a.push(t+"="+encodeURIComponent(e)),Q.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Q.isString(r)&&a.push("path="+r),Q.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){const 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(){}};function At(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var _t=dt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=Q.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};function Ot(t,e){let n=0;const r=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i,o=0,a=0;return e=void 0!==e?e:1e3,function(s){const c=Date.now(),u=r[a];i||(i=c),n[o]=s,r[o]=c;let d=a,l=0;for(;d!==o;)l+=n[d++],d%=t;if(o=(o+1)%t,o===a&&(a=(a+1)%t),c-i<e)return;const p=u&&c-u;return p?Math.round(1e3*l/p):void 0}}(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,c=r(s);n=o;const u={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&o<=a?(a-o)/c:void 0,event:i};u[e?"download":"upload"]=!0,t(u)}}const Rt={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){let r=t.data;const i=Et.from(t.headers).normalize(),o=t.responseType;let a,s;function c(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}Q.isFormData(r)&&(dt.isStandardBrowserEnv||dt.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?Q.isString(s=i.getContentType())&&i.setContentType(s.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let u=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(e+":"+n))}const d=At(t.baseURL,t.url);function l(){if(!u)return;const r=Et.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),c()}),(function(t){n(t),c()}),{data:o&&"text"!==o&&"json"!==o?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:t,request:u}),u=null}if(u.open(t.method.toUpperCase(),st(d,t.params,t.paramsSerializer),!0),u.timeout=t.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(n(new J("Request aborted",J.ECONNABORTED,t,u)),u=null)},u.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const r=t.transitional||ut;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new J(e,r.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,t,u)),u=null},dt.isStandardBrowserEnv){const e=(t.withCredentials||_t(d))&&t.xsrfCookieName&&wt.read(t.xsrfCookieName);e&&i.set(t.xsrfHeaderName,e)}void 0===r&&i.setContentType(null),"setRequestHeader"in u&&Q.forEach(i.toJSON(),(function(t,e){u.setRequestHeader(e,t)})),Q.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),o&&"json"!==o&&(u.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&u.addEventListener("progress",Ot(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Ot(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=e=>{u&&(n(!e||e.type?new Ct(null,t,u):e),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const p=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(d);p&&-1===dt.protocols.indexOf(p)?n(new J("Unsupported protocol "+p+":",J.ERR_BAD_REQUEST,t)):u.send(r||null)}))}};Q.forEach(Rt,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const Nt=t=>`- ${t}`,Dt=t=>Q.isFunction(t)||null===t||!1===t;var Ut=t=>{t=Q.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let o=0;o<e;o++){let e;if(n=t[o],r=n,!Dt(n)&&(r=Rt[(e=String(n)).toLowerCase()],void 0===r))throw new J(`Unknown adapter '${e}'`);if(r)break;i[e||"#"+o]=r}if(!r){const t=Object.entries(i).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let n=e?t.length>1?"since :\n"+t.map(Nt).join("\n"):" "+Nt(t[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function xt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ct(null,t)}function Mt(t){return xt(t),t.headers=Et.from(t.headers),t.data=St.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Ut(t.adapter||ft.adapter)(t).then((function(e){return xt(t),e.data=St.call(t,t.transformResponse,e),e.headers=Et.from(e.headers),e}),(function(e){return Tt(e)||(xt(t),e&&e.response&&(e.response.data=St.call(t,t.transformResponse,e.response),e.response.headers=Et.from(e.response.headers))),Promise.reject(e)}))}const kt=t=>t instanceof Et?t.toJSON():t;function jt(t,e){e=e||{};const n={};function r(t,e,n){return Q.isPlainObject(t)&&Q.isPlainObject(e)?Q.merge.call({caseless:n},t,e):Q.isPlainObject(e)?Q.merge({},e):Q.isArray(e)?e.slice():e}function i(t,e,n){return Q.isUndefined(e)?Q.isUndefined(t)?void 0:r(void 0,t,n):r(t,e,n)}function o(t,e){if(!Q.isUndefined(e))return r(void 0,e)}function a(t,e){return Q.isUndefined(e)?Q.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function s(n,i,o){return o in e?r(n,i):o in t?r(void 0,n):void 0}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(t,e)=>i(kt(t),kt(e),!0)};return Q.forEach(Object.keys(Object.assign({},t,e)),(function(r){const o=c[r]||i,a=o(t[r],e[r],r);Q.isUndefined(a)&&o!==s||(n[r]=a)})),n}const Lt={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Lt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const Pt={};Lt.transitional=function(t,e,n){function r(t,e){return"[Axios v1.5.1] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,i,o)=>{if(!1===t)throw new J(r(i," has been removed"+(e?" in "+e:"")),J.ERR_DEPRECATED);return e&&!Pt[i]&&(Pt[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,o)}};var Bt={assertOptions:function(t,e,n){if("object"!=typeof t)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],a=e[o];if(a){const e=t[o],n=void 0===e||a(e,o,t);if(!0!==n)throw new J("option "+o+" must be "+n,J.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new J("Unknown option "+o,J.ERR_BAD_OPTION)}},validators:Lt};const Gt=Bt.validators;class Ft{constructor(t){this.defaults=t,this.interceptors={request:new ct,response:new ct}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=jt(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:i}=e;void 0!==n&&Bt.assertOptions(n,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean)},!1),null!=r&&(Q.isFunction(r)?e.paramsSerializer={serialize:r}:Bt.assertOptions(r,{encode:Gt.function,serialize:Gt.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=i&&Q.merge(i.common,i[e.method]);i&&Q.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete i[t]})),e.headers=Et.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let d,l=0;if(!s){const t=[Mt.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,c),d=t.length,u=Promise.resolve(e);l<d;)u=u.then(t[l++],t[l++]);return u}d=a.length;let p=e;for(l=0;l<d;){const t=a[l++],e=a[l++];try{p=t(p)}catch(t){e.call(this,t);break}}try{u=Mt.call(this,p)}catch(t){return Promise.reject(t)}for(l=0,d=c.length;l<d;)u=u.then(c[l++],c[l++]);return u}getUri(t){return st(At((t=jt(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}Q.forEach(["delete","get","head","options"],(function(t){Ft.prototype[t]=function(e,n){return this.request(jt(n||{},{method:t,url:e,data:(n||{}).data}))}})),Q.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request(jt(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ft.prototype[t]=e(),Ft.prototype[t+"Form"]=e(!0)}));var Vt=Ft;class qt{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,i){n.reason||(n.reason=new Ct(t,r,i),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new qt((function(e){t=e})),cancel:t}}}var Ht=qt;const Kt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Kt).forEach((([t,e])=>{Kt[e]=t}));var Qt=Kt;const zt=function t(e){const n=new Vt(e),r=p(Vt.prototype.request,n);return Q.extend(r,Vt.prototype,n,{allOwnKeys:!0}),Q.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(jt(e,n))},r}(ft);zt.Axios=Vt,zt.CanceledError=Ct,zt.CancelToken=Ht,zt.isCancel=Tt,zt.VERSION="1.5.1",zt.toFormData=et,zt.AxiosError=J,zt.Cancel=zt.CanceledError,zt.all=function(t){return Promise.all(t)},zt.spread=function(t){return function(e){return t.apply(null,e)}},zt.isAxiosError=function(t){return Q.isObject(t)&&!0===t.isAxiosError},zt.mergeConfig=jt,zt.AxiosHeaders=Et,zt.formToJSON=t=>lt(Q.isHTMLForm(t)?new FormData(t):t),zt.getAdapter=Ut,zt.HttpStatusCode=Qt,zt.default=zt;var Zt=zt,Wt=Zt.CancelToken,Jt=Zt.isCancel;Zt.Cancel,Zt.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 Yt=function(t){return Zt(t)};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 Xt(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 te=function(t,e){var n,r=e.modifyRequestSettings,i=t;return"function"==typeof r&&(n=r(i)),n&&(i=l()(i,n)),i},ee=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 Yt(te(Xt({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 Yt(te(Xt({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:Wt})};function ne(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 re(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ne(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ne(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var ie=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=re({},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:ee({modifyRequestSettings:l.modifyRequestSettings})});g[e.MODULE_NAME]=e}));var y={};return i.forEach((function(t){var e=t({coreContext:{config:l,i18n:s,monitoringService:d},apiClient:ee({modifyRequestSettings:l.modifyRequestSettings})});y[e.MODULE_NAME]=e})),Object.freeze({identification:re({},g),signature:re({},y),getAllMethods:h,setLanguage:s.setLanguage,setCountryCode:p,getCountryCode:f})};function oe(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 ae=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?oe(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oe(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},se={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"}},ce=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."}'),ue=i.t(ce,2),de=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."}'),le=i.t(de,2),pe=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."}'),fe=i.t(pe,2),he=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."}'),ge=i.t(he,2),ye=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."}'),ve=i.t(ye,2),me=JSON.parse('{"id-card-read-timeout":"Чтение удостоверения личности заняло слишком много времени. Закройте все открытые окна браузера и повторите попытку.","no_certificates":"Не удалось прочитать сертификаты. Убедитесь, что карта находится в считывателе и считыватель работает исправно."}'),Ie={de:ue,en:le,et:fe,lt:ge,lv:ve,ru:i.t(me,2)},Ee=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?Ie: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})},Se=function(t){var e=t.clientId,n=t.remoteMonitoringEnabled,r=t.apiEndpoints;return{dispatch:function(t){var i=t.message;n&&Yt({url:r.inCurrentMode.eideasyMonitoring(),method:"post",cache:"no-cache",withCredentials:!1,data:{client_id:e,source:"browser-client",message:i}})}}};function Te(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 be(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Te(o,r,i,a,s,"next",t)}function s(t){Te(o,r,i,a,s,"throw",t)}a(void 0)}))}}var Ce=i(4687),we=i.n(Ce),Ae=i(361),_e=i.n(Ae)(),Oe=function(t){var e=t;return Jt(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},Re=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,n=t.message,r=_e({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},Ne=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.error},De=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=be(we().mark((function e(){var n,i,o=arguments;return we().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=Ne(n))){e.next=6;break}throw Oe(i);case 6:return e.abrupt("return",r?Re(n):n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()};class Ue extends Error{name="NonError";constructor(t){super(Ue._prepareSuperMessage(t))}static _prepareSuperMessage(t){try{return JSON.stringify(t)}catch{return String(t)}}}const xe=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],Me=Symbol(".toJSON was called"),ke=({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[Me])return(t=>{t[Me]=!0;const e=t.toJSON();return delete t[Me],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]=ke({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 xe)"string"==typeof t[e]&&Object.defineProperty(a,e,{value:t[e],enumerable:!!r||n,configurable:!0,writable:!0});return a};function je(t,e={}){const{maxDepth:n=Number.POSITIVE_INFINITY}=e;return"object"==typeof t&&null!==t?ke({from:t,seen:[],forceEnumerable:!0,maxDepth:n,depth:0}):"function"==typeof t?`[Function: ${t.name||"anonymous"}]`:t}function Le(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 Pe(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Le(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Be=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=Pe(Pe({},se),n),i=Pe(Pe({},s),t),u=ae({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,y={onCancelByUser:function(){}},v=function(t){y.onCancelByUser=t},m=function(){h.cancel()},I=function(){y.onCancelByUser(),m()},E=function(){var t=be(we().mark((function t(){return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(Pe(Pe({},u),{},{language:f,i18n:a,monitoringService:c,cancelToken:g,cancel:m,setOnCancelByUser:v,apiClient:o})).then((function(t){d(t)})).catch((function(t){console&&console.error&&console.error(t),c.dispatch({message:JSON.stringify(je(t))}),l(Oe(t))})).finally(p);case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return E().catch((function(t){console&&console.error&&console.error(t),c.dispatch({message:JSON.stringify(je(t))}),l(Oe(t)),p(Oe(t))})),Object.freeze({cancel:I})}})}};function Ge(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 Fe(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ge(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ge(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Ve=s.idCard,qe=function(){var t=be(we().mark((function t(e){var n,i,o,a,s,c,d;return we().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,Ve,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,De(s)(Fe(Fe({},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,De(c)(Fe(Fe({},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)}}(),He=Be(Ve,qe,{countryCode:{type:"string",required:!0}}),Ke=function(){var t=be((function(t){var e=t.fn,n=t.shouldContinue,r=t.interval;return we().mark((function t(){var i,o;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=0,o=function(){var t=be(we().mark((function t(a,s){var c,u;return we().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)}}(),Qe=Ke;function ze(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 Ze(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ze(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ze(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var We=s.smartId,Je=function(){var t=be(we().mark((function t(e){var n,i,o,a,s,c,d,l,p,f,h,g;return we().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,We);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,We);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 Qe({fn:function(){return f(Ze(Ze({},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=Jt(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,De(p)(Ze(Ze({},e),{},{cancelToken:c,language:d,idcode:o}));case 6:return g=t.sent,i(g),t.next=10,De(h)({config:e,data:Ze({},g.data),cancelToken:c,pollInterval:s,language:d});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)}}(),Ye=Be(We,Je,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function $e(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 Xe(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?$e(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var tn=s.mobileId,en=function(){var t=be(we().mark((function t(e){var n,i,o,a,s,c,d,l,p,f,h,g,y;return we().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,tn,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,tn,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})},g=function(t){var e=12e4/p,n=0;return Qe({fn:function(){return h(Xe(Xe({},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=Jt(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,De(f)(Xe(Xe({},e),{},{cancelToken:n,language:i,idcode:c,phone:d}));case 6:return y=t.sent,s(y),t.next=10,De(g)({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)}}(),nn=Be(tn,en,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0}}),rn=s.eParakstsMobile,on=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsMobile({clientId:n,redirectUri:r})}}},an=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(on)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),sn=Be(rn,an);function cn(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 un(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?cn(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var dn=s.frejaEid,ln=function(){var t=be(we().mark((function t(e){var n,i,o,a,s,c,d,l,p,f,h,g;return we().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,dn);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,dn);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 Qe({fn:function(){return f(un(un({},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=Jt(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,De(p)(un(un({},e),{},{cancelToken:c,language:d,idcode:o}));case 6:return g=t.sent,i(g),t.next=10,De(h)({config:e,data:un({},g.data),cancelToken:c,language:d,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)}}(),pn=Be(dn,ln,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function fn(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 hn(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?fn(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var gn=s.zealId,yn=function(){var t=be(we().mark((function t(e){var n,i,o,a,s,c,d;return we().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,gn);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,De(a)(hn(hn({},e),{},{cancelToken:n}));case 6:return d=t.sent,t.next=9,De(s)(hn(hn({},e),{},{cancelToken:n,iframeUrl:d.data.url}));case 9:return d=t.sent,t.next=12,De(c)(hn(hn({},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)}}(),vn=Be(gn,yn,{countryCode:{type:"string",required:!0},iframeHolder:{type:"object",required:!0}}),mn=s.mojeId,In=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.mojeId({clientId:n,redirectUri:r})}}},En=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(In)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Sn=Be(mn,En),Tn=s.edoAppEid,bn=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.edoAppEid({clientId:n,redirectUri:r})}}},Cn=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(bn)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),wn=Be(Tn,Cn),An=s.finnishTrustNetwork,_n=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})}}},On=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(_n)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Rn=Be(An,On),Nn=s.atHandy,Dn=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.atHandy({clientId:n,redirectUri:r})}}},Un=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(Dn)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),xn=Be(Nn,Un),Mn=s.itsme,kn=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})}}},jn=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(kn)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ln=Be(Mn,jn),Pn=s.itsmeBasic,Bn=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})}}},Gn=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(Bn)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Fn=Be(Pn,Gn),Vn=s.itsmeStandard,qn=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})}}},Hn=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(qn)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Kn=Be(Vn,Hn),Qn=s.seBankId,zn=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})}}},Zn=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(zn)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Wn=Be(Qn,Zn),Jn=s.idin,Yn=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})}}},$n=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(Yn)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Xn=Be(Jn,$n),tr=s.idinCustomerId,er=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})}}},nr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(er)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),rr=Be(tr,nr),ir=s.verifai,or=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})}}},ar=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(or)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),sr=Be(ir,ar),cr=s.yoonik,ur=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})}}},dr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(ur)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),lr=Be(cr,dr),pr=s.plMojeId,fr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.plMojeId({clientId:n,redirectUri:r})}}},hr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(fr)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),gr=Be(pr,hr),yr=s.mitId,vr=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})}}},mr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(vr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ir=Be(yr,mr),Er=s.norwegianBankId,Sr=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})}}},Tr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(Sr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),br=Be(Er,Tr),Cr=s.ftn,wr=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})}}},Ar=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(wr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_r=Be(Cr,Ar),Or=s.gbOneId,Rr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.gbOneId({clientId:n,redirectUri:r,language:i})}}},Nr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(Rr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Dr=Be(Or,Nr),Ur=s.veriff,xr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language,o=t.country;return{data:{redirect_uri:e.inCurrentMode.veriff({clientId:n,redirectUri:r,language:i,country:o})}}},Mr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s,c;return we().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,s=e.country,t.next=3,De(xr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a,country:s});case 3:return c=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(c));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),kr=Be(Ur,Mr),jr=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};(jr.prototype=new Error).name="MethodException";var Lr=jr,Pr={iframeHolder:{type:"object"},docId:{type:"string",required:!0}},Br=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(je(r));e.dispatch({message:"".concat(n,": ").concat(t,", reason: ").concat(i)})}})},Gr=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 Lr({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=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=be((function(t){var n=t.countryCode,r=t.clientId,o=t.apiEndpoints,u=t.iframeHolder,g=t.i18n,y=t.docId,v=t.cancelToken,m=t.apiClient,I=t.monitoringService,E=t.action,S=t.redirect;return we().mark((function t(){var T,b,C,w,A,_,O,R;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return T=Br({monitoringService:I,moduleName:e}),t.next=3,De(a,{shouldFormatResult:!1})({countryCode:n,clientId:r,apiEndpoints:o});case 3:return b=t.sent,t.next=6,De(c,{shouldFormatResult:!1})({iframeUrl:b,iframeHolder:u,i18n:g,monitor:T}).catch((function(t){return s(t,g)}));case 6:return C=t.sent,t.next=9,De(i,{shouldFormatResult:!1})({iframe:C});case 9:return w=t.sent,t.next=12,De(d)({messenger:w,monitor:T}).catch((function(t){return s(t,g)}));case 12:if(A=t.sent,"cscApiAuthorizeCredential"!==E){t.next=18;break}return t.next=16,De(h)({certificate:A.data.certificate,actionType:"id-card",country:n,cancelToken:v,apiEndpoints:o,apiClient:m});case 16:return _=t.sent,t.abrupt("return",De(S,{shouldFormatResult:!1})(_));case 18:return t.next=20,De(l)({certificate:A.data.certificate,clientId:r,docId:y,cancelToken:v,apiEndpoints:o,apiClient:m,monitor:T});case 20:return O=t.sent,t.next=23,De(p,{shouldFormatResult:!1})({messenger:w,hexDigest:O.data.hexDigest,monitor:T}).catch((function(t){return s(t,g)}));case 23:return R=t.sent,t.abrupt("return",De(f)({signature:R.signature,clientId:r,docId:y,cancelToken:v,apiEndpoints:o,apiClient:m}));case 25:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,g,Pr)},Fr=Gr({moduleName:s.idCardSignature,createModuleCreator:Be});function Vr(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 qr=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 Qe({fn:function(){return o.apply(void 0,function(t){if(Array.isArray(t))return Vr(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 Vr(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)?Vr(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;c(t);var r=n&&n.data&&n.data.status,i=Jt(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})}}},Hr=s.mobileIdSignature,Kr=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})},Qr=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})},zr=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})},Zr=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 qr({pollInterval:2e3,maxPollDuration:12e4,fn:zr,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Wr=function(){var t=be((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 we().mark((function t(){var y,v,m;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("cscApiAuthorizeCredential"!==h){t.next=5;break}return t.next=3,De(Kr)({country:p,idcode:d,phone:l,cancelToken:i,apiEndpoints:o,apiClient:a});case 3:return y=t.sent,t.abrupt("return",De(g,{shouldFormatResult:!1})(y));case 5:return v=u(r.SIGNATURE,Hr,p),s.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=9,De(Qr)({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",De(Zr)({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)}}(),Jr=Be(Hr,Wr,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),Yr=s.smartIdSignature,$r=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})},Xr=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})},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,c=t.onTryComplete;return qr({pollInterval:2e3,maxPollDuration:12e4,onPoll:function(t){c({data:t&&t.result&&t.result.data||{}})},fn:Xr,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ei=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})},ni=function(){var t=be((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,y=t.onTryComplete,v=t.waitForChallengeCode,m=void 0===v||v;return we().mark((function t(){var v,I,E;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v=u(r.SIGNATURE,Yr,p),"cscApiAuthorizeCredential"!==h){t.next=6;break}return t.next=4,De(ei)({country:p,idcode:l,cancelToken:o,apiEndpoints:a,apiClient:s});case 4:return I=t.sent,t.abrupt("return",De(g,{shouldFormatResult:!1})(I));case 6:return c.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=9,De($r)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,idcode:l,countryCode:p,contractId:i,waitForChallengeCode:m});case 9:return E=t.sent,f(E),t.abrupt("return",De(ti)({data:E.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e,onTryComplete:y}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ri=Be(Yr,ni,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),ii=s.evroTrustSignature,oi=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})},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.completeSignatureEvrotrust(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},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 qr({pollInterval:2e3,fn:ai,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ci=function(){var t=be((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 we().mark((function t(){var y,v;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return y=u(r.SIGNATURE,ii,h),c.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=4,De(oi)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,idcode:l,phone:p,email:f,countryCode:h,contractId:i,actionType:y.actionType});case 4:return v=t.sent,g(v),t.abrupt("return",De(si)({data:v.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)}}(),ui=Be(ii,ci,{countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),di=s.otpSignature,li=function(){var t=be((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 we().mark((function t(){var c;return we().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)}}(),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)}))},fi=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})},hi=function(){var t=be((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,y=t.confirmationCodeRequest,v=t.setOnCancelByUser;return we().mark((function t(){var m,I,E;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m=u(r.SIGNATURE,di,d),console.log(m),s.dispatch({message:"".concat(m.actionType,": signing started")}),p||l){t.next=13;break}return t.next=6,De(li)({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,De(pi,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:y,setOnCancelByUser:v});case 10:E=t.sent,p=E.smsToken,l=E.emailToken;case 13:return t.abrupt("return",De(fi)({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)}}(),gi=Be(di,hi,{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),yi={docId:{type:"string",required:!0},confirmedBySigner:{validator:function(t){return[null,!0,!1].includes(t)}}},vi=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})},mi=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=t.country,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,confirmed_by_signer:u,country:d},cancelToken:i})},o=function(){var t=be((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,y=t.action;return we().mark((function t(){var v,m,I;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v=u(r.SIGNATURE,e,f),"cscApiAuthorizeCredential"!==y){t.next=6;break}return t.next=4,De(vi)({country:f,cancelToken:s,apiEndpoints:c,apiClient:d,actionType:v.actionType});case 4:return m=t.sent,t.abrupt("return",De(h,{shouldFormatResult:!1})(m));case 6:return l.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=9,De(i)({contractId:a,clientId:n,docId:o,cancelToken:s,apiEndpoints:c,apiClient:d,language:p,actionType:v.actionType,confirmedBySigner:g,country:f});case 9:return I=t.sent,t.abrupt("return",De(h,{shouldFormatResult:!1})(I));case 11:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,o,yi)},Ii=mi({moduleName:s.eParakstsMobileSignature,createModuleCreator:Be}),Ei=mi({moduleName:s.ftnAdvancedFullSignature,createModuleCreator:Be}),Si=mi({moduleName:s.ftnSignature,createModuleCreator:Be}),Ti=mi({moduleName:s.atHandySignature,createModuleCreator:Be}),bi=s.zealIdSignature,Ci=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.docId;return{data:{redirect_uri:e.inCurrentMode.startZealIdSignature({clientId:n,docId:r})}}},wi=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(Ci)({apiEndpoints:r,clientId:i,docId:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ai=Be(bi,wi),_i=mi({moduleName:s.mojeIdSignature,createModuleCreator:Be}),Oi=mi({moduleName:s.googleSignature,createModuleCreator:Be}),Ri=mi({moduleName:s.seBankIdSignature,createModuleCreator:Be}),Ni=s.dTrustSignMeSignature,Di=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})},Ui=function(){var t=be((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 we().mark((function t(){var h,g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,Ni,l),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,De(Di)({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",De(f,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),xi=Be(Ni,Ui,{username:{type:"string",required:!0}});function Mi(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function ki(t,e){return t&e}function ji(t,e){return t|e}function Li(t,e){return t^e}function Pi(t,e){return t&~e}function Bi(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 Gi(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var Fi,Vi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function qi(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=Vi.charAt(n>>6)+Vi.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=Vi.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=Vi.charAt(n>>2)+Vi.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function Hi(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var o=Vi.indexOf(t.charAt(e));o<0||(0==r?(n+=Mi(o>>2),i=3&o,r=1):1==r?(n+=Mi(i<<2|o>>4),i=15&o,r=2):2==r?(n+=Mi(i),n+=Mi(o>>2),i=3&o,r=3):(n+=Mi(i<<2|o>>4),n+=Mi(15&o),r=0))}return 1==r&&(n+=Mi(i<<2)),n}var Ki,Qi={decode:function(t){var e;if(void 0===Ki){var n="= \f\n\r\t \u2028\u2029";for(Ki=Object.create(null),e=0;e<64;++e)Ki["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(Ki["-"]=62,Ki._=63,e=0;e<n.length;++e)Ki[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=Ki[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=Qi.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 Qi.decode(t)}},zi=1e13,Zi=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)<zi?e=0:r-=(e=0|r/zi)*zi,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+=zi,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+=(zi+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*zi+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),Wi=/^(\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)?)?$/,Ji=/^(\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 Yi(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var $i,Xi=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?Wi:Ji).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 Zi(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+Yi(o,n)}return i+o},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return Yi(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 Zi,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 Zi)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 Yi(r,n);i=new Zi,o=0}}return o>0&&(r+=".incomplete"),r},t}(),to=function(){function t(t,e,n,r,i){if(!(r instanceof eo))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 Yi(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return Yi(this.stream.parseStringISO(e,e+n),t);case 30:return Yi(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 Xi?e:new Xi(e,0);var r=new Xi(n),i=new eo(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}(),eo=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 Zi;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}(),no=[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],ro=(1<<26)/no[no.length-1],io=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=Mi(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+=Mi(n));return i?o:"0"},t.prototype.negate=function(){var e=uo();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)+mo(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=uo();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 ao(e):new so(e),this.exp(t,n)},t.prototype.clone=function(){var t=uo();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=uo();return this.bitwiseTo(t,ki,e),e},t.prototype.or=function(t){var e=uo();return this.bitwiseTo(t,ji,e),e},t.prototype.xor=function(t){var e=uo();return this.bitwiseTo(t,Li,e),e},t.prototype.andNot=function(t){var e=uo();return this.bitwiseTo(t,Pi,e),e},t.prototype.not=function(){for(var t=uo(),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=uo();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=uo();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+Bi(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+=Gi(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,ji)},t.prototype.clearBit=function(t){return this.changeBit(t,Pi)},t.prototype.flipBit=function(t){return this.changeBit(t,Li)},t.prototype.add=function(t){var e=uo();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=uo();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=uo();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=uo();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=uo();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=uo(),n=uo();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),o=vo(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new ao(e):e.isEven()?new co(e):new so(e);var a=[],s=3,c=n-1,u=(1<<n)-1;if(a[1]=r.convert(this),n>1){var d=uo();for(r.sqrTo(a[1],d);s<=u;)a[s]=uo(),r.mulTo(d,a[s-2],a[s]),s+=2}var l,p,f=t.t-1,h=!0,g=uo();for(i=mo(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=vo(1),a=vo(0),s=vo(0),c=vo(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 oo)},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]<=no[no.length-1]){for(e=0;e<no.length;++e)if(n[0]==no[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<no.length;){for(var r=no[e],i=e+1;i<no.length&&r<ro;)r*=no[i++];for(r=n.modInt(r);e<i;)if(r%no[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]:yo(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=uo());var a=uo(),s=this.s,c=e.s,u=this.DB-mo(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,y=r.t,v=y-d,m=null==n?uo():n;for(a.dlShiftTo(v,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(;--v>=0;){var I=r[--y]==l?this.DM:Math.floor(r[y]*f+(r[y-1]+g)*h);if((r[y]+=a.am(0,I,r,v,0,d))<I)for(a.dlShiftTo(v,m),r.subTo(m,r);r[y]<--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=uo(),i=uo(),o=n.convert(this),a=mo(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=vo(n),i=uo(),o=uo(),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=yo(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),ji,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)>no.length&&(e=no.length);for(var o=uo(),a=0;a<e;++a){o.fromInt(no[Math.floor(Math.random()*no.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=uo();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),ji,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}(),oo=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}(),ao=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}(),so=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=uo();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(io.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=uo();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}(),co=function(){function t(t){this.m=t,this.r2=uo(),this.q3=uo(),io.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=uo();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 uo(){return new io(null)}function lo(t,e){return new io(t,e)}var po="undefined"!=typeof navigator;po&&"Microsoft Internet Explorer"==navigator.appName?(io.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},$i=30):po&&"Netscape"!=navigator.appName?(io.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},$i=26):(io.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},$i=28),io.prototype.DB=$i,io.prototype.DM=(1<<$i)-1,io.prototype.DV=1<<$i,io.prototype.FV=Math.pow(2,52),io.prototype.F1=52-$i,io.prototype.F2=2*$i-52;var fo,ho,go=[];for(fo="0".charCodeAt(0),ho=0;ho<=9;++ho)go[fo++]=ho;for(fo="a".charCodeAt(0),ho=10;ho<36;++ho)go[fo++]=ho;for(fo="A".charCodeAt(0),ho=10;ho<36;++ho)go[fo++]=ho;function yo(t,e){var n=go[t.charCodeAt(e)];return null==n?-1:n}function vo(t){var e=uo();return e.fromInt(t),e}function mo(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}io.ZERO=vo(0),io.ONE=vo(1);var Io,Eo,So=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}(),To=null;if(null==To){To=[],Eo=0;var bo=void 0;if(window.crypto&&window.crypto.getRandomValues){var Co=new Uint32Array(256);for(window.crypto.getRandomValues(Co),bo=0;bo<Co.length;++bo)To[Eo++]=255&Co[bo]}var wo=0,Ao=function(t){if((wo=wo||0)>=256||Eo>=256)window.removeEventListener?window.removeEventListener("mousemove",Ao,!1):window.detachEvent&&window.detachEvent("onmousemove",Ao);else try{var e=t.x+t.y;To[Eo++]=255&e,wo+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",Ao,!1):window.attachEvent&&window.attachEvent("onmousemove",Ao)}function _o(){if(null==Io){for(Io=new So;Eo<256;){var t=Math.floor(65536*Math.random());To[Eo++]=255&t}for(Io.init(To),Eo=0;Eo<To.length;++Eo)To[Eo]=0;Eo=0}return Io.next()}var Oo=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=_o()},t}(),Ro=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=lo(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 Oo,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 io(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=lo(t,16),this.e=parseInt(e,16),this.d=lo(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=lo(t,16),this.e=parseInt(e,16),this.d=lo(n,16),this.p=lo(r,16),this.q=lo(i,16),this.dmp1=lo(o,16),this.dmq1=lo(a,16),this.coeff=lo(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new Oo,r=t>>1;this.e=parseInt(e,16);for(var i=new io(e,16);;){for(;this.p=new io(t-r,1,n),0!=this.p.subtract(io.ONE).gcd(i).compareTo(io.ONE)||!this.p.isProbablePrime(10););for(;this.q=new io(r,1,n),0!=this.q.subtract(io.ONE).gcd(i).compareTo(io.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(io.ONE),s=this.q.subtract(io.ONE),c=a.multiply(s);if(0==c.gcd(i).compareTo(io.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=lo(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 Oo,i=t>>1;this.e=parseInt(e,16);var o=new io(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(io.ONE),r=a.q.subtract(io.ONE),i=e.multiply(r);0==i.gcd(o).compareTo(io.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=uo(),a.q.fromNumberAsync(i,1,r,(function(){a.q.subtract(io.ONE).gcda(o,(function(t){0==t.compareTo(io.ONE)&&a.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(c,0)}))}))},u=function(){a.p=uo(),a.p.fromNumberAsync(t-i,1,r,(function(){a.p.subtract(io.ONE).gcda(o,(function(t){0==t.compareTo(io.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 lo("0001"+r+"00"+t,16)}((No[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=lo(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in No)if(No.hasOwnProperty(e)){var n=No[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}(),No={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},Do={};Do.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 Uo={};void 0!==Uo.asn1&&Uo.asn1||(Uo.asn1={}),Uo.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 io(r,16).xor(t).add(io.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=Uo.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,y=e.DERSequence,v=e.DERSet,m=e.DERTaggedObject,I=e.ASN1Util.newObject,E=Object.keys(t);if(1!=E.length)throw"key of param shall be only one.";var S=E[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+S+":"))throw"undefined key: "+S;if("bool"==S)return new n(t[S]);if("int"==S)return new r(t[S]);if("bitstr"==S)return new i(t[S]);if("octstr"==S)return new o(t[S]);if("null"==S)return new a(t[S]);if("oid"==S)return new s(t[S]);if("enum"==S)return new c(t[S]);if("utf8str"==S)return new u(t[S]);if("numstr"==S)return new d(t[S]);if("prnstr"==S)return new l(t[S]);if("telstr"==S)return new p(t[S]);if("ia5str"==S)return new f(t[S]);if("utctime"==S)return new h(t[S]);if("gentime"==S)return new g(t[S]);if("seq"==S){for(var T=t[S],b=[],C=0;C<T.length;C++){var w=I(T[C]);b.push(w)}return new y({array:b})}if("set"==S){for(T=t[S],b=[],C=0;C<T.length;C++)w=I(T[C]),b.push(w);return new v({array:b})}if("tag"==S){var A=t[S];if("[object Array]"===Object.prototype.toString.call(A)&&3==A.length){var _=I(A[2]);return new m({tag:A[0],explicit:A[1],obj:_})}var O={};if(void 0!==A.explicit&&(O.explicit=A.explicit),void 0!==A.tag&&(O.tag=A.tag),void 0===A.obj)throw"obj shall be specified for 'tag'.";return O.obj=I(A.obj),new m(O)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},Uo.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 io(r,2).toString(10),r="")}return e},Uo.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 io(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},Uo.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""}},Uo.asn1.DERAbstractString=function(t){Uo.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))},Do.lang.extend(Uo.asn1.DERAbstractString,Uo.asn1.ASN1Object),Uo.asn1.DERAbstractTime=function(t){Uo.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}},Do.lang.extend(Uo.asn1.DERAbstractTime,Uo.asn1.ASN1Object),Uo.asn1.DERAbstractStructured=function(t){Uo.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)},Do.lang.extend(Uo.asn1.DERAbstractStructured,Uo.asn1.ASN1Object),Uo.asn1.DERBoolean=function(){Uo.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Do.lang.extend(Uo.asn1.DERBoolean,Uo.asn1.ASN1Object),Uo.asn1.DERInteger=function(t){Uo.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Uo.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new io(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))},Do.lang.extend(Uo.asn1.DERInteger,Uo.asn1.ASN1Object),Uo.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Uo.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}Uo.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))},Do.lang.extend(Uo.asn1.DERBitString,Uo.asn1.ASN1Object),Uo.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Uo.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}Uo.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Do.lang.extend(Uo.asn1.DEROctetString,Uo.asn1.DERAbstractString),Uo.asn1.DERNull=function(){Uo.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Do.lang.extend(Uo.asn1.DERNull,Uo.asn1.ASN1Object),Uo.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 io(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};Uo.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=Uo.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))},Do.lang.extend(Uo.asn1.DERObjectIdentifier,Uo.asn1.ASN1Object),Uo.asn1.DEREnumerated=function(t){Uo.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Uo.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new io(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))},Do.lang.extend(Uo.asn1.DEREnumerated,Uo.asn1.ASN1Object),Uo.asn1.DERUTF8String=function(t){Uo.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Do.lang.extend(Uo.asn1.DERUTF8String,Uo.asn1.DERAbstractString),Uo.asn1.DERNumericString=function(t){Uo.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Do.lang.extend(Uo.asn1.DERNumericString,Uo.asn1.DERAbstractString),Uo.asn1.DERPrintableString=function(t){Uo.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Do.lang.extend(Uo.asn1.DERPrintableString,Uo.asn1.DERAbstractString),Uo.asn1.DERTeletexString=function(t){Uo.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Do.lang.extend(Uo.asn1.DERTeletexString,Uo.asn1.DERAbstractString),Uo.asn1.DERIA5String=function(t){Uo.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Do.lang.extend(Uo.asn1.DERIA5String,Uo.asn1.DERAbstractString),Uo.asn1.DERUTCTime=function(t){Uo.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))},Do.lang.extend(Uo.asn1.DERUTCTime,Uo.asn1.DERAbstractTime),Uo.asn1.DERGeneralizedTime=function(t){Uo.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))},Do.lang.extend(Uo.asn1.DERGeneralizedTime,Uo.asn1.DERAbstractTime),Uo.asn1.DERSequence=function(t){Uo.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}},Do.lang.extend(Uo.asn1.DERSequence,Uo.asn1.DERAbstractStructured),Uo.asn1.DERSet=function(t){Uo.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)},Do.lang.extend(Uo.asn1.DERSet,Uo.asn1.DERAbstractStructured),Uo.asn1.DERTaggedObject=function(t){Uo.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)))},Do.lang.extend(Uo.asn1.DERTaggedObject,Uo.asn1.ASN1Object);var xo,Mo=(xo=function(t,e){return xo=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])},xo(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}xo(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),ko=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 Mo(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===Fi){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(Fi={},e=0;e<16;++e)Fi[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)Fi[n.charAt(e)]=e;for(e=0;e<r.length;++e)Fi[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=Fi[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):Qi.unarmor(t),i=to.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=lo(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=lo(o,16);var a=i.sub[4].getHexStringValue();this.p=lo(a,16);var s=i.sub[5].getHexStringValue();this.q=lo(s,16);var c=i.sub[6].getHexStringValue();this.dmp1=lo(c,16);var u=i.sub[7].getHexStringValue();this.dmq1=lo(u,16);var d=i.sub[8].getHexStringValue();this.coeff=lo(d,16)}else{if(2!==i.sub.length)return!1;var l=i.sub[1].sub[0];e=l.sub[0].getHexStringValue(),this.n=lo(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 Uo.asn1.DERInteger({int:0}),new Uo.asn1.DERInteger({bigint:this.n}),new Uo.asn1.DERInteger({int:this.e}),new Uo.asn1.DERInteger({bigint:this.d}),new Uo.asn1.DERInteger({bigint:this.p}),new Uo.asn1.DERInteger({bigint:this.q}),new Uo.asn1.DERInteger({bigint:this.dmp1}),new Uo.asn1.DERInteger({bigint:this.dmq1}),new Uo.asn1.DERInteger({bigint:this.coeff})]};return new Uo.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return qi(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new Uo.asn1.DERSequence({array:[new Uo.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Uo.asn1.DERNull]}),e=new Uo.asn1.DERSequence({array:[new Uo.asn1.DERInteger({bigint:this.n}),new Uo.asn1.DERInteger({int:this.e})]}),n=new Uo.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new Uo.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return qi(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}(Ro),jo=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 ko(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(Hi(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return qi(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return qi(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,Hi(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new ko,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}(),Lo=s.chaveMovelSignature,Po={publicKey:null},Bo=function(){var t=be((function(t){var e=t.apiClient,n=t.apiEndpoints,r=t.cancelToken;return we().mark((function t(){var i,o,a;return we().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),Po.publicKey=a,t.abrupt("return",a);case 9:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Go=function(){var t=be((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 we().mark((function t(){var d,l,p;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return d=s.inCurrentMode.startSigning(),t.next=3,Bo({apiClient:c,apiEndpoints:s,cancelToken:a});case 3:return l=t.sent,(p=new jo).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)}}(),Fo=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)}))},Vo=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 jo;return u.setPublicKey(Po.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})},qo=function(){var t=be((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 we().mark((function t(){var y,v,m;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return y=u(r.SIGNATURE,Lo,c),s.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=4,De(Go)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:d,actionType:y.actionType,signingPin:f,phone:h});case 4:return v=t.sent,l(v),t.next=8,De(Fo,{shouldFormatResult:!1})({startSigningResult:v,confirmationCodeRequest:p,setOnCancelByUser:g});case 8:return m=t.sent,t.abrupt("return",De(Vo)({token:v.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)}}(),Ho=Be(Lo,qo,{pin:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Ko=mi({moduleName:s.mitIdSignature,createModuleCreator:Be}),Qo=s.ftnQesSignature,zo=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})},Zo=function(){var t=be((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 we().mark((function t(){var g,y;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=u(r.SIGNATURE,Qo,l),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,De(zo)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,phone:p,email:f,actionType:g.actionType});case 4:return y=t.sent,t.abrupt("return",De(h,{shouldFormatResult:!1})(y));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Wo=Be(Qo,Zo,{phone:{type:"string",required:!0},email:{type:"string",required:!0}}),Jo=s.noBankIdAdvSignature,Yo=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})},$o=function(){var t=be((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 we().mark((function t(){var h,g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,Jo,l),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,De(Yo)({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",De(f,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Xo=Be(Jo,$o,{name:{type:"string",required:!0}}),ta=Gr({moduleName:s.certEuropeUsbTokenSignature,createModuleCreator:Be}),ea=Gr({moduleName:s.certSignUsbTokenSignature,createModuleCreator:Be}),na=mi({moduleName:s.idinSignature,createModuleCreator:Be}),ra=mi({moduleName:s.verifaiSignature,createModuleCreator:Be}),ia=s.spidQesSignature,oa=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})},aa=function(){var t=be((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 we().mark((function t(){var g,y;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=u(r.SIGNATURE,ia,l),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,De(oa)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,phone:p,email:f,actionType:g.actionType});case 4:return y=t.sent,t.abrupt("return",De(h,{shouldFormatResult:!1})(y));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),sa=Be(ia,aa,{email:{type:"string",required:!0},phone:{type:"string",required:!0}}),ca=s.frejaSimpleSignature,ua=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})},da=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})},la=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 qr({pollInterval:2e3,fn:da,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},pa=function(){var t=be((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 we().mark((function t(){var f,h;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=u(r.SIGNATURE,ca,d),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,De(ua)({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",De(la)({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)}}(),fa=Be(ca,pa,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),ha=s.audkenniQesSignature,ga=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})},ya=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})},va=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})},ma=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 qr({pollInterval:2e3,fn:ya,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ia=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 qr({pollInterval:2e3,fn:va,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ea=function(){var t=be((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 we().mark((function t(){var f,h,g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=u(r.SIGNATURE,ha,d),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,De(ga)({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,De(ma)({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",De(Ia)({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)}}(),Sa=Be(ha,Ea,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ta=mi({moduleName:s.yesComQesSignature,createModuleCreator:Be}),ba=mi({moduleName:s.simplySignQesSignature,createModuleCreator:Be}),Ca=s.uanatacaQesSignature,wa=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})},Aa=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)}))},_a=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})},Oa=function(){var t=be((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,y=t.setOnCancelByUser,v=t.started;return we().mark((function t(){var m,I,E;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return m=u(r.SIGNATURE,Ca,l),c.dispatch({message:"".concat(m.actionType,": signing started")}),t.next=4,De(wa)({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,v(I),t.next=8,De(Aa,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:g,setOnCancelByUser:y});case 8:return E=t.sent,t.abrupt("return",De(_a)({token:I.data.token,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e,confirmationCode:E}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Ra=Be(Ca,Oa,{username:{type:"string",required:!0},password:{type:"string",required:!0},pin:{type:"string",required:!0}}),Na=mi({moduleName:s.certsignWebapiQesSignature,createModuleCreator:Be}),Da=s.halcomQesSignature,Ua=function(t){var e=t.certificate,n=t.country,r=t.phone,i=t.email,o=t.username,a=t.cancelToken,s=t.apiEndpoints,c=t.apiClient,u=s.inCurrentMode.cscApiAuthorizeCredential();return c.post({url:u,withCredentials:!1,data:{sign_type:"halcom-qes-signature",certificate:e,country:n,phone:r,email:i,username:o},cancelToken:a})},xa=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})},Ma=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})},ka=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 qr({pollInterval:2e3,fn:Ma,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ja=function(){var t=be((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,y=t.action,v=t.redirect;return we().mark((function t(){var m,I,E;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m=u(r.SIGNATURE,Da,h),c.dispatch({message:"".concat(m.actionType,": signing started")}),"cscApiAuthorizeCredential"!==y){t.next=7;break}return t.next=5,De(Ua)({country:h,username:l,phone:p,email:f,cancelToken:o,apiEndpoints:a,apiClient:s});case 5:return I=t.sent,t.abrupt("return",De(v,{shouldFormatResult:!1})(I));case 7:return t.next=9,De(xa)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,username:l,phone:p,email:f,countryCode:h,contractId:i,actionType:m.actionType});case 9:return E=t.sent,g(E),t.abrupt("return",De(ka)({data:E.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)}}(),La=Be(Da,ja,{countryCode:{type:"string",required:!0},username:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Pa=s.swissIdQesSignature,Ba=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})},Ga=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})},Fa=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 qr({pollInterval:2e3,fn:Ga,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Va=function(){var t=be((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 we().mark((function t(){var h,g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,Pa,p),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,De(Ba)({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",De(Fa)({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)}}(),qa=Be(Pa,Va,{countryCode:{type:"string",required:!0},email:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ha=s.swissComQesSignature,Ka=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})},Qa=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})},za=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 qr({pollInterval:2e3,fn:Qa,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Za=function(){var t=be((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 we().mark((function t(){var h,g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,Ha,p),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,De(Ka)({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",De(za)({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)}}(),Wa=Be(Ha,Za,{countryCode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ja=mi({moduleName:s.mitIdAdvancedSignature,createModuleCreator:Be}),Ya=mi({moduleName:s.mitIdQesSignature,createModuleCreator:Be}),$a=mi({moduleName:s.seBankIdAdvancedSignature,createModuleCreator:Be}),Xa=mi({moduleName:s.seBankIdQesSignature,createModuleCreator:Be}),ts=s.frejaAdvancedSignature,es=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})},ns=function(){var t=be((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 we().mark((function t(){var f,h;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=u(r.SIGNATURE,ts,d),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,De(es)({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",De(p,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),rs=Be(ts,ns,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),is=s.frejaQesSignature,os=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})},as=function(){var t=be((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 we().mark((function t(){var f,h;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=u(r.SIGNATURE,is,d),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,De(os)({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",De(p,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ss=Be(is,as,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),cs=mi({moduleName:s.gbOneIdAdvancedSignature,createModuleCreator:Be}),us=s.handwrittenSignature,ds=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.completeHandwritten(),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})},ls=function(){var t=be((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;return we().mark((function t(){var g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=u(r.SIGNATURE,us,d),console.log(g),s.dispatch({message:"".concat(g.actionType,": signing started")}),t.abrupt("return",De(ds)({apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:e,emailToken:l,smsToken:p,handwrittenSignatureData:f,handwrittenSignatureDataUrl:h}));case 4:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ps=Be(us,ls,{docId:{type:"string",required:!0}}),fs=s.haricaQesSignature,hs=function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.actionType,s=i.inCurrentMode.startSigning();return o.post({url:s,withCredentials:!1,data:{doc_id:n,client_id:e,sign_type:a},cancelToken:r})},gs=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.username,u=t.password,d=t.otpCode;return n.post({url:r.inCurrentMode.completeSignatureHaricaQes(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s,otp_code:d,username:c,password:u},cancelToken:o})},ys=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.username,u=t.password,d=t.otpCode;return qr({pollInterval:2e3,fn:gs,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,username:c,password:u,otpCode:d}]}).start()},vs=function(){var t=be((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.username,l=t.password,p=t.otpCode,f=t.countryCode,h=t.started;return we().mark((function t(){var g,y;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=u(r.SIGNATURE,fs,f),s.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,De(hs)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,actionType:g.actionType});case 4:return y=t.sent,h(y),t.abrupt("return",De(ys)({data:y.data,apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:e,username:d,password:l,otpCode:p}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ms=Be(fs,vs,{countryCode:{type:"string",required:!0},username:{type:"string",required:!0},password:{type:"string",required:!0},otpCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Is=mi({moduleName:s.veriffAdvancedSignature,createModuleCreator:Be}),Es=Object.freeze({sandbox:"sandbox",production:"production"});function Ss(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 Ts(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ss(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ss(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var bs=function(t,e,n){var r={};return Object.keys(t).forEach((function(i){r[i]=function(t,e,n){return function(r){var i=Ts(Ts({},e),r);return n?n(t(i)):t(i)}}(t[i],e,n)})),r},Cs=function(t){var e=t.method,n=t.baseUrl,r=t.clientId,i=t.redirectUri,o=t.state,a=t.language,s=t.country,c="".concat(n,"/oauth/start/").concat(e,"?client_id=").concat(r,"&redirect_uri=").concat(i,"&response_type=code");return a&&(c+="&lang=".concat(a)),o&&(c+="&state=".concat(o)),s&&(c+="&country=".concat(s)),c},ws=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Ts({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","LT"].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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({method:"ftn-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},gbOneId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Cs({method:"gb-one-id-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},veriff:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language,a=t.country;return Cs({method:"veriff-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o,country:a})},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")},completeSignatureHaricaQes:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/harica-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")},completeHandwritten:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/handwritten-simple-signature/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={},Es.production,Ts({},bs(i,{baseUrl:r.base?r.base():"https://id.eideasy.com",state:n.state},n.modifyEndpointUrl))),e(t,Es.sandbox,Ts({},bs(i,{baseUrl:r.base?r.base():"https://test.eideasy.com",state:n.state},n.modifyEndpointUrl))),t);return{get inCurrentMode(){var t=n.sandbox?Es.sandbox:Es.production;return o[t]}}},As=s.eParakstsSmartCard,_s=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsSmartCard({clientId:n,redirectUri:r})}}},Os=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(_s)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Rs=Be(As,Os),Ns=mi({moduleName:s.itsmeQesSignature,createModuleCreator:Be}),Ds=mi({moduleName:s.frIdentAdvancedSignature,createModuleCreator:Be}),Us=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=ae({rawSettings:t,schema:se}),n=Ee({currentLanguage:"en"}),r=ws({countryCode:e.countryCode,sandbox:e.sandbox,modifyEndpointUrl:e.modifyEndpointUrl,state:e.oauthParamState},e.apiEndpoints),i=Se({clientId:e.clientId,remoteMonitoringEnabled:e.remoteMonitoringEnabled,apiEndpoints:r});return ie({settings:e,i18n:n,monitoringService:i,apiEndpoints:r,identificationModules:[He,Ye,nn,sn,Rs,pn,vn,Sn,wn,Rn,xn,Ln,Fn,Kn,Wn,Xn,rr,sr,lr,gr,Ir,br,_r,Dr,kr],signingModules:[Fr,Jr,ri,ui,gi,Ii,Ei,Si,Wo,Ti,Ai,_i,Oi,Ri,xi,Ho,Ko,Xo,ta,ea,na,ra,sa,fa,Sa,Ta,ba,Ra,Na,La,qa,Wa,Ja,Ya,$a,Xa,rs,ss,Ns,Ds,cs,ps,ms,Is]})},xs=Us}(),o}()}));
|