skyflow-js 2.5.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Skyflow",[],t):"object"==typeof exports?exports.Skyflow=t():e.Skyflow=t()}(this,()=>(()=>{var e={41:(e,t,n)=>{"use strict";var o=n(655),r=n(8068),i=n(9675),a=n(5795);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,p=arguments.length>6&&arguments[6],u=!!a&&a(e,t);if(o)o(e,t,{configurable:null===s&&u?u.configurable:!s,enumerable:null===c&&u?u.enumerable:!c,value:n,writable:null===l&&u?u.writable:!l});else{if(!p&&(c||l||s))throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},76:e=>{"use strict";e.exports=Function.prototype.call},125:(e,t,n)=>{"use strict";let o=n(8673);e.exports=new o(n(8446),n(1453))},414:e=>{"use strict";e.exports=Math.round},453:(e,t,n)=>{"use strict";var o,r=n(9612),i=n(9383),a=n(1237),c=n(9290),l=n(9538),s=n(8068),p=n(9675),u=n(5345),d=n(1514),f=n(8968),E=n(6188),_=n(8002),I=n(5880),m=n(414),y=n(3093),v=Function,O=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},N=n(5795),g=n(655),L=function(){throw new p},T=N?function(){try{return L}catch(e){try{return N(arguments,"callee").get}catch(e){return L}}}():L,h=n(4039)(),A=n(3628),b=n(1064),R=n(8648),S=n(1002),w=n(76),D={},x="undefined"!=typeof Uint8Array&&A?A(Uint8Array):o,M={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":h&&A?A([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":D,"%AsyncGenerator%":D,"%AsyncGeneratorFunction%":D,"%AsyncIteratorPrototype%":D,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?o:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":D,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h&&A?A(A([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&h&&A?A((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":N,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":c,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&h&&A?A((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h&&A?A(""[Symbol.iterator]()):o,"%Symbol%":h?Symbol:o,"%SyntaxError%":s,"%ThrowTypeError%":T,"%TypedArray%":x,"%TypeError%":p,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"%Function.prototype.call%":w,"%Function.prototype.apply%":S,"%Object.defineProperty%":g,"%Object.getPrototypeOf%":b,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":E,"%Math.min%":_,"%Math.pow%":I,"%Math.round%":m,"%Math.sign%":y,"%Reflect.getPrototypeOf%":R};if(A)try{null.error}catch(e){var P=A(A(e));M["%Error.prototype%"]=P}var C=function e(t){var n;if("%AsyncFunction%"===t)n=O("async function () {}");else if("%GeneratorFunction%"===t)n=O("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=O("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&A&&(n=A(r.prototype))}return M[t]=n,n},k={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},V=n(6743),j=n(9957),U=V.call(w,Array.prototype.concat),F=V.call(S,Array.prototype.splice),Y=V.call(w,String.prototype.replace),G=V.call(w,String.prototype.slice),B=V.call(w,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,K=function(e,t){var n,o=e;if(j(k,o)&&(o="%"+(n=k[o])[0]+"%"),j(M,o)){var r=M[o];if(r===D&&(r=C(o)),void 0===r&&!t)throw new p("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:r}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new p('"allowMissing" argument must be a boolean');if(null===B(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=G(e,0,1),n=G(e,-1);if("%"===t&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var o=[];return Y(e,X,function(e,t,n,r){o[o.length]=n?Y(r,W,"$1"):t||e}),o}(e),o=n.length>0?n[0]:"",r=K("%"+o+"%",t),i=r.name,a=r.value,c=!1,l=r.alias;l&&(o=l[0],F(n,U([0,1],l)));for(var u=1,d=!0;u<n.length;u+=1){var f=n[u],E=G(f,0,1),_=G(f,-1);if(('"'===E||"'"===E||"`"===E||'"'===_||"'"===_||"`"===_)&&E!==_)throw new s("property names with quotes must have matching quotes");if("constructor"!==f&&d||(c=!0),j(M,i="%"+(o+="."+f)+"%"))a=M[i];else if(null!=a){if(!(f in a)){if(!t)throw new p("base intrinsic for "+e+" exists, but the property is not available.");return}if(N&&u+1>=n.length){var I=N(a,f);a=(d=!!I)&&"get"in I&&!("originalValue"in I.get)?I.get:a[f]}else d=j(a,f),a=a[f];d&&!c&&(M[i]=a)}}return a}},487:(e,t,n)=>{"use strict";var o=n(6897),r=n(655),i=n(3126),a=n(2205);e.exports=function(e){var t=i(arguments),n=e.length-(arguments.length-1);return o(t,1+(n>0?n:0),!0)},r?r(e.exports,"apply",{value:a}):e.exports.apply=a},537:(e,t,n)=>{var o=n(5606),r=n(6763),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},o=0;o<t.length;o++)n[t[o]]=Object.getOwnPropertyDescriptor(e,t[o]);return n},a=/%[sdj%]/g;t.format=function(e){if(!O(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(p(arguments[n]));return t.join(" ")}n=1;for(var o=arguments,r=o.length,i=String(e).replace(a,function(e){if("%%"===e)return"%";if(n>=r)return e;switch(e){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch(e){return"[Circular]"}default:return e}}),c=o[n];n<r;c=o[++n])y(c)||!L(c)?i+=" "+c:i+=" "+p(c);return i},t.deprecate=function(e,n){if(void 0!==o&&!0===o.noDeprecation)return e;if(void 0===o)return function(){return t.deprecate(e,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(o.throwDeprecation)throw new Error(n);o.traceDeprecation?r.trace(n):r.error(n),i=!0}return e.apply(this,arguments)}};var c={},l=/^$/;if({IFRAME_SECURE_SITE:"v2.5.0/elements/index.html",IFRAME_SECURE_ORIGIN:"https://js.skyflow.com"}.NODE_DEBUG){var s={IFRAME_SECURE_SITE:"v2.5.0/elements/index.html",IFRAME_SECURE_ORIGIN:"https://js.skyflow.com"}.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+s+"$","i")}function p(e,n){var o={seen:[],stylize:d};return arguments.length>=3&&(o.depth=arguments[2]),arguments.length>=4&&(o.colors=arguments[3]),m(n)?o.showHidden=n:n&&t._extend(o,n),N(o.showHidden)&&(o.showHidden=!1),N(o.depth)&&(o.depth=2),N(o.colors)&&(o.colors=!1),N(o.customInspect)&&(o.customInspect=!0),o.colors&&(o.stylize=u),f(o,e,o.depth)}function u(e,t){var n=p.styles[t];return n?"["+p.colors[n][0]+"m"+e+"["+p.colors[n][1]+"m":e}function d(e,t){return e}function f(e,n,o){if(e.customInspect&&n&&A(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(o,e);return O(r)||(r=f(e,r,o)),r}var i=function(e,t){if(N(t))return e.stylize("undefined","undefined");if(O(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(v(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,n);if(i)return i;var a=Object.keys(n),c=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),h(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return E(n);if(0===a.length){if(A(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(g(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(T(n))return e.stylize(Date.prototype.toString.call(n),"date");if(h(n))return E(n)}var s,p="",u=!1,d=["{","}"];(I(n)&&(u=!0,d=["[","]"]),A(n))&&(p=" [Function"+(n.name?": "+n.name:"")+"]");return g(n)&&(p=" "+RegExp.prototype.toString.call(n)),T(n)&&(p=" "+Date.prototype.toUTCString.call(n)),h(n)&&(p=" "+E(n)),0!==a.length||u&&0!=n.length?o<0?g(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),s=u?function(e,t,n,o,r){for(var i=[],a=0,c=t.length;a<c;++a)w(t,String(a))?i.push(_(e,t,n,o,String(a),!0)):i.push("");return r.forEach(function(r){r.match(/^\d+$/)||i.push(_(e,t,n,o,r,!0))}),i}(e,n,o,c,a):a.map(function(t){return _(e,n,o,c,t,u)}),e.seen.pop(),function(e,t,n){var o=e.reduce(function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(o>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(s,p,d)):d[0]+p+d[1]}function E(e){return"["+Error.prototype.toString.call(e)+"]"}function _(e,t,n,o,r,i){var a,c,l;if((l=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?c=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(c=e.stylize("[Setter]","special")),w(o,r)||(a="["+r+"]"),c||(e.seen.indexOf(l.value)<0?(c=y(n)?f(e,l.value,null):f(e,l.value,n-1)).indexOf("\n")>-1&&(c=i?c.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+c.split("\n").map(function(e){return" "+e}).join("\n")):c=e.stylize("[Circular]","special")),N(a)){if(i&&r.match(/^\d+$/))return c;(a=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+c}function I(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return"number"==typeof e}function O(e){return"string"==typeof e}function N(e){return void 0===e}function g(e){return L(e)&&"[object RegExp]"===b(e)}function L(e){return"object"==typeof e&&null!==e}function T(e){return L(e)&&"[object Date]"===b(e)}function h(e){return L(e)&&("[object Error]"===b(e)||e instanceof Error)}function A(e){return"function"==typeof e}function b(e){return Object.prototype.toString.call(e)}function R(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!c[e])if(l.test(e)){var n=o.pid;c[e]=function(){var o=t.format.apply(t,arguments);r.error("%s %d: %s",e,n,o)}}else c[e]=function(){};return c[e]},t.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(9032),t.isArray=I,t.isBoolean=m,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=O,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=N,t.isRegExp=g,t.types.isRegExp=g,t.isObject=L,t.isDate=T,t.types.isDate=T,t.isError=h,t.types.isNativeError=h,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(1135);var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;r.log("%s - %s",(e=new Date,n=[R(e.getHours()),R(e.getMinutes()),R(e.getSeconds())].join(":"),[e.getDate(),S[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(6698),t._extend=function(e,t){if(!t||!L(t))return e;for(var n=Object.keys(t),o=n.length;o--;)e[n[o]]=t[n[o]];return e};var D="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function x(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(D&&e[D]){var t;if("function"!=typeof(t=e[D]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,o=new Promise(function(e,o){t=e,n=o}),r=[],i=0;i<arguments.length;i++)r.push(arguments[i]);r.push(function(e,o){e?n(e):t(o)});try{e.apply(this,r)}catch(e){n(e)}return o}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),D&&Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=D,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var r=t.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return r.apply(i,arguments)};e.apply(this,t).then(function(e){o.nextTick(a.bind(null,null,e))},function(e){o.nextTick(x.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},579:(e,t,n)=>{var o=n(3738).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(o(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},592:(e,t,n)=>{"use strict";var o=n(655),r=function(){return!!o};r.hasArrayLengthDefineBug=function(){if(!o)return null;try{return 1!==o([],"length",{value:1}).length}catch(e){return!0}},e.exports=r},655:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},841:e=>{"use strict";e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}},887:(e,t,n)=>{var o=n(6993),r=n(1791);e.exports=function(e,t,n,i,a){return new r(o().w(e,t,n,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},1002:e=>{"use strict";e.exports=Function.prototype.apply},1064:(e,t,n)=>{"use strict";var o=n(9612);e.exports=o.getPrototypeOf||null},1093:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),o="[object Arguments]"===n;return o||(o="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),o}},1117:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.broadcastToChildWindows=void 0;var o=n(9974),r=n(6968);t.broadcastToChildWindows=function(e,t,n){for(var i=r.childWindows.length-1;i>=0;i--){var a=r.childWindows[i];a.closed?r.childWindows.splice(i,1):n!==a&&o.broadcast(a.top,e,t)}}},1135:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},1189:(e,t,n)=>{"use strict";var o=Array.prototype.slice,r=n(1093),i=Object.keys,a=i?function(e){return i(e)}:n(8875),c=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return r(e)?c(o.call(e)):c(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1237:e=>{"use strict";e.exports=EvalError},1333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var o in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},1453:e=>{e.exports={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},1514:e=>{"use strict";e.exports=Math.abs},1791:(e,t,n)=>{var o=n(5172),r=n(5546);e.exports=function e(t,n){function i(e,r,a,c){try{var l=t[e](r),s=l.value;return s instanceof o?n.resolve(s.v).then(function(e){i("next",e,a,c)},function(e){i("throw",e,a,c)}):n.resolve(s).then(function(e){l.value=e,a(l)},function(e){return i("throw",e,a,c)})}catch(e){c(e)}}var a;this.next||(r(e.prototype),r(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(e,t,o){function r(){return new n(function(t,n){i(e,o,t,n)})}return a=a?a.then(r,r):r()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},2205:(e,t,n)=>{"use strict";var o=n(6743),r=n(1002),i=n(3144);e.exports=function(){return i(o,r,arguments)}},2281:(e,t,n)=>{"use strict";var o=n(7920),r=new(n(6096).Framebus);o.attach(),e.exports=r},2299:(e,t,n)=>{"use strict";function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(c.push(o.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||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.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a=void 0!==/a/g.flags,c=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},l=function(e){var t=[];return e.forEach(function(e,n){return t.push([n,e])}),t},s=Object.is?Object.is:n(7653),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},u=Number.isNaN?Number.isNaN:n(4133);function d(e){return e.call.bind(e)}var f=d(Object.prototype.hasOwnProperty),E=d(Object.prototype.propertyIsEnumerable),_=d(Object.prototype.toString),I=n(537).types,m=I.isAnyArrayBuffer,y=I.isArrayBufferView,v=I.isDate,O=I.isMap,N=I.isRegExp,g=I.isSet,L=I.isNativeError,T=I.isBoxedPrimitive,h=I.isNumberObject,A=I.isStringObject,b=I.isBooleanObject,R=I.isBigIntObject,S=I.isSymbolObject,w=I.isFloat32Array,D=I.isFloat64Array;function x(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function M(e){return Object.keys(e).filter(x).concat(p(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function P(e,t){if(e===t)return 0;for(var n=e.length,o=t.length,r=0,i=Math.min(n,o);r<i;++r)if(e[r]!==t[r]){n=e[r],o=t[r];break}return n<o?-1:o<n?1:0}function C(e,t,n,o){if(e===t)return 0!==e||(!n||s(e,t));if(n){if("object"!==i(e))return"number"==typeof e&&u(e)&&u(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var r,c,l,p,d=_(e);if(d!==_(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var f=M(e),E=M(t);return f.length===E.length&&V(e,t,n,o,1,f)}if("[object Object]"===d&&(!O(e)&&O(t)||!g(e)&&g(t)))return!1;if(v(e)){if(!v(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(N(e)){if(!N(t)||(l=e,p=t,!(a?l.source===p.source&&l.flags===p.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(p))))return!1}else if(L(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(y(e)){if(n||!w(e)&&!D(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===P(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var I=M(e),x=M(t);return I.length===x.length&&V(e,t,n,o,0,I)}if(g(e))return!(!g(t)||e.size!==t.size)&&V(e,t,n,o,2);if(O(e))return!(!O(t)||e.size!==t.size)&&V(e,t,n,o,3);if(m(e)){if(c=t,(r=e).byteLength!==c.byteLength||0!==P(new Uint8Array(r),new Uint8Array(c)))return!1}else if(T(e)&&!function(e,t){return h(e)?h(t)&&s(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):A(e)?A(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):b(e)?b(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):R(e)?R(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):S(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return V(e,t,n,o,0)}function k(e,t){return t.filter(function(t){return E(e,t)})}function V(e,t,n,r,a,s){if(5===arguments.length){s=Object.keys(e);var u=Object.keys(t);if(s.length!==u.length)return!1}for(var d=0;d<s.length;d++)if(!f(t,s[d]))return!1;if(n&&5===arguments.length){var _=p(e);if(0!==_.length){var I=0;for(d=0;d<_.length;d++){var m=_[d];if(E(e,m)){if(!E(t,m))return!1;s.push(m),I++}else if(E(t,m))return!1}var y=p(t);if(_.length!==y.length&&k(t,y).length!==I)return!1}else{var v=p(t);if(0!==v.length&&0!==k(t,v).length)return!1}}if(0===s.length&&(0===a||1===a&&0===e.length||0===e.size))return!0;if(void 0===r)r={val1:new Map,val2:new Map,position:0};else{var O=r.val1.get(e);if(void 0!==O){var N=r.val2.get(t);if(void 0!==N)return O===N}r.position++}r.val1.set(e,r.position),r.val2.set(t,r.position);var g=function(e,t,n,r,a,s){var p=0;if(2===s){if(!function(e,t,n,o){for(var r=null,a=c(e),l=0;l<a.length;l++){var s=a[l];if("object"===i(s)&&null!==s)null===r&&(r=new Set),r.add(s);else if(!t.has(s)){if(n)return!1;if(!F(e,t,s))return!1;null===r&&(r=new Set),r.add(s)}}if(null!==r){for(var p=c(t),u=0;u<p.length;u++){var d=p[u];if("object"===i(d)&&null!==d){if(!j(r,d,n,o))return!1}else if(!n&&!e.has(d)&&!j(r,d,n,o))return!1}return 0===r.size}return!0}(e,t,n,a))return!1}else if(3===s){if(!function(e,t,n,r){for(var a=null,c=l(e),s=0;s<c.length;s++){var p=o(c[s],2),u=p[0],d=p[1];if("object"===i(u)&&null!==u)null===a&&(a=new Set),a.add(u);else{var f=t.get(u);if(void 0===f&&!t.has(u)||!C(d,f,n,r)){if(n)return!1;if(!Y(e,t,u,d,r))return!1;null===a&&(a=new Set),a.add(u)}}}if(null!==a){for(var E=l(t),_=0;_<E.length;_++){var I=o(E[_],2),m=I[0],y=I[1];if("object"===i(m)&&null!==m){if(!G(a,e,m,y,n,r))return!1}else if(!(n||e.has(m)&&C(e.get(m),y,!1,r)||G(a,e,m,y,!1,r)))return!1}return 0===a.size}return!0}(e,t,n,a))return!1}else if(1===s)for(;p<e.length;p++){if(!f(e,p)){if(f(t,p))return!1;for(var u=Object.keys(e);p<u.length;p++){var d=u[p];if(!f(t,d)||!C(e[d],t[d],n,a))return!1}return u.length===Object.keys(t).length}if(!f(t,p)||!C(e[p],t[p],n,a))return!1}for(p=0;p<r.length;p++){var E=r[p];if(!C(e[E],t[E],n,a))return!1}return!0}(e,t,n,s,r,a);return r.val1.delete(e),r.val2.delete(t),g}function j(e,t,n,o){for(var r=c(e),i=0;i<r.length;i++){var a=r[i];if(C(t,a,n,o))return e.delete(a),!0}return!1}function U(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(u(e))return!1}return!0}function F(e,t,n){var o=U(n);return null!=o?o:t.has(o)&&!e.has(o)}function Y(e,t,n,o,r){var i=U(n);if(null!=i)return i;var a=t.get(i);return!(void 0===a&&!t.has(i)||!C(o,a,!1,r))&&(!e.has(i)&&C(o,a,!1,r))}function G(e,t,n,o,r,i){for(var a=c(e),l=0;l<a.length;l++){var s=a[l];if(C(n,s,r,i)&&C(o,t.get(s),r,i))return e.delete(s),!0}return!1}e.exports={isDeepEqual:function(e,t){return C(e,t,false)},isDeepStrictEqual:function(e,t){return C(e,t,true)}}},2464:(e,t,n)=>{"use strict";var o=n(8452),r=n(6642);e.exports=function(){var e=r();return o(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},2682:(e,t,n)=>{"use strict";var o=n(9600),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!o(t))throw new TypeError("iterator must be a function");var a,c;arguments.length>=3&&(a=n),c=e,"[object Array]"===r.call(c)?function(e,t,n){for(var o=0,r=e.length;o<r;o++)i.call(e,o)&&(null==n?t(e[o],o,e):t.call(n,e[o],o,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var o=0,r=e.length;o<r;o++)null==n?t(e.charAt(o),o,e):t.call(n,e.charAt(o),o,e)}(e,t,a):function(e,t,n){for(var o in e)i.call(e,o)&&(null==n?t(e[o],o,e):t.call(n,e[o],o,e))}(e,t,a)}},2926:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscriptionArgsInvalid=void 0;var o=n(9275);t.subscriptionArgsInvalid=function(e,t,n){return!!o.isntString(e)||("function"!=typeof t||o.isntString(n))}},3003:e=>{"use strict";e.exports=function(e){return e!=e}},3093:(e,t,n)=>{"use strict";var o=n(4459);e.exports=function(e){return o(e)||0===e?e:e<0?-1:1}},3126:(e,t,n)=>{"use strict";var o=n(6743),r=n(9675),i=n(76),a=n(3144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new r("a function is required");return a(o,i,e)}},3144:(e,t,n)=>{"use strict";var o=n(6743),r=n(1002),i=n(76),a=n(7119);e.exports=a||o.call(i,r)},3488:e=>{e.exports=function(e){return e}},3610:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onmessage=void 0;var o=n(9275),r=n(9752),i=n(9923),a=n(1117);t.onmessage=function(e){if(!o.isntString(e.data)){var t=r.unpackPayload(e);if(t){var n=t.eventData,c=t.reply;i.dispatch("*",t.event,n,c,e),i.dispatch(e.origin,t.event,n,c,e),a.broadcastToChildWindows(e.data,t.origin,e.source)}}}},3628:(e,t,n)=>{"use strict";var o=n(8648),r=n(1064),i=n(7176);e.exports=o?function(e){return o(e)}:r?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return r(e)}:i?function(e){return i(e)}:null},3678:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packagePayload=void 0;var o=n(5159),r=n(6968);t.packagePayload=function(e,t,n,i){var a,c={event:e,origin:t};"function"==typeof i&&(c.reply=o.subscribeReplier(i,t)),c.eventData=n;try{a=r.prefix+JSON.stringify(c)}catch(e){throw new Error("Could not stringify event: "+e.message)}return a}},3738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3918:(e,t,n)=>{"use strict";var o=n(5606);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,l(o.key),o)}}function l(e){var t=function(e,t){if("object"!==I(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==I(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===I(t)?t:String(t)}function s(e,t){if(t&&("object"===I(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return d(e,arguments,_(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),E(o,e)},u(e)}function d(e,t,n){return d=f()?Reflect.construct.bind():function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&E(r,n.prototype),r},d.apply(null,arguments)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}var m=n(537).inspect,y=n(9597).codes.ERR_INVALID_ARG_TYPE;function v(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var O="",N="",g="",L="",T={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function h(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){n[t]=e[t]}),Object.defineProperty(n,"message",{value:e.message}),n}function A(e){return m(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function b(e,t,n){var r="",i="",a=0,c="",l=!1,s=A(e),p=s.split("\n"),u=A(t).split("\n"),d=0,f="";if("strictEqual"===n&&"object"===I(e)&&"object"===I(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===p.length&&1===u.length&&p[0]!==u[0]){var E=p[0].length+u[0].length;if(E<=10){if(!("object"===I(e)&&null!==e||"object"===I(t)&&null!==t||0===e&&0===t))return"".concat(T[n],"\n\n")+"".concat(p[0]," !== ").concat(u[0],"\n")}else if("strictEqualObject"!==n){if(E<(o.stderr&&o.stderr.isTTY?o.stderr.columns:80)){for(;p[0][d]===u[0][d];)d++;d>2&&(f="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",d),"^"),d=0)}}}for(var _=p[p.length-1],m=u[u.length-1];_===m&&(d++<2?c="\n ".concat(_).concat(c):r=_,p.pop(),u.pop(),0!==p.length&&0!==u.length);)_=p[p.length-1],m=u[u.length-1];var y=Math.max(p.length,u.length);if(0===y){var h=s.split("\n");if(h.length>30)for(h[26]="".concat(O,"...").concat(L);h.length>27;)h.pop();return"".concat(T.notIdentical,"\n\n").concat(h.join("\n"),"\n")}d>3&&(c="\n".concat(O,"...").concat(L).concat(c),l=!0),""!==r&&(c="\n ".concat(r).concat(c),r="");var b=0,R=T[n]+"\n".concat(N,"+ actual").concat(L," ").concat(g,"- expected").concat(L),S=" ".concat(O,"...").concat(L," Lines skipped");for(d=0;d<y;d++){var w=d-a;if(p.length<d+1)w>1&&d>2&&(w>4?(i+="\n".concat(O,"...").concat(L),l=!0):w>3&&(i+="\n ".concat(u[d-2]),b++),i+="\n ".concat(u[d-1]),b++),a=d,r+="\n".concat(g,"-").concat(L," ").concat(u[d]),b++;else if(u.length<d+1)w>1&&d>2&&(w>4?(i+="\n".concat(O,"...").concat(L),l=!0):w>3&&(i+="\n ".concat(p[d-2]),b++),i+="\n ".concat(p[d-1]),b++),a=d,i+="\n".concat(N,"+").concat(L," ").concat(p[d]),b++;else{var D=u[d],x=p[d],M=x!==D&&(!v(x,",")||x.slice(0,-1)!==D);M&&v(D,",")&&D.slice(0,-1)===x&&(M=!1,x+=","),M?(w>1&&d>2&&(w>4?(i+="\n".concat(O,"...").concat(L),l=!0):w>3&&(i+="\n ".concat(p[d-2]),b++),i+="\n ".concat(p[d-1]),b++),a=d,i+="\n".concat(N,"+").concat(L," ").concat(x),r+="\n".concat(g,"-").concat(L," ").concat(D),b+=2):(i+=r,r="",1!==w&&0!==d||(i+="\n ".concat(x),b++))}if(b>20&&d<y-2)return"".concat(R).concat(S,"\n").concat(i,"\n").concat(O,"...").concat(L).concat(r,"\n")+"".concat(O,"...").concat(L)}return"".concat(R).concat(l?S:"","\n").concat(i).concat(r).concat(c).concat(f)}var R=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(v,e);var n,r,a,l,u,d=(n=v,r=f(),function(){var e,t=_(n);if(r){var o=_(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return s(this,e)});function v(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),"object"!==I(e)||null===e)throw new y("options","Object",e);var n=e.message,r=e.operator,i=e.stackStartFn,a=e.actual,c=e.expected,l=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)t=d.call(this,String(n));else if(o.stderr&&o.stderr.isTTY&&(o.stderr&&o.stderr.getColorDepth&&1!==o.stderr.getColorDepth()?(O="",N="",L="",g=""):(O="",N="",L="",g="")),"object"===I(a)&&null!==a&&"object"===I(c)&&null!==c&&"stack"in a&&a instanceof Error&&"stack"in c&&c instanceof Error&&(a=h(a),c=h(c)),"deepStrictEqual"===r||"strictEqual"===r)t=d.call(this,b(a,c,r));else if("notDeepStrictEqual"===r||"notStrictEqual"===r){var u=T[r],f=A(a).split("\n");if("notStrictEqual"===r&&"object"===I(a)&&null!==a&&(u=T.notStrictEqualObject),f.length>30)for(f[26]="".concat(O,"...").concat(L);f.length>27;)f.pop();t=1===f.length?d.call(this,"".concat(u," ").concat(f[0])):d.call(this,"".concat(u,"\n\n").concat(f.join("\n"),"\n"))}else{var E=A(a),_="",m=T[r];"notDeepEqual"===r||"notEqual"===r?(E="".concat(T[r],"\n\n").concat(E)).length>1024&&(E="".concat(E.slice(0,1021),"...")):(_="".concat(A(c)),E.length>512&&(E="".concat(E.slice(0,509),"...")),_.length>512&&(_="".concat(_.slice(0,509),"...")),"deepEqual"===r||"equal"===r?E="".concat(m,"\n\n").concat(E,"\n\nshould equal\n\n"):_=" ".concat(r," ").concat(_)),t=d.call(this,"".concat(E).concat(_))}return Error.stackTraceLimit=l,t.generatedMessage=!n,Object.defineProperty(p(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=a,t.expected=c,t.operator=r,Error.captureStackTrace&&Error.captureStackTrace(p(t),i),t.stack,t.name="AssertionError",s(t)}return a=v,(l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return m(this,i(i({},t),{},{customInspect:!1,depth:0}))}}])&&c(a.prototype,l),u&&c(a,u),Object.defineProperty(a,"prototype",{writable:!1}),v}(u(Error),m.custom);e.exports=R},4035:(e,t,n)=>{"use strict";var o,r=n(6556),i=n(9092)(),a=n(9957),c=n(5795);if(i){var l=r("RegExp.prototype.exec"),s={},p=function(){throw s},u={toString:p,valueOf:p};"symbol"==typeof Symbol.toPrimitive&&(u[Symbol.toPrimitive]=p),o=function(e){if(!e||"object"!=typeof e)return!1;var t=c(e,"lastIndex");if(!(t&&a(t,"value")))return!1;try{l(e,u)}catch(e){return e===s}}}else{var d=r("Object.prototype.toString");o=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===d(e)}}e.exports=o},4039:(e,t,n)=>{"use strict";var o="undefined"!=typeof Symbol&&Symbol,r=n(1333);e.exports=function(){return"function"==typeof o&&("function"==typeof Symbol&&("symbol"==typeof o("foo")&&("symbol"==typeof Symbol("bar")&&r())))}},4133:(e,t,n)=>{"use strict";var o=n(487),r=n(8452),i=n(3003),a=n(6642),c=n(2464),l=o(a(),Number);r(l,{getPolyfill:a,implementation:i,shim:c}),e.exports=l},4148:(e,t,n)=>{"use strict";var o=n(5606),r=n(6763);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,l(o.key),o)}}function c(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}var s,p,u=n(9597).codes,d=u.ERR_AMBIGUOUS_ARGUMENT,f=u.ERR_INVALID_ARG_TYPE,E=u.ERR_INVALID_ARG_VALUE,_=u.ERR_INVALID_RETURN_VALUE,I=u.ERR_MISSING_ARGS,m=n(3918),y=n(537).inspect,v=n(537).types,O=v.isPromise,N=v.isRegExp,g=n(9133)(),L=n(9394)(),T=n(8075)("RegExp.prototype.test");new Map;function h(){var e=n(2299);s=e.isDeepEqual,p=e.isDeepStrictEqual}var A=!1,b=e.exports=D,R={};function S(e){if(e.message instanceof Error)throw e.message;throw new m(e)}function w(e,t,n,o){if(!n){var r=!1;if(0===t)r=!0,o="No value argument passed to `assert.ok()`";else if(o instanceof Error)throw o;var i=new m({actual:n,expected:!0,message:o,operator:"==",stackStartFn:e});throw i.generatedMessage=r,i}}function D(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];w.apply(void 0,[D,t.length].concat(t))}b.fail=function e(t,n,i,a,c){var l,s=arguments.length;if(0===s)l="Failed";else if(1===s)i=t,t=void 0;else{if(!1===A)A=!0,(o.emitWarning?o.emitWarning:r.warn.bind(r))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094");2===s&&(a="!=")}if(i instanceof Error)throw i;var p={actual:t,expected:n,operator:void 0===a?"fail":a,stackStartFn:c||e};void 0!==i&&(p.message=i);var u=new m(p);throw l&&(u.message=l,u.generatedMessage=!0),u},b.AssertionError=m,b.ok=D,b.equal=function e(t,n,o){if(arguments.length<2)throw new I("actual","expected");t!=n&&S({actual:t,expected:n,message:o,operator:"==",stackStartFn:e})},b.notEqual=function e(t,n,o){if(arguments.length<2)throw new I("actual","expected");t==n&&S({actual:t,expected:n,message:o,operator:"!=",stackStartFn:e})},b.deepEqual=function e(t,n,o){if(arguments.length<2)throw new I("actual","expected");void 0===s&&h(),s(t,n)||S({actual:t,expected:n,message:o,operator:"deepEqual",stackStartFn:e})},b.notDeepEqual=function e(t,n,o){if(arguments.length<2)throw new I("actual","expected");void 0===s&&h(),s(t,n)&&S({actual:t,expected:n,message:o,operator:"notDeepEqual",stackStartFn:e})},b.deepStrictEqual=function e(t,n,o){if(arguments.length<2)throw new I("actual","expected");void 0===s&&h(),p(t,n)||S({actual:t,expected:n,message:o,operator:"deepStrictEqual",stackStartFn:e})},b.notDeepStrictEqual=function e(t,n,o){if(arguments.length<2)throw new I("actual","expected");void 0===s&&h();p(t,n)&&S({actual:t,expected:n,message:o,operator:"notDeepStrictEqual",stackStartFn:e})},b.strictEqual=function e(t,n,o){if(arguments.length<2)throw new I("actual","expected");L(t,n)||S({actual:t,expected:n,message:o,operator:"strictEqual",stackStartFn:e})},b.notStrictEqual=function e(t,n,o){if(arguments.length<2)throw new I("actual","expected");L(t,n)&&S({actual:t,expected:n,message:o,operator:"notStrictEqual",stackStartFn:e})};var x=c(function e(t,n,o){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach(function(e){e in t&&(void 0!==o&&"string"==typeof o[e]&&N(t[e])&&T(t[e],o[e])?r[e]=o[e]:r[e]=t[e])})});function M(e,t,n,o){if("function"!=typeof t){if(N(t))return T(t,e);if(2===arguments.length)throw new f("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var r=new m({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:o});throw r.operator=o.name,r}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(0===a.length)throw new E("error",t,"may not be an empty object");return void 0===s&&h(),a.forEach(function(r){"string"==typeof e[r]&&N(t[r])&&T(t[r],e[r])||function(e,t,n,o,r,i){if(!(n in e)||!p(e[n],t[n])){if(!o){var a=new x(e,r),c=new x(t,r,e),l=new m({actual:a,expected:c,operator:"deepStrictEqual",stackStartFn:i});throw l.actual=e,l.expected=t,l.operator=i.name,l}S({actual:e,expected:t,message:o,operator:i.name,stackStartFn:i})}}(e,t,r,n,a,o)}),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function P(e){if("function"!=typeof e)throw new f("fn","Function",e);try{e()}catch(e){return e}return R}function C(e){return O(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function k(e){return Promise.resolve().then(function(){var t;if("function"==typeof e){if(!C(t=e()))throw new _("instance of Promise","promiseFn",t)}else{if(!C(e))throw new f("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then(function(){return t}).then(function(){return R}).catch(function(e){return e})})}function V(e,t,n,o){if("string"==typeof n){if(4===arguments.length)throw new f("error",["Object","Error","Function","RegExp"],n);if("object"===i(t)&&null!==t){if(t.message===n)throw new d("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new d("error/message",'The error "'.concat(t,'" is identical to the message.'));o=n,n=void 0}else if(null!=n&&"object"!==i(n)&&"function"!=typeof n)throw new f("error",["Object","Error","Function","RegExp"],n);if(t===R){var r="";n&&n.name&&(r+=" (".concat(n.name,")")),r+=o?": ".concat(o):".";var a="rejects"===e.name?"rejection":"exception";S({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(a).concat(r),stackStartFn:e})}if(n&&!M(t,n,o,e))throw t}function j(e,t,n,o){if(t!==R){if("string"==typeof n&&(o=n,n=void 0),!n||M(t,n)){var r=o?": ".concat(o):".",i="doesNotReject"===e.name?"rejection":"exception";S({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(i).concat(r,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function U(e,t,n,o,r){if(!N(t))throw new f("regexp","RegExp",t);var a="match"===r;if("string"!=typeof e||T(t,e)!==a){if(n instanceof Error)throw n;var c=!n;n=n||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(i(e)," (").concat(y(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(y(t),". Input:\n\n").concat(y(e),"\n"));var l=new m({actual:e,expected:t,message:n,operator:r,stackStartFn:o});throw l.generatedMessage=c,l}}function F(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];w.apply(void 0,[F,t.length].concat(t))}b.throws=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];V.apply(void 0,[e,P(t)].concat(o))},b.rejects=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return k(t).then(function(t){return V.apply(void 0,[e,t].concat(o))})},b.doesNotThrow=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];j.apply(void 0,[e,P(t)].concat(o))},b.doesNotReject=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return k(t).then(function(t){return j.apply(void 0,[e,t].concat(o))})},b.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===i(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=y(t);var o=new m({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),r=t.stack;if("string"==typeof r){var a=r.split("\n");a.shift();for(var c=o.stack.split("\n"),l=0;l<a.length;l++){var s=c.indexOf(a[l]);if(-1!==s){c=c.slice(0,s);break}}o.stack="".concat(c.join("\n"),"\n").concat(a.join("\n"))}throw o}},b.match=function e(t,n,o){U(t,n,o,e,"match")},b.doesNotMatch=function e(t,n,o){U(t,n,o,e,"doesNotMatch")},b.strict=g(F,b,{equal:b.strictEqual,deepEqual:b.deepStrictEqual,notEqual:b.notStrictEqual,notDeepEqual:b.notDeepStrictEqual}),b.strict.strict=b.strict},4373:e=>{e.exports=function(e){var t=Object(e),n=[];for(var o in t)n.unshift(o);return function e(){for(;n.length;)if((o=n.pop())in t)return e.value=o,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},4459:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},4633:(e,t,n)=>{var o=n(5172),r=n(6993),i=n(5869),a=n(887),c=n(1791),l=n(4373),s=n(579);function p(){"use strict";var t=r(),n=t.m(p),u=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===u||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function E(e){var t,n;return function(o){t||(t={stop:function(){return n(o.a,2)},catch:function(){return o.v},abrupt:function(e,t){return n(o.a,f[e],t)},delegateYield:function(e,r,i){return t.resultName=r,n(o.d,s(e),i)},finish:function(e){return n(o.f,e)}},n=function(e,n,r){o.p=t.prev,o.n=t.next;try{return e(n,r)}finally{t.next=o.n}}),t.resultName&&(t[t.resultName]=o.v,t.resultName=void 0),t.sent=o.v,t.next=o.n;try{return e.call(this,t)}finally{o.p=t.prev,o.n=t.next}}}return(e.exports=p=function(){return{wrap:function(e,n,o,r){return t.w(E(e),n,o,r&&r.reverse())},isGeneratorFunction:d,mark:t.m,awrap:function(e,t){return new o(e,t)},AsyncIterator:c,async:function(e,t,n,o,r){return(d(t)?a:i)(E(e),t,n,o,r)},keys:l,values:s}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=p,e.exports.__esModule=!0,e.exports.default=e.exports},4756:(e,t,n)=>{var o=n(4633)();e.exports=o;try{regeneratorRuntime=o}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},5159:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeReplier=void 0;var r=n(6096),i=o(n(841));t.subscribeReplier=function(e,t){var n=i.default();return r.Framebus.target(t).on(n,function o(i,a){e(i,a),r.Framebus.target(t).off(n,o)}),n}},5172:e=>{e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},5213:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasOpener=void 0,t.hasOpener=function(e){return e.top===e&&(null!=e.opener&&(e.opener!==e&&!0!==e.opener.closed))}},5345:e=>{"use strict";e.exports=URIError},5546:e=>{function t(n,o,r,i){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}e.exports=t=function(e,n,o,r){if(n)a?a(e,n,{value:o,enumerable:!r,configurable:!r,writable:!r}):e[n]=o;else{var i=function(n,o){t(e,n,function(e){return this._invoke(n,o,e)})};i("next",0),i("throw",1),i("return",2)}},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,o,r,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},5606:e=>{var t,n,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var c,l=[],s=!1,p=-1;function u(){s&&c&&(s=!1,c.length?l=c.concat(l):p=-1,l.length&&d())}function d(){if(!s){var e=a(u);s=!0;for(var t=l.length;t;){for(c=l,l=[];++p<t;)c&&c[p].run();p=-1,t=l.length}c=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function E(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||s||a(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=E,o.addListener=E,o.once=E,o.off=E,o.removeListener=E,o.removeAllListeners=E,o.emit=E,o.prependListener=E,o.prependOnceListener=E,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},5680:(e,t,n)=>{"use strict";var o=n(5767);e.exports=function(e){return!!o(e)}},5767:(e,t,n)=>{"use strict";var o=n(2682),r=n(9209),i=n(487),a=n(6556),c=n(5795),l=n(3628),s=a("Object.prototype.toString"),p=n(9092)(),u="undefined"==typeof globalThis?n.g:globalThis,d=r(),f=a("String.prototype.slice"),E=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},_={__proto__:null};o(d,p&&c&&l?function(e){var t=new u[e];if(Symbol.toStringTag in t&&l){var n=l(t),o=c(n,Symbol.toStringTag);if(!o&&n){var r=l(n);o=c(r,Symbol.toStringTag)}_["$"+e]=i(o.get)}}:function(e){var t=new u[e],n=t.slice||t.set;n&&(_["$"+e]=i(n))});e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!p){var t=f(s(e),8,-1);return E(d,t)>-1?t:"Object"===t&&function(e){var t=!1;return o(_,function(n,o){if(!t)try{n(e),t=f(o,1)}catch(e){}}),t}(e)}return c?function(e){var t=!1;return o(_,function(n,o){if(!t)try{"$"+n(e)===o&&(t=f(o,1))}catch(e){}}),t}(e):null}},5795:(e,t,n)=>{"use strict";var o=n(6549);if(o)try{o([],"length")}catch(e){o=null}e.exports=o},5869:(e,t,n)=>{var o=n(887);e.exports=function(e,t,n,r,i){var a=o(e,t,n,r,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},5880:e=>{"use strict";e.exports=Math.pow},6096:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Framebus=void 0;var o=n(9275),r=n(2926),i=n(9974),a=n(3678),c=n(6968),l=function(){function e(e){void 0===e&&(e="*"),this.origin=e}return e.target=function(t){return void 0===t&&(t="*"),new e(t)},e.prototype.include=function(e){return null!=e&&(null!=e.Window&&(e.constructor===e.Window&&(c.childWindows.push(e),!0)))},e.prototype.target=function(t){return e.target(t)},e.prototype.emit=function(e,t,n){var r=this.origin;if(o.isntString(e))return!1;if(o.isntString(r))return!1;"function"==typeof t&&(n=t,t=void 0);var c=a.packagePayload(e,r,t,n);return!!c&&(i.broadcast(window.top||window.self,c,r),!0)},e.prototype.on=function(e,t){var n=this.origin;return!r.subscriptionArgsInvalid(e,t,n)&&(c.subscribers[n]=c.subscribers[n]||{},c.subscribers[n][e]=c.subscribers[n][e]||[],c.subscribers[n][e].push(t),!0)},e.prototype.off=function(e,t){var n=this.origin;if(r.subscriptionArgsInvalid(e,t,n))return!1;var o=c.subscribers[n]&&c.subscribers[n][e];if(!o)return!1;for(var i=0;i<o.length;i++)if(o[i]===t)return o.splice(i,1),!0;return!1},e}();t.Framebus=l},6119:(e,t,n)=>{var o=n(7721),r=n(3488);e.exports=function(e){return e&&e.length?o(e,r):0}},6188:e=>{"use strict";e.exports=Math.max},6549:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},6556:(e,t,n)=>{"use strict";var o=n(453),r=n(3126),i=r([o("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=o(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?r([n]):n}},6576:(e,t,n)=>{"use strict";var o=n(9394),r=n(8452);e.exports=function(){var e=o();return r(Object,{is:e},{is:function(){return Object.is!==e}}),e}},6578:e=>{"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},6642:(e,t,n)=>{"use strict";var o=n(3003);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:o}},6698:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},6743:(e,t,n)=>{"use strict";var o=n(9353);e.exports=Function.prototype.bind||o},6763:(e,t,n)=>{var o=n(537),r=n(4148);function i(){return(new Date).getTime()}var a,c=Array.prototype.slice,l={};a=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var s=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(e){l[e]=i()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var n=i()-t;a.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=o.format.apply(null,arguments),a.error(e.stack)},"trace"],[function(e){a.log(o.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=c.call(arguments,1);r.ok(!1,o.format.apply(null,t))}},"assert"]],p=0;p<s.length;p++){var u=s[p],d=u[0],f=u[1];a[f]||(a[f]=d)}e.exports=a},6897:(e,t,n)=>{"use strict";var o=n(453),r=n(41),i=n(592)(),a=n(5795),c=n(9675),l=o("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new c("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new c("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,s=!0;if("length"in e&&a){var p=a(e,"length");p&&!p.configurable&&(o=!1),p&&!p.writable&&(s=!1)}return(o||s||!n)&&(i?r(e,"length",t,!0,!0):r(e,"length",t)),e}},6968:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribers=t.childWindows=t.prefix=void 0,t.prefix="/*framebus*/",t.childWindows=[],t.subscribers={}},6993:(e,t,n)=>{var o=n(5546);function r(){var t,n,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.toStringTag||"@@toStringTag";function l(e,r,i,a){var c=r&&r.prototype instanceof p?r:p,l=Object.create(c.prototype);return o(l,"_invoke",function(e,o,r){var i,a,c,l=0,p=r||[],u=!1,d={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return i=e,a=0,c=t,d.n=n,s}};function f(e,o){for(a=e,c=o,n=0;!u&&l&&!r&&n<p.length;n++){var r,i=p[n],f=d.p,E=i[2];e>3?(r=E===o)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=f&&((r=e<2&&f<i[1])?(a=0,d.v=o,d.n=i[1]):f<E&&(r=e<3||i[0]>o||o>E)&&(i[4]=e,i[5]=o,d.n=E,a=0))}if(r||e>1)return s;throw u=!0,o}return function(r,p,E){if(l>1)throw TypeError("Generator is already running");for(u&&1===p&&f(p,E),a=p,c=E;(n=a<2?t:c)||!u;){i||(a?a<3?(a>1&&(d.n=-1),f(a,c)):d.n=c:d.v=c);try{if(l=2,i){if(a||(r="next"),n=i[r]){if(!(n=n.call(i,c)))throw TypeError("iterator result is not an object");if(!n.done)return n;c=n.value,a<2&&(a=0)}else 1===a&&(n=i.return)&&n.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),a=1);i=t}else if((n=(u=d.n<0)?c:e.call(o,d))!==s)break}catch(e){i=t,a=1,c=e}finally{l=1}}return{value:n,done:u}}}(e,i,a),!0),l}var s={};function p(){}function u(){}function d(){}n=Object.getPrototypeOf;var f=[][a]?n(n([][a]())):(o(n={},a,function(){return this}),n),E=d.prototype=p.prototype=Object.create(f);function _(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,o(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e}return u.prototype=d,o(E,"constructor",d),o(d,"constructor",u),u.displayName="GeneratorFunction",o(d,c,"GeneratorFunction"),o(E),o(E,c,"Generator"),o(E,a,function(){return this}),o(E,"toString",function(){return"[object Generator]"}),(e.exports=r=function(){return{w:l,m:_}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},7119:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7176:(e,t,n)=>{"use strict";var o,r=n(3126),i=n(5795);try{o=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!o&&i&&i(Object.prototype,"__proto__"),c=Object,l=c.getPrototypeOf;e.exports=a&&"function"==typeof a.get?r([a.get]):"function"==typeof l&&function(e){return l(null==e?e:c(e))}},7244:(e,t,n)=>{"use strict";var o=n(9092)(),r=n(6556)("Object.prototype.toString"),i=function(e){return!(o&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===r(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r(e)&&"callee"in e&&"[object Function]"===r(e.callee)},c=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=c?i:a},7653:(e,t,n)=>{"use strict";var o=n(8452),r=n(487),i=n(9211),a=n(9394),c=n(6576),l=r(a(),Object);o(l,{getPolyfill:a,implementation:i,shim:c}),e.exports=l},7721:e=>{e.exports=function(e,t){for(var n,o=-1,r=e.length;++o<r;){var i=t(e[o]);void 0!==i&&(n=void 0===n?i:n+i)}return n}},7920:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detach=t.attach=void 0;var o=n(3610),r=!1;t.attach=function(){r||"undefined"==typeof window||(r=!0,window.addEventListener("message",o.onmessage,!1))},t.detach=function(){r=!1,window.removeEventListener("message",o.onmessage,!1)}},8002:e=>{"use strict";e.exports=Math.min},8068:e=>{"use strict";e.exports=SyntaxError},8075:(e,t,n)=>{"use strict";var o=n(453),r=n(487),i=r(o("String.prototype.indexOf"));e.exports=function(e,t){var n=o(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?r(n):n}},8184:(e,t,n)=>{"use strict";var o,r=n(6556),i=n(9721)(/^\s*(?:function)?\*/),a=n(9092)(),c=n(3628),l=r("Object.prototype.toString"),s=r("Function.prototype.toString");e.exports=function(e){if("function"!=typeof e)return!1;if(i(s(e)))return!0;if(!a)return"[object GeneratorFunction]"===l(e);if(!c)return!1;if(void 0===o){var t=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(e){}}();o=!!t&&c(t)}return c(e)===o}},8403:(e,t,n)=>{"use strict";var o=n(1189),r=n(1333)(),i=n(6556),a=n(9612),c=i("Array.prototype.push"),l=i("Object.prototype.propertyIsEnumerable"),s=r?a.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=a(e);if(1===arguments.length)return n;for(var i=1;i<arguments.length;++i){var p=a(arguments[i]),u=o(p),d=r&&(a.getOwnPropertySymbols||s);if(d)for(var f=d(p),E=0;E<f.length;++E){var _=f[E];l(p,_)&&c(u,_)}for(var I=0;I<u.length;++I){var m=u[I];if(l(p,m)){var y=p[m];n[m]=y}}}return n}},8446:e=>{e.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},8452:(e,t,n)=>{"use strict";var o=n(1189),r="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,c=n(41),l=n(592)(),s=function(e,t,n,o){if(t in e)if(!0===o){if(e[t]===n)return}else if("function"!=typeof(r=o)||"[object Function]"!==i.call(r)||!o())return;var r;l?c(e,t,n,!0):c(e,t,n)},p=function(e,t){var n=arguments.length>2?arguments[2]:{},i=o(t);r&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var c=0;c<i.length;c+=1)s(e,i[c],t[i[c]],n[i[c]])};p.supportsDescriptors=!!l,e.exports=p},8648:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},8673:e=>{"use strict";function t(){this._types=Object.create(null),this._extensions=Object.create(null);for(let e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}t.prototype.define=function(e,t){for(let n in e){let o=e[n].map(function(e){return e.toLowerCase()});n=n.toLowerCase();for(let e=0;e<o.length;e++){const r=o[e];if("*"!==r[0]){if(!t&&r in this._types)throw new Error('Attempt to change mapping for "'+r+'" extension from "'+this._types[r]+'" to "'+n+'". Pass `force=true` to allow this, otherwise remove "'+r+'" from the list of extensions for "'+n+'".');this._types[r]=n}}if(t||!this._extensions[n]){const e=o[0];this._extensions[n]="*"!==e[0]?e:e.substr(1)}}},t.prototype.getType=function(e){let t=(e=String(e)).replace(/^.*[/\\]/,"").toLowerCase(),n=t.replace(/^.*\./,"").toLowerCase(),o=t.length<e.length;return(n.length<t.length-1||!o)&&this._types[n]||null},t.prototype.getExtension=function(e){return(e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1)&&this._extensions[e.toLowerCase()]||null},e.exports=t},8875:(e,t,n)=>{"use strict";var o;if(!Object.keys){var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(1093),c=Object.prototype.propertyIsEnumerable,l=!c.call({toString:null},"toString"),s=c.call(function(){},"prototype"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&r.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{u(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();o=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),o=a(e),c=t&&"[object String]"===i.call(e),d=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var E=s&&n;if(c&&e.length>0&&!r.call(e,0))for(var _=0;_<e.length;++_)d.push(String(_));if(o&&e.length>0)for(var I=0;I<e.length;++I)d.push(String(I));else for(var m in e)E&&"prototype"===m||!r.call(e,m)||d.push(String(m));if(l)for(var y=function(e){if("undefined"==typeof window||!f)return u(e);try{return u(e)}catch(e){return!1}}(e),v=0;v<p.length;++v)y&&"constructor"===p[v]||!r.call(e,p[v])||d.push(p[v]);return d}}e.exports=o},8968:e=>{"use strict";e.exports=Math.floor},9032:(e,t,n)=>{"use strict";var o=n(7244),r=n(8184),i=n(5767),a=n(5680);function c(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,s="undefined"!=typeof Symbol,p=c(Object.prototype.toString),u=c(Number.prototype.valueOf),d=c(String.prototype.valueOf),f=c(Boolean.prototype.valueOf);if(l)var E=c(BigInt.prototype.valueOf);if(s)var _=c(Symbol.prototype.valueOf);function I(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function m(e){return"[object Map]"===p(e)}function y(e){return"[object Set]"===p(e)}function v(e){return"[object WeakMap]"===p(e)}function O(e){return"[object WeakSet]"===p(e)}function N(e){return"[object ArrayBuffer]"===p(e)}function g(e){return"undefined"!=typeof ArrayBuffer&&(N.working?N(e):e instanceof ArrayBuffer)}function L(e){return"[object DataView]"===p(e)}function T(e){return"undefined"!=typeof DataView&&(L.working?L(e):e instanceof DataView)}t.isArgumentsObject=o,t.isGeneratorFunction=r,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||T(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},m.working="undefined"!=typeof Map&&m(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(m.working?m(e):e instanceof Map)},y.working="undefined"!=typeof Set&&y(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(y.working?y(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},O.working="undefined"!=typeof WeakSet&&O(new WeakSet),t.isWeakSet=function(e){return O(e)},N.working="undefined"!=typeof ArrayBuffer&&N(new ArrayBuffer),t.isArrayBuffer=g,L.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&L(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=T;var h="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===p(e)}function b(e){return void 0!==h&&(void 0===A.working&&(A.working=A(new h)),A.working?A(e):e instanceof h)}function R(e){return I(e,u)}function S(e){return I(e,d)}function w(e){return I(e,f)}function D(e){return l&&I(e,E)}function x(e){return s&&I(e,_)}t.isSharedArrayBuffer=b,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===p(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===p(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===p(e)},t.isGeneratorObject=function(e){return"[object Generator]"===p(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===p(e)},t.isNumberObject=R,t.isStringObject=S,t.isBooleanObject=w,t.isBigIntObject=D,t.isSymbolObject=x,t.isBoxedPrimitive=function(e){return R(e)||S(e)||w(e)||D(e)||x(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(g(e)||b(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},9092:(e,t,n)=>{"use strict";var o=n(1333);e.exports=function(){return o()&&!!Symbol.toStringTag}},9133:(e,t,n)=>{"use strict";var o=n(8403);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},o=0;o<t.length;++o)n[t[o]]=t[o];var r=Object.assign({},n),i="";for(var a in r)i+=a;return e!==i}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?o:Object.assign:o}},9209:(e,t,n)=>{"use strict";var o=n(6578),r="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<o.length;t++)"function"==typeof r[o[t]]&&(e[e.length]=o[t]);return e}},9211:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},9275:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isntString=void 0,t.isntString=function(e){return"string"!=typeof e}},9290:e=>{"use strict";e.exports=RangeError},9353:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,o=function(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var r=0;r<t.length;r+=1)n[r+e.length]=t[r];return n};e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==t.apply(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var i,a=function(e,t){for(var n=[],o=t||0,r=0;o<e.length;o+=1,r+=1)n[r]=e[o];return n}(arguments,1),c=n(0,r.length-a.length),l=[],s=0;s<c;s++)l[s]="$"+s;if(i=Function("binder","return function ("+function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=t);return n}(l,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var t=r.apply(this,o(a,arguments));return Object(t)===t?t:this}return r.apply(e,o(a,arguments))}),r.prototype){var p=function(){};p.prototype=r.prototype,i.prototype=new p,p.prototype=null}return i}},9383:e=>{"use strict";e.exports=Error},9394:(e,t,n)=>{"use strict";var o=n(9211);e.exports=function(){return"function"==typeof Object.is?Object.is:o}},9538:e=>{"use strict";e.exports=ReferenceError},9597:(e,t,n)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,i(o.key),o)}}function i(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var s,p,u={};function d(e,t,n){n||(n=Error);var o=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(p,n);var o,i,l,s=c(p);function p(n,o,r){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),i=s.call(this,function(e,n,o){return"string"==typeof t?t:t(e,n,o)}(n,o,r)),i.code=e,i}return o=p,i&&r(o.prototype,i),l&&r(o,l),Object.defineProperty(o,"prototype",{writable:!1}),o}(n);u[e]=o}function f(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}d("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),d("ERR_INVALID_ARG_TYPE",function(e,t,r){var i,a,c,l;if(void 0===s&&(s=n(4148)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(!c||c<0?0:+c,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))l="The ".concat(e," ").concat(i," ").concat(f(t,"type"));else{var p=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(p," ").concat(i," ").concat(f(t,"type"))}return l+=". Received type ".concat(o(r))},TypeError),d("ERR_INVALID_ARG_VALUE",function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===p&&(p=n(537));var r=p.inspect(t);return r.length>128&&(r="".concat(r.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(o,". Received ").concat(r)},TypeError,RangeError),d("ERR_INVALID_RETURN_VALUE",function(e,t,n){var r;return r=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(o(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(r,".")},TypeError),d("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];void 0===s&&(s=n(4148)),s(t.length>0,"At least one arg needs to be specified");var r="The ",i=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),i){case 1:r+="".concat(t[0]," argument");break;case 2:r+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:r+=t.slice(0,i-1).join(", "),r+=", and ".concat(t[i-1]," arguments")}return"".concat(r," must be specified")},TypeError),e.exports.codes=u},9600:e=>{"use strict";var t,n,o=Function.prototype.toString,r="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof r&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},r(function(){throw 42},null,t)}catch(e){e!==n&&(r=null)}else r=null;var i=/^\s*class\b/,a=function(e){try{var t=o.call(e);return i.test(t)}catch(e){return!1}},c=function(e){try{return!a(e)&&(o.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,s="function"==typeof Symbol&&!!Symbol.toStringTag,p=!(0 in[,]),u=function(){return!1};if("object"==typeof document){var d=document.all;l.call(d)===l.call(document.all)&&(u=function(e){if((p||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=r?function(e){if(u(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{r(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&c(e)}:function(e){if(u(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(s)return c(e);if(a(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&c(e)}},9612:e=>{"use strict";e.exports=Object},9675:e=>{"use strict";e.exports=TypeError},9721:(e,t,n)=>{"use strict";var o=n(6556),r=n(4035),i=o("RegExp.prototype.exec"),a=n(9675);e.exports=function(e){if(!r(e))throw new a("`regex` must be a RegExp");return function(t){return null!==i(e,t)}}},9752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unpackPayload=void 0;var o=n(6968),r=n(3678);t.unpackPayload=function(e){var t;if(e.data.slice(0,o.prefix.length)!==o.prefix)return!1;try{t=JSON.parse(e.data.slice(o.prefix.length))}catch(e){return!1}if(t.reply){var n=e.origin,i=e.source,a=t.reply;t.reply=function(e){if(i){var t=r.packagePayload(a,n,e);t&&i.postMessage(t,n)}}}return t}},9923:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dispatch=void 0;var o=n(6968);t.dispatch=function(e,t,n,r,i){if(o.subscribers[e]&&o.subscribers[e][t]){var a=[];n&&a.push(n),r&&a.push(r);for(var c=0;c<o.subscribers[e][t].length;c++)o.subscribers[e][t][c].apply(i,a)}}},9957:(e,t,n)=>{"use strict";var o=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=n(6743);e.exports=i.call(o,r)},9974:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.broadcast=void 0;var o=n(5213);t.broadcast=function e(t,n,r){var i,a=0;try{for(t.postMessage(n,r),o.hasOpener(t)&&e(t.opener.top,n,r);i=t.frames[a];)e(i,n,r),a++}catch(e){}}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="";var o={};return(()=>{"use strict";n.r(o),n.d(o,{CardMetadata:()=>e.CardMetadata,CardType:()=>he,CollectContainer:()=>Dr,CollectElement:()=>jo,CollectElementInput:()=>e.CollectElementInput,CollectElementOptions:()=>e.CollectElementOptions,CollectElementUpdateOptions:()=>e.CollectElementUpdateOptions,CollectOptions:()=>e.ICollectOptions,CollectResponse:()=>e.CollectResponse,ComposableContainer:()=>Ri,ComposableElement:()=>zo,ContainerOptions:()=>e.ContainerOptions,ContainerType:()=>Gi,DeleteOptions:()=>e.IDeleteOptions,DeleteRecord:()=>e.IDeleteRecord,DeleteRequest:()=>e.IDeleteRecordInput,DeleteResponse:()=>e.DeleteResponse,DetokenizeRecord:()=>e.DetokenizeRecord,DetokenizeRequest:()=>e.IDetokenizeInput,DetokenizeResponse:()=>e.DetokenizeResponse,ElementState:()=>e.ElementState,ElementType:()=>Te,Env:()=>Qe,ErrorTextStyles:()=>e.ErrorTextStyles,EventName:()=>Ze,GetByIdRequest:()=>e.IGetByIdInput,GetByIdResponse:()=>e.GetByIdResponse,GetOptions:()=>e.IGetOptions,GetRecord:()=>e.IGetRecord,GetRequest:()=>e.IGetInput,GetResponse:()=>e.GetResponse,InputStyles:()=>e.InputStyles,InsertOptions:()=>e.IInsertOptions,InsertRecord:()=>e.IInsertRecord,InsertRequest:()=>e.IInsertRecordInput,InsertResponse:()=>e.InsertResponse,LabelStyles:()=>e.LabelStyles,LogLevel:()=>$e,RedactionType:()=>He,RenderFileResponse:()=>e.RenderFileResponse,RevealContainer:()=>oo,RevealElement:()=>xn,RevealElementInput:()=>t.IRevealElementInput,RevealElementOptions:()=>t.IRevealElementOptions,RevealRecord:()=>e.IRevealRecord,RevealResponse:()=>e.RevealResponse,SkyflowConfig:()=>i.ISkyflow,ThreeDS:()=>Ci,ThreeDSBrowserDetails:()=>r.ThreeDSBrowserDetails,UpdateOptions:()=>e.IUpdateOptions,UpdateRequest:()=>e.IUpdateRequest,UpdateResponse:()=>e.UpdateResponse,UploadFilesResponse:()=>e.UploadFilesResponse,ValidationRule:()=>e.IValidationRule,ValidationRuleType:()=>tt,default:()=>ta});var e={};n.r(e),n.d(e,{o9:()=>Qe,Ur:()=>Ze,$b:()=>$e,Go:()=>et,eb:()=>He,dF:()=>Je,UL:()=>tt});var t={};n.r(t),n.d(t,{A:()=>oo});var r={};n.r(r),n.d(r,{A:()=>Ci});var i={};function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}function l(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,c(o.key),o)}}function u(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.r(i),n.d(i,{K:()=>Gi,A:()=>ea});var d=n(2281),f=n.n(d);function E(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=crypto.getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)*16|0;return("x"===e?t:3&t|8).toString(16)})}const _=n.p+"2afb5d11fb02e9292eaf.svg",I=n.p+"5408d9cd30b616684aa0.svg",m=n.p+"a9431336dd9f3e17b880.svg",y=n.p+"9b996d698afd3d404564.svg",v=n.p+"404966085770d8ec21ca.svg",O=n.p+"8062a86943450f142966.svg",N=n.p+"407dfd9c3fd800945b74.svg",g=n.p+"08ad88dee7d4519954ec.svg",L=n.p+"d418de915d45f039ac22.svg",T=n.p+"cbee67fb3d652dad9e25.svg",h=(n.p,n.p,n.p,n.p+"bcd5969a8a86792c2995.svg");const A={infoLogs:{INITIALIZE_CLIENT:"%s1 - Initializing skyflow client.",CLIENT_INITIALIZED:"%s1 - Initialized skyflow client successfully.",CREATE_COLLECT_CONTAINER:"%s1 - Creating Collect container.",COLLECT_CONTAINER_CREATED:"%s1 - Created Collect container successfully.",CREATE_REVEAL_CONTAINER:"%s1 - Creating Reveal container.",REVEAL_CONTAINER_CREATED:"%s1 - Created Reveal container successfully.",VALIDATE_RECORDS:"%s1 - Validating insert records.",VALIDATE_DETOKENIZE_INPUT:"%s1 - Validating detokenize input.",VALIDATE_GET_INPUT:"%s1 - Validating get input.",VALIDATE_DELETE_INPUT:"%s1 - Validating delete input.",VALIDATE_COLLECT_RECORDS:"%s1 - Validating collect element input.",VALIDATE_REVEAL_RECORDS:"%s1 - Validating reveal element input.",VALIDATE_RENDER_RECORDS:"%s1 - Validating file render element input.",CREATED_ELEMENT:"%s1 - Created %s2 element.",ELEMENT_MOUNTED:"%s1 - %s2 Element mounted.",ELEMENT_REVEALED:"%s1 - %s2 Element revealed.",FILE_RENDERED:"%s1 - %s2 File rendered.",COLLECT_SUBMIT_SUCCESS:"%s1 - Data has been collected successfully.",REVEAL_SUBMIT_SUCCESS:"%s1 - Data has been revealed successfully.",RENDER_SUBMIT_SUCCESS:"%s1 - File download URL has been fetched successfully.",INSERT_DATA_SUCCESS:"%s1 - Data has been inserted successfully.",DETOKENIZE_SUCCESS:"%s1 - Data has been revealed successfully.",GET_SUCCESS:"%s1 - Data has been revealed successfully.",DELETE_SUCCESS:"%s1 - Data has been deleted successfully.",BEARER_TOKEN_LISTENER:"%s1 - Get bearer token listener added.",CAPTURED_BEARER_TOKEN_EVENT:"%s1 - Captured bearer token event.",BEARER_TOKEN_RESOLVED:"%s1 - GetBearerToken promise resolved successfully.",REUSE_BEARER_TOKEN:"%s1 - Reusing the bearer token.",PUREJS_CONTROLLER_INITIALIZED:"%s1 - SkyflowController initialized.",PUREJS_LISTENER_READY:"%s1 - Purejs listener ready.",EMIT_PURE_JS_CONTROLLER:"%s1 - Emitted Skyflow controller event.",INSERT_TRIGGERED:"%s1 - Insert method triggered.",UPDATE_TRIGGERED:"%s1 - Update method triggered.",DETOKENIZE_TRIGGERED:"%s1 - Detokenize method triggered.",GET_TRIGGERED:"%s1 - Get method triggered.",GET_BY_ID_TRIGGERED:"%s1 - Get method triggered.",DELETE_TRIGGERED:"%s1 - Delete method triggered.",EMIT_PURE_JS_REQUEST:"%s1 - Emitted %s2 request.",CAPTURE_PURE_JS_REQUEST:"%s1 - Captured %s2 event.",LISTEN_PURE_JS_REQUEST:"%s1 - Listening to %s2 event.",CAPTURE_PUREJS_FRAME:"%s1 - Captured SkyflowController frame ready event.",FETCH_RECORDS_RESOLVED:"%s1 - Detokenize request is resolved.",INSERT_RECORDS_RESOLVED:"%s1 - Insert request is resolved.",UPDATE_RECORD_RESOLVED:"%s1 - Update request is resolved.",GET_RESOLVED:"%s1 - Get request is resolved.",GET_BY_SKYFLOWID_RESOLVED:"%s1 - GetById request is resolved.",DELETE_RESOLVED:"%s1 - Delete request is resolved",EMIT_EVENT:"%s1 - %s2 event emitted",CAPTURE_EVENT:"%s1 - Captured event %s2",METRIC_CAPTURE_EVENT:"Metric event captured Successfully",UNKNOWN_METRIC_CAPTURE_EVENT:"Metric event capturing Failed with %s1",UNKNOWN_RESPONSE_FROM_METRIC_EVENT:"Metric event Captured with Unknown Response",LISTEN_COLLECT_FRAME_READY:"%s1 - Listening to collect FRAME_READY event",EMIT_COLLECT_ELEMENT_FRAME_READY:"%s1 - Emitting collect element %s2 FRAME_READY event",ENTERED_COLLECT_FRAME_READY_CB:"%s1 - In IFrameForm constructor, Entered FRAME_READY callback",EXECUTE_COLLECT_ELEMENT_FRAME_READY_CB:"%s1 - In IFrameForm, executing collect element, %s2 FRAME_READY callback",CLIENT_METADATA_NOT_SET:"%s1 - Client metadata not set",EXECUTE_COLLECT_ELEMENT_INIT:"%s1 - calling Collect element init",INSIDE__COLLECT_ELEMENT_INIT:"%s1 - Inside Collect element init for %s2",CREATING_COLLECT_ELEMENT_FORM:"%s1 - Start, creating iframe form for %s2",COLLECT_FRAME_READY_CB:"%s1 - In FrameElements, executing collect element FRAME_READY cb for %s2, sending metadata",INSIDE_FRAME_ELEMENTS_CONSTRUCOTR:"%s1 - Inside FrameElements constructor",SETUP_IN_START:"%s1 - Inside FrameElements start(), calling setup",SETUP_IN_CONSTRUCTOR:"%s1 - Inside FrameElements constructor, calling setup",COLLECT_ELEMET_START:"%s1 - %s2, Collect Element start",COLLECT_CONTROLLER_START:"%s1 - %s2, Collect Controller start",REVEAL_ELEMENT_START:"%s1 - %s2, Reveal Element start",EMIT_COLLECT_FRAME_CONTROLLER_EVENT:"%s1 - Emit collect FrameController FRAME_READY event",EXECUTE_COLLECT_CONTROLLER_READY_CB:"%s1 - Executing collect FrameController FRAME_READY callback, set client metadata",IFRAMEFORM_CONSTRUCTOR_FRAME_READY_LISTNER:"%s1 - In IFrameForm constructor, Adding listener for FRAME_READY event",IFRAMEFORM_CONSTRUCTOR_TOKENIZATION_LISTNER:"%s1 - In IFrameForm constructor, Adding listener for TOKENIZATION_REQUEST event",CURRENT_ENV:"%s1 - Client Env is %s2",CURRENT_LOG_LEVEL:"%s1 - Client LogLevel is %s2",VALIDATE_GET_BY_ID_INPUT:"%s1 - Validating getByID input."},errorLogs:{NO_ELEMENTS_IN_COLLECT:"Validation error. No elements found in collect container",NO_ELEMENTS_IN_COMPOSABLE:"Validation error. No elements found in composable container",NO_ELEMENTS_IN_REVEAL:"Validation error. No elements found in reveal container",INVALID_FILE_NAMES:"Invalid File Name. Only alphanumeric characters and !-_.*() are allowed.",INVALID_FILE_NAME:"Invalid File Name. Only alphanumeric characters and !-_.*() are allowed.",CLIENT_CONNECTION:"client connection not established. client info has not reached iframes",INVALID_BEARER_TOKEN:"Token generated from 'getBearerToken' callback function is invalid. Make sure the implementation of 'getBearerToken' is correct.",BEARER_TOKEN_REJECTED:"'getBearerToken' callback function call failed with rejected promise. Make sure the implementation of 'getBearerToken' is correct.",VAULTID_IS_REQUIRED:"Initialization failed. Invalid credentials. Specify a valid 'vaultID'.",EMPTY_VAULTID_IN_INIT:"Initialization failed. Invalid credentials. Specify a valid 'vaultID'.",VAULTURL_IS_REQUIRED:"Initialization failed. Invalid credentials. Specify a valid 'vaultURL'",EMPTY_VAULTURL_IN_INIT:"Initialization failed. Invalid credentials. Specify a valid 'vaultURL'",INVALID_VAULTURL_IN_INIT:"Initialization failed. Invalid client credentials. 'vaultURL' must be begin with 'https://.'",GET_BEARER_TOKEN_IS_REQUIRED:"Initialization failed. Invalid client credentials. Specify a valid bearer token.",EMPTY_CONTAINER_TYPE:"Container creation failed. 'containerType' is invalid. Specify a valid container type.",INVALID_CONTAINER_TYPE:"Container creation failed. '%s1' is invalid. Specify a valid container type.",INVALID_COLLECT_VALUE:"Invalid value",INVALID_COLLECT_VALUE_WITH_LABEL:"Invalid %s1",REQUIRED_COLLECT_VALUE:"%s1 is required",DEFAULT_REQUIRED_COLLECT_VALUE:"Field is required",RECORDS_KEY_NOT_FOUND:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",INVALID_RECORDS_IN_INSERT:"Validation error. Invalid records. Specify a value of type array instead.",EMPTY_RECORDS_IN_INSERT:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_TABLE_IN_INSERT:"Validation error. Missing 'table' key in records at index %s1. Provide a valid 'table' key.",EMPTY_TABLE_IN_INSERT:"Validation error. 'table' key cannot be empty in records at index %s1. Specify a non-empty value instead.",INVALID_TABLE_IN_INSERT:"Validation error. Invalid 'table' key in records at index %s1. Specify a value of type string instead.",EMPTY_FIELDS_IN_INSERT:"Validation error. Missing 'fields' key in records at index %s1. Provide a valid 'fields' key.",MISSING_FIELDS_IN_INSERT:"Validation error. 'fields' key cannot be empty in records at index %s1. Specify a non-empty value instead.",INVALID_FIELDS_IN_INSERT:"Validation error. Invalid 'fields' key in records at index %s1. Specify a value of type object instead.",INVALID_TOKENS_IN_INSERT:"Validation error.Invalid 'tokens' key in insert options. Specify a boolean value for tokens.",RECORDS_KEY_NOT_FOUND_DELETE:"Validation error. Missing 'records' key. Provide a valid 'records' key.",INVALID_RECORD_KEY_UPDATE:"Validation error. Invalid 'record' key found. Specify a value of type object instead.",MISSING_TABLE_IN_UPDATE:"Validation error. Missing 'table' key in update record. Provide a valid 'table' key.",EMPTY_TABLE_IN_UPDATE:"Validation error. 'table' key cannot be empty in update record. Specify a non-empty value instead.",INVALID_TABLE_IN_UPDATE:"Validation error. Invalid 'table' key in update record. Specify a value of type string instead.",MISSING_FIELDS_IN_UPDATE:"Validation error. Missing 'fields' key in update record. Provide a valid 'fields' key.",EMPTY_FIELDS_IN_UPDATE:"Validation error. 'fields' key cannot be empty in update record. Specify a non-empty value instead.",INVALID_FIELDS_IN_UPDATE:"Validation error. Invalid 'fields' key in update record. Specify a value of type object instead.",MISSING_SKYFLOWID_IN_UPDATE:"Validation error. Missing 'skyflowID' key in update record. Provide a valid 'skyflowID' key.",EMPTY_SKYFLOWID_IN_UPDATE:"Validation error. 'skyflowID' key cannot be empty in update record. Specify a non-empty value as a string.",INVALID_SKYFLOWID_IN_UPDATE:"Validation error. Invalid 'skyflowID' key in update record. Specify a value of type string instead.",INVALID_TOKENS_IN_UPDATE:"Validation error.Invalid 'tokens' key in update options. Specify a boolean value for tokens.",INVALID_RECORDS_IN_DELETE:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",EMPTY_RECORDS_IN_DELETE:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_TABLE_IN_DELETE:"Validation error. Missing 'table' key in records at index %s1. Provide a valid 'table' key.",EMPTY_TABLE_IN_DELETE:"Validation error. 'table' key cannot be empty in records at index %s1. Specify a non-empty value instead.",INVALID_TABLE_IN_DELETE:"Validation error. Invalid 'table' key in records at index %s1. Specify a value of type string instead.",MISSING_ID_IN_DELETE:"Validation error. Missing 'id' key in records at index %s1. Provide a valid 'id' key.",EMPTY_ID_IN_DELETE:"Validation error. 'id' key cannot be empty in records at index %s1. Specify a non-empty value instead.",INVALID_ID_IN_DELETE:"Validation error. Invalid 'id' key in records at index %s1. Specify a value of type string instead.",DELETE_RECORDS_REJECTED:"Delete failed. Delete request is rejected.",INVALID_TOKENS_IN_COLLECT:"Validation error. Invalid tokens. Specify a boolean value for tokens.",RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS:"Validation error.records key not found in additionalFields. Specify a records key in addtionalFields.",INVALID_RECORDS_IN_ADDITIONAL_FIELDS:"Validation error.'records' must be an array within additionalFields.",EMPTY_RECORDS_IN_ADDITIONAL_FIELDS:"Validation error. 'records' object cannot be empty within additionalFields. Specify a non-empty value instead.",MISSING_TABLE_IN_ADDITIONAL_FIELDS:"Validation error. 'table' key not found in additionalFields record at index %s1",INVALID_TABLE_IN_ADDITIONAL_FIELDS:"Validation error.Invalid table key value in additionalFields record at index %s1. Specify a value of type string for table key.",INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:"Validation error.Invalid 'skyflow_id' key value in additionalFields record at index %s1. Specify a valid value for 'skyflow_id' key.",MISSING_FIELDS_IN_ADDITIONAL_FIELDS:"Validation error.'fields' key not found in additionalFields record at index %s1. Specify a 'fields' key in additionalFields record at index %s1.",INVALID_FIELDS_IN_ADDITIONAL_FIELDS:"Validation error.invaid 'fields' key value in additionalFields record at index %s1. Specify a value of type array for 'fields' key.",RECORDS_KEY_NOT_FOUND_DETOKENIZE:"Delete failed. Delete request is rejected.",EMPTY_RECORDS_DETOKENIZE:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",INVALID_RECORDS_IN_DETOKENIZE:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_TOKEN_IN_DETOKENIZE:"Validation error. Missing 'token' key in records at index %s1. Provide a valid 'token' key.",INVALID_TOKEN_IN_DETOKENIZE:"Validation error. Invalid 'token' key in records at index %s1. Specify a value of type string instead.",RECORDS_KEY_NOT_FOUND_GET:"Validation error. Missing 'records' key. Provide a valid 'records' key.",INVALID_RECORDS_IN_GET:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",EMPTY_RECORDS_GET:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_IDS_IN_GET:"Validation error. Missing 'ids' key in records at index %s1. Provide a valid 'ids' key.",INVALID_IDS_IN_GET:"Validation error. Invalid 'ids' key found. Specify a value of type array instead.",INVALID_COLUMN_VALUES_IN_GET:"Validation error. Invalid 'columnValues' key found. Specify a value of type array instead.",EMPTY_IDS_IN_GET:"Validation error. 'ids' key cannot be an array of empty strings in records at index %s1. Specify non-empty values instead.",INVALID_SKYFLOWID_TYPE_IN_GET:"Validation error. Invalid 'id' found in 'ids' array in 'records' at index %s1 . Specify a value of type string instead.",MISSING_TABLE_IN_GET:"Validation error. Missing 'table' key in records at index %s1. Provide a valid 'table' key.",INVALID_TABLE_IN_GET:"Validation error. Invalid 'table' key in records at index %s1. Specify a value of type string instead.",MISSING_REDACTION_IN_GET:"Validation error. Missing 'redaction' key in records at index %s1. Provide a valid 'redaction' key.",INVALID_REDACTION_TYPE_IN_GET:"Validation error. Invalid 'redaction' key in records at index %s1. Specify a valid redaction type.",INVALID_TOKENS_IN_GET:"Validation error. Invalid tokens in get options. Specify a boolean value for tokens.",TOKENS_GET_COLUMN_NOT_SUPPORTED:"Validation error. 'columnName' and 'columnValues' cannot be used when 'tokens' are set to true in get options. Either set 'tokens' to false or use 'ids' instead.",REDACTION_WITH_TOKENS_NOT_SUPPORTED:"Get failed. Redaction cannot be applied when 'tokens' are set to true in get options. Either remove redaction or set 'tokens' to false.",INVALID_REDACTION_TYPE_IN_DETOKENIZE:"Validation error. Invalid 'redaction' key in records at index %s1. Specify a valid redaction type.",EMPTY_RECORDS_REVEAL:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_TOKEN_KEY_REVEAL:"Validation error. Missing 'token' key for reveal element. Specify a valid value for token.",MISSING_SKYFLOWID_KEY_REVEAL:"Validation error. Missing 'skyflowID' key for file render element. Provide a valid 'skyflowID' key.",MISSING_TABLE_KEY_REVEAL:"Validation error.'table' key not found for file render element. Specify a valid value for 'table' key.",MISSING_COLUMN_KEY_REVEAL:"Validation error.'column' key not found for file render element. Specify a valid value for 'column' key.",INVALID_SKYFLOW_ID_REVEAL:"Validation error. Invalid 'skyflowID' key for file render element. Specify a value of type string instead.",INVALID_TABLE_REVEAL:"Validation error. Invalid 'table' key for file render element. Specify a value of type string instead.",INVALID_COLUMN_NAME_REVEAL:"Validation error. Invalid 'column' key for file render element. Specify a value of type string instead.",EMPTY_SKYFLOW_ID_REVEAL:"Validation error. 'skyflowID' key cannot be empty for file render element. Specify a non-empty value instead.",EMPTY_TABLE_REVEAL:"Validation error. 'table' key cannot be empty for file render element. Specify a non-empty value instead.",EMPTY_COLUMN_NAME_REVEAL:"Validation error. 'column' key cannot be empty for file render element. Specify a non-empty value instead.",INVALID_TOKEN_ID_REVEAL:"Validation error. Invalid 'token' key found for reveal element. Specify a value of type string instead.",INVALID_LABEL_REVEAL:"Validation error. Invalid 'label' key found for reveal element. Specify a value of type string instead.",INVALID_ALT_TEXT_REVEAL:"Validation error. Invalid 'altText' key found for reveal element. Specify a value of type string instead.",INVALID_ALT_TEXT_RENDER:"Validation error. Invalid 'altText' key found for reveal element. Specify a value of type string instead.",INVALID_FORMAT_REVEAL:"Validation error. Invalid 'format' key found for reveal element. Specify a value of type string instead.",EMPTY_FORMAT_REVEAL:"Validation error. 'format' key cannot be empty for reveal element. Specify a non-empty value instead.",INVALID_FORMAT_VALUE_REVEAL:"Validation error. Invalid 'format' key found for reveal element. Specify a value of type string instead.",INVALID_REDACTION_TYPE_REVEAL:"Validation error. Invalid 'redaction' key found for reveal element. Specify a valid redaction type.",ELEMENTS_NOT_MOUNTED_REVEAL:"Reveal failed. Make sure to mount all elements before invoking 'reveal' function.",EMPTY_TABLE_IN_ADDITIONAL_FIELDS:"Validation error.'table' field cannot be empty in additionalFields record at index %s1. Specify a non-empty value instead.",EMPTY_FIELDS_IN_ADDITIONAL_FIELDS:"Validation error.'fields' object cannot be empty in additionalFields record at index %s1. Specify a non-empty value instead.",EMPTY_TOKEN_IN_DETOKENIZE:"Validation error. 'token' key cannot be empty in records at index %s1. Specify a non-empty value instead.",EMPTY_SKYFLOWID_IN_GET:"Validation error. 'id' cannot be empty in 'ids' array in 'records' at index %s1. Specify non-empty values instead.",EMPTY_TABLE_IN_GET:"Validation error. 'table' key cannot be empty in records at index %s1. Specify a non-empty value instead.",EMPTY_REDACTION_TYPE_IN_GET:"Validation error. 'redaction' key cannot be empty in records at index %s1. Specify a non-empty value instead.",EMPTY_TOKEN_ID_REVEAL:"Validation error. 'token' key cannot be empty for reveal element. Specify a non-empty value instead.",FETCH_RECORDS_REJECTED:"Detokenize failed. Detokenize request is rejected.",INSERT_RECORDS_REJECTED:"Insert failed. Insert request is rejected.",UPDATE_RECORD_REJECTED:"Update failed. Update request is rejected.",GET_REJECTED:"Get failed. Get request is rejected.",FAILED_REVEAL:"Reveal failed. Some errors were encountered.",FAILED_RENDER:"Failed to render file. Some errors were encountered.",SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED:"Validation error. skyflowID and token can not be specified together.",MISSING_TABLE_IN_COLLECT:"Validation error.'table' key not found for collect element. Specify a valid value for 'table' key.",EMPTY_TABLE_IN_COLLECT:"Validation error.'table' cannot be empty for collect element. Specify a non-empty value for 'table'.",EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:"Validation error.'id' cannot be empty in addtionalFields record at index %s1. Specify a non-empty value for 'id'.",EMPTY_SKYFLOW_ID_COLLECT:"Validation error.'skyflowID' cannot be empty for collect element. Specify a non-empty value for 'skyflowID'.",INVALID_TABLE_IN_COLLECT:"Validation error. Invalid type for 'table' key value for collect element. Specify a value of type string instead.",INVALID_SKYFLOWID_IN_COLLECT:"Validation error. Invalid type for 'skyflowID' key value for collect element. Specify a value of type string instead.",MISSING_COLUMN_IN_COLLECT:"Validation error. 'column' key not found for collect element. Specify a valid column.",MISSING_SKYFLOWID_IN_COLLECT:"Validation error. 'skyflow_id' key not found for collect element. Specify a valid skyflowID.",EMPTY_COLUMN_IN_COLLECT:"Validation error. 'column' key cannot be empty for collect element. Specify a non-empty value instead.",INVALID_COLUMN_IN_COLLECT:"Validation error. Invalid type for 'column' key for collect element. Specify a value of type string instead.",UNIQUE_ELEMENT_NAME:"Validation error.Element name must be unique: %s1. Please enter a unique element name.",ELEMENTS_NOT_MOUNTED:"Collect failed. Make sure all elements are mounted before calling 'collect' on the container.",DUPLICATE_ELEMENT:"Mount failed.'%s1' appeared multiple times in '%s2'. Make sure each column in a record is unique.",DUPLICATE_ELEMENT_ADDITIONAL_FIELDS:"Mount failed. '%s1' appeared in record index '%s2' in the additional fields. Make sure each column in a record is unique.",MISSING_ELEMENT_TYPE:"Mount failed. Invalid element type. Specify a valid 'type'.",EMPTY_ELEMENT_TYPE:"Mount failed. Invalid element type. Specify a valid 'type'",INVALID_ELEMENT_TYPE:"Mount failed. Invalid element type. Specify a valid 'type'",INVALID_ELEMENT_SELECTOR:"Mount failed. 'div' element not found. Specify a valid 'div'.",CANNOT_CHANGE_ELEMENT:"Element can't be changed.",INVALID_IFRAME:"Error occured while creating an iframe",INVALID_FIELD:"Invalid Field.",FRAME_NOT_FOUND:"Frame %s1 not found. Could not initialise element.",COMPLETE_AND_VALID_INPUTS:"Mount failed. Incomplete inputs for '%s1'. Make sure all inputs are complete and valid.",REQUIRED_PARAMS_NOT_PROVIDED:"Initialisation error. Couldn't find iframe name for element.",INVALID_EVENT_TYPE:"Invalid event type. Specify a valid event type.",INVALID_EVENT_LISTENER:" Invalid event listener. Please specify a valid event listener.",MISSING_HANDLER_IN_EVENT_LISTENER:"Event handler callback is missing. Provide a valid event handler callback function.",INVALID_HANDLER_IN_EVENT_LISTENER:"Validation error. Invalid type for 'validations' key. Specify a value of type array instead.",UNKNOWN_ERROR:"Unknown Error.",NETWORK_ERROR:"A network error occurred. This could be a CORS issue or a dropped internet connection. It is not possible for us to know. Please reach out to skyflow if you see this error",CONNECTION_ERROR:"Error while initializing the connection.",ERROR_OCCURED:"Error occurred.",INVALID_VALIDATIONS_TYPE:"Validation error. Invalid validations type.",MISSING_VALIDATION_RULE_TYPE:"Validation error. 'type' for validation rule missing in validations array at index %s1. Specify a valid 'type' for each rule in validations array.",INVALID_VALIDATION_RULE_TYPE:"Validation error. Invalid 'type' for validation rule found in validations array at index %s1 . Specify a valid rule type for validation rule.",MISSING_VALIDATION_RULE_PARAMS:"Validation error. 'params' for validation rule missing in validations array at index %s1. Specify valid 'params' for each rule in validations array.",INVALID_VALIDATION_RULE_PARAMS:"Validation error. Invalid 'params' for validation rule found in validations array at index %s1 . Specify valid params for validation rule.",MISSING_REGEX_IN_REGEX_MATCH_RULE:"Validation error. Missing 'regex' param in validations array at index %s1. Specify a valid value for regex param.",INVALID_REGEX_IN_REGEX_MATCH_RULE:"Validation error. Invalid value for 'regex' param found for regex in validations array at index %s1. Provide a valid value regular expression for regex param.",MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE:"Validation error. Missing both 'min' and 'max' params in validations array at index %s1. Specify either one or both params.",MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE:"Validation error. Missing 'element' param in validations array at index %s1. Specify a valid value for element param. ",INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE:"Validation error. Invalid 'element' provided in validations array at index %s1. Specify a value of type collect element instead.",ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE:"Validation error. Element provided in validations array at index %s1 is not mounted. Make sure the element is mounted.",EMPTY_ELEMENT_IN_MOUNT:"mount element with type %s1 - Mount cannot be empty.",VALIDATION_FAILED:"Validation failed",REVEAL_ELEMENT_ERROR_STATE:"Reveal failed. 'setError' is invoked on one or more elements. Make sure to reset any custom errors on all elements before invoking 'reveal' function.",INVALID_FILE_TYPE:"Invalid File Type.",INVALID_FILE_SIZE:"Invalid File Size",NO_FILE_SELECTED:"No File Selected",INVALID_UPSERT_OPTION_TYPE:"Validation error. Invalid 'upsert' key in insert options. Specify a value of type array instead",EMPTY_UPSERT_OPTIONS_ARRAY:"Validation error. 'upsert' key cannot be an empty array in insert options. Make sure to add atleast one table column object in upsert array.",INVALID_UPSERT_OPTION_OBJECT_TYPE:"Validation error. Invalid value in upsert array at index %s1 in insert options. Specify objects with 'table' and 'column' keys instead.",MISSING_TABLE_IN_UPSERT_OPTION:"Validation error. Missing 'table' key in upsert array at index %s1. Provide a valid 'table' key.",MISSING_COLUMN_IN_UPSERT_OPTION:"Validation error. Missing 'column' key in upsert array at index %s1. Provide a valid 'column' key",INVALID_TABLE_IN_UPSERT_OPTION:"Validation error. Invalid 'table' key in upsert array at index %s1. Specify a value of type string instead.",INVALID_COLUMN_IN_UPSERT_OPTION:"Validation error. Invalid 'column' key in upsert array at index %s1. Specify a value of type string instead.",INVALID_RECORD_COLUMN_VALUE:"Validation error. Invalid 'column' key. Specify a value of type string instead.",MISSING_RECORD_COLUMN_VALUE:"Validation error. Column Values is required when Column Name is specified.",MISSING_RECORD_COLUMN_NAME:"Validation error. Column Name is required when Column Values are specified.",INVALID_RECORD_COLUMN_VALUE_TYPE:"Validation error. Invalid Type of Records Column Values in records at index %s1",INVALID_COLUMN_VALUES_TYPE:"Validation error. Invalid column values type, should be an Array.",EMPTY_RECORD_COLUMN_VALUES:"Validation error. Record column values cannot be empty in records at index %s1",EMPTY_COLUMN_VALUE:"Validation error. Column Value is empty in records at index %s1",MISSING_IDS_OR_COLUMN_VALUES_IN_GET:"Validation error. Both 'ids' or 'columnValues' keys are missing. Either provide 'ids' or 'columnValues' with 'columnName' to fetch records.",SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED:"Validation error. ids and columnName can not be specified together.",GET_BY_SKYFLOWID_RESOLVED:"%s1 - GetById request is resolved.",RECORDS_KEY_NOT_FOUND_GETBYID:"Validation error. Missing 'records' key. Provide a valid 'records' key.",INVALID_RECORDS_IN_GETBYID:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",EMPTY_RECORDS_GETBYID:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_IDS_IN_GETBYID:"Validation error. Missing 'ids' key in records at index %s1. Provide a valid 'ids' key.",INVALID_IDS_IN_GETBYID:"Validation error. Invalid 'ids' key in records at index %s1. ids object should be an array.",EMPTY_IDS_IN_GETBYID:"Validation error. 'ids' key cannot be an empty array in records at index %s1. Make sure to provide atleast one id in array.",INVALID_SKYFLOWID_TYPE_IN_GETBYID:"Validation error. Invalid value in ids array in records at index %s1. Specify a value of type string instead.",MISSING_TABLE_IN_GETBYID:"Validation error. Missing 'table' key in records at index %s1. Provide a valid 'table' key.",INVALID_TABLE_IN_GETBYID:"Validation error. Invalid 'table' key in records at index %s1. Specify a value of type string instead.",MISSING_REDACTION_IN_GETBYID:"Validation error. Missing 'redaction' key in records at index %s1. Provide a valid 'redaction' key.",INVALID_REDACTION_TYPE_IN_GETBYID:"Validation error. Invalid 'redaction' key in records at index %s1. Specify a valid redaction type.",EMPTY_SKYFLOWID_IN_GETBYID:"Validation error. 'ids' key cannot be an array of empty strings in records at index %s1. Specify non-empty values instead.",EMPTY_TABLE_IN_GETBYID:"Validation error. 'table' key cannot be empty in records at index %s1. Specify a non-empty value instead.",EMPTY_REDACTION_TYPE_IN_GETBYID:"Validation error. 'redaction' key cannot be empty in records at index %s1. Specify a non-empty value instead.",GET_BY_SKYFLOWID_REJECTED:"GetById failed. GetById request is rejected.",MISSING_COMPOSABLE_LAYOUT_KEY:"Mount failed. Layout is not specified in composable container options. Specify a valid layout.",EMPTY_COMPOSABLE_LAYOUT_ARRAY:"Mount failed. Layout array is empty in composable container options. Specify a valid layout array.",INVALID_COMPOSABLE_LAYOUT_TYPE:"Mount failed. Invalid layout array values. Make sure all values in the layout array are positive numbers.",NEGATIVE_VALUES_COMPOSABLE_LAYOUT:"Mount failed. layout array should only have positive numbers in composable container options.",MISMATCH_ELEMENT_COUNT_LAYOUT_SUM:"Mount failed. Invalid layout array values. Make sure all values in the layout array are positive numbers.",MISSING_COMPOSABLE_CONTAINER_OPTIONS:"Mount failed. An options object is required for composable containers. Specify a valid options object.",INVALID_COMPOSABLE_CONTAINER_OPTIONS:"Mount failed. Invalid options object. Specify a valid options object.",COMPOSABLE_CONTAINER_NOT_MOUNTED:"Mount elements first. Make sure all elements are mounted before calling 'collect' on the container.",INVALID_BOOLEAN_OPTIONS:"Validation error. Invalid %s1 found in collect options. Specify a value of type boolean instead.",INVALID_MASKING_CHARACTER:"Validation error. Invalid masking character. Specify a valid masking character. ",INVALID_INPUT_OPTIONS_FORMAT:"Mount failed. Format must be a non-empty string. Specify a valid format.",INVALID_INPUT_OPTIONS_TRANSLATION:"Mount failed. Translation must be a non-empty object. Specify a valid translation.",EMPTY_COLLECT_CUSTOM_FORMAT:"Mount failed. '%s1' can not be an empty object. Specify a valid object.",INVALID_ALLOWED_OPTIONS:"Validation error. Invalid options, allowedFileType must be of string array type.",EMPTY_ALLOWED_OPTIONS_ARRAY:"Validation error. Invalid options value, allowedFileType array is empty.",INVALID_ALLOWED_FILETYPE_ARRAY:"Validation error. Invalid options value, allowedFileType array must contain only string elements.",INVALID_OPTION_CARD_METADATA:"Validation error. container create - Invalid type, cardMetadata must be of non-empty object type.",INVALID_OPTION_CARD_SCHEME:"Validation error. container create - Invalid options, scheme must be of string array type.",INVALID_FIELD_SHOW_3DS_CHALLEGNGE:"Invalid field '%s1'. Cannot initiate 3DS Challenge. Verify '%s1'"},warnLogs:{INVALID_EXPIRATION_DATE_FORMAT:"EXPIRATION_DATE format must be in one of %s1, the format is set to default MM/YY",INVALID_EXPIRATION_YEAR_FORMAT:"EXPIRATION_YEAR format must be in one of %s1, the format is set to default YY",UNABLE_TO_SET_VALUE_IN_PROD_ENV:"%s1 setValue() cannot invoked while in PROD env. It is Not Recommeded",UNABLE_TO_CLEAR_VALUE_IN_PROD_ENV:"%s1 clearValue() cannot invoked while in PROD env. It is Not Recommeded",COLLECT_ALT_TEXT_DEPERECATED:"altText is DEPERECATED, passing altText will not have any effect",GET_BY_ID_DEPRECATED:"getById is deprecated, use new get method",INPUT_FORMATTING_NOT_SUPPROTED:"format or translation are not supported on %s1 element type.",INVALID_INPUT_TRANSLATION:"invalid or unsupported translation provided for %s1 element type."}};var b,R,S,w="collect_controller",D="element",x={COLLECT:"COLLECT",REVEAL:"REVEAL",COMPOSE:"COMPOSABLE"},M={MOUNTED:"MOUNTED",READY:"FRAME_READY"},P="element_type",C="div_id",k="container_name",V=M,j="events",U="mount_start_time",F="mount_end_time",Y="error",G={SUCCESS:"SUCCESS",INITIALIZED:"INITIALIZED",PARTIAL_RENDER:"PARTIAL_RENDER",FAILED:"FAILED"},B="INSERT",X="DETOKENIZE",W="GET_BY_SKYFLOWID",K="GET",q="DELETE",z="UPDATE",H="COLLECT",J="FILE_UPLOAD",Z="REVEAL",$="RENDER_FILE",Q={CHANGE:"CHANGE",READY:"READY",FOCUS:"FOCUS",BLUR:"BLUR",ESCAPE:"ESCAPE",CLICK:"CLICK",ERROR:"ERROR",SUCCESS:"SUCCESS",SUBMIT:"SUBMIT",CREATED:"CREATED",MOUNTED:"MOUNTED",HEIGHT:"HEIGHT"},ee="COLLECT_CALL_REQUESTS",te="REVEAL_CALL_REQUESTS",ne="TOKENIZATION_REQUEST",oe="INPUT_EVENT",re="DESTROY FRAME",ie="SET_VALUE",ae="PUREJS_REQUEST",ce="PUREJS_FRAME_READY",le="GET_BEARER_TOKEN",se="COLLECT_ELEMENT_SET_ERROR",pe="COLLECT_ELEMENT_SET_ERROR_OVERRIDE",ue="REVEAL_ELEMENT_SET_ERROR",de="REVEAL_ELEMENT_UPDATE_OPTIONS",fe="FILE_UPLOAD",Ee="COMPOSABLE_UPDATE_OPTIONS",_e="RENDER_FILE_REQUEST",Ie="PUSH_EVENT",me="SKYFLOW_FRAME_CONTROLLER_READY",ye="COLLECT_ELEMENT_READY",ve="TOKEN",Oe="ALT_TEXT",Ne="ELEMENT_PROPS",ge="ELEMENT_MOUNTED",Le="ALL_ELEMENTS_MOUNTED",Te=function(e){return e.CVV="CVV",e.EXPIRATION_DATE="EXPIRATION_DATE",e.CARD_NUMBER="CARD_NUMBER",e.CARDHOLDER_NAME="CARDHOLDER_NAME",e.INPUT_FIELD="INPUT_FIELD",e.PIN="PIN",e.EXPIRATION_MONTH="EXPIRATION_MONTH",e.EXPIRATION_YEAR="EXPIRATION_YEAR",e.FILE_INPUT="FILE_INPUT",e}({}),he=function(e){return e.VISA="VISA",e.MASTERCARD="MASTERCARD",e.AMEX="AMEX",e.DINERS_CLUB="DINERS_CLUB",e.DISCOVER="DISCOVER",e.JCB="JCB",e.MAESTRO="MAESTRO",e.UNIONPAY="UNIONPAY",e.HIPERCARD="HIPERCARD",e.DEFAULT="DEFAULT",e.UNKNOWN="UNKNOWN",e.CARTES_BANCAIRES="CARTES BANCAIRES",e}({}),Ae=(l(l(l(l(l(l(l(l(l(l(b={},he.VISA,"Visa"),he.MASTERCARD,"Mastercard"),he.AMEX,"Amex"),he.DINERS_CLUB,"DinersClub"),he.DISCOVER,"Discover"),he.JCB,"Jcb"),he.MAESTRO,"Maestro"),he.UNIONPAY,"Unionpay"),he.HIPERCARD,"Hipercard"),he.DEFAULT,"Default"),l(l(b,he.UNKNOWN,"Unknown"),he.CARTES_BANCAIRES,"Cartes Bancaires"),l(l(l(l(l(l(l(l(l(l(R={},he.AMEX,["XXXX XXXXXX XXXXX",{X:"[0-9]"}]),he.VISA,["XXXX XXXX XXXX XXXX",{X:"[0-9]"}]),he.MASTERCARD,["XXXX XXXX XXXX XXXX",{X:"[0-9]"}]),he.DISCOVER,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),he.DINERS_CLUB,["XXXX XXXXXX XXXXXX",{X:"[0-9]"}]),he.JCB,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),he.MAESTRO,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),he.UNIONPAY,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),he.HIPERCARD,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),he.DEFAULT,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),l(R,he.UNKNOWN,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}])),be=l(l(l(l(l(l(l(l(l({textarea:{name:"textarea",attributes:{type:"textarea"},sensitive:!1},checkbox:{name:"checkbox",attributes:{type:"checkbox"},sensitive:!1},radio:{name:"radio",attributes:{type:"radio"},sensitive:!1},dropdown:{name:"dropdown",attributes:{type:"select"},sensitive:!1}},Te.CARDHOLDER_NAME,{name:"cardHolderName",attributes:{type:"text",autocomplete:"cc-name"},sensitive:!0,regex:/^([a-zA-Z\\ \\,\\.\\-\\']{2,})$/}),Te.CARD_NUMBER,{name:"CARD_NUMBER",attributes:{type:"text",autocomplete:"cc-number",inputmode:"numeric"},sensitive:!0,mask:Ae[he.DEFAULT],regex:/$|^[\s]*?([0-9]{2,6}[ -]?){3,5}[\s]*/}),Te.EXPIRATION_DATE,{name:"EXPIRATION_DATE",attributes:{type:"text",autocomplete:"cc-exp",inputmode:"numeric"},sensitive:!0}),Te.EXPIRATION_MONTH,{name:"EXPIRATION_MONTH",attributes:{maxLength:2,type:"text",inputmode:"numeric",autocomplete:"cc-exp-month"},sensitive:!0,mask:["XX",{X:"[0-9]"}]}),Te.EXPIRATION_YEAR,{name:"EXPIRATION_YEAR",attributes:{type:"text",inputmode:"numeric",autocomplete:"cc-exp-year"},sensitive:!0}),Te.CVV,{name:"CVV",attributes:{type:"text",inputmode:"numeric",maxLength:4},sensitive:!0,regex:/^$|^[0-9]{3,4}$/}),Te.INPUT_FIELD,{name:"INPUT_FIELD",sensitive:!0,attributes:{type:"text"}}),Te.PIN,{name:"PIN",attributes:{type:"text",inputmode:"numeric",maxLength:12,minLength:4},sensitive:!0,regex:/^$|^[0-9]{4,12}$/}),Te.FILE_INPUT,{name:"FILE_INPUT",sensitive:!0,attributes:{type:"file"}}),Re="XXXX-XXXX-XXXX-XXXX",Se={height:"100%",width:"100%",margin:0,padding:0,border:0,position:"absolute",top:0,left:0,"user-select":"none"},we={position:"absolute",top:0,width:0,height:0,visibility:"hidden",left:"-99999999px","user-select":"none"},De={width:"100%",height:"100%",border:"0",padding:"0",margin:"0",outline:"none"},xe={WEBPACKAUTOFILL:"-webkit-autofill",BASE:"base",FOCUS:"focus",COMPLETE:"complete",EMPTY:"empty",INVALID:"invalid",GLOBAL:"global",REQUIRED_ASTERISK:"requiredAsterisk"},Me=(l({},xe.BASE,{maxHeight:"100%",maxWidth:"100%"}),l({},xe.BASE,{"margin-bottom":"4px"}),l({},xe.BASE,{"margin-bottom":"4px",display:"flex",flexDirection:"column",justifyContent:"space-between"}),l({},xe.BASE,{marginTop:"4px"}),l(l({},xe.BASE,{marginBottom:"4px"}),xe.REQUIRED_ASTERISK,{display:"inline",color:"red"}),l(l(l(l(l(l(l(l(l({},he.VISA,{regex:/^4\d*/,maxCardLength:19,cardLengthRange:[13,16]}),he.MASTERCARD,{regex:/^(5[1-5]|222[1-9]|22[3-9]|2[3-6]|27[0-1]|2720)\d*/,maxCardLength:16,cardLengthRange:[16]}),he.AMEX,{regex:/^3[47]\d*/,maxCardLength:15,cardLengthRange:[15]}),he.DINERS_CLUB,{regex:/^(36|38|30[0-5])\d*/,maxCardLength:16,cardLengthRange:[14,15,16,17,18,19]}),he.DISCOVER,{regex:/^(6011|65|64[4-9]|622)\d*/,maxCardLength:16,cardLengthRange:[16,17,18,19]}),he.JCB,{regex:/^35\d*/,maxCardLength:19,cardLengthRange:[16,17,18,19]}),he.HIPERCARD,{regex:/^606282\d*/,maxCardLength:19,cardLengthRange:[14,15,16,17,18,19]}),he.UNIONPAY,{regex:/^62\d*/,maxCardLength:19,cardLengthRange:[16,17,18,19]}),he.MAESTRO,{regex:/^(5018|5020|5038|5043|5[6-9]|6020|6304|6703|6759|676[1-3])\d*/,maxCardLength:19,cardLengthRange:[12,13,14,15,16,17,18,19]})),Pe=(l(l(l(l(l(l(l(l(l(l(S={},he.DEFAULT,_),he.AMEX,I),he.CARTES_BANCAIRES,h),he.DINERS_CLUB,m),he.DISCOVER,y),he.HIPERCARD,v),he.JCB,O),he.MAESTRO,N),he.MASTERCARD,g),he.UNIONPAY,L),l(S,he.VISA,T),"MM/YY"),Ce=[Pe,"YYYY/MM","YY/MM","MM/YYYY"],ke=["YY","YYYY"],Ve=function(e){return e.APPLICATIONORJSON="application/json",e.TEXTORPLAIN="text/plain",e.TEXTORXML="text/xml",e.FORMURLENCODED="application/x-www-form-urlencoded",e.FORMDATA="multipart/form-data",e}({}),je=(Te.CARD_NUMBER,Te.EXPIRATION_DATE,Te.EXPIRATION_MONTH,Te.EXPIRATION_YEAR,l(l(l(l(l(l(l(l(l({},Te.CVV,"Invalid cvv"),Te.EXPIRATION_DATE,"Invalid expiration date"),Te.CARD_NUMBER,"Invalid card number"),Te.CARDHOLDER_NAME,"Invalid cardholder name"),Te.INPUT_FIELD,A.errorLogs.INVALID_COLLECT_VALUE),Te.PIN,"Invalid pin"),Te.EXPIRATION_MONTH,"Invalid expiration month"),Te.EXPIRATION_YEAR,"Invalid expiration year"),Te.FILE_INPUT,A.errorLogs.INVALID_COLLECT_VALUE),l(l(l(l(l(l(l(l(l({},Te.CVV,"cvv is required"),Te.EXPIRATION_DATE,"expiration date is required"),Te.CARD_NUMBER,"card number is required"),Te.CARDHOLDER_NAME,"cardholder name is required"),Te.INPUT_FIELD,A.errorLogs.DEFAULT_REQUIRED_COLLECT_VALUE),Te.PIN,"pin is required"),Te.EXPIRATION_MONTH,"expiration month is required"),Te.EXPIRATION_YEAR,"expiration year is required"),Te.FILE_INPUT,A.errorLogs.DEFAULT_REQUIRED_COLLECT_VALUE),[Te.CARDHOLDER_NAME,Te.EXPIRATION_MONTH,Te.FILE_INPUT,Te.PIN,Te.CVV]),Ue={X:"[0-9]"};function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Ye(e,t){if(e){if("string"==typeof e)return Fe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fe(e,t):void 0}}function Ge(e){return function(e){if(Array.isArray(e))return Fe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ye(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Be(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xe(e)}function We(e,t){return We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},We(e,t)}function Ke(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&We(e,t)}function qe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qe=function(){return!!e})()}function ze(e){var t="function"==typeof Map?new Map:void 0;return ze=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(qe())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&We(r,n.prototype),r}(e,arguments,Xe(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),We(n,e)},ze(e)}var He=function(e){return e.DEFAULT="DEFAULT",e.PLAIN_TEXT="PLAIN_TEXT",e.MASKED="MASKED",e.REDACTED="REDACTED",e}({}),Je=function(e){return e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.DELETE="DELETE",e}({}),Ze=function(e){return e.CHANGE="CHANGE",e.READY="READY",e.FOCUS="FOCUS",e.BLUR="BLUR",e.SUBMIT="SUBMIT",e}({}),$e=function(e){return e.WARN="WARN",e.INFO="INFO",e.DEBUG="DEBUG",e.ERROR="ERROR",e}({}),Qe=function(e){return e.DEV="DEV",e.PROD="PROD",e}({}),et=function(e){return e.LOG="LOG",e.WARN="WARN",e.ERROR="ERROR",e}({}),tt=function(e){return e.REGEX_MATCH_RULE="REGEX_MATCH_RULE",e.LENGTH_MATCH_RULE="LENGTH_MATCH_RULE",e.ELEMENT_VALUE_MATCH_RULE="ELEMENT_VALUE_MATCH_RULE",e}({});const nt={INVALID_FILE_NAME:{code:400,description:A.errorLogs.INVALID_FILE_NAME},INVALID_FIELD:{code:400,description:A.errorLogs.INVALID_FIELD},VAULTID_IS_REQUIRED:{code:400,description:A.errorLogs.VAULTID_IS_REQUIRED},EMPTY_VAULTID_IN_INIT:{code:400,description:A.errorLogs.EMPTY_VAULTID_IN_INIT},VAULTURL_IS_REQUIRED:{code:400,description:A.errorLogs.VAULTURL_IS_REQUIRED},EMPTY_VAULTURL_IN_INIT:{code:400,description:A.errorLogs.EMPTY_VAULTURL_IN_INIT},INVALID_VAULTURL_IN_INIT:{code:400,description:A.errorLogs.INVALID_VAULTURL_IN_INIT},GET_BEARER_TOKEN_IS_REQUIRED:{code:400,description:A.errorLogs.GET_BEARER_TOKEN_IS_REQUIRED},EMPTY_CONTAINER_TYPE:{code:400,description:A.errorLogs.EMPTY_CONTAINER_TYPE},INVALID_CONTAINER_TYPE:{code:400,description:A.errorLogs.INVALID_CONTAINER_TYPE},UNIQUE_ELEMENT_NAME:{code:400,description:A.errorLogs.UNIQUE_ELEMENT_NAME},ELEMENTS_NOT_MOUNTED:{code:400,description:A.errorLogs.ELEMENTS_NOT_MOUNTED},MISSING_TABLE_IN_COLLECT:{code:400,description:A.errorLogs.MISSING_TABLE_IN_COLLECT},MISSING_SKYFLOWID_KEY_REVEAL:{code:400,description:A.errorLogs.MISSING_SKYFLOWID_KEY_REVEAL},EMPTY_TABLE_IN_COLLECT:{code:400,description:A.errorLogs.EMPTY_TABLE_IN_COLLECT},EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:{code:400,description:A.errorLogs.EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS},EMPTY_SKYFLOW_ID_COLLECT:{code:400,description:A.errorLogs.EMPTY_SKYFLOW_ID_COLLECT},INVALID_TABLE_IN_COLLECT:{code:400,description:A.errorLogs.INVALID_TABLE_IN_COLLECT},INVALID_SKYFLOWID_IN_COLLECT:{code:400,description:A.errorLogs.INVALID_SKYFLOWID_IN_COLLECT},MISSING_COLUMN_IN_COLLECT:{code:400,description:A.errorLogs.MISSING_COLUMN_IN_COLLECT},MISSING_SKYFLOWID_IN_COLLECT:{code:400,description:A.errorLogs.MISSING_SKYFLOWID_IN_COLLECT},EMPTY_COLUMN_IN_COLLECT:{code:400,description:A.errorLogs.EMPTY_TABLE_IN_COLLECT},INVALID_COLUMN_IN_COLLECT:{code:400,description:A.errorLogs.INVALID_COLUMN_IN_COLLECT},CLIENT_CONNECTION:{code:400,description:A.errorLogs.CLIENT_CONNECTION},RECORDS_KEY_NOT_FOUND:{code:404,description:A.errorLogs.RECORDS_KEY_NOT_FOUND},EMPTY_RECORDS_IN_INSERT:{code:400,description:A.errorLogs.EMPTY_RECORDS_IN_INSERT},INVALID_RECORDS_IN_INSERT:{code:404,description:A.errorLogs.INVALID_RECORDS_IN_INSERT},INVALID_TABLE_IN_INSERT:{code:400,description:A.errorLogs.INVALID_TABLE_IN_INSERT},EMPTY_TABLE_IN_INSERT:{code:400,description:A.errorLogs.EMPTY_TABLE_IN_INSERT},MISSING_TABLE_IN_INSERT:{code:400,description:A.errorLogs.MISSING_TABLE_IN_INSERT},EMPTY_FIELDS_IN_INSERT:{code:400,description:A.errorLogs.EMPTY_FIELDS_IN_INSERT},MISSING_FIELDS_IN_INSERT:{code:404,description:A.errorLogs.MISSING_FIELDS_IN_INSERT},INVALID_FIELDS_IN_INSERT:{code:404,description:A.errorLogs.INVALID_FIELDS_IN_INSERT},INVALID_TOKENS_IN_INSERT:{code:404,description:A.errorLogs.INVALID_TOKENS_IN_INSERT},RECORDS_KEY_NOT_FOUND_DETOKENIZE:{code:404,description:A.errorLogs.RECORDS_KEY_NOT_FOUND_DETOKENIZE},EMPTY_RECORDS_DETOKENIZE:{code:400,description:A.errorLogs.EMPTY_RECORDS_DETOKENIZE},INVALID_RECORDS_IN_DETOKENIZE:{code:404,description:A.errorLogs.INVALID_RECORDS_IN_DETOKENIZE},MISSING_TOKEN_IN_DETOKENIZE:{code:400,description:A.errorLogs.MISSING_TOKEN_IN_DETOKENIZE},INVALID_TOKEN_IN_DETOKENIZE:{code:400,description:A.errorLogs.INVALID_TOKEN_IN_DETOKENIZE},RECORDS_KEY_NOT_FOUND_GET:{code:400,description:A.errorLogs.RECORDS_KEY_NOT_FOUND_GET},INVALID_RECORDS_IN_GET:{code:400,description:A.errorLogs.INVALID_RECORDS_IN_GET},EMPTY_RECORDS_GET:{code:400,description:A.errorLogs.EMPTY_RECORDS_GET},MISSING_IDS_IN_GET:{code:400,description:A.errorLogs.MISSING_IDS_IN_GET},INVALID_IDS_IN_GET:{code:400,description:A.errorLogs.INVALID_IDS_IN_GET},INVALID_COLUMN_VALUES_IN_GET:{code:400,description:A.errorLogs.INVALID_COLUMN_VALUES_IN_GET},EMPTY_IDS_IN_GET:{code:400,description:A.errorLogs.EMPTY_IDS_IN_GET},INVALID_SKYFLOWID_TYPE_IN_GET:{code:400,description:A.errorLogs.INVALID_SKYFLOWID_TYPE_IN_GET},MISSING_TABLE_IN_GET:{code:400,description:A.errorLogs.MISSING_TABLE_IN_GET},INVALID_TABLE_IN_GET:{code:400,description:A.errorLogs.INVALID_TABLE_IN_GET},MISSING_REDACTION_IN_GET:{code:400,description:A.errorLogs.MISSING_REDACTION_IN_GET},INVALID_REDACTION_TYPE_IN_GET:{code:400,description:A.errorLogs.INVALID_REDACTION_TYPE_IN_GET},INVALID_TOKENS_IN_GET:{code:400,description:A.errorLogs.INVALID_TOKENS_IN_GET},TOKENS_GET_COLUMN_NOT_SUPPORTED:{code:400,description:A.errorLogs.TOKENS_GET_COLUMN_NOT_SUPPORTED},REDACTION_WITH_TOKENS_NOT_SUPPORTED:{code:400,description:A.errorLogs.REDACTION_WITH_TOKENS_NOT_SUPPORTED},INVALID_REDACTION_TYPE_IN_DETOKENIZE:{code:400,description:A.errorLogs.INVALID_REDACTION_TYPE_IN_DETOKENIZE},INVALID_TOKENS_IN_COLLECT:{code:404,description:A.errorLogs.INVALID_TOKENS_IN_COLLECT},RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS:{code:404,description:A.errorLogs.RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS},INVALID_RECORDS_IN_ADDITIONAL_FIELDS:{code:404,description:A.errorLogs.INVALID_RECORDS_IN_ADDITIONAL_FIELDS},EMPTY_RECORDS_IN_ADDITIONAL_FIELDS:{code:400,description:A.errorLogs.EMPTY_RECORDS_IN_ADDITIONAL_FIELDS},MISSING_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:A.errorLogs.MISSING_TABLE_IN_ADDITIONAL_FIELDS},INVALID_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:A.errorLogs.INVALID_TABLE_IN_ADDITIONAL_FIELDS},INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:{code:400,description:A.errorLogs.INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS},MISSING_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:A.errorLogs.MISSING_FIELDS_IN_ADDITIONAL_FIELDS},INVALID_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:A.errorLogs.INVALID_FIELDS_IN_ADDITIONAL_FIELDS},RECORDS_KEY_NOT_FOUND_DELETE:{code:400,description:A.errorLogs.RECORDS_KEY_NOT_FOUND_DELETE},INVALID_RECORD_KEY_UPDATE:{code:400,description:A.errorLogs.INVALID_RECORD_KEY_UPDATE},MISSING_TABLE_IN_UPDATE:{code:400,description:A.errorLogs.MISSING_TABLE_IN_UPDATE},EMPTY_TABLE_IN_UPDATE:{code:400,description:A.errorLogs.EMPTY_TABLE_IN_UPDATE},INVALID_TABLE_IN_UPDATE:{code:400,description:A.errorLogs.INVALID_TABLE_IN_UPDATE},MISSING_FIELDS_IN_UPDATE:{code:400,description:A.errorLogs.MISSING_FIELDS_IN_UPDATE},EMPTY_FIELDS_IN_UPDATE:{code:400,description:A.errorLogs.EMPTY_FIELDS_IN_UPDATE},INVALID_FIELDS_IN_UPDATE:{code:400,description:A.errorLogs.INVALID_FIELDS_IN_UPDATE},MISSING_SKYFLOWID_IN_UPDATE:{code:400,description:A.errorLogs.MISSING_SKYFLOWID_IN_UPDATE},EMPTY_SKYFLOWID_IN_UPDATE:{code:400,description:A.errorLogs.EMPTY_SKYFLOWID_IN_UPDATE},INVALID_SKYFLOWID_IN_UPDATE:{code:400,description:A.errorLogs.INVALID_SKYFLOWID_IN_UPDATE},INVALID_TOKENS_IN_UPDATE:{code:400,description:A.errorLogs.INVALID_TOKENS_IN_UPDATE},EMPTY_RECORDS_IN_DELETE:{code:400,description:A.errorLogs.EMPTY_RECORDS_IN_DELETE},INVALID_RECORDS_IN_DELETE:{code:404,description:A.errorLogs.INVALID_RECORDS_IN_DELETE},INVALID_TABLE_IN_DELETE:{code:400,description:A.errorLogs.INVALID_TABLE_IN_DELETE},EMPTY_TABLE_IN_DELETE:{code:400,description:A.errorLogs.EMPTY_TABLE_IN_DELETE},MISSING_TABLE_IN_DELETE:{code:400,description:A.errorLogs.MISSING_TABLE_IN_DELETE},EMPTY_ID_IN_DELETE:{code:400,description:A.errorLogs.EMPTY_ID_IN_DELETE},MISSING_ID_IN_DELETE:{code:404,description:A.errorLogs.MISSING_ID_IN_DELETE},INVALID_ID_IN_DELETE:{code:404,description:A.errorLogs.INVALID_ID_IN_DELETE},EMPTY_RECORDS_REVEAL:{code:400,description:A.errorLogs.EMPTY_RECORDS_REVEAL},MISSING_TOKEN_KEY_REVEAL:{code:400,description:A.errorLogs.MISSING_TOKEN_KEY_REVEAL},INVALID_TOKEN_ID_REVEAL:{code:400,description:A.errorLogs.INVALID_TOKEN_ID_REVEAL},INVALID_LABEL_REVEAL:{code:400,description:A.errorLogs.INVALID_LABEL_REVEAL},INVALID_ALT_TEXT_REVEAL:{code:400,description:A.errorLogs.INVALID_ALT_TEXT_REVEAL},INVALID_ALT_TEXT_RENDER:{code:400,description:A.errorLogs.INVALID_ALT_TEXT_RENDER},INVALID_FORMAT_REVEAL:{code:400,description:A.errorLogs.INVALID_FORMAT_REVEAL},EMPTY_FORMAT_REVEAL:{code:400,description:A.errorLogs.EMPTY_FORMAT_REVEAL},INVALID_FORMAT_VALUE_REVEAL:{code:400,description:A.errorLogs.INVALID_FORMAT_VALUE_REVEAL},INVALID_REDACTION_TYPE_REVEAL:{code:400,description:A.errorLogs.INVALID_REDACTION_TYPE_REVEAL},EMPTY_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:A.errorLogs.EMPTY_TABLE_IN_ADDITIONAL_FIELDS},EMPTY_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:A.errorLogs.EMPTY_FIELDS_IN_ADDITIONAL_FIELDS},EMPTY_TOKEN_IN_DETOKENIZE:{code:400,description:A.errorLogs.EMPTY_TOKEN_IN_DETOKENIZE},EMPTY_SKYFLOWID_IN_GET:{code:400,description:A.errorLogs.EMPTY_SKYFLOWID_IN_GET},EMPTY_TABLE_IN_GET:{code:400,description:A.errorLogs.EMPTY_TABLE_IN_GET},EMPTY_REDACTION_TYPE_IN_GET:{code:400,description:A.errorLogs.EMPTY_REDACTION_TYPE_IN_GET},EMPTY_TOKEN_ID_REVEAL:{code:400,description:A.errorLogs.EMPTY_TOKEN_ID_REVEAL},DUPLICATE_ELEMENT:{code:400,description:A.errorLogs.DUPLICATE_ELEMENT},DUPLICATE_ELEMENT_ADDITIONAL_FIELDS:{code:400,description:A.errorLogs.DUPLICATE_ELEMENT_ADDITIONAL_FIELDS},MISSING_ELEMENT_TYPE:{code:400,description:A.errorLogs.MISSING_ELEMENT_TYPE},EMPTY_ELEMENT_TYPE:{code:400,description:A.errorLogs.EMPTY_ELEMENT_TYPE},INVALID_ALLOWED_OPTIONS:{code:400,description:A.errorLogs.INVALID_ALLOWED_OPTIONS},EMPTY_ALLOWED_OPTIONS_ARRAY:{code:400,description:A.errorLogs.EMPTY_ALLOWED_OPTIONS_ARRAY},INVALID_ALLOWED_FILETYPE_ARRAY:{code:400,description:A.errorLogs.INVALID_ALLOWED_FILETYPE_ARRAY},INVALID_ELEMENT_TYPE:{code:400,description:A.errorLogs.INVALID_ELEMENT_TYPE},INVALID_ELEMENT_SELECTOR:{code:400,description:A.errorLogs.INVALID_ELEMENT_SELECTOR},FRAME_NOT_FOUND:{code:400,description:A.errorLogs.FRAME_NOT_FOUND},REQUIRED_PARAMS_NOT_PROVIDED:{code:400,description:A.errorLogs.REQUIRED_PARAMS_NOT_PROVIDED},INVALID_RECORD_COLUMN_VALUE:{code:400,description:A.errorLogs.INVALID_RECORD_COLUMN_VALUE},MISSING_RECORD_COLUMN_VALUE:{code:400,description:A.errorLogs.MISSING_RECORD_COLUMN_VALUE},MISSING_RECORD_COLUMN_NAME:{code:400,description:A.errorLogs.MISSING_RECORD_COLUMN_NAME},INVALID_EVENT_TYPE:{code:400,description:A.errorLogs.INVALID_EVENT_TYPE},INVALID_EVENT_LISTENER:{code:400,description:A.errorLogs.INVALID_EVENT_LISTENER},MISSING_HANDLER_IN_EVENT_LISTENER:{code:400,description:A.errorLogs.MISSING_HANDLER_IN_EVENT_LISTENER},INVALID_HANDLER_IN_EVENT_LISTENER:{code:400,description:A.errorLogs.INVALID_HANDLER_IN_EVENT_LISTENER},UNKNOWN_ERROR:{code:400,description:A.errorLogs.UNKNOWN_ERROR},CONNECTION_ERROR:{code:400,description:A.errorLogs.CONNECTION_ERROR},NETWORK_ERROR:{code:500,description:A.errorLogs.NETWORK_ERROR},COMPLETE_AND_VALID_INPUTS:{code:400,description:A.errorLogs.COMPLETE_AND_VALID_INPUTS},INVALID_VALIDATIONS_TYPE:{code:400,description:A.errorLogs.INVALID_VALIDATIONS_TYPE},MISSING_VALIDATION_RULE_TYPE:{code:400,description:A.errorLogs.MISSING_VALIDATION_RULE_TYPE},INVALID_VALIDATION_RULE_TYPE:{code:400,description:A.errorLogs.INVALID_VALIDATION_RULE_TYPE},MISSING_VALIDATION_RULE_PARAMS:{code:400,description:A.errorLogs.MISSING_VALIDATION_RULE_PARAMS},INVALID_VALIDATION_RULE_PARAMS:{code:400,description:A.errorLogs.INVALID_VALIDATION_RULE_PARAMS},MISSING_REGEX_IN_REGEX_MATCH_RULE:{code:400,description:A.errorLogs.MISSING_REGEX_IN_REGEX_MATCH_RULE},INVALID_REGEX_IN_REGEX_MATCH_RULE:{code:400,description:A.errorLogs.INVALID_REGEX_IN_REGEX_MATCH_RULE},MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE:{code:400,description:A.errorLogs.MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE},MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE:{code:400,description:A.errorLogs.MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE},INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE:{code:400,description:A.errorLogs.INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE},ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE:{code:400,description:A.errorLogs.ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE},EMPTY_ELEMENT_IN_MOUNT:{code:400,description:A.errorLogs.EMPTY_ELEMENT_IN_MOUNT},REVEAL_ELEMENT_ERROR_STATE:{code:400,description:A.errorLogs.REVEAL_ELEMENT_ERROR_STATE},INVALID_FILE_TYPE:{code:400,description:A.errorLogs.INVALID_FILE_TYPE},INVALID_FILE_SIZE:{code:400,description:A.errorLogs.INVALID_FILE_SIZE},NO_FILE_SELECTED:{code:400,description:A.errorLogs.NO_FILE_SELECTED},INVALID_TABLE_IN_UPSERT_OPTION:{code:400,description:A.errorLogs.INVALID_TABLE_IN_UPSERT_OPTION},INVALID_COLUMN_IN_UPSERT_OPTION:{code:400,description:A.errorLogs.INVALID_COLUMN_IN_UPSERT_OPTION},INVALID_UPSERT_OPTION_TYPE:{code:400,description:A.errorLogs.INVALID_UPSERT_OPTION_TYPE},EMPTY_UPSERT_OPTIONS_ARRAY:{code:400,description:A.errorLogs.EMPTY_UPSERT_OPTIONS_ARRAY},INVALID_UPSERT_OPTION_OBJECT_TYPE:{code:400,description:A.errorLogs.INVALID_UPSERT_OPTION_OBJECT_TYPE},MISSING_TABLE_IN_UPSERT_OPTION:{code:400,description:A.errorLogs.MISSING_TABLE_IN_UPSERT_OPTION},MISSING_COLUMN_IN_UPSERT_OPTION:{code:400,description:A.errorLogs.MISSING_COLUMN_IN_UPSERT_OPTION},INVALID_RECORD_COLUMN_VALUE_TYPE:{code:400,description:A.errorLogs.INVALID_RECORD_COLUMN_VALUE_TYPE},INVALID_COLUMN_VALUES_TYPE:{code:400,description:A.errorLogs.INVALID_COLUMN_VALUES_TYPE},EMPTY_RECORD_COLUMN_VALUES:{code:400,description:A.errorLogs.EMPTY_RECORD_COLUMN_VALUES},EMPTY_COLUMN_VALUE:{code:400,description:A.errorLogs.EMPTY_COLUMN_VALUE},MISSING_IDS_OR_COLUMN_VALUES_IN_GET:{code:400,description:A.errorLogs.MISSING_IDS_OR_COLUMN_VALUES_IN_GET},SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED:{code:400,description:A.errorLogs.SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED},SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED:{code:400,description:A.errorLogs.SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED},MISSING_TABLE_KEY_REVEAL:{code:400,description:A.errorLogs.MISSING_TABLE_KEY_REVEAL},MISSING_COLUMN_KEY_REVEAL:{code:400,description:A.errorLogs.MISSING_COLUMN_KEY_REVEAL},INVALID_SKYFLOW_ID_REVEAL:{code:400,description:A.errorLogs.INVALID_SKYFLOW_ID_REVEAL},INVALID_TABLE_REVEAL:{code:400,description:A.errorLogs.INVALID_TABLE_REVEAL},INVALID_COLUMN_NAME_REVEAL:{code:400,description:A.errorLogs.INVALID_COLUMN_NAME_REVEAL},EMPTY_SKYFLOW_ID_REVEAL:{code:400,description:A.errorLogs.EMPTY_SKYFLOW_ID_REVEAL},EMPTY_TABLE_REVEAL:{code:400,description:A.errorLogs.EMPTY_TABLE_REVEAL},EMPTY_COLUMN_NAME_REVEAL:{code:400,description:A.errorLogs.EMPTY_COLUMN_NAME_REVEAL},RECORDS_KEY_NOT_FOUND_GETBYID:{code:400,description:A.errorLogs.RECORDS_KEY_NOT_FOUND_GETBYID},INVALID_RECORDS_IN_GETBYID:{code:400,description:A.errorLogs.INVALID_RECORDS_IN_GETBYID},EMPTY_RECORDS_GETBYID:{code:400,description:A.errorLogs.EMPTY_RECORDS_GETBYID},MISSING_IDS_IN_GETBYID:{code:400,description:A.errorLogs.MISSING_IDS_IN_GETBYID},INVALID_IDS_IN_GETBYID:{code:400,description:A.errorLogs.INVALID_IDS_IN_GETBYID},EMPTY_IDS_IN_GETBYID:{code:400,description:A.errorLogs.EMPTY_IDS_IN_GETBYID},INVALID_SKYFLOWID_TYPE_IN_GETBYID:{code:400,description:A.errorLogs.INVALID_SKYFLOWID_TYPE_IN_GETBYID},MISSING_TABLE_IN_GETBYID:{code:400,description:A.errorLogs.MISSING_TABLE_IN_GETBYID},INVALID_TABLE_IN_GETBYID:{code:400,description:A.errorLogs.INVALID_TABLE_IN_GETBYID},MISSING_REDACTION_IN_GETBYID:{code:400,description:A.errorLogs.MISSING_REDACTION_IN_GETBYID},INVALID_REDACTION_TYPE_IN_GETBYID:{code:400,description:A.errorLogs.INVALID_REDACTION_TYPE_IN_GETBYID},EMPTY_SKYFLOWID_IN_GETBYID:{code:400,description:A.errorLogs.EMPTY_SKYFLOWID_IN_GETBYID},EMPTY_TABLE_IN_GETBYID:{code:400,description:A.errorLogs.EMPTY_TABLE_IN_GETBYID},EMPTY_REDACTION_TYPE_IN_GETBYID:{code:400,description:A.errorLogs.EMPTY_REDACTION_TYPE_IN_GETBYID},MISSING_COMPOSABLE_LAYOUT_KEY:{code:400,description:A.errorLogs.MISSING_COMPOSABLE_LAYOUT_KEY},EMPTY_COMPOSABLE_LAYOUT_ARRAY:{code:400,description:A.errorLogs.EMPTY_COMPOSABLE_LAYOUT_ARRAY},INVALID_COMPOSABLE_LAYOUT_TYPE:{code:400,description:A.errorLogs.INVALID_COMPOSABLE_LAYOUT_TYPE},NEGATIVE_VALUES_COMPOSABLE_LAYOUT:{code:400,description:A.errorLogs.NEGATIVE_VALUES_COMPOSABLE_LAYOUT},MISMATCH_ELEMENT_COUNT_LAYOUT_SUM:{code:400,description:A.errorLogs.MISMATCH_ELEMENT_COUNT_LAYOUT_SUM},MISSING_COMPOSABLE_CONTAINER_OPTIONS:{code:400,description:A.errorLogs.MISSING_COMPOSABLE_CONTAINER_OPTIONS},INVALID_COMPOSABLE_CONTAINER_OPTIONS:{code:400,description:A.errorLogs.INVALID_COMPOSABLE_CONTAINER_OPTIONS},COMPOSABLE_CONTAINER_NOT_MOUNTED:{code:400,description:A.errorLogs.COMPOSABLE_CONTAINER_NOT_MOUNTED},INVALID_BOOLEAN_OPTIONS:{code:400,description:A.errorLogs.INVALID_BOOLEAN_OPTIONS},INVALID_MASKING_CHARACTER:{code:400,description:A.errorLogs.INVALID_MASKING_CHARACTER},EMPTY_COLLECT_CUSTOM_FORMAT:{code:400,description:A.errorLogs.EMPTY_COLLECT_CUSTOM_FORMAT},INVALID_INPUT_OPTIONS_FORMAT:{code:400,description:A.errorLogs.INVALID_INPUT_OPTIONS_FORMAT},INVALID_INPUT_OPTIONS_TRANSLATION:{code:400,description:A.errorLogs.INVALID_INPUT_OPTIONS_TRANSLATION},INVALID_OPTION_CARD_METADATA:{code:400,description:A.errorLogs.INVALID_OPTION_CARD_METADATA},INVALID_OPTION_CARD_SCHEME:{code:400,description:A.errorLogs.INVALID_OPTION_CARD_SCHEME},INVALID_FIELD_SHOW_3DS_CHALLEGNGE:{code:400,description:A.errorLogs.INVALID_FIELD_SHOW_3DS_CHALLEGNGE},NO_ELEMENTS_IN_COLLECT:{code:400,description:A.errorLogs.NO_ELEMENTS_IN_COLLECT},NO_ELEMENTS_IN_COMPOSABLE:{code:400,description:A.errorLogs.NO_ELEMENTS_IN_COMPOSABLE},NO_ELEMENTS_IN_REVEAL:{code:400,description:A.errorLogs.NO_ELEMENTS_IN_REVEAL}};function ot(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(c.push(o.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return c}}(e,t)||Ye(e,t)||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.")}()}var rt=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/[\s-]/g,""),t=he.DEFAULT;return Object.entries(Me).forEach(function(n){var o=ot(n,2),r=o[0];o[1].regex.test(e)&&(t=r)}),t},it=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Ct(nt.RECORDS_KEY_NOT_FOUND,[],!0);var n=e.records;if(!n||!Array.isArray(n))throw new Ct(nt.INVALID_RECORDS_IN_INSERT,[],!0);if(0===n.length)throw new Ct(nt.EMPTY_RECORDS_IN_INSERT,[],!0);if(n.forEach(function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Ct(nt.MISSING_TABLE_IN_INSERT,["".concat(t)],!0);if(!e.table)throw new Ct(nt.EMPTY_TABLE_IN_INSERT,["".concat(t)],!0);if(!("string"==typeof e.table||e.table instanceof String))throw new Ct(nt.INVALID_TABLE_IN_INSERT,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"fields"))throw new Ct(nt.MISSING_FIELDS_IN_INSERT,["".concat(t)],!0);if(!e.fields)throw new Ct(nt.EMPTY_FIELDS_IN_INSERT,["".concat(t)],!0);if("object"!==a(e.fields)||Array.isArray(e.fields))throw new Ct(nt.INVALID_FIELDS_IN_INSERT,["".concat(t)],!0)}),t&&t.tokens&&"boolean"!=typeof t.tokens)throw new Ct(nt.INVALID_TOKENS_IN_INSERT,[],!0)},at=function(e,t){if(!e||"object"!==a(e))throw new Ct(nt.INVALID_RECORD_KEY_UPDATE,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"table"))throw new Ct(nt.MISSING_TABLE_IN_UPDATE,[],!0);if(!e.table)throw new Ct(nt.EMPTY_TABLE_IN_UPDATE,[],!0);if("string"!=typeof e.table)throw new Ct(nt.INVALID_TABLE_IN_UPDATE,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"fields"))throw new Ct(nt.MISSING_FIELDS_IN_UPDATE,[],!0);if(!e.fields)throw new Ct(nt.EMPTY_FIELDS_IN_UPDATE,[],!0);if("object"!==a(e.fields)||Array.isArray(e.fields))throw new Ct(nt.INVALID_FIELDS_IN_UPDATE,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"skyflowID"))throw new Ct(nt.MISSING_SKYFLOWID_IN_UPDATE,[],!0);if(!e.skyflowID)throw new Ct(nt.EMPTY_SKYFLOWID_IN_UPDATE,[],!0);if("string"!=typeof e.skyflowID)throw new Ct(nt.INVALID_SKYFLOWID_IN_UPDATE,[],!0);if(t&&void 0!==t.tokens&&"boolean"!=typeof t.tokens)throw new Ct(nt.INVALID_TOKENS_IN_UPDATE,[],!0)},ct=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Ct(nt.RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS,[],!0);var t=e.records;if(!t||!Array.isArray(t))throw new Ct(nt.INVALID_RECORDS_IN_ADDITIONAL_FIELDS,[],!0);if(0===t.length)throw new Ct(nt.EMPTY_RECORDS_IN_ADDITIONAL_FIELDS,[],!0);t.forEach(function(e,t){var n;if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Ct(nt.MISSING_TABLE_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!e.table)throw new Ct(nt.EMPTY_TABLE_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(void 0!==(null===(n=e.fields)||void 0===n?void 0:n.skyflowID)){var o,r,i;if(null===(o=e.fields)||void 0===o||!o.skyflowID)throw new Ct(nt.EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!("string"==typeof(null===(r=e.fields)||void 0===r?void 0:r.skyflowID)||(null===(i=e.fields)||void 0===i?void 0:i.skyflowID)instanceof String))throw new Ct(nt.INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS,["".concat(t)],!0)}if(!("string"==typeof e.table||e.table instanceof String))throw new Ct(nt.INVALID_TABLE_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"fields"))throw new Ct(nt.MISSING_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!e.fields)throw new Ct(nt.EMPTY_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if("object"!==a(e.fields)||Array.isArray(e.fields))throw new Ct(nt.INVALID_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(t)],!0)})},lt=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Ct(nt.RECORDS_KEY_NOT_FOUND_DETOKENIZE,[]);var t=e.records;if(!t||!Array.isArray(t))throw new Ct(nt.INVALID_RECORDS_IN_DETOKENIZE,[]);if(0===t.length)throw new Ct(nt.EMPTY_RECORDS_DETOKENIZE,[]);t.forEach(function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"token"))throw new Ct(nt.MISSING_TOKEN_IN_DETOKENIZE,["".concat(t)]);if(!e.token)throw new Ct(nt.EMPTY_TOKEN_IN_DETOKENIZE,["".concat(t)]);if(!("string"==typeof e.token||e.token instanceof String))throw new Ct(nt.INVALID_TOKEN_IN_DETOKENIZE,["".concat(t)]);var n=e.redaction;if(n&&!Object.values(He).includes(n))throw new Ct(nt.INVALID_REDACTION_TYPE_IN_DETOKENIZE,["".concat(t)])})},st=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Ct(nt.RECORDS_KEY_NOT_FOUND_GET,[]);var n=e.records;if(!n||!Array.isArray(n))throw new Ct(nt.INVALID_RECORDS_IN_GET,[]);if(0===n.length)throw new Ct(nt.EMPTY_RECORDS_GET,[]);if(t&&Object.prototype.hasOwnProperty.call(t,"tokens")&&"boolean"!=typeof(null==t?void 0:t.tokens))throw new Ct(nt.INVALID_TOKENS_IN_GET,[]);n.forEach(function(e,n){var o,r,i;if(0===Object.keys(e).length)throw new Ct(nt.EMPTY_RECORDS_GET,[]);if(0===(null===(o=e.ids)||void 0===o?void 0:o.length))throw new Ct(nt.EMPTY_IDS_IN_GET,["".concat(n)]);if(!(null==e.ids||e.ids&&Array.isArray(e.ids)))throw new Ct(nt.INVALID_IDS_IN_GET,["".concat(n)]);if(null===(r=e.ids)||void 0===r||r.forEach(function(e){if(!e)throw new Ct(nt.EMPTY_SKYFLOWID_IN_GET,["".concat(n)]);if(!("string"==typeof e||e instanceof String))throw new Ct(nt.INVALID_SKYFLOWID_TYPE_IN_GET,["".concat(n)])}),!Object.prototype.hasOwnProperty.call(e,"table"))throw new Ct(nt.MISSING_TABLE_IN_GET,["".concat(n)]);if(!e.table)throw new Ct(nt.EMPTY_TABLE_IN_GET,["".concat(n)]);if(!("string"==typeof e.table||e.table instanceof String))throw new Ct(nt.INVALID_TABLE_IN_GET,["".concat(n)]);if(!t||!Object.prototype.hasOwnProperty.call(t,"tokens")||!0!==(null==t?void 0:t.tokens)){if(!Object.prototype.hasOwnProperty.call(e,"redaction"))throw new Ct(nt.MISSING_REDACTION_IN_GET,["".concat(n)]);if(!e.redaction)throw new Ct(nt.EMPTY_REDACTION_TYPE_IN_GET,["".concat(n)]);if(!Object.values(He).includes(e.redaction))throw new Ct(nt.INVALID_REDACTION_TYPE_IN_GET,["".concat(n)])}if(!0===Object.prototype.hasOwnProperty.call(e,"ids")&&!0===Object.prototype.hasOwnProperty.call(e,"columnName"))throw new Ct(nt.SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED,["".concat(n)]);if(Object.prototype.hasOwnProperty.call(e,"columnName")){if(!Object.prototype.hasOwnProperty.call(e,"columnName")||!Object.prototype.hasOwnProperty.call(e,"columnValues"))throw new Ct(nt.MISSING_RECORD_COLUMN_VALUE,["".concat(n)])}else if(!1===Object.prototype.hasOwnProperty.call(e,"ids")&&!1===Object.prototype.hasOwnProperty.call(e,"columnValues"))throw new Ct(nt.MISSING_IDS_OR_COLUMN_VALUES_IN_GET,["".concat(n)]);if(0===(null===(i=e.columnValues)||void 0===i?void 0:i.length))throw new Ct(nt.EMPTY_RECORD_COLUMN_VALUES,["".concat(n)]);if(!(null==e.columnValues||e.columnValues&&Array.isArray(e.columnValues)))throw new Ct(nt.INVALID_COLUMN_VALUES_IN_GET,["".concat(n)]);if(void 0!==e.columnName&&void 0===e.columnValues)throw new Ct(nt.MISSING_RECORD_COLUMN_VALUE,["".concat(n)]);if(void 0===e.columnName&&void 0!==e.columnValues)throw new Ct(nt.MISSING_RECORD_COLUMN_NAME,["".concat(n)]);var a=e.columnName;if(null!=a&&"string"!=typeof a)throw new Ct(nt.INVALID_RECORD_COLUMN_VALUE,["".concat(n)]);var c=e.columnValues;if(null!=c){if(0===c.length||null===c)throw new Ct(nt.EMPTY_RECORD_COLUMN_VALUES,["".concat(n)]);c.forEach(function(e){if(""===e||null===e)throw new Ct(nt.EMPTY_COLUMN_VALUE,["".concat(n)]);if("string"!=typeof e)throw new Ct(nt.INVALID_RECORD_COLUMN_VALUE_TYPE,["".concat(n)])})}if(t&&Object.prototype.hasOwnProperty.call(t,"tokens")&&!0===(null==t?void 0:t.tokens)){if(a||c)throw new Ct(nt.TOKENS_GET_COLUMN_NOT_SUPPORTED,[]);if(e.redaction)throw new Ct(nt.REDACTION_WITH_TOKENS_NOT_SUPPORTED,[])}})},pt=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Ct(nt.RECORDS_KEY_NOT_FOUND_GETBYID,[]);var t=e.records;if(!t||!Array.isArray(t))throw new Ct(nt.INVALID_RECORDS_IN_GETBYID,[]);if(0===t.length)throw new Ct(nt.EMPTY_RECORDS_GETBYID,[]);t.forEach(function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"ids"))throw new Ct(nt.MISSING_IDS_IN_GETBYID,["".concat(t)]);if(!e.ids||!Array.isArray(e.ids))throw new Ct(nt.INVALID_IDS_IN_GETBYID,["".concat(t)]);if(0===e.ids.length)throw new Ct(nt.EMPTY_IDS_IN_GETBYID,["".concat(t)]);if(e.ids.forEach(function(e){if(!e)throw new Ct(nt.EMPTY_SKYFLOWID_IN_GETBYID,["".concat(t)]);if(!("string"==typeof e||e instanceof String))throw new Ct(nt.INVALID_SKYFLOWID_TYPE_IN_GETBYID,["".concat(t)])}),!Object.prototype.hasOwnProperty.call(e,"table"))throw new Ct(nt.MISSING_TABLE_IN_GETBYID,["".concat(t)]);if(!e.table)throw new Ct(nt.EMPTY_TABLE_IN_GETBYID,["".concat(t)]);if(!("string"==typeof e.table||e.table instanceof String))throw new Ct(nt.INVALID_TABLE_IN_GETBYID,["".concat(t)]);if(!Object.prototype.hasOwnProperty.call(e,"redaction"))throw new Ct(nt.MISSING_REDACTION_IN_GETBYID,["".concat(t)]);if(!e.redaction)throw new Ct(nt.EMPTY_REDACTION_TYPE_IN_GETBYID,["".concat(t)]);if(!Object.values(He).includes(e.redaction))throw new Ct(nt.INVALID_REDACTION_TYPE_IN_GETBYID,["".concat(t)])})},ut=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Ct(nt.RECORDS_KEY_NOT_FOUND_DELETE,[],!0);var n=e.records;if(!n||!Array.isArray(n))throw new Ct(nt.INVALID_RECORDS_IN_DELETE,[],!0);if(0===n.length)throw new Ct(nt.EMPTY_RECORDS_IN_DELETE,[],!0);n.forEach(function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Ct(nt.MISSING_TABLE_IN_DELETE,["".concat(t)],!0);if(!e.table)throw new Ct(nt.EMPTY_TABLE_IN_DELETE,["".concat(t)],!0);if(!("string"==typeof e.table||e.table instanceof String))throw new Ct(nt.INVALID_TABLE_IN_DELETE,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"id"))throw new Ct(nt.MISSING_ID_IN_DELETE,["".concat(t)],!0);if(!e.id)throw new Ct(nt.EMPTY_ID_IN_DELETE,["".concat(t)],!0);if(!("string"==typeof e.id||e.id instanceof String))throw new Ct(nt.INVALID_ID_IN_DELETE,["".concat(t)],!0)})},dt=function(e){if(0===e.length)throw new Ct(nt.EMPTY_RECORDS_REVEAL,[]);e.forEach(function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"skyflowID")){if(!e||!Object.prototype.hasOwnProperty.call(e,"token"))throw new Ct(nt.MISSING_TOKEN_KEY_REVEAL,[]);if(!e.token)throw new Ct(nt.EMPTY_TOKEN_ID_REVEAL,[]);if(!("string"==typeof e.token||e.token instanceof String))throw new Ct(nt.INVALID_TOKEN_ID_REVEAL,[])}var t=e.redaction;if(t&&!Object.values(He).includes(t))throw new Ct(nt.INVALID_REDACTION_TYPE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"label")&&"string"!=typeof e.label)throw new Ct(nt.INVALID_LABEL_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"altText")&&"string"!=typeof e.altText)throw new Ct(nt.INVALID_ALT_TEXT_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"format")&&"string"!=typeof e.format)throw new Ct(nt.INVALID_FORMAT_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"format")&&""===e.format)throw new Ct(nt.EMPTY_FORMAT_REVEAL,[])})},ft=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"skyflowID"))throw new Ct(nt.MISSING_SKYFLOWID_KEY_REVEAL,[]);if(!e.skyflowID)throw new Ct(nt.EMPTY_SKYFLOW_ID_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"skyflowID")&&"string"!=typeof e.skyflowID)throw new Ct(nt.INVALID_SKYFLOW_ID_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"skyflowID")&&Object.prototype.hasOwnProperty.call(e,"token"))throw new Ct(nt.SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED,[]);if(!e||!Object.prototype.hasOwnProperty.call(e,"column"))throw new Ct(nt.MISSING_COLUMN_KEY_REVEAL,[]);if(!e.column)throw new Ct(nt.EMPTY_COLUMN_NAME_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"column")&&"string"!=typeof e.column)throw new Ct(nt.INVALID_COLUMN_NAME_REVEAL,[]);if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Ct(nt.MISSING_TABLE_KEY_REVEAL,[]);if(!e.table)throw new Ct(nt.EMPTY_TABLE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"table")&&"string"!=typeof e.table)throw new Ct(nt.INVALID_TABLE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"altText")&&"string"!=typeof e.altText)throw new Ct(nt.INVALID_ALT_TEXT_RENDER,[])},Et=function(e){if(!e||"https"!==e.substring(0,5).toLowerCase())return!1;try{if(new URL(e))return!0}catch(e){return!1}return!0},_t=function(e){var t=!0;try{new RegExp(e)}catch(e){t=!1}return t},It=function(e){if(!Object.prototype.hasOwnProperty.call(e,"vaultID"))throw new Ct(nt.VAULTID_IS_REQUIRED,[],!0);if(!e.vaultID)throw new Ct(nt.EMPTY_VAULTID_IN_INIT,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"vaultURL"))throw new Ct(nt.VAULTURL_IS_REQUIRED,[],!0);if(!e.vaultURL)throw new Ct(nt.EMPTY_VAULTURL_IN_INIT,[],!0);if(e.vaultURL&&!Et(e.vaultURL))throw new Ct(nt.INVALID_VAULTURL_IN_INIT,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"getBearerToken"))throw new Ct(nt.GET_BEARER_TOKEN_IS_REQUIRED,[],!0)},mt=function(e,t){if(!Object.prototype.hasOwnProperty.call(e,"type"))throw new Ct(nt.MISSING_ELEMENT_TYPE,[],!0);if(!e.type)throw new Ct(nt.EMPTY_ELEMENT_TYPE,[],!0);if(Object.prototype.hasOwnProperty.call(e,"altText")&&xt(A.warnLogs.COLLECT_ALT_TEXT_DEPERECATED,et.WARN,t),Object.prototype.hasOwnProperty.call(e,"skyflowID")&&"string"!=typeof e.skyflowID)throw new Ct(nt.INVALID_SKYFLOWID_IN_COLLECT,[],!0);if(e.type===Te.FILE_INPUT&&!Object.keys(e).includes("skyflowID"))throw new Ct(nt.MISSING_SKYFLOWID_IN_COLLECT,[],!0)},yt=function(e){if(!e||!Array.isArray(e))throw new Ct(nt.INVALID_UPSERT_OPTION_TYPE,[],!0);if(!e.length)throw new Ct(nt.EMPTY_UPSERT_OPTIONS_ARRAY,[],!0);e.forEach(function(e,t){if(!e||"object"!==a(e))throw new Ct(nt.INVALID_UPSERT_OPTION_OBJECT_TYPE,[t],!0);if(!Object.prototype.hasOwnProperty.call(e,"table"))throw new Ct(nt.MISSING_TABLE_IN_UPSERT_OPTION,[t],!0);if(!e.table||"string"!=typeof e.table||!e.table.length)throw new Ct(nt.INVALID_TABLE_IN_UPSERT_OPTION,[t],!0);if(!Object.prototype.hasOwnProperty.call(e,"column"))throw new Ct(nt.MISSING_COLUMN_IN_UPSERT_OPTION,[t],!0);if(!e.column||"string"!=typeof e.column||!e.column.length)throw new Ct(nt.INVALID_COLUMN_IN_UPSERT_OPTION,[t],!0)})},vt=function(e){return"boolean"==typeof e},Ot=function(e){if(e){if(Object.prototype.hasOwnProperty.call(e,"format")&&"string"!=typeof e.format)throw new Ct(nt.INVALID_INPUT_OPTIONS_FORMAT,[],!0);if(Object.prototype.hasOwnProperty.call(e,"translation")&&("object"!==a(e.translation)||"[object Object]"!==Object.prototype.toString.call(e.translation)))throw new Ct(nt.INVALID_INPUT_OPTIONS_TRANSLATION,[],!0)}};const Nt={IFRAME_SECURE_SITE:"".concat("https://js.skyflow.com","/").concat("v2.5.0/elements/index.html"),IFRAME_SECURE_ORIGIN:"https://js.skyflow.com"},gt=JSON.parse('{"name":"skyflow-js","preferGlobal":true,"analyze":false,"version":"2.5.0","author":"Skyflow","description":"Skyflow JavaScript SDK","homepage":"https://github.com/skyflowapi/skyflow-js","main":"./dist/sdkNodeBuild/index.js","types":"./types/index-node.d.ts","files":["dist/sdkNodeBuild","types"],"license":"MIT","keywords":["client","sdk","javascript"],"scripts":{"type-check":"tsc --noEmit","type-check:watch":"npm run type-check -- --watch","build:types":"tsc --emitDeclarationOnly","dev":"webpack serve --config=webpack.dev.js --open --hot ","build-browser-sdk":"webpack --config=webpack.skyflow-browser.js","build-node-sdk":"webpack --config=webpack.skyflow-node.js","build-iframe":"webpack --config=webpack.iframe.js","test":"jest --config=jest.config.json"},"repository":{"type":"git","url":"https://github.com/skyflowapi/skyflow-js.git"},"dependencies":{"core-js":"^3.6.5","framebus":"^4.0.0","inject-stylesheet":"^2.0.0","jquery":"^3.5.1","jquery-mask-plugin":"^1.14.16","jss":"^10.7.1","jss-preset-default":"^10.7.1","jwt-decode":"^3.1.2","lodash":"^4.17.21","mime":"3.0.0","regex-parser":"^2.2.11","set-value":"^4.0.1"},"engines":{"node":">=12.0","npm":">=6.0"},"devDependencies":{"@babel/core":"^7.23.2","@babel/plugin-proposal-class-properties":"^7.10.1","@babel/plugin-proposal-decorators":"^7.10.1","@babel/plugin-proposal-object-rest-spread":"^7.10.1","@babel/plugin-transform-runtime":"^7.10.1","@babel/preset-env":"^7.9.6","@babel/preset-typescript":"^7.10.1","@babel/runtime":"^7.10.2","@types/jest":"^27.0.1","@types/jquery-mask-plugin":"^1.14.3","@types/mime":"^3.0.4","@types/node":"^14.0.5","@typescript-eslint/eslint-plugin":"^4.31.2","@typescript-eslint/parser":"^4.31.2","babel-loader":"^9.1.2","clean-webpack-plugin":"^4.0.0-alpha.0","compression-webpack-plugin":"^8.0.1","eslint":"^7.32.0","eslint-config-airbnb-base":"^14.2.1","eslint-config-airbnb-typescript":"^14.0.0","eslint-plugin-import":"^2.26.0","fork-ts-checker-webpack-plugin":"^6.3.2","html-webpack-plugin":"^5.5.0","jest":"^27.2.1","node-polyfill-webpack-plugin":"^2.0.1","typescript":"^4.6.3","webpack":"^5.97.1","webpack-bundle-analyzer":"^4.4.2","webpack-cli":"^4.8.0","webpack-dev-server":"^4.7.4","webpack-manifest-plugin":"^4.0.2","webpack-merge":"^5.8.0"}}');function Lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lt(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n(125).getType;function ht(e){var t=null==e?void 0:e.split(":");return t&&t.length>2?"".concat(t[0],":").concat(t[1],":").concat(t[2]):""}function At(e,t,n){var o,r,i,a,c,l,s={sdkName:e.name,sdkVersion:e.version},p=function(e,t){return e&&""!==e?"".concat(e):"".concat(t.sdkName,"@").concat(t.sdkVersion)}(null==t?void 0:t.sdkVersion,s),u=function(e){var t,n,o=null,r=null;if(/Windows/.test(e))o="Windows",r=null!==(t=null===(n=/Windows NT (\d+\.\d+)/.exec(e))||void 0===n?void 0:n[1])&&void 0!==t?t:null;else if(/Android/.test(e)){var i,a;o="Android",r=null!==(i=null===(a=/Android (\d+\.\d+)/.exec(e))||void 0===a?void 0:a[1])&&void 0!==i?i:null}else if(/iOS/.test(e)||/iPhone/.test(e)){var c,l;o="iOS",r=null!==(c=null===(l=/OS (\d+[._]\d+[._]?\d*)/.exec(e))||void 0===l||null===(l=l[1])||void 0===l?void 0:l.replace(/_/g,"."))&&void 0!==c?c:null}else if(/Mac OS X/.test(e)){var s,p;o="Mac OS X",r=null!==(s=null===(p=/Mac OS X (\d+([._]\d+)*)/.exec(e))||void 0===p||null===(p=p[1])||void 0===p?void 0:p.replace(/_/g,"."))&&void 0!==s?s:null}else if(/Linux/.test(e)){var u,d;o="Linux",r=null!==(u=null===(d=/Linux( \w+)*?\/([\w.]+)/.exec(e))||void 0===d?void 0:d[2])&&void 0!==u?u:null}return{os:o,version:r}}(n.userAgent),d=function(e){var t="",n="";if(-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")){t="Internet Explorer";var o=e.match(/(MSIE|rv:)\s?([\d.]+)/);o&&(n=o[2])}else if(-1!==e.indexOf("Edge")){t="Microsoft Edge";var r=e.match(/Edge\/([\d.]+)/);r&&(n=r[1])}else if(-1!==e.indexOf("Chrome")){t="Google Chrome";var i=e.match(/Chrome\/([\d.]+)/);i&&(n=i[1])}else if(-1!==e.indexOf("Firefox")){t="Mozilla Firefox";var a=e.match(/Firefox\/([\d.]+)/);a&&(n=a[1])}else if(-1!==e.indexOf("Safari")){t="Apple Safari";var c=e.match(/Version\/([\d.]+)/);c&&(n=c[1])}return{browserName:t,browserVersion:n}}(n.userAgent);return{sdk_name_version:p,sdk_client_device_model:(l=n.userAgent,/(ipad|tablet)/gi.test(l)?"tablet":/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile/.test(l)?"mobile":"desktop"),sdk_os_version:null!==(o=n.platform)&&void 0!==o?o:"".concat(null!==(r=u.os)&&void 0!==r?r:""," ").concat(null!==(i=u.version)&&void 0!==i?i:""),sdk_runtime_details:"".concat(null!==(a=d.browserName)&&void 0!==a?a:""," ").concat(null!==(c=d.browserVersion)&&void 0!==c?c:"")}}var bt=function(){var e=function(e){var t={sdkName:gt.name,sdkVersion:gt.version};return e&&""!==e&&e.split("@").length>1&&(t.sdkName=e.split("@")[0],t.sdkVersion=e.split("@")[1]),t}(localStorage.getItem("sdk_version")||""),t="skyflow-js"===e.sdkName?"JS":"React";return{sdkLanguageAndVersion:"".concat(t," SDK v").concat(e.sdkVersion),sdkOwner:"Skyflow"}},Rt=n(6763),St={DEBUG:{showDebugLogs:!0,showInfoLogs:!0,showWarnLogs:!0,showErrorLogs:!0},INFO:{showDebugLogs:!1,showInfoLogs:!0,showWarnLogs:!0,showErrorLogs:!0},WARN:{showDebugLogs:!1,showInfoLogs:!1,showWarnLogs:!0,showErrorLogs:!0},ERROR:{showDebugLogs:!1,showInfoLogs:!1,showWarnLogs:!1,showErrorLogs:!0}},wt={PROD:{doesReturnValue:!1},DEV:{doesReturnValue:!0}},Dt="[Skyflow]",xt=function(e,t,n){var o=bt(),r=o.sdkLanguageAndVersion,i=o.sdkOwner;if(n&&St[n]){var a=St[n],c=a.showDebugLogs,l=a.showInfoLogs,s=a.showWarnLogs,p=a.showErrorLogs;t===et.LOG&&c?Rt.log("".concat($e.DEBUG,": ").concat(Dt," ").concat(e)):t===et.LOG&&l?Rt.log("".concat($e.INFO,": ").concat(Dt," ").concat(e)):t===et.WARN&&s?Rt.warn("".concat($e.WARN,": ").concat(Dt," ").concat(e)):t===et.ERROR&&p&&Rt.error("".concat($e.ERROR,": ").concat(i," ").concat(r," ").concat(e))}},Mt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],r=t.filter(function(e,t){return 0!==t});return o?o.replace(/%s[0-9]+/g,function(e){var t=e.replace("%s","")-1;return r[t]}):""};function Pt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Pt=function(){return!!e})()}var Ct=function(e){function t(e,n){var o,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s(this,t);var i={code:e.code,description:n&&(null==n?void 0:n.length)>0?Mt.apply(void 0,[e.description].concat(Ge(n))):e.description};return o=function(e,t,n){return t=Xe(t),Be(e,Pt()?Reflect.construct(t,n||[],Xe(e).constructor):t.apply(e,n))}(this,t,[i.description]),l(o,"error",void 0),l(o,"errors",void 0),r?o.error=i:o.errors=[i],o}return Ke(t,e),u(t)}(ze(Error));function kt(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Vt(e,t){return e.get(jt(e,t))}function jt(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Ut=new WeakMap,Ft=function(){function e(t,n){var o=this;s(this,e),l(this,"config",void 0),kt(this,Ut,void 0),l(this,"request",function(e){return new Promise(function(t,n){var r,i,a=new XMLHttpRequest;if(a){if(a.open(e.requestMethod,e.url),e.headers){var c=At(gt,Vt(Ut,o),navigator);e.headers["sky-metadata"]=JSON.stringify(c);var l=e.headers;Object.keys(e.headers).forEach(function(e){"content-type"===e&&l[e]&&l[e].includes(Ve.FORMDATA)||a.setRequestHeader(e,l[e])})}null!==(r=e.headers)&&void 0!==r&&null!==(r=r["content-type"])&&void 0!==r&&r.includes(Ve.FORMURLENCODED)||null!==(i=e.headers)&&void 0!==i&&null!==(i=i["content-type"])&&void 0!==i&&i.includes(Ve.FORMDATA),a.send(e.body),a.onload=function(){var e=a.getAllResponseHeaders().trim().split(/[\r\n]+/),o={};e.forEach(function(e){var t=e.split(": "),n=t.shift()||"",r=t.join(": ");o[n]=r});var r=o["content-type"],i=o["x-request-id"];if(a.status<200||a.status>=400)if(r&&r.includes("application/json")){var c,l,s,p=JSON.parse(a.response);if(null!==(c=p)&&void 0!==c&&null!==(c=c.error)&&void 0!==c&&c.message)p=i?"".concat(null===(l=p)||void 0===l||null===(l=l.error)||void 0===l?void 0:l.message," - requestId: ").concat(i):null===(s=p)||void 0===s||null===(s=s.error)||void 0===s?void 0:s.message;n(new Ct({code:a.status,description:p},[],!0))}else r&&r.includes("text/plain")?n(new Ct({code:a.status,description:i?"".concat(a.response," - requestId: ").concat(i):a.response},[],!0)):n(new Ct({code:a.status,description:i?"".concat(A.errorLogs.ERROR_OCCURED," - requestId: ").concat(i):A.errorLogs.ERROR_OCCURED},[],!0));r&&r.includes("application/json")&&t(JSON.parse(a.response)),t(a.response)},a.onerror=function(){n(new Ct(nt.NETWORK_ERROR,[],!0))}}else n(new Ct(nt.CONNECTION_ERROR,[],!0))})}),this.config=t,function(e,t,n){e.set(jt(e,t),n)}(Ut,this,n)}return u(e,[{key:"toJSON",value:function(){return{config:this.config,metaData:Vt(Ut,this)}}}],[{key:"fromJSON",value:function(t){return new e(t.config,t.metaData)}}])}();const Yt=Ft;const Gt=function(){function e(){s(this,e),l(this,"events",void 0),this.events={}}return u(e,[{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.events[e]?this.events[e].push({priority:n,callback:t}):this.events[e]=[{priority:n,callback:t}]}},{key:"off",value:function(e,t){var n=this.events[e];if(n){var o=n.findIndex(function(e){return e.callback===t});n.splice(o,1)}}},{key:"_emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=this.events[e];r&&r.forEach(function(e){e.callback.apply(e,n)})}},{key:"hasListener",value:function(e){var t=this.events[e];return!!t&&t.length>0}},{key:"resetEvents",value:function(){var e=this,t={};Object.keys(this.events).forEach(function(n){var o=e.events[n];if(o&&o.length>0){var r=[];o.forEach(function(e){e.priority&&r.push(e)}),t[n]=r}}),this.events=t}}],[{key:"createChild",value:function(t){t.prototype=Object.create(e.prototype,{constructor:t})}}])}();function Bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Wt={src:"about:blank",frameBorder:0,allowtransparency:!0,scrolling:"no",style:"width: 100%;",allow:"clipboard-read; clipboard-write"},Kt=function(e,t){Object.keys(t).forEach(function(n){if(Object.prototype.hasOwnProperty.call(t,n)){var o=t[n];null==o?e.removeAttribute(n):e.setAttribute(n,o)}})};const qt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.createElement("iframe"),n=Xt(Xt({},Wt),e);return Object.assign(t.style,Se),Kt(t,n),t.getAttribute("id")||(t.id=t.name),t};var zt=function(){return Nt.IFRAME_SECURE_SITE},Ht=function(e,t){Object.keys(t).forEach(function(n){Object.prototype.hasOwnProperty.call(t,n)&&(e.style[n]=t[n])})};const Jt=u(function e(){s(this,e)});function Zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function $t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Qt={records:[]};function en(e,t){var n,o,r,i=At(gt,e,navigator),a={element_id:t,element_type:[],div_id:"",container_name:"",container_id:(null==e?void 0:e.uuid)||"",session_id:(null==e?void 0:e.session_id)||"",vault_id:(null==e||null===(n=e.clientJSON)||void 0===n||null===(n=n.config)||void 0===n?void 0:n.vaultID)||"",vault_url:(null==e||null===(o=e.clientJSON)||void 0===o||null===(o=o.config)||void 0===o?void 0:o.vaultURL)||"",events:[],created_at:Date.now(),region:(null===Intl||void 0===Intl||null===(r=Intl.DateTimeFormat())||void 0===r||null===(r=r.resolvedOptions())||void 0===r?void 0:r.timeZone)||"",status:G.INITIALIZED,sdk_name_version:i.sdk_name_version,sdk_client_device_model:i.sdk_client_device_model||"",sdk_client_os_details:i.sdk_os_version||"",sdk_runtime_details:i.sdk_runtime_details||""};Qt.records.push(a)}function tn(e,t,n){Qt.records.forEach(function(o){o.element_id===e&&(t===j||t===P?o[t].push(n):t===F&&o.mount_start_time?(o[t]=n,o.latency=n-o.mount_start_time):o[t]=n)})}function nn(e){var t=Qt.records.filter(function(t){return t.element_id===e});if(t&&t[0]){var n=t[0];n.status=function(e){var t=e.status;return e.events&&e.events.filter(function(e){return e.includes(M.MOUNTED)}).length>0?t=G.SUCCESS:e.events.length>0?t=G.PARTIAL_RENDER:(0===e.events.length||e.error)&&(t=G.FAILED),t}(n);var o=$t($t({},n),{},{time:Math.floor(Date.now()/1e3)});""!==n.vault_id&&""!==n.vault_url&&f().emit(Ie+n.container_id,{event:o})}}function on(e){setTimeout(function(){nn(e)},2e4)}var rn=n(6763),an=u(function e(t,n,o,r){var i=this;s(this,e),l(this,"name",void 0),l(this,"metadata",void 0),l(this,"iframe",void 0),l(this,"container",void 0),l(this,"mount",function(e,t,n){var o;i.unmount();try{if("string"==typeof e){if(i.container=document.querySelector(e)||void 0,!i.container)throw new Ct(nt.INVALID_ELEMENT_SELECTOR,[],!0)}else{if(!(e instanceof HTMLElement))throw new Ct(nt.INVALID_ELEMENT_SELECTOR,[],!0);i.container=e}}catch(e){rn.error(e),t&&tn(t,Y,e.message)}Kt(i.iframe,{src:"".concat(zt()).concat(n?"?".concat(btoa(null==n?void 0:n.record)):"")}),null===(o=i.container)||void 0===o||o.appendChild(i.iframe)}),l(this,"setIframeHeight",function(e){i.iframe.getAttribute("height")!==e&&i.iframe.setAttribute("height","".concat(e,"px"))}),l(this,"unmount",function(){i.iframe.remove()});var a=n.clientDomain||"";this.name="".concat(t,":").concat(o,":").concat(r,":").concat(btoa(a)),this.metadata=n,this.iframe=qt({name:this.name,referrer:a})});const cn=u(function e(){s(this,e)});n(4756);var ln=function(e,t){var n={};if(e.fields){var o={skyflow_id:e.fields.skyflow_id,column:t};n.success=o}else e.errors&&(n.errors={skyflowId:e.errors.skyflowId,column:e.errors.column,error:e.errors.error});return n};function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function un(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(un=function(){return!!e})()}function dn(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function fn(e,t){return e.get(_n(e,t))}function En(e,t,n){return e.set(_n(e,t),n),n}function _n(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var In="RevealElement",mn=new WeakMap,yn=new WeakMap,vn=new WeakMap,On=new WeakMap,Nn=new WeakMap,gn=new WeakMap,Ln=new WeakMap,Tn=new WeakMap,hn=new WeakMap,An=new WeakMap,bn=new WeakMap,Rn=new WeakMap,Sn=new WeakMap,wn=new WeakMap,Dn=function(e){function t(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,c=arguments.length>5?arguments[5]:void 0;return s(this,t),n=function(e,t,n){return t=Xe(t),Be(e,un()?Reflect.construct(t,n||[],Xe(e).constructor):t.apply(e,n))}(this,t),dn(n,mn,void 0),dn(n,yn,void 0),dn(n,vn,void 0),dn(n,On,void 0),dn(n,Nn,!1),dn(n,gn,!1),dn(n,Ln,void 0),dn(n,Tn,void 0),dn(n,hn,!1),dn(n,An,void 0),dn(n,bn,void 0),dn(n,Rn,void 0),dn(n,Sn,void 0),dn(n,wn,!1),En(Tn,n,a),En(yn,n,r),En(Sn,n,fn(yn,n).uuid),En(vn,n,pn(pn({},e),function(e){var t={};if(e){if(t=Tt({},e),Object.prototype.hasOwnProperty.call(t,"enableCopy")&&!vt(t.enableCopy))throw new Ct(nt.INVALID_BOOLEAN_OPTIONS,["enableCopy"],!0);if(Object.prototype.hasOwnProperty.call(t,"format")||Object.prototype.hasOwnProperty.call(t,"translation")){var n,o,r=[];t.format&&r.push(t.format),r.push(null),t.translation?r.push(t.translation):t.format&&r.push(Ue),null===(n=t=Tt(Tt({},t),3===r.length?{mask:r}:{}))||void 0===n||delete n.format,null===(o=t)||void 0===o||delete o.translation}}return t}(o))),En(On,n,i.containerId),En(hn,n,i.isMounted),En(An,n,i.eventEmitter),En(Ln,n,c),en(r,a),tn(fn(Tn,n),P,x.REVEAL),tn(fn(Tn,n),k,x.REVEAL),En(mn,n,new an("".concat("reveal",":").concat(btoa(E())),r,fn(On,n),fn(Ln,n).logLevel)),En(Rn,n,""),En(bn,n,!1),En(hn,n,!0),En(wn,n,r.skyflowContainer.isControllerFrameReady),f().on(Q.HEIGHT+fn(mn,n).name,function(e){fn(mn,n).setIframeHeight(e.height)}),n}return Ke(t,e),u(t,[{key:"getID",value:function(){return fn(Tn,this)}},{key:"mount",value:function(e){var t,n,o=this;if(!e)throw new Ct(nt.EMPTY_ELEMENT_IN_MOUNT,["RevealElement"],!0);tn(fn(Tn,this),C,e),null!==(t=fn(yn,this))&&void 0!==t&&null!==(t=t.clientJSON)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&null!==(t=t.options)&&void 0!==t&&t.trackMetrics&&null!==(n=fn(yn,this).clientJSON.config)&&void 0!==n&&null!==(n=n.options)&&void 0!==n&&n.trackingKey&&on(fn(Tn,this)),En(hn,this,!0),fn(hn,this)&&(fn(mn,this).mount(e,void 0,{record:JSON.stringify(pn(pn({},fn(yn,this)),{},{record:fn(vn,this),context:fn(Ln,this),containerId:fn(On,this)}))}),f().target(Nt.IFRAME_SECURE_ORIGIN).on(Q.MOUNTED+fn(mn,this).name,function(){En(Nn,o,!0),fn(vn,o).skyflowID?(f().emit(ge+fn(On,o),{skyflowID:fn(vn,o).skyflowID,containerId:fn(On,o)}),tn(fn(Tn,o),F,Date.now()),tn(fn(Tn,o),j,M.MOUNTED)):(f().emit(ge+fn(On,o),{id:fn(vn,o).token,containerId:fn(On,o)}),tn(fn(Tn,o),F,Date.now()),tn(fn(Tn,o),j,M.MOUNTED)),Object.prototype.hasOwnProperty.call(fn(vn,o),"skyflowID")&&f().emit(Q.HEIGHT+fn(mn,o).name,{},function(e){fn(mn,o).setIframeHeight(e.height)})}),tn(fn(Tn,this),j,M.READY),tn(fn(Tn,this),U,Date.now()))}},{key:"renderFile",value:function(){var e=this;En(wn,this,fn(yn,this).skyflowContainer.isControllerFrameReady);var t="";Object.prototype.hasOwnProperty.call(fn(vn,this),"altText")&&(t=fn(vn,this).altText),this.setAltText("loading...");var n=fn(Ln,this).logLevel;return fn(wn,this)?new Promise(function(o,r){try{It(fn(yn,e).clientJSON.config),xt(Mt(A.infoLogs.VALIDATE_RENDER_RECORDS,In),et.LOG,n),ft(fn(vn,e)),f().emit(te+fn(yn,e).uuid,{type:$,records:fn(vn,e),containerId:fn(On,e),iframeName:fn(mn,e).name},function(n){n.errors?(xt(Mt(A.errorLogs.FAILED_RENDER),et.ERROR,fn(Ln,e).logLevel),Object.prototype.hasOwnProperty.call(fn(vn,e),"altText")&&e.setAltText(t),r(ln(n,fn(vn,e).column))):(xt(Mt(A.infoLogs.RENDER_SUBMIT_SUCCESS,In),et.LOG,fn(Ln,e).logLevel),xt(Mt(A.infoLogs.FILE_RENDERED,In,fn(vn,e).skyflowID),et.LOG,fn(Ln,e).logLevel),o(ln(n,fn(vn,e).column)))}),xt(Mt(A.infoLogs.EMIT_EVENT,In,_e),et.LOG,n)}catch(e){xt("Error: ".concat(e.message),et.ERROR,n),r(e)}}):new Promise(function(o,r){try{It(fn(yn,e).clientJSON.config),xt(Mt(A.infoLogs.VALIDATE_RENDER_RECORDS,In),et.LOG,n),ft(fn(vn,e)),f().target(Nt.IFRAME_SECURE_ORIGIN).on(me+fn(yn,e).uuid,function(){f().emit(te+fn(yn,e).uuid,{type:$,records:fn(vn,e),containerId:fn(On,e),iframeName:fn(mn,e).name},function(n){n.errors?(xt(Mt(A.errorLogs.FAILED_RENDER),et.ERROR,fn(Ln,e).logLevel),Object.prototype.hasOwnProperty.call(fn(vn,e),"altText")&&e.setAltText(t),r(ln(n,fn(vn,e).column))):(xt(Mt(A.infoLogs.RENDER_SUBMIT_SUCCESS,In),et.LOG,fn(Ln,e).logLevel),xt(Mt(A.infoLogs.FILE_RENDERED,In,fn(vn,e).skyflowID),et.LOG,fn(Ln,e).logLevel),o(ln(n,fn(vn,e).column)))}),xt(Mt(A.infoLogs.EMIT_EVENT,In,_e),et.LOG,n)}),xt(Mt(A.infoLogs.EMIT_EVENT,In,_e),et.LOG,n)}catch(e){xt("Error: ".concat(e.message),et.ERROR,n),r(e)}})}},{key:"iframeName",value:function(){return fn(mn,this).name}},{key:"isMounted",value:function(){return fn(Nn,this)}},{key:"hasToken",value:function(){return!!fn(vn,this).token}},{key:"isClientSetError",value:function(){return fn(gn,this)}},{key:"getRecordData",value:function(){return fn(vn,this)}},{key:"setErrorOverride",value:function(e){var t=this;fn(Nn,this)?f().emit(ue+fn(mn,this).name,{name:fn(mn,this).name,isTriggerError:!0,clientErrorText:e}):f().target(Nt.IFRAME_SECURE_ORIGIN).on(Q.MOUNTED+fn(mn,this).name,function(){f().emit(ue+fn(mn,t).name,{name:fn(mn,t).name,isTriggerError:!0,clientErrorText:e})}),En(gn,this,!0)}},{key:"setError",value:function(e){var t=this;fn(Nn,this)?f().emit(ue+fn(mn,this).name,{name:fn(mn,this).name,isTriggerError:!0,clientErrorText:e}):f().target(Nt.IFRAME_SECURE_ORIGIN).on(Q.MOUNTED+fn(mn,this).name,function(){En(Nn,t,!0),f().emit(ue+fn(mn,t).name,{name:fn(mn,t).name,isTriggerError:!0,clientErrorText:e})}),En(gn,this,!0)}},{key:"resetError",value:function(){var e=this;fn(Nn,this)?f().emit(ue+fn(mn,this).name,{name:fn(mn,this).name,isTriggerError:!1}):f().target(Nt.IFRAME_SECURE_ORIGIN).on(Q.MOUNTED+fn(mn,this).name,function(){En(Nn,e,!0),f().emit(ue+fn(mn,e).name,{name:fn(mn,e).name,isTriggerError:!1})}),En(gn,this,!1)}},{key:"setAltText",value:function(e){var t=this;fn(Nn,this)?f().emit(de+fn(mn,this).name,{name:fn(mn,this).name,updateType:Oe,updatedValue:e}):f().target(Nt.IFRAME_SECURE_ORIGIN).on(Q.MOUNTED+fn(mn,this).name,function(){En(Nn,t,!0),f().emit(de+fn(mn,t).name,{name:fn(mn,t).name,updateType:Oe,updatedValue:e})})}},{key:"clearAltText",value:function(){var e=this;fn(Nn,this)?f().emit(de+fn(mn,this).name,{name:fn(mn,this).name,updateType:Oe,updatedValue:null}):f().target(Nt.IFRAME_SECURE_ORIGIN).on(Q.MOUNTED+fn(mn,this).name,function(){En(Nn,e,!0),f().emit(de+fn(mn,e).name,{name:fn(mn,e).name,updateType:Oe,updatedValue:null})})}},{key:"setToken",value:function(e){var t=this;En(vn,this,pn(pn({},fn(vn,this)),{},{token:e})),fn(Nn,this)?f().emit(de+fn(mn,this).name,{name:fn(mn,this).name,updateType:ve,updatedValue:e}):f().target(Nt.IFRAME_SECURE_ORIGIN).on(Q.MOUNTED+fn(mn,this).name,function(){En(Nn,t,!0),f().emit(de+fn(mn,t).name,{name:fn(mn,t).name,updateType:ve,updatedValue:e})})}},{key:"unmount",value:function(){var e;fn(vn,this).skyflowID&&(En(Nn,this,!1),null===(e=fn(mn,this).container)||void 0===e||e.remove());En(Nn,this,!1),fn(mn,this).unmount()}},{key:"update",value:function(e){var t=this;En(vn,this,pn(pn({},fn(vn,this)),e)),fn(Nn,this)?f().emit(de+fn(mn,this).name,{name:fn(mn,this).name,updateType:Ne,updatedValue:e}):f().target(Nt.IFRAME_SECURE_ORIGIN).on(Q.MOUNTED+fn(mn,this).name,function(){En(Nn,t,!0),f().emit(de+fn(mn,t).name,{name:fn(mn,t).name,updateType:Ne,updatedValue:e})})}}])}(cn);const xn=Dn;function Mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Cn=function(){return!!e})()}function kn(e,t,n){Vn(e,t),t.set(e,n)}function Vn(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function jn(e,t){return e.get(Fn(e,t))}function Un(e,t,n){return e.set(Fn(e,t),n),n}function Fn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Yn="RevealContainer",Gn=new WeakMap,Bn=new WeakMap,Xn=new WeakMap,Wn=new WeakMap,Kn=new WeakMap,qn=new WeakMap,zn=new WeakMap,Hn=new WeakMap,Jn=new WeakMap,Zn=new WeakMap,$n=new WeakMap,Qn=new WeakMap,eo=new WeakSet,to=function(e){function t(e,n,o,r){var i,a,c;s(this,t),c=function(e,t,n){return t=Xe(t),Be(e,Cn()?Reflect.construct(t,n||[],Xe(e).constructor):t.apply(e,n))}(this,t),function(e,t){Vn(e,t),t.add(e)}(c,eo),kn(c,Gn,[]),kn(c,Bn,[]),kn(c,Xn,[]),kn(c,Wn,void 0),kn(c,Kn,void 0),kn(c,qn,void 0),kn(c,zn,!1),kn(c,Hn,!1),kn(c,Jn,void 0),kn(c,Zn,void 0),kn(c,$n,!1),l(c,"type",Gi.REVEAL),kn(c,Qn,!1),Un(Qn,c,e.skyflowContainer.isControllerFrameReady),Un(Wn,c,Pn(Pn({},e),{},{clientJSON:Pn(Pn({},e.clientJSON),{},{config:Pn(Pn({},null===(i=e.clientJSON)||void 0===i?void 0:i.config),{},{options:Pn(Pn({},null===(a=e.clientJSON)||void 0===a||null===(a=a.config)||void 0===a?void 0:a.options),r)})})})),Un(Zn,c,n),Un(Kn,c,E()),Un(qn,c,new Gt),Un(Jn,c,o);var p=jn(Wn,c).clientDomain||"",u=qt({name:"".concat("reveal_controller",":").concat(jn(Kn,c),":").concat(btoa(p)),referrer:p});return Kt(u,{src:zt()}),Ht(u,Pn({},we)),xt(Mt(A.infoLogs.CREATE_REVEAL_CONTAINER,Yn),et.LOG,jn(Jn,c).logLevel),f().target(window.location.origin).on(ge+jn(Kn,c),function(e){e.skyflowID||jn(Xn,c).push(e);var t=0;jn(Bn,c).forEach(function(e){e.getRecordData().skyflowID||(t+=1)}),Un(Hn,c,jn(Xn,c).length===t),jn(zn,c)&&jn(Hn,c)&&jn(qn,c)._emit(Le+jn(Kn,c),{containerId:jn(Kn,c)})}),c}return Ke(t,e),u(t,[{key:"create",value:function(e,t){var n=E();Ot(t);var o=new xn(e,t,jn(Wn,this),{containerId:jn(Kn,this),isMounted:jn($n,this),eventEmitter:jn(qn,this)},n,jn(Jn,this));return jn(Bn,this).push(o),jn(Zn,this)[n]=o,o}},{key:"reveal",value:function(){var e=this;return Un(zn,this,!0),Un(Gn,this,[]),jn(Wn,this).skyflowContainer.isControllerFrameReady?new Promise(function(t,n){try{if(It(jn(Wn,e).clientJSON.config),xt(Mt(A.infoLogs.VALIDATE_REVEAL_RECORDS,Yn),et.LOG,jn(Jn,e).logLevel),jn(Bn,e).forEach(function(t){if(t.isClientSetError())throw new Ct(nt.REVEAL_ELEMENT_ERROR_STATE);t.getRecordData().skyflowID||jn(Gn,e).push(t.getRecordData())}),0===jn(Gn,e).length)throw new Ct(nt.NO_ELEMENTS_IN_REVEAL,[],!0);if(dt(jn(Gn,e)),jn(Hn,e))Fn(eo,e,no).call(e,t,n);else{var o=setTimeout(function(){xt(A.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL,et.ERROR,jn(Jn,e).logLevel),n(new Error(A.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL))},1e4);jn(qn,e).on(Le+jn(Kn,e),function(){clearTimeout(o),Fn(eo,e,no).call(e,t,n)})}}catch(t){xt("Error: ".concat(t.message),et.ERROR,jn(Jn,e).logLevel),n(t)}}):new Promise(function(t,n){try{if(It(jn(Wn,e).clientJSON.config),xt(Mt(A.infoLogs.VALIDATE_REVEAL_RECORDS,Yn),et.LOG,jn(Jn,e).logLevel),jn(Bn,e).forEach(function(t){if(t.isClientSetError())throw new Ct(nt.REVEAL_ELEMENT_ERROR_STATE);t.getRecordData().skyflowID||jn(Gn,e).push(t.getRecordData())}),0===jn(Gn,e).length)throw new Ct(nt.NO_ELEMENTS_IN_REVEAL,[],!0);if(dt(jn(Gn,e)),jn(Hn,e))f().target(Nt.IFRAME_SECURE_ORIGIN).on(me+jn(Wn,e).uuid,function(){Fn(eo,e,no).call(e,t,n)});else{var o=setTimeout(function(){xt(A.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL,et.ERROR,jn(Jn,e).logLevel),n(new Error(A.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL))},1e4);jn(qn,e).on(Le+jn(Kn,e),function(){clearTimeout(o),jn(Wn,e).skyflowContainer.isControllerFrameReady?Fn(eo,e,no).call(e,t,n):f().target(Nt.IFRAME_SECURE_ORIGIN).on(me+jn(Wn,e).uuid,function(){Fn(eo,e,no).call(e,t,n)})})}}catch(t){xt("Error: ".concat(t.message),et.ERROR,jn(Jn,e).logLevel),n(t)}})}}])}(Jt);function no(e,t){var n=this;f().emit(te+jn(Wn,this).uuid,{type:Z,records:jn(Gn,this),containerId:jn(Kn,this)},function(o){Un(Xn,n,[]),o.error?(xt(Mt(A.errorLogs.FAILED_REVEAL),et.ERROR,jn(Jn,n).logLevel),t(o.error)):(xt(Mt(A.infoLogs.REVEAL_SUBMIT_SUCCESS,Yn),et.LOG,jn(Jn,n).logLevel),e(o))})}const oo=to;function ro(e){return JSON.parse(JSON.stringify(e))}const io=function(){return u(function e(){s(this,e),l(this,"listeners",void 0),l(this,"isDestroyed",void 0),this.listeners=[],this.isDestroyed=!1},[{key:"on",value:function(e,t){f().on(e,t),this.listeners.push({eventName:e,callback:t})}},{key:"off",value:function(e,t){f().off(e,t);var n=this.listeners.findIndex(function(t){return t.eventName===e});-1!==n&&this.listeners.splice(n,1)}},{key:"emit",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;f().emit(e,t,n)}},{key:"hasListener",value:function(e){return-1!==this.listeners.findIndex(function(t){return t.eventName===e})}},{key:"teardown",value:function(){this.listeners.forEach(function(e){f().off(e.eventName,e.handler)}),this.listeners=[]}}])}();var ao=["name"];function co(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function lo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?co(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function so(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(so=function(){return!!e})()}function po(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function uo(e,t){return e.get(Eo(e,t))}function fo(e,t,n){return e.set(Eo(e,t),n),n}function Eo(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var _o=new WeakMap,Io=new WeakMap,mo=new WeakMap,yo=new WeakMap,vo=new WeakMap,Oo=new WeakMap,No=new WeakMap,go=new WeakMap,Lo=new WeakMap,To=new WeakMap,ho=new WeakMap,Ao=new WeakMap,bo=new WeakMap,Ro=new WeakMap,So=new WeakMap,wo=new WeakMap,Do=new WeakMap,xo=new WeakMap,Mo=new WeakMap,Po=new WeakMap,Co=new WeakMap,ko=new WeakMap,Vo=function(e){function t(e,n,o,r){var i,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=arguments.length>5?arguments[5]:void 0,p=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,d=arguments.length>8?arguments[8]:void 0;return s(this,t),i=function(e,t,n){return t=Xe(t),Be(e,so()?Reflect.construct(t,n||[],Xe(e).constructor):t.apply(e,n))}(this,t),l(i,"elementType",void 0),l(i,"type",Gi.COLLECT),po(i,_o,void 0),l(i,"containerId",void 0),po(i,Io,!1),po(i,mo,void 0),po(i,yo,void 0),l(i,"resizeObserver",void 0),po(i,vo,{isEmpty:!0,isComplete:!1,isValid:!1,isFocused:!1,value:void 0,isRequired:!1,selectedCardScheme:""}),po(i,Oo,void 0),po(i,No,void 0),po(i,go,new Gt),po(i,Lo,void 0),po(i,To,new io),po(i,ho,void 0),po(i,Ao,[]),po(i,bo,!1),po(i,Ro,void 0),po(i,So,void 0),po(i,wo,!1),po(i,Do,!1),l(i,"getID",function(){return uo(_o,i)}),l(i,"mount",function(e){var t;if(!e)throw new Ct(nt.EMPTY_ELEMENT_IN_MOUNT,["CollectElement"],!0);if(i.resizeObserver=new ResizeObserver(function(){uo(To,i).emit(Q.HEIGHT+uo(ho,i).name,{},function(e){uo(ho,i).setIframeHeight(e.height)})}),tn(uo(_o,i),C,e),null!==(t=uo(No,i))&&void 0!==t&&null!==(t=t.clientJSON)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&null!==(t=t.options)&&void 0!==t&&t.trackMetrics&&uo(No,i).clientJSON.config.options.trackingKey&&on(uo(_o,i)),"string"==typeof e){var n,o=document.querySelector(e);if(o)null===(n=i.resizeObserver)||void 0===n||n.observe(o)}else if(e instanceof HTMLElement){var r;null===(r=i.resizeObserver)||void 0===r||r.observe(e)}uo(yo,i).length>1?(uo(ho,i).mount(e,uo(_o,i),{record:JSON.stringify({record:uo(Oo,i),containerId:i.containerId,metaData:uo(No,i)})}),uo(yo,i).forEach(function(e,t){uo(Lo,i)&&(uo(Lo,i)._emit("".concat(Q.READY,":").concat(e.elementName),lo(lo({},uo(mo,i)[t]),{},{elementType:e.elementType})),tn(uo(_o,i),j,"".concat(e.elementType,"_").concat(V.READY)))}),tn(uo(_o,i),U,Date.now())):uo(wo,i)&&(uo(ho,i).mount(e,uo(_o,i),{record:JSON.stringify({record:uo(Oo,i),containerId:i.containerId,metaData:uo(No,i)})}),tn(uo(_o,i),U,Date.now()))}),l(i,"unmount",function(){var e;(uo(ho,i).unmount(),i.resizeObserver)&&(null===(e=i.resizeObserver)||void 0===e||e.disconnect())}),l(i,"updateElementGroup",function(e){var t=ro(e),n=function(){uo(Io,i)&&(t={rows:[{elements:[lo({},t)]}]}),fo(Oo,i,er(uo(Oo,i),t)),fo(yo,i,tr(uo(Oo,i))),uo(Io,i)?uo(To,i).emit(ie+ht(uo(ho,i).name),{name:uo(ho,i).name,options:uo(yo,i)[0],isSingleElementAPI:!0}):(uo(yo,i).forEach(function(e){uo(To,i).emit(ie+ht(uo(ho,i).name),{name:e.elementName,options:e,isSingleElementAPI:!0})}),uo(To,i).emit(ie+ht(uo(ho,i).name),{name:uo(ho,i).name,options:uo(Oo,i),isSingleElementAPI:!1})),uo(ko,i).call(i)};uo(bo,i)?n():uo(Ao,i).push(n)}),po(i,xo,function(e){uo(Io,i)||uo(go,i).on(ie+ht(uo(ho,i).name),function(){e(uo(yo,i))},!0)}),l(i,"updateElement",function(e){uo(To,i).emit(ie+e.elementName,{name:e.elementName,options:e,isSingleElementAPI:!0})}),l(i,"update",function(e){fo(Do,i,!0),uo(bo,i)?(e.validations=nr(e.validations),i.updateElement(lo({elementName:uo(Oo,i).elementName},e)),fo(Do,i,!1)):uo(Do,i)&&uo(go,i).on("".concat(Ze.READY,":").concat(uo(_o,i)),function(){e.validations=nr(e.validations),i.updateElement(lo({elementName:uo(Oo,i).elementName},e)),fo(bo,i,!0),fo(Do,i,!1)})}),po(i,Mo,function(){uo(mo,i).forEach(function(e,t){if(0===t){uo(vo,i).isEmpty=e.isEmpty,uo(vo,i).isComplete=e.isComplete,uo(vo,i).isValid=e.isValid,uo(vo,i).isFocused=e.isFocused,uo(vo,i).isRequired=e.isRequired,uo(vo,i).value={},uo(vo,i).selectedCardScheme="";var n=uo(yo,i)[t].elementName,o=e.value&&function(e,t,n){if("string"!=typeof e)return e;if(t===Te.CARD_NUMBER){if(e=e&&e.replace(/[\s-]/g,""),!n){var o,r=rt(e),i=r!==he.DEFAULT&&r===he.AMEX?6:8;return e.length>i?e.replace(new RegExp(".(?=.{0,".concat((null===(o=e)||void 0===o?void 0:o.length)-i-1,"}$)"),"g"),"X"):e}return e}return n?e:void 0}(e.value,e.elementType,uo(So,i));uo(Io,i)?uo(vo,i).value=o:uo(vo,i).value[n]=o}else uo(vo,i).isEmpty=uo(vo,i).isEmpty||e.isEmpty,uo(vo,i).isComplete=uo(vo,i).isComplete&&e.isComplete,uo(vo,i).isValid=uo(vo,i).isValid&&e.isValid,uo(vo,i).isFocused=uo(vo,i).isFocused||e.isFocused,uo(vo,i).isRequired=uo(vo,i).isRequired||e.isRequired,uo(vo,i).selectedCardScheme=uo(vo,i).selectedCardScheme||e.selectedCardScheme,uo(vo,i).value||(uo(vo,i).value={}),uo(yo,i)[t].sensitive||(uo(vo,i).value[uo(yo,i)[t].elementName]=e.value||"")})}),l(i,"getState",function(){return{isEmpty:uo(vo,i).isEmpty,isComplete:uo(vo,i).isComplete,isValid:uo(vo,i).isValid,isFocused:uo(vo,i).isFocused,value:uo(vo,i).value,required:uo(vo,i).isRequired,selectedCardScheme:""}}),l(i,"getOptions",function(){var e=ro(uo(Oo,i));return uo(Io,i)?e=e.rows[0].elements[0]:e.rows.forEach(function(e){e.elements.forEach(function(e){delete e.elementName})}),delete e.elementName,e}),po(i,Po,function(e){uo(go,i).on(re,function(){var t=uo(yo,i).map(function(e){return e.elementName});uo(Io,i)||t.push(uo(ho,i).name),e(t)},!0)}),po(i,Co,function(){uo(To,i).on(ye,function(e){if(e.ready&&e.name===i.iframeName()){var t=uo(mo,i)[0],n=(t.name,function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(t,ao));uo(go,i)._emit(Q.READY,lo({},n))}}),uo(yo,i).forEach(function(e){uo(To,i).on(oe+e.elementName,function(e){if(uo(Io,i)&&e.event===Q.READY&&e.name===ht(uo(ho,i).name))uo(go,i)._emit(Q.READY);else{var t=uo(yo,i).length>1;uo(yo,i).forEach(function(n,o){var r;if(e.name===n.elementName){var a,c="";switch(e.event){case Q.FOCUS:c=Q.FOCUS;break;case Q.BLUR:c=Q.BLUR;break;case Q.CHANGE:c=Q.CHANGE;break;case Q.READY:c=Q.READY;break;case Q.SUBMIT:return void(null===(r=uo(Lo,i))||void 0===r||r._emit(Q.SUBMIT));default:throw new Ct(nt.INVALID_EVENT_TYPE,[],!0)}uo(mo,i)[o].isEmpty=e.value.isEmpty,uo(mo,i)[o].isValid=e.value.isValid,uo(mo,i)[o].isComplete=e.value.isComplete,uo(mo,i)[o].isFocused=e.value.isFocused,uo(mo,i)[o].isRequired=e.value.isRequired,uo(mo,i)[o].selectedCardScheme=(null==e||null===(a=e.value)||void 0===a?void 0:a.selectedCardScheme)||"",Object.prototype.hasOwnProperty.call(e.value,"value")?uo(mo,i)[o].value=e.value.value:uo(mo,i)[o].value=void 0,c=t?"".concat(c,":").concat(e.name):c,uo(To,i).emit(Q.HEIGHT+uo(ho,i).name,{},function(e){uo(ho,i).setIframeHeight(e.height)}),uo(Mo,i).call(i);var l=lo(lo({},uo(mo,i)[o]),{},{elementType:n.elementType});t&&uo(Lo,i)?uo(Lo,i)._emit(c,l):uo(go,i)._emit(c,l)}})}})})}),po(i,ko,function(){uo(Oo,i).rows.forEach(function(e){e.elements.forEach(function(e){e.elementType!==be.radio.name&&e.elementType!==be.checkbox.name&&(e.value=void 0)})}),fo(yo,i,tr(uo(Oo,i)))}),i.containerId=r.containerId,fo(_o,i,e),fo(Ro,i,u),fo(No,i,o),fo(Oo,i,er(n)),fo(yo,i,tr(n)),fo(Io,i,a),i.resizeObserver=null,d&&fo(Lo,i,d),fo(So,i,wt[uo(Ro,i).env].doesReturnValue),i.elementType=uo(Io,i)?uo(yo,i)[0].elementType:"group",en(o,e),fo(mo,i,[]),uo(yo,i).forEach(function(e){tn(uo(_o,i),P,e.elementType),uo(mo,i).push({isEmpty:!0,isComplete:!1,isValid:!e.required&&uo(vo,i).isEmpty,isFocused:!1,value:uo(So,i)?"":void 0,elementType:e.elementType,name:e.elementName,isRequired:e.required,selectedCardScheme:""})}),uo(yo,i)&&uo(yo,i).length&&uo(yo,i).length>1?tn(uo(_o,i),k,x.COMPOSE):tn(uo(_o,i),k,x.COLLECT),fo(ho,i,new an(uo(Oo,i).elementName,o,i.containerId,uo(Ro,i).logLevel)),uo(Co,i).call(i),uo(Po,i).call(i,c),uo(xo,i).call(i,p),xt(Mt(A.infoLogs.CREATED_ELEMENT,"Element",function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(":");if("group"===e[1])return"composable container";var t=atob(e[2]);return-1!==t.indexOf(":")&&(t=t.substring(0,t.indexOf(":"))),t}(uo(ho,i).name)),et.LOG,uo(Ro,i).logLevel),fo(wo,i,r.isMounted),r.type===Gi.COMPOSABLE&&uo(yo,i).forEach(function(e){uo(To,i).on(Q.MOUNTED+ht(e.elementName),function(t){t.name===e.elementName&&(tn(uo(_o,i),j,"".concat(e.elementType,"_").concat(V.MOUNTED)),e.isMounted=!0,fo(bo,i,!0),uo(To,i).emit(Q.HEIGHT+uo(ho,i).name,{},function(e){uo(ho,i).setIframeHeight(e.height)}))})}),uo(To,i).on(Q.MOUNTED+ht(uo(ho,i).name),function(e){e.name===uo(yo,i)[0].elementName&&(tn(uo(_o,i),F,Date.now()),tn(uo(_o,i),j,M.MOUNTED),uo(yo,i)[0].isMounted=!0,fo(bo,i,!0),uo(To,i).emit(Q.HEIGHT+uo(ho,i).name,{},function(e){uo(ho,i).setIframeHeight(e.height)}))}),i}return Ke(t,e),u(t,[{key:"on",value:function(e,t){if(!Object.values(Q).includes(e))throw new Ct(nt.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new Ct(nt.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new Ct(nt.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);uo(go,this).on(e,function(e){void 0===e.value&&(e.value=""),e.elementType!==Te.CARD_NUMBER&&delete e.selectedCardScheme,delete e.isComplete,delete e.name,t(e)}),e===Q.READY&&uo(To,this).emit(ye,{ready:uo(wo,this),name:this.iframeName()})}},{key:"iframeName",value:function(){return uo(ho,this).name}},{key:"isMounted",value:function(){return uo(bo,this)}},{key:"isUpdateCalled",value:function(){return uo(Do,this)}},{key:"isValidElement",value:function(){for(var e=0;e<uo(yo,this).length;e+=1){if(!Object.prototype.hasOwnProperty.call(uo(yo,this)[e],"table"))throw new Ct(nt.MISSING_TABLE_IN_COLLECT,[],!0);if(!uo(yo,this)[e].table)throw new Ct(nt.EMPTY_TABLE_IN_COLLECT,[],!0);if(!("string"==typeof uo(yo,this)[e].table||uo(yo,this)[e].table instanceof String))throw new Ct(nt.INVALID_TABLE_IN_COLLECT,[],!0);if(!Object.prototype.hasOwnProperty.call(uo(yo,this)[e],"column"))throw new Ct(nt.MISSING_COLUMN_IN_COLLECT,[],!0);if(!uo(yo,this)[e].column)throw new Ct(nt.EMPTY_COLUMN_IN_COLLECT,[],!0);if(!("string"==typeof uo(yo,this)[e].column||uo(yo,this)[e].column instanceof String))throw new Ct(nt.INVALID_COLUMN_IN_COLLECT,[],!0);if(void 0!==uo(yo,this)[e].skyflowID&&!uo(yo,this)[e].skyflowID)throw new Ct(nt.EMPTY_SKYFLOW_ID_COLLECT,[],!0)}return!0}},{key:"setErrorOverride",value:function(e){uo(To,this).emit(pe+ht(uo(ho,this).name),{name:ht(uo(ho,this).name),customErrorText:e})}},{key:"setError",value:function(e){uo(To,this).emit(se+ht(uo(ho,this).name),{name:ht(uo(ho,this).name),isTriggerError:!0,clientErrorText:e})}},{key:"resetError",value:function(){uo(To,this).emit(se+ht(uo(ho,this).name),{name:ht(uo(ho,this).name),isTriggerError:!1})}},{key:"setValue",value:function(e){uo(Ro,this).env!==Qe.PROD?uo(Io,this)&&uo(To,this).emit(ie+ht(uo(ho,this).name),{name:uo(ho,this).name,options:lo(lo({},uo(yo,this)[0]),{},{value:e},uo(Oo,this)),isSingleElementAPI:!0}):xt(Mt(A.warnLogs.UNABLE_TO_SET_VALUE_IN_PROD_ENV,uo(yo,this)[0].elementType),et.WARN,uo(Ro,this).logLevel)}},{key:"clearValue",value:function(){uo(Ro,this).env!==Qe.PROD?uo(Io,this)&&uo(To,this).emit(ie+ht(uo(ho,this).name),{name:uo(ho,this).name,options:lo(lo({},uo(yo,this)[0]),{},{value:""}),isSingleElementAPI:!0}):xt(Mt(A.warnLogs.UNABLE_TO_CLEAR_VALUE_IN_PROD_ENV,uo(yo,this)[0].elementType),et.WARN,uo(Ro,this).logLevel)}}])}(cn);const jo=Vo;function Uo(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Fo(e,t){return e.get(Go(e,t))}function Yo(e,t,n){return e.set(Go(e,t),n),n}function Go(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Bo=new WeakMap,Xo=new WeakMap,Wo=new WeakMap,Ko=new WeakMap,qo=new WeakMap;const zo=function(){return u(function e(t,n,o){var r=this;s(this,e),Uo(this,Bo,void 0),Uo(this,Xo,void 0),Uo(this,Wo,void 0),l(this,"type",Gi.COMPOSABLE),Uo(this,Ko,!1),Uo(this,qo,!1),l(this,"update",function(e){Yo(qo,r,!0),Fo(Ko,r)?(e.validations=nr(e.validations),Fo(Xo,r)._emit(Ee,{elementName:Fo(Bo,r),elementOptions:e}),Yo(qo,r,!1)):Fo(qo,r)&&Fo(Xo,r).on("".concat(Ze.READY,":").concat(Fo(Bo,r)),function(){e.validations=nr(e.validations),Fo(Xo,r)._emit(Ee,{elementName:Fo(Bo,r),elementOptions:e}),Yo(Ko,r,!0),Yo(qo,r,!1)})}),Yo(Bo,this,t),Yo(Wo,this,o),Yo(Xo,this,n),Fo(Xo,this).on("".concat(Ze.READY,":").concat(Fo(Bo,this)),function(){Yo(Ko,r,!0)})},[{key:"on",value:function(e,t){if(!Object.values(Q).includes(e))throw new Ct(nt.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new Ct(nt.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new Ct(nt.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);Fo(Xo,this).on("".concat(e,":").concat(Fo(Bo,this)),function(e){void 0===e.value&&(e.value=""),e.elementType!==Te.CARD_NUMBER&&delete e.selectedCardScheme,delete e.isComplete,delete e.name,t(e)})}},{key:"iframeName",value:function(){return Fo(Wo,this)}},{key:"getID",value:function(){return Fo(Bo,this)}}])}();function Ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ho(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ho(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function $o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zo(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("group"!==e&&!Object.prototype.hasOwnProperty.call(be,e))throw new Ct(nt.INVALID_ELEMENT_TYPE,[],!0);if(Object.prototype.hasOwnProperty.call(t,"validations")){if(!Array.isArray(t.validations))throw new Ct(nt.INVALID_VALIDATIONS_TYPE,[],!0);t.validations.forEach(function(e,t){if(!Object.prototype.hasOwnProperty.call(e,"type"))throw new Ct(nt.MISSING_VALIDATION_RULE_TYPE,["".concat(t)],!0);if(!Object.values(tt).includes(e.type))throw new Ct(nt.INVALID_VALIDATION_RULE_TYPE,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"params"))throw new Ct(nt.MISSING_VALIDATION_RULE_PARAMS,["".concat(t)],!0);if("object"!==a(e.params)||Array.isArray(e.params)||null===e.params)throw new Ct(nt.INVALID_VALIDATION_RULE_PARAMS,["".concat(t)],!0);if(e.type===tt.REGEX_MATCH_RULE){if(!Object.prototype.hasOwnProperty.call(e.params,"regex"))throw new Ct(nt.MISSING_REGEX_IN_REGEX_MATCH_RULE,["".concat(t)],!0)}else if(e.type===tt.LENGTH_MATCH_RULE&&!Object.prototype.hasOwnProperty.call(e.params,"min")&&!Object.prototype.hasOwnProperty.call(e.params,"max"))throw new Ct(nt.MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE,["".concat(t)],!0)})}if(Object.prototype.hasOwnProperty.call(n,"name")&&n.name!==t.name)throw new Error("Name attribute can't be updated");if((n=$o($o({},t),n)).mask||n.replacePattern){var o=be[e].attributes.type;"text"===o&&"textarea"===o&&"email"===o||(delete n.mask,delete n.replacePattern)}if(void 0===!n.mask&&!Array.isArray(n.mask))throw new Error("mask option has to be array or undefined");if(Array.isArray(n.mask)){var r=n.mask;if("string"!=typeof r[0]||r[1]&&"object"!==a(r[1]))throw new Error("mask array values has to be string")}if(Array.isArray(n.replacePattern)){var i=n.replacePattern;if("string"!=typeof i[0]||i[1]&&"string"!=typeof i[1])throw new Error("replacePatterns array values has to be string")}if((e===be.radio.name||e===be.checkbox.name)&&!n.value)throw new Error("Elements radio and checkbox requires value attribute");if(!(e!==be.dropdown.name||n.options&&Array.isArray(n.options)&&0!==n.options.length))throw new Error("Element dropdown requires options attribute with an array of objects containing value and text attributes")}function er(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(t=$o($o({},e),t)).rows.forEach(function(o,r){var i=o,c=e.rows[r];t.rows[r]=$o($o({},c),i),i.elements.forEach(function(e,t){var o,r,l=c.elements[t],s=e;if(s.elementType&&l.elementType!==s.elementType&&l.elementName&&l.elementName!==s.elementName)throw new Error(Mt(A.errorLogs.CANNOT_CHANGE_ELEMENT));Qo(l.elementType,l,s),i.elements[t]=$o($o($o({},l),s),{},{elementName:l.elementName});var p=s.classes||{},u=s.styles||{};u.base=$o($o({},De),u.base),s.classes=p,s.styles=u;var d=(null==s||null===(o=s.labelStyles)||void 0===o?void 0:o.classes)||{},f=(null==s||null===(r=s.labelStyles)||void 0===r?void 0:r.styles)||{};n&&function(e,t){Object.values(xe).forEach(function(n){if(e[n]||t[n])switch(n){case xe.BASE:t[n]=Jo({},t[n]);break;case xe.FOCUS:t[xe.BASE]=Jo(Jo({},t[xe.BASE]),{},{":focus":Jo({},t[xe.BASE]&&t[xe.BASE][":focus"])});break;case xe.WEBPACKAUTOFILL:t[xe.BASE]=Jo(Jo({},t[xe.BASE]),{},{":-webkit-autofill":Jo({},t[xe.BASE]&&t[xe.BASE][":-webkit-autofill"])});break;default:t[n]=Jo(Jo({},t[xe.BASE]),t[n])}}),Object.keys(t).forEach(function(e){var n=t[e][":-webkit-autofill"];"object"===a(n)&&Object.keys(n).forEach(function(e){n[e]&&!n[e].includes("!important")&&(n[e]="".concat(n[e]," !important"))})})}(d,f),s.labelStyles={labelClasses:d},s.labelStyles.styles=f})}),t}var tr=function(e){var t=e.rows,n=[];return t.forEach(function(e){e.elements.forEach(function(e){n.push(e)})}),n},nr=function(e){return e&&Array.isArray(e)&&0!==e.length?e.map(function(e,t){if(!e)return e;switch(e.type){case tt.ELEMENT_VALUE_MATCH_RULE:var n=e.params;if(!n||!Object.prototype.hasOwnProperty.call(n,"element"))throw new Ct(nt.MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE,["".concat(t)],!0);var o=n.element;if(!o||!(o instanceof jo||zo))throw new Ct(nt.INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE,["".concat(t)],!0);return $o($o({},e),{},{params:$o($o({},n),{},{elementID:o.getID(),element:o.iframeName()})});case tt.REGEX_MATCH_RULE:var r=e.params,i=(r||{}).regex;if(i&&!_t(i))throw new Ct(nt.INVALID_REGEX_IN_REGEX_MATCH_RULE,["".concat(t)],!0);if(i&&_t(i))return $o($o({},e),{},{params:$o($o({},r),{},{regex:i.toString()})});break;default:return e}return e}):e},or=function(e,t,n){var o,r,i,c=$o({required:!1},t);if(Object.prototype.hasOwnProperty.call(c,"format")||Object.prototype.hasOwnProperty.call(c,"translation"))if(je.includes(e))xt(Mt(A.warnLogs.INPUT_FORMATTING_NOT_SUPPROTED,e),et.WARN,n),null===(o=c)||void 0===o||delete o.format,null===(r=c)||void 0===r||delete r.translation;else if(e===be.INPUT_FIELD.name){var l,s;Ot(t),null===(l=c=$o($o({},c),{},{mask:[c.format,c.translation?c.translation:Ue]}))||void 0===l||delete l.format,null===(s=c)||void 0===s||delete s.translation}switch(e){case be.CARD_NUMBER.name:var p,u,d;Object.prototype.hasOwnProperty.call(c,"enableCardIcon")||(c=$o($o({},c),{},{enableCardIcon:!0}));var f=" ";if((null===(p=c)||void 0===p?void 0:p.format)===Re&&(f="-"),null===(u=c=$o($o({},c),{},{cardSeperator:f}))||void 0===u||delete u.format,null===(d=c)||void 0===d||delete d.translation,Object.prototype.hasOwnProperty.call(c,"cardMetadata")){if("object"!==a(c.cardMetadata)||"[object Object]"!==Object.prototype.toString.call(c.cardMetadata))throw new Ct(nt.INVALID_OPTION_CARD_METADATA,[],!0);if(Object.prototype.hasOwnProperty.call(c.cardMetadata,"scheme")&&("object"!==a(c.cardMetadata.scheme)||"[object Array]"!==Object.prototype.toString.call(c.cardMetadata.scheme)))throw new Ct(nt.INVALID_OPTION_CARD_SCHEME,[],!0)}break;case be.EXPIRATION_DATE.name:var E,_=!1;c.format&&((_=!!(i=c.format.toUpperCase())&&Ce.includes(i))||xt(Mt(A.warnLogs.INVALID_EXPIRATION_DATE_FORMAT,Ce.toString()),et.WARN,n)),null===(E=c=$o($o({},c),{},{format:_&&c.format?c.format.toUpperCase():Pe}))||void 0===E||delete E.translation;break;case be.EXPIRATION_YEAR.name:var I,m=!1;c.format&&(m=function(e){return!!e&&ke.includes(e)}(c.format.toUpperCase()),m||xt(Mt(A.warnLogs.INVALID_EXPIRATION_YEAR_FORMAT,ke.toString()),et.WARN,n)),null===(I=c=$o($o({},c),{},{format:m&&c.format?c.format.toUpperCase():"YY"}))||void 0===I||delete I.translation;break;case be.FILE_INPUT.name:Object.prototype.hasOwnProperty.call(c,"preserveFileName")||(c=$o($o({},c),{},{preserveFileName:!0}))}if(Object.prototype.hasOwnProperty.call(c,"enableCardIcon")&&!vt(c.enableCardIcon))throw new Ct(nt.INVALID_BOOLEAN_OPTIONS,["enableCardIcon"],!0);if(Object.prototype.hasOwnProperty.call(c,"enableCopy")&&!vt(c.enableCopy))throw new Ct(nt.INVALID_BOOLEAN_OPTIONS,["enableCopy"],!0);if(Object.prototype.hasOwnProperty.call(c,"required")&&!vt(c.required))throw new Ct(nt.INVALID_BOOLEAN_OPTIONS,["required"],!0);if(Object.prototype.hasOwnProperty.call(c,"preserveFileName")&&!vt(c.preserveFileName))throw new Ct(nt.INVALID_BOOLEAN_OPTIONS,["preserveFileName"],!0);if(e===be.FILE_INPUT.name){if(t.allowedFileType){if(!Array.isArray(t.allowedFileType))throw new Ct(nt.INVALID_ALLOWED_OPTIONS,[],!0);if(t.allowedFileType.length<=0)throw new Ct(nt.EMPTY_ALLOWED_OPTIONS_ARRAY,[],!0);if(!t.allowedFileType.every(function(e){return"string"==typeof e}))throw new Ct(nt.INVALID_ALLOWED_FILETYPE_ARRAY,[],!0)}if(Object.prototype.hasOwnProperty.call(t,"allowedFileType")&&(c=$o($o({},c),{},{allowedFileType:t.allowedFileType})),Object.prototype.hasOwnProperty.call(t,"blockEmptyFiles")&&!vt(t.blockEmptyFiles))throw new Ct(nt.INVALID_BOOLEAN_OPTIONS,["blockEmptyFiles"],!0);Object.prototype.hasOwnProperty.call(t,"blockEmptyFiles")&&(c=$o($o({},c),{},{blockEmptyFiles:c.blockEmptyFiles}))}if(Object.prototype.hasOwnProperty.call(t,"masking")){if(!vt(t.masking))throw new Ct(nt.INVALID_BOOLEAN_OPTIONS,["masking"],!0);if(Object.prototype.hasOwnProperty.call(t,"maskingChar")&&"string"==typeof t.maskingChar&&t.maskingChar.length>1)throw new Ct(nt.INVALID_MASKING_CHARACTER,[],!0);c=Object.prototype.hasOwnProperty.call(t,"maskingChar")&&"string"==typeof t.maskingChar?$o($o({},c),{},{masking:t.masking,maskingChar:t.maskingChar}):$o($o({},c),{},{masking:t.masking,maskingChar:"*"})}return c};function rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function ir(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rr(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ar(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ar=function(){return!!e})()}function cr(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function lr(e,t){return e.get(pr(e,t))}function sr(e,t,n){return e.set(pr(e,t),n),n}function pr(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var ur="CollectContainer",dr=new WeakMap,fr=new WeakMap,Er=new WeakMap,_r=new WeakMap,Ir=new WeakMap,mr=new WeakMap,yr=new WeakMap,vr=new WeakMap,Or=new WeakMap,Nr=new WeakMap,gr=new WeakMap,Lr=new WeakMap,Tr=new WeakMap,hr=new WeakMap,Ar=new WeakMap,br=new WeakMap,Rr=new WeakMap,Sr=new WeakMap,wr=function(e){function t(e,n,o,r){var i,a;s(this,t),a=function(e,t,n){return t=Xe(t),Be(e,ar()?Reflect.construct(t,n||[],Xe(e).constructor):t.apply(e,n))}(this,t),cr(a,dr,void 0),cr(a,fr,{}),cr(a,Er,void 0),cr(a,_r,void 0),cr(a,Ir,void 0),l(a,"type",Gi.COLLECT),cr(a,mr,void 0),cr(a,yr,!1),cr(a,vr,!1),l(a,"create",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{required:!1};mt(e,lr(_r,a).logLevel);var n=nr(e.validations),o=or(e.type,t,lr(_r,a).logLevel),r={rows:[{elements:[ir(ir(ir({elementType:e.type,name:e.column,accept:t.allowedFileType},e),o),{},{validations:n})]}]};return lr(Or,a).call(a,r,!0)}),cr(a,Or,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],o=ro(e);if(o.rows.forEach(function(e){e.elements.forEach(function(e){var t=e,o=t.elementType;Qo(o,t),t.sensitive=t.sensitive||be[o].sensitive,t.replacePattern=t.replacePattern||be[o].replacePattern,t.mask=t.mask||be[o].mask,t.isMounted=!1,t.elementType!==be.radio.name&&t.elementType!==be.checkbox.name||(t.elementName="".concat(t.elementName,":").concat(btoa(t.value))),t.elementName="".concat(D,":").concat(t.elementType,":").concat(btoa(E())),t.label=e.label,t.skyflowID=e.skyflowID,n.push(t)})}),o.elementName=t?n[0].elementName:"".concat(D,":group:").concat(btoa(o.name)),t&&!lr(fr,a)[n[0].elementName]&&lr(Tr,a).call(a,n[0].name))throw new Ct(nt.UNIQUE_ELEMENT_NAME,["".concat(n[0].name)],!0);var r=lr(fr,a)[o.elementName];if(r)t?r.updateElementGroup(n[0]):r.updateElementGroup(o);else{var i=E();r=new jo(i,o,lr(Er,a),{containerId:lr(dr,a),isMounted:lr(yr,a),type:a.type},t,lr(gr,a),lr(Lr,a),lr(_r,a),lr(mr,a)),lr(fr,a)[o.elementName]=r,lr(Ir,a)[i]=r}return t||n.forEach(function(e){var t=e.elementName;lr(fr,a)[t]?lr(fr,a)[t].updateElementGroup(e):lr(fr,a)[t]=a.create(e.elementType,e)}),r}),cr(a,Nr,function(e){Object.keys(lr(fr,a)).forEach(function(t){t===e&&delete lr(fr,a)[t]})}),cr(a,gr,function(e){e.forEach(function(e){lr(Nr,a).call(a,e)})}),cr(a,Lr,function(e){e.forEach(function(e){lr(fr,a)[e.elementName]&&lr(fr,a)[e.elementName].updateElementGroup(e)})}),cr(a,Tr,function(e){for(var t=Object.keys(lr(fr,a)),n=0;n<t.length;n+=1)if(atob(t[n].split(":")[2])===e)return!0;return!1}),l(a,"collect",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tokens:!0};return sr(vr,a,lr(Er,a).skyflowContainer.isControllerFrameReady),lr(vr,a)?new Promise(function(t,n){try{if(It(lr(Er,a).clientJSON.config),0===Object.keys(lr(fr,a)).length)throw new Ct(nt.NO_ELEMENTS_IN_COLLECT,[],!0);lr(hr,a).call(a);var o=Object.values(lr(fr,a)),r=Object.keys(lr(fr,a)).map(function(e){return{frameId:e,elementId:e}});if(o.forEach(function(e){if(!e.isMounted())throw new Ct(nt.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()}),Object.prototype.hasOwnProperty.call(e,"tokens")&&!vt(e.tokens))throw new Ct(nt.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&ct(e.additionalFields),null!=e&&e.upsert&&yt(null==e?void 0:e.upsert),f().emit(ee+lr(Er,a).uuid,ir(ir({type:H},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:r,containerId:lr(dr,a)}),function(e){!e||null!=e&&e.error?(xt("".concat(JSON.stringify(null==e?void 0:e.error)),et.ERROR,lr(_r,a).logLevel),n(null==e?void 0:e.error)):(xt(Mt(A.infoLogs.COLLECT_SUBMIT_SUCCESS,ur),et.LOG,lr(_r,a).logLevel),t(e))}),xt(Mt(A.infoLogs.EMIT_EVENT,ur,ne),et.LOG,lr(_r,a).logLevel)}catch(e){xt("".concat(e.message),et.ERROR,lr(_r,a).logLevel),n(e)}}):new Promise(function(t,n){try{if(It(lr(Er,a).clientJSON.config),0===Object.keys(lr(fr,a)).length)throw new Ct(nt.NO_ELEMENTS_IN_COLLECT,[],!0);lr(hr,a).call(a);var o=Object.values(lr(fr,a)),r=Object.keys(lr(fr,a)).map(function(e){return{frameId:e,elementId:e}});if(o.forEach(function(e){if(!e.isMounted())throw new Ct(nt.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()}),Object.prototype.hasOwnProperty.call(e,"tokens")&&!vt(e.tokens))throw new Ct(nt.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&ct(e.additionalFields),null!=e&&e.upsert&&yt(null==e?void 0:e.upsert),f().target(Nt.IFRAME_SECURE_ORIGIN).on(me+lr(dr,a),function(){f().emit(ee+lr(Er,a).uuid,ir(ir({type:H},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:r,containerId:lr(dr,a)}),function(e){!e||null!=e&&e.error?(xt("".concat(JSON.stringify(null==e?void 0:e.error)),et.ERROR,lr(_r,a).logLevel),n(null==e?void 0:e.error)):(xt(Mt(A.infoLogs.COLLECT_SUBMIT_SUCCESS,ur),et.LOG,lr(_r,a).logLevel),t(e))})})}catch(e){xt("".concat(e.message),et.ERROR,lr(_r,a).logLevel),n(e)}})}),l(a,"uploadFiles",function(e){return sr(vr,a,lr(Er,a).skyflowContainer.isControllerFrameReady),lr(vr,a)?new Promise(function(t,n){try{if(It(lr(Er,a).clientJSON.config),0===Object.keys(lr(fr,a)).length)throw new Ct(nt.NO_ELEMENTS_IN_COLLECT,[],!0);lr(hr,a).call(a);var o=Object.values(lr(fr,a)),r=Object.keys(lr(fr,a));o.forEach(function(e){if(!e.isMounted())throw new Ct(nt.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()}),f().emit(ee+lr(Er,a).uuid,ir(ir({type:J},e),{},{elementIds:r,containerId:lr(dr,a)}),function(e){!e||null!=e&&e.error?(xt("".concat(JSON.stringify(null==e?void 0:e.error)),et.ERROR,lr(_r,a).logLevel),n(null==e?void 0:e.error)):(xt(Mt(A.infoLogs.COLLECT_SUBMIT_SUCCESS,ur),et.LOG,lr(_r,a).logLevel),t(e))}),xt(Mt(A.infoLogs.EMIT_EVENT,ur,fe),et.LOG,lr(_r,a).logLevel)}catch(e){xt("".concat(e.message),et.ERROR,lr(_r,a).logLevel),n(e)}}):new Promise(function(t,n){f().target(Nt.IFRAME_SECURE_ORIGIN).on(me+lr(dr,a),function(){try{if(It(lr(Er,a).clientJSON.config),0===Object.keys(lr(fr,a)).length)throw new Ct(nt.NO_ELEMENTS_IN_COLLECT,[],!0);lr(hr,a).call(a);var o=Object.values(lr(fr,a)),r=Object.keys(lr(fr,a));o.forEach(function(e){if(!e.isMounted())throw new Ct(nt.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()}),f().emit(ee+lr(Er,a).uuid,ir(ir({type:J},e),{},{elementIds:r,containerId:lr(dr,a)}),function(e){!e||null!=e&&e.error?(xt("".concat(JSON.stringify(null==e?void 0:e.error)),et.ERROR,lr(_r,a).logLevel),n(null==e?void 0:e.error)):(xt(Mt(A.infoLogs.COLLECT_SUBMIT_SUCCESS,ur),et.LOG,lr(_r,a).logLevel),t(e))}),xt(Mt(A.infoLogs.EMIT_EVENT,ur,fe),et.LOG,lr(_r,a).logLevel)}catch(e){xt("".concat(e.message),et.ERROR,lr(_r,a).logLevel),n(e)}})})}),cr(a,hr,function(){try{if(lr(Ar,a).call(a))return;var e=lr(br,a).call(a);if(!e.length)return;lr(Rr,a).call(a,e)}catch(e){xt("".concat(e),et.LOG,lr(_r,a).logLevel)}}),cr(a,Ar,function(){return 0===Object.keys(lr(fr,a)).length}),cr(a,br,function(){var e,t=null===(e=document)||void 0===e?void 0:e.body;if(!t)return[];var n=t.getElementsByTagName("iframe");return null!=n&&n.length?Array.from(n).map(function(e){return e.id}):[]}),cr(a,Rr,function(e){Object.entries(lr(fr,a)).forEach(function(t){var n=ot(t,2),o=n[0],r=n[1];lr(Sr,a).call(a,r,e)&&delete lr(fr,a)[o]})}),cr(a,Sr,function(e,t){return e.isMounted()&&!t.includes(e.iframeName())}),sr(vr,a,e.skyflowContainer.isControllerFrameReady),sr(dr,a,E()),sr(Er,a,ir(ir({},e),{},{clientJSON:ir(ir({},e.clientJSON),{},{config:ir(ir({},e.clientJSON.config),{},{options:ir(ir({},null===(i=e.clientJSON.config)||void 0===i?void 0:i.options),r)})})})),sr(Ir,a,n),sr(_r,a,o),sr(mr,a,new Gt);var c=lr(Er,a).clientDomain||"",p=qt({name:"".concat(w,":").concat(lr(dr,a),":").concat(lr(_r,a).logLevel,":").concat(btoa(c)),referrer:c});return Kt(p,{src:zt()}),Ht(p,ir({},we)),xt(Mt(A.infoLogs.CREATE_COLLECT_CONTAINER,ur),et.LOG,lr(_r,a).logLevel),sr(yr,a,!0),a}return Ke(t,e),u(t)}(Jt);const Dr=wr;function xr(e){this.message=e}xr.prototype=new Error,xr.prototype.name="InvalidCharacterError";var Mr="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new xr("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,r=0,i=0,a="";o=t.charAt(i++);~o&&(n=r%4?64*n+o:o,r++%4)?a+=String.fromCharCode(255&n>>(-2*r&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return a};function Pr(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(Mr(e).replace(/(.)/g,function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(t)}catch(e){return Mr(t)}}function Cr(e){this.message=e}Cr.prototype=new Error,Cr.prototype.name="InvalidTokenError";const kr=function(e,t){if("string"!=typeof e)throw new Cr("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Pr(e.split(".")[n]))}catch(e){throw new Cr("Invalid token specified: "+e.message)}};const Vr=function(e){try{if(!e)return!1;if(i=e,"[object String]"!==Object.prototype.toString.call(i))return!1;var t=!1,n=kr(e),o=(new Date).getTime()/1e3,r=n.exp;return r&&o>r&&(t=!0),!t}catch(e){return!1}var i};function jr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jr(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fr(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Yr(e,t){return e.get(Br(e,t))}function Gr(e,t,n){return e.set(Br(e,t),n),n}function Br(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Xr="SkyflowContainer",Wr=new WeakMap,Kr=new WeakMap,qr=new WeakMap,zr=function(){return u(function e(t,n){var o,r,i=this;s(this,e),Fr(this,Wr,void 0),Fr(this,Kr,void 0),l(this,"isControllerFrameReady",!1),Fr(this,qr,void 0),Gr(Kr,this,t),Gr(Wr,this,(null===(o=Yr(Kr,this).toJSON())||void 0===o||null===(o=o.metaData)||void 0===o?void 0:o.uuid)||""),Gr(qr,this,n);var a=window.location.origin||"",c=qt({name:"".concat("skyflow_controller",":").concat(Yr(Wr,this),":").concat(btoa(a),":").concat(!(null===(r=Yr(Kr,this).toJSON())||void 0===r||null===(r=r.config)||void 0===r||null===(r=r.options)||void 0===r||!r.trackingKey)),referrer:a});Kt(c,{src:zt()}),Ht(c,Ur({},we)),document.body.append(c),f().target(Nt.IFRAME_SECURE_ORIGIN).on(ce+Yr(Wr,this),function(e,t){xt(Mt(A.infoLogs.CAPTURE_PUREJS_FRAME,Xr),et.LOG,Yr(qr,i).logLevel),t({client:Yr(Kr,i),context:n}),i.isControllerFrameReady=!0}),xt(Mt(A.infoLogs.PUREJS_CONTROLLER_INITIALIZED,Xr),et.LOG,Yr(qr,this).logLevel)},[{key:"detokenize",value:function(e){var t=this;return this.isControllerFrameReady?new Promise(function(n,o){try{It(Yr(Kr,t).config),xt(Mt(A.infoLogs.VALIDATE_DETOKENIZE_INPUT,Xr),et.LOG,Yr(qr,t).logLevel),lt(e),f().emit(ae+Yr(Wr,t),{type:X,records:e.records},function(e){e.error?o(e.error):n(e)}),xt(Mt(A.infoLogs.EMIT_PURE_JS_REQUEST,Xr,X),et.LOG,Yr(qr,t).logLevel)}catch(e){xt(e.message,et.ERROR,Yr(qr,t).logLevel),o(e)}}):new Promise(function(n,o){try{It(Yr(Kr,t).config),xt(Mt(A.infoLogs.VALIDATE_DETOKENIZE_INPUT,Xr),et.LOG,Yr(qr,t).logLevel),lt(e),f().target(Nt.IFRAME_SECURE_ORIGIN).on(ce+Yr(Wr,t),function(){f().emit(ae+Yr(Wr,t),{type:X,records:e.records},function(e){e.error?o(e.error):n(e)})}),xt(Mt(A.infoLogs.EMIT_PURE_JS_REQUEST,Xr,X),et.LOG,Yr(qr,t).logLevel)}catch(e){xt(e.message,et.ERROR,Yr(qr,t).logLevel),o(e)}})}},{key:"insert",value:function(e,t){var n=this;return this.isControllerFrameReady?new Promise(function(o,r){It(Yr(Kr,n).config);try{var i,a;if(xt(Mt(A.infoLogs.VALIDATE_RECORDS,Xr),et.LOG,Yr(qr,n).logLevel),t)t=Ur(Ur({},t),{},{tokens:void 0===(null===(a=t)||void 0===a?void 0:a.tokens)||t.tokens});else t={tokens:!0};null!==(i=t)&&void 0!==i&&i.upsert&&yt(t.upsert),it(e,t),f().emit(ae+Yr(Wr,n),{type:B,records:e,options:t},function(e){e.error?(xt("".concat(JSON.stringify(e.error)),et.ERROR,Yr(qr,n).logLevel),r(e.error)):o(e)}),xt(Mt(A.infoLogs.EMIT_PURE_JS_REQUEST,Xr,B),et.LOG,Yr(qr,n).logLevel)}catch(e){xt(e.message,et.ERROR,Yr(qr,n).logLevel),r(e)}}):new Promise(function(o,r){try{var i,a;if(It(Yr(Kr,n).config),xt(Mt(A.infoLogs.VALIDATE_RECORDS,Xr),et.LOG,Yr(qr,n).logLevel),t)t=Ur(Ur({},t),{},{tokens:void 0===(null===(a=t)||void 0===a?void 0:a.tokens)||t.tokens});else t={tokens:!0};null!==(i=t)&&void 0!==i&&i.upsert&&yt(t.upsert),it(e,t),f().target(Nt.IFRAME_SECURE_ORIGIN).on(ce+Yr(Wr,n),function(){f().emit(ae+Yr(Wr,n),{type:B,records:e,options:t},function(e){e.error?(xt("".concat(JSON.stringify(e.error)),et.ERROR,Yr(qr,n).logLevel),r(e.error)):o(e)})}),xt(Mt(A.infoLogs.EMIT_PURE_JS_REQUEST,Xr,B),et.LOG,Yr(qr,n).logLevel)}catch(e){xt(e.message,et.ERROR,Yr(qr,n).logLevel),r(e)}})}},{key:"update",value:function(e,t){var n=this;return this.isControllerFrameReady?new Promise(function(o,r){It(Yr(Kr,n).config);try{xt(Mt(A.infoLogs.VALIDATE_RECORDS,Xr),et.LOG,Yr(qr,n).logLevel),at(e,t),f().emit(ae+Yr(Wr,n),{type:z,record:e,options:t},function(e){e.error?(xt("".concat(JSON.stringify(e.error)),et.ERROR,Yr(qr,n).logLevel),r(e.error)):o(e)}),xt(Mt(A.infoLogs.EMIT_PURE_JS_REQUEST,Xr,z),et.LOG,Yr(qr,n).logLevel)}catch(e){xt(e.message,et.ERROR,Yr(qr,n).logLevel),r(e)}}):new Promise(function(o,r){try{It(Yr(Kr,n).config),xt(Mt(A.infoLogs.VALIDATE_RECORDS,Xr),et.LOG,Yr(qr,n).logLevel),at(e,t),f().target(Nt.IFRAME_SECURE_ORIGIN).on(ce+Yr(Wr,n),function(){f().emit(ae+Yr(Wr,n),{type:z,record:e,options:t},function(e){e.error?(xt("".concat(JSON.stringify(e.error)),et.ERROR,Yr(qr,n).logLevel),r(e.error)):o(e)})}),xt(Mt(A.infoLogs.EMIT_PURE_JS_REQUEST,Xr,z),et.LOG,Yr(qr,n).logLevel)}catch(e){xt(e.message,et.ERROR,Yr(qr,n).logLevel),r(e)}})}},{key:"getById",value:function(e){var t=this;return this.isControllerFrameReady?new Promise(function(n,o){It(Yr(Kr,t).config);try{xt(Mt(A.infoLogs.VALIDATE_GET_BY_ID_INPUT,Xr),et.LOG,Yr(qr,t).logLevel),pt(e),f().emit(ae+Yr(Wr,t),{type:W,records:e.records},function(e){e.error?o(e.error):n(e)}),xt(Mt(A.infoLogs.EMIT_PURE_JS_REQUEST,Xr,W),et.LOG,Yr(qr,t).logLevel)}catch(e){xt(e.message,et.ERROR,Yr(qr,t).logLevel),o(e)}}):new Promise(function(n,o){try{It(Yr(Kr,t).config),xt(Mt(A.infoLogs.VALIDATE_GET_BY_ID_INPUT,Xr),et.LOG,Yr(qr,t).logLevel),pt(e),f().target(Nt.IFRAME_SECURE_ORIGIN).on(ce+Yr(Wr,t),function(){f().emit(ae+Yr(Wr,t),{type:W,records:e.records},function(e){e.error?o(e.error):n(e)})}),xt(Mt(A.infoLogs.EMIT_PURE_JS_REQUEST,Xr,W),et.LOG,Yr(qr,t).logLevel)}catch(e){xt(e.message,et.ERROR,Yr(qr,t).logLevel),o(e)}})}},{key:"get",value:function(e,t){var n=this;return this.isControllerFrameReady?new Promise(function(o,r){It(Yr(Kr,n).config);try{xt(Mt(A.infoLogs.VALIDATE_GET_INPUT,Xr),et.LOG,Yr(qr,n).logLevel),st(e,t),f().emit(ae+Yr(Wr,n),{type:K,records:e.records,options:t},function(e){e.error?r(e.error):o(e)}),xt(Mt(A.infoLogs.EMIT_PURE_JS_REQUEST,Xr,K),et.LOG,Yr(qr,n).logLevel)}catch(e){xt(e.message,et.ERROR,Yr(qr,n).logLevel),r(e)}}):new Promise(function(o,r){try{It(Yr(Kr,n).config),xt(Mt(A.infoLogs.VALIDATE_GET_INPUT,Xr),et.LOG,Yr(qr,n).logLevel),st(e,t),f().target(Nt.IFRAME_SECURE_ORIGIN).on(ce+Yr(Wr,n),function(){f().emit(ae+Yr(Wr,n),{type:K,records:e.records,options:t},function(e){e.error?r(e.error):o(e)})}),xt(Mt(A.infoLogs.EMIT_PURE_JS_REQUEST,Xr,K),et.LOG,Yr(qr,n).logLevel)}catch(e){xt(e.message,et.ERROR,Yr(qr,n).logLevel),r(e)}})}},{key:"delete",value:function(e,t){var n=this;return this.isControllerFrameReady?new Promise(function(o,r){It(Yr(Kr,n).config);try{xt(Mt(A.infoLogs.VALIDATE_DELETE_INPUT,Xr),et.LOG,Yr(qr,n).logLevel),ut(e),f().emit(ae+Yr(Wr,n),{type:q,records:e,options:t},function(e){e.error?(xt("".concat(JSON.stringify(e.error)),et.ERROR,Yr(qr,n).logLevel),r(e.error)):o(e)}),xt(Mt(A.infoLogs.EMIT_PURE_JS_REQUEST,Xr,q),et.LOG,Yr(qr,n).logLevel)}catch(e){xt(e.message,et.ERROR,Yr(qr,n).logLevel),r(e)}}):new Promise(function(o,r){try{It(Yr(Kr,n).config),xt(Mt(A.infoLogs.VALIDATE_RECORDS,Xr),et.LOG,Yr(qr,n).logLevel),ut(e),f().target(Nt.IFRAME_SECURE_ORIGIN).on(ce+Yr(Wr,n),function(){f().emit(ae+Yr(Wr,n),{type:q,records:e,options:t},function(e){e.error?(xt("".concat(JSON.stringify(e.error)),et.ERROR,Yr(qr,n).logLevel),r(e.error)):o(e)})}),xt(Mt(A.infoLogs.EMIT_PURE_JS_REQUEST,Xr,q),et.LOG,Yr(qr,n).logLevel)}catch(e){xt(e.message,et.ERROR,Yr(qr,n).logLevel),r(e)}})}}])}();const Hr=zr;var Jr=n(6119),Zr=n.n(Jr);function $r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Qr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$r(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ei(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ei=function(){return!!e})()}function ti(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function ni(e,t){return e.get(ri(e,t))}function oi(e,t,n){return e.set(ri(e,t),n),n}function ri(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var ii="CollectContainer",ai=new WeakMap,ci=new WeakMap,li=new WeakMap,si=new WeakMap,pi=new WeakMap,ui=new WeakMap,di=new WeakMap,fi=new WeakMap,Ei=new WeakMap,_i=new WeakMap,Ii=new WeakMap,mi=new WeakMap,yi=new WeakMap,vi=new WeakMap,Oi=new WeakMap,Ni=new WeakMap,gi=new WeakMap,Li=new WeakMap,Ti=new WeakMap,hi=new WeakMap,Ai=new WeakMap,bi=function(e){function t(e,n,o,r){var i,a;s(this,t),a=function(e,t,n){return t=Xe(t),Be(e,ei()?Reflect.construct(t,n||[],Xe(e).constructor):t.apply(e,n))}(this,t),ti(a,ai,void 0),ti(a,ci,{}),ti(a,li,void 0),ti(a,si,{rows:[],styles:{},errorTextStyles:{}}),ti(a,pi,[]),ti(a,ui,void 0),ti(a,di,void 0),ti(a,fi,void 0),ti(a,Ei,!1),ti(a,_i,void 0),ti(a,Ii,void 0),l(a,"type",Gi.COMPOSABLE),ti(a,mi,!1),ti(a,yi,{}),ti(a,vi,""),ti(a,Oi,!1),l(a,"create",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{required:!1};mt(e,ni(ui,a).logLevel);var n=nr(e.validations),o=or(e.type,t,ni(ui,a).logLevel),r="".concat(D,":").concat(e.type,":").concat(btoa(E()));ni(pi,a).push(Qr(Qr(Qr({elementType:e.type,name:e.column},e),o),{},{validations:n,elementName:r}));var i="".concat(D,":group:").concat(btoa(ni(yi,a)),":").concat(ni(ai,a),":").concat(ni(ui,a).logLevel,":").concat(btoa(ni(vi,a)));return new zo(r,ni(fi,a),i)}),ti(a,Ni,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];if(oi(yi,a,ro(e)),ni(yi,a).rows.forEach(function(e){e.elements.forEach(function(e){var t=e,o=t.elementType;Qo(o,t),t.sensitive=t.sensitive||be[o].sensitive,t.replacePattern=t.replacePattern||be[o].replacePattern,t.mask=t.mask||be[o].mask,t.isMounted=!1,t.label=e.label,t.skyflowID=e.skyflowID,n.push(t)})}),ni(yi,a).elementName=t?n[0].elementName:"".concat(D,":group:").concat(btoa(ni(yi,a))),t&&!ni(ci,a)[n[0].elementName]&&ni(hi,a).call(a,n[0].name))throw new Ct(nt.UNIQUE_ELEMENT_NAME,["".concat(n[0].name)],!0);var o=ni(ci,a)[ni(yi,a).elementName];if(o)t?o.update(n[0]):o.update(ni(yi,a));else{var r=E();o=new jo(r,ni(yi,a),ni(li,a),{containerId:ni(ai,a),isMounted:ni(mi,a),type:a.type},!0,ni(Li,a),ni(Ti,a),ni(ui,a),ni(fi,a)),ni(ci,a)[ni(yi,a).elementName]=o,ni(di,a)[r]=o}return o}),ti(a,gi,function(e){Object.keys(ni(ci,a)).forEach(function(t){t===e&&delete ni(ci,a)[t]})}),ti(a,Li,function(e){e.forEach(function(e){ni(gi,a).call(a,e)})}),ti(a,Ti,function(e){e.forEach(function(e){ni(ci,a)[e.elementName]&&ni(ci,a)[e.elementName].update(e)})}),ti(a,hi,function(e){for(var t=Object.keys(ni(ci,a)),n=0;n<t.length;n+=1)if(atob(t[n].split(":")[2])===e)return!0;return!1}),l(a,"on",function(e,t){if(!Object.values(Q).includes(e))throw new Ct(nt.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new Ct(nt.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new Ct(nt.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);ni(fi,a).on(Q.SUBMIT,function(){t()})}),l(a,"mount",function(e){if(!e)throw new Ct(nt.EMPTY_ELEMENT_IN_MOUNT,["CollectElement"],!0);var t=ni(_i,a).layout;if(Zr()(t)!==ni(pi,a).length)throw new Ct(nt.MISMATCH_ELEMENT_COUNT_LAYOUT_SUM,[],!0);var n=0;t.forEach(function(e,t){ni(si,a).rows=[].concat(Ge(ni(si,a).rows),[{elements:[]}]);for(var o=0;o<e;o++)ni(si,a).rows[t].elements.push(ni(pi,a)[n]),n++}),ni(_i,a).styles&&(ni(si,a).styles=Qr({},ni(_i,a).styles)),ni(_i,a).errorTextStyles&&(ni(si,a).errorTextStyles=Qr({},ni(_i,a).errorTextStyles)),ni(mi,a)&&(oi(Ii,a,ni(Ni,a).call(a,ni(si,a),!1)),ni(Ii,a).mount(e),oi(Ei,a,!0))}),l(a,"unmount",function(){ni(Ii,a).unmount()}),l(a,"collect",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tokens:!0};return oi(Oi,a,ni(li,a).skyflowContainer.isControllerFrameReady),ni(Oi,a)?new Promise(function(t,n){try{if(It(ni(li,a).clientJSON.config),!ni(pi,a)||0===ni(pi,a).length)throw new Ct(nt.NO_ELEMENTS_IN_COMPOSABLE,[],!0);if(!ni(Ei,a))throw new Ct(nt.COMPOSABLE_CONTAINER_NOT_MOUNTED,[],!0);tr(ni(yi,a)).forEach(function(e){if(null==e||!e.isMounted)throw new Ct(nt.ELEMENTS_NOT_MOUNTED,[],!0)});var o=[];if(Object.values(ni(ci,a)).forEach(function(e){e.isValidElement()}),e&&e.tokens&&"boolean"!=typeof e.tokens)throw new Ct(nt.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&ct(e.additionalFields),null!=e&&e.upsert&&yt(null==e?void 0:e.upsert),ni(pi,a).forEach(function(e){o.push({frameId:ni(yi,a).elementName,elementId:e.elementName||""})}),f().emit(ee+ni(li,a).uuid,Qr(Qr({type:H},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:o,containerId:ni(ai,a)}),function(e){!e||null!=e&&e.error?(xt("".concat(JSON.stringify(null==e?void 0:e.error)),et.ERROR,ni(ui,a).logLevel),n(null==e?void 0:e.error)):(xt(Mt(A.infoLogs.COLLECT_SUBMIT_SUCCESS,ii),et.LOG,ni(ui,a).logLevel),t(e))}),xt(Mt(A.infoLogs.EMIT_EVENT,ii,ne),et.LOG,ni(ui,a).logLevel)}catch(e){xt("".concat(e.message),et.ERROR,ni(ui,a).logLevel),n(e)}}):new Promise(function(t,n){try{if(It(ni(li,a).clientJSON.config),!ni(pi,a)||0===ni(pi,a).length)throw new Ct(nt.NO_ELEMENTS_IN_COMPOSABLE,[],!0);if(!ni(Ei,a))throw new Ct(nt.COMPOSABLE_CONTAINER_NOT_MOUNTED,[],!0);tr(ni(yi,a)).forEach(function(e){if(null==e||!e.isMounted)throw new Ct(nt.ELEMENTS_NOT_MOUNTED,[],!0)});var o=[];if(Object.values(ni(ci,a)).forEach(function(e){e.isValidElement()}),e&&e.tokens&&"boolean"!=typeof e.tokens)throw new Ct(nt.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&ct(e.additionalFields),null!=e&&e.upsert&&yt(null==e?void 0:e.upsert),ni(pi,a).forEach(function(e){o.push({frameId:ni(yi,a).elementName,elementId:e.elementName||""})}),f().target(Nt.IFRAME_SECURE_ORIGIN).on(me+ni(ai,a),function(){f().emit(ee+ni(li,a).uuid,Qr(Qr({type:H},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:o,containerId:ni(ai,a)}),function(e){!e||null!=e&&e.error?(xt("".concat(JSON.stringify(null==e?void 0:e.error)),et.ERROR,ni(ui,a).logLevel),n(null==e?void 0:e.error)):(xt(Mt(A.infoLogs.COLLECT_SUBMIT_SUCCESS,ii),et.LOG,ni(ui,a).logLevel),t(e))})}),xt(Mt(A.infoLogs.EMIT_EVENT,ii,ne),et.LOG,ni(ui,a).logLevel)}catch(e){xt("".concat(e.message),et.ERROR,ni(ui,a).logLevel),n(e)}})}),ti(a,Ai,function(){ni(fi,a).on(Ee,function(e){var t,n=ni(pi,a).map(function(n,o){return n.elementName===e.elementName?(t=o,Qr({elementName:n.elementName},e.elementOptions)):n});ni(Ii,a)&&ni(Ii,a).updateElement(Qr({},n[t]))})}),oi(ai,a,E()),oi(li,a,Qr(Qr({},e),{},{clientJSON:Qr(Qr({},e.clientJSON),{},{config:Qr(Qr({},e.clientJSON.config),{},{options:Qr(Qr({},null===(i=e.clientJSON.config)||void 0===i?void 0:i.options),r)})})})),oi(Oi,a,e.skyflowContainer.isControllerFrameReady),oi(di,a,n),oi(ui,a,o),oi(_i,a,r),oi(fi,a,new Gt),oi(vi,a,ni(li,a).clientDomain||"");var c=qt({name:"".concat(w,":").concat(ni(ai,a),":").concat(ni(ui,a).logLevel,":").concat(btoa(ni(vi,a))),referrer:ni(vi,a)});return Kt(c,{src:zt()}),Ht(c,Qr({},we)),xt(Mt(A.infoLogs.CREATE_COLLECT_CONTAINER,ii),et.LOG,ni(ui,a).logLevel),oi(mi,a,!0),ni(Ai,a).call(a),a}return Ke(t,e),u(t)}(Jt);const Ri=bi;var Si,wi=function(){return u(function e(){s(this,e)},null,[{key:"getBrowserDetails",value:function(){return{browser_accept_header:"application/json",browser_color_depth:String(window.screen.colorDepth),browser_screen_height:window.screen.height,browser_screen_width:window.screen.width,browser_user_agent:window.navigator.userAgent,browser_java_enabled:window.navigator.javaEnabled(),browser_language:window.navigator.language,browser_tz:(new Date).getTimezoneOffset(),browser_javascript_enabled:!0,accept_language:Ge(navigator.languages)}}}])}();Si=wi,l(wi,"showChallenge",function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"05",o=arguments.length>3?arguments[3]:void 0;if(!e)throw new Ct(nt.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["acsUrl"],!0);if(!t)throw new Ct(nt.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["cReq"],!0);if(o&&!(o instanceof HTMLElement))throw new Ct(nt.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["container"],!0);var r=Di._.call(Si,n),i=xi._.call(Si,o||document.body,"threeDSCReqIFrame","threeDSCReqIframe",r[0],r[1]);return i.sandbox.add("allow-pointer-lock"),Mi._.call(Si,e,t,i),i});var Di={_:function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"05"){case"01":return["250px","400px"];case"02":return["390px","400px"];case"03":return["500px","600px"];case"04":return["600px","400px"];case"05":return["100%","100%"];default:throw new Ct(nt.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["challengeWindowSize"],!0)}}},xi={_:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"0",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"0",i=document.createElement("iframe");return i.width=o,i.height=r,i.name=t,i.setAttribute("id",n),i.setAttribute("frameborder","0"),i.setAttribute("border","0"),i.setAttribute("style","overflow:hidden; position:absolute"),i.setAttribute("allowfullscreen","false"),i.setAttribute("allowpaymentrequest","false"),i.setAttribute("allow","payment; publickey-credentials-get"),i.sandbox.add("allow-forms","allow-scripts","allow-same-origin"),e.appendChild(i),i}},Mi={_:function(e,t,n){var o=document.createElement("html"),r=document.createElement("body"),i=Pi._.call(Si,"challengeRequestForm",e,n.name,"creq",encodeURIComponent(t));return r.appendChild(i),o.appendChild(r),n.appendChild(o),i.submit(),n}},Pi={_:function(e,t,n,o,r){var i=document.createElement("form");i.name=e,i.action=t,i.method="POST",i.target=n,i.enctype="application/x-www-form-urlencoded";var a=document.createElement("input");return a.name=o,a.value=r,i.appendChild(a),i.style.display="none",i}};const Ci=wi;function ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ki(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ki(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ji(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Ui(e,t,n){return e.set(Yi(e,t),n),n}function Fi(e,t){return e.get(Yi(e,t))}function Yi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Gi=function(e){return e.COLLECT="COLLECT",e.REVEAL="REVEAL",e.COMPOSABLE="COMPOSABLE",e}({}),Bi="Skyflow",Xi=new WeakMap,Wi=new WeakMap,Ki=new WeakMap,qi=new WeakMap,zi=new WeakMap,Hi=new WeakMap,Ji=new WeakMap,Zi=new WeakMap,$i=new WeakMap,Qi=function(){function e(t){var n,o,r=this;s(this,e),ji(this,Xi,void 0),ji(this,Wi,E()),ji(this,Ki,{uuid:Fi(Wi,this),clientDomain:window.location.origin}),ji(this,qi,void 0),ji(this,zi,""),ji(this,Hi,void 0),ji(this,Ji,void 0),ji(this,Zi,void 0),ji(this,$i,void 0);var i=localStorage.getItem("sdk_version")||"";Fi(Ki,this).sdkVersion=i,Fi(Ki,this).session_id=E(),Ui(Xi,this,new Yt(Vi({},t),Fi(Ki,this))),Ui(Ji,this,(null==t||null===(n=t.options)||void 0===n?void 0:n.logLevel)||$e.ERROR),Ui(Zi,this,(null==t||null===(o=t.options)||void 0===o?void 0:o.env)||Qe.PROD),Ui($i,this,[]),Ui(qi,this,new Hr(Fi(Xi,this),{logLevel:Fi(Ji,this),env:Fi(Zi,this)}));f().target(Nt.IFRAME_SECURE_ORIGIN).on(le+Fi(Wi,this),function(e,t){xt(Mt(A.infoLogs.CAPTURED_BEARER_TOKEN_EVENT,Bi),et.LOG,Fi(Ji,r)),!Fi(Xi,r).config.getBearerToken||Fi(zi,r)&&Vr(Fi(zi,r))?(xt(Mt(A.infoLogs.REUSE_BEARER_TOKEN,Bi),et.LOG,Fi(Ji,r)),t({authToken:Fi(zi,r)})):Fi(Xi,r).config.getBearerToken().then(function(e){Vr(e)?(xt(Mt(A.infoLogs.BEARER_TOKEN_RESOLVED,Bi),et.LOG,Fi(Ji,r)),Ui(zi,r,e),t({authToken:Fi(zi,r)})):(xt(Mt(A.errorLogs.INVALID_BEARER_TOKEN),et.ERROR,Fi(Ji,r)),t({error:Mt(A.errorLogs.INVALID_BEARER_TOKEN)}))}).catch(function(e){xt(Mt(A.errorLogs.BEARER_TOKEN_REJECTED),et.ERROR,Fi(Ji,r)),t({error:e})})}),xt(Mt(A.infoLogs.BEARER_TOKEN_LISTENER,Bi),et.LOG,Fi(Ji,this)),xt(Mt(A.infoLogs.CURRENT_ENV,Bi,Fi(Zi,this)),et.LOG,Fi(Ji,this)),xt(Mt(A.infoLogs.CURRENT_LOG_LEVEL,Bi,Fi(Ji,this)),et.LOG,Fi(Ji,this))}return u(e,[{key:"container",value:function(e,t){switch(e){case Gi.COLLECT:var n=new Dr(Vi(Vi({},Fi(Ki,this)),{},{clientJSON:Fi(Xi,this).toJSON(),containerType:e,skyflowContainer:Fi(qi,this)}),Fi($i,this),{logLevel:Fi(Ji,this),env:Fi(Zi,this)},t);return xt(Mt(A.infoLogs.COLLECT_CONTAINER_CREATED,Bi),et.LOG,Fi(Ji,this)),n;case Gi.REVEAL:var o=new oo(Vi(Vi({},Fi(Ki,this)),{},{clientJSON:Fi(Xi,this).toJSON(),containerType:e,skyflowContainer:Fi(qi,this)}),Fi($i,this),{logLevel:Fi(Ji,this),env:Fi(Zi,this)},t);return xt(Mt(A.infoLogs.REVEAL_CONTAINER_CREATED,Bi),et.LOG,Fi(Ji,this)),o;case Gi.COMPOSABLE:!function(e){if(!e)throw new Ct(nt.MISSING_COMPOSABLE_CONTAINER_OPTIONS,[],!0);if("object"!==a(e))throw new Ct(nt.INVALID_COMPOSABLE_CONTAINER_OPTIONS,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"layout"))throw new Ct(nt.MISSING_COMPOSABLE_LAYOUT_KEY,[],!0);if(!e.layout)throw new Ct(nt.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(!Array.isArray(e.layout))throw new Ct(nt.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(0===e.layout.length)throw new Ct(nt.EMPTY_COMPOSABLE_LAYOUT_ARRAY,[],!0);e.layout.forEach(function(e){if("number"!=typeof e)throw new Ct(nt.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(e<0)throw new Ct(nt.NEGATIVE_VALUES_COMPOSABLE_LAYOUT,[],!0)})}(t);var r=new Ri(Vi(Vi({},Fi(Ki,this)),{},{clientJSON:Fi(Xi,this).toJSON(),containerType:e,skyflowContainer:Fi(qi,this)}),Fi($i,this),{logLevel:Fi(Ji,this),env:Fi(Zi,this)},t);return xt(Mt(A.infoLogs.COLLECT_CONTAINER_CREATED,Bi),et.LOG,Fi(Ji,this)),r;default:if(!e)throw new Ct(nt.EMPTY_CONTAINER_TYPE,[],!0);throw new Ct(nt.INVALID_CONTAINER_TYPE,[e],!0)}}},{key:"insert",value:function(e,t){return xt(Mt(A.infoLogs.INSERT_TRIGGERED,Bi),et.LOG,Fi(Ji,this)),Fi(qi,this).insert(e,t)}},{key:"detokenize",value:function(e){return xt(Mt(A.infoLogs.DETOKENIZE_TRIGGERED,Bi),et.LOG,Fi(Ji,this)),Fi(qi,this).detokenize(e)}},{key:"getById",value:function(e){return xt(A.warnLogs.GET_BY_ID_DEPRECATED,et.WARN,Fi(Ji,this)),xt(Mt(A.infoLogs.GET_BY_ID_TRIGGERED,Bi),et.LOG,Fi(Ji,this)),Fi(qi,this).getById(e)}},{key:"get",value:function(e,t){return xt(Mt(A.infoLogs.GET_TRIGGERED,Bi),et.LOG,Fi(Ji,this)),Fi(qi,this).get(e,t)}},{key:"delete",value:function(e,t){return xt(Mt(A.infoLogs.DELETE_TRIGGERED,Bi),et.LOG,Fi(Ji,this)),Fi(qi,this).delete(e,t)}},{key:"update",value:function(e,t){return xt(Mt(A.infoLogs.UPDATE_TRIGGERED,Bi),et.LOG,Fi(Ji,this)),Fi(qi,this).update(e,t)}}],[{key:"init",value:function(t){var n,o=(null==t||null===(n=t.options)||void 0===n?void 0:n.logLevel)||$e.ERROR;!function(e){var t,n;if(null!=e&&null!==(t=e.options)&&void 0!==t&&t.customElementsURL&&Et(null==e||null===(n=e.options)||void 0===n?void 0:n.customElementsURL)){var o,r,i=null==e||null===(o=e.options)||void 0===o?void 0:o.customElementsURL,a=new URL(i),c=a.protocol,l=a.hostname,s="".concat(c,"//").concat(l);Nt.IFRAME_SECURE_ORIGIN=s,Nt.IFRAME_SECURE_SITE=null==e||null===(r=e.options)||void 0===r?void 0:r.customElementsURL}}(t),xt(Mt(A.infoLogs.INITIALIZE_CLIENT,Bi),et.LOG,o);var r,i=t;i.vaultURL="string"!=typeof(r=t.vaultURL)?r:"/"===(null==r?void 0:r.trim().slice(-1))?r.slice(0,-1):r.trim();var a=new e(i);return xt(Mt(A.infoLogs.CLIENT_INITIALIZED,Bi),et.LOG,o),a}},{key:"ContainerType",get:function(){return Gi}},{key:"ElementType",get:function(){return Te}},{key:"RedactionType",get:function(){return He}},{key:"RequestMethod",get:function(){return Je}},{key:"LogLevel",get:function(){return $e}},{key:"EventName",get:function(){return Ze}},{key:"Env",get:function(){return Qe}},{key:"ValidationRuleType",get:function(){return tt}},{key:"CardType",get:function(){return he}},{key:"Error",get:function(){return Ct}},{key:"ThreeDS",get:function(){return Ci}}])}();const ea=Qi,ta=Qi})(),o})());
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Skyflow",[],t):"object"==typeof exports?exports.Skyflow=t():e.Skyflow=t()}(this,()=>(()=>{var e={41:(e,t,n)=>{"use strict";var o=n(655),r=n(8068),i=n(9675),a=n(5795);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,p=arguments.length>6&&arguments[6],u=!!a&&a(e,t);if(o)o(e,t,{configurable:null===s&&u?u.configurable:!s,enumerable:null===c&&u?u.enumerable:!c,value:n,writable:null===l&&u?u.writable:!l});else{if(!p&&(c||l||s))throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},76:e=>{"use strict";e.exports=Function.prototype.call},125:(e,t,n)=>{"use strict";let o=n(8673);e.exports=new o(n(8446),n(1453))},414:e=>{"use strict";e.exports=Math.round},453:(e,t,n)=>{"use strict";var o,r=n(9612),i=n(9383),a=n(1237),c=n(9290),l=n(9538),s=n(8068),p=n(9675),u=n(5345),E=n(1514),d=n(8968),f=n(6188),_=n(8002),I=n(5880),v=n(414),m=n(3093),y=Function,L=function(e){try{return y('"use strict"; return ('+e+").constructor;")()}catch(e){}},O=n(5795),T=n(655),N=function(){throw new p},g=O?function(){try{return N}catch(e){try{return O(arguments,"callee").get}catch(e){return N}}}():N,R=n(4039)(),h=n(3628),A=n(1064),S=n(8648),w=n(1002),D=n(76),b={},M="undefined"!=typeof Uint8Array&&h?h(Uint8Array):o,P={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":R&&h?h([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?o:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":R&&h?h(h([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&R&&h?h((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":O,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":c,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&R&&h?h((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":R&&h?h(""[Symbol.iterator]()):o,"%Symbol%":R?Symbol:o,"%SyntaxError%":s,"%ThrowTypeError%":g,"%TypedArray%":M,"%TypeError%":p,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":w,"%Object.defineProperty%":T,"%Object.getPrototypeOf%":A,"%Math.abs%":E,"%Math.floor%":d,"%Math.max%":f,"%Math.min%":_,"%Math.pow%":I,"%Math.round%":v,"%Math.sign%":m,"%Reflect.getPrototypeOf%":S};if(h)try{null.error}catch(e){var x=h(h(e));P["%Error.prototype%"]=x}var C=function e(t){var n;if("%AsyncFunction%"===t)n=L("async function () {}");else if("%GeneratorFunction%"===t)n=L("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=L("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&h&&(n=h(r.prototype))}return P[t]=n,n},k={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},U=n(6743),V=n(9957),j=U.call(D,Array.prototype.concat),F=U.call(w,Array.prototype.splice),G=U.call(D,String.prototype.replace),Y=U.call(D,String.prototype.slice),B=U.call(D,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,X=/\\(\\)?/g,K=function(e,t){var n,o=e;if(V(k,o)&&(o="%"+(n=k[o])[0]+"%"),V(P,o)){var r=P[o];if(r===b&&(r=C(o)),void 0===r&&!t)throw new p("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:r}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new p('"allowMissing" argument must be a boolean');if(null===B(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=Y(e,0,1),n=Y(e,-1);if("%"===t&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var o=[];return G(e,W,function(e,t,n,r){o[o.length]=n?G(r,X,"$1"):t||e}),o}(e),o=n.length>0?n[0]:"",r=K("%"+o+"%",t),i=r.name,a=r.value,c=!1,l=r.alias;l&&(o=l[0],F(n,j([0,1],l)));for(var u=1,E=!0;u<n.length;u+=1){var d=n[u],f=Y(d,0,1),_=Y(d,-1);if(('"'===f||"'"===f||"`"===f||'"'===_||"'"===_||"`"===_)&&f!==_)throw new s("property names with quotes must have matching quotes");if("constructor"!==d&&E||(c=!0),V(P,i="%"+(o+="."+d)+"%"))a=P[i];else if(null!=a){if(!(d in a)){if(!t)throw new p("base intrinsic for "+e+" exists, but the property is not available.");return}if(O&&u+1>=n.length){var I=O(a,d);a=(E=!!I)&&"get"in I&&!("originalValue"in I.get)?I.get:a[d]}else E=V(a,d),a=a[d];E&&!c&&(P[i]=a)}}return a}},487:(e,t,n)=>{"use strict";var o=n(6897),r=n(655),i=n(3126),a=n(2205);e.exports=function(e){var t=i(arguments),n=e.length-(arguments.length-1);return o(t,1+(n>0?n:0),!0)},r?r(e.exports,"apply",{value:a}):e.exports.apply=a},537:(e,t,n)=>{var o=n(5606),r=n(6763),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},o=0;o<t.length;o++)n[t[o]]=Object.getOwnPropertyDescriptor(e,t[o]);return n},a=/%[sdj%]/g;t.format=function(e){if(!L(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(p(arguments[n]));return t.join(" ")}n=1;for(var o=arguments,r=o.length,i=String(e).replace(a,function(e){if("%%"===e)return"%";if(n>=r)return e;switch(e){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch(e){return"[Circular]"}default:return e}}),c=o[n];n<r;c=o[++n])m(c)||!N(c)?i+=" "+c:i+=" "+p(c);return i},t.deprecate=function(e,n){if(void 0!==o&&!0===o.noDeprecation)return e;if(void 0===o)return function(){return t.deprecate(e,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(o.throwDeprecation)throw new Error(n);o.traceDeprecation?r.trace(n):r.error(n),i=!0}return e.apply(this,arguments)}};var c={},l=/^$/;if({IFRAME_SECURE_SITE:"v2.6.0/elements/index.html",IFRAME_SECURE_ORIGIN:"https://js.skyflow.com"}.NODE_DEBUG){var s={IFRAME_SECURE_SITE:"v2.6.0/elements/index.html",IFRAME_SECURE_ORIGIN:"https://js.skyflow.com"}.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+s+"$","i")}function p(e,n){var o={seen:[],stylize:E};return arguments.length>=3&&(o.depth=arguments[2]),arguments.length>=4&&(o.colors=arguments[3]),v(n)?o.showHidden=n:n&&t._extend(o,n),O(o.showHidden)&&(o.showHidden=!1),O(o.depth)&&(o.depth=2),O(o.colors)&&(o.colors=!1),O(o.customInspect)&&(o.customInspect=!0),o.colors&&(o.stylize=u),d(o,e,o.depth)}function u(e,t){var n=p.styles[t];return n?"["+p.colors[n][0]+"m"+e+"["+p.colors[n][1]+"m":e}function E(e,t){return e}function d(e,n,o){if(e.customInspect&&n&&h(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(o,e);return L(r)||(r=d(e,r,o)),r}var i=function(e,t){if(O(t))return e.stylize("undefined","undefined");if(L(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(y(t))return e.stylize(""+t,"number");if(v(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,n);if(i)return i;var a=Object.keys(n),c=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),R(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(h(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(T(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(g(n))return e.stylize(Date.prototype.toString.call(n),"date");if(R(n))return f(n)}var s,p="",u=!1,E=["{","}"];(I(n)&&(u=!0,E=["[","]"]),h(n))&&(p=" [Function"+(n.name?": "+n.name:"")+"]");return T(n)&&(p=" "+RegExp.prototype.toString.call(n)),g(n)&&(p=" "+Date.prototype.toUTCString.call(n)),R(n)&&(p=" "+f(n)),0!==a.length||u&&0!=n.length?o<0?T(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),s=u?function(e,t,n,o,r){for(var i=[],a=0,c=t.length;a<c;++a)D(t,String(a))?i.push(_(e,t,n,o,String(a),!0)):i.push("");return r.forEach(function(r){r.match(/^\d+$/)||i.push(_(e,t,n,o,r,!0))}),i}(e,n,o,c,a):a.map(function(t){return _(e,n,o,c,t,u)}),e.seen.pop(),function(e,t,n){var o=e.reduce(function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(o>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(s,p,E)):E[0]+p+E[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function _(e,t,n,o,r,i){var a,c,l;if((l=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?c=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(c=e.stylize("[Setter]","special")),D(o,r)||(a="["+r+"]"),c||(e.seen.indexOf(l.value)<0?(c=m(n)?d(e,l.value,null):d(e,l.value,n-1)).indexOf("\n")>-1&&(c=i?c.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+c.split("\n").map(function(e){return" "+e}).join("\n")):c=e.stylize("[Circular]","special")),O(a)){if(i&&r.match(/^\d+$/))return c;(a=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+c}function I(e){return Array.isArray(e)}function v(e){return"boolean"==typeof e}function m(e){return null===e}function y(e){return"number"==typeof e}function L(e){return"string"==typeof e}function O(e){return void 0===e}function T(e){return N(e)&&"[object RegExp]"===A(e)}function N(e){return"object"==typeof e&&null!==e}function g(e){return N(e)&&"[object Date]"===A(e)}function R(e){return N(e)&&("[object Error]"===A(e)||e instanceof Error)}function h(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!c[e])if(l.test(e)){var n=o.pid;c[e]=function(){var o=t.format.apply(t,arguments);r.error("%s %d: %s",e,n,o)}}else c[e]=function(){};return c[e]},t.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(9032),t.isArray=I,t.isBoolean=v,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=L,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=O,t.isRegExp=T,t.types.isRegExp=T,t.isObject=N,t.isDate=g,t.types.isDate=g,t.isError=R,t.types.isNativeError=R,t.isFunction=h,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(1135);var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;r.log("%s - %s",(e=new Date,n=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":"),[e.getDate(),w[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(6698),t._extend=function(e,t){if(!t||!N(t))return e;for(var n=Object.keys(t),o=n.length;o--;)e[n[o]]=t[n[o]];return e};var b="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function M(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(b&&e[b]){var t;if("function"!=typeof(t=e[b]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,b,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,o=new Promise(function(e,o){t=e,n=o}),r=[],i=0;i<arguments.length;i++)r.push(arguments[i]);r.push(function(e,o){e?n(e):t(o)});try{e.apply(this,r)}catch(e){n(e)}return o}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),b&&Object.defineProperty(t,b,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=b,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var r=t.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return r.apply(i,arguments)};e.apply(this,t).then(function(e){o.nextTick(a.bind(null,null,e))},function(e){o.nextTick(M.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},579:(e,t,n)=>{var o=n(3738).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(o(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},592:(e,t,n)=>{"use strict";var o=n(655),r=function(){return!!o};r.hasArrayLengthDefineBug=function(){if(!o)return null;try{return 1!==o([],"length",{value:1}).length}catch(e){return!0}},e.exports=r},655:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},841:e=>{"use strict";e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}},887:(e,t,n)=>{var o=n(6993),r=n(1791);e.exports=function(e,t,n,i,a){return new r(o().w(e,t,n,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},1002:e=>{"use strict";e.exports=Function.prototype.apply},1064:(e,t,n)=>{"use strict";var o=n(9612);e.exports=o.getPrototypeOf||null},1093:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),o="[object Arguments]"===n;return o||(o="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),o}},1117:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.broadcastToChildWindows=void 0;var o=n(9974),r=n(6968);t.broadcastToChildWindows=function(e,t,n){for(var i=r.childWindows.length-1;i>=0;i--){var a=r.childWindows[i];a.closed?r.childWindows.splice(i,1):n!==a&&o.broadcast(a.top,e,t)}}},1135:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},1189:(e,t,n)=>{"use strict";var o=Array.prototype.slice,r=n(1093),i=Object.keys,a=i?function(e){return i(e)}:n(8875),c=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return r(e)?c(o.call(e)):c(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1237:e=>{"use strict";e.exports=EvalError},1333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var o in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},1453:e=>{e.exports={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},1514:e=>{"use strict";e.exports=Math.abs},1791:(e,t,n)=>{var o=n(5172),r=n(5546);e.exports=function e(t,n){function i(e,r,a,c){try{var l=t[e](r),s=l.value;return s instanceof o?n.resolve(s.v).then(function(e){i("next",e,a,c)},function(e){i("throw",e,a,c)}):n.resolve(s).then(function(e){l.value=e,a(l)},function(e){return i("throw",e,a,c)})}catch(e){c(e)}}var a;this.next||(r(e.prototype),r(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(e,t,o){function r(){return new n(function(t,n){i(e,o,t,n)})}return a=a?a.then(r,r):r()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},2205:(e,t,n)=>{"use strict";var o=n(6743),r=n(1002),i=n(3144);e.exports=function(){return i(o,r,arguments)}},2281:(e,t,n)=>{"use strict";var o=n(7920),r=new(n(6096).Framebus);o.attach(),e.exports=r},2299:(e,t,n)=>{"use strict";function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(c.push(o.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||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.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a=void 0!==/a/g.flags,c=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},l=function(e){var t=[];return e.forEach(function(e,n){return t.push([n,e])}),t},s=Object.is?Object.is:n(7653),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},u=Number.isNaN?Number.isNaN:n(4133);function E(e){return e.call.bind(e)}var d=E(Object.prototype.hasOwnProperty),f=E(Object.prototype.propertyIsEnumerable),_=E(Object.prototype.toString),I=n(537).types,v=I.isAnyArrayBuffer,m=I.isArrayBufferView,y=I.isDate,L=I.isMap,O=I.isRegExp,T=I.isSet,N=I.isNativeError,g=I.isBoxedPrimitive,R=I.isNumberObject,h=I.isStringObject,A=I.isBooleanObject,S=I.isBigIntObject,w=I.isSymbolObject,D=I.isFloat32Array,b=I.isFloat64Array;function M(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function P(e){return Object.keys(e).filter(M).concat(p(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function x(e,t){if(e===t)return 0;for(var n=e.length,o=t.length,r=0,i=Math.min(n,o);r<i;++r)if(e[r]!==t[r]){n=e[r],o=t[r];break}return n<o?-1:o<n?1:0}function C(e,t,n,o){if(e===t)return 0!==e||(!n||s(e,t));if(n){if("object"!==i(e))return"number"==typeof e&&u(e)&&u(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var r,c,l,p,E=_(e);if(E!==_(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var d=P(e),f=P(t);return d.length===f.length&&U(e,t,n,o,1,d)}if("[object Object]"===E&&(!L(e)&&L(t)||!T(e)&&T(t)))return!1;if(y(e)){if(!y(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(O(e)){if(!O(t)||(l=e,p=t,!(a?l.source===p.source&&l.flags===p.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(p))))return!1}else if(N(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(m(e)){if(n||!D(e)&&!b(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===x(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var I=P(e),M=P(t);return I.length===M.length&&U(e,t,n,o,0,I)}if(T(e))return!(!T(t)||e.size!==t.size)&&U(e,t,n,o,2);if(L(e))return!(!L(t)||e.size!==t.size)&&U(e,t,n,o,3);if(v(e)){if(c=t,(r=e).byteLength!==c.byteLength||0!==x(new Uint8Array(r),new Uint8Array(c)))return!1}else if(g(e)&&!function(e,t){return R(e)?R(t)&&s(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):h(e)?h(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):A(e)?A(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):S(e)?S(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):w(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return U(e,t,n,o,0)}function k(e,t){return t.filter(function(t){return f(e,t)})}function U(e,t,n,r,a,s){if(5===arguments.length){s=Object.keys(e);var u=Object.keys(t);if(s.length!==u.length)return!1}for(var E=0;E<s.length;E++)if(!d(t,s[E]))return!1;if(n&&5===arguments.length){var _=p(e);if(0!==_.length){var I=0;for(E=0;E<_.length;E++){var v=_[E];if(f(e,v)){if(!f(t,v))return!1;s.push(v),I++}else if(f(t,v))return!1}var m=p(t);if(_.length!==m.length&&k(t,m).length!==I)return!1}else{var y=p(t);if(0!==y.length&&0!==k(t,y).length)return!1}}if(0===s.length&&(0===a||1===a&&0===e.length||0===e.size))return!0;if(void 0===r)r={val1:new Map,val2:new Map,position:0};else{var L=r.val1.get(e);if(void 0!==L){var O=r.val2.get(t);if(void 0!==O)return L===O}r.position++}r.val1.set(e,r.position),r.val2.set(t,r.position);var T=function(e,t,n,r,a,s){var p=0;if(2===s){if(!function(e,t,n,o){for(var r=null,a=c(e),l=0;l<a.length;l++){var s=a[l];if("object"===i(s)&&null!==s)null===r&&(r=new Set),r.add(s);else if(!t.has(s)){if(n)return!1;if(!F(e,t,s))return!1;null===r&&(r=new Set),r.add(s)}}if(null!==r){for(var p=c(t),u=0;u<p.length;u++){var E=p[u];if("object"===i(E)&&null!==E){if(!V(r,E,n,o))return!1}else if(!n&&!e.has(E)&&!V(r,E,n,o))return!1}return 0===r.size}return!0}(e,t,n,a))return!1}else if(3===s){if(!function(e,t,n,r){for(var a=null,c=l(e),s=0;s<c.length;s++){var p=o(c[s],2),u=p[0],E=p[1];if("object"===i(u)&&null!==u)null===a&&(a=new Set),a.add(u);else{var d=t.get(u);if(void 0===d&&!t.has(u)||!C(E,d,n,r)){if(n)return!1;if(!G(e,t,u,E,r))return!1;null===a&&(a=new Set),a.add(u)}}}if(null!==a){for(var f=l(t),_=0;_<f.length;_++){var I=o(f[_],2),v=I[0],m=I[1];if("object"===i(v)&&null!==v){if(!Y(a,e,v,m,n,r))return!1}else if(!(n||e.has(v)&&C(e.get(v),m,!1,r)||Y(a,e,v,m,!1,r)))return!1}return 0===a.size}return!0}(e,t,n,a))return!1}else if(1===s)for(;p<e.length;p++){if(!d(e,p)){if(d(t,p))return!1;for(var u=Object.keys(e);p<u.length;p++){var E=u[p];if(!d(t,E)||!C(e[E],t[E],n,a))return!1}return u.length===Object.keys(t).length}if(!d(t,p)||!C(e[p],t[p],n,a))return!1}for(p=0;p<r.length;p++){var f=r[p];if(!C(e[f],t[f],n,a))return!1}return!0}(e,t,n,s,r,a);return r.val1.delete(e),r.val2.delete(t),T}function V(e,t,n,o){for(var r=c(e),i=0;i<r.length;i++){var a=r[i];if(C(t,a,n,o))return e.delete(a),!0}return!1}function j(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(u(e))return!1}return!0}function F(e,t,n){var o=j(n);return null!=o?o:t.has(o)&&!e.has(o)}function G(e,t,n,o,r){var i=j(n);if(null!=i)return i;var a=t.get(i);return!(void 0===a&&!t.has(i)||!C(o,a,!1,r))&&(!e.has(i)&&C(o,a,!1,r))}function Y(e,t,n,o,r,i){for(var a=c(e),l=0;l<a.length;l++){var s=a[l];if(C(n,s,r,i)&&C(o,t.get(s),r,i))return e.delete(s),!0}return!1}e.exports={isDeepEqual:function(e,t){return C(e,t,false)},isDeepStrictEqual:function(e,t){return C(e,t,true)}}},2464:(e,t,n)=>{"use strict";var o=n(8452),r=n(6642);e.exports=function(){var e=r();return o(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},2682:(e,t,n)=>{"use strict";var o=n(9600),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!o(t))throw new TypeError("iterator must be a function");var a,c;arguments.length>=3&&(a=n),c=e,"[object Array]"===r.call(c)?function(e,t,n){for(var o=0,r=e.length;o<r;o++)i.call(e,o)&&(null==n?t(e[o],o,e):t.call(n,e[o],o,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var o=0,r=e.length;o<r;o++)null==n?t(e.charAt(o),o,e):t.call(n,e.charAt(o),o,e)}(e,t,a):function(e,t,n){for(var o in e)i.call(e,o)&&(null==n?t(e[o],o,e):t.call(n,e[o],o,e))}(e,t,a)}},2926:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscriptionArgsInvalid=void 0;var o=n(9275);t.subscriptionArgsInvalid=function(e,t,n){return!!o.isntString(e)||("function"!=typeof t||o.isntString(n))}},3003:e=>{"use strict";e.exports=function(e){return e!=e}},3093:(e,t,n)=>{"use strict";var o=n(4459);e.exports=function(e){return o(e)||0===e?e:e<0?-1:1}},3126:(e,t,n)=>{"use strict";var o=n(6743),r=n(9675),i=n(76),a=n(3144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new r("a function is required");return a(o,i,e)}},3144:(e,t,n)=>{"use strict";var o=n(6743),r=n(1002),i=n(76),a=n(7119);e.exports=a||o.call(i,r)},3488:e=>{e.exports=function(e){return e}},3610:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onmessage=void 0;var o=n(9275),r=n(9752),i=n(9923),a=n(1117);t.onmessage=function(e){if(!o.isntString(e.data)){var t=r.unpackPayload(e);if(t){var n=t.eventData,c=t.reply;i.dispatch("*",t.event,n,c,e),i.dispatch(e.origin,t.event,n,c,e),a.broadcastToChildWindows(e.data,t.origin,e.source)}}}},3628:(e,t,n)=>{"use strict";var o=n(8648),r=n(1064),i=n(7176);e.exports=o?function(e){return o(e)}:r?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return r(e)}:i?function(e){return i(e)}:null},3678:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packagePayload=void 0;var o=n(5159),r=n(6968);t.packagePayload=function(e,t,n,i){var a,c={event:e,origin:t};"function"==typeof i&&(c.reply=o.subscribeReplier(i,t)),c.eventData=n;try{a=r.prefix+JSON.stringify(c)}catch(e){throw new Error("Could not stringify event: "+e.message)}return a}},3738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3918:(e,t,n)=>{"use strict";var o=n(5606);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,l(o.key),o)}}function l(e){var t=function(e,t){if("object"!==I(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==I(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===I(t)?t:String(t)}function s(e,t){if(t&&("object"===I(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return E(e,arguments,_(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),f(o,e)},u(e)}function E(e,t,n){return E=d()?Reflect.construct.bind():function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&f(r,n.prototype),r},E.apply(null,arguments)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}var v=n(537).inspect,m=n(9597).codes.ERR_INVALID_ARG_TYPE;function y(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var L="",O="",T="",N="",g={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function R(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){n[t]=e[t]}),Object.defineProperty(n,"message",{value:e.message}),n}function h(e){return v(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function A(e,t,n){var r="",i="",a=0,c="",l=!1,s=h(e),p=s.split("\n"),u=h(t).split("\n"),E=0,d="";if("strictEqual"===n&&"object"===I(e)&&"object"===I(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===p.length&&1===u.length&&p[0]!==u[0]){var f=p[0].length+u[0].length;if(f<=10){if(!("object"===I(e)&&null!==e||"object"===I(t)&&null!==t||0===e&&0===t))return"".concat(g[n],"\n\n")+"".concat(p[0]," !== ").concat(u[0],"\n")}else if("strictEqualObject"!==n){if(f<(o.stderr&&o.stderr.isTTY?o.stderr.columns:80)){for(;p[0][E]===u[0][E];)E++;E>2&&(d="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",E),"^"),E=0)}}}for(var _=p[p.length-1],v=u[u.length-1];_===v&&(E++<2?c="\n ".concat(_).concat(c):r=_,p.pop(),u.pop(),0!==p.length&&0!==u.length);)_=p[p.length-1],v=u[u.length-1];var m=Math.max(p.length,u.length);if(0===m){var R=s.split("\n");if(R.length>30)for(R[26]="".concat(L,"...").concat(N);R.length>27;)R.pop();return"".concat(g.notIdentical,"\n\n").concat(R.join("\n"),"\n")}E>3&&(c="\n".concat(L,"...").concat(N).concat(c),l=!0),""!==r&&(c="\n ".concat(r).concat(c),r="");var A=0,S=g[n]+"\n".concat(O,"+ actual").concat(N," ").concat(T,"- expected").concat(N),w=" ".concat(L,"...").concat(N," Lines skipped");for(E=0;E<m;E++){var D=E-a;if(p.length<E+1)D>1&&E>2&&(D>4?(i+="\n".concat(L,"...").concat(N),l=!0):D>3&&(i+="\n ".concat(u[E-2]),A++),i+="\n ".concat(u[E-1]),A++),a=E,r+="\n".concat(T,"-").concat(N," ").concat(u[E]),A++;else if(u.length<E+1)D>1&&E>2&&(D>4?(i+="\n".concat(L,"...").concat(N),l=!0):D>3&&(i+="\n ".concat(p[E-2]),A++),i+="\n ".concat(p[E-1]),A++),a=E,i+="\n".concat(O,"+").concat(N," ").concat(p[E]),A++;else{var b=u[E],M=p[E],P=M!==b&&(!y(M,",")||M.slice(0,-1)!==b);P&&y(b,",")&&b.slice(0,-1)===M&&(P=!1,M+=","),P?(D>1&&E>2&&(D>4?(i+="\n".concat(L,"...").concat(N),l=!0):D>3&&(i+="\n ".concat(p[E-2]),A++),i+="\n ".concat(p[E-1]),A++),a=E,i+="\n".concat(O,"+").concat(N," ").concat(M),r+="\n".concat(T,"-").concat(N," ").concat(b),A+=2):(i+=r,r="",1!==D&&0!==E||(i+="\n ".concat(M),A++))}if(A>20&&E<m-2)return"".concat(S).concat(w,"\n").concat(i,"\n").concat(L,"...").concat(N).concat(r,"\n")+"".concat(L,"...").concat(N)}return"".concat(S).concat(l?w:"","\n").concat(i).concat(r).concat(c).concat(d)}var S=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(y,e);var n,r,a,l,u,E=(n=y,r=d(),function(){var e,t=_(n);if(r){var o=_(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return s(this,e)});function y(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),"object"!==I(e)||null===e)throw new m("options","Object",e);var n=e.message,r=e.operator,i=e.stackStartFn,a=e.actual,c=e.expected,l=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)t=E.call(this,String(n));else if(o.stderr&&o.stderr.isTTY&&(o.stderr&&o.stderr.getColorDepth&&1!==o.stderr.getColorDepth()?(L="",O="",N="",T=""):(L="",O="",N="",T="")),"object"===I(a)&&null!==a&&"object"===I(c)&&null!==c&&"stack"in a&&a instanceof Error&&"stack"in c&&c instanceof Error&&(a=R(a),c=R(c)),"deepStrictEqual"===r||"strictEqual"===r)t=E.call(this,A(a,c,r));else if("notDeepStrictEqual"===r||"notStrictEqual"===r){var u=g[r],d=h(a).split("\n");if("notStrictEqual"===r&&"object"===I(a)&&null!==a&&(u=g.notStrictEqualObject),d.length>30)for(d[26]="".concat(L,"...").concat(N);d.length>27;)d.pop();t=1===d.length?E.call(this,"".concat(u," ").concat(d[0])):E.call(this,"".concat(u,"\n\n").concat(d.join("\n"),"\n"))}else{var f=h(a),_="",v=g[r];"notDeepEqual"===r||"notEqual"===r?(f="".concat(g[r],"\n\n").concat(f)).length>1024&&(f="".concat(f.slice(0,1021),"...")):(_="".concat(h(c)),f.length>512&&(f="".concat(f.slice(0,509),"...")),_.length>512&&(_="".concat(_.slice(0,509),"...")),"deepEqual"===r||"equal"===r?f="".concat(v,"\n\n").concat(f,"\n\nshould equal\n\n"):_=" ".concat(r," ").concat(_)),t=E.call(this,"".concat(f).concat(_))}return Error.stackTraceLimit=l,t.generatedMessage=!n,Object.defineProperty(p(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=a,t.expected=c,t.operator=r,Error.captureStackTrace&&Error.captureStackTrace(p(t),i),t.stack,t.name="AssertionError",s(t)}return a=y,(l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return v(this,i(i({},t),{},{customInspect:!1,depth:0}))}}])&&c(a.prototype,l),u&&c(a,u),Object.defineProperty(a,"prototype",{writable:!1}),y}(u(Error),v.custom);e.exports=S},4035:(e,t,n)=>{"use strict";var o,r=n(6556),i=n(9092)(),a=n(9957),c=n(5795);if(i){var l=r("RegExp.prototype.exec"),s={},p=function(){throw s},u={toString:p,valueOf:p};"symbol"==typeof Symbol.toPrimitive&&(u[Symbol.toPrimitive]=p),o=function(e){if(!e||"object"!=typeof e)return!1;var t=c(e,"lastIndex");if(!(t&&a(t,"value")))return!1;try{l(e,u)}catch(e){return e===s}}}else{var E=r("Object.prototype.toString");o=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===E(e)}}e.exports=o},4039:(e,t,n)=>{"use strict";var o="undefined"!=typeof Symbol&&Symbol,r=n(1333);e.exports=function(){return"function"==typeof o&&("function"==typeof Symbol&&("symbol"==typeof o("foo")&&("symbol"==typeof Symbol("bar")&&r())))}},4133:(e,t,n)=>{"use strict";var o=n(487),r=n(8452),i=n(3003),a=n(6642),c=n(2464),l=o(a(),Number);r(l,{getPolyfill:a,implementation:i,shim:c}),e.exports=l},4148:(e,t,n)=>{"use strict";var o=n(5606),r=n(6763);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,l(o.key),o)}}function c(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}var s,p,u=n(9597).codes,E=u.ERR_AMBIGUOUS_ARGUMENT,d=u.ERR_INVALID_ARG_TYPE,f=u.ERR_INVALID_ARG_VALUE,_=u.ERR_INVALID_RETURN_VALUE,I=u.ERR_MISSING_ARGS,v=n(3918),m=n(537).inspect,y=n(537).types,L=y.isPromise,O=y.isRegExp,T=n(9133)(),N=n(9394)(),g=n(8075)("RegExp.prototype.test");new Map;function R(){var e=n(2299);s=e.isDeepEqual,p=e.isDeepStrictEqual}var h=!1,A=e.exports=b,S={};function w(e){if(e.message instanceof Error)throw e.message;throw new v(e)}function D(e,t,n,o){if(!n){var r=!1;if(0===t)r=!0,o="No value argument passed to `assert.ok()`";else if(o instanceof Error)throw o;var i=new v({actual:n,expected:!0,message:o,operator:"==",stackStartFn:e});throw i.generatedMessage=r,i}}function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];D.apply(void 0,[b,t.length].concat(t))}A.fail=function e(t,n,i,a,c){var l,s=arguments.length;if(0===s)l="Failed";else if(1===s)i=t,t=void 0;else{if(!1===h)h=!0,(o.emitWarning?o.emitWarning:r.warn.bind(r))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094");2===s&&(a="!=")}if(i instanceof Error)throw i;var p={actual:t,expected:n,operator:void 0===a?"fail":a,stackStartFn:c||e};void 0!==i&&(p.message=i);var u=new v(p);throw l&&(u.message=l,u.generatedMessage=!0),u},A.AssertionError=v,A.ok=b,A.equal=function e(t,n,o){if(arguments.length<2)throw new I("actual","expected");t!=n&&w({actual:t,expected:n,message:o,operator:"==",stackStartFn:e})},A.notEqual=function e(t,n,o){if(arguments.length<2)throw new I("actual","expected");t==n&&w({actual:t,expected:n,message:o,operator:"!=",stackStartFn:e})},A.deepEqual=function e(t,n,o){if(arguments.length<2)throw new I("actual","expected");void 0===s&&R(),s(t,n)||w({actual:t,expected:n,message:o,operator:"deepEqual",stackStartFn:e})},A.notDeepEqual=function e(t,n,o){if(arguments.length<2)throw new I("actual","expected");void 0===s&&R(),s(t,n)&&w({actual:t,expected:n,message:o,operator:"notDeepEqual",stackStartFn:e})},A.deepStrictEqual=function e(t,n,o){if(arguments.length<2)throw new I("actual","expected");void 0===s&&R(),p(t,n)||w({actual:t,expected:n,message:o,operator:"deepStrictEqual",stackStartFn:e})},A.notDeepStrictEqual=function e(t,n,o){if(arguments.length<2)throw new I("actual","expected");void 0===s&&R();p(t,n)&&w({actual:t,expected:n,message:o,operator:"notDeepStrictEqual",stackStartFn:e})},A.strictEqual=function e(t,n,o){if(arguments.length<2)throw new I("actual","expected");N(t,n)||w({actual:t,expected:n,message:o,operator:"strictEqual",stackStartFn:e})},A.notStrictEqual=function e(t,n,o){if(arguments.length<2)throw new I("actual","expected");N(t,n)&&w({actual:t,expected:n,message:o,operator:"notStrictEqual",stackStartFn:e})};var M=c(function e(t,n,o){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach(function(e){e in t&&(void 0!==o&&"string"==typeof o[e]&&O(t[e])&&g(t[e],o[e])?r[e]=o[e]:r[e]=t[e])})});function P(e,t,n,o){if("function"!=typeof t){if(O(t))return g(t,e);if(2===arguments.length)throw new d("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var r=new v({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:o});throw r.operator=o.name,r}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(0===a.length)throw new f("error",t,"may not be an empty object");return void 0===s&&R(),a.forEach(function(r){"string"==typeof e[r]&&O(t[r])&&g(t[r],e[r])||function(e,t,n,o,r,i){if(!(n in e)||!p(e[n],t[n])){if(!o){var a=new M(e,r),c=new M(t,r,e),l=new v({actual:a,expected:c,operator:"deepStrictEqual",stackStartFn:i});throw l.actual=e,l.expected=t,l.operator=i.name,l}w({actual:e,expected:t,message:o,operator:i.name,stackStartFn:i})}}(e,t,r,n,a,o)}),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function x(e){if("function"!=typeof e)throw new d("fn","Function",e);try{e()}catch(e){return e}return S}function C(e){return L(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function k(e){return Promise.resolve().then(function(){var t;if("function"==typeof e){if(!C(t=e()))throw new _("instance of Promise","promiseFn",t)}else{if(!C(e))throw new d("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then(function(){return t}).then(function(){return S}).catch(function(e){return e})})}function U(e,t,n,o){if("string"==typeof n){if(4===arguments.length)throw new d("error",["Object","Error","Function","RegExp"],n);if("object"===i(t)&&null!==t){if(t.message===n)throw new E("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new E("error/message",'The error "'.concat(t,'" is identical to the message.'));o=n,n=void 0}else if(null!=n&&"object"!==i(n)&&"function"!=typeof n)throw new d("error",["Object","Error","Function","RegExp"],n);if(t===S){var r="";n&&n.name&&(r+=" (".concat(n.name,")")),r+=o?": ".concat(o):".";var a="rejects"===e.name?"rejection":"exception";w({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(a).concat(r),stackStartFn:e})}if(n&&!P(t,n,o,e))throw t}function V(e,t,n,o){if(t!==S){if("string"==typeof n&&(o=n,n=void 0),!n||P(t,n)){var r=o?": ".concat(o):".",i="doesNotReject"===e.name?"rejection":"exception";w({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(i).concat(r,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function j(e,t,n,o,r){if(!O(t))throw new d("regexp","RegExp",t);var a="match"===r;if("string"!=typeof e||g(t,e)!==a){if(n instanceof Error)throw n;var c=!n;n=n||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(i(e)," (").concat(m(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(m(t),". Input:\n\n").concat(m(e),"\n"));var l=new v({actual:e,expected:t,message:n,operator:r,stackStartFn:o});throw l.generatedMessage=c,l}}function F(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];D.apply(void 0,[F,t.length].concat(t))}A.throws=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];U.apply(void 0,[e,x(t)].concat(o))},A.rejects=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return k(t).then(function(t){return U.apply(void 0,[e,t].concat(o))})},A.doesNotThrow=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];V.apply(void 0,[e,x(t)].concat(o))},A.doesNotReject=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return k(t).then(function(t){return V.apply(void 0,[e,t].concat(o))})},A.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===i(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=m(t);var o=new v({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),r=t.stack;if("string"==typeof r){var a=r.split("\n");a.shift();for(var c=o.stack.split("\n"),l=0;l<a.length;l++){var s=c.indexOf(a[l]);if(-1!==s){c=c.slice(0,s);break}}o.stack="".concat(c.join("\n"),"\n").concat(a.join("\n"))}throw o}},A.match=function e(t,n,o){j(t,n,o,e,"match")},A.doesNotMatch=function e(t,n,o){j(t,n,o,e,"doesNotMatch")},A.strict=T(F,A,{equal:A.strictEqual,deepEqual:A.deepStrictEqual,notEqual:A.notStrictEqual,notDeepEqual:A.notDeepStrictEqual}),A.strict.strict=A.strict},4373:e=>{e.exports=function(e){var t=Object(e),n=[];for(var o in t)n.unshift(o);return function e(){for(;n.length;)if((o=n.pop())in t)return e.value=o,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},4459:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},4633:(e,t,n)=>{var o=n(5172),r=n(6993),i=n(5869),a=n(887),c=n(1791),l=n(4373),s=n(579);function p(){"use strict";var t=r(),n=t.m(p),u=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function E(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===u||"GeneratorFunction"===(t.displayName||t.name))}var d={throw:1,return:2,break:3,continue:3};function f(e){var t,n;return function(o){t||(t={stop:function(){return n(o.a,2)},catch:function(){return o.v},abrupt:function(e,t){return n(o.a,d[e],t)},delegateYield:function(e,r,i){return t.resultName=r,n(o.d,s(e),i)},finish:function(e){return n(o.f,e)}},n=function(e,n,r){o.p=t.prev,o.n=t.next;try{return e(n,r)}finally{t.next=o.n}}),t.resultName&&(t[t.resultName]=o.v,t.resultName=void 0),t.sent=o.v,t.next=o.n;try{return e.call(this,t)}finally{o.p=t.prev,o.n=t.next}}}return(e.exports=p=function(){return{wrap:function(e,n,o,r){return t.w(f(e),n,o,r&&r.reverse())},isGeneratorFunction:E,mark:t.m,awrap:function(e,t){return new o(e,t)},AsyncIterator:c,async:function(e,t,n,o,r){return(E(t)?a:i)(f(e),t,n,o,r)},keys:l,values:s}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=p,e.exports.__esModule=!0,e.exports.default=e.exports},4756:(e,t,n)=>{var o=n(4633)();e.exports=o;try{regeneratorRuntime=o}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},5159:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeReplier=void 0;var r=n(6096),i=o(n(841));t.subscribeReplier=function(e,t){var n=i.default();return r.Framebus.target(t).on(n,function o(i,a){e(i,a),r.Framebus.target(t).off(n,o)}),n}},5172:e=>{e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},5213:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasOpener=void 0,t.hasOpener=function(e){return e.top===e&&(null!=e.opener&&(e.opener!==e&&!0!==e.opener.closed))}},5345:e=>{"use strict";e.exports=URIError},5546:e=>{function t(n,o,r,i){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}e.exports=t=function(e,n,o,r){if(n)a?a(e,n,{value:o,enumerable:!r,configurable:!r,writable:!r}):e[n]=o;else{var i=function(n,o){t(e,n,function(e){return this._invoke(n,o,e)})};i("next",0),i("throw",1),i("return",2)}},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,o,r,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},5606:e=>{var t,n,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var c,l=[],s=!1,p=-1;function u(){s&&c&&(s=!1,c.length?l=c.concat(l):p=-1,l.length&&E())}function E(){if(!s){var e=a(u);s=!0;for(var t=l.length;t;){for(c=l,l=[];++p<t;)c&&c[p].run();p=-1,t=l.length}c=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function f(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new d(e,t)),1!==l.length||s||a(E)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=f,o.addListener=f,o.once=f,o.off=f,o.removeListener=f,o.removeAllListeners=f,o.emit=f,o.prependListener=f,o.prependOnceListener=f,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},5680:(e,t,n)=>{"use strict";var o=n(5767);e.exports=function(e){return!!o(e)}},5767:(e,t,n)=>{"use strict";var o=n(2682),r=n(9209),i=n(487),a=n(6556),c=n(5795),l=n(3628),s=a("Object.prototype.toString"),p=n(9092)(),u="undefined"==typeof globalThis?n.g:globalThis,E=r(),d=a("String.prototype.slice"),f=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},_={__proto__:null};o(E,p&&c&&l?function(e){var t=new u[e];if(Symbol.toStringTag in t&&l){var n=l(t),o=c(n,Symbol.toStringTag);if(!o&&n){var r=l(n);o=c(r,Symbol.toStringTag)}_["$"+e]=i(o.get)}}:function(e){var t=new u[e],n=t.slice||t.set;n&&(_["$"+e]=i(n))});e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!p){var t=d(s(e),8,-1);return f(E,t)>-1?t:"Object"===t&&function(e){var t=!1;return o(_,function(n,o){if(!t)try{n(e),t=d(o,1)}catch(e){}}),t}(e)}return c?function(e){var t=!1;return o(_,function(n,o){if(!t)try{"$"+n(e)===o&&(t=d(o,1))}catch(e){}}),t}(e):null}},5795:(e,t,n)=>{"use strict";var o=n(6549);if(o)try{o([],"length")}catch(e){o=null}e.exports=o},5869:(e,t,n)=>{var o=n(887);e.exports=function(e,t,n,r,i){var a=o(e,t,n,r,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},5880:e=>{"use strict";e.exports=Math.pow},6096:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Framebus=void 0;var o=n(9275),r=n(2926),i=n(9974),a=n(3678),c=n(6968),l=function(){function e(e){void 0===e&&(e="*"),this.origin=e}return e.target=function(t){return void 0===t&&(t="*"),new e(t)},e.prototype.include=function(e){return null!=e&&(null!=e.Window&&(e.constructor===e.Window&&(c.childWindows.push(e),!0)))},e.prototype.target=function(t){return e.target(t)},e.prototype.emit=function(e,t,n){var r=this.origin;if(o.isntString(e))return!1;if(o.isntString(r))return!1;"function"==typeof t&&(n=t,t=void 0);var c=a.packagePayload(e,r,t,n);return!!c&&(i.broadcast(window.top||window.self,c,r),!0)},e.prototype.on=function(e,t){var n=this.origin;return!r.subscriptionArgsInvalid(e,t,n)&&(c.subscribers[n]=c.subscribers[n]||{},c.subscribers[n][e]=c.subscribers[n][e]||[],c.subscribers[n][e].push(t),!0)},e.prototype.off=function(e,t){var n=this.origin;if(r.subscriptionArgsInvalid(e,t,n))return!1;var o=c.subscribers[n]&&c.subscribers[n][e];if(!o)return!1;for(var i=0;i<o.length;i++)if(o[i]===t)return o.splice(i,1),!0;return!1},e}();t.Framebus=l},6119:(e,t,n)=>{var o=n(7721),r=n(3488);e.exports=function(e){return e&&e.length?o(e,r):0}},6188:e=>{"use strict";e.exports=Math.max},6549:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},6556:(e,t,n)=>{"use strict";var o=n(453),r=n(3126),i=r([o("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=o(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?r([n]):n}},6576:(e,t,n)=>{"use strict";var o=n(9394),r=n(8452);e.exports=function(){var e=o();return r(Object,{is:e},{is:function(){return Object.is!==e}}),e}},6578:e=>{"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},6642:(e,t,n)=>{"use strict";var o=n(3003);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:o}},6698:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},6743:(e,t,n)=>{"use strict";var o=n(9353);e.exports=Function.prototype.bind||o},6763:(e,t,n)=>{var o=n(537),r=n(4148);function i(){return(new Date).getTime()}var a,c=Array.prototype.slice,l={};a=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var s=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(e){l[e]=i()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var n=i()-t;a.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=o.format.apply(null,arguments),a.error(e.stack)},"trace"],[function(e){a.log(o.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=c.call(arguments,1);r.ok(!1,o.format.apply(null,t))}},"assert"]],p=0;p<s.length;p++){var u=s[p],E=u[0],d=u[1];a[d]||(a[d]=E)}e.exports=a},6897:(e,t,n)=>{"use strict";var o=n(453),r=n(41),i=n(592)(),a=n(5795),c=n(9675),l=o("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new c("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new c("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,s=!0;if("length"in e&&a){var p=a(e,"length");p&&!p.configurable&&(o=!1),p&&!p.writable&&(s=!1)}return(o||s||!n)&&(i?r(e,"length",t,!0,!0):r(e,"length",t)),e}},6968:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribers=t.childWindows=t.prefix=void 0,t.prefix="/*framebus*/",t.childWindows=[],t.subscribers={}},6993:(e,t,n)=>{var o=n(5546);function r(){var t,n,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.toStringTag||"@@toStringTag";function l(e,r,i,a){var c=r&&r.prototype instanceof p?r:p,l=Object.create(c.prototype);return o(l,"_invoke",function(e,o,r){var i,a,c,l=0,p=r||[],u=!1,E={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,a=0,c=t,E.n=n,s}};function d(e,o){for(a=e,c=o,n=0;!u&&l&&!r&&n<p.length;n++){var r,i=p[n],d=E.p,f=i[2];e>3?(r=f===o)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=d&&((r=e<2&&d<i[1])?(a=0,E.v=o,E.n=i[1]):d<f&&(r=e<3||i[0]>o||o>f)&&(i[4]=e,i[5]=o,E.n=f,a=0))}if(r||e>1)return s;throw u=!0,o}return function(r,p,f){if(l>1)throw TypeError("Generator is already running");for(u&&1===p&&d(p,f),a=p,c=f;(n=a<2?t:c)||!u;){i||(a?a<3?(a>1&&(E.n=-1),d(a,c)):E.n=c:E.v=c);try{if(l=2,i){if(a||(r="next"),n=i[r]){if(!(n=n.call(i,c)))throw TypeError("iterator result is not an object");if(!n.done)return n;c=n.value,a<2&&(a=0)}else 1===a&&(n=i.return)&&n.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),a=1);i=t}else if((n=(u=E.n<0)?c:e.call(o,E))!==s)break}catch(e){i=t,a=1,c=e}finally{l=1}}return{value:n,done:u}}}(e,i,a),!0),l}var s={};function p(){}function u(){}function E(){}n=Object.getPrototypeOf;var d=[][a]?n(n([][a]())):(o(n={},a,function(){return this}),n),f=E.prototype=p.prototype=Object.create(d);function _(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,o(e,c,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=E,o(f,"constructor",E),o(E,"constructor",u),u.displayName="GeneratorFunction",o(E,c,"GeneratorFunction"),o(f),o(f,c,"Generator"),o(f,a,function(){return this}),o(f,"toString",function(){return"[object Generator]"}),(e.exports=r=function(){return{w:l,m:_}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},7119:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7176:(e,t,n)=>{"use strict";var o,r=n(3126),i=n(5795);try{o=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!o&&i&&i(Object.prototype,"__proto__"),c=Object,l=c.getPrototypeOf;e.exports=a&&"function"==typeof a.get?r([a.get]):"function"==typeof l&&function(e){return l(null==e?e:c(e))}},7244:(e,t,n)=>{"use strict";var o=n(9092)(),r=n(6556)("Object.prototype.toString"),i=function(e){return!(o&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===r(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r(e)&&"callee"in e&&"[object Function]"===r(e.callee)},c=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=c?i:a},7653:(e,t,n)=>{"use strict";var o=n(8452),r=n(487),i=n(9211),a=n(9394),c=n(6576),l=r(a(),Object);o(l,{getPolyfill:a,implementation:i,shim:c}),e.exports=l},7721:e=>{e.exports=function(e,t){for(var n,o=-1,r=e.length;++o<r;){var i=t(e[o]);void 0!==i&&(n=void 0===n?i:n+i)}return n}},7920:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detach=t.attach=void 0;var o=n(3610),r=!1;t.attach=function(){r||"undefined"==typeof window||(r=!0,window.addEventListener("message",o.onmessage,!1))},t.detach=function(){r=!1,window.removeEventListener("message",o.onmessage,!1)}},8002:e=>{"use strict";e.exports=Math.min},8068:e=>{"use strict";e.exports=SyntaxError},8075:(e,t,n)=>{"use strict";var o=n(453),r=n(487),i=r(o("String.prototype.indexOf"));e.exports=function(e,t){var n=o(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?r(n):n}},8184:(e,t,n)=>{"use strict";var o,r=n(6556),i=n(9721)(/^\s*(?:function)?\*/),a=n(9092)(),c=n(3628),l=r("Object.prototype.toString"),s=r("Function.prototype.toString");e.exports=function(e){if("function"!=typeof e)return!1;if(i(s(e)))return!0;if(!a)return"[object GeneratorFunction]"===l(e);if(!c)return!1;if(void 0===o){var t=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(e){}}();o=!!t&&c(t)}return c(e)===o}},8403:(e,t,n)=>{"use strict";var o=n(1189),r=n(1333)(),i=n(6556),a=n(9612),c=i("Array.prototype.push"),l=i("Object.prototype.propertyIsEnumerable"),s=r?a.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=a(e);if(1===arguments.length)return n;for(var i=1;i<arguments.length;++i){var p=a(arguments[i]),u=o(p),E=r&&(a.getOwnPropertySymbols||s);if(E)for(var d=E(p),f=0;f<d.length;++f){var _=d[f];l(p,_)&&c(u,_)}for(var I=0;I<u.length;++I){var v=u[I];if(l(p,v)){var m=p[v];n[v]=m}}}return n}},8446:e=>{e.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},8452:(e,t,n)=>{"use strict";var o=n(1189),r="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,c=n(41),l=n(592)(),s=function(e,t,n,o){if(t in e)if(!0===o){if(e[t]===n)return}else if("function"!=typeof(r=o)||"[object Function]"!==i.call(r)||!o())return;var r;l?c(e,t,n,!0):c(e,t,n)},p=function(e,t){var n=arguments.length>2?arguments[2]:{},i=o(t);r&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var c=0;c<i.length;c+=1)s(e,i[c],t[i[c]],n[i[c]])};p.supportsDescriptors=!!l,e.exports=p},8648:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},8673:e=>{"use strict";function t(){this._types=Object.create(null),this._extensions=Object.create(null);for(let e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}t.prototype.define=function(e,t){for(let n in e){let o=e[n].map(function(e){return e.toLowerCase()});n=n.toLowerCase();for(let e=0;e<o.length;e++){const r=o[e];if("*"!==r[0]){if(!t&&r in this._types)throw new Error('Attempt to change mapping for "'+r+'" extension from "'+this._types[r]+'" to "'+n+'". Pass `force=true` to allow this, otherwise remove "'+r+'" from the list of extensions for "'+n+'".');this._types[r]=n}}if(t||!this._extensions[n]){const e=o[0];this._extensions[n]="*"!==e[0]?e:e.substr(1)}}},t.prototype.getType=function(e){let t=(e=String(e)).replace(/^.*[/\\]/,"").toLowerCase(),n=t.replace(/^.*\./,"").toLowerCase(),o=t.length<e.length;return(n.length<t.length-1||!o)&&this._types[n]||null},t.prototype.getExtension=function(e){return(e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1)&&this._extensions[e.toLowerCase()]||null},e.exports=t},8875:(e,t,n)=>{"use strict";var o;if(!Object.keys){var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(1093),c=Object.prototype.propertyIsEnumerable,l=!c.call({toString:null},"toString"),s=c.call(function(){},"prototype"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(e){var t=e.constructor;return t&&t.prototype===e},E={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!E["$"+e]&&r.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{u(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();o=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),o=a(e),c=t&&"[object String]"===i.call(e),E=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var f=s&&n;if(c&&e.length>0&&!r.call(e,0))for(var _=0;_<e.length;++_)E.push(String(_));if(o&&e.length>0)for(var I=0;I<e.length;++I)E.push(String(I));else for(var v in e)f&&"prototype"===v||!r.call(e,v)||E.push(String(v));if(l)for(var m=function(e){if("undefined"==typeof window||!d)return u(e);try{return u(e)}catch(e){return!1}}(e),y=0;y<p.length;++y)m&&"constructor"===p[y]||!r.call(e,p[y])||E.push(p[y]);return E}}e.exports=o},8968:e=>{"use strict";e.exports=Math.floor},9032:(e,t,n)=>{"use strict";var o=n(7244),r=n(8184),i=n(5767),a=n(5680);function c(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,s="undefined"!=typeof Symbol,p=c(Object.prototype.toString),u=c(Number.prototype.valueOf),E=c(String.prototype.valueOf),d=c(Boolean.prototype.valueOf);if(l)var f=c(BigInt.prototype.valueOf);if(s)var _=c(Symbol.prototype.valueOf);function I(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function v(e){return"[object Map]"===p(e)}function m(e){return"[object Set]"===p(e)}function y(e){return"[object WeakMap]"===p(e)}function L(e){return"[object WeakSet]"===p(e)}function O(e){return"[object ArrayBuffer]"===p(e)}function T(e){return"undefined"!=typeof ArrayBuffer&&(O.working?O(e):e instanceof ArrayBuffer)}function N(e){return"[object DataView]"===p(e)}function g(e){return"undefined"!=typeof DataView&&(N.working?N(e):e instanceof DataView)}t.isArgumentsObject=o,t.isGeneratorFunction=r,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||g(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},v.working="undefined"!=typeof Map&&v(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(v.working?v(e):e instanceof Map)},m.working="undefined"!=typeof Set&&m(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(m.working?m(e):e instanceof Set)},y.working="undefined"!=typeof WeakMap&&y(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(y.working?y(e):e instanceof WeakMap)},L.working="undefined"!=typeof WeakSet&&L(new WeakSet),t.isWeakSet=function(e){return L(e)},O.working="undefined"!=typeof ArrayBuffer&&O(new ArrayBuffer),t.isArrayBuffer=T,N.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&N(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=g;var R="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function h(e){return"[object SharedArrayBuffer]"===p(e)}function A(e){return void 0!==R&&(void 0===h.working&&(h.working=h(new R)),h.working?h(e):e instanceof R)}function S(e){return I(e,u)}function w(e){return I(e,E)}function D(e){return I(e,d)}function b(e){return l&&I(e,f)}function M(e){return s&&I(e,_)}t.isSharedArrayBuffer=A,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===p(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===p(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===p(e)},t.isGeneratorObject=function(e){return"[object Generator]"===p(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===p(e)},t.isNumberObject=S,t.isStringObject=w,t.isBooleanObject=D,t.isBigIntObject=b,t.isSymbolObject=M,t.isBoxedPrimitive=function(e){return S(e)||w(e)||D(e)||b(e)||M(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(T(e)||A(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},9092:(e,t,n)=>{"use strict";var o=n(1333);e.exports=function(){return o()&&!!Symbol.toStringTag}},9133:(e,t,n)=>{"use strict";var o=n(8403);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},o=0;o<t.length;++o)n[t[o]]=t[o];var r=Object.assign({},n),i="";for(var a in r)i+=a;return e!==i}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?o:Object.assign:o}},9209:(e,t,n)=>{"use strict";var o=n(6578),r="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<o.length;t++)"function"==typeof r[o[t]]&&(e[e.length]=o[t]);return e}},9211:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},9275:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isntString=void 0,t.isntString=function(e){return"string"!=typeof e}},9290:e=>{"use strict";e.exports=RangeError},9353:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,o=function(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var r=0;r<t.length;r+=1)n[r+e.length]=t[r];return n};e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==t.apply(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var i,a=function(e,t){for(var n=[],o=t||0,r=0;o<e.length;o+=1,r+=1)n[r]=e[o];return n}(arguments,1),c=n(0,r.length-a.length),l=[],s=0;s<c;s++)l[s]="$"+s;if(i=Function("binder","return function ("+function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=t);return n}(l,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var t=r.apply(this,o(a,arguments));return Object(t)===t?t:this}return r.apply(e,o(a,arguments))}),r.prototype){var p=function(){};p.prototype=r.prototype,i.prototype=new p,p.prototype=null}return i}},9383:e=>{"use strict";e.exports=Error},9394:(e,t,n)=>{"use strict";var o=n(9211);e.exports=function(){return"function"==typeof Object.is?Object.is:o}},9538:e=>{"use strict";e.exports=ReferenceError},9597:(e,t,n)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,i(o.key),o)}}function i(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var s,p,u={};function E(e,t,n){n||(n=Error);var o=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(p,n);var o,i,l,s=c(p);function p(n,o,r){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),i=s.call(this,function(e,n,o){return"string"==typeof t?t:t(e,n,o)}(n,o,r)),i.code=e,i}return o=p,i&&r(o.prototype,i),l&&r(o,l),Object.defineProperty(o,"prototype",{writable:!1}),o}(n);u[e]=o}function d(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}E("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),E("ERR_INVALID_ARG_TYPE",function(e,t,r){var i,a,c,l;if(void 0===s&&(s=n(4148)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(!c||c<0?0:+c,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))l="The ".concat(e," ").concat(i," ").concat(d(t,"type"));else{var p=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(p," ").concat(i," ").concat(d(t,"type"))}return l+=". Received type ".concat(o(r))},TypeError),E("ERR_INVALID_ARG_VALUE",function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===p&&(p=n(537));var r=p.inspect(t);return r.length>128&&(r="".concat(r.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(o,". Received ").concat(r)},TypeError,RangeError),E("ERR_INVALID_RETURN_VALUE",function(e,t,n){var r;return r=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(o(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(r,".")},TypeError),E("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];void 0===s&&(s=n(4148)),s(t.length>0,"At least one arg needs to be specified");var r="The ",i=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),i){case 1:r+="".concat(t[0]," argument");break;case 2:r+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:r+=t.slice(0,i-1).join(", "),r+=", and ".concat(t[i-1]," arguments")}return"".concat(r," must be specified")},TypeError),e.exports.codes=u},9600:e=>{"use strict";var t,n,o=Function.prototype.toString,r="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof r&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},r(function(){throw 42},null,t)}catch(e){e!==n&&(r=null)}else r=null;var i=/^\s*class\b/,a=function(e){try{var t=o.call(e);return i.test(t)}catch(e){return!1}},c=function(e){try{return!a(e)&&(o.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,s="function"==typeof Symbol&&!!Symbol.toStringTag,p=!(0 in[,]),u=function(){return!1};if("object"==typeof document){var E=document.all;l.call(E)===l.call(document.all)&&(u=function(e){if((p||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=r?function(e){if(u(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{r(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&c(e)}:function(e){if(u(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(s)return c(e);if(a(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&c(e)}},9612:e=>{"use strict";e.exports=Object},9675:e=>{"use strict";e.exports=TypeError},9721:(e,t,n)=>{"use strict";var o=n(6556),r=n(4035),i=o("RegExp.prototype.exec"),a=n(9675);e.exports=function(e){if(!r(e))throw new a("`regex` must be a RegExp");return function(t){return null!==i(e,t)}}},9752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unpackPayload=void 0;var o=n(6968),r=n(3678);t.unpackPayload=function(e){var t;if(e.data.slice(0,o.prefix.length)!==o.prefix)return!1;try{t=JSON.parse(e.data.slice(o.prefix.length))}catch(e){return!1}if(t.reply){var n=e.origin,i=e.source,a=t.reply;t.reply=function(e){if(i){var t=r.packagePayload(a,n,e);t&&i.postMessage(t,n)}}}return t}},9923:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dispatch=void 0;var o=n(6968);t.dispatch=function(e,t,n,r,i){if(o.subscribers[e]&&o.subscribers[e][t]){var a=[];n&&a.push(n),r&&a.push(r);for(var c=0;c<o.subscribers[e][t].length;c++)o.subscribers[e][t][c].apply(i,a)}}},9957:(e,t,n)=>{"use strict";var o=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=n(6743);e.exports=i.call(o,r)},9974:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.broadcast=void 0;var o=n(5213);t.broadcast=function e(t,n,r){var i,a=0;try{for(t.postMessage(n,r),o.hasOpener(t)&&e(t.opener.top,n,r);i=t.frames[a];)e(i,n,r),a++}catch(e){}}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="";var o={};return(()=>{"use strict";n.r(o),n.d(o,{CardMetadata:()=>e.CardMetadata,CardType:()=>le,CollectContainer:()=>yr,CollectElement:()=>No,CollectElementInput:()=>e.CollectElementInput,CollectElementOptions:()=>e.CollectElementOptions,CollectElementUpdateOptions:()=>e.CollectElementUpdateOptions,CollectOptions:()=>e.ICollectOptions,CollectResponse:()=>e.CollectResponse,ComposableContainer:()=>Li,ComposableElement:()=>ko,ComposableRevealContainer:()=>Va,ComposableRevealElement:()=>ki,ContainerOptions:()=>e.ContainerOptions,ContainerType:()=>Xa,DeleteOptions:()=>e.IDeleteOptions,DeleteRecord:()=>e.IDeleteRecord,DeleteRequest:()=>e.IDeleteRecordInput,DeleteResponse:()=>e.DeleteResponse,DetokenizeRecord:()=>e.DetokenizeRecord,DetokenizeRequest:()=>e.IDetokenizeInput,DetokenizeResponse:()=>e.DetokenizeResponse,ElementState:()=>e.ElementState,ElementType:()=>ce,Env:()=>ke,ErrorTextStyles:()=>e.ErrorTextStyles,EventName:()=>xe,GetByIdRequest:()=>e.IGetByIdInput,GetByIdResponse:()=>e.GetByIdResponse,GetOptions:()=>e.IGetOptions,GetRecord:()=>e.IGetRecord,GetRequest:()=>e.IGetInput,GetResponse:()=>e.GetResponse,InputStyles:()=>e.InputStyles,InsertOptions:()=>e.IInsertOptions,InsertRecord:()=>e.IInsertRecord,InsertRequest:()=>e.IInsertRecordInput,InsertResponse:()=>e.InsertResponse,LabelStyles:()=>e.LabelStyles,LogLevel:()=>Ce,RedactionType:()=>Me,RenderFileResponse:()=>e.RenderFileResponse,RevealContainer:()=>Yn,RevealElement:()=>vn,RevealElementInput:()=>t.IRevealElementInput,RevealElementOptions:()=>t.IRevealElementOptions,RevealRecord:()=>e.IRevealRecord,RevealResponse:()=>e.RevealResponse,SkyflowConfig:()=>i.ISkyflow,ThreeDS:()=>Ai,ThreeDSBrowserDetails:()=>r.ThreeDSBrowserDetails,UpdateOptions:()=>e.IUpdateOptions,UpdateRequest:()=>e.IUpdateRequest,UpdateResponse:()=>e.UpdateResponse,UploadFilesResponse:()=>e.UploadFilesResponse,ValidationRule:()=>e.IValidationRule,ValidationRuleType:()=>Ve,default:()=>ic});var e={};n.r(e),n.d(e,{o9:()=>ke,Ur:()=>xe,$b:()=>Ce,Go:()=>Ue,eb:()=>Me,dF:()=>Pe,UL:()=>Ve});var t={};n.r(t),n.d(t,{A:()=>Yn});var r={};n.r(r),n.d(r,{A:()=>Ai});var i={};function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}function l(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,c(o.key),o)}}function u(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.r(i),n.d(i,{K:()=>Xa,A:()=>rc});var E=n(2281),d=n.n(E);function f(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=crypto.getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)*16|0;return("x"===e?t:3&t|8).toString(16)})}const _=n.p+"2afb5d11fb02e9292eaf.svg",I=n.p+"5408d9cd30b616684aa0.svg",v=n.p+"a9431336dd9f3e17b880.svg",m=n.p+"9b996d698afd3d404564.svg",y=n.p+"404966085770d8ec21ca.svg",L=n.p+"8062a86943450f142966.svg",O=n.p+"407dfd9c3fd800945b74.svg",T=n.p+"08ad88dee7d4519954ec.svg",N=n.p+"d418de915d45f039ac22.svg",g=n.p+"cbee67fb3d652dad9e25.svg",R=(n.p,n.p,n.p,n.p+"bcd5969a8a86792c2995.svg");const h={infoLogs:{INITIALIZE_CLIENT:"%s1 - Initializing skyflow client.",CLIENT_INITIALIZED:"%s1 - Initialized skyflow client successfully.",CREATE_COLLECT_CONTAINER:"%s1 - Creating Collect container.",COLLECT_CONTAINER_CREATED:"%s1 - Created Collect container successfully.",INITIALIZE_COMPOSABLE_CLIENT:"%s1 - Initializing Composable container.",CREATE_REVEAL_CONTAINER:"%s1 - Creating Reveal container.",REVEAL_CONTAINER_CREATED:"%s1 - Created Reveal container successfully.",VALIDATE_RECORDS:"%s1 - Validating insert records.",VALIDATE_DETOKENIZE_INPUT:"%s1 - Validating detokenize input.",VALIDATE_GET_INPUT:"%s1 - Validating get input.",VALIDATE_DELETE_INPUT:"%s1 - Validating delete input.",VALIDATE_COLLECT_RECORDS:"%s1 - Validating collect element input.",VALIDATE_REVEAL_RECORDS:"%s1 - Validating reveal element input.",VALIDATE_RENDER_RECORDS:"%s1 - Validating file render element input.",CREATED_ELEMENT:"%s1 - Created %s2 element.",ELEMENT_MOUNTED:"%s1 - %s2 Element mounted.",ELEMENT_REVEALED:"%s1 - %s2 Element revealed.",FILE_RENDERED:"%s1 - %s2 File rendered.",COLLECT_SUBMIT_SUCCESS:"%s1 - Data has been collected successfully.",UPLOAD_FILES_SUCCESS:"%s1 - Files uploaded successfully.",MULTI_UPLOAD_FILES_SUCCESS:"%s1 - Multiple files uploaded successfully.",REVEAL_SUBMIT_SUCCESS:"%s1 - Data has been revealed successfully.",RENDER_SUBMIT_SUCCESS:"%s1 - File download URL has been fetched successfully.",INSERT_DATA_SUCCESS:"%s1 - Data has been inserted successfully.",DETOKENIZE_SUCCESS:"%s1 - Data has been revealed successfully.",GET_SUCCESS:"%s1 - Data has been revealed successfully.",DELETE_SUCCESS:"%s1 - Data has been deleted successfully.",BEARER_TOKEN_LISTENER:"%s1 - Get bearer token listener added.",CAPTURED_BEARER_TOKEN_EVENT:"%s1 - Captured bearer token event.",BEARER_TOKEN_RESOLVED:"%s1 - GetBearerToken promise resolved successfully.",REUSE_BEARER_TOKEN:"%s1 - Reusing the bearer token.",PUREJS_CONTROLLER_INITIALIZED:"%s1 - SkyflowController initialized.",PUREJS_LISTENER_READY:"%s1 - Purejs listener ready.",EMIT_PURE_JS_CONTROLLER:"%s1 - Emitted Skyflow controller event.",INSERT_TRIGGERED:"%s1 - Insert method triggered.",UPDATE_TRIGGERED:"%s1 - Update method triggered.",DETOKENIZE_TRIGGERED:"%s1 - Detokenize method triggered.",GET_TRIGGERED:"%s1 - Get method triggered.",GET_BY_ID_TRIGGERED:"%s1 - Get method triggered.",DELETE_TRIGGERED:"%s1 - Delete method triggered.",EMIT_PURE_JS_REQUEST:"%s1 - Emitted %s2 request.",CAPTURE_PURE_JS_REQUEST:"%s1 - Captured %s2 event.",LISTEN_PURE_JS_REQUEST:"%s1 - Listening to %s2 event.",CAPTURE_PUREJS_FRAME:"%s1 - Captured SkyflowController frame ready event.",FETCH_RECORDS_RESOLVED:"%s1 - Detokenize request is resolved.",INSERT_RECORDS_RESOLVED:"%s1 - Insert request is resolved.",UPDATE_RECORD_RESOLVED:"%s1 - Update request is resolved.",GET_RESOLVED:"%s1 - Get request is resolved.",GET_BY_SKYFLOWID_RESOLVED:"%s1 - GetById request is resolved.",DELETE_RESOLVED:"%s1 - Delete request is resolved",EMIT_EVENT:"%s1 - %s2 event emitted",CAPTURE_EVENT:"%s1 - Captured event %s2",METRIC_CAPTURE_EVENT:"Metric event captured Successfully",UNKNOWN_METRIC_CAPTURE_EVENT:"Metric event capturing Failed with %s1",UNKNOWN_RESPONSE_FROM_METRIC_EVENT:"Metric event Captured with Unknown Response",LISTEN_COLLECT_FRAME_READY:"%s1 - Listening to collect FRAME_READY event",EMIT_COLLECT_ELEMENT_FRAME_READY:"%s1 - Emitting collect element %s2 FRAME_READY event",ENTERED_COLLECT_FRAME_READY_CB:"%s1 - In IFrameForm constructor, Entered FRAME_READY callback",EXECUTE_COLLECT_ELEMENT_FRAME_READY_CB:"%s1 - In IFrameForm, executing collect element, %s2 FRAME_READY callback",CLIENT_METADATA_NOT_SET:"%s1 - Client metadata not set",EXECUTE_COLLECT_ELEMENT_INIT:"%s1 - calling Collect element init",INSIDE__COLLECT_ELEMENT_INIT:"%s1 - Inside Collect element init for %s2",CREATING_COLLECT_ELEMENT_FORM:"%s1 - Start, creating iframe form for %s2",COLLECT_FRAME_READY_CB:"%s1 - In FrameElements, executing collect element FRAME_READY cb for %s2, sending metadata",INSIDE_FRAME_ELEMENTS_CONSTRUCOTR:"%s1 - Inside FrameElements constructor",SETUP_IN_START:"%s1 - Inside FrameElements start(), calling setup",SETUP_IN_CONSTRUCTOR:"%s1 - Inside FrameElements constructor, calling setup",COLLECT_ELEMET_START:"%s1 - %s2, Collect Element start",COLLECT_CONTROLLER_START:"%s1 - %s2, Collect Controller start",REVEAL_ELEMENT_START:"%s1 - %s2, Reveal Element start",EMIT_COLLECT_FRAME_CONTROLLER_EVENT:"%s1 - Emit collect FrameController FRAME_READY event",EXECUTE_COLLECT_CONTROLLER_READY_CB:"%s1 - Executing collect FrameController FRAME_READY callback, set client metadata",IFRAMEFORM_CONSTRUCTOR_FRAME_READY_LISTNER:"%s1 - In IFrameForm constructor, Adding listener for FRAME_READY event",IFRAMEFORM_CONSTRUCTOR_TOKENIZATION_LISTNER:"%s1 - In IFrameForm constructor, Adding listener for TOKENIZATION_REQUEST event",CURRENT_ENV:"%s1 - Client Env is %s2",CURRENT_LOG_LEVEL:"%s1 - Client LogLevel is %s2",VALIDATE_GET_BY_ID_INPUT:"%s1 - Validating getByID input."},errorLogs:{MULTI_FILE_NOT_SUPPORTED:"Multi file upload is only supported in MULT_FILE_INPUT element in composable container. Please use MULT_FILE_INPUT element for multi file upload.",INVALID_REVEAL_COMPOSABLE_INPUT:"Reveal composable input is invalid. Please provide a valid input.",NO_ELEMENTS_IN_COLLECT:"Validation error. No elements found in collect container",NO_ELEMENTS_IN_COMPOSABLE:"Validation error. No elements found in composable container",NO_ELEMENTS_IN_REVEAL:"Validation error. No elements found in reveal container",INVALID_FILE_NAMES:"Invalid File Name. Only alphanumeric characters and !-_.*() are allowed.",INVALID_FILE_NAME:"Invalid File Name. Only alphanumeric characters and !-_.*() are allowed.",CLIENT_CONNECTION:"client connection not established. client info has not reached iframes",INVALID_BEARER_TOKEN:"Token generated from 'getBearerToken' callback function is invalid. Make sure the implementation of 'getBearerToken' is correct.",BEARER_TOKEN_REJECTED:"'getBearerToken' callback function call failed with rejected promise. Make sure the implementation of 'getBearerToken' is correct.",VAULTID_IS_REQUIRED:"Initialization failed. Invalid credentials. Specify a valid 'vaultID'.",EMPTY_VAULTID_IN_INIT:"Initialization failed. Invalid credentials. Specify a valid 'vaultID'.",VAULTURL_IS_REQUIRED:"Initialization failed. Invalid credentials. Specify a valid 'vaultURL'",EMPTY_VAULTURL_IN_INIT:"Initialization failed. Invalid credentials. Specify a valid 'vaultURL'",INVALID_VAULTURL_IN_INIT:"Initialization failed. Invalid client credentials. 'vaultURL' must be begin with 'https://.'",GET_BEARER_TOKEN_IS_REQUIRED:"Initialization failed. Invalid client credentials. Specify a valid bearer token.",EMPTY_CONTAINER_TYPE:"Container creation failed. 'containerType' is invalid. Specify a valid container type.",INVALID_CONTAINER_TYPE:"Container creation failed. '%s1' is invalid. Specify a valid container type.",INVALID_COLLECT_VALUE:"Invalid value",INVALID_COLLECT_VALUE_WITH_LABEL:"Invalid %s1",REQUIRED_COLLECT_VALUE:"%s1 is required",DEFAULT_REQUIRED_COLLECT_VALUE:"Field is required",RECORDS_KEY_NOT_FOUND:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",INVALID_RECORDS_IN_INSERT:"Validation error. Invalid records. Specify a value of type array instead.",EMPTY_RECORDS_IN_INSERT:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_TABLE_IN_INSERT:"Validation error. Missing 'table' key in records at index %s1. Provide a valid 'table' key.",EMPTY_TABLE_IN_INSERT:"Validation error. 'table' key cannot be empty in records at index %s1. Specify a non-empty value instead.",INVALID_TABLE_IN_INSERT:"Validation error. Invalid 'table' key in records at index %s1. Specify a value of type string instead.",EMPTY_FIELDS_IN_INSERT:"Validation error. Missing 'fields' key in records at index %s1. Provide a valid 'fields' key.",MISSING_FIELDS_IN_INSERT:"Validation error. 'fields' key cannot be empty in records at index %s1. Specify a non-empty value instead.",INVALID_FIELDS_IN_INSERT:"Validation error. Invalid 'fields' key in records at index %s1. Specify a value of type object instead.",INVALID_TOKENS_IN_INSERT:"Validation error.Invalid 'tokens' key in insert options. Specify a boolean value for tokens.",RECORDS_KEY_NOT_FOUND_DELETE:"Validation error. Missing 'records' key. Provide a valid 'records' key.",INVALID_RECORD_KEY_UPDATE:"Validation error. Invalid 'record' key found. Specify a value of type object instead.",MISSING_TABLE_IN_UPDATE:"Validation error. Missing 'table' key in update record. Provide a valid 'table' key.",EMPTY_TABLE_IN_UPDATE:"Validation error. 'table' key cannot be empty in update record. Specify a non-empty value instead.",INVALID_TABLE_IN_UPDATE:"Validation error. Invalid 'table' key in update record. Specify a value of type string instead.",MISSING_FIELDS_IN_UPDATE:"Validation error. Missing 'fields' key in update record. Provide a valid 'fields' key.",EMPTY_FIELDS_IN_UPDATE:"Validation error. 'fields' key cannot be empty in update record. Specify a non-empty value instead.",INVALID_FIELDS_IN_UPDATE:"Validation error. Invalid 'fields' key in update record. Specify a value of type object instead.",MISSING_SKYFLOWID_IN_UPDATE:"Validation error. Missing 'skyflowID' key in update record. Provide a valid 'skyflowID' key.",EMPTY_SKYFLOWID_IN_UPDATE:"Validation error. 'skyflowID' key cannot be empty in update record. Specify a non-empty value as a string.",INVALID_SKYFLOWID_IN_UPDATE:"Validation error. Invalid 'skyflowID' key in update record. Specify a value of type string instead.",INVALID_TOKENS_IN_UPDATE:"Validation error.Invalid 'tokens' key in update options. Specify a boolean value for tokens.",INVALID_RECORDS_IN_DELETE:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",EMPTY_RECORDS_IN_DELETE:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_TABLE_IN_DELETE:"Validation error. Missing 'table' key in records at index %s1. Provide a valid 'table' key.",EMPTY_TABLE_IN_DELETE:"Validation error. 'table' key cannot be empty in records at index %s1. Specify a non-empty value instead.",INVALID_TABLE_IN_DELETE:"Validation error. Invalid 'table' key in records at index %s1. Specify a value of type string instead.",MISSING_ID_IN_DELETE:"Validation error. Missing 'id' key in records at index %s1. Provide a valid 'id' key.",EMPTY_ID_IN_DELETE:"Validation error. 'id' key cannot be empty in records at index %s1. Specify a non-empty value instead.",INVALID_ID_IN_DELETE:"Validation error. Invalid 'id' key in records at index %s1. Specify a value of type string instead.",DELETE_RECORDS_REJECTED:"Delete failed. Delete request is rejected.",INVALID_TOKENS_IN_COLLECT:"Validation error. Invalid tokens. Specify a boolean value for tokens.",RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS:"Validation error.records key not found in additionalFields. Specify a records key in addtionalFields.",INVALID_RECORDS_IN_ADDITIONAL_FIELDS:"Validation error.'records' must be an array within additionalFields.",EMPTY_RECORDS_IN_ADDITIONAL_FIELDS:"Validation error. 'records' object cannot be empty within additionalFields. Specify a non-empty value instead.",MISSING_TABLE_IN_ADDITIONAL_FIELDS:"Validation error. 'table' key not found in additionalFields record at index %s1",INVALID_TABLE_IN_ADDITIONAL_FIELDS:"Validation error.Invalid table key value in additionalFields record at index %s1. Specify a value of type string for table key.",INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:"Validation error.Invalid 'skyflow_id' key value in additionalFields record at index %s1. Specify a valid value for 'skyflow_id' key.",MISSING_FIELDS_IN_ADDITIONAL_FIELDS:"Validation error.'fields' key not found in additionalFields record at index %s1. Specify a 'fields' key in additionalFields record at index %s1.",INVALID_FIELDS_IN_ADDITIONAL_FIELDS:"Validation error.invaid 'fields' key value in additionalFields record at index %s1. Specify a value of type array for 'fields' key.",RECORDS_KEY_NOT_FOUND_DETOKENIZE:"Delete failed. Delete request is rejected.",EMPTY_RECORDS_DETOKENIZE:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",INVALID_RECORDS_IN_DETOKENIZE:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_TOKEN_IN_DETOKENIZE:"Validation error. Missing 'token' key in records at index %s1. Provide a valid 'token' key.",INVALID_TOKEN_IN_DETOKENIZE:"Validation error. Invalid 'token' key in records at index %s1. Specify a value of type string instead.",RECORDS_KEY_NOT_FOUND_GET:"Validation error. Missing 'records' key. Provide a valid 'records' key.",INVALID_RECORDS_IN_GET:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",EMPTY_RECORDS_GET:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_IDS_IN_GET:"Validation error. Missing 'ids' key in records at index %s1. Provide a valid 'ids' key.",INVALID_IDS_IN_GET:"Validation error. Invalid 'ids' key found. Specify a value of type array instead.",INVALID_COLUMN_VALUES_IN_GET:"Validation error. Invalid 'columnValues' key found. Specify a value of type array instead.",EMPTY_IDS_IN_GET:"Validation error. 'ids' key cannot be an array of empty strings in records at index %s1. Specify non-empty values instead.",INVALID_SKYFLOWID_TYPE_IN_GET:"Validation error. Invalid 'id' found in 'ids' array in 'records' at index %s1 . Specify a value of type string instead.",MISSING_TABLE_IN_GET:"Validation error. Missing 'table' key in records at index %s1. Provide a valid 'table' key.",INVALID_TABLE_IN_GET:"Validation error. Invalid 'table' key in records at index %s1. Specify a value of type string instead.",MISSING_REDACTION_IN_GET:"Validation error. Missing 'redaction' key in records at index %s1. Provide a valid 'redaction' key.",INVALID_REDACTION_TYPE_IN_GET:"Validation error. Invalid 'redaction' key in records at index %s1. Specify a valid redaction type.",INVALID_TOKENS_IN_GET:"Validation error. Invalid tokens in get options. Specify a boolean value for tokens.",TOKENS_GET_COLUMN_NOT_SUPPORTED:"Validation error. 'columnName' and 'columnValues' cannot be used when 'tokens' are set to true in get options. Either set 'tokens' to false or use 'ids' instead.",REDACTION_WITH_TOKENS_NOT_SUPPORTED:"Get failed. Redaction cannot be applied when 'tokens' are set to true in get options. Either remove redaction or set 'tokens' to false.",INVALID_REDACTION_TYPE_IN_DETOKENIZE:"Validation error. Invalid 'redaction' key in records at index %s1. Specify a valid redaction type.",EMPTY_RECORDS_REVEAL:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_TOKEN_KEY_REVEAL:"Validation error. Missing 'token' key for reveal element. Specify a valid value for token.",MISSING_SKYFLOWID_KEY_REVEAL:"Validation error. Missing 'skyflowID' key for file render element. Provide a valid 'skyflowID' key.",MISSING_TABLE_KEY_REVEAL:"Validation error.'table' key not found for file render element. Specify a valid value for 'table' key.",MISSING_COLUMN_KEY_REVEAL:"Validation error.'column' key not found for file render element. Specify a valid value for 'column' key.",INVALID_SKYFLOW_ID_REVEAL:"Validation error. Invalid 'skyflowID' key for file render element. Specify a value of type string instead.",INVALID_TABLE_REVEAL:"Validation error. Invalid 'table' key for file render element. Specify a value of type string instead.",INVALID_COLUMN_NAME_REVEAL:"Validation error. Invalid 'column' key for file render element. Specify a value of type string instead.",EMPTY_SKYFLOW_ID_REVEAL:"Validation error. 'skyflowID' key cannot be empty for file render element. Specify a non-empty value instead.",EMPTY_TABLE_REVEAL:"Validation error. 'table' key cannot be empty for file render element. Specify a non-empty value instead.",EMPTY_COLUMN_NAME_REVEAL:"Validation error. 'column' key cannot be empty for file render element. Specify a non-empty value instead.",INVALID_TOKEN_ID_REVEAL:"Validation error. Invalid 'token' key found for reveal element. Specify a value of type string instead.",INVALID_LABEL_REVEAL:"Validation error. Invalid 'label' key found for reveal element. Specify a value of type string instead.",INVALID_ALT_TEXT_REVEAL:"Validation error. Invalid 'altText' key found for reveal element. Specify a value of type string instead.",INVALID_ALT_TEXT_RENDER:"Validation error. Invalid 'altText' key found for reveal element. Specify a value of type string instead.",INVALID_FORMAT_REVEAL:"Validation error. Invalid 'format' key found for reveal element. Specify a value of type string instead.",EMPTY_FORMAT_REVEAL:"Validation error. 'format' key cannot be empty for reveal element. Specify a non-empty value instead.",INVALID_FORMAT_VALUE_REVEAL:"Validation error. Invalid 'format' key found for reveal element. Specify a value of type string instead.",INVALID_REDACTION_TYPE_REVEAL:"Validation error. Invalid 'redaction' key found for reveal element. Specify a valid redaction type.",ELEMENTS_NOT_MOUNTED_REVEAL:"Reveal failed. Make sure to mount all elements before invoking 'reveal' function.",EMPTY_TABLE_IN_ADDITIONAL_FIELDS:"Validation error.'table' field cannot be empty in additionalFields record at index %s1. Specify a non-empty value instead.",EMPTY_FIELDS_IN_ADDITIONAL_FIELDS:"Validation error.'fields' object cannot be empty in additionalFields record at index %s1. Specify a non-empty value instead.",EMPTY_TOKEN_IN_DETOKENIZE:"Validation error. 'token' key cannot be empty in records at index %s1. Specify a non-empty value instead.",EMPTY_SKYFLOWID_IN_GET:"Validation error. 'id' cannot be empty in 'ids' array in 'records' at index %s1. Specify non-empty values instead.",EMPTY_TABLE_IN_GET:"Validation error. 'table' key cannot be empty in records at index %s1. Specify a non-empty value instead.",EMPTY_REDACTION_TYPE_IN_GET:"Validation error. 'redaction' key cannot be empty in records at index %s1. Specify a non-empty value instead.",EMPTY_TOKEN_ID_REVEAL:"Validation error. 'token' key cannot be empty for reveal element. Specify a non-empty value instead.",FETCH_RECORDS_REJECTED:"Detokenize failed. Detokenize request is rejected.",INSERT_RECORDS_REJECTED:"Insert failed. Insert request is rejected.",UPDATE_RECORD_REJECTED:"Update failed. Update request is rejected.",GET_REJECTED:"Get failed. Get request is rejected.",FAILED_REVEAL:"Reveal failed. Some errors were encountered.",FAILED_RENDER:"Failed to render file. Some errors were encountered.",SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED:"Validation error. skyflowID and token can not be specified together.",MISSING_TABLE_IN_COLLECT:"Validation error.'table' key not found for collect element. Specify a valid value for 'table' key.",EMPTY_TABLE_IN_COLLECT:"Validation error.'table' cannot be empty for collect element. Specify a non-empty value for 'table'.",EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:"Validation error.'id' cannot be empty in addtionalFields record at index %s1. Specify a non-empty value for 'id'.",EMPTY_SKYFLOW_ID_COLLECT:"Validation error.'skyflowID' cannot be empty for collect element. Specify a non-empty value for 'skyflowID'.",INVALID_TABLE_IN_COLLECT:"Validation error. Invalid type for 'table' key value for collect element. Specify a value of type string instead.",INVALID_SKYFLOWID_IN_COLLECT:"Validation error. Invalid type for 'skyflowID' key value for collect element. Specify a value of type string instead.",MISSING_COLUMN_IN_COLLECT:"Validation error. 'column' key not found for collect element. Specify a valid column.",MISSING_SKYFLOWID_IN_COLLECT:"Validation error. 'skyflow_id' key not found for collect element. Specify a valid skyflowID.",EMPTY_COLUMN_IN_COLLECT:"Validation error. 'column' key cannot be empty for collect element. Specify a non-empty value instead.",INVALID_COLUMN_IN_COLLECT:"Validation error. Invalid type for 'column' key for collect element. Specify a value of type string instead.",UNIQUE_ELEMENT_NAME:"Validation error.Element name must be unique: %s1. Please enter a unique element name.",ELEMENTS_NOT_MOUNTED:"Collect failed. Make sure all elements are mounted before calling 'collect' on the container.",DUPLICATE_ELEMENT:"Mount failed.'%s1' appeared multiple times in '%s2'. Make sure each column in a record is unique.",DUPLICATE_ELEMENT_ADDITIONAL_FIELDS:"Mount failed. '%s1' appeared in record index '%s2' in the additional fields. Make sure each column in a record is unique.",MISSING_ELEMENT_TYPE:"Mount failed. Invalid element type. Specify a valid 'type'.",EMPTY_ELEMENT_TYPE:"Mount failed. Invalid element type. Specify a valid 'type'",INVALID_ELEMENT_TYPE:"Mount failed. Invalid element type. Specify a valid 'type'",INVALID_ELEMENT_SELECTOR:"Mount failed. 'div' element not found. Specify a valid 'div'.",CANNOT_CHANGE_ELEMENT:"Element can't be changed.",INVALID_IFRAME:"Error occured while creating an iframe",INVALID_FIELD:"Invalid Field.",FRAME_NOT_FOUND:"Frame %s1 not found. Could not initialise element.",COMPLETE_AND_VALID_INPUTS:"Mount failed. Incomplete inputs for '%s1'. Make sure all inputs are complete and valid.",REQUIRED_PARAMS_NOT_PROVIDED:"Initialisation error. Couldn't find iframe name for element.",INVALID_EVENT_TYPE:"Invalid event type. Specify a valid event type.",INVALID_EVENT_LISTENER:" Invalid event listener. Please specify a valid event listener.",MISSING_HANDLER_IN_EVENT_LISTENER:"Event handler callback is missing. Provide a valid event handler callback function.",INVALID_HANDLER_IN_EVENT_LISTENER:"Validation error. Invalid type for 'validations' key. Specify a value of type array instead.",UNKNOWN_ERROR:"Unknown Error.",NETWORK_ERROR:"A network error occurred. This could be a CORS issue or a dropped internet connection. It is not possible for us to know. Please reach out to skyflow if you see this error",TIMEOUT_ERROR:"The request timed out, which could indicate a slow or unresponsive server. Check your network connection and try again.",ABORT_ERROR:"The request was cancelled. This can happen if the request was manually stopped or if a new request was triggered before the previous one finished.",GENERIC_ERROR:"A network error occurred. This could be caused by temporary internet issues, DNS resolution failures, or connection resets. Check your network connection and try again.",OFFLINE_ERROR:"Can't connect to the internet. Check your network connection and try again.",CONNECTION_ERROR:"Error while initializing the connection.",ERROR_OCCURED:"Error occurred.",INVALID_VALIDATIONS_TYPE:"Validation error. Invalid validations type.",MISSING_VALIDATION_RULE_TYPE:"Validation error. 'type' for validation rule missing in validations array at index %s1. Specify a valid 'type' for each rule in validations array.",INVALID_VALIDATION_RULE_TYPE:"Validation error. Invalid 'type' for validation rule found in validations array at index %s1 . Specify a valid rule type for validation rule.",MISSING_VALIDATION_RULE_PARAMS:"Validation error. 'params' for validation rule missing in validations array at index %s1. Specify valid 'params' for each rule in validations array.",INVALID_VALIDATION_RULE_PARAMS:"Validation error. Invalid 'params' for validation rule found in validations array at index %s1 . Specify valid params for validation rule.",MISSING_REGEX_IN_REGEX_MATCH_RULE:"Validation error. Missing 'regex' param in validations array at index %s1. Specify a valid value for regex param.",INVALID_REGEX_IN_REGEX_MATCH_RULE:"Validation error. Invalid value for 'regex' param found for regex in validations array at index %s1. Provide a valid value regular expression for regex param.",MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE:"Validation error. Missing both 'min' and 'max' params in validations array at index %s1. Specify either one or both params.",MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE:"Validation error. Missing 'element' param in validations array at index %s1. Specify a valid value for element param. ",INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE:"Validation error. Invalid 'element' provided in validations array at index %s1. Specify a value of type collect element instead.",ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE:"Validation error. Element provided in validations array at index %s1 is not mounted. Make sure the element is mounted.",EMPTY_ELEMENT_IN_MOUNT:"mount element with type %s1 - Mount cannot be empty.",VALIDATION_FAILED:"Validation failed",REVEAL_ELEMENT_ERROR_STATE:"Reveal failed. 'setError' is invoked on one or more elements. Make sure to reset any custom errors on all elements before invoking 'reveal' function.",INVALID_FILE_TYPE:"Invalid File Type.",INVALID_FILE_SIZE:"Invalid File Size",NO_FILE_SELECTED:"No File Selected",INVALID_UPSERT_OPTION_TYPE:"Validation error. Invalid 'upsert' key in insert options. Specify a value of type array instead",EMPTY_UPSERT_OPTIONS_ARRAY:"Validation error. 'upsert' key cannot be an empty array in insert options. Make sure to add atleast one table column object in upsert array.",INVALID_UPSERT_OPTION_OBJECT_TYPE:"Validation error. Invalid value in upsert array at index %s1 in insert options. Specify objects with 'table' and 'column' keys instead.",MISSING_TABLE_IN_UPSERT_OPTION:"Validation error. Missing 'table' key in upsert array at index %s1. Provide a valid 'table' key.",MISSING_COLUMN_IN_UPSERT_OPTION:"Validation error. Missing 'column' key in upsert array at index %s1. Provide a valid 'column' key",INVALID_TABLE_IN_UPSERT_OPTION:"Validation error. Invalid 'table' key in upsert array at index %s1. Specify a value of type string instead.",INVALID_COLUMN_IN_UPSERT_OPTION:"Validation error. Invalid 'column' key in upsert array at index %s1. Specify a value of type string instead.",INVALID_RECORD_COLUMN_VALUE:"Validation error. Invalid 'column' key. Specify a value of type string instead.",MISSING_RECORD_COLUMN_VALUE:"Validation error. Column Values is required when Column Name is specified.",MISSING_RECORD_COLUMN_NAME:"Validation error. Column Name is required when Column Values are specified.",INVALID_RECORD_COLUMN_VALUE_TYPE:"Validation error. Invalid Type of Records Column Values in records at index %s1",INVALID_COLUMN_VALUES_TYPE:"Validation error. Invalid column values type, should be an Array.",EMPTY_RECORD_COLUMN_VALUES:"Validation error. Record column values cannot be empty in records at index %s1",EMPTY_COLUMN_VALUE:"Validation error. Column Value is empty in records at index %s1",MISSING_IDS_OR_COLUMN_VALUES_IN_GET:"Validation error. Both 'ids' or 'columnValues' keys are missing. Either provide 'ids' or 'columnValues' with 'columnName' to fetch records.",SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED:"Validation error. ids and columnName can not be specified together.",GET_BY_SKYFLOWID_RESOLVED:"%s1 - GetById request is resolved.",RECORDS_KEY_NOT_FOUND_GETBYID:"Validation error. Missing 'records' key. Provide a valid 'records' key.",INVALID_RECORDS_IN_GETBYID:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",EMPTY_RECORDS_GETBYID:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_IDS_IN_GETBYID:"Validation error. Missing 'ids' key in records at index %s1. Provide a valid 'ids' key.",INVALID_IDS_IN_GETBYID:"Validation error. Invalid 'ids' key in records at index %s1. ids object should be an array.",EMPTY_IDS_IN_GETBYID:"Validation error. 'ids' key cannot be an empty array in records at index %s1. Make sure to provide atleast one id in array.",INVALID_SKYFLOWID_TYPE_IN_GETBYID:"Validation error. Invalid value in ids array in records at index %s1. Specify a value of type string instead.",MISSING_TABLE_IN_GETBYID:"Validation error. Missing 'table' key in records at index %s1. Provide a valid 'table' key.",INVALID_TABLE_IN_GETBYID:"Validation error. Invalid 'table' key in records at index %s1. Specify a value of type string instead.",MISSING_REDACTION_IN_GETBYID:"Validation error. Missing 'redaction' key in records at index %s1. Provide a valid 'redaction' key.",INVALID_REDACTION_TYPE_IN_GETBYID:"Validation error. Invalid 'redaction' key in records at index %s1. Specify a valid redaction type.",EMPTY_SKYFLOWID_IN_GETBYID:"Validation error. 'ids' key cannot be an array of empty strings in records at index %s1. Specify non-empty values instead.",EMPTY_TABLE_IN_GETBYID:"Validation error. 'table' key cannot be empty in records at index %s1. Specify a non-empty value instead.",EMPTY_REDACTION_TYPE_IN_GETBYID:"Validation error. 'redaction' key cannot be empty in records at index %s1. Specify a non-empty value instead.",GET_BY_SKYFLOWID_REJECTED:"GetById failed. GetById request is rejected.",MISSING_COMPOSABLE_LAYOUT_KEY:"Mount failed. Layout is not specified in composable container options. Specify a valid layout.",EMPTY_COMPOSABLE_LAYOUT_ARRAY:"Mount failed. Layout array is empty in composable container options. Specify a valid layout array.",INVALID_COMPOSABLE_LAYOUT_TYPE:"Mount failed. Invalid layout array values. Make sure all values in the layout array are positive numbers.",NEGATIVE_VALUES_COMPOSABLE_LAYOUT:"Mount failed. layout array should only have positive numbers in composable container options.",MISMATCH_ELEMENT_COUNT_LAYOUT_SUM:"Mount failed. Invalid layout array values. Make sure all values in the layout array are positive numbers.",MISSING_COMPOSABLE_CONTAINER_OPTIONS:"Mount failed. An options object is required for composable containers. Specify a valid options object.",INVALID_COMPOSABLE_CONTAINER_OPTIONS:"Mount failed. Invalid options object. Specify a valid options object.",COMPOSABLE_CONTAINER_NOT_MOUNTED:"Mount elements first. Make sure all elements are mounted before calling 'collect' on the container.",INVALID_BOOLEAN_OPTIONS:"Validation error. Invalid %s1 found in collect options. Specify a value of type boolean instead.",INVALID_MASKING_CHARACTER:"Validation error. Invalid masking character. Specify a valid masking character. ",INVALID_INPUT_OPTIONS_FORMAT:"Mount failed. Format must be a non-empty string. Specify a valid format.",INVALID_INPUT_OPTIONS_TRANSLATION:"Mount failed. Translation must be a non-empty object. Specify a valid translation.",EMPTY_COLLECT_CUSTOM_FORMAT:"Mount failed. '%s1' can not be an empty object. Specify a valid object.",INVALID_ALLOWED_OPTIONS:"Validation error. Invalid options, allowedFileType must be of string array type.",EMPTY_ALLOWED_OPTIONS_ARRAY:"Validation error. Invalid options value, allowedFileType array is empty.",INVALID_ALLOWED_FILETYPE_ARRAY:"Validation error. Invalid options value, allowedFileType array must contain only string elements.",INVALID_OPTION_CARD_METADATA:"Validation error. container create - Invalid type, cardMetadata must be of non-empty object type.",INVALID_OPTION_CARD_SCHEME:"Validation error. container create - Invalid options, scheme must be of string array type.",INVALID_FIELD_SHOW_3DS_CHALLEGNGE:"Invalid field '%s1'. Cannot initiate 3DS Challenge. Verify '%s1'",NO_FILE_ELEMENT_FOUND:"No FILE_INPUT element found in the container."},warnLogs:{INVALID_EXPIRATION_DATE_FORMAT:"EXPIRATION_DATE format must be in one of %s1, the format is set to default MM/YY",INVALID_EXPIRATION_YEAR_FORMAT:"EXPIRATION_YEAR format must be in one of %s1, the format is set to default YY",UNABLE_TO_SET_VALUE_IN_PROD_ENV:"%s1 setValue() cannot invoked while in PROD env. It is Not Recommeded",UNABLE_TO_CLEAR_VALUE_IN_PROD_ENV:"%s1 clearValue() cannot invoked while in PROD env. It is Not Recommeded",COLLECT_ALT_TEXT_DEPERECATED:"altText is DEPERECATED, passing altText will not have any effect",GET_BY_ID_DEPRECATED:"getById is deprecated, use new get method",INPUT_FORMATTING_NOT_SUPPROTED:"format or translation are not supported on %s1 element type.",INVALID_INPUT_TRANSLATION:"invalid or unsupported translation provided for %s1 element type."}};var A,S,w,D="collect_controller",b="element",M="reveal-composable",P={COLLECT:"COLLECT",REVEAL:"REVEAL",COMPOSE:"COMPOSABLE",REVEAL_COMPOSE:"REVEAL_COMPOSE"},x={MOUNTED:"MOUNTED",READY:"FRAME_READY"},C="element_type",k="div_id",U="container_name",V=x,j="events",F="mount_start_time",G="mount_end_time",Y="error",B={SUCCESS:"SUCCESS",INITIALIZED:"INITIALIZED",PARTIAL_RENDER:"PARTIAL_RENDER",FAILED:"FAILED"},W="INSERT",X="DETOKENIZE",K="GET_BY_SKYFLOWID",H="GET",q="DELETE",z="UPDATE",J="COLLECT",Q="FILE_UPLOAD",Z="REVEAL",$="RENDER_FILE",ee={CHANGE:"CHANGE",READY:"READY",FOCUS:"FOCUS",BLUR:"BLUR",ESCAPE:"ESCAPE",CLICK:"CLICK",ERROR:"ERROR",SUCCESS:"SUCCESS",SUBMIT:"SUBMIT",CREATED:"CREATED",MOUNTED:"MOUNTED",HEIGHT:"HEIGHT"},te={MULTIPLE_UPLOAD_FILES_RESPONSE:"MULTIPLE_UPLOAD_FILES_RESPONSE",RENDER_MOUNTED:"RENDER_MOUNTED",HEIGHT_CALLBACK:"HEIGHT_CALLBACK",HEIGHT_CALLBACK_COMPOSABLE:"HEIGHT_CALLBACK_COMPOSABLE",COMPOSABLE_REVEAL:"COMPOSABLE_REVEAL",MULTIPLE_UPLOAD_FILES:"MULTIPLE_UPLOAD_FILES",COLLECT_CALL_REQUESTS:"COLLECT_CALL_REQUESTS",COMPOSABLE_CALL_REQUESTS:"COMPOSABLE_CALL_REQUESTS",COMPOSABLE_CALL_RESPONSE:"COMPOSABLE_CALL_RESPONSE",COMPOSABLE_FILE_CALL_RESPONSE:"COMPOSABLE_FILE_CALL_RESPONSE",COMPOSABLE_CONTAINER:"COMPOSABLE_CONTAINER",REVEAL_CALL_REQUESTS:"REVEAL_CALL_REQUESTS",REVEAL_CALL_RESPONSE:"REVEAL_CALL_RESPONSE",FRAME_READY:"FRAME_READY",READY_FOR_CLIENT:"READY_FOR_CLIENT",TOKENIZATION_REQUEST:"TOKENIZATION_REQUEST",INPUT_EVENT:"INPUT_EVENT",DESTROY_FRAME:"DESTROY FRAME",SET_VALUE:"SET_VALUE",CLIENT_REQUEST:"CLIENT_REQUEST",GET_ACCESS_TOKEN:"GET_ACCESS_TOKEN",REVEAL_REQUEST:"REVEAL_REQUEST",REVEAL_RESPONSE_READY:"REVEAL_RESPONSE_READY",REVEAL_FRAME_READY:"REVEAL_FRAME_READY",REVEAL_GET_ACCESS_TOKEN:"REVEAL_GET_ACCESS_TOKEN",PUREJS_REQUEST:"PUREJS_REQUEST",PUREJS_FRAME_READY:"PUREJS_FRAME_READY",PUREJS_GET_ACCESS_TOKEN:"PUREJS_GET_ACCESS_TOKEN",GET_BEARER_TOKEN:"GET_BEARER_TOKEN",GET_COLLECT_ELEMENT:"GET_COLLECT_ELEMENT",GET_REVEAL_ELEMENT:"GET_REVEAL_ELEMENT",COLLECT_ELEMENT_SET_ERROR:"COLLECT_ELEMENT_SET_ERROR",COLLECT_ELEMENT_SET_ERROR_OVERRIDE:"COLLECT_ELEMENT_SET_ERROR_OVERRIDE",REVEAL_ELEMENT_SET_ERROR:"REVEAL_ELEMENT_SET_ERROR",REVEAL_ELEMENT_UPDATE_OPTIONS:"REVEAL_ELEMENT_UPDATE_OPTIONS",FILE_UPLOAD:"FILE_UPLOAD",COMPOSABLE_UPDATE_OPTIONS:"COMPOSABLE_UPDATE_OPTIONS",RENDER_FILE_RESPONSE_READY:"RENDER_FILE_RESPONSE_READY",RENDER_FILE_REQUEST:"RENDER_FILE_REQUEST",PUSH_EVENT:"PUSH_EVENT",SKYFLOW_FRAME_CONTROLLER_READY:"SKYFLOW_FRAME_CONTROLLER_READY",COLLECT_ELEMENT_READY:"COLLECT_ELEMENT_READY"},ne="TOKEN",oe="ALT_TEXT",re="ELEMENT_PROPS",ie="ELEMENT_MOUNTED",ae="ALL_ELEMENTS_MOUNTED",ce=function(e){return e.CVV="CVV",e.EXPIRATION_DATE="EXPIRATION_DATE",e.CARD_NUMBER="CARD_NUMBER",e.CARDHOLDER_NAME="CARDHOLDER_NAME",e.INPUT_FIELD="INPUT_FIELD",e.PIN="PIN",e.EXPIRATION_MONTH="EXPIRATION_MONTH",e.EXPIRATION_YEAR="EXPIRATION_YEAR",e.FILE_INPUT="FILE_INPUT",e.MULTI_FILE_INPUT="MULTI_FILE_INPUT",e}({}),le=function(e){return e.VISA="VISA",e.MASTERCARD="MASTERCARD",e.AMEX="AMEX",e.DINERS_CLUB="DINERS_CLUB",e.DISCOVER="DISCOVER",e.JCB="JCB",e.MAESTRO="MAESTRO",e.UNIONPAY="UNIONPAY",e.HIPERCARD="HIPERCARD",e.DEFAULT="DEFAULT",e.UNKNOWN="UNKNOWN",e.CARTES_BANCAIRES="CARTES BANCAIRES",e}({}),se=(l(l(l(l(l(l(l(l(l(l(A={},le.VISA,"Visa"),le.MASTERCARD,"Mastercard"),le.AMEX,"Amex"),le.DINERS_CLUB,"DinersClub"),le.DISCOVER,"Discover"),le.JCB,"Jcb"),le.MAESTRO,"Maestro"),le.UNIONPAY,"Unionpay"),le.HIPERCARD,"Hipercard"),le.DEFAULT,"Default"),l(l(A,le.UNKNOWN,"Unknown"),le.CARTES_BANCAIRES,"Cartes Bancaires"),l(l(l(l(l(l(l(l(l(l(S={},le.AMEX,["XXXX XXXXXX XXXXX",{X:"[0-9]"}]),le.VISA,["XXXX XXXX XXXX XXXX",{X:"[0-9]"}]),le.MASTERCARD,["XXXX XXXX XXXX XXXX",{X:"[0-9]"}]),le.DISCOVER,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),le.DINERS_CLUB,["XXXX XXXXXX XXXXXX",{X:"[0-9]"}]),le.JCB,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),le.MAESTRO,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),le.UNIONPAY,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),le.HIPERCARD,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),le.DEFAULT,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),l(S,le.UNKNOWN,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}])),pe=l(l(l(l(l(l(l(l(l(l({textarea:{name:"textarea",attributes:{type:"textarea"},sensitive:!1},checkbox:{name:"checkbox",attributes:{type:"checkbox"},sensitive:!1},radio:{name:"radio",attributes:{type:"radio"},sensitive:!1},dropdown:{name:"dropdown",attributes:{type:"select"},sensitive:!1}},ce.CARDHOLDER_NAME,{name:"cardHolderName",attributes:{type:"text",autocomplete:"cc-name"},sensitive:!0,regex:/^([a-zA-Z\\ \\,\\.\\-\\']{2,})$/}),ce.CARD_NUMBER,{name:"CARD_NUMBER",attributes:{type:"text",autocomplete:"cc-number",inputmode:"numeric"},sensitive:!0,mask:se[le.DEFAULT],regex:/$|^[\s]*?([0-9]{2,6}[ -]?){3,5}[\s]*/}),ce.EXPIRATION_DATE,{name:"EXPIRATION_DATE",attributes:{type:"text",autocomplete:"cc-exp",inputmode:"numeric"},sensitive:!0}),ce.EXPIRATION_MONTH,{name:"EXPIRATION_MONTH",attributes:{maxLength:2,type:"text",inputmode:"numeric",autocomplete:"cc-exp-month"},sensitive:!0,mask:["XX",{X:"[0-9]"}]}),ce.EXPIRATION_YEAR,{name:"EXPIRATION_YEAR",attributes:{type:"text",inputmode:"numeric",autocomplete:"cc-exp-year"},sensitive:!0}),ce.CVV,{name:"CVV",attributes:{type:"text",inputmode:"numeric",maxLength:4},sensitive:!0,regex:/^$|^[0-9]{3,4}$/}),ce.INPUT_FIELD,{name:"INPUT_FIELD",sensitive:!0,attributes:{type:"text"}}),ce.PIN,{name:"PIN",attributes:{type:"text",inputmode:"numeric",maxLength:12,minLength:4},sensitive:!0,regex:/^$|^[0-9]{4,12}$/}),ce.FILE_INPUT,{name:"FILE_INPUT",sensitive:!0,attributes:{type:"file"}}),ce.MULTI_FILE_INPUT,{name:"MULTI_FILE_INPUT",sensitive:!0,attributes:{type:"file",multiple:""}}),ue="XXXX-XXXX-XXXX-XXXX",Ee={height:"100%",width:"100%",margin:0,padding:0,border:0,position:"absolute",top:0,left:0,"user-select":"none"},de={position:"absolute",top:0,width:0,height:0,visibility:"hidden",left:"-99999999px","user-select":"none"},fe={width:"100%",height:"100%",border:"0",padding:"0",margin:"0",outline:"none"},_e={WEBPACKAUTOFILL:"-webkit-autofill",BASE:"base",FOCUS:"focus",COMPLETE:"complete",EMPTY:"empty",INVALID:"invalid",GLOBAL:"global",REQUIRED_ASTERISK:"requiredAsterisk"},Ie=(l({},_e.BASE,{maxHeight:"100%",maxWidth:"100%"}),l({},_e.BASE,{"margin-bottom":"4px"}),l({},_e.BASE,{"margin-bottom":"4px",display:"flex",flexDirection:"column",justifyContent:"space-between"}),l({},_e.BASE,{marginTop:"4px"}),l(l({},_e.BASE,{marginBottom:"4px"}),_e.REQUIRED_ASTERISK,{display:"inline",color:"red"}),l(l(l(l(l(l(l(l(l({},le.VISA,{regex:/^4\d*/,maxCardLength:19,cardLengthRange:[13,16]}),le.MASTERCARD,{regex:/^(5[1-5]|222[1-9]|22[3-9]|2[3-6]|27[0-1]|2720)\d*/,maxCardLength:16,cardLengthRange:[16]}),le.AMEX,{regex:/^3[47]\d*/,maxCardLength:15,cardLengthRange:[15]}),le.DINERS_CLUB,{regex:/^(36|38|30[0-5])\d*/,maxCardLength:16,cardLengthRange:[14,15,16,17,18,19]}),le.DISCOVER,{regex:/^(6011|65|64[4-9]|622)\d*/,maxCardLength:16,cardLengthRange:[16,17,18,19]}),le.JCB,{regex:/^35\d*/,maxCardLength:19,cardLengthRange:[16,17,18,19]}),le.HIPERCARD,{regex:/^606282\d*/,maxCardLength:19,cardLengthRange:[14,15,16,17,18,19]}),le.UNIONPAY,{regex:/^62\d*/,maxCardLength:19,cardLengthRange:[16,17,18,19]}),le.MAESTRO,{regex:/^(5018|5020|5038|5043|5[6-9]|6020|6304|6703|6759|676[1-3])\d*/,maxCardLength:19,cardLengthRange:[12,13,14,15,16,17,18,19]})),ve=(l(l(l(l(l(l(l(l(l(l(w={},le.DEFAULT,_),le.AMEX,I),le.CARTES_BANCAIRES,R),le.DINERS_CLUB,v),le.DISCOVER,m),le.HIPERCARD,y),le.JCB,L),le.MAESTRO,O),le.MASTERCARD,T),le.UNIONPAY,N),l(w,le.VISA,g),"MM/YY"),me=[ve,"YYYY/MM","YY/MM","MM/YYYY"],ye=["YY","YYYY"],Le=function(e){return e.APPLICATIONORJSON="application/json",e.TEXTORPLAIN="text/plain",e.TEXTORXML="text/xml",e.FORMURLENCODED="application/x-www-form-urlencoded",e.FORMDATA="multipart/form-data",e}({}),Oe=(ce.CARD_NUMBER,ce.EXPIRATION_DATE,ce.EXPIRATION_MONTH,ce.EXPIRATION_YEAR,l(l(l(l(l(l(l(l(l(l({},ce.CVV,"Invalid cvv"),ce.EXPIRATION_DATE,"Invalid expiration date"),ce.CARD_NUMBER,"Invalid card number"),ce.CARDHOLDER_NAME,"Invalid cardholder name"),ce.INPUT_FIELD,h.errorLogs.INVALID_COLLECT_VALUE),ce.PIN,"Invalid pin"),ce.EXPIRATION_MONTH,"Invalid expiration month"),ce.EXPIRATION_YEAR,"Invalid expiration year"),ce.FILE_INPUT,h.errorLogs.INVALID_COLLECT_VALUE),ce.MULTI_FILE_INPUT,h.errorLogs.INVALID_COLLECT_VALUE),l(l(l(l(l(l(l(l(l(l({},ce.CVV,"cvv is required"),ce.EXPIRATION_DATE,"expiration date is required"),ce.CARD_NUMBER,"card number is required"),ce.CARDHOLDER_NAME,"cardholder name is required"),ce.INPUT_FIELD,h.errorLogs.DEFAULT_REQUIRED_COLLECT_VALUE),ce.PIN,"pin is required"),ce.EXPIRATION_MONTH,"expiration month is required"),ce.EXPIRATION_YEAR,"expiration year is required"),ce.FILE_INPUT,h.errorLogs.DEFAULT_REQUIRED_COLLECT_VALUE),ce.MULTI_FILE_INPUT,h.errorLogs.DEFAULT_REQUIRED_COLLECT_VALUE),[ce.CARDHOLDER_NAME,ce.EXPIRATION_MONTH,ce.FILE_INPUT,ce.PIN,ce.CVV]),Te={X:"[0-9]"};function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function ge(e,t){if(e){if("string"==typeof e)return Ne(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(e,t):void 0}}function Re(e){return function(e){if(Array.isArray(e))return Ne(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ge(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function he(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ae(e){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ae(e)}function Se(e,t){return Se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Se(e,t)}function we(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Se(e,t)}function De(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(De=function(){return!!e})()}function be(e){var t="function"==typeof Map?new Map:void 0;return be=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(De())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&Se(r,n.prototype),r}(e,arguments,Ae(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Se(n,e)},be(e)}var Me=function(e){return e.DEFAULT="DEFAULT",e.PLAIN_TEXT="PLAIN_TEXT",e.MASKED="MASKED",e.REDACTED="REDACTED",e}({}),Pe=function(e){return e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.DELETE="DELETE",e}({}),xe=function(e){return e.CHANGE="CHANGE",e.READY="READY",e.FOCUS="FOCUS",e.BLUR="BLUR",e.SUBMIT="SUBMIT",e}({}),Ce=function(e){return e.WARN="WARN",e.INFO="INFO",e.DEBUG="DEBUG",e.ERROR="ERROR",e}({}),ke=function(e){return e.DEV="DEV",e.PROD="PROD",e}({}),Ue=function(e){return e.LOG="LOG",e.WARN="WARN",e.ERROR="ERROR",e}({}),Ve=function(e){return e.REGEX_MATCH_RULE="REGEX_MATCH_RULE",e.LENGTH_MATCH_RULE="LENGTH_MATCH_RULE",e.ELEMENT_VALUE_MATCH_RULE="ELEMENT_VALUE_MATCH_RULE",e}({});const je={MULTI_FILE_NOT_SUPPORTED:{code:400,description:h.errorLogs.MULTI_FILE_NOT_SUPPORTED},INVALID_REVEAL_COMPOSABLE_INPUT:{code:400,description:h.errorLogs.INVALID_REVEAL_COMPOSABLE_INPUT},INVALID_FILE_NAME:{code:400,description:h.errorLogs.INVALID_FILE_NAME},INVALID_FIELD:{code:400,description:h.errorLogs.INVALID_FIELD},VAULTID_IS_REQUIRED:{code:400,description:h.errorLogs.VAULTID_IS_REQUIRED},EMPTY_VAULTID_IN_INIT:{code:400,description:h.errorLogs.EMPTY_VAULTID_IN_INIT},VAULTURL_IS_REQUIRED:{code:400,description:h.errorLogs.VAULTURL_IS_REQUIRED},EMPTY_VAULTURL_IN_INIT:{code:400,description:h.errorLogs.EMPTY_VAULTURL_IN_INIT},INVALID_VAULTURL_IN_INIT:{code:400,description:h.errorLogs.INVALID_VAULTURL_IN_INIT},GET_BEARER_TOKEN_IS_REQUIRED:{code:400,description:h.errorLogs.GET_BEARER_TOKEN_IS_REQUIRED},EMPTY_CONTAINER_TYPE:{code:400,description:h.errorLogs.EMPTY_CONTAINER_TYPE},INVALID_CONTAINER_TYPE:{code:400,description:h.errorLogs.INVALID_CONTAINER_TYPE},UNIQUE_ELEMENT_NAME:{code:400,description:h.errorLogs.UNIQUE_ELEMENT_NAME},ELEMENTS_NOT_MOUNTED:{code:400,description:h.errorLogs.ELEMENTS_NOT_MOUNTED},MISSING_TABLE_IN_COLLECT:{code:400,description:h.errorLogs.MISSING_TABLE_IN_COLLECT},MISSING_SKYFLOWID_KEY_REVEAL:{code:400,description:h.errorLogs.MISSING_SKYFLOWID_KEY_REVEAL},EMPTY_TABLE_IN_COLLECT:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_COLLECT},EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS},EMPTY_SKYFLOW_ID_COLLECT:{code:400,description:h.errorLogs.EMPTY_SKYFLOW_ID_COLLECT},INVALID_TABLE_IN_COLLECT:{code:400,description:h.errorLogs.INVALID_TABLE_IN_COLLECT},INVALID_SKYFLOWID_IN_COLLECT:{code:400,description:h.errorLogs.INVALID_SKYFLOWID_IN_COLLECT},MISSING_COLUMN_IN_COLLECT:{code:400,description:h.errorLogs.MISSING_COLUMN_IN_COLLECT},MISSING_SKYFLOWID_IN_COLLECT:{code:400,description:h.errorLogs.MISSING_SKYFLOWID_IN_COLLECT},EMPTY_COLUMN_IN_COLLECT:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_COLLECT},INVALID_COLUMN_IN_COLLECT:{code:400,description:h.errorLogs.INVALID_COLUMN_IN_COLLECT},CLIENT_CONNECTION:{code:400,description:h.errorLogs.CLIENT_CONNECTION},RECORDS_KEY_NOT_FOUND:{code:404,description:h.errorLogs.RECORDS_KEY_NOT_FOUND},EMPTY_RECORDS_IN_INSERT:{code:400,description:h.errorLogs.EMPTY_RECORDS_IN_INSERT},INVALID_RECORDS_IN_INSERT:{code:404,description:h.errorLogs.INVALID_RECORDS_IN_INSERT},INVALID_TABLE_IN_INSERT:{code:400,description:h.errorLogs.INVALID_TABLE_IN_INSERT},EMPTY_TABLE_IN_INSERT:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_INSERT},MISSING_TABLE_IN_INSERT:{code:400,description:h.errorLogs.MISSING_TABLE_IN_INSERT},EMPTY_FIELDS_IN_INSERT:{code:400,description:h.errorLogs.EMPTY_FIELDS_IN_INSERT},MISSING_FIELDS_IN_INSERT:{code:404,description:h.errorLogs.MISSING_FIELDS_IN_INSERT},INVALID_FIELDS_IN_INSERT:{code:404,description:h.errorLogs.INVALID_FIELDS_IN_INSERT},INVALID_TOKENS_IN_INSERT:{code:404,description:h.errorLogs.INVALID_TOKENS_IN_INSERT},RECORDS_KEY_NOT_FOUND_DETOKENIZE:{code:404,description:h.errorLogs.RECORDS_KEY_NOT_FOUND_DETOKENIZE},EMPTY_RECORDS_DETOKENIZE:{code:400,description:h.errorLogs.EMPTY_RECORDS_DETOKENIZE},INVALID_RECORDS_IN_DETOKENIZE:{code:404,description:h.errorLogs.INVALID_RECORDS_IN_DETOKENIZE},MISSING_TOKEN_IN_DETOKENIZE:{code:400,description:h.errorLogs.MISSING_TOKEN_IN_DETOKENIZE},INVALID_TOKEN_IN_DETOKENIZE:{code:400,description:h.errorLogs.INVALID_TOKEN_IN_DETOKENIZE},RECORDS_KEY_NOT_FOUND_GET:{code:400,description:h.errorLogs.RECORDS_KEY_NOT_FOUND_GET},INVALID_RECORDS_IN_GET:{code:400,description:h.errorLogs.INVALID_RECORDS_IN_GET},EMPTY_RECORDS_GET:{code:400,description:h.errorLogs.EMPTY_RECORDS_GET},MISSING_IDS_IN_GET:{code:400,description:h.errorLogs.MISSING_IDS_IN_GET},INVALID_IDS_IN_GET:{code:400,description:h.errorLogs.INVALID_IDS_IN_GET},INVALID_COLUMN_VALUES_IN_GET:{code:400,description:h.errorLogs.INVALID_COLUMN_VALUES_IN_GET},EMPTY_IDS_IN_GET:{code:400,description:h.errorLogs.EMPTY_IDS_IN_GET},INVALID_SKYFLOWID_TYPE_IN_GET:{code:400,description:h.errorLogs.INVALID_SKYFLOWID_TYPE_IN_GET},MISSING_TABLE_IN_GET:{code:400,description:h.errorLogs.MISSING_TABLE_IN_GET},INVALID_TABLE_IN_GET:{code:400,description:h.errorLogs.INVALID_TABLE_IN_GET},MISSING_REDACTION_IN_GET:{code:400,description:h.errorLogs.MISSING_REDACTION_IN_GET},INVALID_REDACTION_TYPE_IN_GET:{code:400,description:h.errorLogs.INVALID_REDACTION_TYPE_IN_GET},INVALID_TOKENS_IN_GET:{code:400,description:h.errorLogs.INVALID_TOKENS_IN_GET},TOKENS_GET_COLUMN_NOT_SUPPORTED:{code:400,description:h.errorLogs.TOKENS_GET_COLUMN_NOT_SUPPORTED},REDACTION_WITH_TOKENS_NOT_SUPPORTED:{code:400,description:h.errorLogs.REDACTION_WITH_TOKENS_NOT_SUPPORTED},INVALID_REDACTION_TYPE_IN_DETOKENIZE:{code:400,description:h.errorLogs.INVALID_REDACTION_TYPE_IN_DETOKENIZE},INVALID_TOKENS_IN_COLLECT:{code:404,description:h.errorLogs.INVALID_TOKENS_IN_COLLECT},RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS:{code:404,description:h.errorLogs.RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS},INVALID_RECORDS_IN_ADDITIONAL_FIELDS:{code:404,description:h.errorLogs.INVALID_RECORDS_IN_ADDITIONAL_FIELDS},EMPTY_RECORDS_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.EMPTY_RECORDS_IN_ADDITIONAL_FIELDS},MISSING_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.MISSING_TABLE_IN_ADDITIONAL_FIELDS},INVALID_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.INVALID_TABLE_IN_ADDITIONAL_FIELDS},INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS},MISSING_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.MISSING_FIELDS_IN_ADDITIONAL_FIELDS},INVALID_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.INVALID_FIELDS_IN_ADDITIONAL_FIELDS},RECORDS_KEY_NOT_FOUND_DELETE:{code:400,description:h.errorLogs.RECORDS_KEY_NOT_FOUND_DELETE},INVALID_RECORD_KEY_UPDATE:{code:400,description:h.errorLogs.INVALID_RECORD_KEY_UPDATE},MISSING_TABLE_IN_UPDATE:{code:400,description:h.errorLogs.MISSING_TABLE_IN_UPDATE},EMPTY_TABLE_IN_UPDATE:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_UPDATE},INVALID_TABLE_IN_UPDATE:{code:400,description:h.errorLogs.INVALID_TABLE_IN_UPDATE},MISSING_FIELDS_IN_UPDATE:{code:400,description:h.errorLogs.MISSING_FIELDS_IN_UPDATE},EMPTY_FIELDS_IN_UPDATE:{code:400,description:h.errorLogs.EMPTY_FIELDS_IN_UPDATE},INVALID_FIELDS_IN_UPDATE:{code:400,description:h.errorLogs.INVALID_FIELDS_IN_UPDATE},MISSING_SKYFLOWID_IN_UPDATE:{code:400,description:h.errorLogs.MISSING_SKYFLOWID_IN_UPDATE},EMPTY_SKYFLOWID_IN_UPDATE:{code:400,description:h.errorLogs.EMPTY_SKYFLOWID_IN_UPDATE},INVALID_SKYFLOWID_IN_UPDATE:{code:400,description:h.errorLogs.INVALID_SKYFLOWID_IN_UPDATE},INVALID_TOKENS_IN_UPDATE:{code:400,description:h.errorLogs.INVALID_TOKENS_IN_UPDATE},EMPTY_RECORDS_IN_DELETE:{code:400,description:h.errorLogs.EMPTY_RECORDS_IN_DELETE},INVALID_RECORDS_IN_DELETE:{code:404,description:h.errorLogs.INVALID_RECORDS_IN_DELETE},INVALID_TABLE_IN_DELETE:{code:400,description:h.errorLogs.INVALID_TABLE_IN_DELETE},EMPTY_TABLE_IN_DELETE:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_DELETE},MISSING_TABLE_IN_DELETE:{code:400,description:h.errorLogs.MISSING_TABLE_IN_DELETE},EMPTY_ID_IN_DELETE:{code:400,description:h.errorLogs.EMPTY_ID_IN_DELETE},MISSING_ID_IN_DELETE:{code:404,description:h.errorLogs.MISSING_ID_IN_DELETE},INVALID_ID_IN_DELETE:{code:404,description:h.errorLogs.INVALID_ID_IN_DELETE},EMPTY_RECORDS_REVEAL:{code:400,description:h.errorLogs.EMPTY_RECORDS_REVEAL},MISSING_TOKEN_KEY_REVEAL:{code:400,description:h.errorLogs.MISSING_TOKEN_KEY_REVEAL},INVALID_TOKEN_ID_REVEAL:{code:400,description:h.errorLogs.INVALID_TOKEN_ID_REVEAL},INVALID_LABEL_REVEAL:{code:400,description:h.errorLogs.INVALID_LABEL_REVEAL},INVALID_ALT_TEXT_REVEAL:{code:400,description:h.errorLogs.INVALID_ALT_TEXT_REVEAL},INVALID_ALT_TEXT_RENDER:{code:400,description:h.errorLogs.INVALID_ALT_TEXT_RENDER},INVALID_FORMAT_REVEAL:{code:400,description:h.errorLogs.INVALID_FORMAT_REVEAL},EMPTY_FORMAT_REVEAL:{code:400,description:h.errorLogs.EMPTY_FORMAT_REVEAL},INVALID_FORMAT_VALUE_REVEAL:{code:400,description:h.errorLogs.INVALID_FORMAT_VALUE_REVEAL},INVALID_REDACTION_TYPE_REVEAL:{code:400,description:h.errorLogs.INVALID_REDACTION_TYPE_REVEAL},EMPTY_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_ADDITIONAL_FIELDS},EMPTY_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.EMPTY_FIELDS_IN_ADDITIONAL_FIELDS},EMPTY_TOKEN_IN_DETOKENIZE:{code:400,description:h.errorLogs.EMPTY_TOKEN_IN_DETOKENIZE},EMPTY_SKYFLOWID_IN_GET:{code:400,description:h.errorLogs.EMPTY_SKYFLOWID_IN_GET},EMPTY_TABLE_IN_GET:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_GET},EMPTY_REDACTION_TYPE_IN_GET:{code:400,description:h.errorLogs.EMPTY_REDACTION_TYPE_IN_GET},EMPTY_TOKEN_ID_REVEAL:{code:400,description:h.errorLogs.EMPTY_TOKEN_ID_REVEAL},DUPLICATE_ELEMENT:{code:400,description:h.errorLogs.DUPLICATE_ELEMENT},DUPLICATE_ELEMENT_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.DUPLICATE_ELEMENT_ADDITIONAL_FIELDS},MISSING_ELEMENT_TYPE:{code:400,description:h.errorLogs.MISSING_ELEMENT_TYPE},EMPTY_ELEMENT_TYPE:{code:400,description:h.errorLogs.EMPTY_ELEMENT_TYPE},INVALID_ALLOWED_OPTIONS:{code:400,description:h.errorLogs.INVALID_ALLOWED_OPTIONS},EMPTY_ALLOWED_OPTIONS_ARRAY:{code:400,description:h.errorLogs.EMPTY_ALLOWED_OPTIONS_ARRAY},INVALID_ALLOWED_FILETYPE_ARRAY:{code:400,description:h.errorLogs.INVALID_ALLOWED_FILETYPE_ARRAY},INVALID_ELEMENT_TYPE:{code:400,description:h.errorLogs.INVALID_ELEMENT_TYPE},INVALID_ELEMENT_SELECTOR:{code:400,description:h.errorLogs.INVALID_ELEMENT_SELECTOR},FRAME_NOT_FOUND:{code:400,description:h.errorLogs.FRAME_NOT_FOUND},REQUIRED_PARAMS_NOT_PROVIDED:{code:400,description:h.errorLogs.REQUIRED_PARAMS_NOT_PROVIDED},INVALID_RECORD_COLUMN_VALUE:{code:400,description:h.errorLogs.INVALID_RECORD_COLUMN_VALUE},MISSING_RECORD_COLUMN_VALUE:{code:400,description:h.errorLogs.MISSING_RECORD_COLUMN_VALUE},MISSING_RECORD_COLUMN_NAME:{code:400,description:h.errorLogs.MISSING_RECORD_COLUMN_NAME},INVALID_EVENT_TYPE:{code:400,description:h.errorLogs.INVALID_EVENT_TYPE},INVALID_EVENT_LISTENER:{code:400,description:h.errorLogs.INVALID_EVENT_LISTENER},MISSING_HANDLER_IN_EVENT_LISTENER:{code:400,description:h.errorLogs.MISSING_HANDLER_IN_EVENT_LISTENER},INVALID_HANDLER_IN_EVENT_LISTENER:{code:400,description:h.errorLogs.INVALID_HANDLER_IN_EVENT_LISTENER},UNKNOWN_ERROR:{code:400,description:h.errorLogs.UNKNOWN_ERROR},CONNECTION_ERROR:{code:400,description:h.errorLogs.CONNECTION_ERROR},NETWORK_ERROR:{code:500,description:h.errorLogs.NETWORK_ERROR},OFFLINE_ERROR:{code:500,description:h.errorLogs.OFFLINE_ERROR},TIMEOUT_ERROR:{code:500,description:h.errorLogs.TIMEOUT_ERROR},ABORT_ERROR:{code:500,description:h.errorLogs.ABORT_ERROR},GENERIC_ERROR:{code:0,description:h.errorLogs.GENERIC_ERROR},COMPLETE_AND_VALID_INPUTS:{code:400,description:h.errorLogs.COMPLETE_AND_VALID_INPUTS},INVALID_VALIDATIONS_TYPE:{code:400,description:h.errorLogs.INVALID_VALIDATIONS_TYPE},MISSING_VALIDATION_RULE_TYPE:{code:400,description:h.errorLogs.MISSING_VALIDATION_RULE_TYPE},INVALID_VALIDATION_RULE_TYPE:{code:400,description:h.errorLogs.INVALID_VALIDATION_RULE_TYPE},MISSING_VALIDATION_RULE_PARAMS:{code:400,description:h.errorLogs.MISSING_VALIDATION_RULE_PARAMS},INVALID_VALIDATION_RULE_PARAMS:{code:400,description:h.errorLogs.INVALID_VALIDATION_RULE_PARAMS},MISSING_REGEX_IN_REGEX_MATCH_RULE:{code:400,description:h.errorLogs.MISSING_REGEX_IN_REGEX_MATCH_RULE},INVALID_REGEX_IN_REGEX_MATCH_RULE:{code:400,description:h.errorLogs.INVALID_REGEX_IN_REGEX_MATCH_RULE},MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE:{code:400,description:h.errorLogs.MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE},MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE:{code:400,description:h.errorLogs.MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE},INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE:{code:400,description:h.errorLogs.INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE},ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE:{code:400,description:h.errorLogs.ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE},EMPTY_ELEMENT_IN_MOUNT:{code:400,description:h.errorLogs.EMPTY_ELEMENT_IN_MOUNT},REVEAL_ELEMENT_ERROR_STATE:{code:400,description:h.errorLogs.REVEAL_ELEMENT_ERROR_STATE},INVALID_FILE_TYPE:{code:400,description:h.errorLogs.INVALID_FILE_TYPE},INVALID_FILE_SIZE:{code:400,description:h.errorLogs.INVALID_FILE_SIZE},NO_FILE_SELECTED:{code:400,description:h.errorLogs.NO_FILE_SELECTED},INVALID_TABLE_IN_UPSERT_OPTION:{code:400,description:h.errorLogs.INVALID_TABLE_IN_UPSERT_OPTION},INVALID_COLUMN_IN_UPSERT_OPTION:{code:400,description:h.errorLogs.INVALID_COLUMN_IN_UPSERT_OPTION},INVALID_UPSERT_OPTION_TYPE:{code:400,description:h.errorLogs.INVALID_UPSERT_OPTION_TYPE},EMPTY_UPSERT_OPTIONS_ARRAY:{code:400,description:h.errorLogs.EMPTY_UPSERT_OPTIONS_ARRAY},INVALID_UPSERT_OPTION_OBJECT_TYPE:{code:400,description:h.errorLogs.INVALID_UPSERT_OPTION_OBJECT_TYPE},MISSING_TABLE_IN_UPSERT_OPTION:{code:400,description:h.errorLogs.MISSING_TABLE_IN_UPSERT_OPTION},MISSING_COLUMN_IN_UPSERT_OPTION:{code:400,description:h.errorLogs.MISSING_COLUMN_IN_UPSERT_OPTION},INVALID_RECORD_COLUMN_VALUE_TYPE:{code:400,description:h.errorLogs.INVALID_RECORD_COLUMN_VALUE_TYPE},INVALID_COLUMN_VALUES_TYPE:{code:400,description:h.errorLogs.INVALID_COLUMN_VALUES_TYPE},EMPTY_RECORD_COLUMN_VALUES:{code:400,description:h.errorLogs.EMPTY_RECORD_COLUMN_VALUES},EMPTY_COLUMN_VALUE:{code:400,description:h.errorLogs.EMPTY_COLUMN_VALUE},MISSING_IDS_OR_COLUMN_VALUES_IN_GET:{code:400,description:h.errorLogs.MISSING_IDS_OR_COLUMN_VALUES_IN_GET},SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED:{code:400,description:h.errorLogs.SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED},SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED:{code:400,description:h.errorLogs.SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED},MISSING_TABLE_KEY_REVEAL:{code:400,description:h.errorLogs.MISSING_TABLE_KEY_REVEAL},MISSING_COLUMN_KEY_REVEAL:{code:400,description:h.errorLogs.MISSING_COLUMN_KEY_REVEAL},INVALID_SKYFLOW_ID_REVEAL:{code:400,description:h.errorLogs.INVALID_SKYFLOW_ID_REVEAL},INVALID_TABLE_REVEAL:{code:400,description:h.errorLogs.INVALID_TABLE_REVEAL},INVALID_COLUMN_NAME_REVEAL:{code:400,description:h.errorLogs.INVALID_COLUMN_NAME_REVEAL},EMPTY_SKYFLOW_ID_REVEAL:{code:400,description:h.errorLogs.EMPTY_SKYFLOW_ID_REVEAL},EMPTY_TABLE_REVEAL:{code:400,description:h.errorLogs.EMPTY_TABLE_REVEAL},EMPTY_COLUMN_NAME_REVEAL:{code:400,description:h.errorLogs.EMPTY_COLUMN_NAME_REVEAL},RECORDS_KEY_NOT_FOUND_GETBYID:{code:400,description:h.errorLogs.RECORDS_KEY_NOT_FOUND_GETBYID},INVALID_RECORDS_IN_GETBYID:{code:400,description:h.errorLogs.INVALID_RECORDS_IN_GETBYID},EMPTY_RECORDS_GETBYID:{code:400,description:h.errorLogs.EMPTY_RECORDS_GETBYID},MISSING_IDS_IN_GETBYID:{code:400,description:h.errorLogs.MISSING_IDS_IN_GETBYID},INVALID_IDS_IN_GETBYID:{code:400,description:h.errorLogs.INVALID_IDS_IN_GETBYID},EMPTY_IDS_IN_GETBYID:{code:400,description:h.errorLogs.EMPTY_IDS_IN_GETBYID},INVALID_SKYFLOWID_TYPE_IN_GETBYID:{code:400,description:h.errorLogs.INVALID_SKYFLOWID_TYPE_IN_GETBYID},MISSING_TABLE_IN_GETBYID:{code:400,description:h.errorLogs.MISSING_TABLE_IN_GETBYID},INVALID_TABLE_IN_GETBYID:{code:400,description:h.errorLogs.INVALID_TABLE_IN_GETBYID},MISSING_REDACTION_IN_GETBYID:{code:400,description:h.errorLogs.MISSING_REDACTION_IN_GETBYID},INVALID_REDACTION_TYPE_IN_GETBYID:{code:400,description:h.errorLogs.INVALID_REDACTION_TYPE_IN_GETBYID},EMPTY_SKYFLOWID_IN_GETBYID:{code:400,description:h.errorLogs.EMPTY_SKYFLOWID_IN_GETBYID},EMPTY_TABLE_IN_GETBYID:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_GETBYID},EMPTY_REDACTION_TYPE_IN_GETBYID:{code:400,description:h.errorLogs.EMPTY_REDACTION_TYPE_IN_GETBYID},MISSING_COMPOSABLE_LAYOUT_KEY:{code:400,description:h.errorLogs.MISSING_COMPOSABLE_LAYOUT_KEY},EMPTY_COMPOSABLE_LAYOUT_ARRAY:{code:400,description:h.errorLogs.EMPTY_COMPOSABLE_LAYOUT_ARRAY},INVALID_COMPOSABLE_LAYOUT_TYPE:{code:400,description:h.errorLogs.INVALID_COMPOSABLE_LAYOUT_TYPE},NEGATIVE_VALUES_COMPOSABLE_LAYOUT:{code:400,description:h.errorLogs.NEGATIVE_VALUES_COMPOSABLE_LAYOUT},MISMATCH_ELEMENT_COUNT_LAYOUT_SUM:{code:400,description:h.errorLogs.MISMATCH_ELEMENT_COUNT_LAYOUT_SUM},MISSING_COMPOSABLE_CONTAINER_OPTIONS:{code:400,description:h.errorLogs.MISSING_COMPOSABLE_CONTAINER_OPTIONS},INVALID_COMPOSABLE_CONTAINER_OPTIONS:{code:400,description:h.errorLogs.INVALID_COMPOSABLE_CONTAINER_OPTIONS},COMPOSABLE_CONTAINER_NOT_MOUNTED:{code:400,description:h.errorLogs.COMPOSABLE_CONTAINER_NOT_MOUNTED},INVALID_BOOLEAN_OPTIONS:{code:400,description:h.errorLogs.INVALID_BOOLEAN_OPTIONS},INVALID_MASKING_CHARACTER:{code:400,description:h.errorLogs.INVALID_MASKING_CHARACTER},EMPTY_COLLECT_CUSTOM_FORMAT:{code:400,description:h.errorLogs.EMPTY_COLLECT_CUSTOM_FORMAT},INVALID_INPUT_OPTIONS_FORMAT:{code:400,description:h.errorLogs.INVALID_INPUT_OPTIONS_FORMAT},INVALID_INPUT_OPTIONS_TRANSLATION:{code:400,description:h.errorLogs.INVALID_INPUT_OPTIONS_TRANSLATION},INVALID_OPTION_CARD_METADATA:{code:400,description:h.errorLogs.INVALID_OPTION_CARD_METADATA},INVALID_OPTION_CARD_SCHEME:{code:400,description:h.errorLogs.INVALID_OPTION_CARD_SCHEME},INVALID_FIELD_SHOW_3DS_CHALLEGNGE:{code:400,description:h.errorLogs.INVALID_FIELD_SHOW_3DS_CHALLEGNGE},NO_ELEMENTS_IN_COLLECT:{code:400,description:h.errorLogs.NO_ELEMENTS_IN_COLLECT},NO_ELEMENTS_IN_COMPOSABLE:{code:400,description:h.errorLogs.NO_ELEMENTS_IN_COMPOSABLE},NO_ELEMENTS_IN_REVEAL:{code:400,description:h.errorLogs.NO_ELEMENTS_IN_REVEAL},NO_FILE_ELEMENT_FOUND:{code:400,description:h.errorLogs.NO_FILE_ELEMENT_FOUND}};function Fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(c.push(o.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return c}}(e,t)||ge(e,t)||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.")}()}var Ge=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/[\s-]/g,""),t=le.DEFAULT;return Object.entries(Ie).forEach(function(n){var o=Fe(n,2),r=o[0];o[1].regex.test(e)&&(t=r)}),t},Ye=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Lt(je.RECORDS_KEY_NOT_FOUND,[],!0);var n=e.records;if(!n||!Array.isArray(n))throw new Lt(je.INVALID_RECORDS_IN_INSERT,[],!0);if(0===n.length)throw new Lt(je.EMPTY_RECORDS_IN_INSERT,[],!0);if(n.forEach(function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Lt(je.MISSING_TABLE_IN_INSERT,["".concat(t)],!0);if(!e.table)throw new Lt(je.EMPTY_TABLE_IN_INSERT,["".concat(t)],!0);if(!("string"==typeof e.table||e.table instanceof String))throw new Lt(je.INVALID_TABLE_IN_INSERT,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"fields"))throw new Lt(je.MISSING_FIELDS_IN_INSERT,["".concat(t)],!0);if(!e.fields)throw new Lt(je.EMPTY_FIELDS_IN_INSERT,["".concat(t)],!0);if("object"!==a(e.fields)||Array.isArray(e.fields))throw new Lt(je.INVALID_FIELDS_IN_INSERT,["".concat(t)],!0)}),t&&t.tokens&&"boolean"!=typeof t.tokens)throw new Lt(je.INVALID_TOKENS_IN_INSERT,[],!0)},Be=function(e,t){if(!e||"object"!==a(e))throw new Lt(je.INVALID_RECORD_KEY_UPDATE,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"table"))throw new Lt(je.MISSING_TABLE_IN_UPDATE,[],!0);if(!e.table)throw new Lt(je.EMPTY_TABLE_IN_UPDATE,[],!0);if("string"!=typeof e.table)throw new Lt(je.INVALID_TABLE_IN_UPDATE,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"fields"))throw new Lt(je.MISSING_FIELDS_IN_UPDATE,[],!0);if(!e.fields)throw new Lt(je.EMPTY_FIELDS_IN_UPDATE,[],!0);if("object"!==a(e.fields)||Array.isArray(e.fields))throw new Lt(je.INVALID_FIELDS_IN_UPDATE,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"skyflowID"))throw new Lt(je.MISSING_SKYFLOWID_IN_UPDATE,[],!0);if(!e.skyflowID)throw new Lt(je.EMPTY_SKYFLOWID_IN_UPDATE,[],!0);if("string"!=typeof e.skyflowID)throw new Lt(je.INVALID_SKYFLOWID_IN_UPDATE,[],!0);if(t&&void 0!==t.tokens&&"boolean"!=typeof t.tokens)throw new Lt(je.INVALID_TOKENS_IN_UPDATE,[],!0)},We=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Lt(je.RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS,[],!0);var t=e.records;if(!t||!Array.isArray(t))throw new Lt(je.INVALID_RECORDS_IN_ADDITIONAL_FIELDS,[],!0);if(0===t.length)throw new Lt(je.EMPTY_RECORDS_IN_ADDITIONAL_FIELDS,[],!0);t.forEach(function(e,t){var n;if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Lt(je.MISSING_TABLE_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!e.table)throw new Lt(je.EMPTY_TABLE_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(void 0!==(null===(n=e.fields)||void 0===n?void 0:n.skyflowID)){var o,r,i;if(null===(o=e.fields)||void 0===o||!o.skyflowID)throw new Lt(je.EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!("string"==typeof(null===(r=e.fields)||void 0===r?void 0:r.skyflowID)||(null===(i=e.fields)||void 0===i?void 0:i.skyflowID)instanceof String))throw new Lt(je.INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS,["".concat(t)],!0)}if(!("string"==typeof e.table||e.table instanceof String))throw new Lt(je.INVALID_TABLE_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"fields"))throw new Lt(je.MISSING_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!e.fields)throw new Lt(je.EMPTY_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if("object"!==a(e.fields)||Array.isArray(e.fields))throw new Lt(je.INVALID_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(t)],!0)})},Xe=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Lt(je.RECORDS_KEY_NOT_FOUND_DETOKENIZE,[]);var t=e.records;if(!t||!Array.isArray(t))throw new Lt(je.INVALID_RECORDS_IN_DETOKENIZE,[]);if(0===t.length)throw new Lt(je.EMPTY_RECORDS_DETOKENIZE,[]);t.forEach(function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"token"))throw new Lt(je.MISSING_TOKEN_IN_DETOKENIZE,["".concat(t)]);if(!e.token)throw new Lt(je.EMPTY_TOKEN_IN_DETOKENIZE,["".concat(t)]);if(!("string"==typeof e.token||e.token instanceof String))throw new Lt(je.INVALID_TOKEN_IN_DETOKENIZE,["".concat(t)]);var n=e.redaction;if(n&&!Object.values(Me).includes(n))throw new Lt(je.INVALID_REDACTION_TYPE_IN_DETOKENIZE,["".concat(t)])})},Ke=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Lt(je.RECORDS_KEY_NOT_FOUND_GET,[]);var n=e.records;if(!n||!Array.isArray(n))throw new Lt(je.INVALID_RECORDS_IN_GET,[]);if(0===n.length)throw new Lt(je.EMPTY_RECORDS_GET,[]);if(t&&Object.prototype.hasOwnProperty.call(t,"tokens")&&"boolean"!=typeof(null==t?void 0:t.tokens))throw new Lt(je.INVALID_TOKENS_IN_GET,[]);n.forEach(function(e,n){var o,r,i;if(0===Object.keys(e).length)throw new Lt(je.EMPTY_RECORDS_GET,[]);if(0===(null===(o=e.ids)||void 0===o?void 0:o.length))throw new Lt(je.EMPTY_IDS_IN_GET,["".concat(n)]);if(!(null==e.ids||e.ids&&Array.isArray(e.ids)))throw new Lt(je.INVALID_IDS_IN_GET,["".concat(n)]);if(null===(r=e.ids)||void 0===r||r.forEach(function(e){if(!e)throw new Lt(je.EMPTY_SKYFLOWID_IN_GET,["".concat(n)]);if(!("string"==typeof e||e instanceof String))throw new Lt(je.INVALID_SKYFLOWID_TYPE_IN_GET,["".concat(n)])}),!Object.prototype.hasOwnProperty.call(e,"table"))throw new Lt(je.MISSING_TABLE_IN_GET,["".concat(n)]);if(!e.table)throw new Lt(je.EMPTY_TABLE_IN_GET,["".concat(n)]);if(!("string"==typeof e.table||e.table instanceof String))throw new Lt(je.INVALID_TABLE_IN_GET,["".concat(n)]);if(!t||!Object.prototype.hasOwnProperty.call(t,"tokens")||!0!==(null==t?void 0:t.tokens)){if(!Object.prototype.hasOwnProperty.call(e,"redaction"))throw new Lt(je.MISSING_REDACTION_IN_GET,["".concat(n)]);if(!e.redaction)throw new Lt(je.EMPTY_REDACTION_TYPE_IN_GET,["".concat(n)]);if(!Object.values(Me).includes(e.redaction))throw new Lt(je.INVALID_REDACTION_TYPE_IN_GET,["".concat(n)])}if(!0===Object.prototype.hasOwnProperty.call(e,"ids")&&!0===Object.prototype.hasOwnProperty.call(e,"columnName"))throw new Lt(je.SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED,["".concat(n)]);if(Object.prototype.hasOwnProperty.call(e,"columnName")){if(!Object.prototype.hasOwnProperty.call(e,"columnName")||!Object.prototype.hasOwnProperty.call(e,"columnValues"))throw new Lt(je.MISSING_RECORD_COLUMN_VALUE,["".concat(n)])}else if(!1===Object.prototype.hasOwnProperty.call(e,"ids")&&!1===Object.prototype.hasOwnProperty.call(e,"columnValues"))throw new Lt(je.MISSING_IDS_OR_COLUMN_VALUES_IN_GET,["".concat(n)]);if(0===(null===(i=e.columnValues)||void 0===i?void 0:i.length))throw new Lt(je.EMPTY_RECORD_COLUMN_VALUES,["".concat(n)]);if(!(null==e.columnValues||e.columnValues&&Array.isArray(e.columnValues)))throw new Lt(je.INVALID_COLUMN_VALUES_IN_GET,["".concat(n)]);if(void 0!==e.columnName&&void 0===e.columnValues)throw new Lt(je.MISSING_RECORD_COLUMN_VALUE,["".concat(n)]);if(void 0===e.columnName&&void 0!==e.columnValues)throw new Lt(je.MISSING_RECORD_COLUMN_NAME,["".concat(n)]);var a=e.columnName;if(null!=a&&"string"!=typeof a)throw new Lt(je.INVALID_RECORD_COLUMN_VALUE,["".concat(n)]);var c=e.columnValues;if(null!=c){if(0===c.length||null===c)throw new Lt(je.EMPTY_RECORD_COLUMN_VALUES,["".concat(n)]);c.forEach(function(e){if(""===e||null===e)throw new Lt(je.EMPTY_COLUMN_VALUE,["".concat(n)]);if("string"!=typeof e)throw new Lt(je.INVALID_RECORD_COLUMN_VALUE_TYPE,["".concat(n)])})}if(t&&Object.prototype.hasOwnProperty.call(t,"tokens")&&!0===(null==t?void 0:t.tokens)){if(a||c)throw new Lt(je.TOKENS_GET_COLUMN_NOT_SUPPORTED,[]);if(e.redaction)throw new Lt(je.REDACTION_WITH_TOKENS_NOT_SUPPORTED,[])}})},He=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Lt(je.RECORDS_KEY_NOT_FOUND_GETBYID,[]);var t=e.records;if(!t||!Array.isArray(t))throw new Lt(je.INVALID_RECORDS_IN_GETBYID,[]);if(0===t.length)throw new Lt(je.EMPTY_RECORDS_GETBYID,[]);t.forEach(function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"ids"))throw new Lt(je.MISSING_IDS_IN_GETBYID,["".concat(t)]);if(!e.ids||!Array.isArray(e.ids))throw new Lt(je.INVALID_IDS_IN_GETBYID,["".concat(t)]);if(0===e.ids.length)throw new Lt(je.EMPTY_IDS_IN_GETBYID,["".concat(t)]);if(e.ids.forEach(function(e){if(!e)throw new Lt(je.EMPTY_SKYFLOWID_IN_GETBYID,["".concat(t)]);if(!("string"==typeof e||e instanceof String))throw new Lt(je.INVALID_SKYFLOWID_TYPE_IN_GETBYID,["".concat(t)])}),!Object.prototype.hasOwnProperty.call(e,"table"))throw new Lt(je.MISSING_TABLE_IN_GETBYID,["".concat(t)]);if(!e.table)throw new Lt(je.EMPTY_TABLE_IN_GETBYID,["".concat(t)]);if(!("string"==typeof e.table||e.table instanceof String))throw new Lt(je.INVALID_TABLE_IN_GETBYID,["".concat(t)]);if(!Object.prototype.hasOwnProperty.call(e,"redaction"))throw new Lt(je.MISSING_REDACTION_IN_GETBYID,["".concat(t)]);if(!e.redaction)throw new Lt(je.EMPTY_REDACTION_TYPE_IN_GETBYID,["".concat(t)]);if(!Object.values(Me).includes(e.redaction))throw new Lt(je.INVALID_REDACTION_TYPE_IN_GETBYID,["".concat(t)])})},qe=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Lt(je.RECORDS_KEY_NOT_FOUND_DELETE,[],!0);var n=e.records;if(!n||!Array.isArray(n))throw new Lt(je.INVALID_RECORDS_IN_DELETE,[],!0);if(0===n.length)throw new Lt(je.EMPTY_RECORDS_IN_DELETE,[],!0);n.forEach(function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Lt(je.MISSING_TABLE_IN_DELETE,["".concat(t)],!0);if(!e.table)throw new Lt(je.EMPTY_TABLE_IN_DELETE,["".concat(t)],!0);if(!("string"==typeof e.table||e.table instanceof String))throw new Lt(je.INVALID_TABLE_IN_DELETE,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"id"))throw new Lt(je.MISSING_ID_IN_DELETE,["".concat(t)],!0);if(!e.id)throw new Lt(je.EMPTY_ID_IN_DELETE,["".concat(t)],!0);if(!("string"==typeof e.id||e.id instanceof String))throw new Lt(je.INVALID_ID_IN_DELETE,["".concat(t)],!0)})},ze=function(e){if(0===e.length)throw new Lt(je.EMPTY_RECORDS_REVEAL,[]);e.forEach(function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"skyflowID")){if(!e||!Object.prototype.hasOwnProperty.call(e,"token"))throw new Lt(je.MISSING_TOKEN_KEY_REVEAL,[]);if(!e.token)throw new Lt(je.EMPTY_TOKEN_ID_REVEAL,[]);if(!("string"==typeof e.token||e.token instanceof String))throw new Lt(je.INVALID_TOKEN_ID_REVEAL,[])}var t=e.redaction;if(t&&!Object.values(Me).includes(t))throw new Lt(je.INVALID_REDACTION_TYPE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"label")&&"string"!=typeof e.label)throw new Lt(je.INVALID_LABEL_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"altText")&&"string"!=typeof e.altText)throw new Lt(je.INVALID_ALT_TEXT_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"format")&&"string"!=typeof e.format)throw new Lt(je.INVALID_FORMAT_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"format")&&""===e.format)throw new Lt(je.EMPTY_FORMAT_REVEAL,[])})},Je=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"skyflowID"))throw new Lt(je.MISSING_SKYFLOWID_KEY_REVEAL,[]);if(!e.skyflowID)throw new Lt(je.EMPTY_SKYFLOW_ID_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"skyflowID")&&"string"!=typeof e.skyflowID)throw new Lt(je.INVALID_SKYFLOW_ID_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"skyflowID")&&Object.prototype.hasOwnProperty.call(e,"token"))throw new Lt(je.SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED,[]);if(!e||!Object.prototype.hasOwnProperty.call(e,"column"))throw new Lt(je.MISSING_COLUMN_KEY_REVEAL,[]);if(!e.column)throw new Lt(je.EMPTY_COLUMN_NAME_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"column")&&"string"!=typeof e.column)throw new Lt(je.INVALID_COLUMN_NAME_REVEAL,[]);if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Lt(je.MISSING_TABLE_KEY_REVEAL,[]);if(!e.table)throw new Lt(je.EMPTY_TABLE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"table")&&"string"!=typeof e.table)throw new Lt(je.INVALID_TABLE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"altText")&&"string"!=typeof e.altText)throw new Lt(je.INVALID_ALT_TEXT_RENDER,[])},Qe=function(e){if(!e||"https"!==e.substring(0,5).toLowerCase())return!1;try{if(new URL(e))return!0}catch(e){return!1}return!0},Ze=function(e){var t=!0;try{new RegExp(e)}catch(e){t=!1}return t},$e=function(e){if(!Object.prototype.hasOwnProperty.call(e,"vaultID"))throw new Lt(je.VAULTID_IS_REQUIRED,[],!0);if(!e.vaultID)throw new Lt(je.EMPTY_VAULTID_IN_INIT,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"vaultURL"))throw new Lt(je.VAULTURL_IS_REQUIRED,[],!0);if(!e.vaultURL)throw new Lt(je.EMPTY_VAULTURL_IN_INIT,[],!0);if(e.vaultURL&&!Qe(e.vaultURL))throw new Lt(je.INVALID_VAULTURL_IN_INIT,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"getBearerToken"))throw new Lt(je.GET_BEARER_TOKEN_IS_REQUIRED,[],!0)},et=function(e,t){if(!Object.prototype.hasOwnProperty.call(e,"type"))throw new Lt(je.MISSING_ELEMENT_TYPE,[],!0);if(!e.type)throw new Lt(je.EMPTY_ELEMENT_TYPE,[],!0);if(Object.prototype.hasOwnProperty.call(e,"altText")&&vt(h.warnLogs.COLLECT_ALT_TEXT_DEPERECATED,Ue.WARN,t),Object.prototype.hasOwnProperty.call(e,"skyflowID")&&"string"!=typeof e.skyflowID)throw new Lt(je.INVALID_SKYFLOWID_IN_COLLECT,[],!0)},tt=function(e){if(!e||!Array.isArray(e))throw new Lt(je.INVALID_UPSERT_OPTION_TYPE,[],!0);if(!e.length)throw new Lt(je.EMPTY_UPSERT_OPTIONS_ARRAY,[],!0);e.forEach(function(e,t){if(!e||"object"!==a(e))throw new Lt(je.INVALID_UPSERT_OPTION_OBJECT_TYPE,[t],!0);if(!Object.prototype.hasOwnProperty.call(e,"table"))throw new Lt(je.MISSING_TABLE_IN_UPSERT_OPTION,[t],!0);if(!e.table||"string"!=typeof e.table||!e.table.length)throw new Lt(je.INVALID_TABLE_IN_UPSERT_OPTION,[t],!0);if(!Object.prototype.hasOwnProperty.call(e,"column"))throw new Lt(je.MISSING_COLUMN_IN_UPSERT_OPTION,[t],!0);if(!e.column||"string"!=typeof e.column||!e.column.length)throw new Lt(je.INVALID_COLUMN_IN_UPSERT_OPTION,[t],!0)})},nt=function(e){if(!e)throw new Lt(je.MISSING_COMPOSABLE_CONTAINER_OPTIONS,[],!0);if("object"!==a(e))throw new Lt(je.INVALID_COMPOSABLE_CONTAINER_OPTIONS,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"layout"))throw new Lt(je.MISSING_COMPOSABLE_LAYOUT_KEY,[],!0);if(!e.layout)throw new Lt(je.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(!Array.isArray(e.layout))throw new Lt(je.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(0===e.layout.length)throw new Lt(je.EMPTY_COMPOSABLE_LAYOUT_ARRAY,[],!0);e.layout.forEach(function(e){if("number"!=typeof e)throw new Lt(je.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(e<0)throw new Lt(je.NEGATIVE_VALUES_COMPOSABLE_LAYOUT,[],!0)})},ot=function(e){return"boolean"==typeof e},rt=function(e){if(e){if(Object.prototype.hasOwnProperty.call(e,"format")&&"string"!=typeof e.format)throw new Lt(je.INVALID_INPUT_OPTIONS_FORMAT,[],!0);if(Object.prototype.hasOwnProperty.call(e,"translation")&&("object"!==a(e.translation)||"[object Object]"!==Object.prototype.toString.call(e.translation)))throw new Lt(je.INVALID_INPUT_OPTIONS_TRANSLATION,[],!0)}};const it={IFRAME_SECURE_SITE:"".concat("https://js.skyflow.com","/").concat("v2.6.0/elements/index.html"),IFRAME_SECURE_ORIGIN:"https://js.skyflow.com"},at=JSON.parse('{"name":"skyflow-js","preferGlobal":true,"analyze":false,"version":"2.6.0","author":"Skyflow","description":"Skyflow JavaScript SDK","homepage":"https://github.com/skyflowapi/skyflow-js","main":"./dist/sdkNodeBuild/index.js","types":"./types/index-node.d.ts","files":["dist/sdkNodeBuild","types"],"license":"MIT","keywords":["client","sdk","javascript"],"scripts":{"type-check":"tsc --noEmit","type-check:watch":"npm run type-check -- --watch","build:types":"tsc --emitDeclarationOnly","dev":"webpack serve --config=webpack.dev.js --open --hot ","build-browser-sdk":"webpack --config=webpack.skyflow-browser.js","build-node-sdk":"webpack --config=webpack.skyflow-node.js","build-iframe":"webpack --config=webpack.iframe.js","test":"jest --config=jest.config.json"},"repository":{"type":"git","url":"https://github.com/skyflowapi/skyflow-js.git"},"dependencies":{"core-js":"^3.6.5","framebus":"^4.0.0","inject-stylesheet":"^2.0.0","jquery":"^3.5.1","jquery-mask-plugin":"^1.14.16","jss":"^10.7.1","jss-preset-default":"^10.7.1","jwt-decode":"^3.1.2","lodash":"^4.17.21","mime":"3.0.0","regex-parser":"^2.2.11","set-value":"^4.0.1"},"engines":{"node":">=12.0","npm":">=6.0"},"devDependencies":{"@babel/core":"^7.23.2","@babel/plugin-proposal-class-properties":"^7.10.1","@babel/plugin-proposal-decorators":"^7.10.1","@babel/plugin-proposal-object-rest-spread":"^7.10.1","@babel/plugin-transform-runtime":"^7.10.1","@babel/preset-env":"^7.9.6","@babel/preset-typescript":"^7.10.1","@babel/runtime":"^7.10.2","@types/jest":"^27.0.1","@types/jquery-mask-plugin":"^1.14.3","@types/mime":"^3.0.4","@types/node":"^14.0.5","@typescript-eslint/eslint-plugin":"^4.31.2","@typescript-eslint/parser":"^4.31.2","babel-loader":"^9.1.2","clean-webpack-plugin":"^4.0.0-alpha.0","compression-webpack-plugin":"^8.0.1","eslint":"^7.32.0","eslint-config-airbnb-base":"^14.2.1","eslint-config-airbnb-typescript":"^14.0.0","eslint-plugin-import":"^2.26.0","fork-ts-checker-webpack-plugin":"^6.3.2","html-webpack-plugin":"^5.5.0","jest":"^27.2.1","node-polyfill-webpack-plugin":"^2.0.1","typescript":"^4.6.3","webpack":"^5.97.1","webpack-bundle-analyzer":"^4.4.2","webpack-cli":"^4.8.0","webpack-dev-server":"^4.7.4","webpack-manifest-plugin":"^4.0.2","webpack-merge":"^5.8.0"}}');function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n(125).getType;function st(e){var t=null==e?void 0:e.split(":");return t&&t.length>2?"".concat(t[0],":").concat(t[1],":").concat(t[2]):""}var pt=function(e){var t={};if(e){if(t=lt({},e),Object.prototype.hasOwnProperty.call(t,"enableCopy")&&!ot(t.enableCopy))throw new Lt(je.INVALID_BOOLEAN_OPTIONS,["enableCopy"],!0);if(Object.prototype.hasOwnProperty.call(t,"format")||Object.prototype.hasOwnProperty.call(t,"translation")){var n,o,r=[];t.format&&r.push(t.format),r.push(null),t.translation?r.push(t.translation):t.format&&r.push(Te),null===(n=t=lt(lt({},t),3===r.length?{mask:r}:{}))||void 0===n||delete n.format,null===(o=t)||void 0===o||delete o.translation}}return t};function ut(e,t,n){var o,r,i,a,c,l,s={sdkName:e.name,sdkVersion:e.version},p=function(e,t){return e&&""!==e?"".concat(e):"".concat(t.sdkName,"@").concat(t.sdkVersion)}(null==t?void 0:t.sdkVersion,s),u=function(e){var t,n,o=null,r=null;if(/Windows/.test(e))o="Windows",r=null!==(t=null===(n=/Windows NT (\d+\.\d+)/.exec(e))||void 0===n?void 0:n[1])&&void 0!==t?t:null;else if(/Android/.test(e)){var i,a;o="Android",r=null!==(i=null===(a=/Android (\d+\.\d+)/.exec(e))||void 0===a?void 0:a[1])&&void 0!==i?i:null}else if(/iOS/.test(e)||/iPhone/.test(e)){var c,l;o="iOS",r=null!==(c=null===(l=/OS (\d+[._]\d+[._]?\d*)/.exec(e))||void 0===l||null===(l=l[1])||void 0===l?void 0:l.replace(/_/g,"."))&&void 0!==c?c:null}else if(/Mac OS X/.test(e)){var s,p;o="Mac OS X",r=null!==(s=null===(p=/Mac OS X (\d+([._]\d+)*)/.exec(e))||void 0===p||null===(p=p[1])||void 0===p?void 0:p.replace(/_/g,"."))&&void 0!==s?s:null}else if(/Linux/.test(e)){var u,E;o="Linux",r=null!==(u=null===(E=/Linux( \w+)*?\/([\w.]+)/.exec(e))||void 0===E?void 0:E[2])&&void 0!==u?u:null}return{os:o,version:r}}(n.userAgent),E=function(e){var t="",n="";if(-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")){t="Internet Explorer";var o=e.match(/(MSIE|rv:)\s?([\d.]+)/);o&&(n=o[2])}else if(-1!==e.indexOf("Edge")){t="Microsoft Edge";var r=e.match(/Edge\/([\d.]+)/);r&&(n=r[1])}else if(-1!==e.indexOf("Chrome")){t="Google Chrome";var i=e.match(/Chrome\/([\d.]+)/);i&&(n=i[1])}else if(-1!==e.indexOf("Firefox")){t="Mozilla Firefox";var a=e.match(/Firefox\/([\d.]+)/);a&&(n=a[1])}else if(-1!==e.indexOf("Safari")){t="Apple Safari";var c=e.match(/Version\/([\d.]+)/);c&&(n=c[1])}return{browserName:t,browserVersion:n}}(n.userAgent);return{sdk_name_version:p,sdk_client_device_model:(l=n.userAgent,/(ipad|tablet)/gi.test(l)?"tablet":/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile/.test(l)?"mobile":"desktop"),sdk_os_version:null!==(o=n.platform)&&void 0!==o?o:"".concat(null!==(r=u.os)&&void 0!==r?r:""," ").concat(null!==(i=u.version)&&void 0!==i?i:""),sdk_runtime_details:"".concat(null!==(a=E.browserName)&&void 0!==a?a:""," ").concat(null!==(c=E.browserVersion)&&void 0!==c?c:"")}}var Et=function(){var e=function(e){var t={sdkName:at.name,sdkVersion:at.version};return e&&""!==e&&e.split("@").length>1&&(t.sdkName=e.split("@")[0],t.sdkVersion=e.split("@")[1]),t}(localStorage.getItem("sdk_version")||""),t="skyflow-js"===e.sdkName?"JS":"React";return{sdkLanguageAndVersion:"".concat(t," SDK v").concat(e.sdkVersion),sdkOwner:"Skyflow"}},dt=n(6763),ft={DEBUG:{showDebugLogs:!0,showInfoLogs:!0,showWarnLogs:!0,showErrorLogs:!0},INFO:{showDebugLogs:!1,showInfoLogs:!0,showWarnLogs:!0,showErrorLogs:!0},WARN:{showDebugLogs:!1,showInfoLogs:!1,showWarnLogs:!0,showErrorLogs:!0},ERROR:{showDebugLogs:!1,showInfoLogs:!1,showWarnLogs:!1,showErrorLogs:!0}},_t={PROD:{doesReturnValue:!1},DEV:{doesReturnValue:!0}},It="[Skyflow]",vt=function(e,t,n){var o=Et(),r=o.sdkLanguageAndVersion,i=o.sdkOwner;if(n&&ft[n]){var a=ft[n],c=a.showDebugLogs,l=a.showInfoLogs,s=a.showWarnLogs,p=a.showErrorLogs;t===Ue.LOG&&c?dt.log("".concat(Ce.DEBUG,": ").concat(It," ").concat(e)):t===Ue.LOG&&l?dt.log("".concat(Ce.INFO,": ").concat(It," ").concat(e)):t===Ue.WARN&&s?dt.warn("".concat(Ce.WARN,": ").concat(It," ").concat(e)):t===Ue.ERROR&&p&&dt.error("".concat(Ce.ERROR,": ").concat(i," ").concat(r," ").concat(e))}},mt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],r=t.filter(function(e,t){return 0!==t});return o?o.replace(/%s[0-9]+/g,function(e){var t=e.replace("%s","")-1;return r[t]}):""};function yt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(yt=function(){return!!e})()}var Lt=function(e){function t(e,n){var o,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s(this,t);var i={code:e.code,description:n&&(null==n?void 0:n.length)>0?mt.apply(void 0,[e.description].concat(Re(n))):e.description};return o=function(e,t,n){return t=Ae(t),he(e,yt()?Reflect.construct(t,n||[],Ae(e).constructor):t.apply(e,n))}(this,t,[i.description]),l(o,"error",void 0),l(o,"errors",void 0),r?o.error=i:o.errors=[i],o}return we(t,e),u(t)}(be(Error));function Ot(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Tt(e,t){return e.get(Nt(e,t))}function Nt(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var gt=new WeakMap,Rt=function(){function e(t,n){var o=this;s(this,e),l(this,"config",void 0),Ot(this,gt,void 0),l(this,"request",function(e){return new Promise(function(t,n){var r,i,a=new XMLHttpRequest;if(a){if(a.open(e.requestMethod,e.url),e.headers){var c=ut(at,Tt(gt,o),navigator);e.headers["sky-metadata"]=JSON.stringify(c);var l=e.headers;Object.keys(e.headers).forEach(function(e){"content-type"===e&&l[e]&&l[e].includes(Le.FORMDATA)||a.setRequestHeader(e,l[e])})}null!==(r=e.headers)&&void 0!==r&&null!==(r=r["content-type"])&&void 0!==r&&r.includes(Le.FORMURLENCODED)||null!==(i=e.headers)&&void 0!==i&&null!==(i=i["content-type"])&&void 0!==i&&i.includes(Le.FORMDATA),a.send(e.body),a.onload=function(){var e=a.getAllResponseHeaders().trim().split(/[\r\n]+/),o={};e.forEach(function(e){var t=e.split(": "),n=t.shift()||"",r=t.join(": ");o[n]=r});var r=o["content-type"],i=o["x-request-id"];if(a.status<200||a.status>=400)if(r&&r.includes("application/json")){var c,l,s,p=JSON.parse(a.response);if(null!==(c=p)&&void 0!==c&&null!==(c=c.error)&&void 0!==c&&c.message)p=i?"".concat(null===(l=p)||void 0===l||null===(l=l.error)||void 0===l?void 0:l.message," - requestId: ").concat(i):null===(s=p)||void 0===s||null===(s=s.error)||void 0===s?void 0:s.message;n(new Lt({code:a.status,description:p},[],!0))}else r&&r.includes("text/plain")?n(new Lt({code:a.status,description:i?"".concat(a.response," - requestId: ").concat(i):a.response},[],!0)):n(new Lt({code:a.status,description:i?"".concat(h.errorLogs.ERROR_OCCURED," - requestId: ").concat(i):h.errorLogs.ERROR_OCCURED},[],!0));r&&r.includes("application/json")&&t(JSON.parse(a.response)),t(a.response)},a.onerror=function(){"undefined"==typeof navigator||navigator.onLine?(a.status,n(new Lt(je.GENERIC_ERROR,[],!0))):n(new Lt(je.OFFLINE_ERROR,[],!0))},a.ontimeout=function(){n(new Lt(je.TIMEOUT_ERROR,[],!0))},a.onabort=function(){n(new Lt(je.ABORT_ERROR,[],!0))}}else n(new Lt(je.CONNECTION_ERROR,[],!0))})}),this.config=t,function(e,t,n){e.set(Nt(e,t),n)}(gt,this,n)}return u(e,[{key:"toJSON",value:function(){return{config:this.config,metaData:Tt(gt,this)}}}],[{key:"fromJSON",value:function(t){return new e(t.config,t.metaData)}}])}();const ht=Rt;const At=function(){function e(){s(this,e),l(this,"events",void 0),this.events={}}return u(e,[{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.events[e]?this.events[e].push({priority:n,callback:t}):this.events[e]=[{priority:n,callback:t}]}},{key:"off",value:function(e,t){var n=this.events[e];if(n){var o=n.findIndex(function(e){return e.callback===t});n.splice(o,1)}}},{key:"_emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=this.events[e];r&&r.forEach(function(e){e.callback.apply(e,n)})}},{key:"hasListener",value:function(e){var t=this.events[e];return!!t&&t.length>0}},{key:"resetEvents",value:function(){var e=this,t={};Object.keys(this.events).forEach(function(n){var o=e.events[n];if(o&&o.length>0){var r=[];o.forEach(function(e){e.priority&&r.push(e)}),t[n]=r}}),this.events=t}}],[{key:"createChild",value:function(t){t.prototype=Object.create(e.prototype,{constructor:t})}}])}();function St(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Dt={src:"about:blank",frameBorder:0,allowtransparency:!0,scrolling:"no",style:"width: 100%;",allow:"clipboard-read; clipboard-write"},bt=function(e,t){Object.keys(t).forEach(function(n){if(Object.prototype.hasOwnProperty.call(t,n)){var o=t[n];null==o?e.removeAttribute(n):e.setAttribute(n,o)}})};const Mt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.createElement("iframe"),n=wt(wt({},Dt),e);return Object.assign(t.style,Ee),bt(t,n),t.getAttribute("id")||(t.id=t.name),t};var Pt=function(){return it.IFRAME_SECURE_SITE},xt=function(e,t){Object.keys(t).forEach(function(n){Object.prototype.hasOwnProperty.call(t,n)&&(e.style[n]=t[n])})};const Ct=u(function e(){s(this,e)});function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Vt={records:[]};function jt(e,t){var n,o,r,i=ut(at,e,navigator),a={element_id:t,element_type:[],div_id:"",container_name:"",container_id:(null==e?void 0:e.uuid)||"",session_id:(null==e?void 0:e.session_id)||"",vault_id:(null==e||null===(n=e.clientJSON)||void 0===n||null===(n=n.config)||void 0===n?void 0:n.vaultID)||"",vault_url:(null==e||null===(o=e.clientJSON)||void 0===o||null===(o=o.config)||void 0===o?void 0:o.vaultURL)||"",events:[],created_at:Date.now(),region:(null===Intl||void 0===Intl||null===(r=Intl.DateTimeFormat())||void 0===r||null===(r=r.resolvedOptions())||void 0===r?void 0:r.timeZone)||"",status:B.INITIALIZED,sdk_name_version:i.sdk_name_version,sdk_client_device_model:i.sdk_client_device_model||"",sdk_client_os_details:i.sdk_os_version||"",sdk_runtime_details:i.sdk_runtime_details||""};Vt.records.push(a)}function Ft(e,t,n){Vt.records.forEach(function(o){o.element_id===e&&(t===j||t===C?o[t].push(n):t===G&&o.mount_start_time?(o[t]=n,o.latency=n-o.mount_start_time):o[t]=n)})}function Gt(e){var t=Vt.records.filter(function(t){return t.element_id===e});if(t&&t[0]){var n=t[0];n.status=function(e){var t=e.status;return e.events&&e.events.filter(function(e){return e.includes(x.MOUNTED)}).length>0?t=B.SUCCESS:e.events.length>0?t=B.PARTIAL_RENDER:(0===e.events.length||e.error)&&(t=B.FAILED),t}(n);var o=Ut(Ut({},n),{},{time:Math.floor(Date.now()/1e3)});""!==n.vault_id&&""!==n.vault_url&&d().emit(te.PUSH_EVENT+n.container_id,{event:o})}}function Yt(e){setTimeout(function(){Gt(e)},2e4)}var Bt=n(6763),Wt=u(function e(t,n,o,r){var i,a,c=this;s(this,e),l(this,"name",void 0),l(this,"metadata",void 0),l(this,"iframe",void 0),l(this,"container",void 0),l(this,"mount",function(e,t,n){var o;try{if("string"==typeof e){if(c.container=document.querySelector(e)||void 0,!c.container)throw new Lt(je.INVALID_ELEMENT_SELECTOR,[],!0)}else{if(!(e instanceof HTMLElement))throw new Lt(je.INVALID_ELEMENT_SELECTOR,[],!0);c.container=e}}catch(e){Bt.error(e),t&&Ft(t,Y,e.message)}bt(c.iframe,{src:"".concat(Pt()).concat(n?"?".concat(btoa(null==n?void 0:n.record)):"")}),null===(o=c.container)||void 0===o||o.appendChild(c.iframe)}),l(this,"setIframeHeight",function(e){c.iframe.getAttribute("height")!==e&&c.iframe.setAttribute("height","".concat(e,"px"))}),l(this,"unmount",function(){c.iframe.remove()});var p=n.clientDomain||"";this.name="".concat(t,":").concat(o,":").concat(r,":").concat(btoa(p)),this.metadata=n,this.iframe=Mt({name:this.name,referrer:p,title:null!==(i=null===(a=t.match(/^element:([^:]+):/))||void 0===a?void 0:a[1])&&void 0!==i?i:t})});const Xt=u(function e(){s(this,e)});n(4756);var Kt=function(e,t){var n={};if(e.fields){var o={skyflow_id:e.fields.skyflow_id,column:t,fileMetadata:e.fileMetadata};n.success=o}else e.errors&&(n.errors={skyflowId:e.errors.skyflowId,column:e.errors.column,error:e.errors.error});return n};function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(zt=function(){return!!e})()}function Jt(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Qt(e,t){return e.get($t(e,t))}function Zt(e,t,n){return e.set($t(e,t),n),n}function $t(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var en="RevealElement",tn=new WeakMap,nn=new WeakMap,on=new WeakMap,rn=new WeakMap,an=new WeakMap,cn=new WeakMap,ln=new WeakMap,sn=new WeakMap,pn=new WeakMap,un=new WeakMap,En=new WeakMap,dn=new WeakMap,fn=new WeakMap,_n=new WeakMap,In=function(e){function t(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,c=arguments.length>5?arguments[5]:void 0;return s(this,t),n=function(e,t,n){return t=Ae(t),he(e,zt()?Reflect.construct(t,n||[],Ae(e).constructor):t.apply(e,n))}(this,t),Jt(n,tn,void 0),Jt(n,nn,void 0),Jt(n,on,void 0),Jt(n,rn,void 0),Jt(n,an,!1),Jt(n,cn,!1),Jt(n,ln,void 0),Jt(n,sn,void 0),Jt(n,pn,!1),Jt(n,un,void 0),Jt(n,En,void 0),Jt(n,dn,void 0),Jt(n,fn,void 0),Jt(n,_n,!1),Zt(sn,n,a),Zt(nn,n,r),Zt(fn,n,Qt(nn,n).uuid),Zt(on,n,qt(qt({},e),pt(o))),Zt(rn,n,i.containerId),Zt(pn,n,i.isMounted),Zt(un,n,i.eventEmitter),Zt(ln,n,c),jt(r,a),Ft(Qt(sn,n),C,P.REVEAL),Ft(Qt(sn,n),U,P.REVEAL),Zt(tn,n,new Wt("".concat("reveal",":").concat(btoa(f())),r,Qt(rn,n),Qt(ln,n).logLevel)),Zt(dn,n,""),Zt(En,n,!1),Zt(pn,n,!0),Zt(_n,n,r.skyflowContainer.isControllerFrameReady),d().on(ee.HEIGHT+Qt(tn,n).name,function(e){Qt(tn,n).setIframeHeight(e.height)}),n}return we(t,e),u(t,[{key:"getID",value:function(){return Qt(sn,this)}},{key:"mount",value:function(e){var t,n,o=this;if(!e)throw new Lt(je.EMPTY_ELEMENT_IN_MOUNT,["RevealElement"],!0);Ft(Qt(sn,this),k,e),null!==(t=Qt(nn,this))&&void 0!==t&&null!==(t=t.clientJSON)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&null!==(t=t.options)&&void 0!==t&&t.trackMetrics&&null!==(n=Qt(nn,this).clientJSON.config)&&void 0!==n&&null!==(n=n.options)&&void 0!==n&&n.trackingKey&&Yt(Qt(sn,this)),Zt(pn,this,!0),Qt(pn,this)&&(Qt(tn,this).mount(e,void 0,{record:JSON.stringify(qt(qt({},Qt(nn,this)),{},{record:Qt(on,this),context:Qt(ln,this),containerId:Qt(rn,this)}))}),d().target(it.IFRAME_SECURE_ORIGIN).on(ee.MOUNTED+Qt(tn,this).name,function(){Zt(an,o,!0),Qt(on,o).skyflowID?(d().emit(ie+Qt(rn,o),{skyflowID:Qt(on,o).skyflowID,containerId:Qt(rn,o)}),Ft(Qt(sn,o),G,Date.now()),Ft(Qt(sn,o),j,x.MOUNTED)):(d().emit(ie+Qt(rn,o),{id:Qt(on,o).token,containerId:Qt(rn,o)}),Ft(Qt(sn,o),G,Date.now()),Ft(Qt(sn,o),j,x.MOUNTED)),Object.prototype.hasOwnProperty.call(Qt(on,o),"skyflowID")&&d().emit(ee.HEIGHT+Qt(tn,o).name,{},function(e){Qt(tn,o).setIframeHeight(e.height)})}),Ft(Qt(sn,this),j,x.READY),Ft(Qt(sn,this),F,Date.now()))}},{key:"renderFile",value:function(){var e=this;Zt(_n,this,Qt(nn,this).skyflowContainer.isControllerFrameReady);var t="";Object.prototype.hasOwnProperty.call(Qt(on,this),"altText")&&(t=Qt(on,this).altText),this.setAltText("loading...");var n=Qt(ln,this).logLevel;return Qt(_n,this)?new Promise(function(o,r){try{$e(Qt(nn,e).clientJSON.config),vt(mt(h.infoLogs.VALIDATE_RENDER_RECORDS,en),Ue.LOG,n),Je(Qt(on,e)),d().emit(te.REVEAL_CALL_REQUESTS+Qt(nn,e).uuid,{type:$,records:Qt(on,e),containerId:Qt(rn,e),iframeName:Qt(tn,e).name},function(n){n.errors?(vt(mt(h.errorLogs.FAILED_RENDER),Ue.ERROR,Qt(ln,e).logLevel),Object.prototype.hasOwnProperty.call(Qt(on,e),"altText")&&e.setAltText(t),r(Kt(n,Qt(on,e).column))):(vt(mt(h.infoLogs.RENDER_SUBMIT_SUCCESS,en),Ue.LOG,Qt(ln,e).logLevel),vt(mt(h.infoLogs.FILE_RENDERED,en,Qt(on,e).skyflowID),Ue.LOG,Qt(ln,e).logLevel),o(Kt(n,Qt(on,e).column)))}),vt(mt(h.infoLogs.EMIT_EVENT,en,te.RENDER_FILE_REQUEST),Ue.LOG,n)}catch(e){vt("Error: ".concat(e.message),Ue.ERROR,n),r(e)}}):new Promise(function(o,r){try{$e(Qt(nn,e).clientJSON.config),vt(mt(h.infoLogs.VALIDATE_RENDER_RECORDS,en),Ue.LOG,n),Je(Qt(on,e)),d().target(it.IFRAME_SECURE_ORIGIN).on(te.SKYFLOW_FRAME_CONTROLLER_READY+Qt(nn,e).uuid,function(){d().emit(te.REVEAL_CALL_REQUESTS+Qt(nn,e).uuid,{type:$,records:Qt(on,e),containerId:Qt(rn,e),iframeName:Qt(tn,e).name},function(n){n.errors?(vt(mt(h.errorLogs.FAILED_RENDER),Ue.ERROR,Qt(ln,e).logLevel),Object.prototype.hasOwnProperty.call(Qt(on,e),"altText")&&e.setAltText(t),r(Kt(n,Qt(on,e).column))):(vt(mt(h.infoLogs.RENDER_SUBMIT_SUCCESS,en),Ue.LOG,Qt(ln,e).logLevel),vt(mt(h.infoLogs.FILE_RENDERED,en,Qt(on,e).skyflowID),Ue.LOG,Qt(ln,e).logLevel),o(Kt(n,Qt(on,e).column)))}),vt(mt(h.infoLogs.EMIT_EVENT,en,te.RENDER_FILE_REQUEST),Ue.LOG,n)}),vt(mt(h.infoLogs.EMIT_EVENT,en,te.RENDER_FILE_REQUEST),Ue.LOG,n)}catch(e){vt("Error: ".concat(e.message),Ue.ERROR,n),r(e)}})}},{key:"iframeName",value:function(){return Qt(tn,this).name}},{key:"isMounted",value:function(){return Qt(an,this)}},{key:"hasToken",value:function(){return!!Qt(on,this).token}},{key:"isClientSetError",value:function(){return Qt(cn,this)}},{key:"getRecordData",value:function(){return Qt(on,this)}},{key:"setErrorOverride",value:function(e){var t=this;Qt(an,this)?d().emit(te.REVEAL_ELEMENT_SET_ERROR+Qt(tn,this).name,{name:Qt(tn,this).name,isTriggerError:!0,clientErrorText:e}):d().target(it.IFRAME_SECURE_ORIGIN).on(ee.MOUNTED+Qt(tn,this).name,function(){d().emit(te.REVEAL_ELEMENT_SET_ERROR+Qt(tn,t).name,{name:Qt(tn,t).name,isTriggerError:!0,clientErrorText:e})}),Zt(cn,this,!0)}},{key:"setError",value:function(e){var t=this;Qt(an,this)?d().emit(te.REVEAL_ELEMENT_SET_ERROR+Qt(tn,this).name,{name:Qt(tn,this).name,isTriggerError:!0,clientErrorText:e}):d().target(it.IFRAME_SECURE_ORIGIN).on(ee.MOUNTED+Qt(tn,this).name,function(){Zt(an,t,!0),d().emit(te.REVEAL_ELEMENT_SET_ERROR+Qt(tn,t).name,{name:Qt(tn,t).name,isTriggerError:!0,clientErrorText:e})}),Zt(cn,this,!0)}},{key:"resetError",value:function(){var e=this;Qt(an,this)?d().emit(te.REVEAL_ELEMENT_SET_ERROR+Qt(tn,this).name,{name:Qt(tn,this).name,isTriggerError:!1}):d().target(it.IFRAME_SECURE_ORIGIN).on(ee.MOUNTED+Qt(tn,this).name,function(){Zt(an,e,!0),d().emit(te.REVEAL_ELEMENT_SET_ERROR+Qt(tn,e).name,{name:Qt(tn,e).name,isTriggerError:!1})}),Zt(cn,this,!1)}},{key:"setAltText",value:function(e){var t=this;Qt(an,this)?d().emit(te.REVEAL_ELEMENT_UPDATE_OPTIONS+Qt(tn,this).name,{name:Qt(tn,this).name,updateType:oe,updatedValue:e}):d().target(it.IFRAME_SECURE_ORIGIN).on(ee.MOUNTED+Qt(tn,this).name,function(){Zt(an,t,!0),d().emit(te.REVEAL_ELEMENT_UPDATE_OPTIONS+Qt(tn,t).name,{name:Qt(tn,t).name,updateType:oe,updatedValue:e})})}},{key:"clearAltText",value:function(){var e=this;Qt(an,this)?d().emit(te.REVEAL_ELEMENT_UPDATE_OPTIONS+Qt(tn,this).name,{name:Qt(tn,this).name,updateType:oe,updatedValue:null}):d().target(it.IFRAME_SECURE_ORIGIN).on(ee.MOUNTED+Qt(tn,this).name,function(){Zt(an,e,!0),d().emit(te.REVEAL_ELEMENT_UPDATE_OPTIONS+Qt(tn,e).name,{name:Qt(tn,e).name,updateType:oe,updatedValue:null})})}},{key:"setToken",value:function(e){var t=this;Zt(on,this,qt(qt({},Qt(on,this)),{},{token:e})),Qt(an,this)?d().emit(te.REVEAL_ELEMENT_UPDATE_OPTIONS+Qt(tn,this).name,{name:Qt(tn,this).name,updateType:ne,updatedValue:e}):d().target(it.IFRAME_SECURE_ORIGIN).on(ee.MOUNTED+Qt(tn,this).name,function(){Zt(an,t,!0),d().emit(te.REVEAL_ELEMENT_UPDATE_OPTIONS+Qt(tn,t).name,{name:Qt(tn,t).name,updateType:ne,updatedValue:e})})}},{key:"unmount",value:function(){var e;Qt(on,this).skyflowID&&(Zt(an,this,!1),null===(e=Qt(tn,this).container)||void 0===e||e.remove());Zt(an,this,!1),Qt(tn,this).unmount()}},{key:"update",value:function(e){var t=this;Zt(on,this,qt(qt({},Qt(on,this)),e)),Qt(an,this)?d().emit(te.REVEAL_ELEMENT_UPDATE_OPTIONS+Qt(tn,this).name,{name:Qt(tn,this).name,updateType:re,updatedValue:e}):d().target(it.IFRAME_SECURE_ORIGIN).on(ee.MOUNTED+Qt(tn,this).name,function(){Zt(an,t,!0),d().emit(te.REVEAL_ELEMENT_UPDATE_OPTIONS+Qt(tn,t).name,{name:Qt(tn,t).name,updateType:re,updatedValue:e})})}}])}(Xt);const vn=In;function mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ln(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ln=function(){return!!e})()}function On(e,t,n){Tn(e,t),t.set(e,n)}function Tn(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Nn(e,t){return e.get(Rn(e,t))}function gn(e,t,n){return e.set(Rn(e,t),n),n}function Rn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var hn="RevealContainer",An=new WeakMap,Sn=new WeakMap,wn=new WeakMap,Dn=new WeakMap,bn=new WeakMap,Mn=new WeakMap,Pn=new WeakMap,xn=new WeakMap,Cn=new WeakMap,kn=new WeakMap,Un=new WeakMap,Vn=new WeakMap,jn=new WeakSet,Fn=function(e){function t(e,n,o,r){var i,a,c,p;s(this,t),p=function(e,t,n){return t=Ae(t),he(e,Ln()?Reflect.construct(t,n||[],Ae(e).constructor):t.apply(e,n))}(this,t),function(e,t){Tn(e,t),t.add(e)}(p,jn),On(p,An,[]),On(p,Sn,[]),On(p,wn,[]),On(p,Dn,void 0),On(p,bn,void 0),On(p,Mn,void 0),On(p,Pn,!1),On(p,xn,!1),On(p,Cn,void 0),On(p,kn,void 0),On(p,Un,!1),l(p,"type",Xa.REVEAL),On(p,Vn,!1),gn(Vn,p,null==e||null===(i=e.skyflowContainer)||void 0===i?void 0:i.isControllerFrameReady),gn(Dn,p,yn(yn({},e),{},{clientJSON:yn(yn({},e.clientJSON),{},{config:yn(yn({},null===(a=e.clientJSON)||void 0===a?void 0:a.config),{},{options:yn(yn({},null===(c=e.clientJSON)||void 0===c||null===(c=c.config)||void 0===c?void 0:c.options),r)})})})),gn(kn,p,n),gn(bn,p,f()),gn(Mn,p,new At),gn(Cn,p,o);var u=Nn(Dn,p).clientDomain||"",E=Mt({name:"".concat("reveal_controller",":").concat(Nn(bn,p),":").concat(btoa(u)),referrer:u});return bt(E,{src:Pt()}),xt(E,yn({},de)),vt(mt(h.infoLogs.CREATE_REVEAL_CONTAINER,hn),Ue.LOG,Nn(Cn,p).logLevel),d().target(window.location.origin).on(ie+Nn(bn,p),function(e){e.skyflowID||Nn(wn,p).push(e);var t=0;Nn(Sn,p).forEach(function(e){e.getRecordData().skyflowID||(t+=1)}),gn(xn,p,Nn(wn,p).length===t),Nn(Pn,p)&&Nn(xn,p)&&Nn(Mn,p)._emit(ae+Nn(bn,p),{containerId:Nn(bn,p)})}),p}return we(t,e),u(t,[{key:"create",value:function(e,t){var n=f();rt(t);var o=new vn(e,t,Nn(Dn,this),{containerId:Nn(bn,this),isMounted:Nn(Un,this),eventEmitter:Nn(Mn,this),type:Xa.REVEAL},n,Nn(Cn,this));return Nn(Sn,this).push(o),Nn(kn,this)[n]=o,o}},{key:"reveal",value:function(){var e=this;return gn(Pn,this,!0),gn(An,this,[]),Nn(Dn,this).skyflowContainer.isControllerFrameReady?new Promise(function(t,n){try{if($e(Nn(Dn,e).clientJSON.config),vt(mt(h.infoLogs.VALIDATE_REVEAL_RECORDS,hn),Ue.LOG,Nn(Cn,e).logLevel),Nn(Sn,e).forEach(function(t){if(t.isClientSetError())throw new Lt(je.REVEAL_ELEMENT_ERROR_STATE);t.getRecordData().skyflowID||Nn(An,e).push(t.getRecordData())}),0===Nn(An,e).length)throw new Lt(je.NO_ELEMENTS_IN_REVEAL,[],!0);if(ze(Nn(An,e)),Nn(xn,e))Rn(jn,e,Gn).call(e,t,n);else{var o=setTimeout(function(){vt(h.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL,Ue.ERROR,Nn(Cn,e).logLevel),n(new Error(h.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL))},1e4);Nn(Mn,e).on(ae+Nn(bn,e),function(){clearTimeout(o),Rn(jn,e,Gn).call(e,t,n)})}}catch(t){vt("Error: ".concat(t.message),Ue.ERROR,Nn(Cn,e).logLevel),n(t)}}):new Promise(function(t,n){try{if($e(Nn(Dn,e).clientJSON.config),vt(mt(h.infoLogs.VALIDATE_REVEAL_RECORDS,hn),Ue.LOG,Nn(Cn,e).logLevel),Nn(Sn,e).forEach(function(t){if(t.isClientSetError())throw new Lt(je.REVEAL_ELEMENT_ERROR_STATE);t.getRecordData().skyflowID||Nn(An,e).push(t.getRecordData())}),0===Nn(An,e).length)throw new Lt(je.NO_ELEMENTS_IN_REVEAL,[],!0);if(ze(Nn(An,e)),Nn(xn,e))d().target(it.IFRAME_SECURE_ORIGIN).on(te.SKYFLOW_FRAME_CONTROLLER_READY+Nn(Dn,e).uuid,function(){Rn(jn,e,Gn).call(e,t,n)});else{var o=setTimeout(function(){vt(h.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL,Ue.ERROR,Nn(Cn,e).logLevel),n(new Error(h.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL))},1e4);Nn(Mn,e).on(ae+Nn(bn,e),function(){clearTimeout(o),Nn(Dn,e).skyflowContainer.isControllerFrameReady?Rn(jn,e,Gn).call(e,t,n):d().target(it.IFRAME_SECURE_ORIGIN).on(te.SKYFLOW_FRAME_CONTROLLER_READY+Nn(Dn,e).uuid,function(){Rn(jn,e,Gn).call(e,t,n)})})}}catch(t){vt("Error: ".concat(t.message),Ue.ERROR,Nn(Cn,e).logLevel),n(t)}})}}])}(Ct);function Gn(e,t){var n=this;d().emit(te.REVEAL_CALL_REQUESTS+Nn(Dn,this).uuid,{type:Z,records:Nn(An,this),containerId:Nn(bn,this)},function(o){gn(wn,n,[]),o.error?(vt(mt(h.errorLogs.FAILED_REVEAL),Ue.ERROR,Nn(Cn,n).logLevel),t(o.error)):(vt(mt(h.infoLogs.REVEAL_SUBMIT_SUCCESS,hn),Ue.LOG,Nn(Cn,n).logLevel),e(o))})}const Yn=Fn;function Bn(e){return JSON.parse(JSON.stringify(e))}const Wn=function(){return u(function e(){s(this,e),l(this,"listeners",void 0),l(this,"isDestroyed",void 0),this.listeners=[],this.isDestroyed=!1},[{key:"on",value:function(e,t){d().on(e,t),this.listeners.push({eventName:e,callback:t})}},{key:"off",value:function(e,t){d().off(e,t);var n=this.listeners.findIndex(function(t){return t.eventName===e});-1!==n&&this.listeners.splice(n,1)}},{key:"emit",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;d().emit(e,t,n)}},{key:"hasListener",value:function(e){return-1!==this.listeners.findIndex(function(t){return t.eventName===e})}},{key:"teardown",value:function(){this.listeners.forEach(function(e){d().off(e.eventName,e.handler)}),this.listeners=[]}}])}();var Xn=["name"];function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qn=function(){return!!e})()}function zn(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Jn(e,t){return e.get(Zn(e,t))}function Qn(e,t,n){return e.set(Zn(e,t),n),n}function Zn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var $n=new WeakMap,eo=new WeakMap,to=new WeakMap,no=new WeakMap,oo=new WeakMap,ro=new WeakMap,io=new WeakMap,ao=new WeakMap,co=new WeakMap,lo=new WeakMap,so=new WeakMap,po=new WeakMap,uo=new WeakMap,Eo=new WeakMap,fo=new WeakMap,_o=new WeakMap,Io=new WeakMap,vo=new WeakMap,mo=new WeakMap,yo=new WeakMap,Lo=new WeakMap,Oo=new WeakMap,To=function(e){function t(e,n,o,r){var i,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=arguments.length>5?arguments[5]:void 0,p=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,E=arguments.length>8?arguments[8]:void 0;return s(this,t),i=function(e,t,n){return t=Ae(t),he(e,qn()?Reflect.construct(t,n||[],Ae(e).constructor):t.apply(e,n))}(this,t),l(i,"elementType",void 0),l(i,"type",Xa.COLLECT),zn(i,$n,void 0),l(i,"containerId",void 0),zn(i,eo,!1),zn(i,to,void 0),zn(i,no,void 0),l(i,"resizeObserver",void 0),zn(i,oo,{isEmpty:!0,isComplete:!1,isValid:!1,isFocused:!1,value:void 0,isRequired:!1,selectedCardScheme:""}),zn(i,ro,void 0),zn(i,io,void 0),zn(i,ao,new At),zn(i,co,void 0),zn(i,lo,new Wn),zn(i,so,void 0),zn(i,po,[]),zn(i,uo,!1),zn(i,Eo,void 0),zn(i,fo,void 0),zn(i,_o,!1),zn(i,Io,!1),l(i,"getID",function(){return Jn($n,i)}),l(i,"mount",function(e){var t;if(Qn(uo,i,!0),!e)throw new Lt(je.EMPTY_ELEMENT_IN_MOUNT,["CollectElement"],!0);if(e instanceof HTMLElement?i.resizeObserver=new ResizeObserver(function(){var t=e.getElementsByTagName("iframe");if(t&&t.length>0)for(var n=0;n<t.length;n++){var o,r=t[n];if(r.name===Jn(so,i).name&&r.contentWindow)null==r||null===(o=r.contentWindow)||void 0===o||o.postMessage({name:ee.HEIGHT+Jn(so,i).name},it.IFRAME_SECURE_ORIGIN)}}):"string"==typeof e&&(i.resizeObserver=new ResizeObserver(function(){Jn(lo,i).emit(ee.HEIGHT+Jn(so,i).name,{},function(e){Jn(so,i).setIframeHeight(e.height)})})),Ft(Jn($n,i),k,e),null!==(t=Jn(io,i))&&void 0!==t&&null!==(t=t.clientJSON)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&null!==(t=t.options)&&void 0!==t&&t.trackMetrics&&Jn(io,i).clientJSON.config.options.trackingKey&&Yt(Jn($n,i)),"string"==typeof e){var n,o=document.querySelector(e);if(o)null===(n=i.resizeObserver)||void 0===n||n.observe(o)}else if(e instanceof HTMLElement){var r;null===(r=i.resizeObserver)||void 0===r||r.observe(e)}Jn(no,i).length>1?(Jn(so,i).mount(e,Jn($n,i),{record:JSON.stringify({record:Jn(ro,i),containerId:i.containerId,metaData:Jn(io,i)})}),Jn(no,i).forEach(function(e,t){Jn(co,i)&&(Jn(co,i)._emit("".concat(ee.READY,":").concat(e.elementName),Hn(Hn({},Jn(to,i)[t]),{},{elementType:e.elementType})),Ft(Jn($n,i),j,"".concat(e.elementType,"_").concat(V.READY)))}),Ft(Jn($n,i),F,Date.now())):Jn(_o,i)&&(Jn(so,i).mount(e,Jn($n,i),{record:JSON.stringify({record:Jn(ro,i),containerId:i.containerId,metaData:Jn(io,i)})}),Ft(Jn($n,i),F,Date.now()))}),l(i,"unmount",function(){var e;(Jn(so,i).unmount(),i.resizeObserver)&&(null===(e=i.resizeObserver)||void 0===e||e.disconnect())}),l(i,"updateElementGroup",function(e){var t=Bn(e),n=function(){Jn(eo,i)&&(t={rows:[{elements:[Hn({},t)]}]}),Qn(ro,i,Yo(Jn(ro,i),t)),Qn(no,i,Bo(Jn(ro,i))),Jn(eo,i)?Jn(lo,i).emit(te.SET_VALUE+st(Jn(so,i).name),{name:Jn(so,i).name,options:Jn(no,i)[0],isSingleElementAPI:!0}):(Jn(no,i).forEach(function(e){Jn(lo,i).emit(te.SET_VALUE+st(Jn(so,i).name),{name:e.elementName,options:e,isSingleElementAPI:!0})}),Jn(lo,i).emit(te.SET_VALUE+st(Jn(so,i).name),{name:Jn(so,i).name,options:Jn(ro,i),isSingleElementAPI:!1})),Jn(Oo,i).call(i)};Jn(uo,i)?n():Jn(po,i).push(n)}),zn(i,vo,function(e){Jn(eo,i)||Jn(ao,i).on(te.SET_VALUE+st(Jn(so,i).name),function(){e(Jn(no,i))},!0)}),l(i,"updateElement",function(e){Jn(lo,i).emit(te.SET_VALUE+e.elementName,{name:e.elementName,options:e,isSingleElementAPI:!0})}),l(i,"update",function(e){Qn(Io,i,!0),Jn(uo,i)?(e.validations=Wo(e.validations),i.updateElement(Hn({elementName:Jn(ro,i).elementName},e)),Qn(Io,i,!1)):Jn(Io,i)&&Jn(ao,i).on("".concat(xe.READY,":").concat(Jn($n,i)),function(){e.validations=Wo(e.validations),i.updateElement(Hn({elementName:Jn(ro,i).elementName},e)),Qn(uo,i,!0),Qn(Io,i,!1)})}),zn(i,mo,function(){Jn(to,i).forEach(function(e,t){if(0===t){Jn(oo,i).isEmpty=e.isEmpty,Jn(oo,i).isComplete=e.isComplete,Jn(oo,i).isValid=e.isValid,Jn(oo,i).isFocused=e.isFocused,Jn(oo,i).isRequired=e.isRequired,Jn(oo,i).value={},Jn(oo,i).selectedCardScheme="";var n=Jn(no,i)[t].elementName,o=e.value&&function(e,t,n){if("string"!=typeof e)return e;if(t===ce.CARD_NUMBER){if(e=e&&e.replace(/[\s-]/g,""),!n){var o,r=Ge(e),i=r!==le.DEFAULT&&r===le.AMEX?6:8;return e.length>i?e.replace(new RegExp(".(?=.{0,".concat((null===(o=e)||void 0===o?void 0:o.length)-i-1,"}$)"),"g"),"X"):e}return e}return n?e:void 0}(e.value,e.elementType,Jn(fo,i));Jn(eo,i)?Jn(oo,i).value=o:Jn(oo,i).value[n]=o}else Jn(oo,i).isEmpty=Jn(oo,i).isEmpty||e.isEmpty,Jn(oo,i).isComplete=Jn(oo,i).isComplete&&e.isComplete,Jn(oo,i).isValid=Jn(oo,i).isValid&&e.isValid,Jn(oo,i).isFocused=Jn(oo,i).isFocused||e.isFocused,Jn(oo,i).isRequired=Jn(oo,i).isRequired||e.isRequired,Jn(oo,i).selectedCardScheme=Jn(oo,i).selectedCardScheme||e.selectedCardScheme,Jn(oo,i).value||(Jn(oo,i).value={}),Jn(no,i)[t].sensitive||(Jn(oo,i).value[Jn(no,i)[t].elementName]=e.value||"")})}),l(i,"getState",function(){return{isEmpty:Jn(oo,i).isEmpty,isComplete:Jn(oo,i).isComplete,isValid:Jn(oo,i).isValid,isFocused:Jn(oo,i).isFocused,value:Jn(oo,i).value,required:Jn(oo,i).isRequired,selectedCardScheme:""}}),l(i,"getOptions",function(){var e=Bn(Jn(ro,i));return Jn(eo,i)?e=e.rows[0].elements[0]:e.rows.forEach(function(e){e.elements.forEach(function(e){delete e.elementName})}),delete e.elementName,e}),zn(i,yo,function(e){Jn(ao,i).on(te.DESTROY_FRAME,function(){var t=Jn(no,i).map(function(e){return e.elementName});Jn(eo,i)||t.push(Jn(so,i).name),e(t)},!0)}),zn(i,Lo,function(){Jn(lo,i).on(te.COLLECT_ELEMENT_READY,function(e){if(e.ready&&e.name===i.iframeName()){var t=Jn(to,i)[0],n=(t.name,function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(t,Xn));Jn(ao,i)._emit(ee.READY,Hn({},n))}}),Jn(no,i).forEach(function(e){var t,n="COMPOSABLE"===(null===(t=Jn(io,i))||void 0===t?void 0:t.containerType);n?window.addEventListener("message",function(t){if(t.data.type===te.INPUT_EVENT+e.elementName){var o=t.data.data;o.name===e.elementName&&(Jn(eo,i)&&o.event===ee.READY&&o.name===st(Jn(so,i).name)?Jn(ao,i)._emit(ee.READY):Jn(no,i).forEach(function(e,t){var r;if(o.name===e.elementName){var a,c,l="";switch(o.event){case ee.FOCUS:l=ee.FOCUS;break;case ee.BLUR:l=ee.BLUR;break;case ee.CHANGE:l=ee.CHANGE;break;case ee.READY:l=ee.READY;break;case ee.SUBMIT:return void(null===(r=Jn(co,i))||void 0===r||r._emit(ee.SUBMIT));default:throw new Lt(je.INVALID_EVENT_TYPE,[],!0)}if(Jn(to,i)[t].isEmpty=o.value.isEmpty,Jn(to,i)[t].isValid=o.value.isValid,Jn(to,i)[t].isComplete=o.value.isComplete,Jn(to,i)[t].isFocused=o.value.isFocused,Jn(to,i)[t].isRequired=o.value.isRequired,Jn(to,i)[t].selectedCardScheme=(null==o||null===(a=o.value)||void 0===a?void 0:a.selectedCardScheme)||"",e.elementType===ce.MULTI_FILE_INPUT||e.elementType===ce.FILE_INPUT)Jn(to,i)[t].metaData=(null==o||null===(c=o.value)||void 0===c?void 0:c.metaData)||[];Object.prototype.hasOwnProperty.call(o.value,"value")?Jn(to,i)[t].value=o.value.value:Jn(to,i)[t].value=void 0,l=n?"".concat(l,":").concat(o.name):l,Jn(lo,i).emit(ee.HEIGHT+Jn(so,i).name,{},function(e){Jn(so,i).setIframeHeight(e.height)}),Jn(mo,i).call(i);var s,p=Hn(Hn({},Jn(to,i)[t]),{},{elementType:e.elementType});if(n)null===(s=Jn(co,i))||void 0===s||s._emit(ee.HEIGHT,{iframeName:Jn(so,i).name});n&&Jn(co,i)?Jn(co,i)._emit(l,p):Jn(ao,i)._emit(l,p)}}))}}):Jn(lo,i).on(te.INPUT_EVENT+e.elementName,function(e){if(Jn(eo,i)&&e.event===ee.READY&&e.name===st(Jn(so,i).name))Jn(ao,i)._emit(ee.READY);else{var t=Jn(no,i).length>1;Jn(no,i).forEach(function(n,o){var r;if(e.name===n.elementName){var a,c="";switch(e.event){case ee.FOCUS:c=ee.FOCUS;break;case ee.BLUR:c=ee.BLUR;break;case ee.CHANGE:c=ee.CHANGE;break;case ee.READY:c=ee.READY;break;case ee.SUBMIT:return void(null===(r=Jn(co,i))||void 0===r||r._emit(ee.SUBMIT));default:throw new Lt(je.INVALID_EVENT_TYPE,[],!0)}Jn(to,i)[o].isEmpty=e.value.isEmpty,Jn(to,i)[o].isValid=e.value.isValid,Jn(to,i)[o].isComplete=e.value.isComplete,Jn(to,i)[o].isFocused=e.value.isFocused,Jn(to,i)[o].isRequired=e.value.isRequired,Jn(to,i)[o].selectedCardScheme=(null==e||null===(a=e.value)||void 0===a?void 0:a.selectedCardScheme)||"",Object.prototype.hasOwnProperty.call(e.value,"value")?Jn(to,i)[o].value=e.value.value:Jn(to,i)[o].value=void 0,c=t?"".concat(c,":").concat(e.name):c,Jn(lo,i).emit(ee.HEIGHT+Jn(so,i).name,{},function(e){Jn(so,i).setIframeHeight(e.height)}),Jn(mo,i).call(i);var l,s=Hn(Hn({},Jn(to,i)[o]),{},{elementType:n.elementType});if(t)null===(l=Jn(co,i))||void 0===l||l._emit(ee.HEIGHT,{iframeName:Jn(so,i).name});t&&Jn(co,i)?Jn(co,i)._emit(c,s):Jn(ao,i)._emit(c,s)}})}})})}),zn(i,Oo,function(){Jn(ro,i).rows.forEach(function(e){e.elements.forEach(function(e){e.elementType!==pe.radio.name&&e.elementType!==pe.checkbox.name&&(e.value=void 0)})}),Qn(no,i,Bo(Jn(ro,i)))}),i.containerId=r.containerId,Qn($n,i,e),Qn(Eo,i,u),Qn(io,i,o),Qn(ro,i,Yo(n)),Qn(no,i,Bo(n)),Qn(eo,i,a),i.resizeObserver=null,E&&Qn(co,i,E),Qn(fo,i,_t[Jn(Eo,i).env].doesReturnValue),i.elementType=Jn(eo,i)?Jn(no,i)[0].elementType:"group",jt(o,e),Qn(to,i,[]),Jn(no,i).forEach(function(e){Ft(Jn($n,i),C,e.elementType),Jn(to,i).push({isEmpty:!0,isComplete:!1,isValid:!e.required&&Jn(oo,i).isEmpty,isFocused:!1,value:Jn(fo,i)?"":void 0,elementType:e.elementType,name:e.elementName,isRequired:e.required,selectedCardScheme:"",metaData:void 0})}),Jn(no,i)&&Jn(no,i).length&&Jn(no,i).length>1?Ft(Jn($n,i),U,P.COMPOSE):Ft(Jn($n,i),U,P.COLLECT),Qn(so,i,new Wt(Jn(ro,i).elementName,o,i.containerId,Jn(Eo,i).logLevel)),Jn(Lo,i).call(i),Jn(yo,i).call(i,c),Jn(vo,i).call(i,p),vt(mt(h.infoLogs.CREATED_ELEMENT,"Element",function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(":");if("group"===e[1])return"composable container";var t=atob(e[2]);return-1!==t.indexOf(":")&&(t=t.substring(0,t.indexOf(":"))),t}(Jn(so,i).name)),Ue.LOG,Jn(Eo,i).logLevel),Qn(_o,i,r.isMounted),r.type===Xa.COMPOSABLE&&(window.addEventListener("message",function(e){e.data.type===te.HEIGHT_CALLBACK+Jn(so,i).name&&Jn(so,i).setIframeHeight(e.data.data.height)}),Jn(no,i).forEach(function(e){window.addEventListener("message",function(t){t.data.type===ee.MOUNTED+st(e.elementName)&&(e.isMounted=!0,Qn(uo,i,!0))})})),Jn(lo,i).on(ee.MOUNTED+st(Jn(so,i).name),function(e){e.name===Jn(no,i)[0].elementName&&(Ft(Jn($n,i),G,Date.now()),Ft(Jn($n,i),j,x.MOUNTED),Jn(no,i)[0].isMounted=!0,Qn(uo,i,!0),Jn(lo,i).emit(ee.HEIGHT+Jn(so,i).name,{},function(e){Jn(so,i).setIframeHeight(e.height)}))}),i}return we(t,e),u(t,[{key:"on",value:function(e,t){if(!Object.values(ee).includes(e))throw new Lt(je.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new Lt(je.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new Lt(je.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);Jn(ao,this).on(e,function(e){void 0===e.value&&(e.value=""),e.elementType!==ce.CARD_NUMBER&&delete e.selectedCardScheme,delete e.isComplete,delete e.name,t(e)}),e===ee.READY&&Jn(lo,this).emit(te.COLLECT_ELEMENT_READY,{ready:Jn(_o,this),name:this.iframeName()})}},{key:"iframeName",value:function(){return Jn(so,this).name}},{key:"isMounted",value:function(){return Jn(uo,this)}},{key:"isUpdateCalled",value:function(){return Jn(Io,this)}},{key:"isValidElement",value:function(){for(var e=0;e<Jn(no,this).length;e+=1){if(!Object.prototype.hasOwnProperty.call(Jn(no,this)[e],"table"))throw new Lt(je.MISSING_TABLE_IN_COLLECT,[],!0);if(!Jn(no,this)[e].table)throw new Lt(je.EMPTY_TABLE_IN_COLLECT,[],!0);if(!("string"==typeof Jn(no,this)[e].table||Jn(no,this)[e].table instanceof String))throw new Lt(je.INVALID_TABLE_IN_COLLECT,[],!0);if(!Object.prototype.hasOwnProperty.call(Jn(no,this)[e],"column"))throw new Lt(je.MISSING_COLUMN_IN_COLLECT,[],!0);if(!Jn(no,this)[e].column)throw new Lt(je.EMPTY_COLUMN_IN_COLLECT,[],!0);if(!("string"==typeof Jn(no,this)[e].column||Jn(no,this)[e].column instanceof String))throw new Lt(je.INVALID_COLUMN_IN_COLLECT,[],!0);if(void 0!==Jn(no,this)[e].skyflowID&&!Jn(no,this)[e].skyflowID)throw new Lt(je.EMPTY_SKYFLOW_ID_COLLECT,[],!0)}return!0}},{key:"setErrorOverride",value:function(e){Jn(lo,this).emit(te.COLLECT_ELEMENT_SET_ERROR_OVERRIDE+st(Jn(so,this).name),{name:st(Jn(so,this).name),customErrorText:e})}},{key:"setError",value:function(e){Jn(lo,this).emit(te.COLLECT_ELEMENT_SET_ERROR+st(Jn(so,this).name),{name:st(Jn(so,this).name),isTriggerError:!0,clientErrorText:e})}},{key:"resetError",value:function(){Jn(lo,this).emit(te.COLLECT_ELEMENT_SET_ERROR+st(Jn(so,this).name),{name:st(Jn(so,this).name),isTriggerError:!1})}},{key:"setValue",value:function(e){Jn(Eo,this).env!==ke.PROD?Jn(eo,this)&&Jn(lo,this).emit(te.SET_VALUE+st(Jn(so,this).name),{name:Jn(so,this).name,options:Hn(Hn({},Jn(no,this)[0]),{},{value:e},Jn(ro,this)),isSingleElementAPI:!0}):vt(mt(h.warnLogs.UNABLE_TO_SET_VALUE_IN_PROD_ENV,Jn(no,this)[0].elementType),Ue.WARN,Jn(Eo,this).logLevel)}},{key:"clearValue",value:function(){Jn(Eo,this).env!==ke.PROD?Jn(eo,this)&&Jn(lo,this).emit(te.SET_VALUE+st(Jn(so,this).name),{name:Jn(so,this).name,options:Hn(Hn({},Jn(no,this)[0]),{},{value:""}),isSingleElementAPI:!0}):vt(mt(h.warnLogs.UNABLE_TO_CLEAR_VALUE_IN_PROD_ENV,Jn(no,this)[0].elementType),Ue.WARN,Jn(Eo,this).logLevel)}}])}(Xt);const No=To;function go(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Ro(e,t){return e.get(Ao(e,t))}function ho(e,t,n){return e.set(Ao(e,t),n),n}function Ao(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var So=new WeakMap,wo=new WeakMap,Do=new WeakMap,bo=new WeakMap,Mo=new WeakMap,Po=new WeakMap,xo=new WeakMap,Co=new WeakMap;const ko=function(){return u(function e(t,n,o,r){var i,a,c,p=this;s(this,e),go(this,So,void 0),go(this,wo,void 0),go(this,Do,void 0),l(this,"type",Xa.COMPOSABLE),go(this,bo,!1),go(this,Mo,!1),go(this,Po,void 0),go(this,xo,void 0),go(this,Co,void 0),l(this,"update",function(e){ho(Mo,p,!0),Ro(bo,p)?(e.validations=Wo(e.validations),Ro(wo,p)._emit(te.COMPOSABLE_UPDATE_OPTIONS,{elementName:Ro(So,p),elementOptions:e}),ho(Mo,p,!1)):Ro(Mo,p)&&Ro(wo,p).on("".concat(xe.READY,":").concat(Ro(So,p)),function(){e.validations=Wo(e.validations),Ro(wo,p)._emit(te.COMPOSABLE_UPDATE_OPTIONS,{elementName:Ro(So,p),elementOptions:e}),ho(bo,p,!0),ho(Mo,p,!1)})}),l(this,"uploadMultipleFiles",function(e){return new Promise(function(t,n){try{if(Ro(Co,p)!==ce.MULTI_FILE_INPUT)throw new Lt(je.MULTI_FILE_NOT_SUPPORTED,[],!0);Ro(wo,p)._emit("".concat(te.MULTIPLE_UPLOAD_FILES,":").concat(Ro(So,p)),{options:e},function(e){e.error&&n(e)}),window.addEventListener("message",function(e){var o,r,i,a,c,l,s;if((null==e||null===(o=e.data)||void 0===o?void 0:o.type)==="".concat(te.MULTIPLE_UPLOAD_FILES_RESPONSE,":").concat(Ro(So,p)))if(null!=e&&null!==(r=e.data)&&void 0!==r&&null!==(r=r.data)&&void 0!==r&&r.errorResponse||null!=e&&null!==(i=e.data)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&i.error)vt("".concat((null==e||null===(c=e.data)||void 0===c?void 0:c.data.errorResponse)||(null==e||null===(l=e.data)||void 0===l?void 0:l.data.error)),Ue.ERROR,Ro(xo,p).logLevel),n(null==e||null===(s=e.data)||void 0===s?void 0:s.data);else if(null!=e&&null!==(a=e.data)&&void 0!==a&&a.data.fileUploadResponse){var u;vt(h.infoLogs.MULTI_UPLOAD_FILES_SUCCESS,Ue.LOG,Ro(xo,p).logLevel),t(null==e||null===(u=e.data)||void 0===u?void 0:u.data)}else{var E,d;vt("".concat(null==e||null===(E=e.data)||void 0===E?void 0:E.data),Ue.ERROR,Ro(xo,p).logLevel),n(null==e||null===(d=e.data)||void 0===d?void 0:d.data)}})}catch(e){vt("".concat(e),Ue.ERROR,Ro(xo,p).logLevel),n(e)}})}),ho(So,this,t),ho(Do,this,o),ho(wo,this,n),Ro(wo,this).on("".concat(xe.READY,":").concat(Ro(So,this)),function(){ho(bo,p,!0)}),ho(Po,this,r),ho(xo,this,{logLevel:null===(i=Ro(Po,this))||void 0===i||null===(i=i.clientJSON)||void 0===i||null===(i=i.config)||void 0===i||null===(i=i.options)||void 0===i?void 0:i.logLevel,env:null===(a=Ro(Po,this))||void 0===a||null===(a=a.clientJSON)||void 0===a||null===(a=a.config)||void 0===a||null===(a=a.options)||void 0===a?void 0:a.env}),ho(Co,this,null===(c=Ro(Po,this))||void 0===c?void 0:c.type)},[{key:"on",value:function(e,t){if(!Object.values(ee).includes(e))throw new Lt(je.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new Lt(je.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new Lt(je.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);Ro(wo,this).on("".concat(e,":").concat(Ro(So,this)),function(e){void 0===e.value&&(e.value=""),e.elementType!==ce.CARD_NUMBER&&delete e.selectedCardScheme,delete e.isComplete,delete e.name,t(e)})}},{key:"iframeName",value:function(){return Ro(Do,this)}},{key:"getID",value:function(){return Ro(So,this)}}])}();function Uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uo(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jo(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Go(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("group"!==e&&!Object.prototype.hasOwnProperty.call(pe,e))throw new Lt(je.INVALID_ELEMENT_TYPE,[],!0);if(Object.prototype.hasOwnProperty.call(t,"validations")){if(!Array.isArray(t.validations))throw new Lt(je.INVALID_VALIDATIONS_TYPE,[],!0);t.validations.forEach(function(e,t){if(!Object.prototype.hasOwnProperty.call(e,"type"))throw new Lt(je.MISSING_VALIDATION_RULE_TYPE,["".concat(t)],!0);if(!Object.values(Ve).includes(e.type))throw new Lt(je.INVALID_VALIDATION_RULE_TYPE,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"params"))throw new Lt(je.MISSING_VALIDATION_RULE_PARAMS,["".concat(t)],!0);if("object"!==a(e.params)||Array.isArray(e.params)||null===e.params)throw new Lt(je.INVALID_VALIDATION_RULE_PARAMS,["".concat(t)],!0);if(e.type===Ve.REGEX_MATCH_RULE){if(!Object.prototype.hasOwnProperty.call(e.params,"regex"))throw new Lt(je.MISSING_REGEX_IN_REGEX_MATCH_RULE,["".concat(t)],!0)}else if(e.type===Ve.LENGTH_MATCH_RULE&&!Object.prototype.hasOwnProperty.call(e.params,"min")&&!Object.prototype.hasOwnProperty.call(e.params,"max"))throw new Lt(je.MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE,["".concat(t)],!0)})}if(Object.prototype.hasOwnProperty.call(n,"name")&&n.name!==t.name)throw new Error("Name attribute can't be updated");if((n=Fo(Fo({},t),n)).mask||n.replacePattern){var o=pe[e].attributes.type;"text"===o&&"textarea"===o&&"email"===o||(delete n.mask,delete n.replacePattern)}if(void 0===!n.mask&&!Array.isArray(n.mask))throw new Error("mask option has to be array or undefined");if(Array.isArray(n.mask)){var r=n.mask;if("string"!=typeof r[0]||r[1]&&"object"!==a(r[1]))throw new Error("mask array values has to be string")}if(Array.isArray(n.replacePattern)){var i=n.replacePattern;if("string"!=typeof i[0]||i[1]&&"string"!=typeof i[1])throw new Error("replacePatterns array values has to be string")}if((e===pe.radio.name||e===pe.checkbox.name)&&!n.value)throw new Error("Elements radio and checkbox requires value attribute");if(!(e!==pe.dropdown.name||n.options&&Array.isArray(n.options)&&0!==n.options.length))throw new Error("Element dropdown requires options attribute with an array of objects containing value and text attributes")}function Yo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(t=Fo(Fo({},e),t)).rows.forEach(function(o,r){var i=o,c=e.rows[r];t.rows[r]=Fo(Fo({},c),i),i.elements.forEach(function(e,t){var o,r,l=c.elements[t],s=e;if(s.elementType&&l.elementType!==s.elementType&&l.elementName&&l.elementName!==s.elementName)throw new Error(mt(h.errorLogs.CANNOT_CHANGE_ELEMENT));Go(l.elementType,l,s),i.elements[t]=Fo(Fo(Fo({},l),s),{},{elementName:l.elementName});var p=s.classes||{},u=s.styles||{};u.base=Fo(Fo({},fe),u.base),s.classes=p,s.styles=u;var E=(null==s||null===(o=s.labelStyles)||void 0===o?void 0:o.classes)||{},d=(null==s||null===(r=s.labelStyles)||void 0===r?void 0:r.styles)||{};n&&function(e,t){Object.values(_e).forEach(function(n){if(e[n]||t[n])switch(n){case _e.BASE:t[n]=Vo({},t[n]);break;case _e.FOCUS:t[_e.BASE]=Vo(Vo({},t[_e.BASE]),{},{":focus":Vo({},t[_e.BASE]&&t[_e.BASE][":focus"])});break;case _e.WEBPACKAUTOFILL:t[_e.BASE]=Vo(Vo({},t[_e.BASE]),{},{":-webkit-autofill":Vo({},t[_e.BASE]&&t[_e.BASE][":-webkit-autofill"])});break;default:t[n]=Vo(Vo({},t[_e.BASE]),t[n])}}),Object.keys(t).forEach(function(e){var n=t[e][":-webkit-autofill"];"object"===a(n)&&Object.keys(n).forEach(function(e){n[e]&&!n[e].includes("!important")&&(n[e]="".concat(n[e]," !important"))})})}(E,d),s.labelStyles={labelClasses:E},s.labelStyles.styles=d})}),t}var Bo=function(e){var t=e.rows,n=[];return t.forEach(function(e){e.elements.forEach(function(e){n.push(e)})}),n},Wo=function(e){return e&&Array.isArray(e)&&0!==e.length?e.map(function(e,t){if(!e)return e;switch(e.type){case Ve.ELEMENT_VALUE_MATCH_RULE:var n=e.params;if(!n||!Object.prototype.hasOwnProperty.call(n,"element"))throw new Lt(je.MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE,["".concat(t)],!0);var o=n.element;if(!o||!(o instanceof No||ko))throw new Lt(je.INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE,["".concat(t)],!0);return Fo(Fo({},e),{},{params:Fo(Fo({},n),{},{elementID:o.getID(),element:o.iframeName()})});case Ve.REGEX_MATCH_RULE:var r=e.params,i=(r||{}).regex;if(i&&!Ze(i))throw new Lt(je.INVALID_REGEX_IN_REGEX_MATCH_RULE,["".concat(t)],!0);if(i&&Ze(i))return Fo(Fo({},e),{},{params:Fo(Fo({},r),{},{regex:i.toString()})});break;default:return e}return e}):e},Xo=function(e,t,n){var o,r,i,c=Fo({required:!1},t);if(Object.prototype.hasOwnProperty.call(c,"format")||Object.prototype.hasOwnProperty.call(c,"translation"))if(Oe.includes(e))vt(mt(h.warnLogs.INPUT_FORMATTING_NOT_SUPPROTED,e),Ue.WARN,n),null===(o=c)||void 0===o||delete o.format,null===(r=c)||void 0===r||delete r.translation;else if(e===pe.INPUT_FIELD.name){var l,s;rt(t),null===(l=c=Fo(Fo({},c),{},{mask:[c.format,c.translation?c.translation:Te]}))||void 0===l||delete l.format,null===(s=c)||void 0===s||delete s.translation}switch(e){case pe.CARD_NUMBER.name:var p,u,E;Object.prototype.hasOwnProperty.call(c,"enableCardIcon")||(c=Fo(Fo({},c),{},{enableCardIcon:!0}));var d=" ";if((null===(p=c)||void 0===p?void 0:p.format)===ue&&(d="-"),null===(u=c=Fo(Fo({},c),{},{cardSeperator:d}))||void 0===u||delete u.format,null===(E=c)||void 0===E||delete E.translation,Object.prototype.hasOwnProperty.call(c,"cardMetadata")){if("object"!==a(c.cardMetadata)||"[object Object]"!==Object.prototype.toString.call(c.cardMetadata))throw new Lt(je.INVALID_OPTION_CARD_METADATA,[],!0);if(Object.prototype.hasOwnProperty.call(c.cardMetadata,"scheme")&&("object"!==a(c.cardMetadata.scheme)||"[object Array]"!==Object.prototype.toString.call(c.cardMetadata.scheme)))throw new Lt(je.INVALID_OPTION_CARD_SCHEME,[],!0)}break;case pe.EXPIRATION_DATE.name:var f,_=!1;c.format&&((_=!!(i=c.format.toUpperCase())&&me.includes(i))||vt(mt(h.warnLogs.INVALID_EXPIRATION_DATE_FORMAT,me.toString()),Ue.WARN,n)),null===(f=c=Fo(Fo({},c),{},{format:_&&c.format?c.format.toUpperCase():ve}))||void 0===f||delete f.translation;break;case pe.EXPIRATION_YEAR.name:var I,v=!1;c.format&&(v=function(e){return!!e&&ye.includes(e)}(c.format.toUpperCase()),v||vt(mt(h.warnLogs.INVALID_EXPIRATION_YEAR_FORMAT,ye.toString()),Ue.WARN,n)),null===(I=c=Fo(Fo({},c),{},{format:v&&c.format?c.format.toUpperCase():"YY"}))||void 0===I||delete I.translation;break;case pe.FILE_INPUT.name||pe.MULTI_FILE_INPUT.name:Object.prototype.hasOwnProperty.call(c,"preserveFileName")||(c=Fo(Fo({},c),{},{preserveFileName:!0}))}if(Object.prototype.hasOwnProperty.call(c,"enableCardIcon")&&!ot(c.enableCardIcon))throw new Lt(je.INVALID_BOOLEAN_OPTIONS,["enableCardIcon"],!0);if(Object.prototype.hasOwnProperty.call(c,"enableCopy")&&!ot(c.enableCopy))throw new Lt(je.INVALID_BOOLEAN_OPTIONS,["enableCopy"],!0);if(Object.prototype.hasOwnProperty.call(c,"required")&&!ot(c.required))throw new Lt(je.INVALID_BOOLEAN_OPTIONS,["required"],!0);if(Object.prototype.hasOwnProperty.call(c,"preserveFileName")&&!ot(c.preserveFileName))throw new Lt(je.INVALID_BOOLEAN_OPTIONS,["preserveFileName"],!0);if(e===pe.FILE_INPUT.name||e===pe.MULTI_FILE_INPUT.name){if(t.allowedFileType){if(!Array.isArray(t.allowedFileType))throw new Lt(je.INVALID_ALLOWED_OPTIONS,[],!0);if(t.allowedFileType.length<=0)throw new Lt(je.EMPTY_ALLOWED_OPTIONS_ARRAY,[],!0);if(!t.allowedFileType.every(function(e){return"string"==typeof e}))throw new Lt(je.INVALID_ALLOWED_FILETYPE_ARRAY,[],!0)}if(Object.prototype.hasOwnProperty.call(t,"allowedFileType")&&(c=Fo(Fo({},c),{},{allowedFileType:t.allowedFileType})),Object.prototype.hasOwnProperty.call(t,"blockEmptyFiles")&&!ot(t.blockEmptyFiles))throw new Lt(je.INVALID_BOOLEAN_OPTIONS,["blockEmptyFiles"],!0);Object.prototype.hasOwnProperty.call(t,"blockEmptyFiles")&&(c=Fo(Fo({},c),{},{blockEmptyFiles:c.blockEmptyFiles}))}if(Object.prototype.hasOwnProperty.call(t,"masking")){if(!ot(t.masking))throw new Lt(je.INVALID_BOOLEAN_OPTIONS,["masking"],!0);if(Object.prototype.hasOwnProperty.call(t,"maskingChar")&&"string"==typeof t.maskingChar&&t.maskingChar.length>1)throw new Lt(je.INVALID_MASKING_CHARACTER,[],!0);c=Object.prototype.hasOwnProperty.call(t,"maskingChar")&&"string"==typeof t.maskingChar?Fo(Fo({},c),{},{masking:t.masking,maskingChar:t.maskingChar}):Fo(Fo({},c),{},{masking:t.masking,maskingChar:"*"})}return c};function Ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ko(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ko(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qo=function(){return!!e})()}function zo(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Jo(e,t){return e.get(Zo(e,t))}function Qo(e,t,n){return e.set(Zo(e,t),n),n}function Zo(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var $o="CollectContainer",er=new WeakMap,tr=new WeakMap,nr=new WeakMap,or=new WeakMap,rr=new WeakMap,ir=new WeakMap,ar=new WeakMap,cr=new WeakMap,lr=new WeakMap,sr=new WeakMap,pr=new WeakMap,ur=new WeakMap,Er=new WeakMap,dr=new WeakMap,fr=new WeakMap,_r=new WeakMap,Ir=new WeakMap,vr=new WeakMap,mr=function(e){function t(e,n,o,r){var i,a;s(this,t),a=function(e,t,n){return t=Ae(t),he(e,qo()?Reflect.construct(t,n||[],Ae(e).constructor):t.apply(e,n))}(this,t),zo(a,er,void 0),zo(a,tr,{}),zo(a,nr,void 0),zo(a,or,void 0),zo(a,rr,void 0),l(a,"type",Xa.COLLECT),zo(a,ir,void 0),zo(a,ar,!1),zo(a,cr,!1),l(a,"create",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{required:!1};et(e,Jo(or,a).logLevel);var n=Wo(e.validations),o=Xo(e.type,t,Jo(or,a).logLevel),r={rows:[{elements:[Ho(Ho(Ho({elementType:e.type,name:e.column,accept:t.allowedFileType},e),o),{},{validations:n})]}]};return Jo(lr,a).call(a,r,!0)}),zo(a,lr,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],o=Bn(e);if(o.rows.forEach(function(e){e.elements.forEach(function(e){var t=e,o=t.elementType;Go(o,t),t.sensitive=t.sensitive||pe[o].sensitive,t.replacePattern=t.replacePattern||pe[o].replacePattern,t.mask=t.mask||pe[o].mask,t.isMounted=!1,t.elementType!==pe.radio.name&&t.elementType!==pe.checkbox.name||(t.elementName="".concat(t.elementName,":").concat(btoa(t.value))),t.elementName="".concat(b,":").concat(t.elementType,":").concat(btoa(f())),t.label=e.label,t.skyflowID=e.skyflowID,n.push(t)})}),o.elementName=t?n[0].elementName:"".concat(b,":group:").concat(btoa(o.name)),t&&!Jo(tr,a)[n[0].elementName]&&Jo(Er,a).call(a,n[0].name))throw new Lt(je.UNIQUE_ELEMENT_NAME,["".concat(n[0].name)],!0);var r=Jo(tr,a)[o.elementName];if(r)t?r.updateElementGroup(n[0]):r.updateElementGroup(o);else{var i=f();r=new No(i,o,Jo(nr,a),{containerId:Jo(er,a),isMounted:Jo(ar,a),type:a.type},t,Jo(pr,a),Jo(ur,a),Jo(or,a),Jo(ir,a)),Jo(tr,a)[o.elementName]=r,Jo(rr,a)[i]=r}return t||n.forEach(function(e){var t=e.elementName;Jo(tr,a)[t]?Jo(tr,a)[t].updateElementGroup(e):Jo(tr,a)[t]=a.create(e.elementType,e)}),r}),zo(a,sr,function(e){Object.keys(Jo(tr,a)).forEach(function(t){t===e&&delete Jo(tr,a)[t]})}),zo(a,pr,function(e){e.forEach(function(e){Jo(sr,a).call(a,e)})}),zo(a,ur,function(e){e.forEach(function(e){Jo(tr,a)[e.elementName]&&Jo(tr,a)[e.elementName].updateElementGroup(e)})}),zo(a,Er,function(e){for(var t=Object.keys(Jo(tr,a)),n=0;n<t.length;n+=1)if(atob(t[n].split(":")[2])===e)return!0;return!1}),l(a,"collect",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tokens:!0};return Qo(cr,a,Jo(nr,a).skyflowContainer.isControllerFrameReady),Jo(cr,a)?new Promise(function(t,n){try{if($e(Jo(nr,a).clientJSON.config),0===Object.keys(Jo(tr,a)).length)throw new Lt(je.NO_ELEMENTS_IN_COLLECT,[],!0);Jo(dr,a).call(a);var o=Object.values(Jo(tr,a)),r=Object.keys(Jo(tr,a)).map(function(e){return{frameId:e,elementId:e}});if(o.forEach(function(e){if(!e.isMounted())throw new Lt(je.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()}),Object.prototype.hasOwnProperty.call(e,"tokens")&&!ot(e.tokens))throw new Lt(je.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&We(e.additionalFields),null!=e&&e.upsert&&tt(null==e?void 0:e.upsert),d().emit(te.COLLECT_CALL_REQUESTS+Jo(nr,a).uuid,Ho(Ho({type:J},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:r,containerId:Jo(er,a)}),function(e){!e||null!=e&&e.error?(vt("".concat(JSON.stringify(null==e?void 0:e.error)),Ue.ERROR,Jo(or,a).logLevel),n(null==e?void 0:e.error)):(vt(mt(h.infoLogs.COLLECT_SUBMIT_SUCCESS,$o),Ue.LOG,Jo(or,a).logLevel),t(e))}),vt(mt(h.infoLogs.EMIT_EVENT,$o,te.TOKENIZATION_REQUEST),Ue.LOG,Jo(or,a).logLevel)}catch(e){vt("".concat(e.message),Ue.ERROR,Jo(or,a).logLevel),n(e)}}):new Promise(function(t,n){try{if($e(Jo(nr,a).clientJSON.config),0===Object.keys(Jo(tr,a)).length)throw new Lt(je.NO_ELEMENTS_IN_COLLECT,[],!0);Jo(dr,a).call(a);var o=Object.values(Jo(tr,a)),r=Object.keys(Jo(tr,a)).map(function(e){return{frameId:e,elementId:e}});if(o.forEach(function(e){if(!e.isMounted())throw new Lt(je.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()}),Object.prototype.hasOwnProperty.call(e,"tokens")&&!ot(e.tokens))throw new Lt(je.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&We(e.additionalFields),null!=e&&e.upsert&&tt(null==e?void 0:e.upsert),d().target(it.IFRAME_SECURE_ORIGIN).on(te.SKYFLOW_FRAME_CONTROLLER_READY+Jo(er,a),function(){d().emit(te.COLLECT_CALL_REQUESTS+Jo(nr,a).uuid,Ho(Ho({type:J},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:r,containerId:Jo(er,a)}),function(e){!e||null!=e&&e.error?(vt("".concat(JSON.stringify(null==e?void 0:e.error)),Ue.ERROR,Jo(or,a).logLevel),n(null==e?void 0:e.error)):(vt(mt(h.infoLogs.COLLECT_SUBMIT_SUCCESS,$o),Ue.LOG,Jo(or,a).logLevel),t(e))})})}catch(e){vt("".concat(e.message),Ue.ERROR,Jo(or,a).logLevel),n(e)}})}),l(a,"uploadFiles",function(e){return Qo(cr,a,Jo(nr,a).skyflowContainer.isControllerFrameReady),Jo(cr,a)?new Promise(function(t,n){try{if($e(Jo(nr,a).clientJSON.config),0===Object.keys(Jo(tr,a)).length)throw new Lt(je.NO_ELEMENTS_IN_COLLECT,[],!0);Jo(dr,a).call(a);var o=Object.values(Jo(tr,a)),r=Object.keys(Jo(tr,a));o.forEach(function(e){if(!e.isMounted())throw new Lt(je.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()}),d().emit(te.COLLECT_CALL_REQUESTS+Jo(nr,a).uuid,Ho(Ho({type:Q},e),{},{elementIds:r,containerId:Jo(er,a)}),function(e){!e||null!=e&&e.error?(vt("".concat(JSON.stringify(null==e?void 0:e.error)),Ue.ERROR,Jo(or,a).logLevel),n(null==e?void 0:e.error)):(vt(mt(h.infoLogs.COLLECT_SUBMIT_SUCCESS,$o),Ue.LOG,Jo(or,a).logLevel),t(e))}),vt(mt(h.infoLogs.EMIT_EVENT,$o,te.FILE_UPLOAD),Ue.LOG,Jo(or,a).logLevel)}catch(e){vt("".concat(e.message),Ue.ERROR,Jo(or,a).logLevel),n(e)}}):new Promise(function(t,n){d().target(it.IFRAME_SECURE_ORIGIN).on(te.SKYFLOW_FRAME_CONTROLLER_READY+Jo(er,a),function(){try{if($e(Jo(nr,a).clientJSON.config),0===Object.keys(Jo(tr,a)).length)throw new Lt(je.NO_ELEMENTS_IN_COLLECT,[],!0);Jo(dr,a).call(a);var o=Object.values(Jo(tr,a)),r=Object.keys(Jo(tr,a));o.forEach(function(e){if(!e.isMounted())throw new Lt(je.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()}),d().emit(te.COLLECT_CALL_REQUESTS+Jo(nr,a).uuid,Ho(Ho({type:Q},e),{},{elementIds:r,containerId:Jo(er,a)}),function(e){!e||null!=e&&e.error?(vt("".concat(JSON.stringify(null==e?void 0:e.error)),Ue.ERROR,Jo(or,a).logLevel),n(null==e?void 0:e.error)):(vt(mt(h.infoLogs.COLLECT_SUBMIT_SUCCESS,$o),Ue.LOG,Jo(or,a).logLevel),t(e))}),vt(mt(h.infoLogs.EMIT_EVENT,$o,te.FILE_UPLOAD),Ue.LOG,Jo(or,a).logLevel)}catch(e){vt("".concat(e.message),Ue.ERROR,Jo(or,a).logLevel),n(e)}})})}),zo(a,dr,function(){try{if(Jo(fr,a).call(a))return;var e=Jo(_r,a).call(a);if(!e.length)return;Jo(Ir,a).call(a,e)}catch(e){vt("".concat(e),Ue.LOG,Jo(or,a).logLevel)}}),zo(a,fr,function(){return 0===Object.keys(Jo(tr,a)).length}),zo(a,_r,function(){var e,t=null===(e=document)||void 0===e?void 0:e.body;if(!t)return[];var n=t.getElementsByTagName("iframe");return null!=n&&n.length?Array.from(n).map(function(e){return e.id}):[]}),zo(a,Ir,function(e){Object.entries(Jo(tr,a)).forEach(function(t){var n=Fe(t,2),o=n[0],r=n[1];Jo(vr,a).call(a,r,e)&&delete Jo(tr,a)[o]})}),zo(a,vr,function(e,t){return e.isMounted()&&!t.includes(e.iframeName())}),Qo(cr,a,e.skyflowContainer.isControllerFrameReady),Qo(er,a,f()),Qo(nr,a,Ho(Ho({},e),{},{clientJSON:Ho(Ho({},e.clientJSON),{},{config:Ho(Ho({},e.clientJSON.config),{},{options:Ho(Ho({},null===(i=e.clientJSON.config)||void 0===i?void 0:i.options),r)})})})),Qo(rr,a,n),Qo(or,a,o),Qo(ir,a,new At);var c=Jo(nr,a).clientDomain||"",p=Mt({name:"".concat(D,":").concat(Jo(er,a),":").concat(Jo(or,a).logLevel,":").concat(btoa(c)),referrer:c});return bt(p,{src:Pt()}),xt(p,Ho({},de)),vt(mt(h.infoLogs.CREATE_COLLECT_CONTAINER,$o),Ue.LOG,Jo(or,a).logLevel),Qo(ar,a,!0),a}return we(t,e),u(t)}(Ct);const yr=mr;function Lr(e){this.message=e}Lr.prototype=new Error,Lr.prototype.name="InvalidCharacterError";var Or="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Lr("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,r=0,i=0,a="";o=t.charAt(i++);~o&&(n=r%4?64*n+o:o,r++%4)?a+=String.fromCharCode(255&n>>(-2*r&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return a};function Tr(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(Or(e).replace(/(.)/g,function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(t)}catch(e){return Or(t)}}function Nr(e){this.message=e}Nr.prototype=new Error,Nr.prototype.name="InvalidTokenError";const gr=function(e,t){if("string"!=typeof e)throw new Nr("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Tr(e.split(".")[n]))}catch(e){throw new Nr("Invalid token specified: "+e.message)}};const Rr=function(e){try{if(!e)return!1;if(i=e,"[object String]"!==Object.prototype.toString.call(i))return!1;var t=!1,n=gr(e),o=(new Date).getTime()/1e3,r=n.exp;return r&&o>r&&(t=!0),!t}catch(e){return!1}var i};function hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hr(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sr(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function wr(e,t){return e.get(br(e,t))}function Dr(e,t,n){return e.set(br(e,t),n),n}function br(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Mr="SkyflowContainer",Pr=new WeakMap,xr=new WeakMap,Cr=new WeakMap,kr=function(){return u(function e(t,n){var o,r,i=this;s(this,e),Sr(this,Pr,void 0),Sr(this,xr,void 0),l(this,"isControllerFrameReady",!1),Sr(this,Cr,void 0),Dr(xr,this,t),Dr(Pr,this,(null===(o=wr(xr,this).toJSON())||void 0===o||null===(o=o.metaData)||void 0===o?void 0:o.uuid)||""),Dr(Cr,this,n);var a=window.location.origin||"",c=Mt({name:"".concat("skyflow_controller",":").concat(wr(Pr,this),":").concat(btoa(a),":").concat(!(null===(r=wr(xr,this).toJSON())||void 0===r||null===(r=r.config)||void 0===r||null===(r=r.options)||void 0===r||!r.trackingKey)),referrer:a});bt(c,{src:Pt()}),xt(c,Ar({},de)),document.body.append(c),d().target(it.IFRAME_SECURE_ORIGIN).on(te.PUREJS_FRAME_READY+wr(Pr,this),function(e,t){vt(mt(h.infoLogs.CAPTURE_PUREJS_FRAME,Mr),Ue.LOG,wr(Cr,i).logLevel),t({client:wr(xr,i),context:n}),i.isControllerFrameReady=!0}),vt(mt(h.infoLogs.PUREJS_CONTROLLER_INITIALIZED,Mr),Ue.LOG,wr(Cr,this).logLevel)},[{key:"detokenize",value:function(e){var t=this;return this.isControllerFrameReady?new Promise(function(n,o){try{$e(wr(xr,t).config),vt(mt(h.infoLogs.VALIDATE_DETOKENIZE_INPUT,Mr),Ue.LOG,wr(Cr,t).logLevel),Xe(e),d().emit(te.PUREJS_REQUEST+wr(Pr,t),{type:X,records:e.records},function(e){e.error?o(e.error):n(e)}),vt(mt(h.infoLogs.EMIT_PURE_JS_REQUEST,Mr,X),Ue.LOG,wr(Cr,t).logLevel)}catch(e){vt(e.message,Ue.ERROR,wr(Cr,t).logLevel),o(e)}}):new Promise(function(n,o){try{$e(wr(xr,t).config),vt(mt(h.infoLogs.VALIDATE_DETOKENIZE_INPUT,Mr),Ue.LOG,wr(Cr,t).logLevel),Xe(e),d().target(it.IFRAME_SECURE_ORIGIN).on(te.PUREJS_FRAME_READY+wr(Pr,t),function(){d().emit(te.PUREJS_REQUEST+wr(Pr,t),{type:X,records:e.records},function(e){e.error?o(e.error):n(e)})}),vt(mt(h.infoLogs.EMIT_PURE_JS_REQUEST,Mr,X),Ue.LOG,wr(Cr,t).logLevel)}catch(e){vt(e.message,Ue.ERROR,wr(Cr,t).logLevel),o(e)}})}},{key:"insert",value:function(e,t){var n=this;return this.isControllerFrameReady?new Promise(function(o,r){$e(wr(xr,n).config);try{var i,a;if(vt(mt(h.infoLogs.VALIDATE_RECORDS,Mr),Ue.LOG,wr(Cr,n).logLevel),t)t=Ar(Ar({},t),{},{tokens:void 0===(null===(a=t)||void 0===a?void 0:a.tokens)||t.tokens});else t={tokens:!0};null!==(i=t)&&void 0!==i&&i.upsert&&tt(t.upsert),Ye(e,t),d().emit(te.PUREJS_REQUEST+wr(Pr,n),{type:W,records:e,options:t},function(e){e.error?(vt("".concat(JSON.stringify(e.error)),Ue.ERROR,wr(Cr,n).logLevel),r(e.error)):o(e)}),vt(mt(h.infoLogs.EMIT_PURE_JS_REQUEST,Mr,W),Ue.LOG,wr(Cr,n).logLevel)}catch(e){vt(e.message,Ue.ERROR,wr(Cr,n).logLevel),r(e)}}):new Promise(function(o,r){try{var i,a;if($e(wr(xr,n).config),vt(mt(h.infoLogs.VALIDATE_RECORDS,Mr),Ue.LOG,wr(Cr,n).logLevel),t)t=Ar(Ar({},t),{},{tokens:void 0===(null===(a=t)||void 0===a?void 0:a.tokens)||t.tokens});else t={tokens:!0};null!==(i=t)&&void 0!==i&&i.upsert&&tt(t.upsert),Ye(e,t),d().target(it.IFRAME_SECURE_ORIGIN).on(te.PUREJS_FRAME_READY+wr(Pr,n),function(){d().emit(te.PUREJS_REQUEST+wr(Pr,n),{type:W,records:e,options:t},function(e){e.error?(vt("".concat(JSON.stringify(e.error)),Ue.ERROR,wr(Cr,n).logLevel),r(e.error)):o(e)})}),vt(mt(h.infoLogs.EMIT_PURE_JS_REQUEST,Mr,W),Ue.LOG,wr(Cr,n).logLevel)}catch(e){vt(e.message,Ue.ERROR,wr(Cr,n).logLevel),r(e)}})}},{key:"update",value:function(e,t){var n=this;return this.isControllerFrameReady?new Promise(function(o,r){$e(wr(xr,n).config);try{vt(mt(h.infoLogs.VALIDATE_RECORDS,Mr),Ue.LOG,wr(Cr,n).logLevel),Be(e,t),d().emit(te.PUREJS_REQUEST+wr(Pr,n),{type:z,record:e,options:t},function(e){e.error?(vt("".concat(JSON.stringify(e.error)),Ue.ERROR,wr(Cr,n).logLevel),r(e.error)):o(e)}),vt(mt(h.infoLogs.EMIT_PURE_JS_REQUEST,Mr,z),Ue.LOG,wr(Cr,n).logLevel)}catch(e){vt(e.message,Ue.ERROR,wr(Cr,n).logLevel),r(e)}}):new Promise(function(o,r){try{$e(wr(xr,n).config),vt(mt(h.infoLogs.VALIDATE_RECORDS,Mr),Ue.LOG,wr(Cr,n).logLevel),Be(e,t),d().target(it.IFRAME_SECURE_ORIGIN).on(te.PUREJS_FRAME_READY+wr(Pr,n),function(){d().emit(te.PUREJS_REQUEST+wr(Pr,n),{type:z,record:e,options:t},function(e){e.error?(vt("".concat(JSON.stringify(e.error)),Ue.ERROR,wr(Cr,n).logLevel),r(e.error)):o(e)})}),vt(mt(h.infoLogs.EMIT_PURE_JS_REQUEST,Mr,z),Ue.LOG,wr(Cr,n).logLevel)}catch(e){vt(e.message,Ue.ERROR,wr(Cr,n).logLevel),r(e)}})}},{key:"getById",value:function(e){var t=this;return this.isControllerFrameReady?new Promise(function(n,o){$e(wr(xr,t).config);try{vt(mt(h.infoLogs.VALIDATE_GET_BY_ID_INPUT,Mr),Ue.LOG,wr(Cr,t).logLevel),He(e),d().emit(te.PUREJS_REQUEST+wr(Pr,t),{type:K,records:e.records},function(e){e.error?o(e.error):n(e)}),vt(mt(h.infoLogs.EMIT_PURE_JS_REQUEST,Mr,K),Ue.LOG,wr(Cr,t).logLevel)}catch(e){vt(e.message,Ue.ERROR,wr(Cr,t).logLevel),o(e)}}):new Promise(function(n,o){try{$e(wr(xr,t).config),vt(mt(h.infoLogs.VALIDATE_GET_BY_ID_INPUT,Mr),Ue.LOG,wr(Cr,t).logLevel),He(e),d().target(it.IFRAME_SECURE_ORIGIN).on(te.PUREJS_FRAME_READY+wr(Pr,t),function(){d().emit(te.PUREJS_REQUEST+wr(Pr,t),{type:K,records:e.records},function(e){e.error?o(e.error):n(e)})}),vt(mt(h.infoLogs.EMIT_PURE_JS_REQUEST,Mr,K),Ue.LOG,wr(Cr,t).logLevel)}catch(e){vt(e.message,Ue.ERROR,wr(Cr,t).logLevel),o(e)}})}},{key:"get",value:function(e,t){var n=this;return this.isControllerFrameReady?new Promise(function(o,r){$e(wr(xr,n).config);try{vt(mt(h.infoLogs.VALIDATE_GET_INPUT,Mr),Ue.LOG,wr(Cr,n).logLevel),Ke(e,t),d().emit(te.PUREJS_REQUEST+wr(Pr,n),{type:H,records:e.records,options:t},function(e){e.error?r(e.error):o(e)}),vt(mt(h.infoLogs.EMIT_PURE_JS_REQUEST,Mr,H),Ue.LOG,wr(Cr,n).logLevel)}catch(e){vt(e.message,Ue.ERROR,wr(Cr,n).logLevel),r(e)}}):new Promise(function(o,r){try{$e(wr(xr,n).config),vt(mt(h.infoLogs.VALIDATE_GET_INPUT,Mr),Ue.LOG,wr(Cr,n).logLevel),Ke(e,t),d().target(it.IFRAME_SECURE_ORIGIN).on(te.PUREJS_FRAME_READY+wr(Pr,n),function(){d().emit(te.PUREJS_REQUEST+wr(Pr,n),{type:H,records:e.records,options:t},function(e){e.error?r(e.error):o(e)})}),vt(mt(h.infoLogs.EMIT_PURE_JS_REQUEST,Mr,H),Ue.LOG,wr(Cr,n).logLevel)}catch(e){vt(e.message,Ue.ERROR,wr(Cr,n).logLevel),r(e)}})}},{key:"delete",value:function(e,t){var n=this;return this.isControllerFrameReady?new Promise(function(o,r){$e(wr(xr,n).config);try{vt(mt(h.infoLogs.VALIDATE_DELETE_INPUT,Mr),Ue.LOG,wr(Cr,n).logLevel),qe(e),d().emit(te.PUREJS_REQUEST+wr(Pr,n),{type:q,records:e,options:t},function(e){e.error?(vt("".concat(JSON.stringify(e.error)),Ue.ERROR,wr(Cr,n).logLevel),r(e.error)):o(e)}),vt(mt(h.infoLogs.EMIT_PURE_JS_REQUEST,Mr,q),Ue.LOG,wr(Cr,n).logLevel)}catch(e){vt(e.message,Ue.ERROR,wr(Cr,n).logLevel),r(e)}}):new Promise(function(o,r){try{$e(wr(xr,n).config),vt(mt(h.infoLogs.VALIDATE_RECORDS,Mr),Ue.LOG,wr(Cr,n).logLevel),qe(e),d().target(it.IFRAME_SECURE_ORIGIN).on(te.PUREJS_FRAME_READY+wr(Pr,n),function(){d().emit(te.PUREJS_REQUEST+wr(Pr,n),{type:q,records:e,options:t},function(e){e.error?(vt("".concat(JSON.stringify(e.error)),Ue.ERROR,wr(Cr,n).logLevel),r(e.error)):o(e)})}),vt(mt(h.infoLogs.EMIT_PURE_JS_REQUEST,Mr,q),Ue.LOG,wr(Cr,n).logLevel)}catch(e){vt(e.message,Ue.ERROR,wr(Cr,n).logLevel),r(e)}})}}])}();const Ur=kr;var Vr=n(6119),jr=n.n(Vr);function Fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fr(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Yr=function(){return!!e})()}function Br(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Wr(e,t){return e.get(Kr(e,t))}function Xr(e,t,n){return e.set(Kr(e,t),n),n}function Kr(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Hr="CollectContainer",qr=new WeakMap,zr=new WeakMap,Jr=new WeakMap,Qr=new WeakMap,Zr=new WeakMap,$r=new WeakMap,ei=new WeakMap,ti=new WeakMap,ni=new WeakMap,oi=new WeakMap,ri=new WeakMap,ii=new WeakMap,ai=new WeakMap,ci=new WeakMap,li=new WeakMap,si=new WeakMap,pi=new WeakMap,ui=new WeakMap,Ei=new WeakMap,di=new WeakMap,fi=new WeakMap,_i=new WeakMap,Ii=new WeakMap,vi=new WeakMap,mi=new WeakMap,yi=function(e){function t(e,n,o,r){var i,a;s(this,t),a=function(e,t,n){return t=Ae(t),he(e,Yr()?Reflect.construct(t,n||[],Ae(e).constructor):t.apply(e,n))}(this,t),Br(a,qr,void 0),Br(a,zr,{}),Br(a,Jr,void 0),Br(a,Qr,{rows:[],styles:{},errorTextStyles:{}}),Br(a,Zr,[]),Br(a,$r,void 0),Br(a,ei,void 0),Br(a,ti,void 0),Br(a,ni,!1),Br(a,oi,void 0),Br(a,ri,void 0),l(a,"type",Xa.COMPOSABLE),Br(a,ii,!1),Br(a,ai,{}),Br(a,ci,""),Br(a,li,!1),Br(a,si,null),Br(a,pi,""),Br(a,ui,void 0),l(a,"create",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{required:!1};et(e,Wr($r,a).logLevel);var n=Wo(e.validations),o=Xo(e.type,t,Wr($r,a).logLevel),r="".concat(b,":").concat(e.type,":").concat(btoa(f()));Wr(Zr,a).push(Gr(Gr(Gr({elementType:e.type,name:e.column},e),o),{},{validations:n,elementName:r}));var i="".concat(b,":group:").concat(btoa(Wr(ai,a)),":").concat(Wr(qr,a),":").concat(Wr($r,a).logLevel,":").concat(btoa(Wr(ci,a)));return Xr(pi,a,i),new ko(r,Wr(ti,a),i,Gr(Gr({},Wr(Jr,a)),{},{type:e.type}))}),Br(a,Ei,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];if(Xr(ai,a,Bn(e)),Wr(ai,a).rows.forEach(function(e){e.elements.forEach(function(e){var t=e,o=t.elementType;Go(o,t),t.sensitive=t.sensitive||pe[o].sensitive,t.replacePattern=t.replacePattern||pe[o].replacePattern,t.mask=t.mask||pe[o].mask,t.isMounted=!1,t.label=e.label,t.skyflowID=e.skyflowID,n.push(t)})}),Wr(ai,a).elementName=t?n[0].elementName:"".concat(b,":group:").concat(btoa(Wr(ai,a))),t&&!Wr(zr,a)[n[0].elementName]&&Wr(Ii,a).call(a,n[0].name))throw new Lt(je.UNIQUE_ELEMENT_NAME,["".concat(n[0].name)],!0);var o=Wr(zr,a)[Wr(ai,a).elementName];if(o)t?o.update(n[0]):o.update(Wr(ai,a));else{var r=f();o=new No(r,Wr(ai,a),Wr(Jr,a),{containerId:Wr(qr,a),isMounted:Wr(ii,a),type:a.type},!0,Wr(fi,a),Wr(_i,a),Wr($r,a),Wr(ti,a)),Wr(zr,a)[Wr(ai,a).elementName]=o,Wr(ei,a)[r]=o}return o}),Br(a,di,function(e){Object.keys(Wr(zr,a)).forEach(function(t){t===e&&delete Wr(zr,a)[t]})}),Br(a,fi,function(e){e.forEach(function(e){Wr(di,a).call(a,e)})}),Br(a,_i,function(e){e.forEach(function(e){Wr(zr,a)[e.elementName]&&Wr(zr,a)[e.elementName].update(e)})}),Br(a,Ii,function(e){for(var t=Object.keys(Wr(zr,a)),n=0;n<t.length;n+=1)if(atob(t[n].split(":")[2])===e)return!0;return!1}),l(a,"on",function(e,t){if(!Object.values(ee).includes(e))throw new Lt(je.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new Lt(je.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new Lt(je.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);Wr(ti,a).on(ee.SUBMIT,function(){t()})}),l(a,"mount",function(e){if(!e)throw new Lt(je.EMPTY_ELEMENT_IN_MOUNT,["CollectElement"],!0);var t=Wr(oi,a).layout;if(jr()(t)!==Wr(Zr,a).length)throw new Lt(je.MISMATCH_ELEMENT_COUNT_LAYOUT_SUM,[],!0);var n=0;if(t.forEach(function(e,t){Wr(Qr,a).rows=[].concat(Re(Wr(Qr,a).rows),[{elements:[]}]);for(var o=0;o<e;o++)Wr(Qr,a).rows[t].elements.push(Wr(Zr,a)[n]),n++}),Wr(oi,a).styles&&(Wr(Qr,a).styles=Gr({},Wr(oi,a).styles)),Wr(oi,a).errorTextStyles&&(Wr(Qr,a).errorTextStyles=Gr({},Wr(oi,a).errorTextStyles)),Wr(ii,a)&&(Xr(ri,a,Wr(Ei,a).call(a,Wr(Qr,a),!1)),Wr(ri,a).mount(e),Xr(ni,a,!0)),Wr(Zr,a).forEach(function(e){Wr(ti,a).on("".concat(te.MULTIPLE_UPLOAD_FILES,":").concat(e.elementName),function(t,n){var o;null===(o=Wr(ui,a).call(a))||void 0===o||o.then(function(n){var o,r;vt(mt(h.infoLogs.BEARER_TOKEN_RESOLVED,Hr),Ue.LOG,Wr($r,a).logLevel),Wr(vi,a).call(a,"".concat(te.MULTIPLE_UPLOAD_FILES,":").concat(e.elementName),{elementName:e.name,data:{type:Q,containerId:Wr(qr,a)},clientConfig:{vaultURL:null===(o=Wr(Jr,a))||void 0===o||null===(o=o.clientJSON)||void 0===o||null===(o=o.config)||void 0===o?void 0:o.vaultURL,vaultID:null===(r=Wr(Jr,a))||void 0===r||null===(r=r.clientJSON)||void 0===r||null===(r=r.config)||void 0===r?void 0:r.vaultID,authToken:n},options:Gr({},null==t?void 0:t.options)})}).catch(function(e){vt("".concat(e.message),Ue.ERROR,Wr($r,a).logLevel),n(e)})})}),e instanceof HTMLElement&&e.getRootNode()instanceof ShadowRoot)Xr(si,a,e.getRootNode());else if("string"==typeof e){var o=document.getElementById(e);o&&o.getRootNode()instanceof ShadowRoot&&Xr(si,a,o.getRootNode())}null!==Wr(si,a)&&(Wr(ti,a).on(ee.HEIGHT,function(e){Wr(vi,a).call(a,ee.HEIGHT+e.iframeName,{})}),Wr(vi,a).call(a,ee.HEIGHT+Wr(pi,a),{}))}),l(a,"unmount",function(){Wr(ri,a).unmount()}),l(a,"collect",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tokens:!0};return new Promise(function(t,n){try{var o,r;if($e(Wr(Jr,a).clientJSON.config),!Wr(Zr,a)||0===Wr(Zr,a).length)throw new Lt(je.NO_ELEMENTS_IN_COMPOSABLE,[],!0);if(!Wr(ni,a))throw new Lt(je.COMPOSABLE_CONTAINER_NOT_MOUNTED,[],!0);Bo(Wr(ai,a)).forEach(function(e){if(null==e||!e.isMounted)throw new Lt(je.ELEMENTS_NOT_MOUNTED,[],!0)});var i=[];if(Object.values(Wr(zr,a)).forEach(function(e){e.isValidElement()}),e&&e.tokens&&"boolean"!=typeof e.tokens)throw new Lt(je.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&We(e.additionalFields),null!=e&&e.upsert&&tt(null==e?void 0:e.upsert),Wr(Zr,a).forEach(function(e){var t;i.push({frameId:Wr(ai,a).elementName,elementId:null!==(t=e.elementName)&&void 0!==t?t:""})});null===(o=ht.fromJSON(Wr(Jr,a).clientJSON).toJSON())||void 0===o||null===(o=o.metaData)||void 0===o||o.uuid;null===(r=Wr(ui,a).call(a))||void 0===r||r.then(function(t){vt(mt(h.infoLogs.BEARER_TOKEN_RESOLVED,Hr),Ue.LOG,Wr($r,a).logLevel),Wr(vi,a).call(a,te.COMPOSABLE_CALL_REQUESTS+Wr(qr,a),{data:Gr(Gr({type:J},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:i,containerId:Wr(qr,a)}),clientConfig:{vaultURL:Wr(Jr,a).clientJSON.config.vaultURL,vaultID:Wr(Jr,a).clientJSON.config.vaultID,authToken:t}})}).catch(function(e){vt("".concat(e.message),Ue.ERROR,Wr($r,a).logLevel),n(e)}),window.addEventListener("message",function(e){var o;if((null===(o=e.data)||void 0===o?void 0:o.type)===te.COMPOSABLE_CALL_RESPONSE+Wr(qr,a)){var r=e.data.data;!r||null!=r&&r.error?(vt("".concat(JSON.stringify(null==r?void 0:r.error)),Ue.ERROR,Wr($r,a).logLevel),n(null==r?void 0:r.error)):null!=r&&r.records?(vt(mt(h.infoLogs.COLLECT_SUBMIT_SUCCESS,Hr),Ue.LOG,Wr($r,a).logLevel),t(r)):(vt("".concat(JSON.stringify(r)),Ue.ERROR,Wr($r,a).logLevel),n(r))}}),vt(mt(h.infoLogs.EMIT_EVENT,Hr,te.TOKENIZATION_REQUEST),Ue.LOG,Wr($r,a).logLevel)}catch(e){vt("".concat(e.message),Ue.ERROR,Wr($r,a).logLevel),n(e)}})}),Br(a,vi,function(e,t,n){if(Wr(si,a)){var o=Wr(si,a).getElementById(Wr(pi,a));null!=o&&o.contentWindow&&o.contentWindow.postMessage(Gr({name:e},t),it.IFRAME_SECURE_ORIGIN)}else{var r=document.getElementById(Wr(pi,a));null!=r&&r.contentWindow&&r.contentWindow.postMessage(Gr({name:e},t),it.IFRAME_SECURE_ORIGIN)}}),l(a,"uploadFiles",function(e){return new Promise(function(t,n){try{var o,r;if($e(Wr(Jr,a).clientJSON.config),!Wr(Zr,a)||0===Wr(Zr,a).length)throw new Lt(je.NO_ELEMENTS_IN_COMPOSABLE,[],!0);if(!Wr(ni,a))throw new Lt(je.COMPOSABLE_CONTAINER_NOT_MOUNTED,[],!0);var i=[];Wr(Zr,a).forEach(function(e){var t;i.push({frameId:Wr(ai,a).elementName,elementId:null!==(t=e.elementName)&&void 0!==t?t:""})});null===(o=ht.fromJSON(Wr(Jr,a).clientJSON).toJSON())||void 0===o||null===(o=o.metaData)||void 0===o||o.uuid;null===(r=Wr(ui,a).call(a))||void 0===r||r.then(function(o){vt(mt(h.infoLogs.BEARER_TOKEN_RESOLVED,Hr),Ue.LOG,Wr($r,a).logLevel),Wr(vi,a).call(a,te.COMPOSABLE_CALL_REQUESTS+Wr(qr,a),{data:Gr(Gr({type:Q},e),{},{elementIds:i,containerId:Wr(qr,a)}),clientConfig:{vaultURL:Wr(Jr,a).clientJSON.config.vaultURL,vaultID:Wr(Jr,a).clientJSON.config.vaultID,authToken:o}}),window.addEventListener("message",function(e){var o;if((null===(o=e.data)||void 0===o?void 0:o.type)===te.COMPOSABLE_FILE_CALL_RESPONSE+Wr(qr,a)){var r=e.data.data;!r||null!=r&&r.error?(vt("".concat(JSON.stringify(null==r?void 0:r.error)),Ue.ERROR,Wr($r,a).logLevel),n(null==r?void 0:r.error)):null!=r&&r.fileUploadResponse?(vt(mt(h.infoLogs.COLLECT_SUBMIT_SUCCESS,Hr),Ue.LOG,Wr($r,a).logLevel),t(r)):(vt("".concat(JSON.stringify(r)),Ue.ERROR,Wr($r,a).logLevel),n(r))}})}).catch(function(e){vt("".concat(e.message),Ue.ERROR,Wr($r,a).logLevel),n(e)})}catch(e){vt("".concat(e.message),Ue.ERROR,Wr($r,a).logLevel),n(e)}})}),Br(a,mi,function(){Wr(ti,a).on(te.COMPOSABLE_UPDATE_OPTIONS,function(e){var t,n=Wr(Zr,a).map(function(n,o){return n.elementName===e.elementName?(t=o,Gr({elementName:n.elementName},e.elementOptions)):n});Wr(ri,a)&&Wr(ri,a).updateElement(Gr({},n[t]))})}),Xr(qr,a,f()),Xr(Jr,a,Gr(Gr({},e),{},{clientJSON:Gr(Gr({},e.clientJSON),{},{config:Gr(Gr({},e.clientJSON.config),{},{options:Gr(Gr({},null===(i=e.clientJSON.config)||void 0===i?void 0:i.options),r)})})})),Xr(ui,a,e.getSkyflowBearerToken),Xr(ei,a,n),Xr($r,a,o),Xr(oi,a,r),Xr(ti,a,new At),Xr(ci,a,Wr(Jr,a).clientDomain||"");var c=Mt({name:"".concat(D,":").concat(Wr(qr,a),":").concat(Wr($r,a).logLevel,":").concat(btoa(Wr(ci,a))),referrer:Wr(ci,a)});return bt(c,{src:Pt()}),xt(c,Gr({},de)),vt(mt(h.infoLogs.CREATE_COLLECT_CONTAINER,Hr),Ue.LOG,Wr($r,a).logLevel),Xr(ii,a,!0),Wr(mi,a).call(a),d().on(te.COMPOSABLE_CONTAINER+Wr(qr,a),function(e,t){vt(mt(h.infoLogs.INITIALIZE_COMPOSABLE_CLIENT,Hr),Ue.LOG,Wr($r,a).logLevel),t({client:Wr(Jr,a).clientJSON,context:o}),Xr(li,a,!0)}),a}return we(t,e),u(t)}(Ct);const Li=yi;var Oi,Ti=function(){return u(function e(){s(this,e)},null,[{key:"getBrowserDetails",value:function(){return{browser_accept_header:"application/json",browser_color_depth:String(window.screen.colorDepth),browser_screen_height:window.screen.height,browser_screen_width:window.screen.width,browser_user_agent:window.navigator.userAgent,browser_java_enabled:window.navigator.javaEnabled(),browser_language:window.navigator.language,browser_tz:(new Date).getTimezoneOffset(),browser_javascript_enabled:!0,accept_language:Re(navigator.languages)}}}])}();Oi=Ti,l(Ti,"showChallenge",function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"05",o=arguments.length>3?arguments[3]:void 0;if(!e)throw new Lt(je.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["acsUrl"],!0);if(!t)throw new Lt(je.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["cReq"],!0);if(o&&!(o instanceof HTMLElement))throw new Lt(je.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["container"],!0);var r=Ni._.call(Oi,n),i=gi._.call(Oi,o||document.body,"threeDSCReqIFrame","threeDSCReqIframe",r[0],r[1]);return i.sandbox.add("allow-pointer-lock"),Ri._.call(Oi,e,t,i),i});var Ni={_:function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"05"){case"01":return["250px","400px"];case"02":return["390px","400px"];case"03":return["500px","600px"];case"04":return["600px","400px"];case"05":return["100%","100%"];default:throw new Lt(je.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["challengeWindowSize"],!0)}}},gi={_:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"0",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"0",i=document.createElement("iframe");return i.width=o,i.height=r,i.name=t,i.setAttribute("id",n),i.setAttribute("frameborder","0"),i.setAttribute("border","0"),i.setAttribute("style","overflow:hidden; position:absolute"),i.setAttribute("allowfullscreen","false"),i.setAttribute("allowpaymentrequest","false"),i.setAttribute("allow","payment; publickey-credentials-get"),i.sandbox.add("allow-forms","allow-scripts","allow-same-origin"),e.appendChild(i),i}},Ri={_:function(e,t,n){var o=document.createElement("html"),r=document.createElement("body"),i=hi._.call(Oi,"challengeRequestForm",e,n.name,"creq",encodeURIComponent(t));return r.appendChild(i),o.appendChild(r),n.appendChild(o),i.submit(),n}},hi={_:function(e,t,n,o,r){var i=document.createElement("form");i.name=e,i.action=t,i.method="POST",i.target=n,i.enctype="application/x-www-form-urlencoded";var a=document.createElement("input");return a.name=o,a.value=r,i.appendChild(a),i.style.display="none",i}};const Ai=Ti;function Si(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function wi(e,t){return e.get(bi(e,t))}function Di(e,t,n){return e.set(bi(e,t),n),n}function bi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Mi=new WeakMap,Pi=new WeakMap,xi=new WeakMap,Ci=new WeakMap;const ki=function(){return u(function e(t,n,o){var r,i,a=this;s(this,e),Si(this,Mi,void 0),Si(this,Pi,void 0),Si(this,xi,void 0),l(this,"type",Xa.COMPOSABLE),Si(this,Ci,!1),l(this,"update",function(e){var t,n;null===(t=wi(Pi,a))||void 0===t||null===(n=t._emit)||void 0===n||n.call(t,"".concat(te.REVEAL_ELEMENT_UPDATE_OPTIONS,":").concat(wi(Mi,a)),{options:e,updateType:re})}),Di(Mi,this,t),Di(xi,this,o),Di(Pi,this,n),null===(r=wi(Pi,this))||void 0===r||null===(i=r.on)||void 0===i||i.call(r,"".concat(xe.READY,":").concat(wi(Mi,this)),function(){Di(Ci,a,!0)})},[{key:"iframeName",value:function(){var e;return null!==(e=wi(xi,this))&&void 0!==e?e:""}},{key:"getID",value:function(){var e;return null!==(e=wi(Mi,this))&&void 0!==e?e:""}},{key:"renderFile",value:function(){var e=this;return new Promise(function(t,n){var o,r;null===(o=wi(Pi,e))||void 0===o||null===(r=o._emit)||void 0===r||r.call(o,"".concat(te.RENDER_FILE_REQUEST,":").concat(wi(Mi,e)),{},function(e){null!=e&&e.errors?n(e):null!=e&&e.error?n({errors:null==e?void 0:e.error}):t(e)})})}}])}();function Ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ui(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ui(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ji(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ji=function(){return!!e})()}function Fi(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Gi(e,t){return e.get(Bi(e,t))}function Yi(e,t,n){return e.set(Bi(e,t),n),n}function Bi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Wi="RevealElementInteranalElement",Xi=new WeakMap,Ki=new WeakMap,Hi=new WeakMap,qi=new WeakMap,zi=new WeakMap,Ji=new WeakMap,Qi=new WeakMap,Zi=new WeakMap,$i=new WeakMap,ea=new WeakMap,ta=new WeakMap,na=new WeakMap,oa=new WeakMap,ra=new WeakMap,ia=function(e){function t(e,n,o,r,i){var a,c,p,u,E,_,I;(s(this,t),_=function(e,t,n){return t=Ae(t),he(e,ji()?Reflect.construct(t,n||[],Ae(e).constructor):t.apply(e,n))}(this,t),Fi(_,Xi,void 0),Fi(_,Ki,void 0),Fi(_,Hi,void 0),Fi(_,qi,void 0),Fi(_,zi,!1),Fi(_,Ji,!1),Fi(_,Qi,void 0),Fi(_,Zi,void 0),l(_,"resizeObserver",void 0),Fi(_,$i,!1),Fi(_,ea,void 0),Fi(_,ta,null),Fi(_,na,void 0),Fi(_,oa,!1),Fi(_,ra,function(e,t){if(Gi(ta,_)){var n,o,r,i=null===(n=Gi(ta,_))||void 0===n?void 0:n.getElementById(null===(o=Gi(Xi,_))||void 0===o?void 0:o.name);null==i||null===(r=i.contentWindow)||void 0===r||r.postMessage(Vi({name:e},t),null==it?void 0:it.IFRAME_SECURE_ORIGIN)}else{var a,c,l,s=null===(a=document)||void 0===a?void 0:a.getElementById(null===(c=Gi(Xi,_))||void 0===c?void 0:c.name);null==s||null===(l=s.contentWindow)||void 0===l||l.postMessage(Vi({name:e},t),null==it?void 0:it.IFRAME_SECURE_ORIGIN)}}),Yi(Zi,_,e),Yi(Ki,_,o),_.resizeObserver=null,Yi(Hi,_,n),Yi(qi,_,null==r?void 0:r.containerId),Yi($i,_,null===(a=null==r?void 0:r.isMounted)||void 0===a||a),Yi(ea,_,null==r?void 0:r.eventEmitter),Yi(Qi,_,i),Yi(Xi,_,new Wt("".concat(M,":").concat(btoa(f())),o,Gi(qi,_),null===(c=Gi(Qi,_))||void 0===c?void 0:c.logLevel)),Yi($i,_,!0),Yi(na,_,null==o?void 0:o.getSkyflowBearerToken),null===d()||void 0===d()||d().on(ee.HEIGHT+(null===(p=Gi(Xi,_))||void 0===p?void 0:p.name),function(e){var t;null===(t=Gi(Xi,_))||void 0===t||t.setIframeHeight(null==e?void 0:e.height)}),null===(u=window)||void 0===u||u.addEventListener("message",function(e){var t,n,o,r;(null==e||null===(t=e.data)||void 0===t?void 0:t.type)===te.HEIGHT_CALLBACK+(null===(n=Gi(Xi,_))||void 0===n?void 0:n.name)&&(null===(o=Gi(Xi,_))||void 0===o||o.setIframeHeight(null==e||null===(r=e.data)||void 0===r||null===(r=r.data)||void 0===r?void 0:r.height))}),null!==(E=Gi(Hi,_))&&void 0!==E&&E.rows)&&_.setupRenderFileEventListener(null===(I=_.getRecordData())||void 0===I?void 0:I.rows);return _}return we(t,e),u(t,[{key:"setupRenderFileEventListener",value:function(e){var t=this;if(null==e||!e.length)throw new Lt(je.INVALID_REVEAL_COMPOSABLE_INPUT,["COMPOSABLE_REVEAL"],!0);try{null==e||e.forEach(function(e,n){var o;null==e||null===(o=e.elements)||void 0===o||o.forEach(function(e,o){var r,i,a,c,l,s;null!==(r=e)&&void 0!==r&&r.name&&(null===(i=window)||void 0===i||i.addEventListener("message",function(n){var o,r;(null==n||null===(o=n.data)||void 0===o?void 0:o.type)===te.RENDER_MOUNTED+(null===(r=e)||void 0===r?void 0:r.name)&&Yi(oa,t,!0)}),null===(a=Gi(ea,t))||void 0===a||a.on("".concat(null==te?void 0:te.RENDER_FILE_REQUEST,":").concat(null===(c=e)||void 0===c?void 0:c.name),function(n,o){var r;null===(r=t.renderFile(e))||void 0===r||null===(r=r.then(function(e){null==o||o(e)}))||void 0===r||r.catch(function(e){null==o||o({error:e})})}),null===(l=Gi(ea,t))||void 0===l||l.on("".concat(te.REVEAL_ELEMENT_UPDATE_OPTIONS,":").concat(null===(s=e)||void 0===s?void 0:s.name),function(r){if(r.updateType===re){var i,a=Vi(Vi(Vi({},e),r.options),pt(r.options));null!==(i=Gi(Hi,t))&&void 0!==i&&null!==(i=i.rows)&&void 0!==i&&null!==(i=i[n])&&void 0!==i&&null!==(i=i.elements)&&void 0!==i&&i[o]&&(Gi(Hi,t).rows[n].elements[o]=a),e=a,t.update(r.options,e)}}))})})}catch(e){throw new Lt(je.INVALID_REVEAL_COMPOSABLE_INPUT,["COMPOSABLE_REVEAL"],!0)}}},{key:"getID",value:function(){return Gi(Zi,this)}},{key:"mount",value:function(e){var t,n,o=this;if(!e)throw new Lt(je.EMPTY_ELEMENT_IN_MOUNT,["RevealElement"],!0);if(e instanceof HTMLElement&&(this.resizeObserver=new ResizeObserver(function(){var t=e.getElementsByTagName("iframe");if(t&&t.length>0)for(var n=0;n<t.length;n++){var r,i=t[n];if(i.name===Gi(Xi,o).name&&i.contentWindow)null==i||null===(r=i.contentWindow)||void 0===r||r.postMessage({name:ee.HEIGHT+Gi(Xi,o).name},it.IFRAME_SECURE_ORIGIN)}})),Ft(Gi(Zi,this),k,e),null!==(t=Gi(Ki,this))&&void 0!==t&&null!==(t=t.clientJSON)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&null!==(t=t.options)&&void 0!==t&&t.trackMetrics&&null!==(n=Gi(Ki,this).clientJSON.config)&&void 0!==n&&null!==(n=n.options)&&void 0!==n&&n.trackingKey&&Yt(Gi(Zi,this)),"string"==typeof e){var r,i=document.querySelector(e);if(i)null===(r=this.resizeObserver)||void 0===r||r.observe(i)}else if(e instanceof HTMLElement){var a;null===(a=this.resizeObserver)||void 0===a||a.observe(e)}if(Yi($i,this,!0),Gi($i,this)&&(Gi(Xi,this).mount(e,void 0,{record:JSON.stringify(Vi(Vi({},Gi(Ki,this)),{},{record:Gi(Hi,this),context:Gi(Qi,this),containerId:Gi(qi,this)}))}),d().target(it.IFRAME_SECURE_ORIGIN).on(ee.MOUNTED+Gi(Xi,this).name,function(){Yi(zi,o,!0),Gi(Hi,o).skyflowID?(d().emit(ie+Gi(qi,o),{skyflowID:Gi(Hi,o).skyflowID,containerId:Gi(qi,o)}),Ft(Gi(Zi,o),G,Date.now()),Ft(Gi(Zi,o),j,x.MOUNTED)):(d().emit(ie+Gi(qi,o),{id:Gi(Hi,o).token,containerId:Gi(qi,o)}),Ft(Gi(Zi,o),G,Date.now()),Ft(Gi(Zi,o),j,x.MOUNTED)),Object.prototype.hasOwnProperty.call(Gi(Hi,o),"skyflowID")&&d().emit(ee.HEIGHT+Gi(Xi,o).name,{},function(e){Gi(Xi,o).setIframeHeight(e.height)})}),Ft(Gi(Zi,this),j,x.READY),Ft(Gi(Zi,this),F,Date.now())),e instanceof HTMLElement&&e.getRootNode()instanceof ShadowRoot)Yi(ta,this,e.getRootNode());else if("string"==typeof e){var c=document.getElementById(e);c&&c.getRootNode()instanceof ShadowRoot&&Yi(ta,this,c.getRootNode())}}},{key:"renderFile",value:function(e){var t=this,n="";Object.prototype.hasOwnProperty.call(e,"altText")&&(n=e.altText),this.setAltText("loading...",e);var o=Gi(Qi,this).logLevel;return Gi(oa,this)?new Promise(function(r,i){try{var a;$e(Gi(Ki,t).clientJSON.config),vt(mt(h.infoLogs.VALIDATE_RENDER_RECORDS,Wi),Ue.LOG,o),Je(e),null===(a=Gi(na,t).call(t))||void 0===a||a.then(function(o){var a;vt(mt(h.infoLogs.BEARER_TOKEN_RESOLVED,Wi),Ue.LOG,Gi(Qi,t).logLevel),Gi(ra,t).call(t,te.REVEAL_CALL_REQUESTS+e.name,{data:{type:$,containerId:Gi(qi,t),iframeName:e.name},clientConfig:{vaultURL:Gi(Ki,t).clientJSON.config.vaultURL,vaultID:Gi(Ki,t).clientJSON.config.vaultID,authToken:o}}),null===(a=window)||void 0===a||a.addEventListener("message",function(o){var a,c;if(null!=o&&o.data&&(null==o||null===(a=o.data)||void 0===a?void 0:a.type)===te.REVEAL_CALL_RESPONSE+e.name&&(null==o||null===(c=o.data)||void 0===c||null===(c=c.data)||void 0===c?void 0:c.type)===$){var l,s=null==o||null===(l=o.data)||void 0===l||null===(l=l.data)||void 0===l?void 0:l.result;null!=s&&s.error||null!=s&&s.errors?(vt(mt(h.errorLogs.FAILED_RENDER),Ue.ERROR,Gi(Qi,t).logLevel),Object.prototype.hasOwnProperty.call(e,"altText")&&t.setAltText(n,e),i((null==s?void 0:s.error)||(null==s?void 0:s.errors))):(vt(mt(h.infoLogs.RENDER_SUBMIT_SUCCESS,Wi),Ue.LOG,Gi(Qi,t).logLevel),vt(mt(h.infoLogs.FILE_RENDERED,Wi,e.skyflowID),Ue.LOG,Gi(Qi,t).logLevel),r(s))}})}).catch(function(e){vt("".concat(e.message),Ue.ERROR,Gi(Qi,t).logLevel),i(e)}),vt(mt(h.infoLogs.EMIT_EVENT,Wi,te.RENDER_FILE_REQUEST),Ue.LOG,o)}catch(e){vt("Error: ".concat(e.message),Ue.ERROR,o),i(e)}}):new Promise(function(r,i){try{$e(Gi(Ki,t).clientJSON.config),vt(mt(h.infoLogs.VALIDATE_RENDER_RECORDS,Wi),Ue.LOG,o),Je(e),window.addEventListener("message",function(o){var a;o.data.type===te.RENDER_MOUNTED+(null==e?void 0:e.name)&&(Yi(zi,t,!0),null===(a=Gi(na,t).call(t))||void 0===a||a.then(function(o){vt(mt(h.infoLogs.BEARER_TOKEN_RESOLVED,Wi),Ue.LOG,Gi(Qi,t).logLevel),Gi(ra,t).call(t,te.REVEAL_CALL_REQUESTS+e.name,{data:{type:$,containerId:Gi(qi,t),iframeName:e.name},clientConfig:{vaultURL:Gi(Ki,t).clientJSON.config.vaultURL,vaultID:Gi(Ki,t).clientJSON.config.vaultID,authToken:o}}),window.addEventListener("message",function(o){var a,c;if(null!=o&&o.data&&(null==o||null===(a=o.data)||void 0===a?void 0:a.type)===te.REVEAL_CALL_RESPONSE+e.name&&(null==o||null===(c=o.data)||void 0===c||null===(c=c.data)||void 0===c?void 0:c.type)===$){var l,s=null==o||null===(l=o.data)||void 0===l||null===(l=l.data)||void 0===l?void 0:l.result;null!=s&&s.error||null!=s&&s.errors?(vt(mt(h.errorLogs.FAILED_RENDER),Ue.ERROR,Gi(Qi,t).logLevel),Object.prototype.hasOwnProperty.call(e,"altText")&&t.setAltText(n,e),i((null==s?void 0:s.error)||(null==s?void 0:s.errors))):(vt(mt(h.infoLogs.RENDER_SUBMIT_SUCCESS,Wi),Ue.LOG,Gi(Qi,t).logLevel),vt(mt(h.infoLogs.FILE_RENDERED,Wi,e.skyflowID),Ue.LOG,Gi(Qi,t).logLevel),r(s))}})}).catch(function(e){vt("".concat(null==e?void 0:e.message),Ue.ERROR,Gi(Qi,t).logLevel),i(e)}))}),vt(mt(h.infoLogs.EMIT_EVENT,Wi,te.RENDER_FILE_REQUEST),Ue.LOG,o)}catch(e){vt("Error: ".concat(null==e?void 0:e.message),Ue.ERROR,o),i(e)}})}},{key:"iframeName",value:function(){return Gi(Xi,this).name}},{key:"isMounted",value:function(){return Gi(zi,this)}},{key:"isClientSetError",value:function(){return Gi(Ji,this)}},{key:"getRecordData",value:function(){return Gi(Hi,this)}},{key:"setErrorOverride",value:function(e){}},{key:"setError",value:function(e){}},{key:"resetError",value:function(){}},{key:"setAltText",value:function(e,t){var n=this;Gi(oa,this)?Gi(ra,this).call(this,te.REVEAL_ELEMENT_UPDATE_OPTIONS+(null==t?void 0:t.name),{name:te.REVEAL_ELEMENT_UPDATE_OPTIONS+(null==t?void 0:t.name),updateType:oe,updatedValue:e}):window.addEventListener("message",function(o){o.data.type===te.RENDER_MOUNTED+(null==t?void 0:t.name)&&Gi(ra,n).call(n,te.REVEAL_ELEMENT_UPDATE_OPTIONS+(null==t?void 0:t.name),{name:te.REVEAL_ELEMENT_UPDATE_OPTIONS+(null==t?void 0:t.name),updateType:oe,updatedValue:e})})}},{key:"clearAltText",value:function(){}},{key:"unmount",value:function(){var e;Gi(Hi,this).skyflowID&&(Yi(zi,this,!1),null===(e=Gi(Xi,this).container)||void 0===e||e.remove());Yi(zi,this,!1),Gi(Xi,this).unmount()}},{key:"update",value:function(e,t){var n=this;Gi(oa,this)?Gi(ra,this).call(this,te.REVEAL_ELEMENT_UPDATE_OPTIONS+t.name,{name:te.REVEAL_ELEMENT_UPDATE_OPTIONS+t.name,updateType:re,updatedValue:e}):window.addEventListener("message",function(o){o.data.type===te.RENDER_MOUNTED+(null==t?void 0:t.name)&&Gi(ra,n).call(n,te.REVEAL_ELEMENT_UPDATE_OPTIONS+t.name,{name:te.REVEAL_ELEMENT_UPDATE_OPTIONS+t.name,updateType:re,updatedValue:e})})}}])}(Xt);const aa=ia;function ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function la(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(sa=function(){return!!e})()}function pa(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function ua(e,t){return e.get(da(e,t))}function Ea(e,t,n){return e.set(da(e,t),n),n}function da(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var fa="ComposableRevealContainer",_a=new WeakMap,Ia=new WeakMap,va=new WeakMap,ma=new WeakMap,ya=new WeakMap,La=new WeakMap,Oa=new WeakMap,Ta=new WeakMap,Na=new WeakMap,ga=new WeakMap,Ra=new WeakMap,ha=new WeakMap,Aa=new WeakMap,Sa=new WeakMap,wa=new WeakMap,Da=new WeakMap,ba=new WeakMap,Ma=new WeakMap,Pa=new WeakMap,xa=new WeakMap,Ca=new WeakMap,ka=new WeakMap,Ua=function(e){function t(e,n,o,r){var i,a,c;s(this,t),c=function(e,t,n){return t=Ae(t),he(e,sa()?Reflect.construct(t,n||[],Ae(e).constructor):t.apply(e,n))}(this,t),pa(c,_a,void 0),pa(c,Ia,{}),pa(c,va,void 0),pa(c,ma,{rows:[]}),pa(c,ya,[]),pa(c,La,void 0),pa(c,Oa,void 0),pa(c,Ta,void 0),pa(c,Na,!1),pa(c,ga,void 0),pa(c,Ra,void 0),l(c,"type",Xa.COMPOSE_REVEAL),pa(c,ha,!1),pa(c,Aa,{}),pa(c,Sa,""),pa(c,wa,!1),pa(c,Da,null),pa(c,ba,""),pa(c,Ma,[]),pa(c,Pa,void 0),l(c,"create",function(e,t){var n,o,r,i,a=f();rt(t);var l="".concat(M,":").concat(btoa(a));null===(n=ua(ya,c))||void 0===n||n.push(la(la({name:l},e),{},{elementName:l,elementId:a},pt(null!=t?t:{})));var s="".concat(b,":group:").concat(btoa(null!==(o=ua(Aa,c))&&void 0!==o?o:{}),":").concat(ua(_a,c),":").concat(null===(r=ua(La,c))||void 0===r?void 0:r.logLevel,":").concat(btoa(null!==(i=ua(Sa,c))&&void 0!==i?i:""));return new ki(l,ua(Ta,c),s)}),pa(c,xa,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{var n,o=[];if(Ea(Aa,c,Bn(e)),null===(n=ua(Aa,c))||void 0===n||null===(n=n.rows)||void 0===n||n.forEach(function(e){var t;null==e||null===(t=e.elements)||void 0===t||t.forEach(function(e){var t=null!=e?e:{};t.elementType;t.isMounted=!1,t.label=null==e?void 0:e.label,t.skyflowID=null==e?void 0:e.skyflowID,o.push(t)})}),ua(Aa,c).elementName=t?o[0].elementName:"".concat(b,":group:").concat(btoa(ua(Aa,c))),t&&!ua(Ia,c)[o[0].elementName]&&ua(Ca,c).call(c,o[0].name))throw new Lt(je.UNIQUE_ELEMENT_NAME,["".concat(o[0].name)],!0);var r=ua(Ia,c)[ua(Aa,c).elementName];if(r);else{var i=f();try{r=new aa(i,ua(Aa,c),ua(va,c),{containerId:ua(_a,c),isMounted:ua(ha,c),type:c.type,eventEmitter:ua(Ta,c)},ua(La,c)),ua(Ia,c)[ua(Aa,c).elementName]=r,ua(Oa,c)[i]=r}catch(e){throw vt(h.errorLogs.INVALID_REVEAL_COMPOSABLE_INPUT,Ue.ERROR,ua(La,c).logLevel),e}}return Ea(ba,c,r.iframeName()),r}catch(e){throw vt(h.errorLogs.INVALID_REVEAL_COMPOSABLE_INPUT,Ue.ERROR,ua(La,c).logLevel),e}}),pa(c,Ca,function(e){for(var t=Object.keys(ua(Ia,c)),n=0;n<t.length;n+=1)if(atob(t[n].split(":")[2])===e)return!0;return!1}),l(c,"mount",function(e){if(!e)throw new Lt(je.EMPTY_ELEMENT_IN_MOUNT,["RevealElement"],!0);var t=ua(ga,c).layout;if(jr()(t)!==ua(ya,c).length)throw new Lt(je.MISMATCH_ELEMENT_COUNT_LAYOUT_SUM,[],!0);var n=0;if(t.forEach(function(e,t){ua(ma,c).rows=[].concat(Re(ua(ma,c).rows),[{elements:[]}]);for(var o=0;o<e;o++)ua(ma,c).rows[t].elements.push(ua(ya,c)[n]),n++}),ua(ga,c).styles&&(ua(ma,c).styles=la({},ua(ga,c).styles)),ua(ga,c).errorTextStyles&&(ua(ma,c).errorTextStyles=la({},ua(ga,c).errorTextStyles)),ua(ha,c)&&(Ea(Ra,c,ua(xa,c).call(c,ua(ma,c),!1)),ua(Ra,c).mount(e),Ea(Na,c,!0)),e instanceof HTMLElement&&e.getRootNode()instanceof ShadowRoot)Ea(Da,c,e.getRootNode());else if("string"==typeof e){var o=document.getElementById(e);o&&o.getRootNode()instanceof ShadowRoot&&Ea(Da,c,o.getRootNode())}null!==ua(Da,c)&&(ua(Ta,c).on(ee.HEIGHT,function(e){ua(ka,c).call(c,ee.HEIGHT+e.iframeName,{})}),ua(ka,c).call(c,ee.HEIGHT+ua(ba,c),{}))}),l(c,"unmount",function(){ua(Ra,c).unmount()}),pa(c,ka,function(e,t,n){if(ua(Da,c)){var o=ua(Da,c).getElementById(ua(ba,c));null!=o&&o.contentWindow&&o.contentWindow.postMessage(la({name:e},t),it.IFRAME_SECURE_ORIGIN)}else{var r=document.getElementById(ua(ba,c));null!=r&&r.contentWindow&&r.contentWindow.postMessage(la({name:e},t),it.IFRAME_SECURE_ORIGIN)}}),Ea(_a,c,f()),Ea(va,c,la(la({},e),{},{clientJSON:la(la({},null==e?void 0:e.clientJSON),{},{config:la(la({},null==e||null===(i=e.clientJSON)||void 0===i?void 0:i.config),{},{options:la(la({},null==e||null===(a=e.clientJSON)||void 0===a||null===(a=a.config)||void 0===a?void 0:a.options),r)})})})),Ea(Pa,c,null==e?void 0:e.getSkyflowBearerToken),Ea(Oa,c,n),Ea(La,c,o),Ea(ga,c,r),Ea(Ta,c,new At),Ea(Sa,c,ua(va,c).clientDomain||"");var p=Mt({name:"".concat(D,":").concat(ua(_a,c),":").concat(ua(La,c).logLevel,":").concat(btoa(ua(Sa,c))),referrer:ua(Sa,c)});return bt(p,{src:Pt()}),xt(p,la({},de)),vt(mt(h.infoLogs.CREATE_COLLECT_CONTAINER,fa),Ue.LOG,ua(La,c).logLevel),Ea(ha,c,!0),window.addEventListener("message",function(e){e.data.type===ee.MOUNTED+ua(_a,c)&&Ea(wa,c,!0)}),c}return we(t,e),u(t,[{key:"reveal",value:function(){var e=this;return Ea(Ma,this,[]),ua(wa,this)?new Promise(function(t,n){try{var o;if($e(ua(va,e).clientJSON.config),!ua(ya,e)||0===ua(ya,e).length)throw new Lt(je.NO_ELEMENTS_IN_COMPOSABLE,[],!0);vt(mt(h.infoLogs.VALIDATE_REVEAL_RECORDS,fa),Ue.LOG,ua(La,e).logLevel),ua(ya,e).forEach(function(t){t.skyflowID||ua(Ma,e).push(t)}),ze(ua(Ma,e));var r=[];ua(ya,e).forEach(function(e){r.push({frameId:e.name,token:e.token})}),null===(o=ua(Pa,e).call(e))||void 0===o||o.then(function(o){var i,a,c;vt(mt(h.infoLogs.BEARER_TOKEN_RESOLVED,fa),Ue.LOG,ua(La,e).logLevel),ua(ka,e).call(e,te.COMPOSABLE_REVEAL+ua(_a,e),{data:{type:Z,containerId:ua(_a,e),elementIds:r},clientConfig:{vaultURL:null===(i=ua(va,e))||void 0===i||null===(i=i.clientJSON)||void 0===i||null===(i=i.config)||void 0===i?void 0:i.vaultURL,vaultID:null===(a=ua(va,e))||void 0===a||null===(a=a.clientJSON)||void 0===a||null===(a=a.config)||void 0===a?void 0:a.vaultID,authToken:o},context:ua(La,e)}),null===(c=window)||void 0===c||c.addEventListener("message",function(o){var r;if((null==o||null===(r=o.data)||void 0===r?void 0:r.type)===te.REVEAL_RESPONSE_READY+ua(_a,e)){var i,a,c,l,s,p=null==o||null===(i=o.data)||void 0===i?void 0:i.data;if(null!=p&&p.errors)vt(mt(null==h||null===(a=h.errorLogs)||void 0===a?void 0:a.FAILED_REVEAL),Ue.ERROR,null===(c=ua(La,e))||void 0===c?void 0:c.logLevel),n(p);else vt(mt(null==h||null===(l=h.infoLogs)||void 0===l?void 0:l.REVEAL_SUBMIT_SUCCESS,fa),Ue.LOG,null===(s=ua(La,e))||void 0===s?void 0:s.logLevel),t(p)}})}).catch(function(t){vt("".concat(t.message),Ue.ERROR,ua(La,e).logLevel),n(t)})}catch(t){vt("Error: ".concat(t.message),Ue.ERROR,ua(La,e).logLevel),n(t)}}):new Promise(function(t,n){try{var o;if($e(ua(va,e).clientJSON.config),!ua(ya,e)||0===ua(ya,e).length)throw new Lt(je.NO_ELEMENTS_IN_COMPOSABLE,[],!0);vt(mt(h.infoLogs.VALIDATE_REVEAL_RECORDS,fa),Ue.LOG,ua(La,e).logLevel),ua(ya,e).forEach(function(t){t.skyflowID||ua(Ma,e).push(t)}),ze(ua(Ma,e));var r=[];ua(ya,e).forEach(function(e){r.push({frameId:e.name,token:e.token})}),null===(o=ua(Pa,e).call(e))||void 0===o||o.then(function(o){vt(mt(h.infoLogs.BEARER_TOKEN_RESOLVED,fa),Ue.LOG,ua(La,e).logLevel),window.addEventListener("message",function(i){var a;(null==i||null===(a=i.data)||void 0===a?void 0:a.type)===ee.MOUNTED+ua(_a,e)&&(ua(ka,e).call(e,te.COMPOSABLE_REVEAL+ua(_a,e),{data:{type:Z,containerId:ua(_a,e),elementIds:r},clientConfig:{vaultURL:ua(va,e).clientJSON.config.vaultURL,vaultID:ua(va,e).clientJSON.config.vaultID,authToken:o},context:ua(La,e)}),window.addEventListener("message",function(o){var r;if((null==o||null===(r=o.data)||void 0===r?void 0:r.type)===te.REVEAL_RESPONSE_READY+ua(_a,e)){var i,a=null==o||null===(i=o.data)||void 0===i?void 0:i.data;null!=a&&a.errors?(vt(mt(h.errorLogs.FAILED_REVEAL),Ue.ERROR,ua(La,e).logLevel),n(a)):(vt(mt(h.infoLogs.REVEAL_SUBMIT_SUCCESS,fa),Ue.LOG,ua(La,e).logLevel),t(a))}}))})}).catch(function(t){vt("".concat(t.message),Ue.ERROR,ua(La,e).logLevel),n(t)})}catch(t){vt("Error: ".concat(t.message),Ue.ERROR,ua(La,e).logLevel),n(t)}})}}])}(Ct);const Va=Ua;function ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ja(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ja(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ga(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Ya(e,t,n){return e.set(Wa(e,t),n),n}function Ba(e,t){return e.get(Wa(e,t))}function Wa(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Xa=function(e){return e.COLLECT="COLLECT",e.REVEAL="REVEAL",e.COMPOSABLE="COMPOSABLE",e.COMPOSE_REVEAL="COMPOSABLE_REVEAL",e}({}),Ka="Skyflow",Ha=new WeakMap,qa=new WeakMap,za=new WeakMap,Ja=new WeakMap,Qa=new WeakMap,Za=new WeakMap,$a=new WeakMap,ec=new WeakMap,tc=new WeakMap,nc=new WeakMap,oc=function(){function e(t){var n,o,r=this;s(this,e),Ga(this,Ha,void 0),Ga(this,qa,f()),Ga(this,za,{uuid:Ba(qa,this),clientDomain:window.location.origin}),Ga(this,Ja,void 0),Ga(this,Qa,""),Ga(this,Za,void 0),Ga(this,$a,void 0),Ga(this,ec,void 0),Ga(this,tc,void 0),Ga(this,nc,function(){return new Promise(function(e,t){!Ba(Ha,r).config.getBearerToken||Ba(Qa,r)&&Rr(Ba(Qa,r))?(vt(mt(h.infoLogs.REUSE_BEARER_TOKEN,Ka),Ue.LOG,Ba($a,r)),e(Ba(Qa,r))):Ba(Ha,r).config.getBearerToken().then(function(n){Rr(n)?(vt(mt(h.infoLogs.BEARER_TOKEN_RESOLVED,Ka),Ue.LOG,Ba($a,r)),Ya(Qa,r,n),e(Ba(Qa,r))):(vt(mt(h.errorLogs.INVALID_BEARER_TOKEN),Ue.ERROR,Ba($a,r)),t({error:mt(h.errorLogs.INVALID_BEARER_TOKEN)}))}).catch(function(e){vt(mt(h.errorLogs.BEARER_TOKEN_REJECTED),Ue.ERROR,Ba($a,r)),t({error:e})})})});var i=localStorage.getItem("sdk_version")||"";Ba(za,this).sdkVersion=i,Ba(za,this).session_id=f(),Ya(Ha,this,new ht(Fa({},t),Ba(za,this))),Ya($a,this,(null==t||null===(n=t.options)||void 0===n?void 0:n.logLevel)||Ce.ERROR),Ya(ec,this,(null==t||null===(o=t.options)||void 0===o?void 0:o.env)||ke.PROD),Ya(tc,this,[]),Ya(Ja,this,new Ur(Ba(Ha,this),{logLevel:Ba($a,this),env:Ba(ec,this)}));d().target(it.IFRAME_SECURE_ORIGIN).on(te.GET_BEARER_TOKEN+Ba(qa,this),function(e,t){vt(mt(h.infoLogs.CAPTURED_BEARER_TOKEN_EVENT,Ka),Ue.LOG,Ba($a,r)),!Ba(Ha,r).config.getBearerToken||Ba(Qa,r)&&Rr(Ba(Qa,r))?(vt(mt(h.infoLogs.REUSE_BEARER_TOKEN,Ka),Ue.LOG,Ba($a,r)),t({authToken:Ba(Qa,r)})):Ba(Ha,r).config.getBearerToken().then(function(e){Rr(e)?(vt(mt(h.infoLogs.BEARER_TOKEN_RESOLVED,Ka),Ue.LOG,Ba($a,r)),Ya(Qa,r,e),t({authToken:Ba(Qa,r)})):(vt(mt(h.errorLogs.INVALID_BEARER_TOKEN),Ue.ERROR,Ba($a,r)),t({error:mt(h.errorLogs.INVALID_BEARER_TOKEN)}))}).catch(function(e){vt(mt(h.errorLogs.BEARER_TOKEN_REJECTED),Ue.ERROR,Ba($a,r)),t({error:e})})}),vt(mt(h.infoLogs.BEARER_TOKEN_LISTENER,Ka),Ue.LOG,Ba($a,this)),vt(mt(h.infoLogs.CURRENT_ENV,Ka,Ba(ec,this)),Ue.LOG,Ba($a,this)),vt(mt(h.infoLogs.CURRENT_LOG_LEVEL,Ka,Ba($a,this)),Ue.LOG,Ba($a,this))}return u(e,[{key:"container",value:function(e,t){switch(e){case Xa.COLLECT:var n=new yr(Fa(Fa({},Ba(za,this)),{},{clientJSON:Ba(Ha,this).toJSON(),containerType:e,skyflowContainer:Ba(Ja,this),getSkyflowBearerToken:Ba(nc,this)}),Ba(tc,this),{logLevel:Ba($a,this),env:Ba(ec,this)},t);return vt(mt(h.infoLogs.COLLECT_CONTAINER_CREATED,Ka),Ue.LOG,Ba($a,this)),n;case Xa.REVEAL:var o=new Yn(Fa(Fa({},Ba(za,this)),{},{clientJSON:Ba(Ha,this).toJSON(),containerType:e,skyflowContainer:Ba(Ja,this),getSkyflowBearerToken:Ba(nc,this)}),Ba(tc,this),{logLevel:Ba($a,this),env:Ba(ec,this)},t);return vt(mt(h.infoLogs.REVEAL_CONTAINER_CREATED,Ka),Ue.LOG,Ba($a,this)),o;case Xa.COMPOSABLE:nt(t);var r=new Li(Fa(Fa({},Ba(za,this)),{},{clientJSON:Ba(Ha,this).toJSON(),containerType:e,skyflowContainer:Ba(Ja,this),getSkyflowBearerToken:Ba(nc,this)}),Ba(tc,this),{logLevel:Ba($a,this),env:Ba(ec,this)},t);return vt(mt(h.infoLogs.COLLECT_CONTAINER_CREATED,Ka),Ue.LOG,Ba($a,this)),r;case Xa.COMPOSE_REVEAL:nt(t);var i=new Va(Fa(Fa({},Ba(za,this)),{},{clientJSON:Ba(Ha,this).toJSON(),containerType:e,skyflowContainer:Ba(Ja,this),getSkyflowBearerToken:Ba(nc,this)}),Ba(tc,this),{logLevel:Ba($a,this),env:Ba(ec,this)},t);return vt(mt(h.infoLogs.REVEAL_CONTAINER_CREATED,Ka),Ue.LOG,Ba($a,this)),i;default:if(!e)throw new Lt(je.EMPTY_CONTAINER_TYPE,[],!0);throw new Lt(je.INVALID_CONTAINER_TYPE,[e],!0)}}},{key:"insert",value:function(e,t){return vt(mt(h.infoLogs.INSERT_TRIGGERED,Ka),Ue.LOG,Ba($a,this)),Ba(Ja,this).insert(e,t)}},{key:"detokenize",value:function(e){return vt(mt(h.infoLogs.DETOKENIZE_TRIGGERED,Ka),Ue.LOG,Ba($a,this)),Ba(Ja,this).detokenize(e)}},{key:"getById",value:function(e){return vt(h.warnLogs.GET_BY_ID_DEPRECATED,Ue.WARN,Ba($a,this)),vt(mt(h.infoLogs.GET_BY_ID_TRIGGERED,Ka),Ue.LOG,Ba($a,this)),Ba(Ja,this).getById(e)}},{key:"get",value:function(e,t){return vt(mt(h.infoLogs.GET_TRIGGERED,Ka),Ue.LOG,Ba($a,this)),Ba(Ja,this).get(e,t)}},{key:"delete",value:function(e,t){return vt(mt(h.infoLogs.DELETE_TRIGGERED,Ka),Ue.LOG,Ba($a,this)),Ba(Ja,this).delete(e,t)}},{key:"update",value:function(e,t){return vt(mt(h.infoLogs.UPDATE_TRIGGERED,Ka),Ue.LOG,Ba($a,this)),Ba(Ja,this).update(e,t)}}],[{key:"init",value:function(t){var n,o=(null==t||null===(n=t.options)||void 0===n?void 0:n.logLevel)||Ce.ERROR;!function(e){var t,n;if(null!=e&&null!==(t=e.options)&&void 0!==t&&t.customElementsURL&&Qe(null==e||null===(n=e.options)||void 0===n?void 0:n.customElementsURL)){var o,r,i=null==e||null===(o=e.options)||void 0===o?void 0:o.customElementsURL,a=new URL(i),c=a.protocol,l=a.hostname,s="".concat(c,"//").concat(l);it.IFRAME_SECURE_ORIGIN=s,it.IFRAME_SECURE_SITE=null==e||null===(r=e.options)||void 0===r?void 0:r.customElementsURL}}(t),vt(mt(h.infoLogs.INITIALIZE_CLIENT,Ka),Ue.LOG,o);var r,i=t;i.vaultURL="string"!=typeof(r=t.vaultURL)?r:"/"===(null==r?void 0:r.trim().slice(-1))?r.slice(0,-1):r.trim();var a=new e(i);return vt(mt(h.infoLogs.CLIENT_INITIALIZED,Ka),Ue.LOG,o),a}},{key:"ContainerType",get:function(){return Xa}},{key:"ElementType",get:function(){return ce}},{key:"RedactionType",get:function(){return Me}},{key:"RequestMethod",get:function(){return Pe}},{key:"LogLevel",get:function(){return Ce}},{key:"EventName",get:function(){return xe}},{key:"Env",get:function(){return ke}},{key:"ValidationRuleType",get:function(){return Ve}},{key:"CardType",get:function(){return le}},{key:"Error",get:function(){return Lt}},{key:"ThreeDS",get:function(){return Ai}}])}();const rc=oc,ic=oc})(),o})());