@hackler/react-sdk 11.15.1 → 11.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/lib/index.umd.js +1 -1
- package/package.json +2 -2
package/lib/index.es.js
CHANGED
package/lib/index.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).hackleReactSDK={})}(this,function(l){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function D(r){if(r.__esModule)return r;var n=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(e){var t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:function(){return r[e]}})}),n}var L,t={},F=new Uint8Array(16);function j(){if(L=L||"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto))return L(F);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}var V=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function H(e){return"string"==typeof e&&V.test(e)}for(var K,G,z=[],B=0;B<256;++B)z.push((B+256).toString(16).substr(1));function q(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,e=(z[e[t+0]]+z[e[t+1]]+z[e[t+2]]+z[e[t+3]]+"-"+z[e[t+4]]+z[e[t+5]]+"-"+z[e[t+6]]+z[e[t+7]]+"-"+z[e[t+8]]+z[e[t+9]]+"-"+z[e[t+10]]+z[e[t+11]]+z[e[t+12]]+z[e[t+13]]+z[e[t+14]]+z[e[t+15]]).toLowerCase();if(H(e))return e;throw TypeError("Stringified UUID is invalid")}var Y=0,$=0;function J(e){if(!H(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}function X(e,s,a){function t(e,t,r,n){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),16!==(t="string"==typeof t?J(t):t).length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+e.length);if(i.set(t),i.set(e,t.length),(i=a(i))[6]=15&i[6]|s,i[8]=63&i[8]|128,r){n=n||0;for(var o=0;o<16;++o)r[n+o]=i[o];return r}return q(i)}try{t.name=e}catch(e){}return t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t}function W(e){return 14+(e+64>>>9<<4)+1}function Q(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function Z(e,t,r,n,i,o){return Q((t=Q(Q(t,e),Q(n,o)))<<i|t>>>32-i,r)}function ee(e,t,r,n,i,o,s){return Z(t&r|~t&n,e,t,i,o,s)}function te(e,t,r,n,i,o,s){return Z(t&n|r&~n,e,t,i,o,s)}function re(e,t,r,n,i,o,s){return Z(t^r^n,e,t,i,o,s)}function ne(e,t,r,n,i,o,s){return Z(r^(t|~n),e,t,i,o,s)}var r=X("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}for(var n=function(e,t){e[t>>5]|=128<<t%32,e[W(t)-1]=t;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=r,u=n,c=i,l=o;r=ee(r,n,i,o,e[s],7,-680876936),o=ee(o,r,n,i,e[s+1],12,-389564586),i=ee(i,o,r,n,e[s+2],17,606105819),n=ee(n,i,o,r,e[s+3],22,-1044525330),r=ee(r,n,i,o,e[s+4],7,-176418897),o=ee(o,r,n,i,e[s+5],12,1200080426),i=ee(i,o,r,n,e[s+6],17,-1473231341),n=ee(n,i,o,r,e[s+7],22,-45705983),r=ee(r,n,i,o,e[s+8],7,1770035416),o=ee(o,r,n,i,e[s+9],12,-1958414417),i=ee(i,o,r,n,e[s+10],17,-42063),n=ee(n,i,o,r,e[s+11],22,-1990404162),r=ee(r,n,i,o,e[s+12],7,1804603682),o=ee(o,r,n,i,e[s+13],12,-40341101),i=ee(i,o,r,n,e[s+14],17,-1502002290),n=ee(n,i,o,r,e[s+15],22,1236535329),r=te(r,n,i,o,e[s+1],5,-165796510),o=te(o,r,n,i,e[s+6],9,-1069501632),i=te(i,o,r,n,e[s+11],14,643717713),n=te(n,i,o,r,e[s],20,-373897302),r=te(r,n,i,o,e[s+5],5,-701558691),o=te(o,r,n,i,e[s+10],9,38016083),i=te(i,o,r,n,e[s+15],14,-660478335),n=te(n,i,o,r,e[s+4],20,-405537848),r=te(r,n,i,o,e[s+9],5,568446438),o=te(o,r,n,i,e[s+14],9,-1019803690),i=te(i,o,r,n,e[s+3],14,-187363961),n=te(n,i,o,r,e[s+8],20,1163531501),r=te(r,n,i,o,e[s+13],5,-1444681467),o=te(o,r,n,i,e[s+2],9,-51403784),i=te(i,o,r,n,e[s+7],14,1735328473),n=te(n,i,o,r,e[s+12],20,-1926607734),r=re(r,n,i,o,e[s+5],4,-378558),o=re(o,r,n,i,e[s+8],11,-2022574463),i=re(i,o,r,n,e[s+11],16,1839030562),n=re(n,i,o,r,e[s+14],23,-35309556),r=re(r,n,i,o,e[s+1],4,-1530992060),o=re(o,r,n,i,e[s+4],11,1272893353),i=re(i,o,r,n,e[s+7],16,-155497632),n=re(n,i,o,r,e[s+10],23,-1094730640),r=re(r,n,i,o,e[s+13],4,681279174),o=re(o,r,n,i,e[s],11,-358537222),i=re(i,o,r,n,e[s+3],16,-722521979),n=re(n,i,o,r,e[s+6],23,76029189),r=re(r,n,i,o,e[s+9],4,-640364487),o=re(o,r,n,i,e[s+12],11,-421815835),i=re(i,o,r,n,e[s+15],16,530742520),n=re(n,i,o,r,e[s+2],23,-995338651),r=ne(r,n,i,o,e[s],6,-198630844),o=ne(o,r,n,i,e[s+7],10,1126891415),i=ne(i,o,r,n,e[s+14],15,-1416354905),n=ne(n,i,o,r,e[s+5],21,-57434055),r=ne(r,n,i,o,e[s+12],6,1700485571),o=ne(o,r,n,i,e[s+3],10,-1894986606),i=ne(i,o,r,n,e[s+10],15,-1051523),n=ne(n,i,o,r,e[s+1],21,-2054922799),r=ne(r,n,i,o,e[s+8],6,1873313359),o=ne(o,r,n,i,e[s+15],10,-30611744),i=ne(i,o,r,n,e[s+6],15,-1560198380),n=ne(n,i,o,r,e[s+13],21,1309151649),r=ne(r,n,i,o,e[s+4],6,-145523070),o=ne(o,r,n,i,e[s+11],10,-1120210379),i=ne(i,o,r,n,e[s+2],15,718787259),n=ne(n,i,o,r,e[s+9],21,-343485551),r=Q(r,a),n=Q(n,u),i=Q(i,c),o=Q(o,l)}return[r,n,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(W(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length),i=[],o=32*n.length,s="0123456789abcdef",a=0;a<o;a+=8){var u=n[a>>5]>>>a%32&255,u=parseInt(s.charAt(u>>>4&15)+s.charAt(15&u),16);i.push(u)}return i});function ie(e,t){return e<<t|e>>>32-t}var oe=X("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var i=0;i<n.length;++i)e.push(n.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s),u=0;u<s;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=e[64*u+4*l]<<24|e[64*u+4*l+1]<<16|e[64*u+4*l+2]<<8|e[64*u+4*l+3];a[u]=c}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<s;++f){for(var p=new Uint32Array(80),d=0;d<16;++d)p[d]=a[f][d];for(var h=16;h<80;++h)p[h]=ie(p[h-3]^p[h-8]^p[h-14]^p[h-16],1);for(var y=r[0],v=r[1],m=r[2],g=r[3],E=r[4],w=0;w<80;++w)var T=Math.floor(w/20),T=ie(y,5)+function(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:return t^r^n;case 2:return t&r^t&n^r&n;case 3:return t^r^n}}(T,v,m,g)+E+t[T]+p[w]>>>0,E=g,g=m,m=ie(v,30)>>>0,v=y,y=T;r[0]=r[0]+y>>>0,r[1]=r[1]+v>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+E>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]});var se,r=D(Object.freeze({__proto__:null,v1:function(e,t,r){var n=t&&r||0,i=t||new Array(16),o=(e=e||{}).node||K,r=void 0!==e.clockseq?e.clockseq:G,s=(null!=o&&null!=r||(s=e.random||(e.rng||j)(),null==o&&(o=K=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==r&&(r=G=16383&(s[6]<<8|s[7]))),void 0!==e.msecs?e.msecs:Date.now()),a=void 0!==e.nsecs?e.nsecs:$+1,u=s-Y+(a-$)/1e4;if(u<0&&void 0===e.clockseq&&(r=r+1&16383),1e4<=(a=(u<0||Y<s)&&void 0===e.nsecs?0:a))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Y=s,G=r,u=(1e4*(268435455&(s+=122192928e5))+($=a))%4294967296,i[n++]=u>>>24&255,i[n++]=u>>>16&255,i[n++]=u>>>8&255,i[n++]=255&u,e=s/4294967296*1e4&268435455,i[n++]=e>>>8&255,i[n++]=255&e,i[n++]=e>>>24&15|16,i[n++]=e>>>16&255,i[n++]=r>>>8|128,i[n++]=255&r;for(var c=0;c<6;++c)i[n+c]=o[c];return t||q(i)},v3:r,v4:function(e,t,r){var n=(e=e||{}).random||(e.rng||j)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return q(n)},v5:oe,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(H(e))return parseInt(e.substr(14,1),16);throw TypeError("Invalid UUID")},validate:H,stringify:q,parse:J})),ae=(l.setUserId=void 0,l.sanitizeUser=void 0,l.removeUserId=void 0,l.getUserId=void 0,l.Version=void 0,l.Variation=void 0,l.TargetingType=void 0,l.TargetRule=void 0,l.TargetMatch=void 0,l.TargetKey=void 0,l.TargetCondition=void 0,l.TargetAction=void 0,l.Target=void 0,l.TARGET_KEY_TYPES=void 0,l.TARGET_ACTION_TYPES=void 0,l.Slot=void 0,l.Segment=void 0,l.SEGMENT_TYPES=void 0,l.RemoteConfigTargetRule=void 0,l.RemoteConfigParameterValue=void 0,l.RemoteConfigParameter=void 0,l.RemoteConfigDecision=void 0,l.ParameterConfiguration=void 0,l.MetaVersion=void 0,l.MATCH_VALUE_TYPES=void 0,l.MATCH_TYPES=void 0,l.MATCH_OPERATORS=void 0,l.Logger=void 0,l.InAppMessageDecision=void 0,l.IdentifiersBuilder=void 0,l.IdentifierType=void 0,l.IAMTargetRuleOverride=void 0,l.IAMTargetContext=void 0,l.IAMEventTriggerRule=void 0,l.IAMDateRange=void 0,l.IAMContext=void 0,l.IAM=void 0,l.FeatureFlagDecision=void 0,l.Experiment=void 0,l.EventType=void 0,l.EmptyParameterConfig=void 0,l.EmptyHackleRemoteConfig=void 0,l.DecisionReason=void 0,l.Decision=void 0,l.CoreVersion=void 0,l.ContainerGroup=void 0,l.Container=void 0,l.Bucket=void 0,Object.defineProperty(t,"__esModule",{value:!0}),r),ue=function(e,t){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function ce(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ue(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var y=function(){return(y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function le(e,s,a,u){return new(a=a||Promise)(function(r,t){function n(e){try{o(u.next(e))}catch(e){t(e)}}function i(e){try{o(u.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,i)}o((u=u.apply(e,s||[])).next())})}function fe(n,i){var o,s,a,u={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,s&&(a=2&t[0]?s.return:t[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,t[1])).done)return a;switch(s=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,s=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!((a=0<(a=u.trys).length&&a[a.length-1])||6!==t[0]&&2!==t[0])){u=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){u.label=t[1];break}if(6===t[0]&&u.label<a[1]){u.label=a[1],a=t;break}if(a&&u.label<a[2]){u.label=a[2],u.ops.push(t);break}a[2]&&u.ops.pop(),u.trys.pop();continue}t=i.call(n,u)}catch(e){t=[6,e],s=0}finally{o=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}Te.isNotNullOrUndefined=function(e){return null!=e},Te.isNullOrUndefined=function(e){return null==e},Te.requiredNotNullOrUndefined=function(e,t){if(void 0===t&&(t=function(){return"Required value is null or undefined"}),this.isNullOrUndefined(e))throw new Error(t());return e},Te.fromMap=function(e){var r={};return e.forEach(function(e,t){r[t]=e}),r};var a=Te,c=(we.mapNotNullOrUndefined=function(e,t){for(var r=Array(),n=0,i=e;n<i.length;n++){var o=t(i[n]);a.isNotNullOrUndefined(o)&&r.push(o)}return r},we.associateTo=function(e,t,r){for(var n=0,i=e;n<i.length;n++){var o=r(i[n]);t.set(o[0],o[1])}return t},we.associate=function(e,t){return this.associateTo(e,new Map,t)},we.associateBy=function(e,t){return this.associate(e,function(e){return[t(e),e]})},we.chunked=function(e,t){for(var r=[],n=e.slice();n.length;)r.push(n.splice(0,t));return r},we),pe={DISABLE:0,ERROR:1,WARN:2,INFO:3,DEBUG:4},de=(Ee.setLogLevel=function(e){this.logLevel=e=void 0===e?pe.INFO:e},Ee.initCounter=function(t){this.counters=c.associate(Object.keys(pe),function(e){return[e,t(e)]})},Ee._log=function(e,t){var r;switch(e){case"WARN":r="orange";break;case"ERROR":r="red";break;default:r="#AAAAAA"}if(t instanceof Error)he.log(e,r,t.message,t);else try{he.log(e,r,t)}catch(e){}},Ee.increment=function(e){var t;null!=(t=null==(t=Ee.counters)?void 0:t.get(e))&&t.increment()},Ee.logLevel=pe.INFO,Ee.log={error:function(e){pe.ERROR<=Ee.logLevel&&(Ee._log("ERROR",e),Ee.increment("ERROR"))},warn:function(e){pe.WARN<=Ee.logLevel&&(Ee._log("WARN",e),Ee.increment("WARN"))},info:function(e){pe.INFO<=Ee.logLevel&&(Ee._log("INFO",e),Ee.increment("INFO"))},debug:function(e){pe.DEBUG<=Ee.logLevel&&(Ee._log("DEBUG",e),Ee.increment("DEBUG"))}},Ee),he=(ge.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},ge),ye="X-HACKLE-SDK-NAME",ve=[0,8,16,32,64,128,256,512],me=de.log;function ge(){}function Ee(){}function we(){}function Te(){}function be(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}var _e={getRequest:function(n,i){return{abort:function(){},responsePromise:new Promise(function(e,t){var r=new XMLHttpRequest;r.open("GET",n),r.onreadystatechange=function(){r.readyState===r.DONE&&(0===r.status?t(new Error("Request error")):e({statusCode:r.status,body:r.responseText}))},r.onerror=function(){t()},r.setRequestHeader("content-type","application/json"),be(r,i),r.send()})}},postRequest:function(e,t,r,n,i){var t=JSON.stringify(t),o=new XMLHttpRequest;o.open("POST",e),o.onreadystatechange=function(){o.readyState===o.DONE&&(200<=o.status&&o.status<400?n({statusCode:o.status}):i&&i({statusCode:o.status}))},o.setRequestHeader("content-type","application/json"),be(o,r),o.send(t)},sendBeacon:function(e,t,r,n,i){var o=!1;if(o="undefined"!=typeof window?window&&window.navigator&&window.navigator.sendBeacon&&!0:o){o=JSON.stringify(t),t=new URLSearchParams;if(t.append("sdkName",r[ye]),t.append("sdkVersion",r["X-HACKLE-SDK-VERSION"]),t.append("sdkKey",r["X-HACKLE-SDK-KEY"]),t.append("data",o),!window.navigator.sendBeacon(e,t))return me.error("sendBeacon failed to queue request."),void i();n()}else me.error("Does not support sendBeacon"),i()}},Oe=de.log,Re=(Ce.isEquals=function(t,r){if(null==r)return!1;var e=Object.keys(t);return e.length===Object.keys(r).length&&e.every(function(e){return t[e]===r[e]})},Ce.sanitize=function(e){var t={};if(a.isNullOrUndefined(e))return t;for(var r=0,n=Object.entries(e);r<n.length;r++){var i=n[r],o=i[0],i=i[1];this.isValidType(o)?(i=this.sanitizeValue(i),a.isNullOrUndefined(i)?Oe.debug("Invalid identifier value. The identifier type value be a string of 512 characters or less. [".concat(o,"]")):t[o]=i):Oe.debug("Invalid identifier type. The identifier type must be a string of 128 characters or less. [".concat(o,"]"))}return t},Ce.isValidType=function(e){return!a.isNullOrUndefined(e)&&"string"==typeof e&&0<e.length&&e.length<=this.MAX_IDENTIFIER_TYPE_LENGTH},Ce.sanitizeValue=function(e){return"string"==typeof e&&0<e.length&&e.length<=this.MAX_IDENTIFIER_VALUE_LENGTH?e:"number"==typeof e?e.toString():null},Ce.MAX_IDENTIFIER_TYPE_LENGTH=128,Ce.MAX_IDENTIFIER_VALUE_LENGTH=512,Ce),Se=de.log,Ie=(Ae.sanitize=function(e){var t={};if(a.isNullOrUndefined(e))return t;for(var r=0,n=Object.entries(e);r<n.length;r++){var i,o=n[r],s=o[0],o=o[1];if(Object.keys(t).length>=this.MAX_PROPERTIES_COUNT){Se.debug("The number of properties cannot exceed 128. Drops excess properties. [".concat(s,", ").concat(o,"]"));break}this.isValidKey(s)?(i=this.sanitizeValue(s,o),a.isNullOrUndefined(i)?Se.debug("Invalid property value. The property value mus be 'string(..1024)', 'number', 'boolean', or 'array' type. [".concat(o,"]")):t[s]=i):Se.debug("Invalid property key. The property key must be a string of 128 characters or less. [".concat(s,"]"))}return t},Ae.isValidProperty=function(e,t){return this.isValidKey(e)&&this.isValidValue(t)},Ae.isValidKey=function(e){return a.isNotNullOrUndefined(e)&&"string"==typeof e&&0<e.length&&e.length<=this.MAX_PROPERTY_KEY_LENGTH},Ae.sanitizeValue=function(e,t){var r=this;return e.startsWith(this.SYSTEM_PROPERTY_KEY_PREFIX)?t:this.isValidValue(t)?Array.isArray(t)?t.filter(function(e){return r.isValidElement(e)}):t:null},Ae.isValidValue=function(e){return!a.isNullOrUndefined(e)&&("string"==typeof e?e.length<=this.MAX_PROPERTY_VALUE_LENGTH:"number"==typeof e?!isNaN(e)&&isFinite(e):"boolean"==typeof e||Array.isArray(e))},Ae.isValidElement=function(e){return!a.isNullOrUndefined(e)&&("string"==typeof e?0<e.length&&e.length<=this.MAX_PROPERTY_VALUE_LENGTH:"number"==typeof e)},Ae.SYSTEM_PROPERTY_KEY_PREFIX="$",Ae.MAX_PROPERTIES_COUNT=128,Ae.MAX_PROPERTY_KEY_LENGTH=128,Ae.MAX_PROPERTY_VALUE_LENGTH=1024,Ae),Ne=de.log;function Ae(){}function Ce(){}function ke(e,t){e=e.find(function(e){return e===t});return e||Ne.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e}function xe(e,t){this.value=e,this.reason=t}function Me(e,t){this.id=e,this.key=t}function Pe(e){var t,r={};return r.id=null!=(t=Re.sanitizeValue(e.id))?t:void 0,r.userId=null!=(t=Re.sanitizeValue(e.userId))?t:void 0,r.deviceId=null!=(t=Re.sanitizeValue(e.deviceId))?t:void 0,"object"==typeof e.properties&&(r.properties=Ie.sanitize(e.properties)),"object"==typeof e.identifiers&&(r.identifiers=Re.sanitize(e.identifiers)),Boolean(r.id||r.userId||r.deviceId||r.identifiers&&0<Object.keys(r.identifiers).length)?r:null}St.of=function(e,t){return new St(e,t)};var Ue=St,De=(Rt.of=function(e,t,r){return new Rt(e,t,r=void 0===r?new Fe:r)},Rt.prototype.get=function(e,t){return this.config.get(e,t)},Rt),Le=(Ot.on=function(e,t){return new Ot(!0,e,t=void 0===t?new Fe:t)},Ot.off=function(e,t){return new Ot(!1,e,t=void 0===t?new Fe:t)},Ot.prototype.get=function(e,t){return this.config.get(e,t)},Ot),oe=(_t.prototype.get=function(e,t){return t},_t),Fe=(bt.prototype.get=function(e,t){return t},bt),s=(n.SDK_NOT_READY="SDK_NOT_READY",n.EXCEPTION="EXCEPTION",n.INVALID_INPUT="INVALID_INPUT",n.EXPERIMENT_NOT_FOUND="EXPERIMENT_NOT_FOUND",n.EXPERIMENT_DRAFT="EXPERIMENT_DRAFT",n.EXPERIMENT_PAUSED="EXPERIMENT_PAUSED",n.EXPERIMENT_COMPLETED="EXPERIMENT_COMPLETED",n.OVERRIDDEN="OVERRIDDEN",n.TRAFFIC_NOT_ALLOCATED="TRAFFIC_NOT_ALLOCATED",n.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT="NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT",n.IDENTIFIER_NOT_FOUND="IDENTIFIER_NOT_FOUND",n.VARIATION_DROPPED="VARIATION_DROPPED",n.TRAFFIC_ALLOCATED="TRAFFIC_ALLOCATED",n.TRAFFIC_ALLOCATED_BY_TARGETING="TRAFFIC_ALLOCATED_BY_TARGETING",n.NOT_IN_EXPERIMENT_TARGET="NOT_IN_EXPERIMENT_TARGET",n.FEATURE_FLAG_NOT_FOUND="FEATURE_FLAG_NOT_FOUND",n.FEATURE_FLAG_INACTIVE="FEATURE_FLAG_INACTIVE",n.INDIVIDUAL_TARGET_MATCH="INDIVIDUAL_TARGET_MATCH",n.TARGET_RULE_MATCH="TARGET_RULE_MATCH",n.DEFAULT_RULE="DEFAULT_RULE",n.REMOTE_CONFIG_PARAMETER_NOT_FOUND="REMOTE_CONFIG_PARAMETER_NOT_FOUND",n.IN_APP_MESSAGE_NOT_FOUND="IN_APP_MESSAGE_NOT_FOUND",n.TYPE_MISMATCH="TYPE_MISMATCH",n),je=(Tt.fromJSON=function(e,t){var r=Tt.experimentStatusOrNull(t.execution.status),n=t.variations.map(function(e){return new Ve(e.id,e.key,"DROPPED"===e.status,e.parameterConfigurationId)}),i=c.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),o=c.mapNotNullOrUndefined(t.execution.segmentOverrides,function(e){return Xe.fromJSON(e,Dt.IDENTIFIER)}),s=c.mapNotNullOrUndefined(t.execution.targetAudiences,function(e){return Be.fromJSON(e,Dt.PROPERTY)}),a=c.mapNotNullOrUndefined(t.execution.targetRules,function(e){return Xe.fromJSON(e,Dt.PROPERTY)}),u=Je.fromJSON(t.execution.defaultRule);return r&&u&&new Tt(t.id,t.key,e,t.identifierType,r,t.version,n,i,o,s,a,u,t.containerId,t.winnerVariationId)},Tt.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void Ne.debug("Unsupported status [".concat(e,"]"))}},Tt.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},Tt.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},Tt.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},Tt),Ve=function(e,t,r,n){this.id=e,this.key=t,this.isDropped=r,this.parameterConfigurationId=n},He=(wt.fromJSON=function(e){return new wt(e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new Ke(t,r,e)}))},wt),Ke=(Et.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},Et),Ge=(gt.ID="$id",gt.USER="$userId",gt.DEVICE="$deviceId",gt.SESSION="$sessionId",gt.HACKLE_DEVICE="$hackleDeviceId",gt),ze=(mt.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},mt.prototype.add=function(e,t){var r=Re.sanitizeValue(t);return Re.isValidType(e)&&r?this.identifiers[e]=t:Ne.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},mt.prototype.build=function(){return this.identifiers},mt),Be=(vt.fromJSON=function(e,t){return new vt(c.mapNotNullOrUndefined(e.conditions,function(e){return qe.fromJSON(e,t)}))},vt.prototype.toJSON=function(){return{conditions:this.conditions.map(function(e){return e.toJSON()})}},vt),qe=(yt.fromJSON=function(e,t){var r=Ye.fromJSON(e.key);if(r&&t.supports(r.type))return(t=$e.fromJSON(e.match))&&new yt(r,t)},yt.prototype.toJSON=function(){return{key:this.key.toJSON(),match:this.match.toJSON()}},yt),Ye=(ht.fromJSON=function(e){var t=ke(Pt,e.type);return t&&new ht(t,e.name)},ht.prototype.toJSON=function(){return{type:this.type,name:this.name}},ht),$e=(dt.fromJSON=function(e){var t=ke(Ct,e.type),r=ke(xt,e.operator),n=ke(kt,e.valueType);return t&&r&&n&&new dt(t,r,n,e.values)},dt.prototype.toJSON=function(){return{operator:this.operator,type:this.type,valueType:this.valueType,values:this.values}},dt),Je=(pt.fromJSON=function(e){var t=ke(Mt,e.type);return t&&new pt(t,e.variationId,e.bucketId)},pt),Xe=(ft.fromJSON=function(e,t){t=Be.fromJSON(e.target,t),e=Je.fromJSON(e.action);return t&&e&&new ft(t,e)},ft),We=(lt.fromJSON=function(e){var t=ke(Ut,e.type);return t&&new lt(e.id,e.key,t,c.mapNotNullOrUndefined(e.targets,function(e){return Be.fromJSON(e,Dt.SEGMENT)}))},lt),Qe=(ct.fromJSON=function(e){return new ct(e.id,e.bucketId,e.groups.map(function(e){return Ze.fromJSON(e)}))},ct.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},ct),Ze=(ut.fromJSON=function(e){return new ut(e.id,e.experiments)},ut),et=(at.fromJSON=function(e){return new at(e.id,c.associate(e.parameters,function(e){return[e.key,e.value]}))},at.prototype.get=function(e,t){e=this.parameters.get(e);return!a.isNullOrUndefined(e)&&(a.isNullOrUndefined(t)||typeof e==typeof t)?e:t},at),tt=(st.fromJSON=function(e){var t=ke(kt,e.type),r=c.mapNotNullOrUndefined(e.targetRules,function(e){return rt.fromJSON(e,Dt.PROPERTY)}),n=nt.fromJSON(e.defaultValue);return t&&new st(e.id,e.key,t,e.identifierType,r,n)},st),rt=(ot.fromJSON=function(e,t){t=Be.fromJSON(e.target,t);return t&&new ot(e.key,e.name,t,e.bucketId,nt.fromJSON(e.value))},ot),nt=(it.fromJSON=function(e){return new it(e.id,e.value)},it);function it(e,t){this.id=e,this.rawValue=t}function ot(e,t,r,n,i){this.key=e,this.name=t,this.target=r,this.bucketId=n,this.value=i}function st(e,t,r,n,i,o){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.targetRules=i,this.defaultValue=o}function at(e,t){this.id=e,this.parameters=t}function ut(e,t){this.id=e,this.experiments=t}function ct(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function lt(e,t,r,n){this.id=e,this.key=t,this.type=r,this.targets=n}function ft(e,t){this.target=e,this.action=t}function pt(e,t,r){this.type=e,this.variationId=t,this.bucketId=r}function dt(e,t,r,n){this.type=e,this.operator=t,this.valueType=r,this.values=n}function ht(e,t){this.type=e,this.name=t}function yt(e,t){this.key=e,this.match=t}function vt(e){this.conditions=e}function mt(){this.identifiers={}}function gt(){}function Et(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function wt(e,t,r){this.seed=e,this.slotSize=t,this.slots=r}function Tt(e,t,r,n,i,o,s,a,u,c,l,f,p,d){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.status=i,this.version=o,this.variations=s,this.userOverrides=a,this.segmentOverrides=u,this.targetAudiences=c,this.targetRules=l,this.defaultRule=f,this.containerId=p,this._winnerVariationId=d}function n(){}function bt(){}function _t(){}function Ot(e,t,r){this.isOn=e,this.reason=t,this.config=r}function Rt(e,t,r){this.variation=e,this.reason=t,this.config=r}function St(e,t){this.value=e,this.reason=t}or.tryParse=function(e){var t,r,n,i,e=or.regExp.exec(e);if(e)return e[0],t=e[1],r=void 0===(r=e[2])?"0":r,n=void 0===(n=e[3])?"0":n,i=e[4],e=e[5],new or(new Nt(parseInt(t,10),parseInt(r,10),parseInt(n,10)),At.parse(i),At.parse(e))},or.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},or.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},or.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},or.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},or.prototype.isLessThan=function(e){return this.compareTo(e)<0},or.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},or.regExp=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*))?(?:\.(0|[1-9]\d*))?(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;var It=or,Nt=(ir.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},ir),At=(nr.parse=function(e){return e?new nr(e.split(".")):nr.EMPTY},nr.prototype.isEmpty=function(){return 0===this.identifiers.length},nr.prototype.isNotEmpty=function(){return!this.isEmpty()},nr.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},nr.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=nr.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},nr.compareIdentifiers=function(e,t){return nr.numericIdentifierRegExp.test(e)&&nr.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},nr.EMPTY=new nr([]),nr.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,nr),Ct=["MATCH","NOT_MATCH"],kt=["STRING","NUMBER","BOOLEAN","VERSION","JSON","NULL","UNKNOWN"],xt=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],Mt=["VARIATION","BUCKET"],Pt=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT","AB_TEST","FEATURE_FLAG","EVENT_PROPERTY"],Ut=["USER_ID","USER_PROPERTY"],Dt=(rr.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},rr.IDENTIFIER=new rr("SEGMENT"),rr.PROPERTY=new rr("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY","AB_TEST","FEATURE_FLAG"),rr.SEGMENT=new rr("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),rr.IAM=new rr("EVENT_PROPERTY","USER_PROPERTY","HACKLE_PROPERTY"),rr),Lt=(tr.fromJSON=function(e){return new tr(e.timeUnit,null===e.startEpochTime?e.startEpochTime:1e3*e.startEpochTime,null===e.endEpochTime?e.endEpochTime:1e3*e.endEpochTime)},tr.prototype.within=function(e){return"IMMEDIATE"===this.timeUnit||(null===this.startDateTime?null===this.endDateTime||e<=this.endDateTime:null===this.endDateTime?this.startDateTime<=e:this.startDateTime<=e&&e<=this.endDateTime)},tr.prototype.toJSON=function(){return{timeUnit:this.timeUnit,startEpochTime:null===this.startDateTime?this.startDateTime:this.startDateTime/1e3,endEpochTime:null===this.endDateTime?this.endDateTime:this.endDateTime/1e3}},tr),Ft=(er.fromJSON=function(e){return new er(e.eventKey,c.mapNotNullOrUndefined(e.targets,function(e){return Be.fromJSON(e,Dt.IAM)}),e.priority)},er.prototype.toJSON=function(){return{eventKey:this.eventKey,targets:this.targets.map(function(e){return e.toJSON()}),priority:this.priority}},er),jt=(Zt.fromJSON=function(e){return new Zt(e.identifierType,e.identifiers)},Zt.prototype.toTarget=function(){return new Be([new qe(new Ye("USER_ID",this.identifierType),new $e("MATCH","IN","STRING",this.identifiers))])},Zt.prototype.toJSON=function(){return{identifierType:this.identifierType,identifiers:this.identifiers}},Zt),Vt=(Qt.fromJSON=function(e){return new Qt(c.mapNotNullOrUndefined(e.targets,function(e){return Be.fromJSON(e,Dt.PROPERTY)}),c.mapNotNullOrUndefined(e.overrides,function(e){return jt.fromJSON(e)}))},Qt.prototype.toJSON=function(){return{targets:this.targets.map(function(e){return e.toJSON()}),overrides:this.overrides.map(function(e){return e.toJSON()})}},Qt),Ht=(Wt.fromJSON=function(e){return new Wt(e.defaultLang,e.messages,e.platformTypes,e.exposure)},Wt.prototype.getDefaultMessage=function(){var t=this;return this.messages.find(function(e){return e.lang===t.defaultLang})||this.messages[0]},Wt.prototype.supportsWeb=function(){return this.platformTypes.includes("WEB")},Wt.prototype.getMessageForLang=function(t){return this.messages.find(function(e){return e.lang===t})},Wt.prototype.toJSON=function(){return{defaultLang:this.defaultLang,messages:this.messages,platformTypes:this.platformTypes,exposure:this.exposure}},Wt),Kt=(Xt.fromJSON=function(e){return new Xt(e.key,e.status,Lt.fromJSON(e),e.eventTriggerRules.map(function(e){return Ft.fromJSON(e)}),Vt.fromJSON(e.targetContext),Ht.fromJSON(e.messageContext))},Xt.prototype.isActive=function(){return"ACTIVE"===this.status},Xt.prototype.supportsWeb=function(){return this.messageContext.supportsWeb()},Xt.prototype.toJSON=function(){return y(y({key:this.key,status:this.status},this.dateRange.toJSON()),{eventTriggerRules:this.eventTriggerRules.map(function(e){return e.toJSON()}),targetContext:this.targetContext.toJSON(),messageContext:this.messageContext.toJSON()})},Xt),Gt=(i.nanosToUnit=function(e,t){switch(t){case"microseconds":return e/(i.C1/i.C0);case"milliseconds":return e/(i.C2/i.C0);case"seconds":return e/(i.C3/i.C0);default:return e}},i.microsToUnit=function(e,t){switch(t){case"nanoseconds":return e*(i.C1/i.C0);case"milliseconds":return e/(i.C2/i.C1);case"seconds":return e/(i.C3/i.C1);default:return e}},i.millisToUnit=function(e,t){switch(t){case"nanoseconds":return e*(i.C2/i.C0);case"microseconds":return e*(i.C2/i.C1);case"seconds":return e/(i.C3/i.C2);default:return e}},i.secondsToUnit=function(e,t){switch(t){case"nanoseconds":return e*(i.C3/i.C0);case"microseconds":return e*(i.C3/i.C1);case"milliseconds":return e*(i.C3/i.C2);default:return e}},i.C3=1e3*(i.C2=1e3*(i.C1=1e3*(i.C0=1))),i.converter={nanoseconds:i.nanosToUnit,microseconds:i.microsToUnit,milliseconds:i.millisToUnit,seconds:i.secondsToUnit},i),zt=(Jt.prototype.tick=function(){return 1e3*Date.now()},Jt.prototype.currentMillis=function(){return Date.now()},Jt.instance=new Jt,Jt),Bt=($t.prototype.tags=function(e){var r=this;return Object.entries(e).forEach(function(e){var t=e[0],e=e[1];r._tags[t]=e}),this},$t.prototype.tag=function(e,t){return this._tags[e]=t,this},$t.prototype.register=function(e){return e.registerTimer({name:this.name,tags:this._tags,type:"TIMER"})},$t),qt=(Yt.start=function(e){return new Yt(e=void 0===e?Yt.defaultClock:e)},Yt.prototype.stop=function(e){var t=this._clock.tick()-this.startTime;e.record(t,"microseconds")},Yt.defaultClock=new zt,Yt);function Yt(e){this._clock=e,this.startTime=this._clock.tick()}function $t(e){this.name=e,this._tags={},this.name=e}function Jt(){}function i(){}function Xt(e,t,r,n,i,o){this.key=e,this.status=t,this.dateRange=r,this.eventTriggerRules=n,this.targetContext=i,this.messageContext=o}function Wt(e,t,r,n){this.defaultLang=e,this.messages=t,this.platformTypes=r,this.exposure=n}function Qt(e,t){this.targets=e,this.overrides=t}function Zt(e,t){this.identifierType=e,this.identifiers=t}function er(e,t,r){void 0===r&&(r=0),this.eventKey=e,this.targets=t,this.priority=r}function tr(e,t,r){this.timeUnit=e,this.startDateTime=t,this.endDateTime=r}function rr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function nr(e){this.identifiers=e}function ir(e,t,r){this.major=e,this.minor=t,this.patch=r}function or(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}ar.prototype.tags=function(e){var r=this;return Object.entries(e).forEach(function(e){var t=e[0],e=e[1];r._tags[t]=e}),this},ar.prototype.tag=function(e,t){return this._tags[e]=t,this},ar.prototype.register=function(e){return e.registerCounter({name:this.name,tags:this._tags,type:"COUNTER"})};var sr=ar;function ar(e){this.name=e,this._tags={}}Object.defineProperty(cr.prototype,"value",{get:function(){return this.valueSupplier()},enumerable:!1,configurable:!0});var ur=cr;function cr(e,t){this.valueSupplier=t,this.field=e}function lr(e,t){return e.name===t.name&&Re.isEquals(e.tags,t.tags)}Er.prototype.count=function(){return this.counterValue},Er.prototype.increment=function(e){this.counterValue+=null!=e?e:1},Er.prototype.measure=function(){return[new ur("count",this.count.bind(this))]};var fr,pr=Er,dr=(gr.prototype.flush=function(){var e=this.currentCounter;return this.currentCounter=new pr(this.id),e},gr.prototype.count=function(){return this.currentCounter.count()},gr.prototype.increment=function(e){this.currentCounter.increment(e)},gr.prototype.measure=function(){return[new ur("count",this.count.bind(this))]},gr),hr=(mr.prototype.values=function(){return Array.from(this.data.values())},mr.prototype.keys=function(){return Array.from(this.data.keys())},mr.prototype.get=function(t){var r=this,e=this.keys().find(function(e){return r.compareFn(e,t)});return e?this.data.get(e):void 0},mr.prototype.has=function(e){return void 0!==this.get(e)},mr.prototype.add=function(e,t){t=(t=t)||e;return this.data.set(e,t),this},mr.prototype.delete=function(e){var t;if(this.has(e))return t=this.get(e),this.data.delete(e),t},mr.prototype.forEach=function(e){this.data.forEach(e)},mr.prototype.entries=function(){return Array.from(this.data.entries())},mr),r=(Object.defineProperty(vr.prototype,"metrics",{get:function(){return Array.from(this._metrics.values())},enumerable:!1,configurable:!0}),vr.prototype.registerCounter=function(e){return this.registerMetricIfNecessary(e,this.createCounter.bind(this))},vr.prototype.registerTimer=function(e){return this.registerMetricIfNecessary(e,this.createTimer.bind(this))},vr.prototype.counter=function(e,t){return void 0===t&&(t={}),new sr(e).tags(t).register(this)},vr.prototype.timer=function(e,t){return void 0===t&&(t={}),new Bt(e).tags(t).register(this)},vr.prototype.registerMetricIfNecessary=function(e,t){return this.getOrCreateMetric(e,t)},vr.prototype.getOrCreateMetric=function(e,t){var r,n=this._metrics.get(e);return n?r=n:(r=t(e),this._metrics.add(e,r)),r},vr.prototype.close=function(){},vr),o=(ce(yr,fr=r),yr.prototype.start=function(){var e=this;void 0===this.currentIntervalId&&(this.currentIntervalId=setInterval(function(){e.publish()},this.pushIntervalMillis),de.log.debug("PushMetricRegistry started. Publish metrics every ".concat(this.pushIntervalMillis,"ms.")))},yr.prototype.stop=function(){void 0!==this.currentIntervalId&&(clearInterval(this.currentIntervalId),this.currentIntervalId=void 0,this.publish(),de.log.debug("PushMetricRegistry stopped."))},yr.prototype.close=function(){this.stop()},yr);function yr(e){var t=fr.call(this)||this;return t.pushIntervalMillis=e,t.currentIntervalId=void 0,t.pushIntervalMillis=e,t}function vr(){this.id=ae.v4(),this.name="MetricRegistry",this._metrics=new hr(lr)}function mr(e){this.compareFn=e,this.data=new Map,this.compareFn=e,this.data=new Map}function gr(e){this.id=e,this.currentCounter=new pr(e)}function Er(e){this.counterValue=0,this.id=e}Ar.prototype.count=function(){return this._count},Ar.prototype.totalTime=function(e){return Gt.nanosToUnit(this._total,e)},Ar.prototype.max=function(e){return Gt.nanosToUnit(this._max,e)},Ar.prototype.mean=function(e){return 0===this.count()?0:this.totalTime(e)/this.count()},Ar.prototype.record=function(e,t){e<0||(t=Gt.converter[t](e,"nanoseconds"),this._count=this.count()+1,this._total+=t,this._max=Math.max(t,this._max))},Ar.prototype.measure=function(){var e=this;return[new ur("count",this.count.bind(this)),new ur("total",function(){return e.totalTime("milliseconds")}),new ur("max",function(){return e.max("milliseconds")}),new ur("mean",function(){return e.mean("milliseconds")})]};var wr,Tr=Ar,br=(Nr.prototype.flush=function(){var e=this.currentTimer;return this.currentTimer=new Tr(this.id),e},Nr.prototype.count=function(){return this.currentTimer.count()},Nr.prototype.totalTime=function(e){return this.currentTimer.totalTime(e)},Nr.prototype.max=function(e){return this.currentTimer.max(e)},Nr.prototype.record=function(e,t){this.currentTimer.record(e,t)},Nr.prototype.mean=function(e){return 0===this.count()?0:this.totalTime(e)/this.count()},Nr.prototype.measure=function(){var e=this;return[new ur("count",this.count.bind(this)),new ur("total",function(){return e.totalTime("milliseconds")}),new ur("max",function(){return e.max("milliseconds")}),new ur("mean",function(){return e.mean("milliseconds")})]},Nr),o=(ce(Ir,wr=o),Ir.prototype.createCounter=function(e){return new dr(e)},Ir.prototype.createTimer=function(e){return new br(e)},Ir.prototype.publish=function(){var e=this.metrics.reduce(function(e,t){return void 0!==t.flush&&"function"==typeof t.flush?e.concat(t.flush()):e},[]);this.flushMetrics(e)},Ir.prototype.close=function(){wr.prototype.close.call(this)},Ir),_r=(Sr.prototype.count=function(){return 0},Sr.prototype.increment=function(e){},Sr.prototype.measure=function(){return[new ur("count",this.count.bind(this))]},Sr),Or=(Object.defineProperty(Rr.prototype,"counters",{get:function(){return Array.from(this._counters.values())},enumerable:!1,configurable:!0}),Rr.prototype.add=function(e){this._counters.add(e,e.registerCounter(this.id))},Rr.prototype.count=function(){return(this.counters[0]||this.noopCounter).count()},Rr.prototype.increment=function(t){this.counters.forEach(function(e){e.increment(t)})},Rr.prototype.measure=function(){return[new ur("count",this.count.bind(this))]},Rr);function Rr(e){this._counters=new hr(function(e,t){return e.id===t.id}),this.id=e,this.noopCounter=new _r(e)}function Sr(e){this.id=e}function Ir(e){return wr.call(this,e)||this}function Nr(e){this.id=e,this.currentTimer=new Tr(e)}function Ar(e){this._count=0,this._total=0,this._max=0,this.id=e}cn.prototype.measure=function(){var e=this;return[new ur("count",this.count.bind(this)),new ur("total",function(){return e.totalTime("milliseconds")}),new ur("max",function(){return e.max("milliseconds")}),new ur("mean",function(){return e.mean("milliseconds")})]},cn.prototype.count=function(){return 0},cn.prototype.totalTime=function(e){return 0},cn.prototype.max=function(e){return 0},cn.prototype.mean=function(e){return 0},cn.prototype.record=function(e,t){};var Cr,kr,xr,Mr,Pr,Ur=cn,Dr=(Object.defineProperty(un.prototype,"firstTimer",{get:function(){return this.timers[0]||this.noopTimer},enumerable:!1,configurable:!0}),un.prototype.totalTime=function(e){return this.firstTimer.totalTime(e)},un.prototype.max=function(e){return this.firstTimer.max(e)},un.prototype.mean=function(e){return this.firstTimer.mean(e)},un.prototype.record=function(t,r){this.timers.forEach(function(e){e.record(t,r)})},Object.defineProperty(un.prototype,"timers",{get:function(){return Array.from(this._timers.values())},enumerable:!1,configurable:!0}),un.prototype.add=function(e){this._timers.add(e,e.registerTimer(this.id))},un.prototype.count=function(){return this.firstTimer.count()},un.prototype.measure=function(){var e=this;return[new ur("count",this.count.bind(this)),new ur("total",function(){return e.totalTime("milliseconds")}),new ur("max",function(){return e.max("milliseconds")}),new ur("mean",function(){return e.mean("milliseconds")})]},un),r=(ce(an,Pr=r),an.prototype.createCounter=function(e){e=new Or(e);return this.addRegistry(e),e},an.prototype.createTimer=function(e){e=new Dr(e);return this.addRegistry(e),e},an.prototype.addRegistry=function(t){this.registries.forEach(function(e){return t.add(e)})},an.prototype.add=function(t){t instanceof an||this.registries.has(t)||(this.registries.add(t),this.metrics.forEach(function(e){void 0!==e.add&&"function"==typeof e.add&&e.add(t)}))},an.prototype.close=function(){this.registries.forEach(function(e){e.close()})},an),Lr=(sn.counter=function(e,t){return sn.globalRegistry.counter(e,t)},sn.timer=function(e,t){return sn.globalRegistry.timer(e,t)},sn.addRegistry=function(e){sn.globalRegistry.add(e),de.log.debug("MetricRegistry added ".concat(e.name))},sn.globalRegistry=new r,sn),Fr=(ce(on,Mr=o),on.prototype.flushMetrics=function(e){var t=this;c.chunked(e.filter(this.isDispatchTarget.bind(this)),100).forEach(function(e){t.dispatch(e)})},on.prototype.isDispatchTarget=function(e){return!("COUNTER"!==e.id.type&&"TIMER"!==e.id.type)&&0<e.count()},on.prototype.dispatch=function(e){this.useBeacon&&this.shouldUseBeacon?this.httpClient.sendBeacon(this.monitoringEndPoint,this.batch(e),this.httpHeader,function(){de.log.debug("Beacon called.")}):this.httpClient.postRequest(this.monitoringEndPoint,this.batch(e),this.httpHeader,function(){},function(){de.log.debug("Failed to flushing metrics.")})},on.prototype.batch=function(e){return{metrics:e.map(function(e){return{name:e.id.name,type:e.id.type,tags:e.id.tags,measurements:a.fromMap(c.associate(e.measure(),function(e){return[e.field,e.value]}))}})}},on.prototype.createCounter=function(e){return new dr(e)},on.prototype.createTimer=function(e){return new br(e)},on.prototype.close=function(){this.shouldUseBeacon=!0,Mr.prototype.close.call(this)},on),jr=(nn.experiment=function(e,t,r){t=Lr.timer("experiment.decision",{key:String(t),variation:r.variation,reason:String(r.reason)});e.stop(t)},nn.featureFlag=function(e,t,r){t=Lr.timer("feature.flag.decision",{key:String(t),on:String(r.isOn),reason:String(r.reason)});e.stop(t)},nn.remoteConfig=function(e,t,r){t=Lr.timer("remote.config.decision",{key:String(t),reason:String(r.reason)});e.stop(t)},nn),Vr=(rn.record=function(e,t,r){e=Lr.timer("api.call",{operation:e,success:String(r)});t.stop(e)},rn),Hr=(tn.decide=function(e,t,r,n){if(a.isNullOrUndefined(r))return this.decision(e,t,"NULL",r,n);switch(typeof r){case"string":return this.decision(e,t,"STRING",r,n);case"number":return this.decision(e,t,"NUMBER",r,n);case"boolean":return this.decision(e,t,"BOOLEAN",r,n);default:return this.decision(e,t,"UNKNOWN",r,n)}},tn.decision=function(e,t,r,n,i){return a.isNullOrUndefined(t)?Ue.of(n,s.INVALID_INPUT):e.remoteConfig(t,i,r,n)},tn),Kr=de.log,Gr=(en.prototype.get=function(e,t){var r,n=qt.start();try{r=this.decide(e,t)}catch(n){Kr.error("Unexpected exception while deciding remote config parameter[".concat(e,"]. Returning default value. : ").concat(n)),r=Ue.of(t,s.EXCEPTION)}return jr.remoteConfig(n,e,r),r.value},en.prototype.decide=function(e,t){var r=this.userManager.resolveCurrentOrNull(this.user);if(!r)return Kr.warn("invalid user"),Ue.of(t,s.INVALID_INPUT);r=this.hackleUserResolver.resolve(r);return Hr.decide(this.core,e,t,r)},en),u=de.log,zr=(Zr.prototype.getSessionId=function(){return this.sessionManager.sessionId},Zr.prototype.getUser=function(){return this.userManager.currentUser},Zr.prototype.setUser=function(e){try{var t=Pe(e);if(!t)return void u.warn("invalid user");this.userManager.setUser(t)}catch(e){u.error("Unexpected exception while set user: ".concat(e))}},Zr.prototype.setUserId=function(e){try{void 0===e&&this.userManager.setUserId(void 0);var t=Re.sanitizeValue(e);if(!t)return void u.warn("Invalid userId. [userId=".concat(e,"]"));this.userManager.setUserId(t)}catch(e){u.error("Unexpected exception while set userId: ".concat(e))}},Zr.prototype.setDeviceId=function(e){try{if(!Re.sanitizeValue(e))return void u.warn("Invalid deviceId. [deviceId=".concat(e,"]"));this.userManager.setDeviceId(e)}catch(e){u.error("Unexpected exception while set deviceId: ".concat(e))}},Zr.prototype.setUserProperty=function(e,t){try{if(!Ie.isValidKey(e))return void u.warn("Invalid property key. [key=".concat(e,"]"));if(!Ie.isValidValue(t))return void u.warn("Invalid property value. [key=".concat(t,"]"));this.userManager.setUserProperty(e,t)}catch(e){u.error("Unexpected exception while set userProperty: ".concat(e))}},Zr.prototype.setUserProperties=function(e){try{var t=Ie.sanitize(e);this.userManager.setUserProperties(t)}catch(e){u.error("Unexpected exception while set userProperties: ".concat(e))}},Zr.prototype.resetUser=function(){try{this.userManager.resetUser()}catch(e){u.error("Unexpected exception while reset user: ".concat(e))}},Zr.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},Zr.prototype.variationDetail=function(n,i,e){var o=e||"A",e=qt.start(),t=function(e){try{var t=e.userManager.resolveCurrentOrNull(i);if(!t)return u.warn("invalid user"),De.of(o,s.INVALID_INPUT);var r=e.hackleUserResolver.resolve(t);return e.core.experiment(n,r,o)}catch(e){return u.error("Unexpected exception while deciding variation for experiment[".concat(n,"]. Returning default variation[").concat(o,"] : ").concat(e)),De.of(o,s.EXCEPTION)}}(this);return jr.experiment(e,n,t),t},Zr.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},Zr.prototype.featureFlagDetail=function(n,i){var e=qt.start(),t=function(e){try{var t=e.userManager.resolveCurrentOrNull(i);if(!t)return u.warn("invalid user"),Le.off(s.INVALID_INPUT);var r=e.hackleUserResolver.resolve(t);return e.core.featureFlag(n,r)}catch(e){return u.error("Unexpected exception while deciding feature flag[".concat(n,"]. Returning default value[false] : ").concat(e)),Le.off(s.EXCEPTION)}}(this);return jr.featureFlag(e,n,t),t},Zr.prototype.track=function(e,t){try{u.debug("track event : ".concat(JSON.stringify(e)));var r=this._convertEvent(e),n=this.userManager.resolveCurrentOrNull(t);if(!n)return void u.warn("invalid user");var i=this.hackleUserResolver.resolve(n);this.core.track(r,i)}catch(e){u.error("Unexpected exception while tracking event: $t")}},Zr.prototype.trackPageView=function(e){u.debug("tracking page view");var t=this.hackleUserResolver.resolve(this.userManager.currentUser);this.core.track({key:"$page_view"},t)},Zr.prototype.remoteConfig=function(e){return new Gr(this.core,this.userManager,this.hackleUserResolver,e)},Zr.prototype.onReady=function(e,t){this.core.onReady(e,t=void 0===t?3e3:t)},Zr.prototype.onInitialized=function(e){return this.core.onInitialized({timeout:null==e?void 0:e.timeout})},Zr.prototype.close=function(){u.debug("Hackle Client is closing"),this.core.close()},Zr.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},Zr.prototype.showUserExplorer=function(){var e;null!=(e=this.devTools)&&e.userExplorer?(u.debug("UserExplorer opened."),Lr.counter("user.explorer.show",{}).increment(),this.devTools.manager.userExplorer(this.devTools.userExplorer)):u.error("UserExplorer is not provided")},Zr.prototype.hideUserExplorer=function(){this.devTools?this.devTools.manager.close():u.warn("There is no active HackleDevtools.")},Zr),Br=(Qr.exposure=function(e,t,r,n){return new qr(n,e,t.experiment,t.variationId,t.variationKey,t.reason,r)},Qr.track=function(e,t,r,n){return new Yr(n,r,e,t)},Qr.remoteConfig=function(e,t,r,n){return new $r(n,e,t.parameter,t.valueId,t.reason,r)},Qr.isExposure=function(e){return void 0!==e.experiment},Qr.isTrack=function(e){return void 0!==e.eventType},Qr.isRemoteConfig=function(e){return void 0!==e.parameter},Qr.isExposureDto=function(e){return"experimentId"in e&&void 0!==e.experimentId},Qr.isTrackDto=function(e){return"eventTypeId"in e&&void 0!==e.eventTypeId},Qr.isRemoteConfigDto=function(e){return"parameterId"in e&&void 0!==e.parameterId},Qr.prototype.toDto=function(){return{insertId:this.insertId,timestamp:this.timestamp,userId:this.user.identifiers[Ge.ID],identifiers:this.user.identifiers,userProperties:Ie.sanitize(this.user.properties),hackleProperties:Ie.sanitize(this.user.hackleProperties)}},Qr),qr=(ce(Wr,xr=Br),Wr.prototype.copyWithUser=function(e){return new Wr(this.timestamp,e,this.experiment,this.variationId,this.variationKey,this.decisionReason,this.properties,this.insertId)},Wr.prototype.toDto=function(){return y(y({},xr.prototype.toDto.call(this)),{experimentId:this.experiment.id,experimentKey:this.experiment.key,experimentType:this.experiment.type,experimentVersion:this.experiment.version,variationId:this.variationId,variationKey:this.variationKey,decisionReason:this.decisionReason.toString(),properties:this.properties})},Wr),Yr=(ce(Xr,kr=Br),Xr.prototype.copyWithUser=function(e){return new Xr(this.timestamp,e,this.eventType,this.event,this.insertId)},Xr.prototype.toDto=function(){return y(y({},kr.prototype.toDto.call(this)),{eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:Ie.sanitize(this.event.properties)})},Xr),$r=(ce(Jr,Cr=Br),Jr.prototype.copyWithUser=function(e){return new Jr(this.timestamp,e,this.parameter,this.valueId,this.decisionReason,this.properties,this.insertId)},Jr.prototype.toDto=function(){return y(y({},Cr.prototype.toDto.call(this)),{parameterId:this.parameter.id,parameterKey:this.parameter.key,parameterType:this.parameter.type,valueId:this.valueId,decisionReason:this.decisionReason.toString(),properties:Ie.sanitize(this.properties)})},Jr);function Jr(e,t,r,n,i,o,s){e=Cr.call(this,e,t,s)||this;return e.parameter=r,e.valueId=n,e.decisionReason=i,e.properties=o,e}function Xr(e,t,r,n,i){e=kr.call(this,e,t,i)||this;return e.eventType=r,e.event=n,e}function Wr(e,t,r,n,i,o,s,a){e=xr.call(this,e,t,a)||this;return e.experiment=r,e.variationId=n,e.variationKey=i,e.decisionReason=o,e.properties=s,e}function Qr(e,t,r){void 0===r&&(r=ae.v4()),this.timestamp=e,this.user=t,this.insertId=r}function Zr(e,t,r,n,i){this.core=e,this.hackleUserResolver=t,this.sessionManager=r,this.userManager=n,this.devTools=i}function en(e,t,r,n){this.core=e,this.userManager=t,this.hackleUserResolver=r,this.user=n}function tn(){}function rn(){}function nn(){}function on(e,t,r,n,i){t=Mr.call(this,t)||this;return t.monitoringBaseUrl=e,t.httpClient=r,t.httpHeader=n,t.useBeacon=i,t.monitoringEndPoint="".concat(t.monitoringBaseUrl,"/metrics"),t.shouldUseBeacon=!1,t.start(),t.monitoringBaseUrl=e,t}function sn(){}function an(){var e=null!==Pr&&Pr.apply(this,arguments)||this;return e.registries=new hr(function(e,t){return e.id===t.id}),e}function un(e){this._timers=new hr(function(e,t){return e.id===t.id}),this.id=e,this.noopTimer=new Ur(e)}function cn(e){this.id=e}function ln(e){var t=new Array,r=new Array,n=new Array;return e.forEach(function(e){e instanceof Br?Br.isExposure(e)?t.push(e.toDto()):Br.isTrack(e)?r.push(e.toDto()):Br.isRemoteConfig(e)&&n.push(e.toDto()):Br.isExposureDto(e)?t.push(e):Br.isTrackDto(e)?r.push(e):Br.isRemoteConfigDto(e)&&n.push(e)}),{exposureEvents:t,trackEvents:r,remoteConfigEvents:n}}An.prototype.dispatch=function(e,t,r){var n={},e=(n["X-HACKLE-SDK-KEY"]=this.sdkKey,n[ye]=this.headers[ye],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),ln(e)),i=qt.start();this.httpRequest.postRequest(this.dispatchUrl,e,n,function(e){t(e),Vr.record("post.events",i,!0)},function(e){null!=r&&r(e),Vr.record("post.events",i,!1)})},An.prototype.dispatchXhrOrBeacon=function(e,t,r){var n,i,o;this.useBeacon?((n={})["X-HACKLE-SDK-KEY"]=this.sdkKey,n[ye]=this.headers[ye],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),i=ln(e),o=qt.start(),this.httpRequest.sendBeacon(this.beaconDispatchUrl,i,n,function(e){t(e),Vr.record("post.events",o,!0)},function(e){null!=r&&r(e),Vr.record("post.events",o,!1)})):this.dispatch(e,t,r)};var fn=An,pn=(Nn.prototype.getInAppMessages=function(){return this.inAppMessages},Nn.prototype.getExperiments=function(){return Array.from(this.experiments.values())},Nn.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},Nn.prototype.getFeatureFlags=function(){return Array.from(this.featureFlags.values())},Nn.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},Nn.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},Nn.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},Nn.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},Nn.prototype.getContainerOrNull=function(e){return this.containers.get(e)},Nn.prototype.getParameterConfigurationOrNull=function(e){return this.parameterConfigurations.get(e)},Nn.prototype.getRemoteConfigParameterOrNull=function(e){return this.remoteConfigParameters.get(e)},Nn.prototype.getInAppMessageOrNull=function(t){return this.inAppMessages.find(function(e){return e.key===t})},Nn.from=function(e){var t=c.associate(e.buckets,function(e){return[e.id,He.fromJSON(e)]});return new Nn(c.associateBy(c.mapNotNullOrUndefined(e.experiments,function(e){return je.fromJSON("AB_TEST",e)}),function(e){return e.key}),c.associateBy(c.mapNotNullOrUndefined(e.featureFlags,function(e){return je.fromJSON("FEATURE_FLAG",e)}),function(e){return e.key}),t,c.associate(e.events,function(e){return[e.key,new Me(e.id,e.key)]}),c.associateBy(c.mapNotNullOrUndefined(e.segments,function(e){return We.fromJSON(e)}),function(e){return e.key}),c.associate(e.containers,function(e){return[e.id,Qe.fromJSON(e)]}),c.associate(e.parameterConfigurations,function(e){return[e.id,et.fromJSON(e)]}),c.associateBy(c.mapNotNullOrUndefined(e.remoteConfigParameters,function(e){return tt.fromJSON(e)}),function(e){return e.key}),c.mapNotNullOrUndefined(e.inAppMessages,function(e){return Kt.fromJSON(e)}))},Nn),dn=(In.prototype.onReady=function(){return this.readyPromise},In.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},In.prototype.stop=function(){return this.isStarted=!1,this.currentTimeout&&(clearTimeout(this.currentTimeout),this.currentTimeout=null),this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null),Promise.resolve()},In.prototype.get=function(){return this.workspace},In.prototype.scheduleNextUpdate=function(){var e=this,t=this.errorRetryController.getDelay(),t=Math.max(t,this.updateInterval);this.currentTimeout=setTimeout(function(){e.currentRequest?e.syncOnCurrentRequestComplete=!0:e.fetch()},t)},In.prototype.fetch=function(){function t(e){e=e.isSuccess,Vr.record("get.workspace",i,e)}function e(){n.onRequestComplete()}var r,n=this,i=((r={})["X-HACKLE-SDK-KEY"]=this.sdkKey,r["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),r[ye]=this.headers[ye],r["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],qt.start());this.currentRequest=this.httpRequest.getRequest(this.fetchUrl,r);null!=(r=this.currentRequest)&&r.responsePromise.then(function(e){n.onRequestResolved(e,t)},function(e){n.onRequestRejected(e,t)}).then(e,e),0<this.updateInterval&&this.scheduleNextUpdate()},In.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},In.prototype.onRequestResolved=function(e,t){if(this.isStarted){if(void 0!==e.statusCode&&200<=e.statusCode&&e.statusCode<400)this.errorRetryController.reset(),t({isSuccess:!0});else{if(t({isSuccess:!1}),401===e.statusCode||403===e.statusCode)return void this.readyPromiseRejecter(new Error("Invalid key provided."));this.errorRetryController.countError()}e.body&&(t=JSON.parse(e.body),this.workspace=pn.from(t),this.readyPromiseResolver())}},In.prototype.onRequestRejected=function(e,t){this.isStarted&&(t({isSuccess:!1}),this.errorRetryController.countError(),console.error("Error fetching data",e))},In.prototype.close=function(){this.stop()},In),hn=(Sn.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*ve[Math.min(ve.length-1,this.errorCount)]+Math.round(1e3*Math.random())},Sn.prototype.countError=function(){this.errorCount<ve.length-1&&this.errorCount++},Sn.prototype.reset=function(){this.errorCount=0},Sn),r="model",o="name",f="type",p="vendor",d="version",h="mobile",v="tablet",yn=(m.parse=function(e){return{browser:m.getBrowser(e),cpu:m.getCPU(e),device:m.getDevice(e),engine:m.getEngine(e),os:m.getOS(e)}},m.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return m.mapper.rgx.call(t,e,m.regexes.browser),t.major=m.util.major(t.version),t},m.getCPU=function(e){var t={architecture:void 0};return m.mapper.rgx.call(t,e,m.regexes.cpu),t},m.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return m.mapper.rgx.call(t,e,m.regexes.device),t},m.getEngine=function(e){var t={name:void 0,version:void 0};return m.mapper.rgx.call(t,e,m.regexes.os),t},m.getOS=function(e){var t={name:void 0,version:void 0};return m.mapper.rgx.call(t,e,m.regexes.os),t},m.util={extend:function(e,t){var r,n={};for(r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},m.regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[o,d],[/(opios)[\/\s]+([\w\.]+)/i],[[o,"Opera Mini"],d],[/\s(opr)\/([\w\.]+)/i],[[o,"Opera"],d],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[o,d],[/(konqueror)\/([\w\.]+)/i],[[o,"Konqueror"],d],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[o,"IE"],d],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[o,"Edge"],d],[/(yabrowser)\/([\w\.]+)/i],[[o,"Yandex"],d],[/(Avast)\/([\w\.]+)/i],[[o,"Avast Secure Browser"],d],[/(AVG)\/([\w\.]+)/i],[[o,"AVG Secure Browser"],d],[/(puffin)\/([\w\.]+)/i],[[o,"Puffin"],d],[/(focus)\/([\w\.]+)/i],[[o,"Firefox Focus"],d],[/(opt)\/([\w\.]+)/i],[[o,"Opera Touch"],d],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[o,"UCBrowser"],d],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],d],[/(windowswechat qbcore)\/([\w\.]+)/i],[[o,"WeChat(Win) Desktop"],d],[/(micromessenger)\/([\w\.]+)/i],[[o,"WeChat"],d],[/(brave)\/([\w\.]+)/i],[[o,"Brave"],d],[/(whale)\/([\w\.]+)/i],[[o,"Whale"],d],[/(qqbrowserlite)\/([\w\.]+)/i],[o,d],[/(QQ)\/([\d\.]+)/i],[o,d],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[o,d],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[o,d],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[o,d],[/(MetaSr)[\/\s]?([\w\.]+)/i],[o],[/(LBBROWSER)/i],[o],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[d,[o,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[d,[o,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[o,d],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[d,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,/(.+)/,"$1 WebView"],d],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[o,/(.+(?:g|us))(.+)/,"$1 $2"],d],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[o,"Chrome Mobile"],d],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[d,[o,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[o,"Sailfish Browser"],d],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,d],[/(dolfin)\/([\w\.]+)/i],[[o,"Dolphin"],d],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[o,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[o,"Opera Coast"],d],[/fxios\/([\w\.-]+)/i],[d,[o,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[d,[o,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[d,o],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[o,"GSA"],d],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[d,(m.mapper={rgx:function(e,t){for(var r,n,i,o,s,a=0;a<t.length&&!o;){for(var u=t[a],c=t[a+1],l=r=0;l<u.length&&!o;)if(o=u[l++].exec(e))for(n=0;n<c.length;n++)s=o[++r],"object"==typeof(i=c[n])&&0<i.length?2==i.length?"function"==typeof i[1]?this[i[0]]=i[1].call(this,s):this[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?this[i[0]]=s?s.replace(i[1],i[2]):void 0:this[i[0]]=s?i[1].call(this,s,i[2]):void 0:4==i.length&&(this[i[0]]=s?i[3].call(this,s.replace(i[1],i[2])):void 0):this[i]=s||void 0;a+=2}},str:function(e,t){for(var r in t)if("object"==typeof t[r]&&0<t[r].length){for(var n=0;n<t[r].length;n++)if(m.util.has(t[r][n],e))return"?"===r?void 0:r}else if(m.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(m.maps={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}}).browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[o,d],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],d],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[o,d]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",m.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",m.util.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",m.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[r,p,[f,v]],[/applecoremedia\/[\w\.]+ \((ipad)/],[r,[p,"Apple"],[f,v]],[/(apple\s{0,1}tv)/i],[[r,"Apple TV"],[p,"Apple"],[f,"smarttv"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[p,r,[f,v]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[r,[p,"Amazon"],[f,v]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[r,m.mapper.str,m.maps.device.amazon.model],[p,"Amazon"],[f,h]],[/android.+aft([bms])\sbuild/i],[r,[p,"Amazon"],[f,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[r,p,[f,h]],[/\((ip[honed|\s\w*]+);/i],[r,[p,"Apple"],[f,h]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[p,r,[f,h]],[/\(bb10;\s(\w+)/i],[r,[p,"BlackBerry"],[f,h]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[r,[p,"Asus"],[f,v]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[p,"Sony"],[r,"Xperia Tablet"],[f,v]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[p,"Sony"],[f,h]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[p,r,[f,"console"]],[/android.+;\s(shield)\sbuild/i],[r,[p,"Nvidia"],[f,"console"]],[/(playstation\s[34portablevi]+)/i],[r,[p,"Sony"],[f,"console"]],[/(sprint\s(\w+))/i],[[p,m.mapper.str,m.maps.device.sprint.vendor],[r,m.mapper.str,m.maps.device.sprint.model],[f,h]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[p,[r,/_/g," "],[f,h]],[/(nexus\s9)/i],[r,[p,"HTC"],[f,v]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[r,[p,"Huawei"],[f,h]],[/android.+(bah2?-a?[lw]\d{2})/i],[r,[p,"Huawei"],[f,v]],[/(microsoft);\s(lumia[\s\w]+)/i],[p,r,[f,h]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[r,[p,"Microsoft"],[f,"console"]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[p,"Microsoft"],[f,h]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[r,[p,"Motorola"],[f,h]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[r,[p,"Motorola"],[f,v]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[p,m.util.trim],[r,m.util.trim],[f,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[p,"Samsung"],[f,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[r,[p,"Sharp"],[f,"smarttv"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[p,"Samsung"],r,[f,v]],[/smart-tv.+(samsung)/i],[p,[f,"smarttv"],r],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[p,"Samsung"],r,[f,h]],[/sie-(\w*)/i],[r,[p,"Siemens"],[f,h]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[p,"Nokia"],r,[f,h]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[r,[p,"Acer"],[f,v]],[/android.+([vl]k\-?\d{3})\s+build/i],[r,[p,"LG"],[f,v]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[p,"LG"],r,[f,v]],[/(lg) netcast\.tv/i],[p,r,[f,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[r,[p,"LG"],[f,h]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[p,r,[f,v]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[r,[p,"Lenovo"],[f,v]],[/(lenovo)[_\s-]?([\w-]+)/i],[p,r,[f,h]],[/linux;.+((jolla));/i],[p,r,[f,h]],[/((pebble))app\/[\d\.]+\s/i],[p,r,[f,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[p,r,[f,h]],[/crkey/i],[[r,"Chromecast"],[p,"Google"],[f,"smarttv"]],[/android.+;\s(glass)\s\d/i],[r,[p,"Google"],[f,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[r,[p,"Google"],[f,v]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[r,[p,"Google"],[f,h]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[p,"Xiaomi"],[f,h]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[p,"Xiaomi"],[f,v]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[r,[p,"Meizu"],[f,h]],[/(mz)-([\w-]{2,})/i],[[p,"Meizu"],r,[f,h]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[r,[p,"OnePlus"],[f,h]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[r,[p,"RCA"],[f,v]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[r,[p,"Dell"],[f,v]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[r,[p,"Verizon"],[f,v]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[p,"Barnes & Noble"],r,[f,v]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[r,[p,"NuVision"],[f,v]],[/android.+;\s(k88)\sbuild/i],[r,[p,"ZTE"],[f,v]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[r,[p,"Swiss"],[f,h]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[r,[p,"Swiss"],[f,v]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[r,[p,"Zeki"],[f,v]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[p,"Dragon Touch"],r,[f,v]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[r,[p,"Insignia"],[f,v]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[r,[p,"NextBook"],[f,v]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[p,"Voice"],r,[f,h]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[p,"LvTel"],r,[f,h]],[/android.+;\s(PH-1)\s/i],[r,[p,"Essential"],[f,h]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[r,[p,"Envizen"],[f,v]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[p,r,[f,v]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[r,[p,"MachSpeed"],[f,v]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[p,r,[f,v]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[r,[p,"Rotor"],[f,v]],[/android.+(KS(.+))\s+build/i],[r,[p,"Amazon"],[f,v]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[p,r,[f,v]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[f,m.util.lowerize],p,r],[/[\s\/\(](smart-?tv)[;\)]/i],[[f,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[r,[p,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[d,[o,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[o,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[o,d],[/rv\:([\w\.]{1,9}).+(gecko)/i],[d,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,d],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[[o,m.mapper.str,m.maps.os.windows],[d,m.mapper.str,m.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[d,m.mapper.str,m.maps.os.windows.version]],[/\((bb)(10);/i],[[o,"BlackBerry"],d],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[o,d],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[o,"Symbian"],d],[/\((series40);/i],[o],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"],d],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[[o,"Linux"],d],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],d],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],d],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[o,"Linux"],d],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPhone"],[d,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPad"],[d,/_/g,"."]],[/(haiku)\s(\w+)/i],[o,d],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[d,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[o,"Mac"],[d,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[o,d]]},m),vn=(Rn.generate=function(e){t=void 0===e?{navigator:{userAgent:"",vendor:"",languages:[]},document:{location:t={hostname:"",pathname:"",host:"",search:"",protocol:""},title:""},location:t,screen:{width:"",height:""}}:e;var t,r=yn.parse(t.navigator.userAgent),n=r.browser,i=r.os,r=r.device,o=r.type?"mobile"===r.type?"Mobile":"ETC":"Web",s=(t.location.protocol||"").replace(":",""),a=t.screen,u="";try{u=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}return{platform:o||"",browserName:n.name||"",browserMajorVersion:n.major||"",browserVersion:n.version||"",osName:i.name||"",osVersion:i.version||"",deviceModel:r.model||"",deviceType:r.type||"",deviceVendor:r.vendor||"",language:(null==(o=t.navigator.languages)?void 0:o[0])||"",userAgent:t.navigator.userAgent||"",pagePath:t.location.pathname||"",pageTitle:t.document.title||"",host:t.location.host||"",protocol:s,referrer:t.document.referrer||"",queryParameter:t.location.search||"",screenWidth:a.width||"",screenHeight:a.height||"",timeZone:u||""}},Rn),mn=(On.extractDomain=function(e){var t=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,r=e.split("."),r=r[r.length-1],r=((4<r.length||"com"===r||"org"===r)&&(t=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i),e.match(t));return r?r[0]:""},On.prototype.getItem=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},On.prototype.getAllItem=function(e){var t=document.cookie.split("; ").map(function(e){return e.split("=")}),r=null==e?void 0:e.keyPrefix;return r?t.filter(function(e){var t=e[0];return e[1],t.startsWith(r)}):t},On.prototype.setItem=function(e,t,r){var r=y(y({},this.options),r),n=r.isSecure,i="",o="",s="",a=(r.isCrossSubdomain&&(i=(a=On.extractDomain(document.location.hostname))?"; domain=."+a:""),r.days&&((a=new Date).setTime(a.getTime()+24*r.days*60*60*1e3),o="; expires="+a.toUTCString()),r.isCrossSite&&(n=!0,s="; SameSite=None"),n&&(s+="; secure"),e+"="+encodeURIComponent(t)+o+"; path=/"+i+s);return document.cookie=a},On.prototype.removeItem=function(e,t){this.setItem(e,"",y(y({},t),{days:-1}))},new On({days:3650,isCrossSubdomain:!0})),gn=(_n.prototype.getQueryParam=function(e){return this.getQueryParams(function(){return!0})[e]||""},_n.prototype.getQueryParams=function(e){for(var t={},r=0,n=this.search.substring(1).split("&");r<n.length;r++){var i=n[r].split("="),o=i[0],i=i[1];e(o,i)&&(t[o]=decodeURIComponent(i))}return t},_n),En=(bn.prototype.resolve=function(e){var t=Cn(),t=(new ze).addIdentifiers(e.identifiers||{}).add(Ge.ID,e.id||t).add(Ge.DEVICE,e.deviceId||t).add(Ge.HACKLE_DEVICE,t);return a.isNotNullOrUndefined(e.userId)&&t.add(Ge.USER,e.userId),{identifiers:t.build(),properties:this._userProperties(e.properties),hackleProperties:this._getHackleProperties()}},bn.prototype.resolveCurrentUser=function(){return this.resolve(this.userManager.currentUser)},bn.prototype._userProperties=function(e){void 0===e&&(e={});var t,r={};return"undefined"!=typeof window&&(t=new gn(window.location.search),r=y(y({},t.getQueryParams(function(e){return e.startsWith("utm_")})),t.getQueryParams(function(e){return["gclid","fbclid"].includes(e)}))),y(y({},r),e)},bn.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?vn.generate(window):e)||{}},bn),wn=(Tn.initialize=function(){mn.getItem("_hackle_hid")||Mn()},Tn.reInitialize=function(){Mn()},Tn);function Tn(){}function bn(e){this.userManager=e,wn.initialize()}function _n(e){this.search=e}function On(e){this.options=e=void 0===e?{days:0,isCrossSubdomain:!1,isSecure:!1,isCrossSite:!1}:e}function Rn(){}function m(){}function Sn(){this.errorCount=0}function In(e,t,r){var n=this;this.workspace=null,this.sdkKey=e,this.httpRequest=t,this.isStarted=!1,this.updateInterval=r.updateInterval,this.fetchUrl=r.fetchUrl,this.headers=r.headers,this.readyPromiseResolver=function(){},this.readyPromiseRejecter=function(){},this.readyPromise=new Promise(function(e,t){n.readyPromiseResolver=e,n.readyPromiseRejecter=t}),this.currentTimeout=null,this.errorRetryController=new hn,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function Nn(e,t,r,n,i,o,s,a,u){this.experiments=e,this.featureFlags=t,this.buckets=r,this.eventTypes=n,this.segments=i,this.containers=o,this.parameterConfigurations=s,this.remoteConfigParameters=a,this.inAppMessages=u}function An(e,t,r){this.sdkKey=e,this.httpRequest=t,this.headers=r.headers,this.dispatchUrl=r.dispatchUrl,this.beaconDispatchUrl=r.beaconDispatchUrl||"",this.useBeacon=r.useBeacon||!1}function Cn(){var e=mn.getItem("_hackle_id");return e||mn.getItem("_hackle_hid")||Mn()}function kn(e){mn.setItem("_hackle_id",e)}function xn(){mn.removeItem("_hackle_id")}function Mn(){var e=ae.v4();return mn.setItem("_hackle_hid",e),e}function Pn(e){return e&&e.Math==Math&&e}function g(e){try{return!!e()}catch(e){return!0}}var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},v=Pn("object"==typeof globalThis&&globalThis)||Pn("object"==typeof window&&window)||Pn("object"==typeof self&&self)||Pn("object"==typeof h&&h)||function(){return this}()||Function("return this")(),f={},r=!g(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),p=!g(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Un=Function.prototype.call,o=p?Un.bind(Un):function(){return Un.apply(Un,arguments)},d={},e={}.propertyIsEnumerable,Dn=Object.getOwnPropertyDescriptor,h=Dn&&!e.call({1:2},1);d.f=h?function(e){e=Dn(this,e);return!!e&&e.enumerable}:e;function Ln(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function Fn(e){return ni(ri(e),8,-1)}function jn(e){if(null==e)throw ai("Can't call method on "+e);return e}function Vn(e){return ui(ci(e))}function E(e){return"function"==typeof e}function Hn(e){return"object"==typeof e?null!==e:li(e)}function Kn(e,t){return arguments.length<2?(r=fi[e],pi(r)?r:void 0):fi[e]&&fi[e][t];var r}function Gn(e){try{return bi(e)}catch(e){return"Object"}}function zn(e){if(_i(e))return e;throw Ri(Oi(e)+" is not a function")}function Bn(e,t){return null==(e=e[t])?void 0:Si(e)}function qn(t,r){try{xi(ki,t,{value:r,configurable:!0,writable:!0})}catch(e){ki[t]=r}return r}function Yn(e){return Di(Ui(e))}function $n(e){return"Symbol("+(void 0===e?"":e)+")_"+Ki(++Vi+Hi,36)}function Jn(e){var t;return zi($i,e)&&(qi||"string"==typeof $i[e])||(t="Symbol."+e,qi&&zi(Ji,e)?$i[e]=Ji[e]:$i[e]=(Yi&&Xi?Xi:Wi)(t)),$i[e]}function Xn(e){return e=function(e,t){if(!Zi(e)||eo(e))return e;var r=to(e,io);if(r){if(r=Qi(r,e,t=void 0===t?"default":t),!Zi(r)||eo(r))return r;throw no("Can't convert object to primitive value")}return ro(e,t=void 0===t?"number":t)}(e,"string"),oo(e)?e:e+""}function Wn(e){return ao?so.createElement(e):{}}function Qn(e){if(go(e))return e;throw wo(Eo(e)+" is not an object")}var h=p,e=Function.prototype,Zn=e.bind,ei=e.call,ti=h&&Zn.bind(ei,ei),e=h?function(e){return e&&ti(e)}:function(e){return e&&function(){return ei.apply(e,arguments)}},Zn=e,ri=Zn({}.toString),ni=Zn("".slice),h=g,ii=Fn,oi=Object,si=e("".split),Zn=h(function(){return!oi("z").propertyIsEnumerable(0)})?function(e){return"String"==ii(e)?si(e,""):oi(e)}:oi,ai=TypeError,ui=Zn,ci=jn,li=E,fi=v,pi=E,h=e({}.isPrototypeOf),di=Kn("navigator","userAgent")||"",hi=di,w=v.process,yi=v.Deno,w=w&&w.versions||yi&&yi.version,yi=w&&w.v8,w=Ti=!(Ti=yi?0<(T=yi.split("."))[0]&&T[0]<4?1:+(T[0]+T[1]):Ti)&&hi&&(!(T=hi.match(/Edge\/(\d+)/))||74<=T[1])&&(T=hi.match(/Chrome\/(\d+)/))?+T[1]:Ti,vi=w,yi=g,hi=!!Object.getOwnPropertySymbols&&!yi(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&vi&&vi<41}),T=hi&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,mi=Kn,gi=E,Ei=h,wi=Object,Ti=T?function(e){return"symbol"==typeof e}:function(e){var t=mi("Symbol");return gi(t)&&Ei(t.prototype,wi(e))},bi=String,_i=E,Oi=Gn,Ri=TypeError,Si=zn,Ii=o,Ni=E,Ai=Hn,Ci=TypeError,yi={exports:{}},ki=v,xi=Object.defineProperty,Mi=qn,Mi=v["__core-js_shared__"]||Mi("__core-js_shared__",{}),Pi=Mi,Ui=((yi.exports=function(e,t){return Pi[e]||(Pi[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),jn),Di=Object,Li=Yn,Fi=e({}.hasOwnProperty),b=Object.hasOwn||function(e,t){return Fi(Li(e),t)},ji=e,Vi=0,Hi=Math.random(),Ki=ji(1..toString),ji=v,Gi=yi.exports,zi=b,Bi=$n,qi=hi,Yi=T,$i=Gi("wks"),Ji=ji.Symbol,Xi=Ji&&Ji.for,Wi=Yi?Ji:Ji&&Ji.withoutSetter||Bi,Qi=o,Zi=Hn,eo=Ti,to=Bn,ro=function(e,t){var r,n;if("string"===t&&Ni(r=e.toString)&&!Ai(n=Ii(r,e)))return n;if(Ni(r=e.valueOf)&&!Ai(n=Ii(r,e)))return n;if("string"!==t&&Ni(r=e.toString)&&!Ai(n=Ii(r,e)))return n;throw Ci("Can't convert object to primitive value")},no=TypeError,io=Jn("toPrimitive"),oo=Ti,hi=Hn,so=v.document,ao=hi(so)&&hi(so.createElement),uo=Wn,T=!r&&!g(function(){return 7!=Object.defineProperty(uo("div"),"a",{get:function(){return 7}}).a}),co=o,lo=d,fo=Ln,po=Vn,ho=Xn,yo=b,vo=T,mo=Object.getOwnPropertyDescriptor,Gi=(f.f=r?mo:function(e,t){if(e=po(e),t=ho(t),vo)try{return mo(e,t)}catch(e){}if(yo(e,t))return fo(!co(lo.f,e,t),e[t])},{}),ji=r&&g(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),go=Hn,Eo=String,wo=TypeError,To=T,bo=Qn,_o=Xn,Oo=TypeError,Ro=Object.defineProperty,So=Object.getOwnPropertyDescriptor,Io=(Gi.f=r?ji?function(e,t,r){var n;return bo(e),t=_o(t),bo(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=So(e,t))&&n.writable&&(e[t]=r.value,r={configurable:("configurable"in r?r:n).configurable,enumerable:("enumerable"in r?r:n).enumerable,writable:!1}),Ro(e,t,r)}:Ro:function(e,t,r){if(bo(e),t=_o(t),bo(r),To)try{return Ro(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Oo("Accessors not supported");return"value"in r&&(e[t]=r.value),e},Gi),No=Ln,Bi=r?function(e,t,r){return Io.f(e,t,No(1,r))}:function(e,t,r){return e[t]=r,e},Ti={exports:{}},hi=r,d=b,T=Function.prototype,Ao=hi&&Object.getOwnPropertyDescriptor,d=d(T,"name"),d={EXISTS:d,PROPER:d&&"something"===function(){}.name,CONFIGURABLE:d&&(!hi||Ao(T,"name").configurable)},hi=E,Ao=Mi,Co=e(Function.toString);hi(Ao.inspectSource)||(Ao.inspectSource=function(e){return Co(e)});function ko(e){return Jo[e]||(Jo[e]=$o(e))}function xo(e,t,r,n){var i=(n=n||{}).enumerable,o=void 0!==n.name?n.name:t;if(ps(r)&&hs(r,o,n),n.global)i?e[t]=r:ys(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=r:ds.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function Mo(e){return(e=+e)!=e||0==e?0:gs(e)}function Po(e,t){return(e=Es(e))<0?ws(e+t,0):Ts(e,t)}function _(e){return 0<(e=e.length)?_s(bs(e),9007199254740991):0}function Uo(a){return function(e,t,r){var n,i=Os(e),o=Ss(i),s=Rs(r,o);if(a&&t!=t){for(;s<o;)if((n=i[s++])!=n)return!0}else for(;s<o;s++)if((a||s in i)&&i[s]===t)return a||s||0;return!a&&-1}}function Do(e,t){var r,n=Ns(e),i=0,o=[];for(r in n)!Is(Cs,r)&&Is(n,r)&&ks(o,r);for(;t.length>i;)!Is(n,r=t[i++])||~As(o,r)||ks(o,r);return o}function Lo(e,t,r){for(var n=js(t),i=Hs.f,o=Vs.f,s=0;s<n.length;s++){var a=n[s];Fs(e,a)||r&&Fs(r,a)||i(e,a,o(t,a))}}function Fo(e,t){return(e=qs[Bs(e)])==$s||e!=Ys&&(Gs(t)?Ks(t):!!t)}function O(e,t){var r,n,i,o,s=e.target,a=e.global,u=e.stat;if(r=a?Js:u?Js[s]||Zs(s,{}):(Js[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(o=Xs(r,n))&&o.value:r[n],!ta(a?n:s+(u?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;ea(i,o)}(e.sham||o&&o.sham)&&Ws(i,"sham",!0),Qs(r,n,i,e)}}var jo,Vo,Ho,Ko,Go,zo,Bo,qo,T=Ao.inspectSource,hi=E,Ao=T,Yo=v.WeakMap,hi=hi(Yo)&&/native code/.test(Ao(Yo)),Ao=yi.exports,$o=$n,Jo=Ao("keys"),Yo={},yi=e,Xo=Hn,Wo=Bi,Qo=b,Ao=Mi,R=ko,Zo=Yo,es=v.TypeError,ts=v.WeakMap,hi=(Bo=hi||Ao.state?(jo=Ao.state||(Ao.state=new ts),Vo=yi(jo.get),Ho=yi(jo.has),Ko=yi(jo.set),Go=function(e,t){if(Ho(jo,e))throw new es("Object already initialized");return t.facade=e,Ko(jo,e,t),t},zo=function(e){return Vo(jo,e)||{}},function(e){return Ho(jo,e)}):(Zo[qo=R("state")]=!0,Go=function(e,t){if(Qo(e,qo))throw new es("Object already initialized");return t.facade=e,Wo(e,qo,t),t},zo=function(e){return Qo(e,qo)?e[qo]:{}},function(e){return Qo(e,qo)}),{set:Go,get:zo,has:Bo,enforce:function(e){return Bo(e)?zo(e):Go(e,{})},getterFor:function(t){return function(e){if(Xo(e)&&(e=zo(e)).type===t)return e;throw es("Incompatible receiver, "+t+" required")}}}),Ao=g,rs=E,ns=b,is=r,os=d.CONFIGURABLE,ss=T,as=hi.enforce,us=hi.get,cs=Object.defineProperty,ls=is&&!Ao(function(){return 8!==cs(function(){},"length",{value:8}).length}),fs=String(String).split("String"),ts=Ti.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!ns(e,"name")||os&&e.name!==t)&&(is?cs(e,"name",{value:t,configurable:!0}):e.name=t),ls&&r&&ns(r,"arity")&&e.length!==r.arity&&cs(e,"length",{value:r.arity});try{r&&ns(r,"constructor")&&r.constructor?is&&cs(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=as(e);return ns(r,"source")||(r.source=fs.join("string"==typeof t?t:"")),e},ps=(Function.prototype.toString=ts(function(){return rs(this)&&us(this).source||ss(this)},"toString"),E),ds=Gi,hs=Ti.exports,ys=qn,yi={},vs=Math.ceil,ms=Math.floor,gs=Math.trunc||function(e){e=+e;return(0<e?ms:vs)(e)},Es=Mo,ws=Math.max,Ts=Math.min,bs=Mo,_s=Math.min,Os=Vn,Rs=Po,Ss=_,Zo={includes:Uo(!0),indexOf:Uo(!1)},Is=b,Ns=Vn,As=Zo.indexOf,Cs=Yo,ks=e([].push),R=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xs=Do,Ms=R.concat("length","prototype"),Ao=(yi.f=Object.getOwnPropertyNames||function(e){return xs(e,Ms)},{}),ts=(Ao.f=Object.getOwnPropertySymbols,Kn),Ps=yi,Us=Ao,Ds=Qn,Ls=e([].concat),Ao=ts("Reflect","ownKeys")||function(e){var t=Ps.f(Ds(e)),r=Us.f;return r?Ls(t,r(e)):t},Fs=b,js=Ao,Vs=f,Hs=Gi,Ks=g,Gs=E,zs=/#|\.prototype\./,Bs=Fo.normalize=function(e){return String(e).replace(zs,".").toLowerCase()},qs=Fo.data={},Ys=Fo.NATIVE="N",$s=Fo.POLYFILL="P",ts=Fo,Js=v,Xs=f.f,Ws=Bi,Qs=xo,Zs=qn,ea=Lo,ta=ts,Ao=!g(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ra=b,na=E,ia=Yn,oa=ko("IE_PROTO"),sa=Object,aa=sa.prototype,Ao=Ao?sa.getPrototypeOf:function(e){e=ia(e);if(ra(e,oa))return e[oa];var t=e.constructor;return na(t)&&e instanceof t?t.prototype:e instanceof sa?aa:null},ua=E,ca=String,la=TypeError,fa=e,pa=Qn,da=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=fa(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return pa(e),function(e){if("object"==typeof e||ua(e))return;throw la("Can't set "+ca(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),ha={},ya=Do,va=R,S=Object.keys||function(e){return ya(e,va)},ma=Gi,ga=Qn,Ea=Vn,wa=S;ha.f=r&&!ji?Object.defineProperties:function(e,t){ga(e);for(var r,n=Ea(t),i=wa(t),o=i.length,s=0;s<o;)ma.f(e,r=i[s++],n[r]);return e};function Ta(){}function ba(e){e.write(ja("")),e.close();var t=e.parentWindow.Object;return e=null,t}function _a(e,t){return Ya(e),void 0===t?e:$a?Ja(e,t):function(){return e.apply(t,arguments)}}function Oa(e){return void 0!==e&&(Xa.Array===e||Qa[Wa]===e)}function Ra(e){if(null!=e)return ou(e,au)||ou(e,"@@iterator")||su[iu(e)]}function Sa(e,t){if(t=arguments.length<2?pu(e):t,cu(t))return lu(uu(t,e));throw du(fu(e)+" is not iterable")}function Ia(e,t,r){var n,i;yu(e);try{if(!(n=vu(e,"return"))){if("throw"===t)throw r;return r}n=hu(n,e)}catch(e){i=!0,n=e}if("throw"===t)throw r;if(i)throw n;return yu(n),r}function Na(e,t){this.stopped=e,this.result=t}function Aa(e,t,r){function n(e){return o&&Su(o,"normal",e),new Na(!0,e)}function i(e){return p?(Eu(e),y?v(e[0],e[1],n):v(e[0],e[1])):y?v(e,n):v(e)}var o,s,a,u,c,l,f=r&&r.that,p=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),v=mu(t,f);if(d)o=e.iterator;else if(h)o=e;else{if(!(r=Ru(e)))throw Iu(wu(e)+" is not iterable");if(Tu(r)){for(s=0,a=bu(e);s<a;s++)if((u=i(e[s]))&&_u(Nu,u))return u;return new Na(!1)}o=Ou(e,r)}for(c=(d?e:o).next;!(l=gu(c,o)).done;){try{u=i(l.value)}catch(e){Su(o,"throw",e)}if("object"==typeof u&&u&&_u(Nu,u))return u}return new Na(!1)}function Ca(e){if("Symbol"===Au(e))throw TypeError("Cannot convert a Symbol value to a string");return Cu(e)}function ka(e,t){var r,n=2<arguments.length?arguments[2]:void 0,i=Pu(Bu,this);return Du?r=Du(new Gu,i?Uu(this):Bu):(r=i?this:Fu(Bu),ju(r,Ku,"Error")),void 0!==t&&ju(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:ku(e)}(t)),Hu&&ju(r,"stack",function(e,t){if(za&&"string"==typeof e&&!Ha.prepareStackTrace)for(;t--;)e=Ka(e,Ga,"");return e}(r.stack,1)),i=r,Ba(t=n)&&"cause"in t&&qa(i,"cause",t.cause),Vu(e,zu,{that:n=[]}),ju(r,"errors",n),r}var xa,S=Kn("document","documentElement"),Ma=Qn,Pa=ha,Ua=R,ji=Yo,Da=S,La=Wn,Fa=ko("IE_PROTO"),ja=function(e){return"<script>"+e+"<\/script>"},Va=function(){try{xa=new ActiveXObject("htmlfile")}catch(e){}var e,t;Va="undefined"==typeof document||document.domain&&xa?ba(xa):((t=La("iframe")).style.display="none",Da.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ja("document.F=Object")),e.close(),e.F);for(var r=Ua.length;r--;)delete Va.prototype[Ua[r]];return Va()},ha=(ji[Fa]=!0,Object.create||function(e,t){var r;return null!==e?(Ta.prototype=Ma(e),r=new Ta,Ta.prototype=null,r[Fa]=e):r=Va(),void 0===t?r:Pa.f(r,t)}),Ha=Error,Ka=e("".replace),R=String(Ha("zxcasd").stack),Ga=/\n\s*at [^:]*:[^\n]*/,za=Ga.test(R),Ba=Hn,qa=Bi,Ya=zn,$a=p,Ja=e(e.bind),ji={},Xa=ji,Wa=Jn("iterator"),Qa=Array.prototype,R={},R=(R[Jn("toStringTag")]="z","[object z]"===String(R)),I=R,Za=E,eu=Fn,tu=Jn("toStringTag"),ru=Object,nu="Arguments"==eu(function(){return arguments}()),I=I?eu:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=ru(e),tu))?t:nu?eu(e):"Object"==(t=eu(e))&&Za(e.callee)?"Arguments":t},iu=I,ou=Bn,su=ji,au=Jn("iterator"),uu=o,cu=zn,lu=Qn,fu=Gn,pu=Ra,du=TypeError,hu=o,yu=Qn,vu=Bn,mu=_a,gu=o,Eu=Qn,wu=Gn,Tu=Oa,bu=_,_u=h,Ou=Sa,Ru=Ra,Su=Ia,Iu=TypeError,Nu=Na.prototype,Au=I,Cu=String,ku=Ca,xu=Ln,N=!g(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",xu(1,7)),7!==e.stack)}),Mu=O,Pu=h,Uu=Ao,Du=da,Lu=Lo,Fu=ha,ju=Bi,A=Ln,Vu=Aa,Hu=N,Ku=Jn("toStringTag"),Gu=Error,zu=[].push,Bu=(Du?Du(ka,Gu):Lu(ka,Gu,{name:!0}),ka.prototype=Fu(Gu.prototype,{constructor:A(1,ka),message:A(1,""),name:A(1,"AggregateError")})),N=(Mu({global:!0,constructor:!0,arity:2},{AggregateError:ka}),Jn),Lu=ha,A=Gi.f,qu=N("unscopables"),Yu=Array.prototype;null==Yu[qu]&&A(Yu,qu,{configurable:!0,value:Lu(null)});function C(e){Yu[qu][e]=!0}var $u,Mu=g,N=E,A=Ao,Lu=xo,Ju=Jn("iterator"),k=!1;[].keys&&("next"in(x=[].keys())?(A=A(A(x)))!==Object.prototype&&($u=A):k=!0);function Xu(e,t,r){(e=e&&!r?e.prototype:e)&&!ec(e,tc)&&Zu(e,tc,{configurable:!0,value:t})}function Wu(){return this}function Qu(e,t,r,n,i,o,s){var a=r,u=t,c=void 0;function l(e){if(e===i&&v)return v;if(!wc&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}}u+=" Iterator",a.prototype=nc(rc,{next:ic(+!c,n)}),oc(a,u,!1),sc[u]=ac;var f,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[Tc]||h["@@iterator"]||i&&h[i],v=!wc&&y||l(i);if((n="Array"==t&&h.entries||y)&&(a=fc(n.call(new e)))!==Object.prototype&&a.next&&(fc(a)!==Ec&&(pc?pc(a,Ec):lc(a[Tc])||yc(a,Tc,Wu)),dc(a,c,!0)),mc&&"values"==i&&y&&"values"!==y.name&&(gc?hc(h,"name","values"):(d=!0,v=function(){return cc(y,this)})),i)if(f={values:l("values"),keys:o?v:l("keys"),entries:l("entries")},s)for(p in f)!wc&&!d&&p in h||yc(h,p,f[p]);else uc({target:t,proto:!0,forced:wc||d},f);return h[Tc]!==v&&yc(h,Tc,v,{name:i}),vc[t]=v,f}N(($u=null==$u||Mu(function(){var e={};return $u[Ju].call(e)!==e})?{}:$u)[Ju])||Lu($u,Ju,function(){return this});var x={IteratorPrototype:$u,BUGGY_SAFARI_ITERATORS:k},Zu=Gi.f,ec=b,tc=Jn("toStringTag"),rc=x.IteratorPrototype,nc=ha,ic=Ln,oc=Xu,sc=ji,ac=function(){return this},uc=O,cc=o,lc=E,fc=Ao,pc=da,dc=Xu,hc=Bi,yc=xo,vc=ji,mc=d.PROPER,gc=d.CONFIGURABLE,Ec=x.IteratorPrototype,wc=x.BUGGY_SAFARI_ITERATORS,Tc=Jn("iterator"),bc=Vn,A=C,N=ji,Mu=hi,Lu=Gi.f,k=Qu,d=r,_c=Mu.set,Oc=Mu.getterFor("Array Iterator"),x=k(Array,"Array",function(e,t){_c(this,{type:"Array Iterator",target:bc(e),index:0,kind:t})},function(){var e=Oc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),ji=N.Arguments=N.Array;if(A("keys"),A("values"),A("entries"),d&&"values"!==ji.name)try{Lu(ji,"name",{value:"values"})}catch(gT){}function Rc(e){var e=kc(e),t=xc.f;Mc&&e&&!e[Pc]&&t(e,Pc,{configurable:!0,get:function(){return this}})}function Sc(e,t){if(Uc(t,e))return e;throw Dc("Incorrect invocation")}function Ic(){}function Nc(e){if(!Lc(e))return!1;try{return Hc(Ic,Vc,e),!0}catch(e){return!1}}function Ac(e){if(!Lc(e))return!1;switch(Fc(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return zc||!!Gc(Kc,jc(e))}catch(e){return!0}}var Cc=I,Mu=(R||xo(Object.prototype,"toString",R?{}.toString:function(){return"[object "+Cc(this)+"]"},{unsafe:!0}),"process"==Fn(v.process)),kc=Kn,xc=Gi,Mc=r,Pc=Jn("species"),Uc=h,Dc=TypeError,k=e,N=g,Lc=E,Fc=I,jc=T,Vc=[],Hc=Kn("Reflect","construct"),Kc=/^\s*(?:class|function)\b/,Gc=k(Kc.exec),zc=!Kc.exec(Ic);Ac.sham=!0;function Bc(e,t){var r,e=Wc(e).constructor;if(void 0===e||null==(r=Wc(e)[Qc]))return t;if($c(e=r))return e;throw Xc(Jc(e)+" is not a constructor")}var qc,Yc,A=!Hc||N(function(){var e;return Nc(Nc.call)||!Nc(Object)||!Nc(function(){e=!0})||e})?Ac:Nc,$c=A,Jc=Gn,Xc=TypeError,Wc=Qn,Qc=Jn("species"),d=Function.prototype,Zc=d.apply,el=d.call,Lu="object"==typeof Reflect&&Reflect.apply||(p?el.bind(Zc):function(){return el.apply(Zc,arguments)}),ji=e([].slice),tl=TypeError,R=/(?:ipad|iphone|ipod).*applewebkit/i.test(di),rl=v,nl=Lu,h=_a,il=E,ol=b,I=g,sl=S,al=ji,ul=Wn,k=R,N=Mu,d=rl.setImmediate,p=rl.clearImmediate,cl=rl.process,ll=rl.Dispatch,fl=rl.Function,S=rl.MessageChannel,pl=rl.String,dl=0,hl={};try{qc=rl.location}catch(gT){}function yl(e){return function(){gl(e)}}function vl(e){gl(e.data)}function ml(e){rl.postMessage(pl(e),qc.protocol+"//"+qc.host)}var gl=function(e){var t;ol(hl,e)&&(t=hl[e],delete hl[e],t())};d&&p||(d=function(e){var t=arguments.length,r=1;if(t<r)throw tl("Not enough arguments");var n=il(e)?e:fl(e),i=al(arguments,1);return hl[++dl]=function(){nl(n,void 0,i)},Yc(dl),dl},p=function(e){delete hl[e]},N?Yc=function(e){cl.nextTick(yl(e))}:ll&&ll.now?Yc=function(e){ll.now(yl(e))}:S&&!k?(k=(N=new S).port2,N.port1.onmessage=vl,Yc=h(k.postMessage,k)):rl.addEventListener&&il(rl.postMessage)&&!rl.importScripts&&qc&&"file:"!==qc.protocol&&!I(ml)?(Yc=ml,rl.addEventListener("message",vl,!1)):Yc="onreadystatechange"in ul("script")?function(e){sl.appendChild(ul("script")).onreadystatechange=function(){sl.removeChild(this),gl(e)}}:function(e){setTimeout(yl(e),0)});function El(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function wl(){this.head=null,this.tail=null}function Tl(e){var r,n;this.promise=new e(function(e,t){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=e,n=t}),this.resolve=Kl(r),this.reject=Kl(n)}var bl,_l,Ol,Rl,Sl,Il,Nl,S={set:d,clear:p},N=v,h=/ipad|iphone|ipod/i.test(di)&&void 0!==N.Pebble,k=/web0s(?!.*chrome)/i.test(di),I=v,d=_a,p=f.f,Al=S.set,N=R,f=h,R=k,Cl=Mu,h=I.MutationObserver||I.WebKitMutationObserver,k=I.document,kl=I.process,xl=I.Promise,p=p(I,"queueMicrotask"),p=p&&p.value,R=(p||(bl=function(){var e,t;for(Cl&&(e=kl.domain)&&e.exit();_l;){t=_l.fn,_l=_l.next;try{t()}catch(e){throw _l?Rl():Ol=void 0,e}}Ol=void 0,e&&e.enter()},Rl=N||Cl||R||!h||!k?!f&&xl&&xl.resolve?((N=xl.resolve(void 0)).constructor=xl,Nl=d(N.then,N),function(){Nl(bl)}):Cl?function(){kl.nextTick(bl)}:(Al=d(Al,I),function(){Al(bl)}):(Sl=!0,Il=k.createTextNode(""),new h(bl).observe(Il,{characterData:!0}),function(){Il.data=Sl=!Sl})),p||function(e){e={fn:e,next:void 0};Ol&&(Ol.next=e),_l||(_l=e,Rl()),Ol=e}),Ml=v,f=(wl.prototype={add:function(e){e={item:e,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},wl),xl=v.Promise,N="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,d=!N&&!Mu&&"object"==typeof window&&"object"==typeof document,I=v,Pl=xl,k=E,h=ts,Ul=T,p=Jn,Dl=d,Ll=N,Fl=w,jl=(Pl&&Pl.prototype,p("species")),Vl=!1,Hl=k(I.PromiseRejectionEvent),T={CONSTRUCTOR:h("Promise",function(){var e=Ul(Pl),t=e!==String(Pl);if(!t&&66===Fl)return!0;if(!Fl||Fl<51||!/native code/.test(e)){var e=new Pl(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[jl]=r,!(Vl=e.then(function(){})instanceof r))return!0}return!t&&(Dl||Ll)&&!Hl}),REJECTION_EVENT:Hl,SUBCLASSING:Vl},d={},Kl=zn;d.f=function(e){return new Tl(e)};function Gl(e,t){var r,n,i,o,s=t.value,a=1==t.state,u=a?e.ok:e.fail,c=e.resolve,l=e.reject,f=e.domain;try{u?(a||(2===t.rejection&&(o=t,Jl(tf,$l,function(){var e=o.facade;Yl?yf.emit("rejectionHandled",e):Tf("rejectionhandled",e,o.value)})),t.rejection=1),!0===u?r=s:(f&&f.enter(),r=u(s),f&&(f.exit(),i=!0)),r===e.promise?l(df("Promise-chain cycle")):(n=Ef(r))?Jl(n,r,c,l):c(r)):l(s)}catch(e){f&&!i&&f.exit(),l(e)}}var zl,Bl,ql,N=O,Yl=Mu,$l=v,Jl=o,p=xo,k=da,I=Xu,h=Rc,Xl=zn,Wl=E,Ql=Hn,Zl=Sc,ef=Bc,tf=S.set,rf=R,nf=El,of=f,S=hi,R=xl,f=d,sf=T.CONSTRUCTOR,af=T.REJECTION_EVENT,uf=T.SUBCLASSING,cf=S.getterFor("Promise"),lf=S.set,S=R&&R.prototype,ff=R,pf=S,df=$l.TypeError,hf=$l.document,yf=$l.process,vf=f.f,mf=vf,gf=!!(hf&&hf.createEvent&&$l.dispatchEvent),Ef=function(e){var t;return!(!Ql(e)||!Wl(t=e.then))&&t},wf=function(r,i){r.notified||(r.notified=!0,rf(function(){for(var e,n,t=r.reactions;e=t.get();)Gl(e,r);r.notified=!1,i&&!r.rejection&&(n=r,Jl(tf,$l,function(){var e,t=n.facade,r=n.value;if(bf(n)&&(e=nf(function(){Yl?yf.emit("unhandledRejection",r,t):Tf("unhandledrejection",t,r)}),n.rejection=Yl||bf(n)?2:1,e.error))throw e.value}))}))},Tf=function(e,t,r){var n;gf?((n=hf.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),$l.dispatchEvent(n)):n={promise:t,reason:r},!af&&(t=$l["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=Ml.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},bf=function(e){return 1!==e.rejection&&!e.parent},_f=function(t,r,n){return function(e){t(r,e,n)}},Of=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,wf(e,!0))},Rf=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw df("Promise can't be resolved itself");var n=Ef(e);n?rf(function(){var t={done:!1};try{Jl(n,e,_f(Rf,t,r),_f(Of,t,r))}catch(e){Of(t,e,r)}}):(r.value=e,r.state=1,wf(r,!1))}catch(e){Of({done:!1},e,r)}}};if(sf&&(pf=(ff=function(e){Zl(this,pf),Xl(e),Jl(zl,this);var t=cf(this);try{e(_f(Rf,t),_f(Of,t))}catch(e){Of(t,e)}}).prototype,(zl=function(e){lf(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new of,rejection:!1,state:0,value:void 0})}).prototype=p(pf,"then",function(e,t){var r=cf(this),n=vf(ef(this,ff));return r.parent=!0,n.ok=!Wl(e)||e,n.fail=Wl(t)&&t,n.domain=Yl?yf.domain:void 0,0==r.state?r.reactions.add(n):rf(function(){Gl(n,r)}),n.promise}),Bl=function(){var e=new zl,t=cf(e);this.promise=e,this.resolve=_f(Rf,t),this.reject=_f(Of,t)},f.f=vf=function(e){return e===ff||void 0===e?new Bl:mf(e)},Wl(R)&&S!==Object.prototype)){ql=S.then,uf||p(S,"then",function(e,t){var r=this;return new ff(function(e,t){Jl(ql,r,e,t)}).then(e,t)},{unsafe:!0});try{delete S.constructor}catch(gT){}k&&k(S,pf)}N({global:!0,constructor:!0,wrap:!0,forced:sf},{Promise:ff}),I(ff,"Promise",!1),h("Promise");var Sf=Jn("iterator"),If=!1;try{var Nf=0,Af={next:function(){return{done:!!Nf++}},return:function(){If=!0}};Af[Sf]=function(){return this},Array.from(Af,function(){throw 2})}catch(gT){}function Cf(e,t){if(!t&&!If)return!1;var r=!1;try{var n={};n[Sf]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function kf(e,t){return $f(e),Jf(t)&&t.constructor===e?t:((0,(e=Xf.f(e)).resolve)(t),e.promise)}function xf(i){return function(e,t){var r,e=yp(vp(e)),t=hp(t),n=e.length;return t<0||n<=t?i?"":void 0:(r=gp(e,t))<55296||56319<r||t+1===n||(n=gp(e,t+1))<56320||57343<n?i?mp(e,t):r:i?Ep(e,t,t+2):n-56320+(r-55296<<10)+65536}}function Mf(e,t){if(e){if(e[Np]!==Cp)try{Ip(e,Np,Cp)}catch(t){e[Np]=Cp}if(e[Ap]||Ip(e,Ap,t),Rp[t])for(var r in Sp)if(e[r]!==Sp[r])try{Ip(e,r,Sp[r])}catch(t){e[r]=Sp[r]}}}var Pf,Uf=xl,f=T.CONSTRUCTOR||!Cf(function(e){Uf.all(e).then(void 0,function(){})}),Df=o,Lf=zn,Ff=d,jf=El,Vf=Aa,R=(O({target:"Promise",stat:!0,forced:f},{all:function(e){var a=this,t=Ff.f(a),u=t.resolve,c=t.reject,r=jf(function(){var n=Lf(a.resolve),i=[],o=0,s=1;Vf(e,function(e){var t=o++,r=!1;s++,Df(n,a,e).then(function(e){r||(r=!0,i[t]=e,--s||u(i))},c)}),--s||u(i)});return r.error&&c(r.value),t.promise}}),O),uf=xl,p=Kn,k=E,S=xo,N=uf&&uf.prototype,Hf=(R({target:"Promise",proto:!0,forced:T.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),k(uf)&&(sf=p("Promise").prototype.catch,N.catch!==sf&&S(N,"catch",sf,{unsafe:!0})),o),Kf=zn,Gf=d,zf=El,Bf=Aa,qf=(O({target:"Promise",stat:!0,forced:f},{race:function(e){var r=this,n=Gf.f(r),i=n.reject,t=zf(function(){var t=Kf(r.resolve);Bf(e,function(e){Hf(t,r,e).then(n.resolve,i)})});return t.error&&i(t.value),n.promise}}),o),Yf=d,$f=(O({target:"Promise",stat:!0,forced:T.CONSTRUCTOR},{reject:function(e){var t=Yf.f(this);return qf(t.reject,void 0,e),t.promise}}),Qn),Jf=Hn,Xf=d,I=O,h=T.CONSTRUCTOR,Wf=kf,Qf=(Kn("Promise"),I({target:"Promise",stat:!0,forced:h},{resolve:function(e){return Wf(this,e)}}),o),Zf=zn,ep=d,tp=El,rp=Aa,np=(O({target:"Promise",stat:!0},{allSettled:function(e){var a=this,t=ep.f(a),u=t.resolve,r=t.reject,n=tp(function(){var n=Zf(a.resolve),i=[],o=0,s=1;rp(e,function(e){var t=o++,r=!1;s++,Qf(n,a,e).then(function(e){r||(r=!0,i[t]={status:"fulfilled",value:e},--s||u(i))},function(e){r||(r=!0,i[t]={status:"rejected",reason:e},--s||u(i))})}),--s||u(i)});return n.error&&r(n.value),t.promise}}),o),ip=zn,op=Kn,sp=d,ap=El,up=Aa,Af=(O({target:"Promise",stat:!0},{any:function(e){var u=this,c=op("AggregateError"),t=sp.f(u),l=t.resolve,f=t.reject,r=ap(function(){var n=ip(u.resolve),i=[],o=0,s=1,a=!1;up(e,function(e){var t=o++,r=!1;s++,np(n,u,e).then(function(e){r||a||(a=!0,l(e))},function(e){r||a||(r=!0,i[t]=e,--s||f(new c(i,"No one promise resolved")))})}),--s||f(new c(i,"No one promise resolved"))});return r.error&&f(r.value),t.promise}}),O),R=xl,k=g,cp=Kn,lp=E,fp=Bc,pp=kf,uf=xo,dp=R&&R.prototype,S=(Af({target:"Promise",proto:!0,real:!0,forced:!!R&&k(function(){dp.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=fp(this,cp("Promise")),e=lp(t);return this.then(e?function(e){return pp(r,t()).then(function(){return e})}:t,e?function(e){return pp(r,t()).then(function(){throw e})}:t)}}),lp(R)&&(p=cp("Promise").prototype.finally,dp.finally!==p&&uf(dp,"finally",p,{unsafe:!0})),e),hp=Mo,yp=Ca,vp=jn,mp=S("".charAt),gp=S("".charCodeAt),Ep=S("".slice),wp=(xf(!1),xf(!0)),Tp=Ca,N=hi,sf=Qu,bp=N.set,_p=N.getterFor("String Iterator"),f=(sf(String,"String",function(e){bp(this,{type:"String Iterator",string:Tp(e),index:0})},function(){var e=_p(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=wp(t,r),e.index+=t.length,{value:t,done:!1})}),v),T=(f.Promise,Wn("span").classList),I=T&&T.constructor&&T.constructor.prototype,h=I===Object.prototype?void 0:I,Op=v,Rp={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},xl=h,Sp=x,Ip=Bi,Af=Jn,Np=Af("iterator"),Ap=Af("toStringTag"),Cp=Sp.values;for(Pf in Rp)Mf(Op[Pf]&&Op[Pf].prototype,Pf);Mf(xl,"DOMTokenList");function kp(e,t,r){(t=rd(t))in e?nd.f(e,t,id(0,r)):e[t]=r}function xp(e){if(9007199254740991<e)throw bd("Maximum allowed index exceeded");return e}function Mp(e,t){return _d(e=e)&&(r=e.constructor,(Od(r)&&(r===Id||_d(r.prototype))||Rd(r)&&null===(r=r[Sd]))&&(r=void 0)),new(void 0===r?Id:r)(0===t?0:t);var r}function Pp(t){return 51<=Ad||!Nd(function(){var e=[];return(e.constructor={})[Cd]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function Up(e,t){if(!delete e[t])throw Vd("Cannot delete property "+jd(t)+" of "+jd(e))}function Dp(p){var d=1==p,h=2==p,y=3==p,v=4==p,m=6==p,g=7==p,E=5==p||m;return function(e,t,r,n){for(var i,o,s=$d(e),a=Yd(s),u=qd(t,r),c=Jd(a),l=0,t=n||Xd,f=d?t(e,c):h||g?t(e,0):void 0;l<c;l++)if((E||l in a)&&(o=u(i=a[l],l,s),p))if(d)f[l]=o;else if(o)switch(p){case 3:return!0;case 5:return i;case 6:return l;case 2:Wd(f,i)}else switch(p){case 4:return!1;case 7:Wd(f,i)}return m?-1:y||v?v:f}}function Lp(e,t){var r=[][e];return!!r&&Qd(function(){r.call(null,t||function(){return 1},1)})}function Fp(u){var c=1==u;return function(e,t,r){for(var n,i=lh(e),o=ch(i),s=uh(t,r),a=fh(o);0<a--;)if(s(n=o[a],a,i))switch(u){case 0:return n;case 1:return a}return c?-1:void 0}}function jp(e,t,r,n,i,o,s,a){for(var u,c,l=i,f=0,p=!!s&&mh(s,a);f<n;)f in r&&(u=p?p(r[f],f,t):r[f],0<o&&hh(u)?(c=yh(u),l=jp(e,t,u,c,l,o-1)-1):(vh(l+1),e[l]=u),l++),f++;return l}function Vp(c){return function(e,t,r,n){qh(t);var i=Yh(e),o=$h(i),s=Jh(i),a=c?s-1:0,u=c?-1:1;if(r<2)for(;;){if(a in o){n=o[a],a+=u;break}if(a+=u,c?a<0:s<=a)throw Xh("Reduce of empty array with no initial value")}for(;c?0<=a:a<s;a+=u)a in o&&(n=t(n,o[a],a,i));return n}}function Hp(e,t,r){for(var n=hy(e),i=dy(t,n),o=dy(void 0===r?n:r,n),s=vy(my(o-i,0)),a=0;i<o;i++,a++)yy(s,a,e[i]);return s.length=a,s}function Kp(e,t){var r=e.length,n=Ey(r/2);if(r<8){for(var i,o,s=e,a=t,u=s.length,c=1;c<u;){for(i=s[o=c];o&&0<a(s[o-1],i);)s[o]=s[--o];o!==c++&&(s[o]=i)}return s}for(var l=e,f=Kp(gy(e,0,n),t),p=Kp(gy(e,n),t),d=t,h=f.length,y=p.length,v=0,m=0;v<h||m<y;)l[v+m]=v<h&&m<y?d(f[v],p[m])<=0?f[v++]:p[m++]:v<h?f[v++]:p[m++];return l}function Gp(e){av(e,dv,{value:{objectID:"O"+hv++,weakData:{}}})}function zp(e,t,r){for(var n in t)Ov(e,n,t[n],r);return e}var Bp,qp,Yp,$p,Jp,Xp,Wp,Qp=d,Zp=El,ed=(O({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Qp.f(this),e=Zp(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),Qn),td=Ia,rd=Xn,nd=Gi,id=Ln,od=_a,sd=o,ad=Yn,ud=Oa,cd=A,ld=_,fd=kp,pd=Sa,dd=Ra,hd=Array,yd=(O({target:"Array",stat:!0,forced:!Cf(function(e){Array.from(e)})},{from:function(e){var t=ad(e),e=cd(this),r=arguments.length,n=1<r?arguments[1]:void 0,i=void 0!==n;i&&(n=od(n,2<r?arguments[2]:void 0));var o,s,a,u,c,l,r=dd(t),f=0;if(!r||this===hd&&ud(r))for(o=ld(t),s=e?new this(o):hd(o);f<o;f++)l=i?n(t[f],f):t[f],fd(s,f,l);else for(c=(u=pd(t,r)).next,s=e?new this:[];!(a=sd(c,u)).done;f++)l=i?function(e,t,r,n){try{return n?t(ed(r)[0],r[1]):t(r)}catch(t){td(e,"throw",t)}}(u,n,[a.value,f],!0):a.value,fd(s,f,l);return s.length=f,s}}),Fn),k=Array.isArray||function(e){return"Array"==yd(e)},vd=(O({target:"Array",stat:!0},{isArray:k}),A),md=kp,gd=Array,Ed=(O({target:"Array",stat:!0,forced:g(function(){function e(){}return!(gd.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(vd(this)?this:gd)(t);e<t;)md(r,e,arguments[e++]);return r.length=t,r}}),Yn),wd=_,Td=Mo,R=C,bd=(O({target:"Array",proto:!0},{at:function(e){var t=Ed(this),r=wd(t),e=Td(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),R("at"),TypeError),_d=k,Od=A,Rd=Hn,Sd=Jn("species"),Id=Array,Nd=g,Ad=w,Cd=Jn("species"),uf=O,p=g,kd=k,xd=Hn,Md=Yn,Pd=_,Ud=xp,Dd=kp,Ld=Mp,S=Pp,N=w,Fd=Jn("isConcatSpreadable"),sf=51<=N||!p(function(){var e=[];return e[Fd]=!1,e.concat()[0]!==e}),T=S("concat"),jd=(uf({target:"Array",proto:!0,arity:1,forced:!sf||!T},{concat:function(e){for(var t,r,n,i=Md(this),o=Ld(i,0),s=0,a=-1,u=arguments.length;a<u;a++)if(function(e){if(!xd(e))return!1;var t=e[Fd];return void 0!==t?!!t:kd(e)}(n=-1===a?i:arguments[a]))for(r=Pd(n),Ud(s+r),t=0;t<r;t++,s++)t in n&&Dd(o,s,n[t]);else Ud(s+1),Dd(o,s++,n);return o.length=s,o}}),Gn),Vd=TypeError,Hd=Yn,Kd=Po,Gd=_,zd=Up,Bd=Math.min,I=C,qd=(O({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=Hd(this),n=Gd(r),i=Kd(e,n),o=Kd(t,n),e=2<arguments.length?arguments[2]:void 0,s=Bd((void 0===e?n:Kd(e,n))-o,n-i),a=1;for(o<i&&i<o+s&&(a=-1,o+=s-1,i+=s-1);0<s--;)o in r?r[i]=r[o]:zd(r,i),i+=a,o+=a;return r}}),I("copyWithin"),_a),Yd=Zn,$d=Yn,Jd=_,Xd=Mp,Wd=e([].push),h={forEach:Dp(0),map:Dp(1),filter:Dp(2),some:Dp(3),every:Dp(4),find:Dp(5),findIndex:Dp(6),filterReject:Dp(7)},Qd=g,Zd=h.every,eh=(O({target:"Array",proto:!0,forced:!Lp("every")},{every:function(e){return Zd(this,e,1<arguments.length?arguments[1]:void 0)}}),Yn),th=Po,rh=_,x=C,nh=(O({target:"Array",proto:!0},{fill:function(e){for(var t=eh(this),r=rh(t),n=arguments.length,i=th(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,o=void 0===n?r:th(n,r);i<o;)t[i++]=e;return t}}),x("fill"),h.filter),Bi=(O({target:"Array",proto:!0,forced:!Pp("filter")},{filter:function(e){return nh(this,e,1<arguments.length?arguments[1]:void 0)}}),O),ih=h.find,Af=C,oh=!0,xl=("find"in[]&&Array(1).find(function(){oh=!1}),Bi({target:"Array",proto:!0,forced:oh},{find:function(e){return ih(this,e,1<arguments.length?arguments[1]:void 0)}}),Af("find"),O),sh=h.findIndex,d=C,ah=!0,uh=("findIndex"in[]&&Array(1).findIndex(function(){ah=!1}),xl({target:"Array",proto:!0,forced:ah},{findIndex:function(e){return sh(this,e,1<arguments.length?arguments[1]:void 0)}}),d("findIndex"),_a),ch=Zn,lh=Yn,fh=_,R={findLast:Fp(0),findLastIndex:Fp(1)},ph=R.findLast,N=C,dh=(O({target:"Array",proto:!0},{findLast:function(e){return ph(this,e,1<arguments.length?arguments[1]:void 0)}}),N("findLast"),R.findLastIndex),p=C,hh=(O({target:"Array",proto:!0},{findLastIndex:function(e){return dh(this,e,1<arguments.length?arguments[1]:void 0)}}),p("findLastIndex"),k),yh=_,vh=xp,mh=_a,S=jp,gh=S,Eh=Yn,wh=_,Th=Mo,bh=Mp,_h=(O({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Eh(this),r=wh(t),n=bh(t,0);return n.length=gh(n,t,t,r,0,void 0===e?1:Th(e)),n}}),S),Oh=zn,Rh=Yn,Sh=_,Ih=Mp,Nh=(O({target:"Array",proto:!0},{flatMap:function(e){var t,r=Rh(this),n=Sh(r);return Oh(e),(t=Ih(r,0)).length=_h(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),h.forEach),uf=Lp("forEach")?[].forEach:function(e){return Nh(this,e,1<arguments.length?arguments[1]:void 0)},Ah=(O({target:"Array",proto:!0,forced:[].forEach!=uf},{forEach:uf}),Zo.includes),sf=C,T=(O({target:"Array",proto:!0,forced:g(function(){return!Array(1).includes()})},{includes:function(e){return Ah(this,e,1<arguments.length?arguments[1]:void 0)}}),sf("includes"),O),Ch=Zo.indexOf,I=Lp,kh=e([].indexOf),xh=!!kh&&1/kh([1],1,-0)<0,x=I("indexOf"),Bi=(T({target:"Array",proto:!0,forced:xh||!x},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return xh?kh(this,e,t)||0:Ch(this,e,t)}}),O),Af=Zn,Mh=Vn,xl=Lp,Ph=e([].join),d=Af!=Object,N=xl("join",","),Uh=(Bi({target:"Array",proto:!0,forced:d||!N},{join:function(e){return Ph(Mh(this),void 0===e?",":e)}}),Lu),Dh=Vn,Lh=Mo,Fh=_,R=Lp,jh=Math.min,Vh=[].lastIndexOf,Hh=!!Vh&&1/[1].lastIndexOf(1,-0)<0,p=R("lastIndexOf"),S=Hh||!p?function(e){if(Hh)return Uh(Vh,this,arguments)||0;var t=Dh(this),r=Fh(t),n=r-1;for((n=1<arguments.length?jh(n,Lh(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:Vh,Kh=(O({target:"Array",proto:!0,forced:S!==[].lastIndexOf},{lastIndexOf:S}),h.map),uf=(O({target:"Array",proto:!0,forced:!Pp("map")},{map:function(e){return Kh(this,e,1<arguments.length?arguments[1]:void 0)}}),O),Gh=Yn,zh=_,Bh=xp,sf=g(function(){return 4294967297!==[].push.call({length:4294967296},1)}),Zo=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),qh=(uf({target:"Array",proto:!0,arity:1,forced:sf||Zo},{push:function(e){var t=Gh(this),r=zh(t),n=arguments.length;Bh(r+n);for(var i=0;i<n;i++)t[r]=arguments[i],r++;return t.length=r}}),zn),Yh=Yn,$h=Zn,Jh=_,Xh=TypeError,I={left:Vp(!1),right:Vp(!0)},Wh=I.left,T=w,x=Mu,Qh=(O({target:"Array",proto:!0,forced:!Lp("reduce")||!x&&79<T&&T<83},{reduce:function(e){var t=arguments.length;return Wh(this,e,t,1<t?arguments[1]:void 0)}}),I.right),Af=w,xl=Mu,Bi=(O({target:"Array",proto:!0,forced:!Lp("reduceRight")||!xl&&79<Af&&Af<83},{reduceRight:function(e){return Qh(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),O),Zh=k,ey=e([].reverse),d=[1,2],N=(Bi({target:"Array",proto:!0,forced:String(d)===String(d.reverse())},{reverse:function(){return Zh(this)&&(this.length=this.length),ey(this)}}),O),ty=k,ry=A,ny=Hn,iy=Po,oy=_,sy=Vn,ay=kp,Lu=Jn,uy=ji,R=Pp("slice"),cy=Lu("species"),ly=Array,fy=Math.max,py=(N({target:"Array",proto:!0,forced:!R},{slice:function(e,t){var r,n,i,o=sy(this),s=oy(o),a=iy(e,s),u=iy(void 0===t?s:t,s);if(ty(o)&&(r=o.constructor,(r=ry(r)&&(r===ly||ty(r.prototype))||ny(r)&&null===(r=r[cy])?void 0:r)===ly||void 0===r))return uy(o,a,u);for(n=new(void 0===r?ly:r)(fy(u-a,0)),i=0;a<u;a++,i++)a in o&&ay(n,i,o[a]);return n.length=i,n}}),h.some),dy=(O({target:"Array",proto:!0,forced:!Lp("some")},{some:function(e){return py(this,e,1<arguments.length?arguments[1]:void 0)}}),Po),hy=_,yy=kp,vy=Array,my=Math.max,gy=Hp,Ey=Math.floor,p=Kp,S=di.match(/firefox\/(\d+)/i),uf=!!S&&+S[1],sf=/MSIE|Trident/.test(di),Zo=di.match(/AppleWebKit\/(\d+)\./),x=!!Zo&&+Zo[1],T=O,I=e,wy=zn,Ty=Yn,by=_,_y=Up,Oy=Ca,Mu=g,Ry=p,xl=Lp,Sy=uf,Iy=sf,Ny=w,Ay=x,Cy=[],ky=I(Cy.sort),xy=I(Cy.push),Af=Mu(function(){Cy.sort(void 0)}),Bi=Mu(function(){Cy.sort(null)}),d=xl("sort"),My=!Mu(function(){if(Ny)return Ny<70;if(!(Sy&&3<Sy)){if(Iy)return!0;if(Ay)return Ay<603;for(var e,t,r,n="",i=65;i<76;i++){switch(e=String.fromCharCode(i),i){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(r=0;r<47;r++)Cy.push({k:e+r,v:t})}for(Cy.sort(function(e,t){return t.v-e.v}),r=0;r<Cy.length;r++)e=Cy[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),ji=(T({target:"Array",proto:!0,forced:Af||!Bi||!d||!My},{sort:function(e){void 0!==e&&wy(e);var t=Ty(this);if(My)return void 0===e?ky(t):ky(t,e);for(var r,n,i=[],o=by(t),s=0;s<o;s++)s in t&&xy(i,t[s]);for(Ry(i,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:Oy(e)>Oy(t)?1:-1})),r=i.length,s=0;s<r;)t[s]=i[s++];for(;s<o;)_y(t,s++);return t}}),Rc("Array"),O),Py=Yn,Uy=Po,Dy=Mo,Ly=_,Fy=xp,jy=Mp,Vy=kp,Hy=Up,Lu=Pp("splice"),Ky=Math.max,Gy=Math.min,N=(ji({target:"Array",proto:!0,forced:!Lu},{splice:function(e,t){var r,n,i,o,s,a,u=Py(this),c=Ly(u),l=Uy(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-l):(r=e-2,Gy(Ky(Dy(t),0),c-l)),Fy(c+r-n),i=jy(u,n),o=0;o<n;o++)(s=l+o)in u&&Vy(i,o,u[s]);if(r<(i.length=n)){for(o=l;o<c-n;o++)a=o+r,(s=o+n)in u?u[a]=u[s]:Hy(u,a);for(o=c;c-n+r<o;o--)Hy(u,o-1)}else if(n<r)for(o=c-n;l<o;o--)a=o+r-1,(s=o+n-1)in u?u[a]=u[s]:Hy(u,a);for(o=0;o<r;o++)u[o+l]=arguments[o+2];return u.length=c-n+r,i}}),C("flat"),C("flatMap"),O),zy=Yn,By=_,qy=Up,Yy=xp,R=1!==[].unshift(0),S=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),di=(N({target:"Array",proto:!0,arity:1,forced:R||S},{unshift:function(e){var t=zy(this),r=By(t),n=arguments.length;if(n){Yy(r+n);for(var i=r;i--;){var o=i+n;i in t?t[o]=t[i]:qy(t,o)}for(var s=0;s<n;s++)t[s]=arguments[s]}return t.length=r+n}}),f.Array,{exports:{}}),Zo={},$y=Fn,Jy=Vn,Xy=yi.f,Wy=Hp,Qy="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=(Zo.f=function(e){if(!Qy||"Window"!=$y(e))return Xy(Jy(e));var t=e;try{return Xy(t)}catch(t){return Wy(Qy)}},g(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),uf=g,Zy=Hn,ev=Fn,tv=p,rv=Object.isExtensible,sf=uf(function(){rv(1)})||tv?function(e){return!!Zy(e)&&(!tv||"ArrayBuffer"!=ev(e))&&(!rv||rv(e))}:rv,w=!g(function(){return Object.isExtensible(Object.preventExtensions({}))}),nv=O,iv=e,x=Yo,ov=Hn,sv=b,av=Gi.f,uv=yi,cv=Zo,lv=sf,fv=w,pv=!1,dv=$n("meta"),hv=0,yv=di.exports={enable:function(){yv.enable=function(){},pv=!0;var i=uv.f,o=iv([].splice),e={};e[dv]=1,i(e).length&&(uv.f=function(e){for(var t=i(e),r=0,n=t.length;r<n;r++)if(t[r]===dv){o(t,r,1);break}return t},nv({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:cv.f}))},fastKey:function(e,t){if(!ov(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!sv(e,dv)){if(!lv(e))return"F";if(!t)return"E";Gp(e)}return e[dv].objectID},getWeakData:function(e,t){if(!sv(e,dv)){if(!lv(e))return!0;if(!t)return!1;Gp(e)}return e[dv].weakData},onFreeze:function(e){return fv&&pv&&lv(e)&&!sv(e,dv)&&Gp(e),e}},vv=(x[dv]=!0,E),mv=Hn,gv=da,I=O,xl=v,Ev=e,Mu=ts,wv=xo,T=di.exports,Tv=Aa,bv=Sc,Af=E,_v=Hn,Bi=g,d=Cf,ji=Xu,Ov=xo,Rv=Gi.f,Sv=ha,Iv=zp,Nv=_a,Av=Sc,Cv=Aa,kv=Qu,xv=Rc,Mv=r,Pv=di.exports.fastKey,Uv=hi.set,Dv=hi.getterFor;function Lv(e){var r=Ev(Xp[e]);wv(Xp,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(Yp&&!_v(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return Yp&&!_v(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(Yp&&!_v(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}Lu=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},N={getConstructor:function(e,r,n,i){function o(e,t,r){var n,i=u(e),o=s(e,t);return o?o.value=r:(i.last=o={index:n=Pv(t,!0),key:t,value:r,previous:t=i.last,next:void 0,removed:!1},i.first||(i.first=o),t&&(t.next=o),Mv?i.size++:e.size++,"F"!==n&&(i.index[n]=o)),e}function s(e,t){var r,e=u(e),n=Pv(t);if("F"!==n)return e.index[n];for(r=e.first;r;r=r.next)if(r.key==t)return r}var e=e(function(e,t){Av(e,a),Uv(e,{type:r,index:Sv(null),first:void 0,last:void 0,size:0}),Mv||(e.size=0),null!=t&&Cv(t,e[i],{that:e,AS_ENTRIES:n})}),a=e.prototype,u=Dv(r);return Iv(a,{clear:function(){for(var e=u(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,Mv?e.size=0:this.size=0},delete:function(e){var t,r,n=u(this),e=s(this,e);return e&&(t=e.next,r=e.previous,delete n.index[e.index],e.removed=!0,r&&(r.next=t),t&&(t.previous=r),n.first==e&&(n.first=t),n.last==e&&(n.last=r),Mv?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=Nv(e,1<arguments.length?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),Iv(a,n?{get:function(e){e=s(this,e);return e&&e.value},set:function(e,t){return o(this,0===e?0:e,t)}}:{add:function(e){return o(this,e=0===e?0:e,e)}}),Mv&&Rv(a,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",i=Dv(t),o=Dv(n);kv(e,t,function(e,t){Uv(this,{type:n,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:{value:e.target=void 0,done:!0}},r?"entries":"values",!r,!0),xv(t)}},qp=-1!==(R="Map").indexOf("Map"),Yp=-1!==R.indexOf("Weak"),$p=qp?"set":"add",Jp=xl.Map,Xp=Jp&&Jp.prototype,S={},Mu(R,!Af(Wp=Jp)||!(Yp||Xp.forEach&&!Bi(function(){(new Jp).entries().next()})))?(Wp=N.getConstructor(Lu,R,qp,$p),T.enable()):Mu(R,!0)&&(f=(Bp=new Wp)[$p](Yp?{}:-0,1)!=Bp,p=Bi(function(){Bp.has(1)}),uf=d(function(e){new Jp(e)}),Yo=!Yp&&Bi(function(){for(var e=new Jp,t=5;t--;)e[$p](t,t);return!e.has(-0)}),uf||(((Wp=Lu(function(e,t){bv(e,Xp);r=new Jp,e=e,n=Wp,gv&&vv(e=e.constructor)&&e!==n&&mv(e=e.prototype)&&e!==n.prototype&&gv(r,e);var r,n=r;return null!=t&&Tv(t,n[$p],{that:n,AS_ENTRIES:qp}),n})).prototype=Xp).constructor=Wp),(p||Yo)&&(Lv("delete"),Lv("has"),qp&&Lv("get")),(Yo||f)&&Lv($p),Yp&&Xp.clear&&delete Xp.clear),S.Map=Wp,I({global:!0,constructor:!0,forced:Wp!=Jp},S),ji(Wp,R),Yp||N.setStrong(Wp,R,qp);function Fv(e,t){for(var r=0,n=Kv(t),i=new e(n);r<n;)i[r]=t[r++];return i}function jv(e,t,r,n){for(var i,o,s,a=Bv(e),u=zv(a),c=Gv(t,r),l=$v(null),f=Yv(u),p=0;p<f;p++)s=u[p],(o=qv(c(s,p,a)))in l?Wv(l[o],s):l[o]=[s];if(n&&(i=n(a))!==Xv)for(o in l)l[o]=Jv(i,l[o]);return l}function Vv(e){for(var t,r,n=rm(this),i=tm(n),o=em(e,1<arguments.length?arguments[1]:void 0),s=new im,a=nm(i),u=0;u<a;u++)t=o(r=i[u],u,n),sm(s,t)?um(om(s,t),r):am(s,t,[r]);return s}function Hv(e){return pm[e].prototype}var Kv=_,Gv=_a,zv=Zn,Bv=Yn,qv=Xn,Yv=_,$v=ha,Jv=Fv,Xv=Array,Wv=e([].push),Qv=jv,b=C,Zv=(O({target:"Array",proto:!0},{group:function(e){return Qv(this,e,1<arguments.length?arguments[1]:void 0)}}),b("group"),jv),yi=C,em=(O({target:"Array",proto:!0,forced:!Lp("groupBy")},{groupBy:function(e){return Zv(this,e,1<arguments.length?arguments[1]:void 0)}}),yi("groupBy"),_a),Zo=e,tm=Zn,rm=Yn,nm=_,im=Kn("Map"),sf=im.prototype,om=Zo(sf.get),sm=Zo(sf.has),am=Zo(sf.set),um=Zo([].push),w=C,x=Vv,da=(O({target:"Array",proto:!0,name:"groupToMap",forced:!Lp("groupByToMap")},{groupByToMap:x}),w("groupByToMap"),C),cm=(O({target:"Array",proto:!0},{groupToMap:Vv}),da("groupToMap"),_),lm=Vn,ts=C,fm=Array,pm=(O({target:"Array",proto:!0},{toReversed:function(){for(var e=lm(this),t=fm,r=cm(e),n=new t(r),i=0;i<r;i++)n[i]=e[r-i-1];return n}}),ts("toReversed"),v),di=O,dm=zn,hm=Vn,ym=Fv,xl=C,vm=Array,mm=e(Hv("Array").sort),Mu=(di({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&dm(e);var t=hm(this),t=ym(vm,t);return mm(t,e)}}),xl("toSorted"),O),d=C,gm=xp,Em=_,wm=Po,Tm=Vn,bm=Mo,_m=Array,Om=Math.max,Rm=Math.min,Sm=(Mu({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,i,o,s=Tm(this),a=Em(s),u=wm(e,a),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,a-u):(r=e-2,Rm(Om(bm(t),0),a-u)),i=gm(a+r-n),o=_m(i);c<u;c++)o[c]=s[c];for(;c<u+r;c++)o[c]=arguments[c-u+2];for(;c<i;c++)o[c]=s[c+n-r];return o}}),d("toSpliced"),_),Im=Mo,Nm=RangeError,Am=Vn,Cm=Array;O({target:"Array",proto:!0},{with:function(e,t){var r=Am(this),n=Cm,i=t,o=Sm(r),s=(e=Im(e))<0?o+e:e;if(o<=s||s<0)throw Nm("Incorrect index");for(var a=new n(o),u=0;u<o;u++)a[u]=u===s?i:r[u];return a}});Bi=v,uf=Mi,Lu=E,p=Ao,Yo=xo,f=Jn("asyncIterator"),I=Bi.AsyncIterator,S=uf.AsyncIteratorPrototype;if(S)h0=S;else if(Lu(I))h0=I.prototype;else if(uf.USE_FUNCTION_CONSTRUCTOR||Bi.USE_FUNCTION_CONSTRUCTOR)try{p0=p(p(p(Function("return async function*(){}()")()))),p(p0)===Object.prototype&&(h0=p0)}catch(gT){}Lu((h0=h0||{})[f])||Yo(h0,f,function(){return this});function km(e,t,r){var n=e.done;Vm.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function xm(e){Hm(this,{type:"AsyncFromSyncIterator",iterator:Fm(e),next:e.next})}function Mm(e,t,r,n){try{var i=Zm(e,"return");if(i)return Qm("Promise").resolve(Wm(i,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function Pm(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,s,a){var e={iterator:e,next:Jm(Xm(e).next)},u=ig("Promise"),c=e.iterator,t=e.next,l=0,f=void 0!==s;return!f&&p||tg(s),new u(function(r,n){var i=function(e){Mm(c,n,e,n)},o=function(){try{if(p&&f)try{ng(l)}catch(e){i(e)}u.resolve(rg(eg(t,c))).then(function(e){try{if(rg(e).done)p?(a.length=l,r(a)):r(!y&&(h||void 0));else{var t=e.value;try{f?u.resolve(p?s(t,l):s(t)).then(function(e){if(d)o();else if(h)e?o():Mm(c,r,!1,n);else if(p)try{a[l++]=e,o()}catch(e){i(e)}else e?Mm(c,r,y||t,n):o()},i):(a[l++]=t,o())}catch(e){i(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};o()})}}function Um(e,t){if(!Eg||!gg(e)||!Eg(e))return!1;for(var r,n=0,i=e.length;n<i;)if(!("string"==typeof(r=e[n++])||t&&void 0===r))return!1;return 0!==i}function Dm(e,t,r){r.get&&wg(r.get,t,{getter:!0}),r.set&&wg(r.set,t,{setter:!0}),Tg.f(e,t,r)}var Lm=o,Fm=Qn,ji=ha,jm=Bn,N=zp,R=hi,b=h0,Vm=Kn("Promise"),Hm=R.set,Km=R.getterFor("AsyncFromSyncIterator"),yi=(xm.prototype=N(ji(b),{next:function(){var n=Km(this);return new Vm(function(e,t){var r=Fm(Lm(n.next,n.iterator));km(r,e,t)})},return:function(){var n=Km(this).iterator;return new Vm(function(e,t){var r=jm(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=Fm(Lm(r,n));km(r,e,t)})}}),xm),Gm=o,zm=yi,Bm=Qn,qm=Sa,Ym=Bn,$m=Jn("asyncIterator"),Jm=zn,Xm=Qn,Wm=o,Qm=Kn,Zm=Bn,eg=o,tg=zn,rg=Qn,ng=xp,ig=Kn,Zn={toArray:Pm(0),forEach:Pm(1),every:Pm(2),some:Pm(3),find:Pm(4)},og=_a,sg=Yn,ag=A,ug=Sa,cg=Ra,lg=Bn,sf=Hv,fg=Kn,pg=yi,dg=Zn.toArray,hg=Jn("asyncIterator"),yg=sf("Array").values,vg=(O({target:"Array",stat:!0,forced:!0},{fromAsync:function(o){var s=this,e=arguments.length,a=1<e?arguments[1]:void 0,u=2<e?arguments[2]:void 0;return new(fg("Promise"))(function(e){var t=sg(o),r=(void 0!==a&&(a=og(a,u)),lg(t,hg)),n=r?void 0:cg(t)||yg,i=ag(s)?new s:[],r=r?function(e,t){t=arguments.length<2?Ym(e,$m):t;return t?Bm(Gm(t,e)):new zm(qm(e))}(t,r):new pg(ug(t,n));e(dg(r,a,i))})}}),h.filterReject),Zo=C,mg=(O({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return vg(this,e,1<arguments.length?arguments[1]:void 0)}}),Zo("filterOut"),h.filterReject),x=C,w=(O({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return mg(this,e,1<arguments.length?arguments[1]:void 0)}}),x("filterReject"),O),gg=k,Eg=Object.isFrozen,wg=(w({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!Um(e,!0))return!1;var t=e.raw;return t.length===e.length&&Um(t,!1)}}),Ti.exports),Tg=Gi,da=C,bg=Yn,_g=_,ts=(r&&(Dm(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=bg(this),t=_g(e);return 0==t?void 0:e[t-1]},set:function(e){var t=bg(this),r=_g(t);return t[0==r?0:r-1]=e}}),da("lastItem")),C),Og=Yn,Rg=_,di=(r&&(Dm(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=Og(this),e=Rg(e);return 0==e?0:e-1}}),ts("lastIndex")),e),Sg=zn,Ig=_,Ng=Yn,Ag=Mp,Cg=Kn("Map"),xl=Cg.prototype,kg=di(xl.forEach),xg=di(xl.has),Mg=di(xl.set),Pg=di([].push),Mu=C;O({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=Ng(this),i=Ig(n),o=Ag(n,0),s=new Cg,a=null!=e?Sg(e):function(e){return e},u=0;u<i;u++)r=a(t=n[u]),xg(s,r)||Mg(s,r,t);return kg(s,function(e){Pg(o,e)}),o}}),Mu("uniqueBy");function Ug(e,t,r){this.reason=e,this.targetEvaluations=t,this.message=r}function Dg(e,t,r){this.reason=e,this.targetEvaluations=t,this.message=r}kw.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},kw.prototype.refresh=function(){this.stop(),this.start()},kw.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)};var Lg,Fg,jg,Vg,Hg,Kg,Gg,zg,Bg,qg=kw,Yg=(Cw.prototype.start=function(){this.started=!0},Cw.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},Cw.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},Cw.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},Cw.prototype.close=function(){this.stop()},Cw),d=(Aw.prototype.on=function(e,t){this.listeners[e]=(this.listeners[e]||[]).concat(t)},Aw.prototype.off=function(e,t){this.listeners[e]=(this.listeners[e]||[]).filter(function(e){return e!==t})},Aw.prototype.emit=function(e,t){(this.listeners[e]||[]).forEach(function(e){e(t)})},Aw),v=(ce(Nw,Bg=d),Nw.prototype.isClientError=function(e){return!!(e&&400<=e.statusCode&&e.statusCode<500)},Nw.prototype.drainRepository=function(o){var e=this;return new Promise(function(i){return le(e,void 0,void 0,function(){var t,r,n=this;return fe(this,function(e){switch(e.label){case 0:return[4,null==(r=this.repository)?void 0:r.read()];case 1:return(t=e.sent())&&0!==t.length?o?this.eventDispatcher.dispatchXhrOrBeacon(t,function(){var e;i(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?i(null==(e=n.repository)?void 0:e.delete(t)):i()}):this.eventDispatcher.dispatch(t,function(){var e;i(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?i(null==(e=n.repository)?void 0:e.delete(t)):i()}):i(),[2]}})})})},Nw.prototype.drainQueue=function(i,o){var e=this,s=i.map(function(e){return e.toDto()});return new Promise(function(n){return le(e,void 0,void 0,function(){var t,r=this;return fe(this,function(e){return 0===i.length?n():o?(null!=(t=this.repository)&&t.add(s),this.eventDispatcher.dispatchXhrOrBeacon(i,function(){var e;n(null==(e=r.repository)?void 0:e.delete(s))},function(e){r.isClientError(e)?n(null==(e=r.repository)?void 0:e.delete(s)):n()})):this.eventDispatcher.dispatch(i,function(){n()},function(e){r.isClientError(e)?n():n(null==(e=r.repository)?void 0:e.add(s))}),[2]})})})},Nw.prototype.process=function(e){this.emit("queue",e),this.queue.enqueue(e)},Nw.prototype.start=function(){return le(this,void 0,void 0,function(){return fe(this,function(e){return this.queue.start(),[2]})})},Nw.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},Nw.prototype.flush=function(){this.queue.flush()},Nw.prototype.close=function(){this.stop()},Nw),$g=(Iw.isSessionEvent=function(e){return!!Br.isTrack(e)&&(e.event.key===Iw.SESSION_START_EVENT_NAME||e.event.key===Iw.SESSION_END_EVENT_NAME)},Iw.prototype.onSessionStarted=function(e,t,r){this.track(Iw.SESSION_START_EVENT_NAME,e,t,r)},Iw.prototype.onSessionEnded=function(e,t,r){this.track(Iw.SESSION_END_EVENT_NAME,e,t,r)},Iw.prototype.track=function(e,t,r,n){e={key:e,properties:{sessionId:t}},r=this.hackleUserResolver.resolve(r),r=this.decorateSession(r,t);this.core.track(e,r,n)},Iw.prototype.decorateSession=function(e,t){t=(new ze).add(Ge.SESSION,t).addIdentifiers(e.identifiers).build();return y(y({},e),{identifiers:t})},Iw.SESSION_START_EVENT_NAME="$session_start",Iw.SESSION_END_EVENT_NAME="$session_end",Iw),Jg=(ce(Sw,zg=v),Sw.prototype.process=function(e){var t;$g.isSessionEvent(e)||this.sessionManager.startNewSessionIfNeeded(this.userManager.currentUser,e.timestamp),this.exposureEventDedupDeterminer.isDedupTarget(e)||(e=e,t=null===(t=this.sessionManager).currentSessionId||e.user.identifiers[Ge.SESSION]?e:e.copyWithUser(y(y({},e.user),{identifiers:y(y({},e.user.identifiers),((e={})[Ge.SESSION]=t.sessionId,e))})),zg.prototype.process.call(this,t))},Sw),Xg=(Rw.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!Br.isExposure(e))return!1;Re.isEquals(e.user.identifiers,null==(t=this.currentUser)?void 0:t.identifiers)||(this.currentUser=e.user,this.cache=new Map);var t=[e.experiment.id,e.variationId,e.variationKey,e.decisionReason].join("-"),e=(new Date).getTime(),r=this.cache.get(t);return void 0!==r&&e-r<=this.exposureEventDedupIntervalMillis||(this.cache.set(t,e),!1)},Rw),Wg=(Ow.toEvent=function(e){var t;return{key:Ow.EVENT_KEY,properties:{level:Ow.LEVEL_ERROR,type:e.name,message:null!=(t=e.message)?t:"",$stacktrace:Ow._stacktrace(e)}}},Ow._stacktrace=function(e){return a.isNullOrUndefined(e.stack)?"":e.stack.split("\n").slice(0,Ow.STACK_TRACK_LIMIT).join("\n")},Ow.EVENT_KEY="$trace",Ow.LEVEL_ERROR="error",Ow.STACK_TRACK_LIMIT=30,Ow),Mi=(_w.prototype.evaluate=function(e,t){if(!this.supports(e))throw new Error("Unsupported EvaluatorRequest ".concat(e.toString()));var r;if(t.contains(e))throw r=t.stack.map(function(e){return e.toString()}).join(" - "),new Error("Circular evaluation has occurred [".concat(r," - ").concat(e.toString(),"]"));t.addRequest(e);try{return this.evaluateInternal(e,t)}finally{t.removeRequest(e)}},_w),Qg=(ce(bw,Gg=Mi),bw.prototype.supports=function(e){return void 0!==e.experiment},bw.prototype.evaluateInternal=function(e,t){return this.evaluationFlowFactory.getFlow(e.experiment.type).evaluate(e,t)},bw),Zg=(Tw.of=function(e,t,r,n,i,o){return o.returnValue=n,new Tw(i,t.targetEvaluations,e.parameter,r,n,o)},Tw.ofDefault=function(e,t,r,n){return this.of(e,t,void 0,e.defaultValue,r,n)},Tw),e0=(ce(ww,Kg=Mi),ww.prototype.supports=function(e){return void 0!==e.parameter},ww.prototype.evaluateInternal=function(e,t){var r={};if(r.requestValueType=e.requiredType,r.requestDefaultValue=e.defaultValue,a.isNullOrUndefined(e.user.identifiers[e.parameter.identifierType]))return Zg.ofDefault(e,t,s.IDENTIFIER_NOT_FOUND,r);var n=this.targetRuleDeterminer.determineTargetRuleOrNull(e,t);return a.isNotNullOrUndefined(n)?(r.targetRuleKey=n.key,r.targetRuleName=n.name,this.evaluation(e,t,n.value,s.TARGET_RULE_MATCH,r)):this.evaluation(e,t,e.parameter.defaultValue,s.DEFAULT_RULE,r)},ww.prototype.evaluation=function(e,t,r,n,i){return"UNKNOWN"===e.requiredType||"NULL"!==e.requiredType&&typeof e.defaultValue!=typeof r.rawValue?Zg.ofDefault(e,t,s.TYPE_MISMATCH,i):Zg.of(e,t,r.id,r.rawValue,n,i)},ww),t0=(Ew.prototype.with=function(e){return new Ew(e,this.targetEvaluations,this.experiment,this.variationId,this.variationKey,this.config)},Ew.of=function(e,t,r,n){var i=this.config(e.workspace,r);return new Ew(n,t.targetEvaluations,e.experiment,r.id,r.key,i)},Ew.ofDefault=function(e,t,r){var n=e.experiment._getVariationByKeyOrNull(e.defaultVariationKey);return a.isNotNullOrUndefined(n)?this.of(e,t,n,r):new Ew(r,t.targetEvaluations,e.experiment,void 0,e.defaultVariationKey,void 0)},Ew.config=function(e,t){if(!a.isNullOrUndefined(t.parameterConfigurationId))return a.requiredNotNullOrUndefined(e.getParameterConfigurationOrNull(t.parameterConfigurationId),function(){return"ParameterConfiguration[".concat(t.parameterConfigurationId,"]")})},Ew),r0=(gw.prototype.isEquals=function(e){return this.type===e.type&&this.id===e.id},gw),n0=(mw.create=function(){return new mw},Object.defineProperty(mw.prototype,"stack",{get:function(){return Array.from(this._stack)},enumerable:!1,configurable:!0}),Object.defineProperty(mw.prototype,"targetEvaluations",{get:function(){return Array.from(this._targetEvaluations)},enumerable:!1,configurable:!0}),mw.prototype.contains=function(t){return this._stack.some(function(e){return e.key.isEquals(t.key)})},mw.prototype.addRequest=function(e){this._stack.push(e)},mw.prototype.removeRequest=function(e){e=this._stack.indexOf(e,0);-1<e&&this._stack.splice(e,1)},mw.prototype.get=function(t){return this._targetEvaluations.find(function(e){return e instanceof t0&&e.experiment.id===t.id})},mw.prototype.addEvaluation=function(e){this._targetEvaluations.push(e)},mw),i0=(vw.of=function(e,t,r,n){return new vw(e,t,r,n)},vw.by=function(e,t){return new vw(e.workspace,e.user,t,"A")},vw.prototype.toString=function(){return"EvaluatorRequest(type=".concat(this.experiment.type,", key=").concat(this.experiment.key,")")},vw),o0=(yw.of=function(e,t,r,n,i){return new yw(e,t,r,n,i)},yw.prototype.toString=function(){return"EvaluatorRequest(type=".concat(this.key.type,", key=").concat(this.parameter.key,")")},yw),s0=(hw.asString=function(e){switch(typeof e){case"string":return e;case"number":return e.toString();default:return}},hw.asNumber=function(e){switch(typeof e){case"number":return this.asActualNumber(e);case"string":return this.asActualNumber(Number(e));default:return}},hw.asActualNumber=function(e){return!isNaN(e)&&isFinite(e)?e:void 0},hw),a0=(dw.prototype.getVariation=function(e,t){if(0!==this.storages.length)for(var r=0,n=this.storages;r<n.length;r++){var i=n[r].getVariation(e,t);if(void 0!==i)return i}},dw),u0=(pw.prototype.getVariation=function(e,t){var r=this.get(e);if(r)return e._getVariationByIdOrNull(r)},pw.prototype.get=function(e){e=this.listStorage.getItem(e.id.toString());return s0.asNumber(e)},pw.prototype.getAll=function(){var r=new Map;return this.listStorage.entries().forEach(function(e){var t=e[0],e=e[1],t=s0.asNumber(t),e=s0.asNumber(e);a.isNullOrUndefined(t)||t<0||a.isNullOrUndefined(e)||t<0||r.set(t,e)}),r},pw.prototype.set=function(e,t){this.listStorage.setItem(e.id.toString(),t.toString())},pw.prototype.remove=function(e){this.listStorage.removeItem(e.id.toString())},pw.prototype.clear=function(){this.listStorage.clear()},pw),c0=(fw.prototype.add=function(e){this.evaluators.push(e)},fw.prototype.evaluate=function(t,e){var r=this.evaluators.find(function(e){return e.supports(t)});if(a.isNullOrUndefined(r))throw new Error("Unsupported EvaluatorRequest [".concat(t.toString(),"]"));return r.evaluate(t,e)},fw),l0=(lw.prototype.matches=function(t,r,e){var n=this;return e.conditions.every(function(e){return n._matches(t,r,e)})},lw.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(r.key.type).matches(e,t,r)},lw),f0=(cw.prototype.matches=function(e,t){var r=this.valueMatcherFactory.getMatcher(t.valueType),n=this.operatorMatcherFactory.getMatcher(t.operator),e=this.userValueMatches(e,t,r,n);return this.typeMatches(t.type,e)},cw.prototype.userValueMatches=function(e,t,r,n){return Array.isArray(e)?this.arrayMatches(e,t,r,n):this.singleMatches(e,t,r,n)},cw.prototype.singleMatches=function(t,e,r,n){return e.values.some(function(e){return r.matches(n,t,e)})},cw.prototype.arrayMatches=function(e,t,r,n){var i=this;return e.some(function(e){return i.singleMatches(e,t,r,n)})},cw.prototype.typeMatches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},cw),Ao=(uw.prototype.booleanMatches=function(e,t){return e===t},uw.prototype.numberMatches=function(e,t){return e===t},uw.prototype.stringMatches=function(e,t){return e===t},uw.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},uw),S=(aw.prototype.booleanMatches=function(e,t){return!1},aw.prototype.numberMatches=function(e,t){return!1},aw.prototype.stringMatches=function(e,t){return e.includes(t)},aw.prototype.versionMatches=function(e,t){return!1},aw),I=(sw.prototype.booleanMatches=function(e,t){return!1},sw.prototype.numberMatches=function(e,t){return!1},sw.prototype.stringMatches=function(e,t){return e.startsWith(t)},sw.prototype.versionMatches=function(e,t){return!1},sw),uf=(ow.prototype.booleanMatches=function(e,t){return!1},ow.prototype.numberMatches=function(e,t){return!1},ow.prototype.stringMatches=function(e,t){return e.endsWith(t)},ow.prototype.versionMatches=function(e,t){return!1},ow),Bi=(iw.prototype.booleanMatches=function(e,t){return!1},iw.prototype.numberMatches=function(e,t){return t<e},iw.prototype.stringMatches=function(e,t){return t<e},iw.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},iw),p=(nw.prototype.booleanMatches=function(e,t){return!1},nw.prototype.numberMatches=function(e,t){return t<=e},nw.prototype.stringMatches=function(e,t){return t<=e},nw.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},nw),p0=(rw.prototype.booleanMatches=function(e,t){return!1},rw.prototype.numberMatches=function(e,t){return e<t},rw.prototype.stringMatches=function(e,t){return e<t},rw.prototype.versionMatches=function(e,t){return e.isLessThan(t)},rw),Lu=(tw.prototype.booleanMatches=function(e,t){return!1},tw.prototype.numberMatches=function(e,t){return e<=t},tw.prototype.stringMatches=function(e,t){return e<=t},tw.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},tw),d0=(ew.prototype.getMatcher=function(e){switch(e){case"IN":return ew.IN_MATCHER;case"CONTAINS":return ew.CONTAINS_MATCHER;case"STARTS_WITH":return ew.STARTS_WITH_MATCHER;case"ENDS_WITH":return ew.ENDS_WITH_MATCHER;case"GT":return ew.GT_MATCHER;case"GTE":return ew.GTE_MATCHER;case"LT":return ew.LT_MATCHER;case"LTE":return ew.LTE_MATCHER}},ew.IN_MATCHER=new Ao,ew.CONTAINS_MATCHER=new S,ew.STARTS_WITH_MATCHER=new I,ew.ENDS_WITH_MATCHER=new uf,ew.GT_MATCHER=new Bi,ew.GTE_MATCHER=new p,ew.LT_MATCHER=new p0,ew.LTE_MATCHER=new Lu,ew),Yo=(ZE.prototype.matches=function(e,t,r){t=s0.asString(t),r=s0.asString(r);return!a.isNullOrUndefined(t)&&!a.isNullOrUndefined(r)&&e.stringMatches(t,r)},ZE),f=(QE.prototype.matches=function(e,t,r){t=s0.asNumber(t),r=s0.asNumber(r);return!a.isNullOrUndefined(t)&&!a.isNullOrUndefined(r)&&e.numberMatches(t,r)},QE),ha=(WE.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},WE),hi=(XE.prototype.matches=function(e,t,r){t=It.tryParse(t),r=It.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},XE),h0=(JE.prototype.matches=function(e,t,r){return!1},JE),y0=($E.prototype.getMatcher=function(e){switch(e){case"STRING":case"JSON":return $E.STRING_MATCHER;case"NUMBER":return $E.NUMBER_MATCHER;case"BOOLEAN":return $E.BOOLEAN_MATCHER;case"VERSION":return $E.VERSION_MATCHER;case"NULL":case"UNKNOWN":return $E.NULL_MATCHER}},$E.STRING_MATCHER=new Yo,$E.NUMBER_MATCHER=new f,$E.BOOLEAN_MATCHER=new ha,$E.VERSION_MATCHER=new hi,$E.NULL_MATCHER=new h0,$E),v0=(YE.prototype.matches=function(e,t,r){e=this.userValueResolver.resolveOrNull(e.user,r.key);return!a.isNullOrUndefined(e)&&this.valueOperatorMatcher.matches(e,r.match)},YE),m0=(qE.prototype.resolveOrNull=function(e,t){switch(t.type){case"USER_ID":return e.identifiers[t.name];case"USER_PROPERTY":return e.properties[t.name];case"HACKLE_PROPERTY":return e.hackleProperties[t.name];case"SEGMENT":case"AB_TEST":case"FEATURE_FLAG":case"EVENT_PROPERTY":throw new Error("Unsupported TargetKeyType [".concat(t.type,"]"))}},qE),g0=(BE.prototype.matches=function(t,r,e){var n=this;if("SEGMENT"!=e.key.type)throw new Error("Unsupported TargetKeyType [".concat(e.key.type,"]"));var i=e.match.values.some(function(e){return n._matches(t,r,e)});switch(e.match.type){case"MATCH":return i;case"NOT_MATCH":return!i}},BE.prototype._matches=function(e,t,r){if("string"!=typeof r)throw new Error("SegmentKey[".concat(r,"]"));var n=e.workspace.getSegmentOrNull(r);if(n)return this.segmentMatcher.matches(e,t,n);throw new Error("Segment[".concat(r,"]"))},BE),E0=(zE.prototype.matches=function(t,r,e){var n=this;return e.targets.some(function(e){return n._matches(t,r,e)})},zE.prototype._matches=function(t,r,e){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(t,r,e)})},zE),w0=(GE.prototype.matches=function(e,t,r){switch(r.key.type){case"AB_TEST":return this.abTestMatcher.matches(e,t,r);case"FEATURE_FLAG":return this.featureFlagMatcher.matches(e,t,r);case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":case"EVENT_PROPERTY":case"SEGMENT":throw new Error("Unsupported TargetKeyType [".concat(r.key.type,"]"))}},GE),R=(KE.prototype.matches=function(e,t,r){var n=a.requiredNotNullOrUndefined(s0.asNumber(r.key.name),function(){return"Invalid key [".concat(r.key.type,", ").concat(r.key.name,"]")}),n=this.experiment(e,n);if(a.isNullOrUndefined(n))return!1;var i=null!=(i=t.get(n))?i:this.evaluate(e,t,n);return this.evaluationMatches(i,r)},KE.prototype.evaluate=function(e,t,r){r=i0.by(e,r),r=this.evaluator.evaluate(r,t),e=this.resolve(e,r);return t.addEvaluation(e),e},KE),T0=(ce(HE,Hg=R),HE.prototype.experiment=function(e,t){return e.workspace.getExperimentOrNull(t)},HE.prototype.resolve=function(e,t){return e instanceof i0&&t.reason===s.TRAFFIC_ALLOCATED?t.with(s.TRAFFIC_ALLOCATED_BY_TARGETING):t},HE.prototype.evaluationMatches=function(e,t){return!!HE.AB_TEST_MATCHED_REASONS.includes(e.reason)&&this.valueOperatorMatcher.matches(e.variationKey,t.match)},HE.AB_TEST_MATCHED_REASONS=[s.OVERRIDDEN,s.TRAFFIC_ALLOCATED,s.EXPERIMENT_COMPLETED,s.TRAFFIC_ALLOCATED_BY_TARGETING],HE),b0=(ce(VE,Vg=R),VE.prototype.experiment=function(e,t){return e.workspace.getFeatureFlagOrNull(t)},VE.prototype.resolve=function(e,t){return t},VE.prototype.evaluationMatches=function(e,t){e="A"!==e.variationKey;return this.valueOperatorMatcher.matches(e,t.match)},VE),_0=(jE.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return this.userConditionMatcher;case"SEGMENT":return this.segmentConditionMatcher;case"AB_TEST":case"FEATURE_FLAG":return this.experimentConditionMatcher;case"EVENT_PROPERTY":throw new Error("Unsupported TargetKeyType [".concat(e,"]"))}},jE),O0=(FE.prototype.resolveOrNull=function(e,t,r){switch(r.type){case"VARIATION":return this.resolveVariation(e,r);case"BUCKET":return this.resolveBucket(e,r)}},FE.prototype.resolveVariation=function(e,t){return e.experiment._getVariationByIdOrNull(t.variationId)},FE.prototype.resolveBucket=function(e,t){var t=e.workspace.getBucketOrNull(t.bucketId),r=e.user.identifiers[e.experiment.identifierType];if(r){t=this.bucketer.bucketing(t,r);if(t)return e.experiment._getVariationByIdOrNull(t.variationId)}},FE),R0={murmurhash3_x86_32:function(e,t,r,n){for(var i,o=-4&(n=void 0===n?e.length:n),s=t,a=0;a<o;a+=4)i=255&e.charCodeAt(a)|(255&e.charCodeAt(a+1))<<8|(255&e.charCodeAt(a+2))<<16|(255&e.charCodeAt(a+3))<<24,i=(131071&(i=this.mul32(i,3432918353)))<<15|i>>>17,s=5*((524287&(s^=i=this.mul32(i,461845907)))<<13|s>>>19)+3864292196|0;switch(i=0,n%4){case 3:i=(255&e.charCodeAt(2+o))<<16;case 2:i|=(255&e.charCodeAt(1+o))<<8;case 1:i|=255&e.charCodeAt(o),i=(131071&(i=this.mul32(i,3432918353)))<<15|i>>>17,s^=i=this.mul32(i,461845907)}return s=this.mul32(s=(s^=n)^s>>>16,2246822507),(s=this.mul32(s^=s>>>13,3266489909))^s>>>16},mul32:function(e,t){var r=65535&t;return((t-r)*e|0)+(r*e|0)|0}},S0=(LE.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},LE.prototype.calculateSlotNumber=function(e,t,r){r=R0.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},LE),I0=(DE.prototype.evaluate=function(e,t){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,this.nextFlow):t0.ofDefault(e,t,s.TRAFFIC_NOT_ALLOCATED)},DE.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new DE,n=0,i=e.reverse();n<i.length;n++)r=new DE(i[n],r);return r},DE),N0=(UE.prototype.evaluate=function(e,t,r){var n=this.overrideResolver.resolveOrNull(e,t);if(!n)return r.evaluate(e,t);switch(e.experiment.type){case"AB_TEST":return t0.of(e,t,n,s.OVERRIDDEN);case"FEATURE_FLAG":return t0.of(e,t,n,s.INDIVIDUAL_TARGET_MATCH)}},UE),A0=(PE.prototype.evaluate=function(e,t,r){return"DRAFT"===e.experiment.status?t0.ofDefault(e,t,s.EXPERIMENT_DRAFT):r.evaluate(e,t)},PE),C0=(ME.prototype.evaluate=function(e,t,r){if("PAUSED"!==e.experiment.status)return r.evaluate(e,t);switch(e.experiment.type){case"AB_TEST":return t0.ofDefault(e,t,s.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return t0.ofDefault(e,t,s.FEATURE_FLAG_INACTIVE)}},ME),k0=(xE.prototype.evaluate=function(e,t,r){if("COMPLETED"!==e.experiment.status)return r.evaluate(e,t);r=e.experiment._winnerVariationOrNull();if(r)return t0.of(e,t,r,s.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(e.experiment.id,"]"))},xE),x0=(kE.prototype.evaluate=function(e,t,r){if("AB_TEST"!==e.experiment.type)throw new Error("experiment type must be AB_TEST [".concat(e.experiment.id,"]"));return this.experimentTargetDeterminer.isUserInExperimentTarget(e,t)?r.evaluate(e,t):t0.ofDefault(e,t,s.NOT_IN_EXPERIMENT_TARGET)},kE),M0=(CE.prototype.evaluate=function(e,t,r){if("RUNNING"!==e.experiment.status)throw new Error("experiment status must be RUNNING [".concat(e.experiment.id,"]"));if("AB_TEST"!==e.experiment.type)throw new Error("experiment type must be AB_TEST [".concat(e.experiment.id,"]"));var n=this.actionResolver.resolveOrNull(e,t,e.experiment.defaultRule);return n?n.isDropped?t0.ofDefault(e,t,s.VARIATION_DROPPED):t0.of(e,t,n,s.TRAFFIC_ALLOCATED):t0.ofDefault(e,t,s.TRAFFIC_NOT_ALLOCATED)},CE),P0=(AE.prototype.evaluate=function(e,t,r){if("RUNNING"!==e.experiment.status)throw new Error("experiment status must be RUNNING [".concat(e.experiment.id,"]"));if("FEATURE_FLAG"!==e.experiment.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(e.experiment.id,"]"));if(!e.user.identifiers[e.experiment.identifierType])return r.evaluate(e,t);var n=this.targetRuleDeterminer.determineTargetRuleOrNull(e,t);if(!n)return r.evaluate(e,t);r=this.actionResolver.resolveOrNull(e,t,n.action);if(r)return t0.of(e,t,r,s.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(e.experiment.id,"]"))},AE),U0=(NE.prototype.evaluate=function(e,t,r){if("RUNNING"!==e.experiment.status)throw new Error("experiment status must be RUNNING [".concat(e.experiment.id,"]"));if("FEATURE_FLAG"!==e.experiment.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(e.experiment.id,"]"));if(!e.user.identifiers[e.experiment.identifierType])return t0.ofDefault(e,t,s.DEFAULT_RULE);var n=this.actionResolver.resolveOrNull(e,t,e.experiment.defaultRule);if(n)return t0.of(e,t,n,s.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(e.experiment.id,"]"))},NE),D0=(IE.prototype.evaluate=function(e,t,r){var n=e.experiment.containerId;if(!n)return r.evaluate(e,t);var i=e.workspace.getContainerOrNull(n);if(i)return this.containerResolver.isUserInContainerGroup(e,t,i)?r.evaluate(e,t):t0.ofDefault(e,t,s.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("container[".concat(n,"]"))},IE),L0=(SE.prototype.evaluate=function(e,t,r){return e.user.identifiers[e.experiment.identifierType]?r.evaluate(e,t):t0.ofDefault(e,t,s.IDENTIFIER_NOT_FOUND)},SE),F0=(RE.prototype.isUserInExperimentTarget=function(t,r){var n=this;return 0===t.experiment.targetAudiences.length||t.experiment.targetAudiences.some(function(e){return n.targetMatcher.matches(t,r,e)})},RE),j0=(OE.prototype.determineTargetRuleOrNull=function(t,r){var n=this;return t.experiment.targetRules.find(function(e){return n.targetMatcher.matches(t,r,e.target)})},OE),V0=(_E.prototype.resolveOrNull=function(e,t){var r;return null!=(r=null!=(r=this.resolveManualOverride(e))?r:this._resolveUserOverride(e))?r:this._resolveSegmentOverride(e,t)},_E.prototype.resolveManualOverride=function(e){return this.manualOverrideStorage.getVariation(e.experiment,e.user)},_E.prototype._resolveUserOverride=function(e){var t=e.experiment,e=e.user.identifiers[t.identifierType];if(e){e=t.userOverrides.get(e);if(e)return t._getVariationByIdOrNull(e)}},_E.prototype._resolveSegmentOverride=function(t,r){var n=this,e=t.experiment.segmentOverrides.find(function(e){return n.targetMatcher.matches(t,r,e.target)});if(e)return this.actionResolver.resolveOrNull(t,r,e.action)},_E),H0=(bE.prototype.isUserInContainerGroup=function(e,t,r){var n=e.user.identifiers[e.experiment.identifierType];if(a.isNullOrUndefined(n))return!1;var i=e.workspace.getBucketOrNull(r.bucketId);if(a.isNullOrUndefined(i))throw new Error("Bucket[".concat(r.bucketId,"]"));i=this.bucketer.bucketing(i,n);if(a.isNullOrUndefined(i))return!1;n=r.getGroupOrNull(i.variationId);if(a.isNullOrUndefined(n))throw new Error("ContainerGroup[".concat(i.variationId,"]"));return n.experiments.includes(e.experiment.id)},bE),K0=(TE.prototype.determineTargetRuleOrNull=function(t,r){var n=this;return t.parameter.targetRules.find(function(e){return n.matches(t,r,e)})},TE.prototype.matches=function(e,t,r){if(!this.targetMatcher.matches(e,t,r.target))return!1;t=e.user.identifiers[e.parameter.identifierType];if(a.isNullOrUndefined(t))return!1;e=e.workspace.getBucketOrNull(r.bucketId);if(a.isNullOrUndefined(e))throw new Error("bucket[".concat(r.bucketId,"]"));return a.isNotNullOrUndefined(this.bucketer.bucketing(e,t))},TE),G0=(wE.prototype.determineInAppMessageTargetRule=function(e,t){return this.matches(e,t,e.message)?e.message:void 0},wE.prototype.matches=function(t,r,e){var n=this;return!!e.supportsWeb()&&(!!e.targetContext.overrides.some(function(e){return n.targetMatcher.matches(t,r,e.toTarget())})||!!e.isActive()&&!!e.dateRange.within(t.timestamp)&&(0===e.targetContext.targets.length||e.targetContext.targets.some(function(e){return n.targetMatcher.matches(t,r,e)})))},wE),z0=(EE.prototype.determineInAppMessage=function(r,n){var i=this,e=r.workspace.getInAppMessages().reduce(function(e,t){t=i.matches(r,n,t);return!t||e&&e.priority>=t.priority?e:t},null);return null==e?void 0:e.message},EE.prototype.matches=function(r,n,i){var o=this;return i.eventTriggerRules.reduce(function(e,t){return t.eventKey!==r.track.event.key||0!==t.targets.length&&!t.targets.some(function(e){return o.targetMather.matches(r,n,e)})||e&&e.priority>=t.priority?e:{message:i,priority:t.priority}},null)},EE),B0=(gE.prototype.matches=function(t,r,e){var n=this;return e.conditions.every(function(e){return n._matches(t,r,e)})},gE.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(r.key.type).matches(e,t,r)},gE),q0=(mE.prototype.matches=function(e,t,r){if(a.isNullOrUndefined(e.event))return!1;e=this.eventValueResolver.resolveOrNull(e.event,r.key);return!a.isNullOrUndefined(e)&&this.valueOperatorMatcher.matches(e,r.match)},mE),Y0=(vE.prototype.resolveOrNull=function(e,t){var r;switch(t.type){case"EVENT_PROPERTY":return null==(r=null==e?void 0:e.properties)?void 0:r[t.name];case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":case"SEGMENT":case"AB_TEST":case"FEATURE_FLAG":throw new Error("Unsupported TargetKeyType [".concat(t.type,"]"))}},vE),$0=(yE.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return this.userConditionMatcher;case"SEGMENT":return this.segmentConditionMatcher;case"AB_TEST":case"FEATURE_FLAG":throw new Error("Unsupported TargetKeyType [".concat(e,"]"));case"EVENT_PROPERTY":return this.eventConditionMatcher}},yE),J0=(hE.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},hE),X0=(dE.prototype.create=function(r,e){var n=this,i=this.clock.currentMillis(),o=new Array,t=this.createEvent(r,e,i,{});return o.push(t),e.targetEvaluations.forEach(function(e){var t;(t={})[dE.ROOT_TYPE]=r.key.type,t[dE.ROOT_ID]=r.key.id;e=n.createEvent(r,e,i,t);o.push(e)}),o},dE.prototype.createEvent=function(e,t,r,n){var i;if(t instanceof t0)return n[dE.CONFIG_ID_PROPERTY_KEY]=null==(i=t.config)?void 0:i.id,Br.exposure(e.user,t,n,r);if(t instanceof Zg)return Br.remoteConfig(e.user,t,y(y({},n),t.properties),r);throw new Error("Unsupported Evaluation [".concat(typeof t,"]"))},dE.ROOT_TYPE="$targetingRootType",dE.ROOT_ID="$targetingRootId",dE.CONFIG_ID_PROPERTY_KEY="$parameterConfigurationId",dE),W0=(ce(pE,jg=Mi),pE.prototype.supports=function(e){return!!("message"in e&&e.message instanceof Kt)},pE.prototype.evaluateInternal=function(e,t){e=this.determiner.determineInAppMessageTargetRule(e,t);return new Ug(e?s.TARGET_RULE_MATCH:s.DEFAULT_RULE,t.targetEvaluations,e)},pE),Q0=(fE.of=function(e,t,r,n){return new fE(e,t,r,n)},fE.prototype.toString=function(){return"EvaluatorRequest(type=".concat(this.key.type,", key=").concat(this.message.key,")")},fE),Z0=(ce(lE,Fg=Mi),lE.prototype.supports=function(e){return!!("track"in e&&e.track instanceof Yr)},lE.prototype.evaluateInternal=function(e,t){e=this.determiner.determineInAppMessage(e,t);return new Dg(e?s.TARGET_RULE_MATCH:s.DEFAULT_RULE,t.targetEvaluations,e)},lE),eE=(cE.of=function(e,t){return new cE(e,t)},cE.prototype.toString=function(){return"EvaluatorRequest(type=".concat(this.key.type,", key=").concat(this.track.insertId,")")},cE),tE=de.log,rE=(uE.create=function(e,t,r){var n=new c0,r=new a0(r),r=new J0(n,r),i=new Qg(r),o=new e0(r.remoteConfigParameterTargetRuleDeterminer),s=new Z0(r.trackInAppMessageDeterminer),r=new W0(r.inAppMessageDeterminer);return n.add(i),n.add(o),new uE(i,o,r,s,e,new X0(zt.instance),t,new nE)},uE.prototype.experiment=function(e,t,r){var n=this;if(!e)return tE.error("experimentKey must not be empty"),De.of(r,s.INVALID_INPUT);var i=this.workspaceFetcher.get();if(!i)return tE.warn("SDK not ready."),De.of(r,s.SDK_NOT_READY);e=i.getExperimentOrNull(e);if(!e)return tE.warn("Experiment does not exist."),De.of(r,s.EXPERIMENT_NOT_FOUND);i=i0.of(i,t,e,r),t=this.experimentInternal(i),e=t[0],r=t[1];return this.eventFactory.create(i,e).forEach(function(e){return n.eventProcessor.process(e)}),r},uE.prototype.experiments=function(r){var n=this,i=new hr(function(e,t){return e.id===t.id}),o=this.workspaceFetcher.get();return o&&o.getExperiments().forEach(function(e){var t=i0.of(o,r,e,"A"),t=n.experimentInternal(t),t=(t[0],t[1]);i.add(e,t)}),i},uE.prototype.experimentInternal=function(e){var e=this.experimentEvaluator.evaluate(e,n0.create()),t=null!=(t=e.config)?t:new Fe;return[e,De.of(e.variationKey,e.reason,t)]},uE.prototype.featureFlag=function(e,t){var r=this;if(!e)return tE.error("featureKey must not be empty"),Le.off(s.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return tE.warn("SDK not ready."),Le.off(s.SDK_NOT_READY);e=n.getFeatureFlagOrNull(e);if(!e)return tE.warn("FeatureFlag does not exist."),Le.off(s.FEATURE_FLAG_NOT_FOUND);n=i0.of(n,t,e,"A"),t=this.featureFlagInternal(n),e=t[0],t=t[1];return this.eventFactory.create(n,e).forEach(function(e){return r.eventProcessor.process(e)}),t},uE.prototype.featureFlags=function(r){var n=this,i=new hr(function(e,t){return e.id===t.id}),o=this.workspaceFetcher.get();return o&&o.getFeatureFlags().forEach(function(e){var t=i0.of(o,r,e,"A"),t=n.featureFlagInternal(t),t=(t[0],t[1]);i.add(e,t)}),i},uE.prototype.featureFlagInternal=function(e){var e=this.experimentEvaluator.evaluate(e,n0.create()),t=null!=(t=e.config)?t:new Fe;return[e,"A"===e.variationKey?Le.off(e.reason,t):Le.on(e.reason,t)]},uE.prototype.trackInAppMessage=function(e){var t=this.workspaceFetcher.get();if(!t)return tE.warn("SDK not ready."),new xe(void 0,s.SDK_NOT_READY);t=new eE(t,e),e=this.trackInAppMessageEvaluator.evaluate(t,n0.create());return new xe(e.message,e.reason)},uE.prototype.inAppMessage=function(e,t,r){void 0===r&&(r=Date.now());var n=this.workspaceFetcher.get();if(!n)return tE.warn("SDK not ready."),new xe(void 0,s.SDK_NOT_READY);e=n.getInAppMessageOrNull(e);if(!e)return tE.warn("In app message does not exist."),new xe(void 0,s.IN_APP_MESSAGE_NOT_FOUND);n=Q0.of(n,e,t,r),e=this.inAppMessageEvaluator.evaluate(n,n0.create());return new xe(e.message,e.reason)},uE.prototype.track=function(e,t,r){var n;void 0===r&&(r=(new Date).getTime()),e?"object"==typeof e?"object"!=typeof e||e.key&&"string"==typeof e.key?(n=(null==(n=this.workspaceFetcher.get())?void 0:n.getEventTypeOrNull(e.key))||new Me(0,e.key),this.eventProcessor.process(Br.track(n,e,t,r))):tE.warn("Event key must be not null. or event key must be string type."):tE.warn("Event must be event type."):tE.warn("event must not be null.")},uE.prototype.trackException=function(e,t){this.errorDedupDeterminer.isDedupTarget(e)||(e=Wg.toEvent(e),this.flush(),this.track(e,t),this.flush())},uE.prototype.flush=function(){this.eventProcessor.flush()},uE.prototype.remoteConfig=function(e,t,r,n){var i=this,o=this.workspaceFetcher.get();if(a.isNullOrUndefined(o))return tE.warn("SDK not ready."),Ue.of(n,s.SDK_NOT_READY);e=o.getRemoteConfigParameterOrNull(e);if(a.isNullOrUndefined(e))return tE.warn("Remote config parameter does not exist."),Ue.of(n,s.REMOTE_CONFIG_PARAMETER_NOT_FOUND);o=o0.of(o,t,e,r,n),t=this.remoteConfigEvaluator.evaluate(o,n0.create());return this.eventFactory.create(o,t).forEach(function(e){return i.eventProcessor.process(e)}),Ue.of(t.value,t.reason)},uE.prototype.onReady=function(e,t){this.onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},uE.prototype.onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(tE.debug("Start HackleClient initializing"),new Promise(function(e){t=e})),n=setTimeout(function(){t({success:!1})},e);return this.readyPromise.then(function(){clearTimeout(n),t({success:!0})},function(e){clearTimeout(n),t({success:!1,error:e})}),Promise.race([this.readyPromise,r]).then(function(e){return e.success?tE.debug("HackleClient onInitialized Success"):e.error instanceof Error?tE.error("HackleClient onInitialized Failed. ".concat(e.error.message)):tE.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},uE.prototype.close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},uE),nE=(aE.prototype.isDedupTarget=function(e){return!!this._isSameError(e,this.previous)||(this.previous=e,!1)},aE.prototype._isSameError=function(e,t){return!a.isNullOrUndefined(t)&&e.name===t.name&&e.message===t.message&&e.stack===t.stack},aE),iE=(sE.prototype.install=function(e,t){this._install("onerror",e,t),this._install("onunhandledrejection",e,t)},sE.prototype._install=function(e,t,r){e in this._installed||((0,this._installations[e])(t,r),this._installed.push(e))},sE),oE=null;function sE(){this._installed=[],this._installations={onerror:xw,onunhandledrejection:Mw}}function aE(){}function uE(e,t,r,n,i,o,s,a){this.experimentEvaluator=e,this.remoteConfigEvaluator=t,this.trackInAppMessageEvaluator=n,this.inAppMessageEvaluator=r,this.workspaceFetcher=i,this.eventFactory=o,this.eventProcessor=s,this.errorDedupDeterminer=a,this.workspaceFetcher.start(),this.eventProcessor.start(),this.readyPromise=this.workspaceFetcher.onReady().then(function(){return{success:!0}},function(e){return{success:!1,error:e}})}function cE(e,t){this.key=new r0("IN_APP_MESSAGE",t.insertId),this.workspace=e,this.track=t,this.user=t.user,this.event=t.event}function lE(e){var t=Fg.call(this)||this;return t.determiner=e,t}function fE(e,t,r,n){this.key=new r0("IN_APP_MESSAGE",t.key),this.workspace=e,this.user=r,this.message=t,this.timestamp=n}function pE(e){var t=jg.call(this)||this;return t.determiner=e,t}function dE(e){this.clock=e}function hE(e,t){var r=new S0,e=new l0(new _0(e)),n=new O0(r),t=new V0(t,e,n),i=new H0(r),i=(this.abTestFlow=I0.of(new N0(t),new L0,new D0(i),new x0(new F0(e)),new A0,new C0,new k0,new M0(n)),this.featureFlagFlow=I0.of(new A0,new C0,new k0,new N0(t),new L0,new P0(new j0(e),n),new U0(n)),this.remoteConfigParameterTargetRuleDeterminer=new K0(e,r),new B0(new $0));this.inAppMessageDeterminer=new G0(i),this.trackInAppMessageDeterminer=new z0(i)}function yE(){var e=new f0(new y0,new d0),t=new v0(new m0,e);this.userConditionMatcher=t,this.segmentConditionMatcher=new g0(new E0(t)),this.eventConditionMatcher=new q0(new Y0,e)}function vE(){}function mE(e,t){this.eventValueResolver=e,this.valueOperatorMatcher=t}function gE(e){this.conditionMatcherFactory=e}function EE(e){this.targetMather=e}function wE(e){this.targetMatcher=e}function TE(e,t){this.targetMatcher=e,this.bucketer=t}function bE(e){this.bucketer=e}function _E(e,t,r){this.manualOverrideStorage=e,this.targetMatcher=t,this.actionResolver=r}function OE(e){this.targetMatcher=e}function RE(e){this.targetMatcher=e}function SE(){}function IE(e){this.containerResolver=e}function NE(e){this.actionResolver=e}function AE(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function CE(e){this.actionResolver=e}function kE(e){this.experimentTargetDeterminer=e}function xE(){}function ME(){}function PE(){}function UE(e){this.overrideResolver=e}function DE(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function LE(){}function FE(e){this.bucketer=e}function jE(e){var t=new f0(new y0,new d0),r=new v0(new m0,t);this.userConditionMatcher=r,this.segmentConditionMatcher=new g0(new E0(r)),this.experimentConditionMatcher=new w0(new T0(e,t),new b0(e,t))}function VE(e,t){return Vg.call(this,e,t)||this}function HE(e,t){return Hg.call(this,e,t)||this}function KE(e,t){this.evaluator=e,this.valueOperatorMatcher=t}function GE(e,t){this.abTestMatcher=e,this.featureFlagMatcher=t}function zE(e){this.userConditionMatcher=e}function BE(e){this.segmentMatcher=e}function qE(){}function YE(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function $E(){}function JE(){}function XE(){}function WE(){}function QE(){}function ZE(){}function ew(){}function tw(){}function rw(){}function nw(){}function iw(){}function ow(){}function sw(){}function aw(){}function uw(){}function cw(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function lw(e){this.conditionMatcherFactory=e}function fw(){this.evaluators=new Array}function pw(e){this.listStorage=e}function dw(e){this.storages=e}function hw(){}function yw(e,t,r,n,i){this.key=new r0("REMOTE_CONFIG",r.id),this.workspace=e,this.user=t,this.parameter=r,this.requiredType=n,this.defaultValue=i}function vw(e,t,r,n){this.key=new r0("EXPERIMENT",r.id),this.workspace=e,this.user=t,this.experiment=r,this.defaultVariationKey=n}function mw(){this._stack=[],this._targetEvaluations=[]}function gw(e,t){this.type=e,this.id=t}function Ew(e,t,r,n,i,o){this.reason=e,this.targetEvaluations=t,this.experiment=r,this.variationId=n,this.variationKey=i,this.config=o}function ww(e){var t=Kg.call(this)||this;return t.targetRuleDeterminer=e,t}function Tw(e,t,r,n,i,o){this.reason=e,this.targetEvaluations=t,this.parameter=r,this.valueId=n,this.value=i,this.properties=o}function bw(e){var t=Gg.call(this)||this;return t.evaluationFlowFactory=e,t}function _w(){}function Ow(){}function Rw(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function Sw(e,t,r,n,i,o,s){e=zg.call(this,e,t,r,n=void 0===n?null:n)||this;return e.exposureEventDedupDeterminer=i,e.sessionManager=o,e.userManager=s,e}function Iw(e,t){this.hackleUserResolver=e,this.core=t}function Nw(e,t,r,n){void 0===n&&(n=null);var i=Bg.call(this)||this;return i.eventDispatcher=e,i.flushInterval=r,i.queue=new Yg(i.drainQueue.bind(i),t,r),i.repository=n,i}function Aw(){this.listeners={}}function Cw(e,t,r){this.buffer=[],this.sink=e,this.maxQueueSize=t,this.timer=new qg({callback:this.flush.bind(this),timeout:r}),this.started=!1}function kw(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function xw(o,s){oE=window.onerror,window.onerror=function(e,t,r,n,i){a.isNotNullOrUndefined(i)&&o.trackException(i,s.resolveCurrentUser()),oE&&oE.apply(this,arguments)}}function Mw(r,n){Lg=window.onunhandledrejection,window.onunhandledrejection=function(e){var t;try{"reason"in e?t=e.reason:"detail"in e&&"reason"in e.detail&&(t=e.detail.reason)}catch(e){}t instanceof Error&&r.trackException(t,n.resolveCurrentUser()),Lg&&Lg.apply(this,arguments)}}function Pw(e,t){return e.userId===t.userId&&e.deviceId===t.deviceId}tT.prototype.read=function(){var r=this;return new Promise(function(e){var t=r.storage.getItem(r.storageKey);t&&e(JSON.parse(t)),e([])})},tT.prototype.save=function(r){var n=this;return 0===r.length?this.clear():new Promise(function(e){var t=JSON.stringify(r.slice(-n.maxSize));n.storage.setItem(n.storageKey,t),e()})},tT.prototype.add=function(t){var r=this;return this.read().then(function(e){return r.save(e.concat(t).slice(-r.maxSize))})},tT.prototype.delete=function(r){var t=this;return this.read().then(function(e){e=e.filter(function(t){return r.findIndex(function(e){return e.insertId===t.insertId})<0});return t.save(e)})},tT.prototype.clear=function(){var t=this;return new Promise(function(e){localStorage.removeItem(t.storageKey),e()})};var Uw,Dw=tT,Lw=(eT.prototype.addListener=function(e){this.userListeners.push(e)},eT.prototype.initialize=function(){var e=this.storage.getItem("_hackle_did")||this.hackleDeviceId,t=this.storage.getItem("_hackle_uid")||void 0;this._currentUser={deviceId:e,userId:t}},Object.defineProperty(eT.prototype,"currentUser",{get:function(){return this._currentUser},enumerable:!1,configurable:!0}),eT.prototype.resolveCurrentOrNull=function(e){if(void 0===e)return this.currentUser;if("string"==typeof e)return this.setUser({id:e});e=Pe(e);return e?this.setUser(e):null},eT.prototype.setUser=function(e){var t=this._currentUser,r=Pw(r=t,e=e)?y(y({},e),{properties:y(y({},r.properties),e.properties)}):e;return this._currentUser=r,Pw(t,r)||(this.changeUser(t,r,(new Date).getTime()),this.saveUser(r)),r},eT.prototype.setUserId=function(e){e=y(y({},this._currentUser),{userId:e});return this.setUser(e)},eT.prototype.setDeviceId=function(e){e=y(y({},this._currentUser),{deviceId:e});return this.setUser(e)},eT.prototype.setUserProperty=function(e,t){var r,e=y(y({},this._currentUser),{properties:y(y({},this._currentUser.properties),((r={})[e]=t,r))});return this.setUser(e)},eT.prototype.setUserProperties=function(e){e=y(y({},this._currentUser),{properties:y(y({},this._currentUser.properties),e)});return this.setUser(e)},eT.prototype.resetUser=function(){return this.setUser(this.defaultUser)},eT.prototype.changeUser=function(t,r,n){this.userListeners.forEach(function(e){e.onUserUpdated(t,r,n)})},eT.prototype.saveUser=function(e){a.isNotNullOrUndefined(e.deviceId)?this.storage.setItem("_hackle_did",e.deviceId):this.storage.removeItem("_hackle_did"),a.isNotNullOrUndefined(e.userId)?this.storage.setItem("_hackle_uid",e.userId):this.storage.removeItem("_hackle_uid")},eT),Fw=(Object.defineProperty(Zw.prototype,"currentSessionId",{get:function(){return this._currentSessionId},enumerable:!1,configurable:!0}),Object.defineProperty(Zw.prototype,"sessionId",{get:function(){var e;return null!=(e=this._currentSessionId)?e:Zw.EMPTY_SESSION_ID},enumerable:!1,configurable:!0}),Object.defineProperty(Zw.prototype,"lastEventTime",{get:function(){return this._lastEventTime},enumerable:!1,configurable:!0}),Zw.prototype.addListener=function(e){this.sessionListeners.push(e)},Zw.prototype.startNewSession=function(e,t){return this.endSession(e),this.newSession(e,t)},Zw.prototype.startNewSessionIfNeeded=function(e,t){var r=this._lastEventTime;return null!==r&&null!==this._currentSessionId&&t-r<this.sessionTimeoutMillis?(this.updateLastEventTime(t),this._currentSessionId):this.startNewSession(e,t)},Zw.prototype.updateLastEventTime=function(e){this._lastEventTime=e,this.storage.setItem("_hackle_last_event_ts","".concat(e))},Zw.prototype.endSession=function(t){var r=this._currentSessionId,n=this._lastEventTime;null!==r&&null!==n&&this.sessionListeners.forEach(function(e){return e.onSessionEnded(r,t,n)})},Zw.prototype.newSession=function(t,r){var n="".concat(r,".").concat(ae.v4().slice(0,8));return this.saveSession(n),this.updateLastEventTime(r),this.sessionListeners.forEach(function(e){e.onSessionStarted(n,t,r)}),n},Zw.prototype.saveSession=function(e){this._currentSessionId=e,this.storage.setItem("_hackle_session_id",e)},Zw.prototype.loadSession=function(){this._currentSessionId=this.storage.getItem("_hackle_session_id")},Zw.prototype.loadLastEventTime=function(){var e=this.storage.getItem("_hackle_last_event_ts");null!==e&&0<(e=Number.parseFloat(e))&&(this._lastEventTime=e)},Zw.prototype.onUserUpdated=function(e,t,r){this.endSession(e),this.newSession(t,r)},Zw.EMPTY_SESSION_ID="0.ffffffff",Zw),jw=(Qw.postfix=function(e,t){return new Qw(e,function(e){return"".concat(e).concat(t)})},Qw.prototype.getItem=function(e){return this.delegate.getItem(this.transform(e))},Qw.prototype.removeItem=function(e){this.delegate.removeItem(this.transform(e))},Qw.prototype.setItem=function(e,t){this.delegate.setItem(this.transform(e),t)},Qw),Vw=(Ww.prototype.isEqualItem=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},Ww.prototype.getRemainListSize=function(){try{return this.maxLength-JSON.stringify(this.getList()).length}catch(e){return 0}},Ww.prototype.isAddableItem=function(e){try{return this.getRemainListSize()>JSON.stringify(e).length}catch(e){return!1}},Ww.prototype.getVictimIndex=function(e){var t=this.getRemainListSize();try{var r=JSON.stringify(e),n=this.getList(),i=0;return n.findIndex(function(e){return(i+=JSON.stringify(e).length)+t>=r.length})}catch(e){return-1}},Ww.prototype.getList=function(){try{var e=this.delegate.getItem(this.listKey);if(!e)return[];var t=JSON.parse(e);return Array.isArray(t)?t:[]}catch(e){return[]}},Ww.prototype.entries=function(){return this.getList().flatMap(Object.entries)},Ww.prototype.setItem=function(e,t){var r;try{this.removeItem(e);var n=this.getList(),i=((r={})[e]=t,r);if(!this.isAddableItem(i)){var o=this.getVictimIndex(i);if(o<0)return;n=n.slice(o+1)}var s=JSON.stringify(n.concat(i));this.delegate.setItem(this.listKey,s)}catch(e){}},Ww.prototype.getItem=function(t){var r=this,e=this.getList().find(function(e){return r.isEqualItem(e,t)});if(e&&e[t])return e[t]},Ww.prototype.removeItem=function(t){var r=this,e=this.getList();try{var n=e.filter(function(e){return!r.isEqualItem(e,t)}),i=JSON.stringify(n);this.delegate.setItem(this.listKey,i)}catch(t){}},Ww.prototype.clear=function(){this.delegate.removeItem(this.listKey)},Ww),Hw=(Xw.prototype.currentUser=function(){var e=this.userManager.currentUser;return this.userResolver.resolve(e)},Xw.prototype.getAbTestDecisions=function(){return this.core.experiments(this.currentUser()).entries()},Xw.prototype.getAbTestOverrides=function(){return this.abOverrideStorage.getAll()},Xw.prototype.setAbTestOverride=function(e,t){this.abOverrideStorage.set(e,t),this.increment("AB_TEST","set")},Xw.prototype.resetAbTestOverride=function(e){this.abOverrideStorage.remove(e),this.increment("AB_TEST","reset")},Xw.prototype.resetAllAbTestOverride=function(){this.abOverrideStorage.clear(),this.increment("AB_TEST","reset.all")},Xw.prototype.getFeatureFlagDecisions=function(){return this.core.featureFlags(this.currentUser()).entries()},Xw.prototype.getFeatureFlagOverrides=function(){return this.ffOverrideStorage.getAll()},Xw.prototype.setFeatureFlagOverride=function(e,t){this.ffOverrideStorage.set(e,t),this.increment("FEATURE_FLAG","set")},Xw.prototype.resetFeatureFlagOverride=function(e){this.ffOverrideStorage.remove(e),this.increment("FEATURE_FLAG","reset")},Xw.prototype.resetAllFeatureFlagOverride=function(){this.ffOverrideStorage.clear(),this.increment("FEATURE_FLAG","reset.all")},Xw.prototype.increment=function(e,t){Lr.counter("experiment.manual.override",{"experiment.type":e,operation:t}).increment()},Xw),Kw=(Jw.serverFetch=function(e){return"".concat(e,"/api/v2/workspaces")},Jw.clientFetch=function(e,t){return"".concat(e,"/api/v2/w/").concat(t,"/w")},Jw.serverDispatch=function(e){return"".concat(e,"/api/v2/events")},Jw.clientDispatch=function(e){return"".concat(e,"/api/v2/w/events")},Jw.beaconDispatch=function(e,t){return"".concat(e,"/api/v2/w/").concat(t,"/events")},Jw),Gw=(ce($w,Uw=d),$w.prototype.initialize=function(){this.core.eventProcessor.on("queue",this.handleTrackEventTrigger),this.core.workspaceFetcher.start()},$w.prototype.destroy=function(){this.core.eventProcessor.off("queue",this.handleTrackEventTrigger)},$w),zw=(M.createRendererScript=function(e){var t=document.createElement("script");return t.type="text/javascript",t.async=!0,t.src=e,t},M.waitForLoad=function(o){return new Promise(function(e,t){function r(){o.removeEventListener("error",i),o.removeEventListener("load",n)}var n=function(){r(),e(o)},i=function(e){r(),t(e.message)};o.addEventListener("load",n),o.addEventListener("error",i)})},M.waitForRendererScript=function(r){return le(this,void 0,void 0,function(){var t;return fe(this,function(e){return window.HackleIAMRenderer?[2]:(t=M.createRendererScript(r),document.head.appendChild(t),[2,M.waitForLoad(t)])})})},M.getBrowserLang=function(){return(window.navigator.language||window.navigator.languages[0]).split("-")[0]},M.prototype.initialize=function(){this.addListeners()},M.prototype.destroy=function(){this.removeListeners(),this.destroyActive()},M.prototype.addListeners=function(){this.triggerManager.on("campaign",this.handleTriggerMessage),window.addEventListener(M.HACKLE_IAM_EVENT_TYPE,this.handleIAMEvent)},M.prototype.removeListeners=function(){this.triggerManager.off("campaign",this.handleTriggerMessage),window.removeEventListener(M.HACKLE_IAM_EVENT_TYPE,this.handleIAMEvent)},M.prototype.addContainer=function(){var e;return this.container||((e=document.createElement("div")).classList.add(M.CONTAINER_CLASS_NAME),this.container=e),this.container.parentNode||document.body.appendChild(this.container),this.container},M.prototype.removeContainer=function(){var e;this.container&&(null!=(e=this.container.parentNode)&&e.removeChild(this.container),this.container=null)},M.prototype.destroyActive=function(){var e;null!=(e=this.active)&&e.renderer.destroy(),this.active=null,this.removeContainer()},M.prototype.markMessageHidden=function(e,t){this.storage.setItem("".concat(this.expirationStorageKey).concat(e),"".concat(t))},M.prototype.checkMessageHidden=function(e,t){e=this.storage.getItem("".concat(this.expirationStorageKey).concat(e.key));if(e){e=Number.parseInt(e,10);if(!Number.isNaN(e))return t<=e}return!1},M.HOUR_IN_MS=36e5,M.HIDE_EXPIRATION=24*M.HOUR_IN_MS,M.RENDERER_SCRIPT="https://static.hackledev.com/sdk/iam-renderer/0.0.1/iam-renderer.js",M.NAMESPACE="hackle-iam",M.HACKLE_IAM_EVENT_TYPE=M.NAMESPACE,M.CONTAINER_CLASS_NAME=M.NAMESPACE,M),Bw=de.log,qw=null,Yw={debug:!1,log_disabled:!1,auto_track_page_view:!0,pollingIntervalMillis:-1,exposureEventDedupIntervalMillis:-1,sessionTimeoutMillis:18e5,autoOpenDevTool:!1,sdkUrl:"https://client-sdk.hackle.io",eventUrl:"https://event.hackle.io",monitoringUrl:"https://monitoring.hackle.io",rendererScriptUrl:zw.RENDERER_SCRIPT,SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.15.1"};function M(e,t,r,n,i){void 0===i&&(i={rendererScriptUrl:M.RENDERER_SCRIPT});var a=this;this.triggerManager=e,this.storage=t,this.expirationStorageKey=r,this.client=n,this.options=i,this.opening=!1,this.container=null,this.active=null,this.handleIAMEvent=function(e){var t,r;e instanceof CustomEvent&&e.type===M.HACKLE_IAM_EVENT_TYPE&&(e=e.detail,a.client.track(e),"$in_app_close"!==e.key&&"$in_app_hidden"!==e.key&&("$in_app_action"!==e.key||"CLOSE"!==e.properties.action_type&&"HIDDEN"!==e.properties.action_type)||(("$in_app_hidden"===e.key||"$in_app_action"===e.key&&"HIDDEN"===e.properties.action_type)&&(t=M.HIDE_EXPIRATION,"$in_app_action"===e.key&&"HIDDEN"===e.properties.action_type&&("number"==typeof(r=e.properties.action_value)?t=r*M.HOUR_IN_MS:"string"==typeof r&&(r=Number.parseInt(r,10),Number.isNaN(r)||(t=r*M.HOUR_IN_MS))),a.markMessageHidden(e.properties.in_app_message_key,Date.now()+t)),a.destroyActive()))},this.handleTriggerMessage=function(e){var o=e.message,s=e.timestamp;return le(a,void 0,void 0,function(){var t,r,n,i;return fe(this,function(e){switch(e.label){case 0:if(this.active)return[2];if(this.opening)return[2];if(this.checkMessageHidden(o,s))return[2];this.opening=!0,t=null,e.label=1;case 1:return e.trys.push([1,4,,5]),[4,M.waitForRendererScript(this.options.rendererScriptUrl)];case 2:return e.sent(),(r=this.addContainer()).style.display="none",r.classList.add("".concat(M.CONTAINER_CLASS_NAME,"--loading")),n=M.getBrowserLang(),n=o.messageContext.getMessageForLang(n)||o.messageContext.getDefaultMessage(),i=window.HackleIAMRenderer,[4,(t=new i.HackleIAMRenderer(r)).render({message:o.toJSON(),contextMessage:n})];case 3:return e.sent(),this.active={message:o,renderer:t},r.classList.remove("".concat(M.CONTAINER_CLASS_NAME,"--loading")),r.style.display="block",[3,5];case 4:return e.sent(),null!=t&&t.destroy(),this.destroyActive(),[3,5];case 5:return this.opening=!1,[2]}})})},this.initialize()}function $w(e){var r=Uw.call(this)||this;return r.core=e,r.handleTrackEventTrigger=function(e){var t;Br.isTrack(e)&&(t=r.core.trackInAppMessage(e)).value&&(t=r.core.inAppMessage(t.value.key,e.user,e.timestamp)).value&&r.emit("campaign",{message:t.value,timestamp:e.timestamp})},r.initialize(),r}function Jw(){}function Xw(e,t,r,n,i){this.core=e,this.userManager=t,this.userResolver=r,this.abOverrideStorage=n,this.ffOverrideStorage=i}function Ww(e,t,r){void 0===r&&(r=4096);var n=this;this.delegate=e,this.listKey=t,this.encodedListCharLen=6,this.resolveMaxLength=function(e){e-=n.encodedListCharLen;return e<0?0:e},this.maxLength=this.resolveMaxLength(r)}function Qw(e,t){this.delegate=e,this.transform=t}function Zw(e,t){this.sessionTimeoutMillis=e,this.storage=t,this.sessionListeners=[],this._currentSessionId=null,this._lastEventTime=null,this.loadSession(),this.loadLastEventTime()}function eT(e,t){this.storage=e,this.hackleDeviceId=t,this.userListeners=[],this.defaultUser={deviceId:this.hackleDeviceId},this._currentUser=this.defaultUser,this.initialize()}function tT(e,t,r){this.storage=e,this.storageKey=t,this.maxSize=r}function rT(e,t){t=y(y({},Yw),t);if(de.initCounter(function(e){return Lr.counter("log",{level:e})}),t.log_disabled?de.setLogLevel(pe.DISABLE):t.debug&&de.setLogLevel(pe.DEBUG),Bw.debug("sdkKey : "+e),e||Bw.error("SDK Key must not be null"),qw)return Bw.debug("use already exists hackleClient"),qw;var r=!1,n=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&Bw.debug("support sendBeacon API"),new fn(e,_e,{dispatchUrl:Kw.clientDispatch(t.eventUrl),beaconDispatchUrl:Kw.beaconDispatch(t.eventUrl,e),useBeacon:r,headers:((n={})[ye]=t.SDK_NAME_HEADER,n["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,n)})),i=-1,i=(void 0!==t.pollingIntervalMillis&&"number"==typeof t.pollingIntervalMillis&&0<t.pollingIntervalMillis&&(i=Math.max(t.pollingIntervalMillis,3e4)),new dn(e,_e,{fetchUrl:Kw.clientFetch(t.sdkUrl,e),updateInterval:i,headers:((i={})[ye]=t.SDK_NAME_HEADER,i["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,i)})),o=-1,s=(void 0!==t.exposureEventDedupIntervalMillis&&"number"==typeof t.exposureEventDedupIntervalMillis&&-1!==t.exposureEventDedupIntervalMillis&&(o=t.exposureEventDedupIntervalMillis<1e3||36e5<t.exposureEventDedupIntervalMillis?(Bw.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):t.exposureEventDedupIntervalMillis),new Dw(window.localStorage,"".concat("hackle-repository-storage","_").concat(e),100)),a=new Lw(jw.postfix(mn,"_".concat(e)),Cn()),u=new Fw(t.sessionTimeoutMillis,jw.postfix(mn,"_".concat(e.slice(8)))),o=(a.addListener(u),new Xg(o)),c=new Jg(n,100,500,s,o,u,a),n=new u0(new Vw(mn,"".concat("hackle-manual-override_ab","_").concat(e.slice(0,8)))),s=new u0(new Vw(mn,"".concat("hackle-manual-override_ff","_").concat(e.slice(0,8)))),o=rE.create(i,c,[n,s]),i=new Gw(o),l=new En(a),n=new Hw(o,a,l,n,s),s=(null==(s=t.devTool)?void 0:s.userExplorer)&&"function"==typeof(null==(s=t.devTool)?void 0:s.userExplorer),s=t.devTool&&s?{manager:t.devTool,userExplorer:n}:void 0,f=new zr(o,l,u,a,s);new zw(i,window.localStorage,"hackle-iam-hide:",f,{rendererScriptUrl:t.rendererScriptUrl});function p(){c.drainRepository()}var d,h,n=new $g(l,o),i=(u.addListener(n),qw=f,t.auto_track_page_view&&(h=function(){return d.trackPageView({user:{id:Cn()}})},(d=f).onReady(function(){function t(e){if("function"==typeof window.Event)return new Event(e);var t=!1,r=!1,n=void 0,i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t,r,n),i}h();try{history.pushState=(n=history.pushState,function(){try{var e=n.apply(this,arguments);return window.dispatchEvent(t("locationchange")),e}catch(e){if(e instanceof Error)Bw.error(e);else try{Bw.error(e)}catch(e){}}}),history.replaceState=(r=history.replaceState,function(){try{var e=r.apply(this,arguments);return window.dispatchEvent(t("locationchange")),e}catch(e){if(e instanceof Error)Bw.error(e);else try{Bw.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(t("locationchange"))}catch(e){if(e instanceof Error)Bw.error(e);else try{Bw.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{h()}catch(e){if(e instanceof Error)Bw.error(e);else try{Bw.error(e)}catch(e){}}})}catch(t){if(t instanceof Error)Bw.error(t);else try{Bw.error(t)}catch(t){}}var r,n})),t.autoOpenDevTool&&(t.devTool?f.showUserExplorer():Bw.error("DevTool is not provided")),(new iE).install(o,l),new Fr(t.monitoringUrl,6e4,_e,((s={})[ye]=t.SDK_NAME_HEADER,s["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,s["X-HACKLE-SDK-KEY"]=e,s),r));return document.addEventListener("visibilitychange",function(){document.hidden||p()}),window.addEventListener("pageshow",p),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){xn(),u.updateLastEventTime((new Date).getTime()),f.close(),Lr.globalRegistry.close()}),Lr.addRegistry(i),f.onReady(function(){u.startNewSessionIfNeeded(a.currentUser,(new Date).getTime())}),f}var N={createInstance:rT,getUserId:Cn,setUserId:kn,removeUserId:xn,Logger:de},nT=(l.Bucket=t.Bucket=He,l.Container=t.Container=Qe,l.ContainerGroup=t.ContainerGroup=Ze,l.CoreVersion=t.CoreVersion=Nt,l.Decision=t.Decision=De,l.DecisionReason=t.DecisionReason=s,l.EmptyHackleRemoteConfig=t.EmptyHackleRemoteConfig=oe,l.EmptyParameterConfig=t.EmptyParameterConfig=Fe,l.EventType=t.EventType=Me,l.Experiment=t.Experiment=je,l.FeatureFlagDecision=t.FeatureFlagDecision=Le,l.IAM=t.IAM=Kt,l.IAMContext=t.IAMContext=Ht,l.IAMDateRange=t.IAMDateRange=Lt,l.IAMEventTriggerRule=t.IAMEventTriggerRule=Ft,l.IAMTargetContext=t.IAMTargetContext=Vt,l.IAMTargetRuleOverride=t.IAMTargetRuleOverride=jt,l.IdentifierType=t.IdentifierType=Ge,l.IdentifiersBuilder=t.IdentifiersBuilder=ze,l.InAppMessageDecision=t.InAppMessageDecision=xe,l.Logger=t.Logger=de,l.MATCH_OPERATORS=t.MATCH_OPERATORS=xt,l.MATCH_TYPES=t.MATCH_TYPES=Ct,l.MATCH_VALUE_TYPES=t.MATCH_VALUE_TYPES=kt,l.MetaVersion=t.MetaVersion=At,l.ParameterConfiguration=t.ParameterConfiguration=et,l.RemoteConfigDecision=t.RemoteConfigDecision=Ue,l.RemoteConfigParameter=t.RemoteConfigParameter=tt,l.RemoteConfigParameterValue=t.RemoteConfigParameterValue=nt,l.RemoteConfigTargetRule=t.RemoteConfigTargetRule=rt,l.SEGMENT_TYPES=t.SEGMENT_TYPES=Ut,l.Segment=t.Segment=We,l.Slot=t.Slot=Ke,l.TARGET_ACTION_TYPES=t.TARGET_ACTION_TYPES=Mt,l.TARGET_KEY_TYPES=t.TARGET_KEY_TYPES=Pt,l.Target=t.Target=Be,l.TargetAction=t.TargetAction=Je,l.TargetCondition=t.TargetCondition=qe,l.TargetKey=t.TargetKey=Ye,l.TargetMatch=t.TargetMatch=$e,l.TargetRule=t.TargetRule=Xe,l.TargetingType=t.TargetingType=Dt,l.Variation=t.Variation=Ve,l.Version=t.Version=It,se=t.createInstance=rT,t.default=N,l.getUserId=t.getUserId=Cn,l.removeUserId=t.removeUserId=xn,l.sanitizeUser=t.sanitizeUser=Pe,l.setUserId=t.setUserId=kn,function(e,t){return(nT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)});var iT=function(){return(iT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function oT(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}sT.prototype.on=function(e,t){this.listeners[e]=(this.listeners[e]||[]).concat(t)},sT.prototype.off=function(e,t){this.listeners[e]=(this.listeners[e]||[]).filter(function(e){return e!==t})},sT.prototype.emit=function(e,t){(this.listeners[e]||[]).forEach(function(e){e(t)})};ji=sT;function sT(){this.listeners={}}uT.arePropertiesEqual=function(e,t){var r=uT.coerceUnknownToProperties(e),n=uT.coerceUnknownToProperties(t),e=Object.keys(r),t=Object.keys(n);return e.length===t.length&&e.every(function(e){return e in n&&r[e]===n[e]})},uT.coerceUnknownToProperties=function(e){return"object"==typeof e&&null!==e?e:{}};var aT=uT;function uT(){}lT.isUserEqual=function(e,t){return(null==e?void 0:e.id)===(null==t?void 0:t.id)&&(null==e?void 0:e.deviceId)===(null==t?void 0:t.deviceId)&&(null==e?void 0:e.userId)===(null==t?void 0:t.userId)&&aT.arePropertiesEqual(null==e?void 0:e.properties,null==t?void 0:t.properties)&&aT.arePropertiesEqual(null==e?void 0:e.identifiers,null==t?void 0:t.identifiers)};var cT=lT;function lT(){}var fT=function(n){var e=i,t=n;if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}function i(e,t){var r=n.call(this)||this;return r._currentUser=null,r.client=se(e,iT(iT({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.15.1"})),null!=t&&t.devTool&&null!=t&&t.autoOpenDevTool&&"undefined"!=typeof window&&r.showUserExplorer(),r}return nT(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r),i.prototype.getUser=function(){return this.client.getUser()},i.prototype.setUser=function(e){this.client.setUser(e),this.emitUpdatedUser(this.getUser())},i.prototype.setUserId=function(e){this.client.setUserId(e),this.emitUpdatedUser(this.getUser())},i.prototype.setDeviceId=function(e){this.client.setDeviceId(e),this.emitUpdatedUser(this.getUser())},i.prototype.setUserProperty=function(e,t){this.client.setUserProperty(e,t),this.emitUpdatedUser(this.getUser())},i.prototype.resetUser=function(){this.client.resetUser(),this.emitUpdatedUser(this.getUser())},i.prototype.variation=function(e,t,r){return this.client.variation(e,t||void 0,r)},i.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t||void 0,r)},i.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t||void 0)},i.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t||void 0)},i.prototype.track=function(e,t){this.client.track(e,t||void 0)},i.prototype.trackPageView=function(e){this.client.trackPageView(iT(iT({},e),{user:(null==e?void 0:e.user)||void 0}))},i.prototype.remoteConfig=function(e){return this.client.remoteConfig(e||void 0)},i.prototype.onReady=function(e,t){this.client.onReady(e,t)},i.prototype.onInitialized=function(e){return this.client.onInitialized(e)},i.prototype.emitUpdatedUser=function(e){cT.isUserEqual(this._currentUser,e)||this.emit("user-updated",e),this._currentUser=e},i.prototype.showUserExplorer=function(){this.client.showUserExplorer()},i.prototype.hideUserExplorer=function(){this.client.hideUserExplorer()},i}(ji);var P={exports:{}},b={},pT=Object.getOwnPropertySymbols,dT=Object.prototype.hasOwnProperty,hT=Object.prototype.propertyIsEnumerable;var o=function(){try{if(!Object.assign)return;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},n)).join("")?void 0:1}catch(e){return}}()?Object.assign:function(e,t){for(var r,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var o in r=Object(arguments[i]))dT.call(r,o)&&(n[o]=r[o]);if(pT)for(var s=pT(r),a=0;a<s.length;a++)hT.call(r,s[a])&&(n[s[a]]=r[s[a]])}return n},yT=o,A="function"==typeof Symbol&&Symbol.for,vT=A?Symbol.for("react.element"):60103,mT=A?Symbol.for("react.portal"):60106,yi=A?Symbol.for("react.fragment"):60107,gT=A?Symbol.for("react.strict_mode"):60108,Zn=A?Symbol.for("react.profiler"):60114,ET=A?Symbol.for("react.provider"):60109,wT=A?Symbol.for("react.context"):60110,TT=A?Symbol.for("react.forward_ref"):60112,sf=A?Symbol.for("react.suspense"):60113,bT=A?Symbol.for("react.memo"):60115,_T=A?Symbol.for("react.lazy"):60116,OT="function"==typeof Symbol&&Symbol.iterator;function RT(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ST={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},IT={};function NT(e,t,r){this.props=e,this.context=t,this.refs=IT,this.updater=r||ST}function AT(){}function CT(e,t,r){this.props=e,this.context=t,this.refs=IT,this.updater=r||ST}NT.prototype.isReactComponent={},NT.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(RT(85));this.updater.enqueueSetState(this,e,t,"setState")},NT.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},AT.prototype=NT.prototype;var Zo=CT.prototype=new AT,kT=(Zo.constructor=CT,yT(Zo,NT.prototype),Zo.isPureReactComponent=!0,{current:null}),xT=Object.prototype.hasOwnProperty,MT={key:!0,ref:!0,__self:!0,__source:!0};function PT(e,t,r){var n,i={},o=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)xT.call(t,n)&&!MT.hasOwnProperty(n)&&(i[n]=t[n]);var a=arguments.length-2;if(1===a)i.children=r;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(n in a=e.defaultProps)void 0===i[n]&&(i[n]=a[n]);return{$$typeof:vT,type:e,key:o,ref:s,props:i,_owner:kT.current}}function UT(e){return"object"==typeof e&&null!==e&&e.$$typeof===vT}var DT=/\/+/g,LT=[];function FT(e,t,r,n){var i;return LT.length?((i=LT.pop()).result=e,i.keyPrefix=t,i.func=r,i.context=n,i.count=0,i):{result:e,keyPrefix:t,func:r,context:n,count:0}}function jT(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,LT.length<10&<.push(e)}function VT(e,t,r){return null==e?0:function e(t,r,n,i){var o=!1;if(null===(t="undefined"!=(a=typeof t)&&"boolean"!==a?t:null))o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case vT:case mT:o=!0}}if(o)return n(i,t,""===r?"."+HT(t,0):r),1;if(o=0,r=""===r?".":r+":",Array.isArray(t))for(var s=0;s<t.length;s++){var a,u=r+HT(a=t[s],s);o+=e(a,u,n,i)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=OT&&t[OT]||t["@@iterator"])?u:null))for(t=u.call(t),s=0;!(a=t.next()).done;)o+=e(a=a.value,u=r+HT(a,s++),n,i);else if("object"===a)throw n=""+t,Error(RT(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return o}(e,"",t,r)}function HT(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=e.key,r={"=":"=0",":":"=2"},"$"+(""+e).replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var r}function KT(e,t){e.func.call(e.context,t,e.count++)}function GT(e,t,r){var n=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?zT(e,n,r,function(e){return e}):null!=e&&(UT(e)&&(t=i+(!(i=e).key||t&&t.key===e.key?"":(""+e.key).replace(DT,"$&/")+"/")+r,e={$$typeof:vT,type:i.type,key:t,ref:i.ref,props:i.props,_owner:i._owner}),n.push(e))}function zT(e,t,r,n,i){var o="";VT(e,GT,t=FT(t,o=null!=r?(""+r).replace(DT,"$&/")+"/":o,n,i)),jT(t)}var BT={current:null};function qT(){var e=BT.current;if(null===e)throw Error(RT(321));return e}var YT,$T,JT,h={ReactCurrentDispatcher:BT,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:kT,IsSomeRendererActing:{current:!1},assign:yT},x=(b.Children={map:function(e,t,r){if(null==e)return e;var n=[];return zT(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;VT(e,KT,t=FT(null,null,t,r)),jT(t)},count:function(e){return VT(e,function(){return null},null)},toArray:function(e){var t=[];return zT(e,t,null,function(e){return e}),t},only:function(e){if(UT(e))return e;throw Error(RT(143))}},b.Component=NT,b.Fragment=yi,b.Profiler=Zn,b.PureComponent=CT,b.StrictMode=gT,b.Suspense=sf,b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=h,b.cloneElement=function(e,t,r){if(null==e)throw Error(RT(267,e));var n=yT({},e.props),i=e.key,o=e.ref,s=e._owner;if(null!=t)for(a in void 0!==t.ref&&(o=t.ref,s=kT.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)xT.call(t,a)&&!MT.hasOwnProperty(a)&&(n[a]=(void 0===t[a]&&void 0!==u?u:t)[a]);var a=arguments.length-2;if(1===a)n.children=r;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];n.children=u}return{$$typeof:vT,type:e.type,key:i,ref:o,props:n,_owner:s}},b.createContext=function(e,t){return(e={$$typeof:wT,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:ET,_context:e},e.Consumer=e},b.createElement=PT,b.createFactory=function(e){var t=PT.bind(null,e);return t.type=e,t},b.createRef=function(){return{current:null}},b.forwardRef=function(e){return{$$typeof:TT,render:e}},b.isValidElement=UT,b.lazy=function(e){return{$$typeof:_T,_ctor:e,_status:-1,_result:null}},b.memo=function(e,t){return{$$typeof:bT,type:e,compare:void 0===t?null:t}},b.useCallback=function(e,t){return qT().useCallback(e,t)},b.useContext=function(e,t){return qT().useContext(e,t)},b.useDebugValue=function(){},b.useEffect=function(e,t){return qT().useEffect(e,t)},b.useImperativeHandle=function(e,t,r){return qT().useImperativeHandle(e,t,r)},b.useLayoutEffect=function(e,t){return qT().useLayoutEffect(e,t)},b.useMemo=function(e,t){return qT().useMemo(e,t)},b.useReducer=function(e,t,r){return qT().useReducer(e,t,r)},b.useRef=function(e){return qT().useRef(e)},b.useState=function(e){return qT().useState(e)},b.version="16.14.0",{}),k=Function.call.bind(Object.prototype.hasOwnProperty),XT=function(){};function WT(e,t,r,n,i){if("production"!==production)for(var o in e)if(JT(e,o)){var s,a;try{if("function"!=typeof e[o])throw(a=Error((n||"React class")+": "+r+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.")).name="Invariant Violation",a;s=e[o](t,o,n,r,null,YT)}catch(e){s=e}!s||s instanceof Error||XT((n||"React class")+": type specification of "+r+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in $T)&&($T[s.message]=!0,o=i?i():"",XT("Failed "+r+" type: "+s.message+(null!=o?o:"")))}}if("production"!==production&&(YT="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",$T={},JT=k,XT=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),WT.resetWarningCache=function(){"production"!==production&&($T={})},"production"!==production){var QT=o,ZT=WT,w="function"==typeof Symbol&&Symbol.for,e1=w?Symbol.for("react.element"):60103,t1=w?Symbol.for("react.portal"):60106,r1=w?Symbol.for("react.fragment"):60107,n1=w?Symbol.for("react.strict_mode"):60108,i1=w?Symbol.for("react.profiler"):60114,o1=w?Symbol.for("react.provider"):60109,s1=w?Symbol.for("react.context"):60110,a1=w?Symbol.for("react.concurrent_mode"):60111,u1=w?Symbol.for("react.forward_ref"):60112,c1=w?Symbol.for("react.suspense"):60113,l1=w?Symbol.for("react.suspense_list"):60120,f1=w?Symbol.for("react.memo"):60115,p1=w?Symbol.for("react.lazy"):60116,d1=w?Symbol.for("react.block"):60121,h1=w?Symbol.for("react.fundamental"):60117,y1=w?Symbol.for("react.responder"):60118,v1=w?Symbol.for("react.scope"):60119,m1="function"==typeof Symbol&&Symbol.iterator,g1="@@iterator";function E1(e){if(null===e||"object"!=typeof e)return null;e=m1&&e[m1]||e[g1];return"function"==typeof e?e:null}var w1={current:null},T1={current:null},b1=/^(.*)[\\\/]/,_1=1;function O1(e){if(null==e)return null;if("number"==typeof e.tag&&U("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case r1:return"Fragment";case t1:return"Portal";case i1:return"Profiler";case n1:return"StrictMode";case c1:return"Suspense";case l1:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s1:return"Context.Consumer";case o1:return"Context.Provider";case u1:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case f1:return O1(e.type);case d1:return O1(e.render);case p1:r=(t=e)._status===_1?t._result:null;if(r)return O1(r)}var t,r;return null}var R1={},S1=null;function I1(e){S1=e}R1.getCurrentStack=null,R1.getStackAddendum=function(){var e,t,r,n,i,o="",s=(S1&&(e=O1(S1.type),r=S1._owner,o+=(e=e,t=S1._source,r=r&&O1(r.type),i="",t?(n=(s=t.fileName).replace(b1,""),i=" (at "+(n=/^index\./.test(n)&&(s=s.match(b1))&&(s=s[1])?s.replace(b1,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(i=" (created by "+r+")"),"\n in "+(e||"Unknown")+i)),R1.getCurrentStack);return s&&(o+=s()||""),o};var N1={ReactCurrentDispatcher:w1,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:T1,IsSomeRendererActing:{current:!1},assign:QT};function A1(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];C1("warn",e,r)}function U(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];C1("error",e,r)}function C1(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=N1.ReactDebugCurrentFrame.getStackAddendum())&&(t+="%s",r=r.concat([n]));var n=r.map(function(e){return""+e});n.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,n);try{var i=0,o="Warning: "+t.replace(/%s/g,function(){return r[i++]});throw new Error(o)}catch(e){}}QT(N1,{ReactDebugCurrentFrame:R1,ReactComponentTreeHook:{}});var k1={};function x1(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;k1[r]||(U("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),k1[r]=!0)}var M1={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){x1(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){x1(e,"replaceState")},enqueueSetState:function(e,t,r,n){x1(e,"setState")}},P1={};function U1(e,t,r){this.props=e,this.context=t,this.refs=P1,this.updater=r||M1}Object.freeze(P1),U1.prototype.isReactComponent={},U1.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},U1.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var D1,L1={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(D1 in L1)L1.hasOwnProperty(D1)&&!function(e,t){Object.defineProperty(U1.prototype,e,{get:function(){A1("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(D1,L1[D1]);function F1(){}function j1(e,t,r){this.props=e,this.context=t,this.refs=P1,this.updater=r||M1}F1.prototype=U1.prototype,(w=j1.prototype=new F1).constructor=j1,QT(w,U1.prototype),w.isPureReactComponent=!0;var V1,H1,K1=Object.prototype.hasOwnProperty,G1={key:!0,ref:!0,__self:!0,__source:!0};function z1(e){if(K1.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function B1(e){if(K1.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var q1={},Y1=function(e,t,r,n,i,o,s){e={$$typeof:e1,type:e,key:t,ref:r,props:s,_owner:o,_store:{}};return Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(e,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(e,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e};function $1(e,t,r){var n,i={},o=null,s=null,a=null,u=null;if(null!=t)for(n in z1(t)&&(s=t.ref,"string"==typeof(c=t).ref&&T1.current&&c.__self&&T1.current.stateNode!==c.__self&&(f=O1(T1.current.type),q1[f]||(U('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',O1(T1.current.type),c.ref),q1[f]=!0))),B1(t)&&(o=""+t.key),a=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)K1.call(t,n)&&!G1.hasOwnProperty(n)&&(i[n]=t[n]);var c,l,f,p,d=arguments.length-2;if(1==d)i.children=r;else if(1<d){for(var h=Array(d),y=0;y<d;y++)h[y]=arguments[y+2];Object.freeze&&Object.freeze(h),i.children=h}if(e&&e.defaultProps){var v=e.defaultProps;for(n in v)void 0===i[n]&&(i[n]=v[n])}function m(){H1||(H1=!0,U("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",l))}function g(){V1||(V1=!0,U("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",p))}return(o||s)&&(c="function"==typeof e?e.displayName||e.name||"Unknown":e,o&&(f=i,p=c,g.isReactWarning=!0,Object.defineProperty(f,"key",{get:g,configurable:!0})),s&&(r=i,l=c,m.isReactWarning=!0,Object.defineProperty(r,"ref",{get:m,configurable:!0}))),Y1(e,o,s,a,u,T1.current,i)}function J1(e){return"object"==typeof e&&null!==e&&e.$$typeof===e1}var X1=".",W1=":",Q1=!1,Z1=/\/+/g;function eb(e){return(""+e).replace(Z1,"$&/")}var tb=10,rb=[];function nb(e,t,r,n){var i;return rb.length?((i=rb.pop()).result=e,i.keyPrefix=t,i.func=r,i.context=n,i.count=0,i):{result:e,keyPrefix:t,func:r,context:n,count:0}}function ib(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,rb.length<tb&&rb.push(e)}function ob(e,t,r){return null==e?0:function e(t,r,n,i){var o,s=typeof t,a=!1;if(null===(t="undefined"!=s&&"boolean"!=s?t:null))a=!0;else switch(s){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case e1:case t1:a=!0}}if(a)return n(i,t,""===r?X1+sb(t,0):r),1;var u=0,c=""===r?X1:r+W1;if(Array.isArray(t))for(var l=0;l<t.length;l++)u+=e(o=t[l],c+sb(o,l),n,i);else if("function"==typeof(r=E1(t))){r===t.entries&&(Q1||A1("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),Q1=!0);for(var f,p=r.call(t),d=0;!(f=p.next()).done;)u+=e(o=f.value,c+sb(o,d++),n,i)}else if("object"==s)throw r="",r=" If you meant to render a collection of children, use an array instead."+R1.getStackAddendum(),s=""+t,Error("Objects are not valid as a React child (found: "+("[object Object]"==s?"object with keys {"+Object.keys(t).join(", ")+"}":s)+")."+r);return u}(e,"",t,r)}function sb(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=e.key,r={"=":"=0",":":"=2"},"$"+(""+e).replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var r}function ab(e,t,r){var n=e.func,i=e.context;n.call(i,t,e.count++)}function ub(e,t,r){var n=e.result,i=e.keyPrefix,o=e.func,s=e.context,o=o.call(s,t,e.count++);Array.isArray(o)?cb(o,n,r,function(e){return e}):null!=o&&(J1(o)&&(e=i+(!(s=o).key||t&&t.key===o.key?"":eb(o.key)+"/")+r,o=Y1(s.type,e,s.ref,s._self,s._source,s._owner,s.props)),n.push(o))}function cb(e,t,r,n,i){var o="",t=nb(t,o=null!=r?eb(r)+"/":o,n,i);ob(e,ub,t),ib(t)}function lb(e){return"string"==typeof e||"function"==typeof e||e===r1||e===a1||e===i1||e===n1||e===c1||e===l1||"object"==typeof e&&null!==e&&(e.$$typeof===p1||e.$$typeof===f1||e.$$typeof===o1||e.$$typeof===s1||e.$$typeof===u1||e.$$typeof===h1||e.$$typeof===y1||e.$$typeof===v1||e.$$typeof===d1)}function fb(){var e=w1.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");return e}function pb(){if(T1.current){var e=O1(T1.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var db=!1,hb={};function yb(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=pb())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),hb[t=r]||(hb[t]=!0,r="",e&&e._owner&&e._owner!==T1.current&&(r=" It was passed a child from "+O1(e._owner.type)+"."),I1(e),U('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',t,r),I1(null)))}function vb(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];J1(n)&&yb(n,t)}else if(J1(e))e._store&&(e._store.validated=!0);else if(e){var i=E1(e);if("function"==typeof i&&i!==e.entries)for(var o,s=i.call(e);!(o=s.next()).done;)J1(o.value)&&yb(o.value,t)}}function mb(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=O1(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==u1&&t.$$typeof!==f1)return;r=t.propTypes}r?(I1(e),ZT(r,e.props,"prop",n,R1.getStackAddendum),I1(null)):void 0===t.PropTypes||db||(db=!0,U("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||U("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function gb(e,t,r){var n,i=lb(e),t=(i||(n="",(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(n+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),n+=(null!=(t=t)&&void 0!==(t=t.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"")||pb(),null===e?s="null":Array.isArray(e)?s="array":void 0!==e&&e.$$typeof===e1?(s="<"+(O1(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,U("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,n)),$1.apply(this,arguments));if(null==t)return t;if(i)for(var o=2;o<arguments.length;o++)vb(arguments[o],e);if(e===r1){var s=t;I1(s);for(var a=Object.keys(s.props),u=0;u<a.length;u++){var c=a[u];if("children"!==c&&"key"!==c){U("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c);break}}null!==s.ref&&U("Invalid attribute `ref` supplied to `React.Fragment`."),I1(null)}else mb(t);return t}var Eb=!1;try{var wb=Object.freeze({}),Tb=new Map([[wb,null]]),bb=new Set([wb]);Tb.set(0,0),bb.add(0)}catch(e){}function _b(e,t,r){for(var n=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n,i,o=QT({},e.props),s=e.key,a=e.ref,u=e._self,c=e._source,l=e._owner;if(null!=t)for(n in z1(t)&&(a=t.ref,l=T1.current),B1(t)&&(s=""+t.key),e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)K1.call(t,n)&&!G1.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==i?o[n]=i[n]:o[n]=t[n]);var f=arguments.length-2;if(1==f)o.children=r;else if(1<f){for(var p=Array(f),d=0;d<f;d++)p[d]=arguments[d+2];o.children=p}return Y1(e.type,s,a,u,c,l,o)}.apply(this,arguments),i=2;i<arguments.length;i++)vb(arguments[i],n.type);return mb(n),n}function Ob(e){var t=gb.bind(null,e);return t.type=e,Eb||(Eb=!0,A1("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return A1("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}w=gb,x.Children={map:function(e,t,r){if(null==e)return e;var n=[];return cb(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=nb(null,null,t,r),ob(e,ab,t),ib(t)},count:function(e){return ob(e,function(){return null},null)},toArray:function(e){var t=[];return cb(e,t,null,function(e){return e}),t},only:function(e){if(J1(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},x.Component=U1,x.Fragment=r1,x.Profiler=i1,x.PureComponent=j1,x.StrictMode=n1,x.Suspense=c1,x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N1,x.cloneElement=_b,x.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&U("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:s1,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:o1,_context:r}),i=!1,t={$$typeof:s1,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return i||(i=!0,U("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,U("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}}}),r.Consumer=t,r._currentRenderer=null,r._currentRenderer2=null,r},x.createElement=w,x.createFactory=Ob,x.createRef=function(){var e={current:null};return Object.seal(e),e},x.forwardRef=function(e){return null!=e&&e.$$typeof===f1?U("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?U("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&U("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null==e||null==e.defaultProps&&null==e.propTypes||U("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:u1,render:e}},x.isValidElement=J1,x.lazy=function(e){var t,r,n={$$typeof:p1,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){U("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){U("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},x.memo=function(e,t){return lb(e)||U("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:f1,type:e,compare:void 0===t?null:t}},x.useCallback=function(e,t){return fb().useCallback(e,t)},x.useContext=function(e,t){var r,n=fb();return void 0!==t&&U("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context&&((r=e._context).Consumer===e?U("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&U("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},x.useDebugValue=function(e,t){return fb().useDebugValue(e,t)},x.useEffect=function(e,t){return fb().useEffect(e,t)},x.useImperativeHandle=function(e,t,r){return fb().useImperativeHandle(e,t,r)},x.useLayoutEffect=function(e,t){return fb().useLayoutEffect(e,t)},x.useMemo=function(e,t){return fb().useMemo(e,t)},x.useReducer=function(e,t,r){return fb().useReducer(e,t,r)},x.useRef=function(e){return fb().useRef(e)},x.useState=function(e){return fb().useState(e)},x.version="16.14.0"}"production"===production?P.exports=b:P.exports=x;var Rb=P.exports,Sb=P.exports.createContext({hackle:void 0,userVersion:0,initialized:!1}),Ti=Sb.Consumer,Ib=Sb.Provider;var Nb=l.Logger.log;function Ab(e,t){e=Cb(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function Cb(e,t){void 0===t&&(t="A");var r=P.exports.useContext(Sb),n=r.hackle,i=r.userVersion,o=r.initialized,s=P.exports.useCallback(function(){return o?(null==n?void 0:n.variationDetail(e))||l.Decision.of(t,l.DecisionReason.EXCEPTION):l.Decision.of(t,l.DecisionReason.SDK_NOT_READY)},[t,e,n,o]),r=oT(P.exports.useState(function(){return n?s():(Nb.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2),a=r[0],r=r[1],i={key:e,userVersion:i,initialized:o},u=oT(P.exports.useState(i),2),c=u[0],u=u[1];return Mb(c,i)||(u(i),r(s())),{isLoading:!o,decision:a}}function kb(e){e=xb(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function xb(e){var t=P.exports.useContext(Sb),r=t.hackle,n=t.userVersion,i=t.initialized,o=P.exports.useCallback(function(){return i?(null==r?void 0:r.featureFlagDetail(e))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION):l.FeatureFlagDecision.off(l.DecisionReason.SDK_NOT_READY)},[e,r,i]),t=oT(P.exports.useState(function(){return r?o():(Nb.error("HackleClient is not existed"),l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION))}),2),s=t[0],t=t[1],n={key:e,userVersion:n,initialized:i},a=oT(P.exports.useState(n),2),u=a[0],a=a[1];return Mb(u,n)||(a(n),t(o())),{isLoading:!i,decision:s}}function Mb(e,t){return e.initialized===t.initialized&&e.key===t.key&&e.userVersion===t.userVersion}function Pb(e){var t,r=e.experimentKey,e=e.children,n=(r=Ab(r)).isLoading,i=r.variation;return n?null:e&&"function"==typeof e?e(i):(P.exports.Children.forEach(e,function(e){P.exports.isValidElement(e)&&(e.props.variation?i===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?P.exports.cloneElement(t,{variation:i}):null)}function Ub(e){return e.variation,e=e.children,P.exports.createElement(P.exports.Fragment,null,e)}function Db(e){var t=(r=kb(e.featureKey)).isLoading,r=r.isOn;return t?null:Rb.createElement(Rb.Fragment,null,e.children(r))}l.HackleContext=Sb,l.HackleContextConsumer=Ti,l.HackleContextProvider=Ib,l.HackleExperiment=Pb,l.HackleFeature=Db,l.HackleProvider=function(e){var t=e.hackleClient,r=e.user,n=void 0===(i=e.timeout)?3e3:i,i=void 0!==(i=e.supportSSR)&&i,e=e.children,o=oT(P.exports.useState({hackle:t,initialized:!1,userVersion:0}),2),s=o[0],a=o[1];return P.exports.useEffect(function(){null!=r&&t.setUser(r)},[r]),P.exports.useEffect(function(){function e(){a(function(e){return iT(iT({},e),{userVersion:e.userVersion+1})})}return t.on("user-updated",e),function(){t.off("user-updated",e)}},[t]),P.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){a(function(e){return iT(iT({},e),{initialized:!0})})},function(){a(function(e){return iT(iT({},e),{initialized:!0})})}).catch(function(){a(function(e){return iT(iT({},e),{initialized:!0})})})},[t]),i||s.initialized?Rb.createElement(Ib,{value:s},e):null},l.HackleVariation=Ub,l.createInstance=function(e,t){return new fT(e,t)},l.useFeature=function(e){var t=(n=P.exports.useContext(Sb)).hackle,r=n.userVersion,n=n.initialized,i=P.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e))||!1},[e,t,n]),o=(s=oT(P.exports.useState(function(){return t?i():("undefined"!=typeof window&&Nb.error("HackleClient is not existed"),!1)}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=oT(P.exports.useState(r),2))[0],n=n[1];return Mb(a,r)||(n(r),s(i())),o},l.useFeatureFlagDetail=function(e){var t=(n=P.exports.useContext(Sb)).hackle,r=n.userVersion,n=n.initialized,i=P.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION)},[e,t,n]),o=(s=oT(P.exports.useState(function(){return t?i():("undefined"!=typeof window&&Nb.error("HackleClient is not existed"),l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION))}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=oT(P.exports.useState(r),2))[0],n=n[1];return Mb(a,r)||(n(r),s(i())),o},l.useLoadableFeature=kb,l.useLoadableFeatureDetail=xb,l.useLoadableRemoteConfig=function(){var e=(o=P.exports.useContext(Sb)).hackle,t=o.userVersion,r=o.initialized,n=P.exports.useCallback(function(){return r&&(null==e?void 0:e.remoteConfig())||new l.EmptyHackleRemoteConfig},[e,r]),i=(o=oT(P.exports.useState(function(){return e||Nb.error("HackleClient is not existed"),n()}),2))[0],o=o[1],t={userVersion:t,initialized:r},s=(a=oT(P.exports.useState(t),2))[0],a=a[1];return Mb(s,t)||(a(t),o(n())),{isLoading:!r,remoteConfig:i}},l.useLoadableVariation=Ab,l.useLoadableVariationDetail=Cb,l.useRemoteConfig=function(){var e=(r=P.exports.useContext(Sb)).hackle,t=r.userVersion,r=r.initialized,n=P.exports.useCallback(function(){return(null==e?void 0:e.remoteConfig())||new l.EmptyHackleRemoteConfig},[e,r]),i=(o=oT(P.exports.useState(function(){return e||Nb.error("HackleClient is not existed"),n()}),2))[0],o=o[1],t={userVersion:t,initialized:r},s=(r=oT(P.exports.useState(t),2))[0],r=r[1];return Mb(s,t)||(r(t),o(n())),i},l.useTrack=function(){var t=P.exports.useContext(Sb).hackle;return t?function(e){return null==t?void 0:t.track(e)}:(Nb.error("HackleClient is not existed"),function(){})},l.useVariation=function(e,t){void 0===t&&(t="A");var r=(a=P.exports.useContext(Sb)).hackle,n=a.userVersion,i=a.initialized,o=P.exports.useCallback(function(){return i&&(null==r?void 0:r.variation(e))||t},[t,e,r,i]),s=(a=oT(P.exports.useState(function(){return r?o():("undefined"!=typeof window&&Nb.error("HackleClient is not existed"),t)}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:i},u=(c=oT(P.exports.useState(n),2))[0],c=c[1];return Mb(u,n)||(c(n),a(o())),s},l.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(i=P.exports.useContext(Sb)).hackle,n=i.userVersion,i=i.initialized,o=P.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e))||l.Decision.of(t,l.DecisionReason.EXCEPTION)},[t,e,r,i]),s=(a=oT(P.exports.useState(function(){return r?o():("undefined"!=typeof window&&Nb.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:i},u=(i=oT(P.exports.useState(n),2))[0],i=i[1];return Mb(u,n)||(i(n),a(o())),s},Object.defineProperty(l,"__esModule",{value:!0})});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).hackleReactSDK={})}(this,function(l){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function D(r){if(r.__esModule)return r;var n=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(e){var t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:function(){return r[e]}})}),n}var L,t={},F=new Uint8Array(16);function j(){if(L=L||"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto))return L(F);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}var V=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function H(e){return"string"==typeof e&&V.test(e)}for(var K,G,z=[],B=0;B<256;++B)z.push((B+256).toString(16).substr(1));function q(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,e=(z[e[t+0]]+z[e[t+1]]+z[e[t+2]]+z[e[t+3]]+"-"+z[e[t+4]]+z[e[t+5]]+"-"+z[e[t+6]]+z[e[t+7]]+"-"+z[e[t+8]]+z[e[t+9]]+"-"+z[e[t+10]]+z[e[t+11]]+z[e[t+12]]+z[e[t+13]]+z[e[t+14]]+z[e[t+15]]).toLowerCase();if(H(e))return e;throw TypeError("Stringified UUID is invalid")}var Y=0,$=0;function J(e){if(!H(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}function X(e,s,a){function t(e,t,r,n){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),16!==(t="string"==typeof t?J(t):t).length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+e.length);if(i.set(t),i.set(e,t.length),(i=a(i))[6]=15&i[6]|s,i[8]=63&i[8]|128,r){n=n||0;for(var o=0;o<16;++o)r[n+o]=i[o];return r}return q(i)}try{t.name=e}catch(e){}return t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t}function W(e){return 14+(e+64>>>9<<4)+1}function Q(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function Z(e,t,r,n,i,o){return Q((t=Q(Q(t,e),Q(n,o)))<<i|t>>>32-i,r)}function ee(e,t,r,n,i,o,s){return Z(t&r|~t&n,e,t,i,o,s)}function te(e,t,r,n,i,o,s){return Z(t&n|r&~n,e,t,i,o,s)}function re(e,t,r,n,i,o,s){return Z(t^r^n,e,t,i,o,s)}function ne(e,t,r,n,i,o,s){return Z(r^(t|~n),e,t,i,o,s)}var r=X("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}for(var n=function(e,t){e[t>>5]|=128<<t%32,e[W(t)-1]=t;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=r,u=n,c=i,l=o;r=ee(r,n,i,o,e[s],7,-680876936),o=ee(o,r,n,i,e[s+1],12,-389564586),i=ee(i,o,r,n,e[s+2],17,606105819),n=ee(n,i,o,r,e[s+3],22,-1044525330),r=ee(r,n,i,o,e[s+4],7,-176418897),o=ee(o,r,n,i,e[s+5],12,1200080426),i=ee(i,o,r,n,e[s+6],17,-1473231341),n=ee(n,i,o,r,e[s+7],22,-45705983),r=ee(r,n,i,o,e[s+8],7,1770035416),o=ee(o,r,n,i,e[s+9],12,-1958414417),i=ee(i,o,r,n,e[s+10],17,-42063),n=ee(n,i,o,r,e[s+11],22,-1990404162),r=ee(r,n,i,o,e[s+12],7,1804603682),o=ee(o,r,n,i,e[s+13],12,-40341101),i=ee(i,o,r,n,e[s+14],17,-1502002290),n=ee(n,i,o,r,e[s+15],22,1236535329),r=te(r,n,i,o,e[s+1],5,-165796510),o=te(o,r,n,i,e[s+6],9,-1069501632),i=te(i,o,r,n,e[s+11],14,643717713),n=te(n,i,o,r,e[s],20,-373897302),r=te(r,n,i,o,e[s+5],5,-701558691),o=te(o,r,n,i,e[s+10],9,38016083),i=te(i,o,r,n,e[s+15],14,-660478335),n=te(n,i,o,r,e[s+4],20,-405537848),r=te(r,n,i,o,e[s+9],5,568446438),o=te(o,r,n,i,e[s+14],9,-1019803690),i=te(i,o,r,n,e[s+3],14,-187363961),n=te(n,i,o,r,e[s+8],20,1163531501),r=te(r,n,i,o,e[s+13],5,-1444681467),o=te(o,r,n,i,e[s+2],9,-51403784),i=te(i,o,r,n,e[s+7],14,1735328473),n=te(n,i,o,r,e[s+12],20,-1926607734),r=re(r,n,i,o,e[s+5],4,-378558),o=re(o,r,n,i,e[s+8],11,-2022574463),i=re(i,o,r,n,e[s+11],16,1839030562),n=re(n,i,o,r,e[s+14],23,-35309556),r=re(r,n,i,o,e[s+1],4,-1530992060),o=re(o,r,n,i,e[s+4],11,1272893353),i=re(i,o,r,n,e[s+7],16,-155497632),n=re(n,i,o,r,e[s+10],23,-1094730640),r=re(r,n,i,o,e[s+13],4,681279174),o=re(o,r,n,i,e[s],11,-358537222),i=re(i,o,r,n,e[s+3],16,-722521979),n=re(n,i,o,r,e[s+6],23,76029189),r=re(r,n,i,o,e[s+9],4,-640364487),o=re(o,r,n,i,e[s+12],11,-421815835),i=re(i,o,r,n,e[s+15],16,530742520),n=re(n,i,o,r,e[s+2],23,-995338651),r=ne(r,n,i,o,e[s],6,-198630844),o=ne(o,r,n,i,e[s+7],10,1126891415),i=ne(i,o,r,n,e[s+14],15,-1416354905),n=ne(n,i,o,r,e[s+5],21,-57434055),r=ne(r,n,i,o,e[s+12],6,1700485571),o=ne(o,r,n,i,e[s+3],10,-1894986606),i=ne(i,o,r,n,e[s+10],15,-1051523),n=ne(n,i,o,r,e[s+1],21,-2054922799),r=ne(r,n,i,o,e[s+8],6,1873313359),o=ne(o,r,n,i,e[s+15],10,-30611744),i=ne(i,o,r,n,e[s+6],15,-1560198380),n=ne(n,i,o,r,e[s+13],21,1309151649),r=ne(r,n,i,o,e[s+4],6,-145523070),o=ne(o,r,n,i,e[s+11],10,-1120210379),i=ne(i,o,r,n,e[s+2],15,718787259),n=ne(n,i,o,r,e[s+9],21,-343485551),r=Q(r,a),n=Q(n,u),i=Q(i,c),o=Q(o,l)}return[r,n,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(W(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length),i=[],o=32*n.length,s="0123456789abcdef",a=0;a<o;a+=8){var u=n[a>>5]>>>a%32&255,u=parseInt(s.charAt(u>>>4&15)+s.charAt(15&u),16);i.push(u)}return i});function ie(e,t){return e<<t|e>>>32-t}var oe=X("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var i=0;i<n.length;++i)e.push(n.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s),u=0;u<s;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=e[64*u+4*l]<<24|e[64*u+4*l+1]<<16|e[64*u+4*l+2]<<8|e[64*u+4*l+3];a[u]=c}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<s;++f){for(var p=new Uint32Array(80),d=0;d<16;++d)p[d]=a[f][d];for(var h=16;h<80;++h)p[h]=ie(p[h-3]^p[h-8]^p[h-14]^p[h-16],1);for(var y=r[0],v=r[1],m=r[2],g=r[3],E=r[4],w=0;w<80;++w)var T=Math.floor(w/20),T=ie(y,5)+function(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:return t^r^n;case 2:return t&r^t&n^r&n;case 3:return t^r^n}}(T,v,m,g)+E+t[T]+p[w]>>>0,E=g,g=m,m=ie(v,30)>>>0,v=y,y=T;r[0]=r[0]+y>>>0,r[1]=r[1]+v>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+E>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]});var se,r=D(Object.freeze({__proto__:null,v1:function(e,t,r){var n=t&&r||0,i=t||new Array(16),o=(e=e||{}).node||K,r=void 0!==e.clockseq?e.clockseq:G,s=(null!=o&&null!=r||(s=e.random||(e.rng||j)(),null==o&&(o=K=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==r&&(r=G=16383&(s[6]<<8|s[7]))),void 0!==e.msecs?e.msecs:Date.now()),a=void 0!==e.nsecs?e.nsecs:$+1,u=s-Y+(a-$)/1e4;if(u<0&&void 0===e.clockseq&&(r=r+1&16383),1e4<=(a=(u<0||Y<s)&&void 0===e.nsecs?0:a))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Y=s,G=r,u=(1e4*(268435455&(s+=122192928e5))+($=a))%4294967296,i[n++]=u>>>24&255,i[n++]=u>>>16&255,i[n++]=u>>>8&255,i[n++]=255&u,e=s/4294967296*1e4&268435455,i[n++]=e>>>8&255,i[n++]=255&e,i[n++]=e>>>24&15|16,i[n++]=e>>>16&255,i[n++]=r>>>8|128,i[n++]=255&r;for(var c=0;c<6;++c)i[n+c]=o[c];return t||q(i)},v3:r,v4:function(e,t,r){var n=(e=e||{}).random||(e.rng||j)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return q(n)},v5:oe,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(H(e))return parseInt(e.substr(14,1),16);throw TypeError("Invalid UUID")},validate:H,stringify:q,parse:J})),ae=(l.setUserId=void 0,l.sanitizeUser=void 0,l.removeUserId=void 0,l.getUserId=void 0,l.Version=void 0,l.Variation=void 0,l.TargetingType=void 0,l.TargetRule=void 0,l.TargetMatch=void 0,l.TargetKey=void 0,l.TargetCondition=void 0,l.TargetAction=void 0,l.Target=void 0,l.TARGET_KEY_TYPES=void 0,l.TARGET_ACTION_TYPES=void 0,l.Slot=void 0,l.Segment=void 0,l.SEGMENT_TYPES=void 0,l.RemoteConfigTargetRule=void 0,l.RemoteConfigParameterValue=void 0,l.RemoteConfigParameter=void 0,l.RemoteConfigDecision=void 0,l.ParameterConfiguration=void 0,l.MetaVersion=void 0,l.MATCH_VALUE_TYPES=void 0,l.MATCH_TYPES=void 0,l.MATCH_OPERATORS=void 0,l.Logger=void 0,l.InAppMessageDecision=void 0,l.IdentifiersBuilder=void 0,l.IdentifierType=void 0,l.IAMTargetRuleOverride=void 0,l.IAMTargetContext=void 0,l.IAMEventTriggerRule=void 0,l.IAMDateRange=void 0,l.IAMContext=void 0,l.IAM=void 0,l.FeatureFlagDecision=void 0,l.Experiment=void 0,l.EventType=void 0,l.EmptyParameterConfig=void 0,l.EmptyHackleRemoteConfig=void 0,l.DecisionReason=void 0,l.Decision=void 0,l.CoreVersion=void 0,l.ContainerGroup=void 0,l.Container=void 0,l.Bucket=void 0,Object.defineProperty(t,"__esModule",{value:!0}),r),ue=function(e,t){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function ce(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ue(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var y=function(){return(y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function le(e,s,a,u){return new(a=a||Promise)(function(r,t){function n(e){try{o(u.next(e))}catch(e){t(e)}}function i(e){try{o(u.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,i)}o((u=u.apply(e,s||[])).next())})}function fe(n,i){var o,s,a,u={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,s&&(a=2&t[0]?s.return:t[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,t[1])).done)return a;switch(s=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,s=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!((a=0<(a=u.trys).length&&a[a.length-1])||6!==t[0]&&2!==t[0])){u=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){u.label=t[1];break}if(6===t[0]&&u.label<a[1]){u.label=a[1],a=t;break}if(a&&u.label<a[2]){u.label=a[2],u.ops.push(t);break}a[2]&&u.ops.pop(),u.trys.pop();continue}t=i.call(n,u)}catch(e){t=[6,e],s=0}finally{o=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}Te.isNotNullOrUndefined=function(e){return null!=e},Te.isNullOrUndefined=function(e){return null==e},Te.requiredNotNullOrUndefined=function(e,t){if(void 0===t&&(t=function(){return"Required value is null or undefined"}),this.isNullOrUndefined(e))throw new Error(t());return e},Te.fromMap=function(e){var r={};return e.forEach(function(e,t){r[t]=e}),r};var a=Te,c=(we.mapNotNullOrUndefined=function(e,t){for(var r=Array(),n=0,i=e;n<i.length;n++){var o=t(i[n]);a.isNotNullOrUndefined(o)&&r.push(o)}return r},we.associateTo=function(e,t,r){for(var n=0,i=e;n<i.length;n++){var o=r(i[n]);t.set(o[0],o[1])}return t},we.associate=function(e,t){return this.associateTo(e,new Map,t)},we.associateBy=function(e,t){return this.associate(e,function(e){return[t(e),e]})},we.chunked=function(e,t){for(var r=[],n=e.slice();n.length;)r.push(n.splice(0,t));return r},we),pe={DISABLE:0,ERROR:1,WARN:2,INFO:3,DEBUG:4},de=(Ee.setLogLevel=function(e){this.logLevel=e=void 0===e?pe.INFO:e},Ee.initCounter=function(t){this.counters=c.associate(Object.keys(pe),function(e){return[e,t(e)]})},Ee._log=function(e,t){var r;switch(e){case"WARN":r="orange";break;case"ERROR":r="red";break;default:r="#AAAAAA"}if(t instanceof Error)he.log(e,r,t.message,t);else try{he.log(e,r,t)}catch(e){}},Ee.increment=function(e){var t;null!=(t=null==(t=Ee.counters)?void 0:t.get(e))&&t.increment()},Ee.logLevel=pe.INFO,Ee.log={error:function(e){pe.ERROR<=Ee.logLevel&&(Ee._log("ERROR",e),Ee.increment("ERROR"))},warn:function(e){pe.WARN<=Ee.logLevel&&(Ee._log("WARN",e),Ee.increment("WARN"))},info:function(e){pe.INFO<=Ee.logLevel&&(Ee._log("INFO",e),Ee.increment("INFO"))},debug:function(e){pe.DEBUG<=Ee.logLevel&&(Ee._log("DEBUG",e),Ee.increment("DEBUG"))}},Ee),he=(ge.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},ge),ye="X-HACKLE-SDK-NAME",ve=[0,8,16,32,64,128,256,512],me=de.log;function ge(){}function Ee(){}function we(){}function Te(){}function be(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}var _e={getRequest:function(n,i){return{abort:function(){},responsePromise:new Promise(function(e,t){var r=new XMLHttpRequest;r.open("GET",n),r.onreadystatechange=function(){r.readyState===r.DONE&&(0===r.status?t(new Error("Request error")):e({statusCode:r.status,body:r.responseText}))},r.onerror=function(){t()},r.setRequestHeader("content-type","application/json"),be(r,i),r.send()})}},postRequest:function(e,t,r,n,i){var t=JSON.stringify(t),o=new XMLHttpRequest;o.open("POST",e),o.onreadystatechange=function(){o.readyState===o.DONE&&(200<=o.status&&o.status<400?n({statusCode:o.status}):i&&i({statusCode:o.status}))},o.setRequestHeader("content-type","application/json"),be(o,r),o.send(t)},sendBeacon:function(e,t,r,n,i){var o=!1;if(o="undefined"!=typeof window?window&&window.navigator&&window.navigator.sendBeacon&&!0:o){o=JSON.stringify(t),t=new URLSearchParams;if(t.append("sdkName",r[ye]),t.append("sdkVersion",r["X-HACKLE-SDK-VERSION"]),t.append("sdkKey",r["X-HACKLE-SDK-KEY"]),t.append("data",o),!window.navigator.sendBeacon(e,t))return me.error("sendBeacon failed to queue request."),void i();n()}else me.error("Does not support sendBeacon"),i()}},Oe=de.log,Re=(Ce.isEquals=function(t,r){if(null==r)return!1;var e=Object.keys(t);return e.length===Object.keys(r).length&&e.every(function(e){return t[e]===r[e]})},Ce.sanitize=function(e){var t={};if(a.isNullOrUndefined(e))return t;for(var r=0,n=Object.entries(e);r<n.length;r++){var i=n[r],o=i[0],i=i[1];this.isValidType(o)?(i=this.sanitizeValue(i),a.isNullOrUndefined(i)?Oe.debug("Invalid identifier value. The identifier type value be a string of 512 characters or less. [".concat(o,"]")):t[o]=i):Oe.debug("Invalid identifier type. The identifier type must be a string of 128 characters or less. [".concat(o,"]"))}return t},Ce.isValidType=function(e){return!a.isNullOrUndefined(e)&&"string"==typeof e&&0<e.length&&e.length<=this.MAX_IDENTIFIER_TYPE_LENGTH},Ce.sanitizeValue=function(e){return"string"==typeof e&&0<e.length&&e.length<=this.MAX_IDENTIFIER_VALUE_LENGTH?e:"number"==typeof e?e.toString():null},Ce.MAX_IDENTIFIER_TYPE_LENGTH=128,Ce.MAX_IDENTIFIER_VALUE_LENGTH=512,Ce),Se=de.log,Ie=(Ae.sanitize=function(e){var t={};if(a.isNullOrUndefined(e))return t;for(var r=0,n=Object.entries(e);r<n.length;r++){var i,o=n[r],s=o[0],o=o[1];if(Object.keys(t).length>=this.MAX_PROPERTIES_COUNT){Se.debug("The number of properties cannot exceed 128. Drops excess properties. [".concat(s,", ").concat(o,"]"));break}this.isValidKey(s)?(i=this.sanitizeValue(s,o),a.isNullOrUndefined(i)?Se.debug("Invalid property value. The property value mus be 'string(..1024)', 'number', 'boolean', or 'array' type. [".concat(o,"]")):t[s]=i):Se.debug("Invalid property key. The property key must be a string of 128 characters or less. [".concat(s,"]"))}return t},Ae.isValidProperty=function(e,t){return this.isValidKey(e)&&this.isValidValue(t)},Ae.isValidKey=function(e){return a.isNotNullOrUndefined(e)&&"string"==typeof e&&0<e.length&&e.length<=this.MAX_PROPERTY_KEY_LENGTH},Ae.sanitizeValue=function(e,t){var r=this;return e.startsWith(this.SYSTEM_PROPERTY_KEY_PREFIX)?t:this.isValidValue(t)?Array.isArray(t)?t.filter(function(e){return r.isValidElement(e)}):t:null},Ae.isValidValue=function(e){return!a.isNullOrUndefined(e)&&("string"==typeof e?e.length<=this.MAX_PROPERTY_VALUE_LENGTH:"number"==typeof e?!isNaN(e)&&isFinite(e):"boolean"==typeof e||Array.isArray(e))},Ae.isValidElement=function(e){return!a.isNullOrUndefined(e)&&("string"==typeof e?0<e.length&&e.length<=this.MAX_PROPERTY_VALUE_LENGTH:"number"==typeof e)},Ae.SYSTEM_PROPERTY_KEY_PREFIX="$",Ae.MAX_PROPERTIES_COUNT=128,Ae.MAX_PROPERTY_KEY_LENGTH=128,Ae.MAX_PROPERTY_VALUE_LENGTH=1024,Ae),Ne=de.log;function Ae(){}function Ce(){}function ke(e,t){e=e.find(function(e){return e===t});return e||Ne.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e}function xe(e,t){this.value=e,this.reason=t}function Me(e,t){this.id=e,this.key=t}function Pe(e){var t,r={};return r.id=null!=(t=Re.sanitizeValue(e.id))?t:void 0,r.userId=null!=(t=Re.sanitizeValue(e.userId))?t:void 0,r.deviceId=null!=(t=Re.sanitizeValue(e.deviceId))?t:void 0,"object"==typeof e.properties&&(r.properties=Ie.sanitize(e.properties)),"object"==typeof e.identifiers&&(r.identifiers=Re.sanitize(e.identifiers)),Boolean(r.id||r.userId||r.deviceId||r.identifiers&&0<Object.keys(r.identifiers).length)?r:null}St.of=function(e,t){return new St(e,t)};var Ue=St,De=(Rt.of=function(e,t,r){return new Rt(e,t,r=void 0===r?new Fe:r)},Rt.prototype.get=function(e,t){return this.config.get(e,t)},Rt),Le=(Ot.on=function(e,t){return new Ot(!0,e,t=void 0===t?new Fe:t)},Ot.off=function(e,t){return new Ot(!1,e,t=void 0===t?new Fe:t)},Ot.prototype.get=function(e,t){return this.config.get(e,t)},Ot),oe=(_t.prototype.get=function(e,t){return t},_t),Fe=(bt.prototype.get=function(e,t){return t},bt),s=(n.SDK_NOT_READY="SDK_NOT_READY",n.EXCEPTION="EXCEPTION",n.INVALID_INPUT="INVALID_INPUT",n.EXPERIMENT_NOT_FOUND="EXPERIMENT_NOT_FOUND",n.EXPERIMENT_DRAFT="EXPERIMENT_DRAFT",n.EXPERIMENT_PAUSED="EXPERIMENT_PAUSED",n.EXPERIMENT_COMPLETED="EXPERIMENT_COMPLETED",n.OVERRIDDEN="OVERRIDDEN",n.TRAFFIC_NOT_ALLOCATED="TRAFFIC_NOT_ALLOCATED",n.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT="NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT",n.IDENTIFIER_NOT_FOUND="IDENTIFIER_NOT_FOUND",n.VARIATION_DROPPED="VARIATION_DROPPED",n.TRAFFIC_ALLOCATED="TRAFFIC_ALLOCATED",n.TRAFFIC_ALLOCATED_BY_TARGETING="TRAFFIC_ALLOCATED_BY_TARGETING",n.NOT_IN_EXPERIMENT_TARGET="NOT_IN_EXPERIMENT_TARGET",n.FEATURE_FLAG_NOT_FOUND="FEATURE_FLAG_NOT_FOUND",n.FEATURE_FLAG_INACTIVE="FEATURE_FLAG_INACTIVE",n.INDIVIDUAL_TARGET_MATCH="INDIVIDUAL_TARGET_MATCH",n.TARGET_RULE_MATCH="TARGET_RULE_MATCH",n.DEFAULT_RULE="DEFAULT_RULE",n.REMOTE_CONFIG_PARAMETER_NOT_FOUND="REMOTE_CONFIG_PARAMETER_NOT_FOUND",n.IN_APP_MESSAGE_NOT_FOUND="IN_APP_MESSAGE_NOT_FOUND",n.TYPE_MISMATCH="TYPE_MISMATCH",n),je=(Tt.fromJSON=function(e,t){var r=Tt.experimentStatusOrNull(t.execution.status),n=t.variations.map(function(e){return new Ve(e.id,e.key,"DROPPED"===e.status,e.parameterConfigurationId)}),i=c.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),o=c.mapNotNullOrUndefined(t.execution.segmentOverrides,function(e){return Xe.fromJSON(e,Dt.IDENTIFIER)}),s=c.mapNotNullOrUndefined(t.execution.targetAudiences,function(e){return Be.fromJSON(e,Dt.PROPERTY)}),a=c.mapNotNullOrUndefined(t.execution.targetRules,function(e){return Xe.fromJSON(e,Dt.PROPERTY)}),u=Je.fromJSON(t.execution.defaultRule);return r&&u&&new Tt(t.id,t.key,e,t.identifierType,r,t.version,n,i,o,s,a,u,t.containerId,t.winnerVariationId)},Tt.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void Ne.debug("Unsupported status [".concat(e,"]"))}},Tt.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},Tt.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},Tt.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},Tt),Ve=function(e,t,r,n){this.id=e,this.key=t,this.isDropped=r,this.parameterConfigurationId=n},He=(wt.fromJSON=function(e){return new wt(e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new Ke(t,r,e)}))},wt),Ke=(Et.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},Et),Ge=(gt.ID="$id",gt.USER="$userId",gt.DEVICE="$deviceId",gt.SESSION="$sessionId",gt.HACKLE_DEVICE="$hackleDeviceId",gt),ze=(mt.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},mt.prototype.add=function(e,t){var r=Re.sanitizeValue(t);return Re.isValidType(e)&&r?this.identifiers[e]=t:Ne.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},mt.prototype.build=function(){return this.identifiers},mt),Be=(vt.fromJSON=function(e,t){return new vt(c.mapNotNullOrUndefined(e.conditions,function(e){return qe.fromJSON(e,t)}))},vt.prototype.toJSON=function(){return{conditions:this.conditions.map(function(e){return e.toJSON()})}},vt),qe=(yt.fromJSON=function(e,t){var r=Ye.fromJSON(e.key);if(r&&t.supports(r.type))return(t=$e.fromJSON(e.match))&&new yt(r,t)},yt.prototype.toJSON=function(){return{key:this.key.toJSON(),match:this.match.toJSON()}},yt),Ye=(ht.fromJSON=function(e){var t=ke(Pt,e.type);return t&&new ht(t,e.name)},ht.prototype.toJSON=function(){return{type:this.type,name:this.name}},ht),$e=(dt.fromJSON=function(e){var t=ke(Ct,e.type),r=ke(xt,e.operator),n=ke(kt,e.valueType);return t&&r&&n&&new dt(t,r,n,e.values)},dt.prototype.toJSON=function(){return{operator:this.operator,type:this.type,valueType:this.valueType,values:this.values}},dt),Je=(pt.fromJSON=function(e){var t=ke(Mt,e.type);return t&&new pt(t,e.variationId,e.bucketId)},pt),Xe=(ft.fromJSON=function(e,t){t=Be.fromJSON(e.target,t),e=Je.fromJSON(e.action);return t&&e&&new ft(t,e)},ft),We=(lt.fromJSON=function(e){var t=ke(Ut,e.type);return t&&new lt(e.id,e.key,t,c.mapNotNullOrUndefined(e.targets,function(e){return Be.fromJSON(e,Dt.SEGMENT)}))},lt),Qe=(ct.fromJSON=function(e){return new ct(e.id,e.bucketId,e.groups.map(function(e){return Ze.fromJSON(e)}))},ct.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},ct),Ze=(ut.fromJSON=function(e){return new ut(e.id,e.experiments)},ut),et=(at.fromJSON=function(e){return new at(e.id,c.associate(e.parameters,function(e){return[e.key,e.value]}))},at.prototype.get=function(e,t){e=this.parameters.get(e);return!a.isNullOrUndefined(e)&&(a.isNullOrUndefined(t)||typeof e==typeof t)?e:t},at),tt=(st.fromJSON=function(e){var t=ke(kt,e.type),r=c.mapNotNullOrUndefined(e.targetRules,function(e){return rt.fromJSON(e,Dt.PROPERTY)}),n=nt.fromJSON(e.defaultValue);return t&&new st(e.id,e.key,t,e.identifierType,r,n)},st),rt=(ot.fromJSON=function(e,t){t=Be.fromJSON(e.target,t);return t&&new ot(e.key,e.name,t,e.bucketId,nt.fromJSON(e.value))},ot),nt=(it.fromJSON=function(e){return new it(e.id,e.value)},it);function it(e,t){this.id=e,this.rawValue=t}function ot(e,t,r,n,i){this.key=e,this.name=t,this.target=r,this.bucketId=n,this.value=i}function st(e,t,r,n,i,o){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.targetRules=i,this.defaultValue=o}function at(e,t){this.id=e,this.parameters=t}function ut(e,t){this.id=e,this.experiments=t}function ct(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function lt(e,t,r,n){this.id=e,this.key=t,this.type=r,this.targets=n}function ft(e,t){this.target=e,this.action=t}function pt(e,t,r){this.type=e,this.variationId=t,this.bucketId=r}function dt(e,t,r,n){this.type=e,this.operator=t,this.valueType=r,this.values=n}function ht(e,t){this.type=e,this.name=t}function yt(e,t){this.key=e,this.match=t}function vt(e){this.conditions=e}function mt(){this.identifiers={}}function gt(){}function Et(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function wt(e,t,r){this.seed=e,this.slotSize=t,this.slots=r}function Tt(e,t,r,n,i,o,s,a,u,c,l,f,p,d){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.status=i,this.version=o,this.variations=s,this.userOverrides=a,this.segmentOverrides=u,this.targetAudiences=c,this.targetRules=l,this.defaultRule=f,this.containerId=p,this._winnerVariationId=d}function n(){}function bt(){}function _t(){}function Ot(e,t,r){this.isOn=e,this.reason=t,this.config=r}function Rt(e,t,r){this.variation=e,this.reason=t,this.config=r}function St(e,t){this.value=e,this.reason=t}or.tryParse=function(e){var t,r,n,i,e=or.regExp.exec(e);if(e)return e[0],t=e[1],r=void 0===(r=e[2])?"0":r,n=void 0===(n=e[3])?"0":n,i=e[4],e=e[5],new or(new Nt(parseInt(t,10),parseInt(r,10),parseInt(n,10)),At.parse(i),At.parse(e))},or.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},or.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},or.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},or.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},or.prototype.isLessThan=function(e){return this.compareTo(e)<0},or.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},or.regExp=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*))?(?:\.(0|[1-9]\d*))?(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;var It=or,Nt=(ir.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},ir),At=(nr.parse=function(e){return e?new nr(e.split(".")):nr.EMPTY},nr.prototype.isEmpty=function(){return 0===this.identifiers.length},nr.prototype.isNotEmpty=function(){return!this.isEmpty()},nr.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},nr.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=nr.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},nr.compareIdentifiers=function(e,t){return nr.numericIdentifierRegExp.test(e)&&nr.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},nr.EMPTY=new nr([]),nr.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,nr),Ct=["MATCH","NOT_MATCH"],kt=["STRING","NUMBER","BOOLEAN","VERSION","JSON","NULL","UNKNOWN"],xt=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],Mt=["VARIATION","BUCKET"],Pt=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT","AB_TEST","FEATURE_FLAG","EVENT_PROPERTY"],Ut=["USER_ID","USER_PROPERTY"],Dt=(rr.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},rr.IDENTIFIER=new rr("SEGMENT"),rr.PROPERTY=new rr("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY","AB_TEST","FEATURE_FLAG"),rr.SEGMENT=new rr("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),rr.IAM=new rr("EVENT_PROPERTY","USER_PROPERTY","HACKLE_PROPERTY"),rr),Lt=(tr.fromJSON=function(e){return new tr(e.timeUnit,null===e.startEpochTime?e.startEpochTime:1e3*e.startEpochTime,null===e.endEpochTime?e.endEpochTime:1e3*e.endEpochTime)},tr.prototype.within=function(e){return"IMMEDIATE"===this.timeUnit||(null===this.startDateTime?null===this.endDateTime||e<=this.endDateTime:null===this.endDateTime?this.startDateTime<=e:this.startDateTime<=e&&e<=this.endDateTime)},tr.prototype.toJSON=function(){return{timeUnit:this.timeUnit,startEpochTime:null===this.startDateTime?this.startDateTime:this.startDateTime/1e3,endEpochTime:null===this.endDateTime?this.endDateTime:this.endDateTime/1e3}},tr),Ft=(er.fromJSON=function(e){return new er(e.eventKey,c.mapNotNullOrUndefined(e.targets,function(e){return Be.fromJSON(e,Dt.IAM)}),e.priority)},er.prototype.toJSON=function(){return{eventKey:this.eventKey,targets:this.targets.map(function(e){return e.toJSON()}),priority:this.priority}},er),jt=(Zt.fromJSON=function(e){return new Zt(e.identifierType,e.identifiers)},Zt.prototype.toTarget=function(){return new Be([new qe(new Ye("USER_ID",this.identifierType),new $e("MATCH","IN","STRING",this.identifiers))])},Zt.prototype.toJSON=function(){return{identifierType:this.identifierType,identifiers:this.identifiers}},Zt),Vt=(Qt.fromJSON=function(e){return new Qt(c.mapNotNullOrUndefined(e.targets,function(e){return Be.fromJSON(e,Dt.PROPERTY)}),c.mapNotNullOrUndefined(e.overrides,function(e){return jt.fromJSON(e)}))},Qt.prototype.toJSON=function(){return{targets:this.targets.map(function(e){return e.toJSON()}),overrides:this.overrides.map(function(e){return e.toJSON()})}},Qt),Ht=(Wt.fromJSON=function(e){return new Wt(e.defaultLang,e.messages,e.platformTypes,e.exposure)},Wt.prototype.getDefaultMessage=function(){var t=this;return this.messages.find(function(e){return e.lang===t.defaultLang})||this.messages[0]},Wt.prototype.supportsWeb=function(){return this.platformTypes.includes("WEB")},Wt.prototype.getMessageForLang=function(t){return this.messages.find(function(e){return e.lang===t})},Wt.prototype.toJSON=function(){return{defaultLang:this.defaultLang,messages:this.messages,platformTypes:this.platformTypes,exposure:this.exposure}},Wt),Kt=(Xt.fromJSON=function(e){return new Xt(e.key,e.status,Lt.fromJSON(e),e.eventTriggerRules.map(function(e){return Ft.fromJSON(e)}),Vt.fromJSON(e.targetContext),Ht.fromJSON(e.messageContext))},Xt.prototype.isActive=function(){return"ACTIVE"===this.status},Xt.prototype.supportsWeb=function(){return this.messageContext.supportsWeb()},Xt.prototype.toJSON=function(){return y(y({key:this.key,status:this.status},this.dateRange.toJSON()),{eventTriggerRules:this.eventTriggerRules.map(function(e){return e.toJSON()}),targetContext:this.targetContext.toJSON(),messageContext:this.messageContext.toJSON()})},Xt),Gt=(i.nanosToUnit=function(e,t){switch(t){case"microseconds":return e/(i.C1/i.C0);case"milliseconds":return e/(i.C2/i.C0);case"seconds":return e/(i.C3/i.C0);default:return e}},i.microsToUnit=function(e,t){switch(t){case"nanoseconds":return e*(i.C1/i.C0);case"milliseconds":return e/(i.C2/i.C1);case"seconds":return e/(i.C3/i.C1);default:return e}},i.millisToUnit=function(e,t){switch(t){case"nanoseconds":return e*(i.C2/i.C0);case"microseconds":return e*(i.C2/i.C1);case"seconds":return e/(i.C3/i.C2);default:return e}},i.secondsToUnit=function(e,t){switch(t){case"nanoseconds":return e*(i.C3/i.C0);case"microseconds":return e*(i.C3/i.C1);case"milliseconds":return e*(i.C3/i.C2);default:return e}},i.C3=1e3*(i.C2=1e3*(i.C1=1e3*(i.C0=1))),i.converter={nanoseconds:i.nanosToUnit,microseconds:i.microsToUnit,milliseconds:i.millisToUnit,seconds:i.secondsToUnit},i),zt=(Jt.prototype.tick=function(){return 1e3*Date.now()},Jt.prototype.currentMillis=function(){return Date.now()},Jt.instance=new Jt,Jt),Bt=($t.prototype.tags=function(e){var r=this;return Object.entries(e).forEach(function(e){var t=e[0],e=e[1];r._tags[t]=e}),this},$t.prototype.tag=function(e,t){return this._tags[e]=t,this},$t.prototype.register=function(e){return e.registerTimer({name:this.name,tags:this._tags,type:"TIMER"})},$t),qt=(Yt.start=function(e){return new Yt(e=void 0===e?Yt.defaultClock:e)},Yt.prototype.stop=function(e){var t=this._clock.tick()-this.startTime;e.record(t,"microseconds")},Yt.defaultClock=new zt,Yt);function Yt(e){this._clock=e,this.startTime=this._clock.tick()}function $t(e){this.name=e,this._tags={},this.name=e}function Jt(){}function i(){}function Xt(e,t,r,n,i,o){this.key=e,this.status=t,this.dateRange=r,this.eventTriggerRules=n,this.targetContext=i,this.messageContext=o}function Wt(e,t,r,n){this.defaultLang=e,this.messages=t,this.platformTypes=r,this.exposure=n}function Qt(e,t){this.targets=e,this.overrides=t}function Zt(e,t){this.identifierType=e,this.identifiers=t}function er(e,t,r){void 0===r&&(r=0),this.eventKey=e,this.targets=t,this.priority=r}function tr(e,t,r){this.timeUnit=e,this.startDateTime=t,this.endDateTime=r}function rr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function nr(e){this.identifiers=e}function ir(e,t,r){this.major=e,this.minor=t,this.patch=r}function or(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}ar.prototype.tags=function(e){var r=this;return Object.entries(e).forEach(function(e){var t=e[0],e=e[1];r._tags[t]=e}),this},ar.prototype.tag=function(e,t){return this._tags[e]=t,this},ar.prototype.register=function(e){return e.registerCounter({name:this.name,tags:this._tags,type:"COUNTER"})};var sr=ar;function ar(e){this.name=e,this._tags={}}Object.defineProperty(cr.prototype,"value",{get:function(){return this.valueSupplier()},enumerable:!1,configurable:!0});var ur=cr;function cr(e,t){this.valueSupplier=t,this.field=e}function lr(e,t){return e.name===t.name&&Re.isEquals(e.tags,t.tags)}Er.prototype.count=function(){return this.counterValue},Er.prototype.increment=function(e){this.counterValue+=null!=e?e:1},Er.prototype.measure=function(){return[new ur("count",this.count.bind(this))]};var fr,pr=Er,dr=(gr.prototype.flush=function(){var e=this.currentCounter;return this.currentCounter=new pr(this.id),e},gr.prototype.count=function(){return this.currentCounter.count()},gr.prototype.increment=function(e){this.currentCounter.increment(e)},gr.prototype.measure=function(){return[new ur("count",this.count.bind(this))]},gr),hr=(mr.prototype.values=function(){return Array.from(this.data.values())},mr.prototype.keys=function(){return Array.from(this.data.keys())},mr.prototype.get=function(t){var r=this,e=this.keys().find(function(e){return r.compareFn(e,t)});return e?this.data.get(e):void 0},mr.prototype.has=function(e){return void 0!==this.get(e)},mr.prototype.add=function(e,t){t=(t=t)||e;return this.data.set(e,t),this},mr.prototype.delete=function(e){var t;if(this.has(e))return t=this.get(e),this.data.delete(e),t},mr.prototype.forEach=function(e){this.data.forEach(e)},mr.prototype.entries=function(){return Array.from(this.data.entries())},mr),r=(Object.defineProperty(vr.prototype,"metrics",{get:function(){return Array.from(this._metrics.values())},enumerable:!1,configurable:!0}),vr.prototype.registerCounter=function(e){return this.registerMetricIfNecessary(e,this.createCounter.bind(this))},vr.prototype.registerTimer=function(e){return this.registerMetricIfNecessary(e,this.createTimer.bind(this))},vr.prototype.counter=function(e,t){return void 0===t&&(t={}),new sr(e).tags(t).register(this)},vr.prototype.timer=function(e,t){return void 0===t&&(t={}),new Bt(e).tags(t).register(this)},vr.prototype.registerMetricIfNecessary=function(e,t){return this.getOrCreateMetric(e,t)},vr.prototype.getOrCreateMetric=function(e,t){var r,n=this._metrics.get(e);return n?r=n:(r=t(e),this._metrics.add(e,r)),r},vr.prototype.close=function(){},vr),o=(ce(yr,fr=r),yr.prototype.start=function(){var e=this;void 0===this.currentIntervalId&&(this.currentIntervalId=setInterval(function(){e.publish()},this.pushIntervalMillis),de.log.debug("PushMetricRegistry started. Publish metrics every ".concat(this.pushIntervalMillis,"ms.")))},yr.prototype.stop=function(){void 0!==this.currentIntervalId&&(clearInterval(this.currentIntervalId),this.currentIntervalId=void 0,this.publish(),de.log.debug("PushMetricRegistry stopped."))},yr.prototype.close=function(){this.stop()},yr);function yr(e){var t=fr.call(this)||this;return t.pushIntervalMillis=e,t.currentIntervalId=void 0,t.pushIntervalMillis=e,t}function vr(){this.id=ae.v4(),this.name="MetricRegistry",this._metrics=new hr(lr)}function mr(e){this.compareFn=e,this.data=new Map,this.compareFn=e,this.data=new Map}function gr(e){this.id=e,this.currentCounter=new pr(e)}function Er(e){this.counterValue=0,this.id=e}Ar.prototype.count=function(){return this._count},Ar.prototype.totalTime=function(e){return Gt.nanosToUnit(this._total,e)},Ar.prototype.max=function(e){return Gt.nanosToUnit(this._max,e)},Ar.prototype.mean=function(e){return 0===this.count()?0:this.totalTime(e)/this.count()},Ar.prototype.record=function(e,t){e<0||(t=Gt.converter[t](e,"nanoseconds"),this._count=this.count()+1,this._total+=t,this._max=Math.max(t,this._max))},Ar.prototype.measure=function(){var e=this;return[new ur("count",this.count.bind(this)),new ur("total",function(){return e.totalTime("milliseconds")}),new ur("max",function(){return e.max("milliseconds")}),new ur("mean",function(){return e.mean("milliseconds")})]};var wr,Tr=Ar,br=(Nr.prototype.flush=function(){var e=this.currentTimer;return this.currentTimer=new Tr(this.id),e},Nr.prototype.count=function(){return this.currentTimer.count()},Nr.prototype.totalTime=function(e){return this.currentTimer.totalTime(e)},Nr.prototype.max=function(e){return this.currentTimer.max(e)},Nr.prototype.record=function(e,t){this.currentTimer.record(e,t)},Nr.prototype.mean=function(e){return 0===this.count()?0:this.totalTime(e)/this.count()},Nr.prototype.measure=function(){var e=this;return[new ur("count",this.count.bind(this)),new ur("total",function(){return e.totalTime("milliseconds")}),new ur("max",function(){return e.max("milliseconds")}),new ur("mean",function(){return e.mean("milliseconds")})]},Nr),o=(ce(Ir,wr=o),Ir.prototype.createCounter=function(e){return new dr(e)},Ir.prototype.createTimer=function(e){return new br(e)},Ir.prototype.publish=function(){var e=this.metrics.reduce(function(e,t){return void 0!==t.flush&&"function"==typeof t.flush?e.concat(t.flush()):e},[]);this.flushMetrics(e)},Ir.prototype.close=function(){wr.prototype.close.call(this)},Ir),_r=(Sr.prototype.count=function(){return 0},Sr.prototype.increment=function(e){},Sr.prototype.measure=function(){return[new ur("count",this.count.bind(this))]},Sr),Or=(Object.defineProperty(Rr.prototype,"counters",{get:function(){return Array.from(this._counters.values())},enumerable:!1,configurable:!0}),Rr.prototype.add=function(e){this._counters.add(e,e.registerCounter(this.id))},Rr.prototype.count=function(){return(this.counters[0]||this.noopCounter).count()},Rr.prototype.increment=function(t){this.counters.forEach(function(e){e.increment(t)})},Rr.prototype.measure=function(){return[new ur("count",this.count.bind(this))]},Rr);function Rr(e){this._counters=new hr(function(e,t){return e.id===t.id}),this.id=e,this.noopCounter=new _r(e)}function Sr(e){this.id=e}function Ir(e){return wr.call(this,e)||this}function Nr(e){this.id=e,this.currentTimer=new Tr(e)}function Ar(e){this._count=0,this._total=0,this._max=0,this.id=e}cn.prototype.measure=function(){var e=this;return[new ur("count",this.count.bind(this)),new ur("total",function(){return e.totalTime("milliseconds")}),new ur("max",function(){return e.max("milliseconds")}),new ur("mean",function(){return e.mean("milliseconds")})]},cn.prototype.count=function(){return 0},cn.prototype.totalTime=function(e){return 0},cn.prototype.max=function(e){return 0},cn.prototype.mean=function(e){return 0},cn.prototype.record=function(e,t){};var Cr,kr,xr,Mr,Pr,Ur=cn,Dr=(Object.defineProperty(un.prototype,"firstTimer",{get:function(){return this.timers[0]||this.noopTimer},enumerable:!1,configurable:!0}),un.prototype.totalTime=function(e){return this.firstTimer.totalTime(e)},un.prototype.max=function(e){return this.firstTimer.max(e)},un.prototype.mean=function(e){return this.firstTimer.mean(e)},un.prototype.record=function(t,r){this.timers.forEach(function(e){e.record(t,r)})},Object.defineProperty(un.prototype,"timers",{get:function(){return Array.from(this._timers.values())},enumerable:!1,configurable:!0}),un.prototype.add=function(e){this._timers.add(e,e.registerTimer(this.id))},un.prototype.count=function(){return this.firstTimer.count()},un.prototype.measure=function(){var e=this;return[new ur("count",this.count.bind(this)),new ur("total",function(){return e.totalTime("milliseconds")}),new ur("max",function(){return e.max("milliseconds")}),new ur("mean",function(){return e.mean("milliseconds")})]},un),r=(ce(an,Pr=r),an.prototype.createCounter=function(e){e=new Or(e);return this.addRegistry(e),e},an.prototype.createTimer=function(e){e=new Dr(e);return this.addRegistry(e),e},an.prototype.addRegistry=function(t){this.registries.forEach(function(e){return t.add(e)})},an.prototype.add=function(t){t instanceof an||this.registries.has(t)||(this.registries.add(t),this.metrics.forEach(function(e){void 0!==e.add&&"function"==typeof e.add&&e.add(t)}))},an.prototype.close=function(){this.registries.forEach(function(e){e.close()})},an),Lr=(sn.counter=function(e,t){return sn.globalRegistry.counter(e,t)},sn.timer=function(e,t){return sn.globalRegistry.timer(e,t)},sn.addRegistry=function(e){sn.globalRegistry.add(e),de.log.debug("MetricRegistry added ".concat(e.name))},sn.globalRegistry=new r,sn),Fr=(ce(on,Mr=o),on.prototype.flushMetrics=function(e){var t=this;c.chunked(e.filter(this.isDispatchTarget.bind(this)),100).forEach(function(e){t.dispatch(e)})},on.prototype.isDispatchTarget=function(e){return!("COUNTER"!==e.id.type&&"TIMER"!==e.id.type)&&0<e.count()},on.prototype.dispatch=function(e){this.useBeacon&&this.shouldUseBeacon?this.httpClient.sendBeacon(this.monitoringEndPoint,this.batch(e),this.httpHeader,function(){de.log.debug("Beacon called.")}):this.httpClient.postRequest(this.monitoringEndPoint,this.batch(e),this.httpHeader,function(){},function(){de.log.debug("Failed to flushing metrics.")})},on.prototype.batch=function(e){return{metrics:e.map(function(e){return{name:e.id.name,type:e.id.type,tags:e.id.tags,measurements:a.fromMap(c.associate(e.measure(),function(e){return[e.field,e.value]}))}})}},on.prototype.createCounter=function(e){return new dr(e)},on.prototype.createTimer=function(e){return new br(e)},on.prototype.close=function(){this.shouldUseBeacon=!0,Mr.prototype.close.call(this)},on),jr=(nn.experiment=function(e,t,r){t=Lr.timer("experiment.decision",{key:String(t),variation:r.variation,reason:String(r.reason)});e.stop(t)},nn.featureFlag=function(e,t,r){t=Lr.timer("feature.flag.decision",{key:String(t),on:String(r.isOn),reason:String(r.reason)});e.stop(t)},nn.remoteConfig=function(e,t,r){t=Lr.timer("remote.config.decision",{key:String(t),reason:String(r.reason)});e.stop(t)},nn),Vr=(rn.record=function(e,t,r){e=Lr.timer("api.call",{operation:e,success:String(r)});t.stop(e)},rn),Hr=(tn.decide=function(e,t,r,n){if(a.isNullOrUndefined(r))return this.decision(e,t,"NULL",r,n);switch(typeof r){case"string":return this.decision(e,t,"STRING",r,n);case"number":return this.decision(e,t,"NUMBER",r,n);case"boolean":return this.decision(e,t,"BOOLEAN",r,n);default:return this.decision(e,t,"UNKNOWN",r,n)}},tn.decision=function(e,t,r,n,i){return a.isNullOrUndefined(t)?Ue.of(n,s.INVALID_INPUT):e.remoteConfig(t,i,r,n)},tn),Kr=de.log,Gr=(en.prototype.get=function(e,t){var r,n=qt.start();try{r=this.decide(e,t)}catch(n){Kr.error("Unexpected exception while deciding remote config parameter[".concat(e,"]. Returning default value. : ").concat(n)),r=Ue.of(t,s.EXCEPTION)}return jr.remoteConfig(n,e,r),r.value},en.prototype.decide=function(e,t){var r=this.userManager.resolveCurrentOrNull(this.user);if(!r)return Kr.warn("invalid user"),Ue.of(t,s.INVALID_INPUT);r=this.hackleUserResolver.resolve(r);return Hr.decide(this.core,e,t,r)},en),u=de.log,zr=(Zr.prototype.getSessionId=function(){return this.sessionManager.sessionId},Zr.prototype.getUser=function(){return this.userManager.currentUser},Zr.prototype.setUser=function(e){try{var t=Pe(e);if(!t)return void u.warn("invalid user");this.userManager.setUser(t)}catch(e){u.error("Unexpected exception while set user: ".concat(e))}},Zr.prototype.setUserId=function(e){try{void 0===e&&this.userManager.setUserId(void 0);var t=Re.sanitizeValue(e);if(!t)return void u.warn("Invalid userId. [userId=".concat(e,"]"));this.userManager.setUserId(t)}catch(e){u.error("Unexpected exception while set userId: ".concat(e))}},Zr.prototype.setDeviceId=function(e){try{if(!Re.sanitizeValue(e))return void u.warn("Invalid deviceId. [deviceId=".concat(e,"]"));this.userManager.setDeviceId(e)}catch(e){u.error("Unexpected exception while set deviceId: ".concat(e))}},Zr.prototype.setUserProperty=function(e,t){try{if(!Ie.isValidKey(e))return void u.warn("Invalid property key. [key=".concat(e,"]"));if(!Ie.isValidValue(t))return void u.warn("Invalid property value. [key=".concat(t,"]"));this.userManager.setUserProperty(e,t)}catch(e){u.error("Unexpected exception while set userProperty: ".concat(e))}},Zr.prototype.setUserProperties=function(e){try{var t=Ie.sanitize(e);this.userManager.setUserProperties(t)}catch(e){u.error("Unexpected exception while set userProperties: ".concat(e))}},Zr.prototype.resetUser=function(){try{this.userManager.resetUser()}catch(e){u.error("Unexpected exception while reset user: ".concat(e))}},Zr.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},Zr.prototype.variationDetail=function(n,i,e){var o=e||"A",e=qt.start(),t=function(e){try{var t=e.userManager.resolveCurrentOrNull(i);if(!t)return u.warn("invalid user"),De.of(o,s.INVALID_INPUT);var r=e.hackleUserResolver.resolve(t);return e.core.experiment(n,r,o)}catch(e){return u.error("Unexpected exception while deciding variation for experiment[".concat(n,"]. Returning default variation[").concat(o,"] : ").concat(e)),De.of(o,s.EXCEPTION)}}(this);return jr.experiment(e,n,t),t},Zr.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},Zr.prototype.featureFlagDetail=function(n,i){var e=qt.start(),t=function(e){try{var t=e.userManager.resolveCurrentOrNull(i);if(!t)return u.warn("invalid user"),Le.off(s.INVALID_INPUT);var r=e.hackleUserResolver.resolve(t);return e.core.featureFlag(n,r)}catch(e){return u.error("Unexpected exception while deciding feature flag[".concat(n,"]. Returning default value[false] : ").concat(e)),Le.off(s.EXCEPTION)}}(this);return jr.featureFlag(e,n,t),t},Zr.prototype.track=function(e,t){try{u.debug("track event : ".concat(JSON.stringify(e)));var r=this._convertEvent(e),n=this.userManager.resolveCurrentOrNull(t);if(!n)return void u.warn("invalid user");var i=this.hackleUserResolver.resolve(n);this.core.track(r,i)}catch(e){u.error("Unexpected exception while tracking event: $t")}},Zr.prototype.trackPageView=function(e){u.debug("tracking page view");var t=this.hackleUserResolver.resolve(this.userManager.currentUser);this.core.track({key:"$page_view"},t)},Zr.prototype.remoteConfig=function(e){return new Gr(this.core,this.userManager,this.hackleUserResolver,e)},Zr.prototype.onReady=function(e,t){this.core.onReady(e,t=void 0===t?3e3:t)},Zr.prototype.onInitialized=function(e){return this.core.onInitialized({timeout:null==e?void 0:e.timeout})},Zr.prototype.close=function(){u.debug("Hackle Client is closing"),this.core.close()},Zr.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},Zr.prototype.showUserExplorer=function(){var e;null!=(e=this.devTools)&&e.userExplorer?(u.debug("UserExplorer opened."),Lr.counter("user.explorer.show",{}).increment(),this.devTools.manager.userExplorer(this.devTools.userExplorer)):u.error("UserExplorer is not provided")},Zr.prototype.hideUserExplorer=function(){this.devTools?this.devTools.manager.close():u.warn("There is no active HackleDevtools.")},Zr),Br=(Qr.exposure=function(e,t,r,n){return new qr(n,e,t.experiment,t.variationId,t.variationKey,t.reason,r)},Qr.track=function(e,t,r,n){return new Yr(n,r,e,t)},Qr.remoteConfig=function(e,t,r,n){return new $r(n,e,t.parameter,t.valueId,t.reason,r)},Qr.isExposure=function(e){return void 0!==e.experiment},Qr.isTrack=function(e){return void 0!==e.eventType},Qr.isRemoteConfig=function(e){return void 0!==e.parameter},Qr.isExposureDto=function(e){return"experimentId"in e&&void 0!==e.experimentId},Qr.isTrackDto=function(e){return"eventTypeId"in e&&void 0!==e.eventTypeId},Qr.isRemoteConfigDto=function(e){return"parameterId"in e&&void 0!==e.parameterId},Qr.prototype.toDto=function(){return{insertId:this.insertId,timestamp:this.timestamp,userId:this.user.identifiers[Ge.ID],identifiers:this.user.identifiers,userProperties:Ie.sanitize(this.user.properties),hackleProperties:Ie.sanitize(this.user.hackleProperties)}},Qr),qr=(ce(Wr,xr=Br),Wr.prototype.copyWithUser=function(e){return new Wr(this.timestamp,e,this.experiment,this.variationId,this.variationKey,this.decisionReason,this.properties,this.insertId)},Wr.prototype.toDto=function(){return y(y({},xr.prototype.toDto.call(this)),{experimentId:this.experiment.id,experimentKey:this.experiment.key,experimentType:this.experiment.type,experimentVersion:this.experiment.version,variationId:this.variationId,variationKey:this.variationKey,decisionReason:this.decisionReason.toString(),properties:this.properties})},Wr),Yr=(ce(Xr,kr=Br),Xr.prototype.copyWithUser=function(e){return new Xr(this.timestamp,e,this.eventType,this.event,this.insertId)},Xr.prototype.toDto=function(){return y(y({},kr.prototype.toDto.call(this)),{eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:Ie.sanitize(this.event.properties)})},Xr),$r=(ce(Jr,Cr=Br),Jr.prototype.copyWithUser=function(e){return new Jr(this.timestamp,e,this.parameter,this.valueId,this.decisionReason,this.properties,this.insertId)},Jr.prototype.toDto=function(){return y(y({},Cr.prototype.toDto.call(this)),{parameterId:this.parameter.id,parameterKey:this.parameter.key,parameterType:this.parameter.type,valueId:this.valueId,decisionReason:this.decisionReason.toString(),properties:Ie.sanitize(this.properties)})},Jr);function Jr(e,t,r,n,i,o,s){e=Cr.call(this,e,t,s)||this;return e.parameter=r,e.valueId=n,e.decisionReason=i,e.properties=o,e}function Xr(e,t,r,n,i){e=kr.call(this,e,t,i)||this;return e.eventType=r,e.event=n,e}function Wr(e,t,r,n,i,o,s,a){e=xr.call(this,e,t,a)||this;return e.experiment=r,e.variationId=n,e.variationKey=i,e.decisionReason=o,e.properties=s,e}function Qr(e,t,r){void 0===r&&(r=ae.v4()),this.timestamp=e,this.user=t,this.insertId=r}function Zr(e,t,r,n,i){this.core=e,this.hackleUserResolver=t,this.sessionManager=r,this.userManager=n,this.devTools=i}function en(e,t,r,n){this.core=e,this.userManager=t,this.hackleUserResolver=r,this.user=n}function tn(){}function rn(){}function nn(){}function on(e,t,r,n,i){t=Mr.call(this,t)||this;return t.monitoringBaseUrl=e,t.httpClient=r,t.httpHeader=n,t.useBeacon=i,t.monitoringEndPoint="".concat(t.monitoringBaseUrl,"/metrics"),t.shouldUseBeacon=!1,t.start(),t.monitoringBaseUrl=e,t}function sn(){}function an(){var e=null!==Pr&&Pr.apply(this,arguments)||this;return e.registries=new hr(function(e,t){return e.id===t.id}),e}function un(e){this._timers=new hr(function(e,t){return e.id===t.id}),this.id=e,this.noopTimer=new Ur(e)}function cn(e){this.id=e}function ln(e){var t=new Array,r=new Array,n=new Array;return e.forEach(function(e){e instanceof Br?Br.isExposure(e)?t.push(e.toDto()):Br.isTrack(e)?r.push(e.toDto()):Br.isRemoteConfig(e)&&n.push(e.toDto()):Br.isExposureDto(e)?t.push(e):Br.isTrackDto(e)?r.push(e):Br.isRemoteConfigDto(e)&&n.push(e)}),{exposureEvents:t,trackEvents:r,remoteConfigEvents:n}}An.prototype.dispatch=function(e,t,r){var n={},e=(n["X-HACKLE-SDK-KEY"]=this.sdkKey,n[ye]=this.headers[ye],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),ln(e)),i=qt.start();this.httpRequest.postRequest(this.dispatchUrl,e,n,function(e){t(e),Vr.record("post.events",i,!0)},function(e){null!=r&&r(e),Vr.record("post.events",i,!1)})},An.prototype.dispatchXhrOrBeacon=function(e,t,r){var n,i,o;this.useBeacon?((n={})["X-HACKLE-SDK-KEY"]=this.sdkKey,n[ye]=this.headers[ye],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),i=ln(e),o=qt.start(),this.httpRequest.sendBeacon(this.beaconDispatchUrl,i,n,function(e){t(e),Vr.record("post.events",o,!0)},function(e){null!=r&&r(e),Vr.record("post.events",o,!1)})):this.dispatch(e,t,r)};var fn=An,pn=(Nn.prototype.getInAppMessages=function(){return this.inAppMessages},Nn.prototype.getExperiments=function(){return Array.from(this.experiments.values())},Nn.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},Nn.prototype.getFeatureFlags=function(){return Array.from(this.featureFlags.values())},Nn.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},Nn.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},Nn.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},Nn.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},Nn.prototype.getContainerOrNull=function(e){return this.containers.get(e)},Nn.prototype.getParameterConfigurationOrNull=function(e){return this.parameterConfigurations.get(e)},Nn.prototype.getRemoteConfigParameterOrNull=function(e){return this.remoteConfigParameters.get(e)},Nn.prototype.getInAppMessageOrNull=function(t){return this.inAppMessages.find(function(e){return e.key===t})},Nn.from=function(e){var t=c.associate(e.buckets,function(e){return[e.id,He.fromJSON(e)]});return new Nn(c.associateBy(c.mapNotNullOrUndefined(e.experiments,function(e){return je.fromJSON("AB_TEST",e)}),function(e){return e.key}),c.associateBy(c.mapNotNullOrUndefined(e.featureFlags,function(e){return je.fromJSON("FEATURE_FLAG",e)}),function(e){return e.key}),t,c.associate(e.events,function(e){return[e.key,new Me(e.id,e.key)]}),c.associateBy(c.mapNotNullOrUndefined(e.segments,function(e){return We.fromJSON(e)}),function(e){return e.key}),c.associate(e.containers,function(e){return[e.id,Qe.fromJSON(e)]}),c.associate(e.parameterConfigurations,function(e){return[e.id,et.fromJSON(e)]}),c.associateBy(c.mapNotNullOrUndefined(e.remoteConfigParameters,function(e){return tt.fromJSON(e)}),function(e){return e.key}),c.mapNotNullOrUndefined(e.inAppMessages,function(e){return Kt.fromJSON(e)}))},Nn),dn=(In.prototype.onReady=function(){return this.readyPromise},In.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},In.prototype.stop=function(){return this.isStarted=!1,this.currentTimeout&&(clearTimeout(this.currentTimeout),this.currentTimeout=null),this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null),Promise.resolve()},In.prototype.get=function(){return this.workspace},In.prototype.scheduleNextUpdate=function(){var e=this,t=this.errorRetryController.getDelay(),t=Math.max(t,this.updateInterval);this.currentTimeout=setTimeout(function(){e.currentRequest?e.syncOnCurrentRequestComplete=!0:e.fetch()},t)},In.prototype.fetch=function(){function t(e){e=e.isSuccess,Vr.record("get.workspace",i,e)}function e(){n.onRequestComplete()}var r,n=this,i=((r={})["X-HACKLE-SDK-KEY"]=this.sdkKey,r["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),r[ye]=this.headers[ye],r["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],qt.start());this.currentRequest=this.httpRequest.getRequest(this.fetchUrl,r);null!=(r=this.currentRequest)&&r.responsePromise.then(function(e){n.onRequestResolved(e,t)},function(e){n.onRequestRejected(e,t)}).then(e,e),0<this.updateInterval&&this.scheduleNextUpdate()},In.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},In.prototype.onRequestResolved=function(e,t){if(this.isStarted){if(void 0!==e.statusCode&&200<=e.statusCode&&e.statusCode<400)this.errorRetryController.reset(),t({isSuccess:!0});else{if(t({isSuccess:!1}),401===e.statusCode||403===e.statusCode)return void this.readyPromiseRejecter(new Error("Invalid key provided."));this.errorRetryController.countError()}e.body&&(t=JSON.parse(e.body),this.workspace=pn.from(t),this.readyPromiseResolver())}},In.prototype.onRequestRejected=function(e,t){this.isStarted&&(t({isSuccess:!1}),this.errorRetryController.countError(),console.error("Error fetching data",e))},In.prototype.close=function(){this.stop()},In),hn=(Sn.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*ve[Math.min(ve.length-1,this.errorCount)]+Math.round(1e3*Math.random())},Sn.prototype.countError=function(){this.errorCount<ve.length-1&&this.errorCount++},Sn.prototype.reset=function(){this.errorCount=0},Sn),r="model",o="name",f="type",p="vendor",d="version",h="mobile",v="tablet",yn=(m.parse=function(e){return{browser:m.getBrowser(e),cpu:m.getCPU(e),device:m.getDevice(e),engine:m.getEngine(e),os:m.getOS(e)}},m.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return m.mapper.rgx.call(t,e,m.regexes.browser),t.major=m.util.major(t.version),t},m.getCPU=function(e){var t={architecture:void 0};return m.mapper.rgx.call(t,e,m.regexes.cpu),t},m.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return m.mapper.rgx.call(t,e,m.regexes.device),t},m.getEngine=function(e){var t={name:void 0,version:void 0};return m.mapper.rgx.call(t,e,m.regexes.os),t},m.getOS=function(e){var t={name:void 0,version:void 0};return m.mapper.rgx.call(t,e,m.regexes.os),t},m.util={extend:function(e,t){var r,n={};for(r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},m.regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[o,d],[/(opios)[\/\s]+([\w\.]+)/i],[[o,"Opera Mini"],d],[/\s(opr)\/([\w\.]+)/i],[[o,"Opera"],d],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[o,d],[/(konqueror)\/([\w\.]+)/i],[[o,"Konqueror"],d],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[o,"IE"],d],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[o,"Edge"],d],[/(yabrowser)\/([\w\.]+)/i],[[o,"Yandex"],d],[/(Avast)\/([\w\.]+)/i],[[o,"Avast Secure Browser"],d],[/(AVG)\/([\w\.]+)/i],[[o,"AVG Secure Browser"],d],[/(puffin)\/([\w\.]+)/i],[[o,"Puffin"],d],[/(focus)\/([\w\.]+)/i],[[o,"Firefox Focus"],d],[/(opt)\/([\w\.]+)/i],[[o,"Opera Touch"],d],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[o,"UCBrowser"],d],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],d],[/(windowswechat qbcore)\/([\w\.]+)/i],[[o,"WeChat(Win) Desktop"],d],[/(micromessenger)\/([\w\.]+)/i],[[o,"WeChat"],d],[/(brave)\/([\w\.]+)/i],[[o,"Brave"],d],[/(whale)\/([\w\.]+)/i],[[o,"Whale"],d],[/(qqbrowserlite)\/([\w\.]+)/i],[o,d],[/(QQ)\/([\d\.]+)/i],[o,d],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[o,d],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[o,d],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[o,d],[/(MetaSr)[\/\s]?([\w\.]+)/i],[o],[/(LBBROWSER)/i],[o],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[d,[o,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[d,[o,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[o,d],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[d,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,/(.+)/,"$1 WebView"],d],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[o,/(.+(?:g|us))(.+)/,"$1 $2"],d],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[o,"Chrome Mobile"],d],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[d,[o,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[o,"Sailfish Browser"],d],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,d],[/(dolfin)\/([\w\.]+)/i],[[o,"Dolphin"],d],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[o,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[o,"Opera Coast"],d],[/fxios\/([\w\.-]+)/i],[d,[o,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[d,[o,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[d,o],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[o,"GSA"],d],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[d,(m.mapper={rgx:function(e,t){for(var r,n,i,o,s,a=0;a<t.length&&!o;){for(var u=t[a],c=t[a+1],l=r=0;l<u.length&&!o;)if(o=u[l++].exec(e))for(n=0;n<c.length;n++)s=o[++r],"object"==typeof(i=c[n])&&0<i.length?2==i.length?"function"==typeof i[1]?this[i[0]]=i[1].call(this,s):this[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?this[i[0]]=s?s.replace(i[1],i[2]):void 0:this[i[0]]=s?i[1].call(this,s,i[2]):void 0:4==i.length&&(this[i[0]]=s?i[3].call(this,s.replace(i[1],i[2])):void 0):this[i]=s||void 0;a+=2}},str:function(e,t){for(var r in t)if("object"==typeof t[r]&&0<t[r].length){for(var n=0;n<t[r].length;n++)if(m.util.has(t[r][n],e))return"?"===r?void 0:r}else if(m.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(m.maps={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}}).browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[o,d],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],d],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[o,d]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",m.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",m.util.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",m.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[r,p,[f,v]],[/applecoremedia\/[\w\.]+ \((ipad)/],[r,[p,"Apple"],[f,v]],[/(apple\s{0,1}tv)/i],[[r,"Apple TV"],[p,"Apple"],[f,"smarttv"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[p,r,[f,v]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[r,[p,"Amazon"],[f,v]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[r,m.mapper.str,m.maps.device.amazon.model],[p,"Amazon"],[f,h]],[/android.+aft([bms])\sbuild/i],[r,[p,"Amazon"],[f,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[r,p,[f,h]],[/\((ip[honed|\s\w*]+);/i],[r,[p,"Apple"],[f,h]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[p,r,[f,h]],[/\(bb10;\s(\w+)/i],[r,[p,"BlackBerry"],[f,h]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[r,[p,"Asus"],[f,v]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[p,"Sony"],[r,"Xperia Tablet"],[f,v]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[p,"Sony"],[f,h]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[p,r,[f,"console"]],[/android.+;\s(shield)\sbuild/i],[r,[p,"Nvidia"],[f,"console"]],[/(playstation\s[34portablevi]+)/i],[r,[p,"Sony"],[f,"console"]],[/(sprint\s(\w+))/i],[[p,m.mapper.str,m.maps.device.sprint.vendor],[r,m.mapper.str,m.maps.device.sprint.model],[f,h]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[p,[r,/_/g," "],[f,h]],[/(nexus\s9)/i],[r,[p,"HTC"],[f,v]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[r,[p,"Huawei"],[f,h]],[/android.+(bah2?-a?[lw]\d{2})/i],[r,[p,"Huawei"],[f,v]],[/(microsoft);\s(lumia[\s\w]+)/i],[p,r,[f,h]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[r,[p,"Microsoft"],[f,"console"]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[p,"Microsoft"],[f,h]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[r,[p,"Motorola"],[f,h]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[r,[p,"Motorola"],[f,v]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[p,m.util.trim],[r,m.util.trim],[f,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[p,"Samsung"],[f,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[r,[p,"Sharp"],[f,"smarttv"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[p,"Samsung"],r,[f,v]],[/smart-tv.+(samsung)/i],[p,[f,"smarttv"],r],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[p,"Samsung"],r,[f,h]],[/sie-(\w*)/i],[r,[p,"Siemens"],[f,h]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[p,"Nokia"],r,[f,h]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[r,[p,"Acer"],[f,v]],[/android.+([vl]k\-?\d{3})\s+build/i],[r,[p,"LG"],[f,v]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[p,"LG"],r,[f,v]],[/(lg) netcast\.tv/i],[p,r,[f,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[r,[p,"LG"],[f,h]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[p,r,[f,v]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[r,[p,"Lenovo"],[f,v]],[/(lenovo)[_\s-]?([\w-]+)/i],[p,r,[f,h]],[/linux;.+((jolla));/i],[p,r,[f,h]],[/((pebble))app\/[\d\.]+\s/i],[p,r,[f,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[p,r,[f,h]],[/crkey/i],[[r,"Chromecast"],[p,"Google"],[f,"smarttv"]],[/android.+;\s(glass)\s\d/i],[r,[p,"Google"],[f,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[r,[p,"Google"],[f,v]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[r,[p,"Google"],[f,h]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[p,"Xiaomi"],[f,h]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[p,"Xiaomi"],[f,v]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[r,[p,"Meizu"],[f,h]],[/(mz)-([\w-]{2,})/i],[[p,"Meizu"],r,[f,h]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[r,[p,"OnePlus"],[f,h]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[r,[p,"RCA"],[f,v]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[r,[p,"Dell"],[f,v]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[r,[p,"Verizon"],[f,v]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[p,"Barnes & Noble"],r,[f,v]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[r,[p,"NuVision"],[f,v]],[/android.+;\s(k88)\sbuild/i],[r,[p,"ZTE"],[f,v]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[r,[p,"Swiss"],[f,h]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[r,[p,"Swiss"],[f,v]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[r,[p,"Zeki"],[f,v]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[p,"Dragon Touch"],r,[f,v]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[r,[p,"Insignia"],[f,v]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[r,[p,"NextBook"],[f,v]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[p,"Voice"],r,[f,h]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[p,"LvTel"],r,[f,h]],[/android.+;\s(PH-1)\s/i],[r,[p,"Essential"],[f,h]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[r,[p,"Envizen"],[f,v]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[p,r,[f,v]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[r,[p,"MachSpeed"],[f,v]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[p,r,[f,v]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[r,[p,"Rotor"],[f,v]],[/android.+(KS(.+))\s+build/i],[r,[p,"Amazon"],[f,v]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[p,r,[f,v]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[f,m.util.lowerize],p,r],[/[\s\/\(](smart-?tv)[;\)]/i],[[f,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[r,[p,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[d,[o,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[o,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[o,d],[/rv\:([\w\.]{1,9}).+(gecko)/i],[d,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,d],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[[o,m.mapper.str,m.maps.os.windows],[d,m.mapper.str,m.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[d,m.mapper.str,m.maps.os.windows.version]],[/\((bb)(10);/i],[[o,"BlackBerry"],d],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[o,d],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[o,"Symbian"],d],[/\((series40);/i],[o],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"],d],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[[o,"Linux"],d],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],d],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],d],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[o,"Linux"],d],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPhone"],[d,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPad"],[d,/_/g,"."]],[/(haiku)\s(\w+)/i],[o,d],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[d,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[o,"Mac"],[d,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[o,d]]},m),vn=(Rn.generate=function(e){t=void 0===e?{navigator:{userAgent:"",vendor:"",languages:[]},document:{location:t={hostname:"",pathname:"",host:"",search:"",protocol:""},title:""},location:t,screen:{width:"",height:""}}:e;var t,r=yn.parse(t.navigator.userAgent),n=r.browser,i=r.os,r=r.device,o=r.type?"mobile"===r.type?"Mobile":"ETC":"Web",s=(t.location.protocol||"").replace(":",""),a=t.screen,u="";try{u=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}return{platform:o||"",browserName:n.name||"",browserMajorVersion:n.major||"",browserVersion:n.version||"",osName:i.name||"",osVersion:i.version||"",deviceModel:r.model||"",deviceType:r.type||"",deviceVendor:r.vendor||"",language:(null==(o=t.navigator.languages)?void 0:o[0])||"",userAgent:t.navigator.userAgent||"",pagePath:t.location.pathname||"",pageTitle:t.document.title||"",host:t.location.host||"",protocol:s,referrer:t.document.referrer||"",queryParameter:t.location.search||"",screenWidth:a.width||"",screenHeight:a.height||"",timeZone:u||""}},Rn),mn=(On.extractDomain=function(e){var t=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,r=e.split("."),r=r[r.length-1],r=((4<r.length||"com"===r||"org"===r)&&(t=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i),e.match(t));return r?r[0]:""},On.prototype.getItem=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},On.prototype.getAllItem=function(e){var t=document.cookie.split("; ").map(function(e){return e.split("=")}),r=null==e?void 0:e.keyPrefix;return r?t.filter(function(e){var t=e[0];return e[1],t.startsWith(r)}):t},On.prototype.setItem=function(e,t,r){var r=y(y({},this.options),r),n=r.isSecure,i="",o="",s="",a=(r.isCrossSubdomain&&(i=(a=On.extractDomain(document.location.hostname))?"; domain=."+a:""),r.days&&((a=new Date).setTime(a.getTime()+24*r.days*60*60*1e3),o="; expires="+a.toUTCString()),r.isCrossSite&&(n=!0,s="; SameSite=None"),n&&(s+="; secure"),e+"="+encodeURIComponent(t)+o+"; path=/"+i+s);return document.cookie=a},On.prototype.removeItem=function(e,t){this.setItem(e,"",y(y({},t),{days:-1}))},new On({days:3650,isCrossSubdomain:!0})),gn=(_n.prototype.getQueryParam=function(e){return this.getQueryParams(function(){return!0})[e]||""},_n.prototype.getQueryParams=function(e){for(var t={},r=0,n=this.search.substring(1).split("&");r<n.length;r++){var i=n[r].split("="),o=i[0],i=i[1];e(o,i)&&(t[o]=decodeURIComponent(i))}return t},_n),En=(bn.prototype.resolve=function(e){var t=Cn(),t=(new ze).addIdentifiers(e.identifiers||{}).add(Ge.ID,e.id||t).add(Ge.DEVICE,e.deviceId||t).add(Ge.HACKLE_DEVICE,t);return a.isNotNullOrUndefined(e.userId)&&t.add(Ge.USER,e.userId),{identifiers:t.build(),properties:this._userProperties(e.properties),hackleProperties:this._getHackleProperties()}},bn.prototype.resolveCurrentUser=function(){return this.resolve(this.userManager.currentUser)},bn.prototype._userProperties=function(e){void 0===e&&(e={});var t,r={};return"undefined"!=typeof window&&(t=new gn(window.location.search),r=y(y({},t.getQueryParams(function(e){return e.startsWith("utm_")})),t.getQueryParams(function(e){return["gclid","fbclid"].includes(e)}))),y(y({},r),e)},bn.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?vn.generate(window):e)||{}},bn),wn=(Tn.initialize=function(){mn.getItem("_hackle_hid")||Mn()},Tn.reInitialize=function(){Mn()},Tn);function Tn(){}function bn(e){this.userManager=e,wn.initialize()}function _n(e){this.search=e}function On(e){this.options=e=void 0===e?{days:0,isCrossSubdomain:!1,isSecure:!1,isCrossSite:!1}:e}function Rn(){}function m(){}function Sn(){this.errorCount=0}function In(e,t,r){var n=this;this.workspace=null,this.sdkKey=e,this.httpRequest=t,this.isStarted=!1,this.updateInterval=r.updateInterval,this.fetchUrl=r.fetchUrl,this.headers=r.headers,this.readyPromiseResolver=function(){},this.readyPromiseRejecter=function(){},this.readyPromise=new Promise(function(e,t){n.readyPromiseResolver=e,n.readyPromiseRejecter=t}),this.currentTimeout=null,this.errorRetryController=new hn,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function Nn(e,t,r,n,i,o,s,a,u){this.experiments=e,this.featureFlags=t,this.buckets=r,this.eventTypes=n,this.segments=i,this.containers=o,this.parameterConfigurations=s,this.remoteConfigParameters=a,this.inAppMessages=u}function An(e,t,r){this.sdkKey=e,this.httpRequest=t,this.headers=r.headers,this.dispatchUrl=r.dispatchUrl,this.beaconDispatchUrl=r.beaconDispatchUrl||"",this.useBeacon=r.useBeacon||!1}function Cn(){var e=mn.getItem("_hackle_id");return e||mn.getItem("_hackle_hid")||Mn()}function kn(e){mn.setItem("_hackle_id",e)}function xn(){mn.removeItem("_hackle_id")}function Mn(){var e=ae.v4();return mn.setItem("_hackle_hid",e),e}function Pn(e){return e&&e.Math==Math&&e}function g(e){try{return!!e()}catch(e){return!0}}var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},v=Pn("object"==typeof globalThis&&globalThis)||Pn("object"==typeof window&&window)||Pn("object"==typeof self&&self)||Pn("object"==typeof h&&h)||function(){return this}()||Function("return this")(),f={},r=!g(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),p=!g(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Un=Function.prototype.call,o=p?Un.bind(Un):function(){return Un.apply(Un,arguments)},d={},e={}.propertyIsEnumerable,Dn=Object.getOwnPropertyDescriptor,h=Dn&&!e.call({1:2},1);d.f=h?function(e){e=Dn(this,e);return!!e&&e.enumerable}:e;function Ln(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function Fn(e){return ni(ri(e),8,-1)}function jn(e){if(null==e)throw ai("Can't call method on "+e);return e}function Vn(e){return ui(ci(e))}function E(e){return"function"==typeof e}function Hn(e){return"object"==typeof e?null!==e:li(e)}function Kn(e,t){return arguments.length<2?(r=fi[e],pi(r)?r:void 0):fi[e]&&fi[e][t];var r}function Gn(e){try{return bi(e)}catch(e){return"Object"}}function zn(e){if(_i(e))return e;throw Ri(Oi(e)+" is not a function")}function Bn(e,t){return null==(e=e[t])?void 0:Si(e)}function qn(t,r){try{xi(ki,t,{value:r,configurable:!0,writable:!0})}catch(e){ki[t]=r}return r}function Yn(e){return Di(Ui(e))}function $n(e){return"Symbol("+(void 0===e?"":e)+")_"+Ki(++Vi+Hi,36)}function Jn(e){var t;return zi($i,e)&&(qi||"string"==typeof $i[e])||(t="Symbol."+e,qi&&zi(Ji,e)?$i[e]=Ji[e]:$i[e]=(Yi&&Xi?Xi:Wi)(t)),$i[e]}function Xn(e){return e=function(e,t){if(!Zi(e)||eo(e))return e;var r=to(e,io);if(r){if(r=Qi(r,e,t=void 0===t?"default":t),!Zi(r)||eo(r))return r;throw no("Can't convert object to primitive value")}return ro(e,t=void 0===t?"number":t)}(e,"string"),oo(e)?e:e+""}function Wn(e){return ao?so.createElement(e):{}}function Qn(e){if(go(e))return e;throw wo(Eo(e)+" is not an object")}var h=p,e=Function.prototype,Zn=e.bind,ei=e.call,ti=h&&Zn.bind(ei,ei),e=h?function(e){return e&&ti(e)}:function(e){return e&&function(){return ei.apply(e,arguments)}},Zn=e,ri=Zn({}.toString),ni=Zn("".slice),h=g,ii=Fn,oi=Object,si=e("".split),Zn=h(function(){return!oi("z").propertyIsEnumerable(0)})?function(e){return"String"==ii(e)?si(e,""):oi(e)}:oi,ai=TypeError,ui=Zn,ci=jn,li=E,fi=v,pi=E,h=e({}.isPrototypeOf),di=Kn("navigator","userAgent")||"",hi=di,w=v.process,yi=v.Deno,w=w&&w.versions||yi&&yi.version,yi=w&&w.v8,w=Ti=!(Ti=yi?0<(T=yi.split("."))[0]&&T[0]<4?1:+(T[0]+T[1]):Ti)&&hi&&(!(T=hi.match(/Edge\/(\d+)/))||74<=T[1])&&(T=hi.match(/Chrome\/(\d+)/))?+T[1]:Ti,vi=w,yi=g,hi=!!Object.getOwnPropertySymbols&&!yi(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&vi&&vi<41}),T=hi&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,mi=Kn,gi=E,Ei=h,wi=Object,Ti=T?function(e){return"symbol"==typeof e}:function(e){var t=mi("Symbol");return gi(t)&&Ei(t.prototype,wi(e))},bi=String,_i=E,Oi=Gn,Ri=TypeError,Si=zn,Ii=o,Ni=E,Ai=Hn,Ci=TypeError,yi={exports:{}},ki=v,xi=Object.defineProperty,Mi=qn,Mi=v["__core-js_shared__"]||Mi("__core-js_shared__",{}),Pi=Mi,Ui=((yi.exports=function(e,t){return Pi[e]||(Pi[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),jn),Di=Object,Li=Yn,Fi=e({}.hasOwnProperty),b=Object.hasOwn||function(e,t){return Fi(Li(e),t)},ji=e,Vi=0,Hi=Math.random(),Ki=ji(1..toString),ji=v,Gi=yi.exports,zi=b,Bi=$n,qi=hi,Yi=T,$i=Gi("wks"),Ji=ji.Symbol,Xi=Ji&&Ji.for,Wi=Yi?Ji:Ji&&Ji.withoutSetter||Bi,Qi=o,Zi=Hn,eo=Ti,to=Bn,ro=function(e,t){var r,n;if("string"===t&&Ni(r=e.toString)&&!Ai(n=Ii(r,e)))return n;if(Ni(r=e.valueOf)&&!Ai(n=Ii(r,e)))return n;if("string"!==t&&Ni(r=e.toString)&&!Ai(n=Ii(r,e)))return n;throw Ci("Can't convert object to primitive value")},no=TypeError,io=Jn("toPrimitive"),oo=Ti,hi=Hn,so=v.document,ao=hi(so)&&hi(so.createElement),uo=Wn,T=!r&&!g(function(){return 7!=Object.defineProperty(uo("div"),"a",{get:function(){return 7}}).a}),co=o,lo=d,fo=Ln,po=Vn,ho=Xn,yo=b,vo=T,mo=Object.getOwnPropertyDescriptor,Gi=(f.f=r?mo:function(e,t){if(e=po(e),t=ho(t),vo)try{return mo(e,t)}catch(e){}if(yo(e,t))return fo(!co(lo.f,e,t),e[t])},{}),ji=r&&g(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),go=Hn,Eo=String,wo=TypeError,To=T,bo=Qn,_o=Xn,Oo=TypeError,Ro=Object.defineProperty,So=Object.getOwnPropertyDescriptor,Io=(Gi.f=r?ji?function(e,t,r){var n;return bo(e),t=_o(t),bo(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=So(e,t))&&n.writable&&(e[t]=r.value,r={configurable:("configurable"in r?r:n).configurable,enumerable:("enumerable"in r?r:n).enumerable,writable:!1}),Ro(e,t,r)}:Ro:function(e,t,r){if(bo(e),t=_o(t),bo(r),To)try{return Ro(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Oo("Accessors not supported");return"value"in r&&(e[t]=r.value),e},Gi),No=Ln,Bi=r?function(e,t,r){return Io.f(e,t,No(1,r))}:function(e,t,r){return e[t]=r,e},Ti={exports:{}},hi=r,d=b,T=Function.prototype,Ao=hi&&Object.getOwnPropertyDescriptor,d=d(T,"name"),d={EXISTS:d,PROPER:d&&"something"===function(){}.name,CONFIGURABLE:d&&(!hi||Ao(T,"name").configurable)},hi=E,Ao=Mi,Co=e(Function.toString);hi(Ao.inspectSource)||(Ao.inspectSource=function(e){return Co(e)});function ko(e){return Jo[e]||(Jo[e]=$o(e))}function xo(e,t,r,n){var i=(n=n||{}).enumerable,o=void 0!==n.name?n.name:t;if(ps(r)&&hs(r,o,n),n.global)i?e[t]=r:ys(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=r:ds.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function Mo(e){return(e=+e)!=e||0==e?0:gs(e)}function Po(e,t){return(e=Es(e))<0?ws(e+t,0):Ts(e,t)}function _(e){return 0<(e=e.length)?_s(bs(e),9007199254740991):0}function Uo(a){return function(e,t,r){var n,i=Os(e),o=Ss(i),s=Rs(r,o);if(a&&t!=t){for(;s<o;)if((n=i[s++])!=n)return!0}else for(;s<o;s++)if((a||s in i)&&i[s]===t)return a||s||0;return!a&&-1}}function Do(e,t){var r,n=Ns(e),i=0,o=[];for(r in n)!Is(Cs,r)&&Is(n,r)&&ks(o,r);for(;t.length>i;)!Is(n,r=t[i++])||~As(o,r)||ks(o,r);return o}function Lo(e,t,r){for(var n=js(t),i=Hs.f,o=Vs.f,s=0;s<n.length;s++){var a=n[s];Fs(e,a)||r&&Fs(r,a)||i(e,a,o(t,a))}}function Fo(e,t){return(e=qs[Bs(e)])==$s||e!=Ys&&(Gs(t)?Ks(t):!!t)}function O(e,t){var r,n,i,o,s=e.target,a=e.global,u=e.stat;if(r=a?Js:u?Js[s]||Zs(s,{}):(Js[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(o=Xs(r,n))&&o.value:r[n],!ta(a?n:s+(u?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;ea(i,o)}(e.sham||o&&o.sham)&&Ws(i,"sham",!0),Qs(r,n,i,e)}}var jo,Vo,Ho,Ko,Go,zo,Bo,qo,T=Ao.inspectSource,hi=E,Ao=T,Yo=v.WeakMap,hi=hi(Yo)&&/native code/.test(Ao(Yo)),Ao=yi.exports,$o=$n,Jo=Ao("keys"),Yo={},yi=e,Xo=Hn,Wo=Bi,Qo=b,Ao=Mi,R=ko,Zo=Yo,es=v.TypeError,ts=v.WeakMap,hi=(Bo=hi||Ao.state?(jo=Ao.state||(Ao.state=new ts),Vo=yi(jo.get),Ho=yi(jo.has),Ko=yi(jo.set),Go=function(e,t){if(Ho(jo,e))throw new es("Object already initialized");return t.facade=e,Ko(jo,e,t),t},zo=function(e){return Vo(jo,e)||{}},function(e){return Ho(jo,e)}):(Zo[qo=R("state")]=!0,Go=function(e,t){if(Qo(e,qo))throw new es("Object already initialized");return t.facade=e,Wo(e,qo,t),t},zo=function(e){return Qo(e,qo)?e[qo]:{}},function(e){return Qo(e,qo)}),{set:Go,get:zo,has:Bo,enforce:function(e){return Bo(e)?zo(e):Go(e,{})},getterFor:function(t){return function(e){if(Xo(e)&&(e=zo(e)).type===t)return e;throw es("Incompatible receiver, "+t+" required")}}}),Ao=g,rs=E,ns=b,is=r,os=d.CONFIGURABLE,ss=T,as=hi.enforce,us=hi.get,cs=Object.defineProperty,ls=is&&!Ao(function(){return 8!==cs(function(){},"length",{value:8}).length}),fs=String(String).split("String"),ts=Ti.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!ns(e,"name")||os&&e.name!==t)&&(is?cs(e,"name",{value:t,configurable:!0}):e.name=t),ls&&r&&ns(r,"arity")&&e.length!==r.arity&&cs(e,"length",{value:r.arity});try{r&&ns(r,"constructor")&&r.constructor?is&&cs(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=as(e);return ns(r,"source")||(r.source=fs.join("string"==typeof t?t:"")),e},ps=(Function.prototype.toString=ts(function(){return rs(this)&&us(this).source||ss(this)},"toString"),E),ds=Gi,hs=Ti.exports,ys=qn,yi={},vs=Math.ceil,ms=Math.floor,gs=Math.trunc||function(e){e=+e;return(0<e?ms:vs)(e)},Es=Mo,ws=Math.max,Ts=Math.min,bs=Mo,_s=Math.min,Os=Vn,Rs=Po,Ss=_,Zo={includes:Uo(!0),indexOf:Uo(!1)},Is=b,Ns=Vn,As=Zo.indexOf,Cs=Yo,ks=e([].push),R=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xs=Do,Ms=R.concat("length","prototype"),Ao=(yi.f=Object.getOwnPropertyNames||function(e){return xs(e,Ms)},{}),ts=(Ao.f=Object.getOwnPropertySymbols,Kn),Ps=yi,Us=Ao,Ds=Qn,Ls=e([].concat),Ao=ts("Reflect","ownKeys")||function(e){var t=Ps.f(Ds(e)),r=Us.f;return r?Ls(t,r(e)):t},Fs=b,js=Ao,Vs=f,Hs=Gi,Ks=g,Gs=E,zs=/#|\.prototype\./,Bs=Fo.normalize=function(e){return String(e).replace(zs,".").toLowerCase()},qs=Fo.data={},Ys=Fo.NATIVE="N",$s=Fo.POLYFILL="P",ts=Fo,Js=v,Xs=f.f,Ws=Bi,Qs=xo,Zs=qn,ea=Lo,ta=ts,Ao=!g(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ra=b,na=E,ia=Yn,oa=ko("IE_PROTO"),sa=Object,aa=sa.prototype,Ao=Ao?sa.getPrototypeOf:function(e){e=ia(e);if(ra(e,oa))return e[oa];var t=e.constructor;return na(t)&&e instanceof t?t.prototype:e instanceof sa?aa:null},ua=E,ca=String,la=TypeError,fa=e,pa=Qn,da=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=fa(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return pa(e),function(e){if("object"==typeof e||ua(e))return;throw la("Can't set "+ca(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),ha={},ya=Do,va=R,S=Object.keys||function(e){return ya(e,va)},ma=Gi,ga=Qn,Ea=Vn,wa=S;ha.f=r&&!ji?Object.defineProperties:function(e,t){ga(e);for(var r,n=Ea(t),i=wa(t),o=i.length,s=0;s<o;)ma.f(e,r=i[s++],n[r]);return e};function Ta(){}function ba(e){e.write(ja("")),e.close();var t=e.parentWindow.Object;return e=null,t}function _a(e,t){return Ya(e),void 0===t?e:$a?Ja(e,t):function(){return e.apply(t,arguments)}}function Oa(e){return void 0!==e&&(Xa.Array===e||Qa[Wa]===e)}function Ra(e){if(null!=e)return ou(e,au)||ou(e,"@@iterator")||su[iu(e)]}function Sa(e,t){if(t=arguments.length<2?pu(e):t,cu(t))return lu(uu(t,e));throw du(fu(e)+" is not iterable")}function Ia(e,t,r){var n,i;yu(e);try{if(!(n=vu(e,"return"))){if("throw"===t)throw r;return r}n=hu(n,e)}catch(e){i=!0,n=e}if("throw"===t)throw r;if(i)throw n;return yu(n),r}function Na(e,t){this.stopped=e,this.result=t}function Aa(e,t,r){function n(e){return o&&Su(o,"normal",e),new Na(!0,e)}function i(e){return p?(Eu(e),y?v(e[0],e[1],n):v(e[0],e[1])):y?v(e,n):v(e)}var o,s,a,u,c,l,f=r&&r.that,p=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),v=mu(t,f);if(d)o=e.iterator;else if(h)o=e;else{if(!(r=Ru(e)))throw Iu(wu(e)+" is not iterable");if(Tu(r)){for(s=0,a=bu(e);s<a;s++)if((u=i(e[s]))&&_u(Nu,u))return u;return new Na(!1)}o=Ou(e,r)}for(c=(d?e:o).next;!(l=gu(c,o)).done;){try{u=i(l.value)}catch(e){Su(o,"throw",e)}if("object"==typeof u&&u&&_u(Nu,u))return u}return new Na(!1)}function Ca(e){if("Symbol"===Au(e))throw TypeError("Cannot convert a Symbol value to a string");return Cu(e)}function ka(e,t){var r,n=2<arguments.length?arguments[2]:void 0,i=Pu(Bu,this);return Du?r=Du(new Gu,i?Uu(this):Bu):(r=i?this:Fu(Bu),ju(r,Ku,"Error")),void 0!==t&&ju(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:ku(e)}(t)),Hu&&ju(r,"stack",function(e,t){if(za&&"string"==typeof e&&!Ha.prepareStackTrace)for(;t--;)e=Ka(e,Ga,"");return e}(r.stack,1)),i=r,Ba(t=n)&&"cause"in t&&qa(i,"cause",t.cause),Vu(e,zu,{that:n=[]}),ju(r,"errors",n),r}var xa,S=Kn("document","documentElement"),Ma=Qn,Pa=ha,Ua=R,ji=Yo,Da=S,La=Wn,Fa=ko("IE_PROTO"),ja=function(e){return"<script>"+e+"<\/script>"},Va=function(){try{xa=new ActiveXObject("htmlfile")}catch(e){}var e,t;Va="undefined"==typeof document||document.domain&&xa?ba(xa):((t=La("iframe")).style.display="none",Da.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ja("document.F=Object")),e.close(),e.F);for(var r=Ua.length;r--;)delete Va.prototype[Ua[r]];return Va()},ha=(ji[Fa]=!0,Object.create||function(e,t){var r;return null!==e?(Ta.prototype=Ma(e),r=new Ta,Ta.prototype=null,r[Fa]=e):r=Va(),void 0===t?r:Pa.f(r,t)}),Ha=Error,Ka=e("".replace),R=String(Ha("zxcasd").stack),Ga=/\n\s*at [^:]*:[^\n]*/,za=Ga.test(R),Ba=Hn,qa=Bi,Ya=zn,$a=p,Ja=e(e.bind),ji={},Xa=ji,Wa=Jn("iterator"),Qa=Array.prototype,R={},R=(R[Jn("toStringTag")]="z","[object z]"===String(R)),I=R,Za=E,eu=Fn,tu=Jn("toStringTag"),ru=Object,nu="Arguments"==eu(function(){return arguments}()),I=I?eu:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=ru(e),tu))?t:nu?eu(e):"Object"==(t=eu(e))&&Za(e.callee)?"Arguments":t},iu=I,ou=Bn,su=ji,au=Jn("iterator"),uu=o,cu=zn,lu=Qn,fu=Gn,pu=Ra,du=TypeError,hu=o,yu=Qn,vu=Bn,mu=_a,gu=o,Eu=Qn,wu=Gn,Tu=Oa,bu=_,_u=h,Ou=Sa,Ru=Ra,Su=Ia,Iu=TypeError,Nu=Na.prototype,Au=I,Cu=String,ku=Ca,xu=Ln,N=!g(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",xu(1,7)),7!==e.stack)}),Mu=O,Pu=h,Uu=Ao,Du=da,Lu=Lo,Fu=ha,ju=Bi,A=Ln,Vu=Aa,Hu=N,Ku=Jn("toStringTag"),Gu=Error,zu=[].push,Bu=(Du?Du(ka,Gu):Lu(ka,Gu,{name:!0}),ka.prototype=Fu(Gu.prototype,{constructor:A(1,ka),message:A(1,""),name:A(1,"AggregateError")})),N=(Mu({global:!0,constructor:!0,arity:2},{AggregateError:ka}),Jn),Lu=ha,A=Gi.f,qu=N("unscopables"),Yu=Array.prototype;null==Yu[qu]&&A(Yu,qu,{configurable:!0,value:Lu(null)});function C(e){Yu[qu][e]=!0}var $u,Mu=g,N=E,A=Ao,Lu=xo,Ju=Jn("iterator"),k=!1;[].keys&&("next"in(x=[].keys())?(A=A(A(x)))!==Object.prototype&&($u=A):k=!0);function Xu(e,t,r){(e=e&&!r?e.prototype:e)&&!ec(e,tc)&&Zu(e,tc,{configurable:!0,value:t})}function Wu(){return this}function Qu(e,t,r,n,i,o,s){var a=r,u=t,c=void 0;function l(e){if(e===i&&v)return v;if(!wc&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}}u+=" Iterator",a.prototype=nc(rc,{next:ic(+!c,n)}),oc(a,u,!1),sc[u]=ac;var f,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[Tc]||h["@@iterator"]||i&&h[i],v=!wc&&y||l(i);if((n="Array"==t&&h.entries||y)&&(a=fc(n.call(new e)))!==Object.prototype&&a.next&&(fc(a)!==Ec&&(pc?pc(a,Ec):lc(a[Tc])||yc(a,Tc,Wu)),dc(a,c,!0)),mc&&"values"==i&&y&&"values"!==y.name&&(gc?hc(h,"name","values"):(d=!0,v=function(){return cc(y,this)})),i)if(f={values:l("values"),keys:o?v:l("keys"),entries:l("entries")},s)for(p in f)!wc&&!d&&p in h||yc(h,p,f[p]);else uc({target:t,proto:!0,forced:wc||d},f);return h[Tc]!==v&&yc(h,Tc,v,{name:i}),vc[t]=v,f}N(($u=null==$u||Mu(function(){var e={};return $u[Ju].call(e)!==e})?{}:$u)[Ju])||Lu($u,Ju,function(){return this});var x={IteratorPrototype:$u,BUGGY_SAFARI_ITERATORS:k},Zu=Gi.f,ec=b,tc=Jn("toStringTag"),rc=x.IteratorPrototype,nc=ha,ic=Ln,oc=Xu,sc=ji,ac=function(){return this},uc=O,cc=o,lc=E,fc=Ao,pc=da,dc=Xu,hc=Bi,yc=xo,vc=ji,mc=d.PROPER,gc=d.CONFIGURABLE,Ec=x.IteratorPrototype,wc=x.BUGGY_SAFARI_ITERATORS,Tc=Jn("iterator"),bc=Vn,A=C,N=ji,Mu=hi,Lu=Gi.f,k=Qu,d=r,_c=Mu.set,Oc=Mu.getterFor("Array Iterator"),x=k(Array,"Array",function(e,t){_c(this,{type:"Array Iterator",target:bc(e),index:0,kind:t})},function(){var e=Oc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),ji=N.Arguments=N.Array;if(A("keys"),A("values"),A("entries"),d&&"values"!==ji.name)try{Lu(ji,"name",{value:"values"})}catch(gT){}function Rc(e){var e=kc(e),t=xc.f;Mc&&e&&!e[Pc]&&t(e,Pc,{configurable:!0,get:function(){return this}})}function Sc(e,t){if(Uc(t,e))return e;throw Dc("Incorrect invocation")}function Ic(){}function Nc(e){if(!Lc(e))return!1;try{return Hc(Ic,Vc,e),!0}catch(e){return!1}}function Ac(e){if(!Lc(e))return!1;switch(Fc(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return zc||!!Gc(Kc,jc(e))}catch(e){return!0}}var Cc=I,Mu=(R||xo(Object.prototype,"toString",R?{}.toString:function(){return"[object "+Cc(this)+"]"},{unsafe:!0}),"process"==Fn(v.process)),kc=Kn,xc=Gi,Mc=r,Pc=Jn("species"),Uc=h,Dc=TypeError,k=e,N=g,Lc=E,Fc=I,jc=T,Vc=[],Hc=Kn("Reflect","construct"),Kc=/^\s*(?:class|function)\b/,Gc=k(Kc.exec),zc=!Kc.exec(Ic);Ac.sham=!0;function Bc(e,t){var r,e=Wc(e).constructor;if(void 0===e||null==(r=Wc(e)[Qc]))return t;if($c(e=r))return e;throw Xc(Jc(e)+" is not a constructor")}var qc,Yc,A=!Hc||N(function(){var e;return Nc(Nc.call)||!Nc(Object)||!Nc(function(){e=!0})||e})?Ac:Nc,$c=A,Jc=Gn,Xc=TypeError,Wc=Qn,Qc=Jn("species"),d=Function.prototype,Zc=d.apply,el=d.call,Lu="object"==typeof Reflect&&Reflect.apply||(p?el.bind(Zc):function(){return el.apply(Zc,arguments)}),ji=e([].slice),tl=TypeError,R=/(?:ipad|iphone|ipod).*applewebkit/i.test(di),rl=v,nl=Lu,h=_a,il=E,ol=b,I=g,sl=S,al=ji,ul=Wn,k=R,N=Mu,d=rl.setImmediate,p=rl.clearImmediate,cl=rl.process,ll=rl.Dispatch,fl=rl.Function,S=rl.MessageChannel,pl=rl.String,dl=0,hl={};try{qc=rl.location}catch(gT){}function yl(e){return function(){gl(e)}}function vl(e){gl(e.data)}function ml(e){rl.postMessage(pl(e),qc.protocol+"//"+qc.host)}var gl=function(e){var t;ol(hl,e)&&(t=hl[e],delete hl[e],t())};d&&p||(d=function(e){var t=arguments.length,r=1;if(t<r)throw tl("Not enough arguments");var n=il(e)?e:fl(e),i=al(arguments,1);return hl[++dl]=function(){nl(n,void 0,i)},Yc(dl),dl},p=function(e){delete hl[e]},N?Yc=function(e){cl.nextTick(yl(e))}:ll&&ll.now?Yc=function(e){ll.now(yl(e))}:S&&!k?(k=(N=new S).port2,N.port1.onmessage=vl,Yc=h(k.postMessage,k)):rl.addEventListener&&il(rl.postMessage)&&!rl.importScripts&&qc&&"file:"!==qc.protocol&&!I(ml)?(Yc=ml,rl.addEventListener("message",vl,!1)):Yc="onreadystatechange"in ul("script")?function(e){sl.appendChild(ul("script")).onreadystatechange=function(){sl.removeChild(this),gl(e)}}:function(e){setTimeout(yl(e),0)});function El(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function wl(){this.head=null,this.tail=null}function Tl(e){var r,n;this.promise=new e(function(e,t){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=e,n=t}),this.resolve=Kl(r),this.reject=Kl(n)}var bl,_l,Ol,Rl,Sl,Il,Nl,S={set:d,clear:p},N=v,h=/ipad|iphone|ipod/i.test(di)&&void 0!==N.Pebble,k=/web0s(?!.*chrome)/i.test(di),I=v,d=_a,p=f.f,Al=S.set,N=R,f=h,R=k,Cl=Mu,h=I.MutationObserver||I.WebKitMutationObserver,k=I.document,kl=I.process,xl=I.Promise,p=p(I,"queueMicrotask"),p=p&&p.value,R=(p||(bl=function(){var e,t;for(Cl&&(e=kl.domain)&&e.exit();_l;){t=_l.fn,_l=_l.next;try{t()}catch(e){throw _l?Rl():Ol=void 0,e}}Ol=void 0,e&&e.enter()},Rl=N||Cl||R||!h||!k?!f&&xl&&xl.resolve?((N=xl.resolve(void 0)).constructor=xl,Nl=d(N.then,N),function(){Nl(bl)}):Cl?function(){kl.nextTick(bl)}:(Al=d(Al,I),function(){Al(bl)}):(Sl=!0,Il=k.createTextNode(""),new h(bl).observe(Il,{characterData:!0}),function(){Il.data=Sl=!Sl})),p||function(e){e={fn:e,next:void 0};Ol&&(Ol.next=e),_l||(_l=e,Rl()),Ol=e}),Ml=v,f=(wl.prototype={add:function(e){e={item:e,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},wl),xl=v.Promise,N="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,d=!N&&!Mu&&"object"==typeof window&&"object"==typeof document,I=v,Pl=xl,k=E,h=ts,Ul=T,p=Jn,Dl=d,Ll=N,Fl=w,jl=(Pl&&Pl.prototype,p("species")),Vl=!1,Hl=k(I.PromiseRejectionEvent),T={CONSTRUCTOR:h("Promise",function(){var e=Ul(Pl),t=e!==String(Pl);if(!t&&66===Fl)return!0;if(!Fl||Fl<51||!/native code/.test(e)){var e=new Pl(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[jl]=r,!(Vl=e.then(function(){})instanceof r))return!0}return!t&&(Dl||Ll)&&!Hl}),REJECTION_EVENT:Hl,SUBCLASSING:Vl},d={},Kl=zn;d.f=function(e){return new Tl(e)};function Gl(e,t){var r,n,i,o,s=t.value,a=1==t.state,u=a?e.ok:e.fail,c=e.resolve,l=e.reject,f=e.domain;try{u?(a||(2===t.rejection&&(o=t,Jl(tf,$l,function(){var e=o.facade;Yl?yf.emit("rejectionHandled",e):Tf("rejectionhandled",e,o.value)})),t.rejection=1),!0===u?r=s:(f&&f.enter(),r=u(s),f&&(f.exit(),i=!0)),r===e.promise?l(df("Promise-chain cycle")):(n=Ef(r))?Jl(n,r,c,l):c(r)):l(s)}catch(e){f&&!i&&f.exit(),l(e)}}var zl,Bl,ql,N=O,Yl=Mu,$l=v,Jl=o,p=xo,k=da,I=Xu,h=Rc,Xl=zn,Wl=E,Ql=Hn,Zl=Sc,ef=Bc,tf=S.set,rf=R,nf=El,of=f,S=hi,R=xl,f=d,sf=T.CONSTRUCTOR,af=T.REJECTION_EVENT,uf=T.SUBCLASSING,cf=S.getterFor("Promise"),lf=S.set,S=R&&R.prototype,ff=R,pf=S,df=$l.TypeError,hf=$l.document,yf=$l.process,vf=f.f,mf=vf,gf=!!(hf&&hf.createEvent&&$l.dispatchEvent),Ef=function(e){var t;return!(!Ql(e)||!Wl(t=e.then))&&t},wf=function(r,i){r.notified||(r.notified=!0,rf(function(){for(var e,n,t=r.reactions;e=t.get();)Gl(e,r);r.notified=!1,i&&!r.rejection&&(n=r,Jl(tf,$l,function(){var e,t=n.facade,r=n.value;if(bf(n)&&(e=nf(function(){Yl?yf.emit("unhandledRejection",r,t):Tf("unhandledrejection",t,r)}),n.rejection=Yl||bf(n)?2:1,e.error))throw e.value}))}))},Tf=function(e,t,r){var n;gf?((n=hf.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),$l.dispatchEvent(n)):n={promise:t,reason:r},!af&&(t=$l["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=Ml.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},bf=function(e){return 1!==e.rejection&&!e.parent},_f=function(t,r,n){return function(e){t(r,e,n)}},Of=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,wf(e,!0))},Rf=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw df("Promise can't be resolved itself");var n=Ef(e);n?rf(function(){var t={done:!1};try{Jl(n,e,_f(Rf,t,r),_f(Of,t,r))}catch(e){Of(t,e,r)}}):(r.value=e,r.state=1,wf(r,!1))}catch(e){Of({done:!1},e,r)}}};if(sf&&(pf=(ff=function(e){Zl(this,pf),Xl(e),Jl(zl,this);var t=cf(this);try{e(_f(Rf,t),_f(Of,t))}catch(e){Of(t,e)}}).prototype,(zl=function(e){lf(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new of,rejection:!1,state:0,value:void 0})}).prototype=p(pf,"then",function(e,t){var r=cf(this),n=vf(ef(this,ff));return r.parent=!0,n.ok=!Wl(e)||e,n.fail=Wl(t)&&t,n.domain=Yl?yf.domain:void 0,0==r.state?r.reactions.add(n):rf(function(){Gl(n,r)}),n.promise}),Bl=function(){var e=new zl,t=cf(e);this.promise=e,this.resolve=_f(Rf,t),this.reject=_f(Of,t)},f.f=vf=function(e){return e===ff||void 0===e?new Bl:mf(e)},Wl(R)&&S!==Object.prototype)){ql=S.then,uf||p(S,"then",function(e,t){var r=this;return new ff(function(e,t){Jl(ql,r,e,t)}).then(e,t)},{unsafe:!0});try{delete S.constructor}catch(gT){}k&&k(S,pf)}N({global:!0,constructor:!0,wrap:!0,forced:sf},{Promise:ff}),I(ff,"Promise",!1),h("Promise");var Sf=Jn("iterator"),If=!1;try{var Nf=0,Af={next:function(){return{done:!!Nf++}},return:function(){If=!0}};Af[Sf]=function(){return this},Array.from(Af,function(){throw 2})}catch(gT){}function Cf(e,t){if(!t&&!If)return!1;var r=!1;try{var n={};n[Sf]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function kf(e,t){return $f(e),Jf(t)&&t.constructor===e?t:((0,(e=Xf.f(e)).resolve)(t),e.promise)}function xf(i){return function(e,t){var r,e=yp(vp(e)),t=hp(t),n=e.length;return t<0||n<=t?i?"":void 0:(r=gp(e,t))<55296||56319<r||t+1===n||(n=gp(e,t+1))<56320||57343<n?i?mp(e,t):r:i?Ep(e,t,t+2):n-56320+(r-55296<<10)+65536}}function Mf(e,t){if(e){if(e[Np]!==Cp)try{Ip(e,Np,Cp)}catch(t){e[Np]=Cp}if(e[Ap]||Ip(e,Ap,t),Rp[t])for(var r in Sp)if(e[r]!==Sp[r])try{Ip(e,r,Sp[r])}catch(t){e[r]=Sp[r]}}}var Pf,Uf=xl,f=T.CONSTRUCTOR||!Cf(function(e){Uf.all(e).then(void 0,function(){})}),Df=o,Lf=zn,Ff=d,jf=El,Vf=Aa,R=(O({target:"Promise",stat:!0,forced:f},{all:function(e){var a=this,t=Ff.f(a),u=t.resolve,c=t.reject,r=jf(function(){var n=Lf(a.resolve),i=[],o=0,s=1;Vf(e,function(e){var t=o++,r=!1;s++,Df(n,a,e).then(function(e){r||(r=!0,i[t]=e,--s||u(i))},c)}),--s||u(i)});return r.error&&c(r.value),t.promise}}),O),uf=xl,p=Kn,k=E,S=xo,N=uf&&uf.prototype,Hf=(R({target:"Promise",proto:!0,forced:T.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),k(uf)&&(sf=p("Promise").prototype.catch,N.catch!==sf&&S(N,"catch",sf,{unsafe:!0})),o),Kf=zn,Gf=d,zf=El,Bf=Aa,qf=(O({target:"Promise",stat:!0,forced:f},{race:function(e){var r=this,n=Gf.f(r),i=n.reject,t=zf(function(){var t=Kf(r.resolve);Bf(e,function(e){Hf(t,r,e).then(n.resolve,i)})});return t.error&&i(t.value),n.promise}}),o),Yf=d,$f=(O({target:"Promise",stat:!0,forced:T.CONSTRUCTOR},{reject:function(e){var t=Yf.f(this);return qf(t.reject,void 0,e),t.promise}}),Qn),Jf=Hn,Xf=d,I=O,h=T.CONSTRUCTOR,Wf=kf,Qf=(Kn("Promise"),I({target:"Promise",stat:!0,forced:h},{resolve:function(e){return Wf(this,e)}}),o),Zf=zn,ep=d,tp=El,rp=Aa,np=(O({target:"Promise",stat:!0},{allSettled:function(e){var a=this,t=ep.f(a),u=t.resolve,r=t.reject,n=tp(function(){var n=Zf(a.resolve),i=[],o=0,s=1;rp(e,function(e){var t=o++,r=!1;s++,Qf(n,a,e).then(function(e){r||(r=!0,i[t]={status:"fulfilled",value:e},--s||u(i))},function(e){r||(r=!0,i[t]={status:"rejected",reason:e},--s||u(i))})}),--s||u(i)});return n.error&&r(n.value),t.promise}}),o),ip=zn,op=Kn,sp=d,ap=El,up=Aa,Af=(O({target:"Promise",stat:!0},{any:function(e){var u=this,c=op("AggregateError"),t=sp.f(u),l=t.resolve,f=t.reject,r=ap(function(){var n=ip(u.resolve),i=[],o=0,s=1,a=!1;up(e,function(e){var t=o++,r=!1;s++,np(n,u,e).then(function(e){r||a||(a=!0,l(e))},function(e){r||a||(r=!0,i[t]=e,--s||f(new c(i,"No one promise resolved")))})}),--s||f(new c(i,"No one promise resolved"))});return r.error&&f(r.value),t.promise}}),O),R=xl,k=g,cp=Kn,lp=E,fp=Bc,pp=kf,uf=xo,dp=R&&R.prototype,S=(Af({target:"Promise",proto:!0,real:!0,forced:!!R&&k(function(){dp.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=fp(this,cp("Promise")),e=lp(t);return this.then(e?function(e){return pp(r,t()).then(function(){return e})}:t,e?function(e){return pp(r,t()).then(function(){throw e})}:t)}}),lp(R)&&(p=cp("Promise").prototype.finally,dp.finally!==p&&uf(dp,"finally",p,{unsafe:!0})),e),hp=Mo,yp=Ca,vp=jn,mp=S("".charAt),gp=S("".charCodeAt),Ep=S("".slice),wp=(xf(!1),xf(!0)),Tp=Ca,N=hi,sf=Qu,bp=N.set,_p=N.getterFor("String Iterator"),f=(sf(String,"String",function(e){bp(this,{type:"String Iterator",string:Tp(e),index:0})},function(){var e=_p(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=wp(t,r),e.index+=t.length,{value:t,done:!1})}),v),T=(f.Promise,Wn("span").classList),I=T&&T.constructor&&T.constructor.prototype,h=I===Object.prototype?void 0:I,Op=v,Rp={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},xl=h,Sp=x,Ip=Bi,Af=Jn,Np=Af("iterator"),Ap=Af("toStringTag"),Cp=Sp.values;for(Pf in Rp)Mf(Op[Pf]&&Op[Pf].prototype,Pf);Mf(xl,"DOMTokenList");function kp(e,t,r){(t=rd(t))in e?nd.f(e,t,id(0,r)):e[t]=r}function xp(e){if(9007199254740991<e)throw bd("Maximum allowed index exceeded");return e}function Mp(e,t){return _d(e=e)&&(r=e.constructor,(Od(r)&&(r===Id||_d(r.prototype))||Rd(r)&&null===(r=r[Sd]))&&(r=void 0)),new(void 0===r?Id:r)(0===t?0:t);var r}function Pp(t){return 51<=Ad||!Nd(function(){var e=[];return(e.constructor={})[Cd]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function Up(e,t){if(!delete e[t])throw Vd("Cannot delete property "+jd(t)+" of "+jd(e))}function Dp(p){var d=1==p,h=2==p,y=3==p,v=4==p,m=6==p,g=7==p,E=5==p||m;return function(e,t,r,n){for(var i,o,s=$d(e),a=Yd(s),u=qd(t,r),c=Jd(a),l=0,t=n||Xd,f=d?t(e,c):h||g?t(e,0):void 0;l<c;l++)if((E||l in a)&&(o=u(i=a[l],l,s),p))if(d)f[l]=o;else if(o)switch(p){case 3:return!0;case 5:return i;case 6:return l;case 2:Wd(f,i)}else switch(p){case 4:return!1;case 7:Wd(f,i)}return m?-1:y||v?v:f}}function Lp(e,t){var r=[][e];return!!r&&Qd(function(){r.call(null,t||function(){return 1},1)})}function Fp(u){var c=1==u;return function(e,t,r){for(var n,i=lh(e),o=ch(i),s=uh(t,r),a=fh(o);0<a--;)if(s(n=o[a],a,i))switch(u){case 0:return n;case 1:return a}return c?-1:void 0}}function jp(e,t,r,n,i,o,s,a){for(var u,c,l=i,f=0,p=!!s&&mh(s,a);f<n;)f in r&&(u=p?p(r[f],f,t):r[f],0<o&&hh(u)?(c=yh(u),l=jp(e,t,u,c,l,o-1)-1):(vh(l+1),e[l]=u),l++),f++;return l}function Vp(c){return function(e,t,r,n){qh(t);var i=Yh(e),o=$h(i),s=Jh(i),a=c?s-1:0,u=c?-1:1;if(r<2)for(;;){if(a in o){n=o[a],a+=u;break}if(a+=u,c?a<0:s<=a)throw Xh("Reduce of empty array with no initial value")}for(;c?0<=a:a<s;a+=u)a in o&&(n=t(n,o[a],a,i));return n}}function Hp(e,t,r){for(var n=hy(e),i=dy(t,n),o=dy(void 0===r?n:r,n),s=vy(my(o-i,0)),a=0;i<o;i++,a++)yy(s,a,e[i]);return s.length=a,s}function Kp(e,t){var r=e.length,n=Ey(r/2);if(r<8){for(var i,o,s=e,a=t,u=s.length,c=1;c<u;){for(i=s[o=c];o&&0<a(s[o-1],i);)s[o]=s[--o];o!==c++&&(s[o]=i)}return s}for(var l=e,f=Kp(gy(e,0,n),t),p=Kp(gy(e,n),t),d=t,h=f.length,y=p.length,v=0,m=0;v<h||m<y;)l[v+m]=v<h&&m<y?d(f[v],p[m])<=0?f[v++]:p[m++]:v<h?f[v++]:p[m++];return l}function Gp(e){av(e,dv,{value:{objectID:"O"+hv++,weakData:{}}})}function zp(e,t,r){for(var n in t)Ov(e,n,t[n],r);return e}var Bp,qp,Yp,$p,Jp,Xp,Wp,Qp=d,Zp=El,ed=(O({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Qp.f(this),e=Zp(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),Qn),td=Ia,rd=Xn,nd=Gi,id=Ln,od=_a,sd=o,ad=Yn,ud=Oa,cd=A,ld=_,fd=kp,pd=Sa,dd=Ra,hd=Array,yd=(O({target:"Array",stat:!0,forced:!Cf(function(e){Array.from(e)})},{from:function(e){var t=ad(e),e=cd(this),r=arguments.length,n=1<r?arguments[1]:void 0,i=void 0!==n;i&&(n=od(n,2<r?arguments[2]:void 0));var o,s,a,u,c,l,r=dd(t),f=0;if(!r||this===hd&&ud(r))for(o=ld(t),s=e?new this(o):hd(o);f<o;f++)l=i?n(t[f],f):t[f],fd(s,f,l);else for(c=(u=pd(t,r)).next,s=e?new this:[];!(a=sd(c,u)).done;f++)l=i?function(e,t,r,n){try{return n?t(ed(r)[0],r[1]):t(r)}catch(t){td(e,"throw",t)}}(u,n,[a.value,f],!0):a.value,fd(s,f,l);return s.length=f,s}}),Fn),k=Array.isArray||function(e){return"Array"==yd(e)},vd=(O({target:"Array",stat:!0},{isArray:k}),A),md=kp,gd=Array,Ed=(O({target:"Array",stat:!0,forced:g(function(){function e(){}return!(gd.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(vd(this)?this:gd)(t);e<t;)md(r,e,arguments[e++]);return r.length=t,r}}),Yn),wd=_,Td=Mo,R=C,bd=(O({target:"Array",proto:!0},{at:function(e){var t=Ed(this),r=wd(t),e=Td(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),R("at"),TypeError),_d=k,Od=A,Rd=Hn,Sd=Jn("species"),Id=Array,Nd=g,Ad=w,Cd=Jn("species"),uf=O,p=g,kd=k,xd=Hn,Md=Yn,Pd=_,Ud=xp,Dd=kp,Ld=Mp,S=Pp,N=w,Fd=Jn("isConcatSpreadable"),sf=51<=N||!p(function(){var e=[];return e[Fd]=!1,e.concat()[0]!==e}),T=S("concat"),jd=(uf({target:"Array",proto:!0,arity:1,forced:!sf||!T},{concat:function(e){for(var t,r,n,i=Md(this),o=Ld(i,0),s=0,a=-1,u=arguments.length;a<u;a++)if(function(e){if(!xd(e))return!1;var t=e[Fd];return void 0!==t?!!t:kd(e)}(n=-1===a?i:arguments[a]))for(r=Pd(n),Ud(s+r),t=0;t<r;t++,s++)t in n&&Dd(o,s,n[t]);else Ud(s+1),Dd(o,s++,n);return o.length=s,o}}),Gn),Vd=TypeError,Hd=Yn,Kd=Po,Gd=_,zd=Up,Bd=Math.min,I=C,qd=(O({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=Hd(this),n=Gd(r),i=Kd(e,n),o=Kd(t,n),e=2<arguments.length?arguments[2]:void 0,s=Bd((void 0===e?n:Kd(e,n))-o,n-i),a=1;for(o<i&&i<o+s&&(a=-1,o+=s-1,i+=s-1);0<s--;)o in r?r[i]=r[o]:zd(r,i),i+=a,o+=a;return r}}),I("copyWithin"),_a),Yd=Zn,$d=Yn,Jd=_,Xd=Mp,Wd=e([].push),h={forEach:Dp(0),map:Dp(1),filter:Dp(2),some:Dp(3),every:Dp(4),find:Dp(5),findIndex:Dp(6),filterReject:Dp(7)},Qd=g,Zd=h.every,eh=(O({target:"Array",proto:!0,forced:!Lp("every")},{every:function(e){return Zd(this,e,1<arguments.length?arguments[1]:void 0)}}),Yn),th=Po,rh=_,x=C,nh=(O({target:"Array",proto:!0},{fill:function(e){for(var t=eh(this),r=rh(t),n=arguments.length,i=th(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,o=void 0===n?r:th(n,r);i<o;)t[i++]=e;return t}}),x("fill"),h.filter),Bi=(O({target:"Array",proto:!0,forced:!Pp("filter")},{filter:function(e){return nh(this,e,1<arguments.length?arguments[1]:void 0)}}),O),ih=h.find,Af=C,oh=!0,xl=("find"in[]&&Array(1).find(function(){oh=!1}),Bi({target:"Array",proto:!0,forced:oh},{find:function(e){return ih(this,e,1<arguments.length?arguments[1]:void 0)}}),Af("find"),O),sh=h.findIndex,d=C,ah=!0,uh=("findIndex"in[]&&Array(1).findIndex(function(){ah=!1}),xl({target:"Array",proto:!0,forced:ah},{findIndex:function(e){return sh(this,e,1<arguments.length?arguments[1]:void 0)}}),d("findIndex"),_a),ch=Zn,lh=Yn,fh=_,R={findLast:Fp(0),findLastIndex:Fp(1)},ph=R.findLast,N=C,dh=(O({target:"Array",proto:!0},{findLast:function(e){return ph(this,e,1<arguments.length?arguments[1]:void 0)}}),N("findLast"),R.findLastIndex),p=C,hh=(O({target:"Array",proto:!0},{findLastIndex:function(e){return dh(this,e,1<arguments.length?arguments[1]:void 0)}}),p("findLastIndex"),k),yh=_,vh=xp,mh=_a,S=jp,gh=S,Eh=Yn,wh=_,Th=Mo,bh=Mp,_h=(O({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Eh(this),r=wh(t),n=bh(t,0);return n.length=gh(n,t,t,r,0,void 0===e?1:Th(e)),n}}),S),Oh=zn,Rh=Yn,Sh=_,Ih=Mp,Nh=(O({target:"Array",proto:!0},{flatMap:function(e){var t,r=Rh(this),n=Sh(r);return Oh(e),(t=Ih(r,0)).length=_h(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),h.forEach),uf=Lp("forEach")?[].forEach:function(e){return Nh(this,e,1<arguments.length?arguments[1]:void 0)},Ah=(O({target:"Array",proto:!0,forced:[].forEach!=uf},{forEach:uf}),Zo.includes),sf=C,T=(O({target:"Array",proto:!0,forced:g(function(){return!Array(1).includes()})},{includes:function(e){return Ah(this,e,1<arguments.length?arguments[1]:void 0)}}),sf("includes"),O),Ch=Zo.indexOf,I=Lp,kh=e([].indexOf),xh=!!kh&&1/kh([1],1,-0)<0,x=I("indexOf"),Bi=(T({target:"Array",proto:!0,forced:xh||!x},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return xh?kh(this,e,t)||0:Ch(this,e,t)}}),O),Af=Zn,Mh=Vn,xl=Lp,Ph=e([].join),d=Af!=Object,N=xl("join",","),Uh=(Bi({target:"Array",proto:!0,forced:d||!N},{join:function(e){return Ph(Mh(this),void 0===e?",":e)}}),Lu),Dh=Vn,Lh=Mo,Fh=_,R=Lp,jh=Math.min,Vh=[].lastIndexOf,Hh=!!Vh&&1/[1].lastIndexOf(1,-0)<0,p=R("lastIndexOf"),S=Hh||!p?function(e){if(Hh)return Uh(Vh,this,arguments)||0;var t=Dh(this),r=Fh(t),n=r-1;for((n=1<arguments.length?jh(n,Lh(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:Vh,Kh=(O({target:"Array",proto:!0,forced:S!==[].lastIndexOf},{lastIndexOf:S}),h.map),uf=(O({target:"Array",proto:!0,forced:!Pp("map")},{map:function(e){return Kh(this,e,1<arguments.length?arguments[1]:void 0)}}),O),Gh=Yn,zh=_,Bh=xp,sf=g(function(){return 4294967297!==[].push.call({length:4294967296},1)}),Zo=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),qh=(uf({target:"Array",proto:!0,arity:1,forced:sf||Zo},{push:function(e){var t=Gh(this),r=zh(t),n=arguments.length;Bh(r+n);for(var i=0;i<n;i++)t[r]=arguments[i],r++;return t.length=r}}),zn),Yh=Yn,$h=Zn,Jh=_,Xh=TypeError,I={left:Vp(!1),right:Vp(!0)},Wh=I.left,T=w,x=Mu,Qh=(O({target:"Array",proto:!0,forced:!Lp("reduce")||!x&&79<T&&T<83},{reduce:function(e){var t=arguments.length;return Wh(this,e,t,1<t?arguments[1]:void 0)}}),I.right),Af=w,xl=Mu,Bi=(O({target:"Array",proto:!0,forced:!Lp("reduceRight")||!xl&&79<Af&&Af<83},{reduceRight:function(e){return Qh(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),O),Zh=k,ey=e([].reverse),d=[1,2],N=(Bi({target:"Array",proto:!0,forced:String(d)===String(d.reverse())},{reverse:function(){return Zh(this)&&(this.length=this.length),ey(this)}}),O),ty=k,ry=A,ny=Hn,iy=Po,oy=_,sy=Vn,ay=kp,Lu=Jn,uy=ji,R=Pp("slice"),cy=Lu("species"),ly=Array,fy=Math.max,py=(N({target:"Array",proto:!0,forced:!R},{slice:function(e,t){var r,n,i,o=sy(this),s=oy(o),a=iy(e,s),u=iy(void 0===t?s:t,s);if(ty(o)&&(r=o.constructor,(r=ry(r)&&(r===ly||ty(r.prototype))||ny(r)&&null===(r=r[cy])?void 0:r)===ly||void 0===r))return uy(o,a,u);for(n=new(void 0===r?ly:r)(fy(u-a,0)),i=0;a<u;a++,i++)a in o&&ay(n,i,o[a]);return n.length=i,n}}),h.some),dy=(O({target:"Array",proto:!0,forced:!Lp("some")},{some:function(e){return py(this,e,1<arguments.length?arguments[1]:void 0)}}),Po),hy=_,yy=kp,vy=Array,my=Math.max,gy=Hp,Ey=Math.floor,p=Kp,S=di.match(/firefox\/(\d+)/i),uf=!!S&&+S[1],sf=/MSIE|Trident/.test(di),Zo=di.match(/AppleWebKit\/(\d+)\./),x=!!Zo&&+Zo[1],T=O,I=e,wy=zn,Ty=Yn,by=_,_y=Up,Oy=Ca,Mu=g,Ry=p,xl=Lp,Sy=uf,Iy=sf,Ny=w,Ay=x,Cy=[],ky=I(Cy.sort),xy=I(Cy.push),Af=Mu(function(){Cy.sort(void 0)}),Bi=Mu(function(){Cy.sort(null)}),d=xl("sort"),My=!Mu(function(){if(Ny)return Ny<70;if(!(Sy&&3<Sy)){if(Iy)return!0;if(Ay)return Ay<603;for(var e,t,r,n="",i=65;i<76;i++){switch(e=String.fromCharCode(i),i){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(r=0;r<47;r++)Cy.push({k:e+r,v:t})}for(Cy.sort(function(e,t){return t.v-e.v}),r=0;r<Cy.length;r++)e=Cy[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),ji=(T({target:"Array",proto:!0,forced:Af||!Bi||!d||!My},{sort:function(e){void 0!==e&&wy(e);var t=Ty(this);if(My)return void 0===e?ky(t):ky(t,e);for(var r,n,i=[],o=by(t),s=0;s<o;s++)s in t&&xy(i,t[s]);for(Ry(i,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:Oy(e)>Oy(t)?1:-1})),r=i.length,s=0;s<r;)t[s]=i[s++];for(;s<o;)_y(t,s++);return t}}),Rc("Array"),O),Py=Yn,Uy=Po,Dy=Mo,Ly=_,Fy=xp,jy=Mp,Vy=kp,Hy=Up,Lu=Pp("splice"),Ky=Math.max,Gy=Math.min,N=(ji({target:"Array",proto:!0,forced:!Lu},{splice:function(e,t){var r,n,i,o,s,a,u=Py(this),c=Ly(u),l=Uy(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-l):(r=e-2,Gy(Ky(Dy(t),0),c-l)),Fy(c+r-n),i=jy(u,n),o=0;o<n;o++)(s=l+o)in u&&Vy(i,o,u[s]);if(r<(i.length=n)){for(o=l;o<c-n;o++)a=o+r,(s=o+n)in u?u[a]=u[s]:Hy(u,a);for(o=c;c-n+r<o;o--)Hy(u,o-1)}else if(n<r)for(o=c-n;l<o;o--)a=o+r-1,(s=o+n-1)in u?u[a]=u[s]:Hy(u,a);for(o=0;o<r;o++)u[o+l]=arguments[o+2];return u.length=c-n+r,i}}),C("flat"),C("flatMap"),O),zy=Yn,By=_,qy=Up,Yy=xp,R=1!==[].unshift(0),S=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),di=(N({target:"Array",proto:!0,arity:1,forced:R||S},{unshift:function(e){var t=zy(this),r=By(t),n=arguments.length;if(n){Yy(r+n);for(var i=r;i--;){var o=i+n;i in t?t[o]=t[i]:qy(t,o)}for(var s=0;s<n;s++)t[s]=arguments[s]}return t.length=r+n}}),f.Array,{exports:{}}),Zo={},$y=Fn,Jy=Vn,Xy=yi.f,Wy=Hp,Qy="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=(Zo.f=function(e){if(!Qy||"Window"!=$y(e))return Xy(Jy(e));var t=e;try{return Xy(t)}catch(t){return Wy(Qy)}},g(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),uf=g,Zy=Hn,ev=Fn,tv=p,rv=Object.isExtensible,sf=uf(function(){rv(1)})||tv?function(e){return!!Zy(e)&&(!tv||"ArrayBuffer"!=ev(e))&&(!rv||rv(e))}:rv,w=!g(function(){return Object.isExtensible(Object.preventExtensions({}))}),nv=O,iv=e,x=Yo,ov=Hn,sv=b,av=Gi.f,uv=yi,cv=Zo,lv=sf,fv=w,pv=!1,dv=$n("meta"),hv=0,yv=di.exports={enable:function(){yv.enable=function(){},pv=!0;var i=uv.f,o=iv([].splice),e={};e[dv]=1,i(e).length&&(uv.f=function(e){for(var t=i(e),r=0,n=t.length;r<n;r++)if(t[r]===dv){o(t,r,1);break}return t},nv({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:cv.f}))},fastKey:function(e,t){if(!ov(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!sv(e,dv)){if(!lv(e))return"F";if(!t)return"E";Gp(e)}return e[dv].objectID},getWeakData:function(e,t){if(!sv(e,dv)){if(!lv(e))return!0;if(!t)return!1;Gp(e)}return e[dv].weakData},onFreeze:function(e){return fv&&pv&&lv(e)&&!sv(e,dv)&&Gp(e),e}},vv=(x[dv]=!0,E),mv=Hn,gv=da,I=O,xl=v,Ev=e,Mu=ts,wv=xo,T=di.exports,Tv=Aa,bv=Sc,Af=E,_v=Hn,Bi=g,d=Cf,ji=Xu,Ov=xo,Rv=Gi.f,Sv=ha,Iv=zp,Nv=_a,Av=Sc,Cv=Aa,kv=Qu,xv=Rc,Mv=r,Pv=di.exports.fastKey,Uv=hi.set,Dv=hi.getterFor;function Lv(e){var r=Ev(Xp[e]);wv(Xp,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(Yp&&!_v(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return Yp&&!_v(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(Yp&&!_v(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}Lu=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},N={getConstructor:function(e,r,n,i){function o(e,t,r){var n,i=u(e),o=s(e,t);return o?o.value=r:(i.last=o={index:n=Pv(t,!0),key:t,value:r,previous:t=i.last,next:void 0,removed:!1},i.first||(i.first=o),t&&(t.next=o),Mv?i.size++:e.size++,"F"!==n&&(i.index[n]=o)),e}function s(e,t){var r,e=u(e),n=Pv(t);if("F"!==n)return e.index[n];for(r=e.first;r;r=r.next)if(r.key==t)return r}var e=e(function(e,t){Av(e,a),Uv(e,{type:r,index:Sv(null),first:void 0,last:void 0,size:0}),Mv||(e.size=0),null!=t&&Cv(t,e[i],{that:e,AS_ENTRIES:n})}),a=e.prototype,u=Dv(r);return Iv(a,{clear:function(){for(var e=u(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,Mv?e.size=0:this.size=0},delete:function(e){var t,r,n=u(this),e=s(this,e);return e&&(t=e.next,r=e.previous,delete n.index[e.index],e.removed=!0,r&&(r.next=t),t&&(t.previous=r),n.first==e&&(n.first=t),n.last==e&&(n.last=r),Mv?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=Nv(e,1<arguments.length?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),Iv(a,n?{get:function(e){e=s(this,e);return e&&e.value},set:function(e,t){return o(this,0===e?0:e,t)}}:{add:function(e){return o(this,e=0===e?0:e,e)}}),Mv&&Rv(a,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",i=Dv(t),o=Dv(n);kv(e,t,function(e,t){Uv(this,{type:n,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:{value:e.target=void 0,done:!0}},r?"entries":"values",!r,!0),xv(t)}},qp=-1!==(R="Map").indexOf("Map"),Yp=-1!==R.indexOf("Weak"),$p=qp?"set":"add",Jp=xl.Map,Xp=Jp&&Jp.prototype,S={},Mu(R,!Af(Wp=Jp)||!(Yp||Xp.forEach&&!Bi(function(){(new Jp).entries().next()})))?(Wp=N.getConstructor(Lu,R,qp,$p),T.enable()):Mu(R,!0)&&(f=(Bp=new Wp)[$p](Yp?{}:-0,1)!=Bp,p=Bi(function(){Bp.has(1)}),uf=d(function(e){new Jp(e)}),Yo=!Yp&&Bi(function(){for(var e=new Jp,t=5;t--;)e[$p](t,t);return!e.has(-0)}),uf||(((Wp=Lu(function(e,t){bv(e,Xp);r=new Jp,e=e,n=Wp,gv&&vv(e=e.constructor)&&e!==n&&mv(e=e.prototype)&&e!==n.prototype&&gv(r,e);var r,n=r;return null!=t&&Tv(t,n[$p],{that:n,AS_ENTRIES:qp}),n})).prototype=Xp).constructor=Wp),(p||Yo)&&(Lv("delete"),Lv("has"),qp&&Lv("get")),(Yo||f)&&Lv($p),Yp&&Xp.clear&&delete Xp.clear),S.Map=Wp,I({global:!0,constructor:!0,forced:Wp!=Jp},S),ji(Wp,R),Yp||N.setStrong(Wp,R,qp);function Fv(e,t){for(var r=0,n=Kv(t),i=new e(n);r<n;)i[r]=t[r++];return i}function jv(e,t,r,n){for(var i,o,s,a=Bv(e),u=zv(a),c=Gv(t,r),l=$v(null),f=Yv(u),p=0;p<f;p++)s=u[p],(o=qv(c(s,p,a)))in l?Wv(l[o],s):l[o]=[s];if(n&&(i=n(a))!==Xv)for(o in l)l[o]=Jv(i,l[o]);return l}function Vv(e){for(var t,r,n=rm(this),i=tm(n),o=em(e,1<arguments.length?arguments[1]:void 0),s=new im,a=nm(i),u=0;u<a;u++)t=o(r=i[u],u,n),sm(s,t)?um(om(s,t),r):am(s,t,[r]);return s}function Hv(e){return pm[e].prototype}var Kv=_,Gv=_a,zv=Zn,Bv=Yn,qv=Xn,Yv=_,$v=ha,Jv=Fv,Xv=Array,Wv=e([].push),Qv=jv,b=C,Zv=(O({target:"Array",proto:!0},{group:function(e){return Qv(this,e,1<arguments.length?arguments[1]:void 0)}}),b("group"),jv),yi=C,em=(O({target:"Array",proto:!0,forced:!Lp("groupBy")},{groupBy:function(e){return Zv(this,e,1<arguments.length?arguments[1]:void 0)}}),yi("groupBy"),_a),Zo=e,tm=Zn,rm=Yn,nm=_,im=Kn("Map"),sf=im.prototype,om=Zo(sf.get),sm=Zo(sf.has),am=Zo(sf.set),um=Zo([].push),w=C,x=Vv,da=(O({target:"Array",proto:!0,name:"groupToMap",forced:!Lp("groupByToMap")},{groupByToMap:x}),w("groupByToMap"),C),cm=(O({target:"Array",proto:!0},{groupToMap:Vv}),da("groupToMap"),_),lm=Vn,ts=C,fm=Array,pm=(O({target:"Array",proto:!0},{toReversed:function(){for(var e=lm(this),t=fm,r=cm(e),n=new t(r),i=0;i<r;i++)n[i]=e[r-i-1];return n}}),ts("toReversed"),v),di=O,dm=zn,hm=Vn,ym=Fv,xl=C,vm=Array,mm=e(Hv("Array").sort),Mu=(di({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&dm(e);var t=hm(this),t=ym(vm,t);return mm(t,e)}}),xl("toSorted"),O),d=C,gm=xp,Em=_,wm=Po,Tm=Vn,bm=Mo,_m=Array,Om=Math.max,Rm=Math.min,Sm=(Mu({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,i,o,s=Tm(this),a=Em(s),u=wm(e,a),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,a-u):(r=e-2,Rm(Om(bm(t),0),a-u)),i=gm(a+r-n),o=_m(i);c<u;c++)o[c]=s[c];for(;c<u+r;c++)o[c]=arguments[c-u+2];for(;c<i;c++)o[c]=s[c+n-r];return o}}),d("toSpliced"),_),Im=Mo,Nm=RangeError,Am=Vn,Cm=Array;O({target:"Array",proto:!0},{with:function(e,t){var r=Am(this),n=Cm,i=t,o=Sm(r),s=(e=Im(e))<0?o+e:e;if(o<=s||s<0)throw Nm("Incorrect index");for(var a=new n(o),u=0;u<o;u++)a[u]=u===s?i:r[u];return a}});Bi=v,uf=Mi,Lu=E,p=Ao,Yo=xo,f=Jn("asyncIterator"),I=Bi.AsyncIterator,S=uf.AsyncIteratorPrototype;if(S)h0=S;else if(Lu(I))h0=I.prototype;else if(uf.USE_FUNCTION_CONSTRUCTOR||Bi.USE_FUNCTION_CONSTRUCTOR)try{p0=p(p(p(Function("return async function*(){}()")()))),p(p0)===Object.prototype&&(h0=p0)}catch(gT){}Lu((h0=h0||{})[f])||Yo(h0,f,function(){return this});function km(e,t,r){var n=e.done;Vm.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function xm(e){Hm(this,{type:"AsyncFromSyncIterator",iterator:Fm(e),next:e.next})}function Mm(e,t,r,n){try{var i=Zm(e,"return");if(i)return Qm("Promise").resolve(Wm(i,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function Pm(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,s,a){var e={iterator:e,next:Jm(Xm(e).next)},u=ig("Promise"),c=e.iterator,t=e.next,l=0,f=void 0!==s;return!f&&p||tg(s),new u(function(r,n){var i=function(e){Mm(c,n,e,n)},o=function(){try{if(p&&f)try{ng(l)}catch(e){i(e)}u.resolve(rg(eg(t,c))).then(function(e){try{if(rg(e).done)p?(a.length=l,r(a)):r(!y&&(h||void 0));else{var t=e.value;try{f?u.resolve(p?s(t,l):s(t)).then(function(e){if(d)o();else if(h)e?o():Mm(c,r,!1,n);else if(p)try{a[l++]=e,o()}catch(e){i(e)}else e?Mm(c,r,y||t,n):o()},i):(a[l++]=t,o())}catch(e){i(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};o()})}}function Um(e,t){if(!Eg||!gg(e)||!Eg(e))return!1;for(var r,n=0,i=e.length;n<i;)if(!("string"==typeof(r=e[n++])||t&&void 0===r))return!1;return 0!==i}function Dm(e,t,r){r.get&&wg(r.get,t,{getter:!0}),r.set&&wg(r.set,t,{setter:!0}),Tg.f(e,t,r)}var Lm=o,Fm=Qn,ji=ha,jm=Bn,N=zp,R=hi,b=h0,Vm=Kn("Promise"),Hm=R.set,Km=R.getterFor("AsyncFromSyncIterator"),yi=(xm.prototype=N(ji(b),{next:function(){var n=Km(this);return new Vm(function(e,t){var r=Fm(Lm(n.next,n.iterator));km(r,e,t)})},return:function(){var n=Km(this).iterator;return new Vm(function(e,t){var r=jm(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=Fm(Lm(r,n));km(r,e,t)})}}),xm),Gm=o,zm=yi,Bm=Qn,qm=Sa,Ym=Bn,$m=Jn("asyncIterator"),Jm=zn,Xm=Qn,Wm=o,Qm=Kn,Zm=Bn,eg=o,tg=zn,rg=Qn,ng=xp,ig=Kn,Zn={toArray:Pm(0),forEach:Pm(1),every:Pm(2),some:Pm(3),find:Pm(4)},og=_a,sg=Yn,ag=A,ug=Sa,cg=Ra,lg=Bn,sf=Hv,fg=Kn,pg=yi,dg=Zn.toArray,hg=Jn("asyncIterator"),yg=sf("Array").values,vg=(O({target:"Array",stat:!0,forced:!0},{fromAsync:function(o){var s=this,e=arguments.length,a=1<e?arguments[1]:void 0,u=2<e?arguments[2]:void 0;return new(fg("Promise"))(function(e){var t=sg(o),r=(void 0!==a&&(a=og(a,u)),lg(t,hg)),n=r?void 0:cg(t)||yg,i=ag(s)?new s:[],r=r?function(e,t){t=arguments.length<2?Ym(e,$m):t;return t?Bm(Gm(t,e)):new zm(qm(e))}(t,r):new pg(ug(t,n));e(dg(r,a,i))})}}),h.filterReject),Zo=C,mg=(O({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return vg(this,e,1<arguments.length?arguments[1]:void 0)}}),Zo("filterOut"),h.filterReject),x=C,w=(O({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return mg(this,e,1<arguments.length?arguments[1]:void 0)}}),x("filterReject"),O),gg=k,Eg=Object.isFrozen,wg=(w({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!Um(e,!0))return!1;var t=e.raw;return t.length===e.length&&Um(t,!1)}}),Ti.exports),Tg=Gi,da=C,bg=Yn,_g=_,ts=(r&&(Dm(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=bg(this),t=_g(e);return 0==t?void 0:e[t-1]},set:function(e){var t=bg(this),r=_g(t);return t[0==r?0:r-1]=e}}),da("lastItem")),C),Og=Yn,Rg=_,di=(r&&(Dm(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=Og(this),e=Rg(e);return 0==e?0:e-1}}),ts("lastIndex")),e),Sg=zn,Ig=_,Ng=Yn,Ag=Mp,Cg=Kn("Map"),xl=Cg.prototype,kg=di(xl.forEach),xg=di(xl.has),Mg=di(xl.set),Pg=di([].push),Mu=C;O({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=Ng(this),i=Ig(n),o=Ag(n,0),s=new Cg,a=null!=e?Sg(e):function(e){return e},u=0;u<i;u++)r=a(t=n[u]),xg(s,r)||Mg(s,r,t);return kg(s,function(e){Pg(o,e)}),o}}),Mu("uniqueBy");function Ug(e,t,r){this.reason=e,this.targetEvaluations=t,this.message=r}function Dg(e,t,r){this.reason=e,this.targetEvaluations=t,this.message=r}kw.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},kw.prototype.refresh=function(){this.stop(),this.start()},kw.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)};var Lg,Fg,jg,Vg,Hg,Kg,Gg,zg,Bg,qg=kw,Yg=(Cw.prototype.start=function(){this.started=!0},Cw.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},Cw.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},Cw.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},Cw.prototype.close=function(){this.stop()},Cw),d=(Aw.prototype.on=function(e,t){this.listeners[e]=(this.listeners[e]||[]).concat(t)},Aw.prototype.off=function(e,t){this.listeners[e]=(this.listeners[e]||[]).filter(function(e){return e!==t})},Aw.prototype.emit=function(e,t){(this.listeners[e]||[]).forEach(function(e){e(t)})},Aw),v=(ce(Nw,Bg=d),Nw.prototype.isClientError=function(e){return!!(e&&400<=e.statusCode&&e.statusCode<500)},Nw.prototype.drainRepository=function(o){var e=this;return new Promise(function(i){return le(e,void 0,void 0,function(){var t,r,n=this;return fe(this,function(e){switch(e.label){case 0:return[4,null==(r=this.repository)?void 0:r.read()];case 1:return(t=e.sent())&&0!==t.length?o?this.eventDispatcher.dispatchXhrOrBeacon(t,function(){var e;i(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?i(null==(e=n.repository)?void 0:e.delete(t)):i()}):this.eventDispatcher.dispatch(t,function(){var e;i(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?i(null==(e=n.repository)?void 0:e.delete(t)):i()}):i(),[2]}})})})},Nw.prototype.drainQueue=function(i,o){var e=this,s=i.map(function(e){return e.toDto()});return new Promise(function(n){return le(e,void 0,void 0,function(){var t,r=this;return fe(this,function(e){return 0===i.length?n():o?(null!=(t=this.repository)&&t.add(s),this.eventDispatcher.dispatchXhrOrBeacon(i,function(){var e;n(null==(e=r.repository)?void 0:e.delete(s))},function(e){r.isClientError(e)?n(null==(e=r.repository)?void 0:e.delete(s)):n()})):this.eventDispatcher.dispatch(i,function(){n()},function(e){r.isClientError(e)?n():n(null==(e=r.repository)?void 0:e.add(s))}),[2]})})})},Nw.prototype.process=function(e){this.emit("queue",e),this.queue.enqueue(e)},Nw.prototype.start=function(){return le(this,void 0,void 0,function(){return fe(this,function(e){return this.queue.start(),[2]})})},Nw.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},Nw.prototype.flush=function(){this.queue.flush()},Nw.prototype.close=function(){this.stop()},Nw),$g=(Iw.isSessionEvent=function(e){return!!Br.isTrack(e)&&(e.event.key===Iw.SESSION_START_EVENT_NAME||e.event.key===Iw.SESSION_END_EVENT_NAME)},Iw.prototype.onSessionStarted=function(e,t,r){this.track(Iw.SESSION_START_EVENT_NAME,e,t,r)},Iw.prototype.onSessionEnded=function(e,t,r){this.track(Iw.SESSION_END_EVENT_NAME,e,t,r)},Iw.prototype.track=function(e,t,r,n){e={key:e,properties:{sessionId:t}},r=this.hackleUserResolver.resolve(r),r=this.decorateSession(r,t);this.core.track(e,r,n)},Iw.prototype.decorateSession=function(e,t){t=(new ze).add(Ge.SESSION,t).addIdentifiers(e.identifiers).build();return y(y({},e),{identifiers:t})},Iw.SESSION_START_EVENT_NAME="$session_start",Iw.SESSION_END_EVENT_NAME="$session_end",Iw),Jg=(ce(Sw,zg=v),Sw.prototype.process=function(e){var t;$g.isSessionEvent(e)||this.sessionManager.startNewSessionIfNeeded(this.userManager.currentUser,e.timestamp),this.exposureEventDedupDeterminer.isDedupTarget(e)||(e=e,t=null===(t=this.sessionManager).currentSessionId||e.user.identifiers[Ge.SESSION]?e:e.copyWithUser(y(y({},e.user),{identifiers:y(y({},e.user.identifiers),((e={})[Ge.SESSION]=t.sessionId,e))})),zg.prototype.process.call(this,t))},Sw),Xg=(Rw.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!Br.isExposure(e))return!1;Re.isEquals(e.user.identifiers,null==(t=this.currentUser)?void 0:t.identifiers)||(this.currentUser=e.user,this.cache=new Map);var t=[e.experiment.id,e.variationId,e.variationKey,e.decisionReason].join("-"),e=(new Date).getTime(),r=this.cache.get(t);return void 0!==r&&e-r<=this.exposureEventDedupIntervalMillis||(this.cache.set(t,e),!1)},Rw),Wg=(Ow.toEvent=function(e){var t;return{key:Ow.EVENT_KEY,properties:{level:Ow.LEVEL_ERROR,type:e.name,message:null!=(t=e.message)?t:"",$stacktrace:Ow._stacktrace(e)}}},Ow._stacktrace=function(e){return a.isNullOrUndefined(e.stack)?"":e.stack.split("\n").slice(0,Ow.STACK_TRACK_LIMIT).join("\n")},Ow.EVENT_KEY="$trace",Ow.LEVEL_ERROR="error",Ow.STACK_TRACK_LIMIT=30,Ow),Mi=(_w.prototype.evaluate=function(e,t){if(!this.supports(e))throw new Error("Unsupported EvaluatorRequest ".concat(e.toString()));var r;if(t.contains(e))throw r=t.stack.map(function(e){return e.toString()}).join(" - "),new Error("Circular evaluation has occurred [".concat(r," - ").concat(e.toString(),"]"));t.addRequest(e);try{return this.evaluateInternal(e,t)}finally{t.removeRequest(e)}},_w),Qg=(ce(bw,Gg=Mi),bw.prototype.supports=function(e){return void 0!==e.experiment},bw.prototype.evaluateInternal=function(e,t){return this.evaluationFlowFactory.getFlow(e.experiment.type).evaluate(e,t)},bw),Zg=(Tw.of=function(e,t,r,n,i,o){return o.returnValue=n,new Tw(i,t.targetEvaluations,e.parameter,r,n,o)},Tw.ofDefault=function(e,t,r,n){return this.of(e,t,void 0,e.defaultValue,r,n)},Tw),e0=(ce(ww,Kg=Mi),ww.prototype.supports=function(e){return void 0!==e.parameter},ww.prototype.evaluateInternal=function(e,t){var r={};if(r.requestValueType=e.requiredType,r.requestDefaultValue=e.defaultValue,a.isNullOrUndefined(e.user.identifiers[e.parameter.identifierType]))return Zg.ofDefault(e,t,s.IDENTIFIER_NOT_FOUND,r);var n=this.targetRuleDeterminer.determineTargetRuleOrNull(e,t);return a.isNotNullOrUndefined(n)?(r.targetRuleKey=n.key,r.targetRuleName=n.name,this.evaluation(e,t,n.value,s.TARGET_RULE_MATCH,r)):this.evaluation(e,t,e.parameter.defaultValue,s.DEFAULT_RULE,r)},ww.prototype.evaluation=function(e,t,r,n,i){return"UNKNOWN"===e.requiredType||"NULL"!==e.requiredType&&typeof e.defaultValue!=typeof r.rawValue?Zg.ofDefault(e,t,s.TYPE_MISMATCH,i):Zg.of(e,t,r.id,r.rawValue,n,i)},ww),t0=(Ew.prototype.with=function(e){return new Ew(e,this.targetEvaluations,this.experiment,this.variationId,this.variationKey,this.config)},Ew.of=function(e,t,r,n){var i=this.config(e.workspace,r);return new Ew(n,t.targetEvaluations,e.experiment,r.id,r.key,i)},Ew.ofDefault=function(e,t,r){var n=e.experiment._getVariationByKeyOrNull(e.defaultVariationKey);return a.isNotNullOrUndefined(n)?this.of(e,t,n,r):new Ew(r,t.targetEvaluations,e.experiment,void 0,e.defaultVariationKey,void 0)},Ew.config=function(e,t){if(!a.isNullOrUndefined(t.parameterConfigurationId))return a.requiredNotNullOrUndefined(e.getParameterConfigurationOrNull(t.parameterConfigurationId),function(){return"ParameterConfiguration[".concat(t.parameterConfigurationId,"]")})},Ew),r0=(gw.prototype.isEquals=function(e){return this.type===e.type&&this.id===e.id},gw),n0=(mw.create=function(){return new mw},Object.defineProperty(mw.prototype,"stack",{get:function(){return Array.from(this._stack)},enumerable:!1,configurable:!0}),Object.defineProperty(mw.prototype,"targetEvaluations",{get:function(){return Array.from(this._targetEvaluations)},enumerable:!1,configurable:!0}),mw.prototype.contains=function(t){return this._stack.some(function(e){return e.key.isEquals(t.key)})},mw.prototype.addRequest=function(e){this._stack.push(e)},mw.prototype.removeRequest=function(e){e=this._stack.indexOf(e,0);-1<e&&this._stack.splice(e,1)},mw.prototype.get=function(t){return this._targetEvaluations.find(function(e){return e instanceof t0&&e.experiment.id===t.id})},mw.prototype.addEvaluation=function(e){this._targetEvaluations.push(e)},mw),i0=(vw.of=function(e,t,r,n){return new vw(e,t,r,n)},vw.by=function(e,t){return new vw(e.workspace,e.user,t,"A")},vw.prototype.toString=function(){return"EvaluatorRequest(type=".concat(this.experiment.type,", key=").concat(this.experiment.key,")")},vw),o0=(yw.of=function(e,t,r,n,i){return new yw(e,t,r,n,i)},yw.prototype.toString=function(){return"EvaluatorRequest(type=".concat(this.key.type,", key=").concat(this.parameter.key,")")},yw),s0=(hw.asString=function(e){switch(typeof e){case"string":return e;case"number":return e.toString();default:return}},hw.asNumber=function(e){switch(typeof e){case"number":return this.asActualNumber(e);case"string":return this.asActualNumber(Number(e));default:return}},hw.asActualNumber=function(e){return!isNaN(e)&&isFinite(e)?e:void 0},hw),a0=(dw.prototype.getVariation=function(e,t){if(0!==this.storages.length)for(var r=0,n=this.storages;r<n.length;r++){var i=n[r].getVariation(e,t);if(void 0!==i)return i}},dw),u0=(pw.prototype.getVariation=function(e,t){var r=this.get(e);if(r)return e._getVariationByIdOrNull(r)},pw.prototype.get=function(e){e=this.listStorage.getItem(e.id.toString());return s0.asNumber(e)},pw.prototype.getAll=function(){var r=new Map;return this.listStorage.entries().forEach(function(e){var t=e[0],e=e[1],t=s0.asNumber(t),e=s0.asNumber(e);a.isNullOrUndefined(t)||t<0||a.isNullOrUndefined(e)||t<0||r.set(t,e)}),r},pw.prototype.set=function(e,t){this.listStorage.setItem(e.id.toString(),t.toString())},pw.prototype.remove=function(e){this.listStorage.removeItem(e.id.toString())},pw.prototype.clear=function(){this.listStorage.clear()},pw),c0=(fw.prototype.add=function(e){this.evaluators.push(e)},fw.prototype.evaluate=function(t,e){var r=this.evaluators.find(function(e){return e.supports(t)});if(a.isNullOrUndefined(r))throw new Error("Unsupported EvaluatorRequest [".concat(t.toString(),"]"));return r.evaluate(t,e)},fw),l0=(lw.prototype.matches=function(t,r,e){var n=this;return e.conditions.every(function(e){return n._matches(t,r,e)})},lw.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(r.key.type).matches(e,t,r)},lw),f0=(cw.prototype.matches=function(e,t){var r=this.valueMatcherFactory.getMatcher(t.valueType),n=this.operatorMatcherFactory.getMatcher(t.operator),e=this.userValueMatches(e,t,r,n);return this.typeMatches(t.type,e)},cw.prototype.userValueMatches=function(e,t,r,n){return Array.isArray(e)?this.arrayMatches(e,t,r,n):this.singleMatches(e,t,r,n)},cw.prototype.singleMatches=function(t,e,r,n){return e.values.some(function(e){return r.matches(n,t,e)})},cw.prototype.arrayMatches=function(e,t,r,n){var i=this;return e.some(function(e){return i.singleMatches(e,t,r,n)})},cw.prototype.typeMatches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},cw),Ao=(uw.prototype.booleanMatches=function(e,t){return e===t},uw.prototype.numberMatches=function(e,t){return e===t},uw.prototype.stringMatches=function(e,t){return e===t},uw.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},uw),S=(aw.prototype.booleanMatches=function(e,t){return!1},aw.prototype.numberMatches=function(e,t){return!1},aw.prototype.stringMatches=function(e,t){return e.includes(t)},aw.prototype.versionMatches=function(e,t){return!1},aw),I=(sw.prototype.booleanMatches=function(e,t){return!1},sw.prototype.numberMatches=function(e,t){return!1},sw.prototype.stringMatches=function(e,t){return e.startsWith(t)},sw.prototype.versionMatches=function(e,t){return!1},sw),uf=(ow.prototype.booleanMatches=function(e,t){return!1},ow.prototype.numberMatches=function(e,t){return!1},ow.prototype.stringMatches=function(e,t){return e.endsWith(t)},ow.prototype.versionMatches=function(e,t){return!1},ow),Bi=(iw.prototype.booleanMatches=function(e,t){return!1},iw.prototype.numberMatches=function(e,t){return t<e},iw.prototype.stringMatches=function(e,t){return t<e},iw.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},iw),p=(nw.prototype.booleanMatches=function(e,t){return!1},nw.prototype.numberMatches=function(e,t){return t<=e},nw.prototype.stringMatches=function(e,t){return t<=e},nw.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},nw),p0=(rw.prototype.booleanMatches=function(e,t){return!1},rw.prototype.numberMatches=function(e,t){return e<t},rw.prototype.stringMatches=function(e,t){return e<t},rw.prototype.versionMatches=function(e,t){return e.isLessThan(t)},rw),Lu=(tw.prototype.booleanMatches=function(e,t){return!1},tw.prototype.numberMatches=function(e,t){return e<=t},tw.prototype.stringMatches=function(e,t){return e<=t},tw.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},tw),d0=(ew.prototype.getMatcher=function(e){switch(e){case"IN":return ew.IN_MATCHER;case"CONTAINS":return ew.CONTAINS_MATCHER;case"STARTS_WITH":return ew.STARTS_WITH_MATCHER;case"ENDS_WITH":return ew.ENDS_WITH_MATCHER;case"GT":return ew.GT_MATCHER;case"GTE":return ew.GTE_MATCHER;case"LT":return ew.LT_MATCHER;case"LTE":return ew.LTE_MATCHER}},ew.IN_MATCHER=new Ao,ew.CONTAINS_MATCHER=new S,ew.STARTS_WITH_MATCHER=new I,ew.ENDS_WITH_MATCHER=new uf,ew.GT_MATCHER=new Bi,ew.GTE_MATCHER=new p,ew.LT_MATCHER=new p0,ew.LTE_MATCHER=new Lu,ew),Yo=(ZE.prototype.matches=function(e,t,r){t=s0.asString(t),r=s0.asString(r);return!a.isNullOrUndefined(t)&&!a.isNullOrUndefined(r)&&e.stringMatches(t,r)},ZE),f=(QE.prototype.matches=function(e,t,r){t=s0.asNumber(t),r=s0.asNumber(r);return!a.isNullOrUndefined(t)&&!a.isNullOrUndefined(r)&&e.numberMatches(t,r)},QE),ha=(WE.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},WE),hi=(XE.prototype.matches=function(e,t,r){t=It.tryParse(t),r=It.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},XE),h0=(JE.prototype.matches=function(e,t,r){return!1},JE),y0=($E.prototype.getMatcher=function(e){switch(e){case"STRING":case"JSON":return $E.STRING_MATCHER;case"NUMBER":return $E.NUMBER_MATCHER;case"BOOLEAN":return $E.BOOLEAN_MATCHER;case"VERSION":return $E.VERSION_MATCHER;case"NULL":case"UNKNOWN":return $E.NULL_MATCHER}},$E.STRING_MATCHER=new Yo,$E.NUMBER_MATCHER=new f,$E.BOOLEAN_MATCHER=new ha,$E.VERSION_MATCHER=new hi,$E.NULL_MATCHER=new h0,$E),v0=(YE.prototype.matches=function(e,t,r){e=this.userValueResolver.resolveOrNull(e.user,r.key);return!a.isNullOrUndefined(e)&&this.valueOperatorMatcher.matches(e,r.match)},YE),m0=(qE.prototype.resolveOrNull=function(e,t){switch(t.type){case"USER_ID":return e.identifiers[t.name];case"USER_PROPERTY":return e.properties[t.name];case"HACKLE_PROPERTY":return e.hackleProperties[t.name];case"SEGMENT":case"AB_TEST":case"FEATURE_FLAG":case"EVENT_PROPERTY":throw new Error("Unsupported TargetKeyType [".concat(t.type,"]"))}},qE),g0=(BE.prototype.matches=function(t,r,e){var n=this;if("SEGMENT"!=e.key.type)throw new Error("Unsupported TargetKeyType [".concat(e.key.type,"]"));var i=e.match.values.some(function(e){return n._matches(t,r,e)});switch(e.match.type){case"MATCH":return i;case"NOT_MATCH":return!i}},BE.prototype._matches=function(e,t,r){if("string"!=typeof r)throw new Error("SegmentKey[".concat(r,"]"));var n=e.workspace.getSegmentOrNull(r);if(n)return this.segmentMatcher.matches(e,t,n);throw new Error("Segment[".concat(r,"]"))},BE),E0=(zE.prototype.matches=function(t,r,e){var n=this;return e.targets.some(function(e){return n._matches(t,r,e)})},zE.prototype._matches=function(t,r,e){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(t,r,e)})},zE),w0=(GE.prototype.matches=function(e,t,r){switch(r.key.type){case"AB_TEST":return this.abTestMatcher.matches(e,t,r);case"FEATURE_FLAG":return this.featureFlagMatcher.matches(e,t,r);case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":case"EVENT_PROPERTY":case"SEGMENT":throw new Error("Unsupported TargetKeyType [".concat(r.key.type,"]"))}},GE),R=(KE.prototype.matches=function(e,t,r){var n=a.requiredNotNullOrUndefined(s0.asNumber(r.key.name),function(){return"Invalid key [".concat(r.key.type,", ").concat(r.key.name,"]")}),n=this.experiment(e,n);if(a.isNullOrUndefined(n))return!1;var i=null!=(i=t.get(n))?i:this.evaluate(e,t,n);return this.evaluationMatches(i,r)},KE.prototype.evaluate=function(e,t,r){r=i0.by(e,r),r=this.evaluator.evaluate(r,t),e=this.resolve(e,r);return t.addEvaluation(e),e},KE),T0=(ce(HE,Hg=R),HE.prototype.experiment=function(e,t){return e.workspace.getExperimentOrNull(t)},HE.prototype.resolve=function(e,t){return e instanceof i0&&t.reason===s.TRAFFIC_ALLOCATED?t.with(s.TRAFFIC_ALLOCATED_BY_TARGETING):t},HE.prototype.evaluationMatches=function(e,t){return!!HE.AB_TEST_MATCHED_REASONS.includes(e.reason)&&this.valueOperatorMatcher.matches(e.variationKey,t.match)},HE.AB_TEST_MATCHED_REASONS=[s.OVERRIDDEN,s.TRAFFIC_ALLOCATED,s.EXPERIMENT_COMPLETED,s.TRAFFIC_ALLOCATED_BY_TARGETING],HE),b0=(ce(VE,Vg=R),VE.prototype.experiment=function(e,t){return e.workspace.getFeatureFlagOrNull(t)},VE.prototype.resolve=function(e,t){return t},VE.prototype.evaluationMatches=function(e,t){e="A"!==e.variationKey;return this.valueOperatorMatcher.matches(e,t.match)},VE),_0=(jE.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return this.userConditionMatcher;case"SEGMENT":return this.segmentConditionMatcher;case"AB_TEST":case"FEATURE_FLAG":return this.experimentConditionMatcher;case"EVENT_PROPERTY":throw new Error("Unsupported TargetKeyType [".concat(e,"]"))}},jE),O0=(FE.prototype.resolveOrNull=function(e,t,r){switch(r.type){case"VARIATION":return this.resolveVariation(e,r);case"BUCKET":return this.resolveBucket(e,r)}},FE.prototype.resolveVariation=function(e,t){return e.experiment._getVariationByIdOrNull(t.variationId)},FE.prototype.resolveBucket=function(e,t){var t=e.workspace.getBucketOrNull(t.bucketId),r=e.user.identifiers[e.experiment.identifierType];if(r){t=this.bucketer.bucketing(t,r);if(t)return e.experiment._getVariationByIdOrNull(t.variationId)}},FE),R0={murmurhash3_x86_32:function(e,t,r,n){for(var i,o=-4&(n=void 0===n?e.length:n),s=t,a=0;a<o;a+=4)i=255&e.charCodeAt(a)|(255&e.charCodeAt(a+1))<<8|(255&e.charCodeAt(a+2))<<16|(255&e.charCodeAt(a+3))<<24,i=(131071&(i=this.mul32(i,3432918353)))<<15|i>>>17,s=5*((524287&(s^=i=this.mul32(i,461845907)))<<13|s>>>19)+3864292196|0;switch(i=0,n%4){case 3:i=(255&e.charCodeAt(2+o))<<16;case 2:i|=(255&e.charCodeAt(1+o))<<8;case 1:i|=255&e.charCodeAt(o),i=(131071&(i=this.mul32(i,3432918353)))<<15|i>>>17,s^=i=this.mul32(i,461845907)}return s=this.mul32(s=(s^=n)^s>>>16,2246822507),(s=this.mul32(s^=s>>>13,3266489909))^s>>>16},mul32:function(e,t){var r=65535&t;return((t-r)*e|0)+(r*e|0)|0}},S0=(LE.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},LE.prototype.calculateSlotNumber=function(e,t,r){r=R0.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},LE),I0=(DE.prototype.evaluate=function(e,t){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,this.nextFlow):t0.ofDefault(e,t,s.TRAFFIC_NOT_ALLOCATED)},DE.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new DE,n=0,i=e.reverse();n<i.length;n++)r=new DE(i[n],r);return r},DE),N0=(UE.prototype.evaluate=function(e,t,r){var n=this.overrideResolver.resolveOrNull(e,t);if(!n)return r.evaluate(e,t);switch(e.experiment.type){case"AB_TEST":return t0.of(e,t,n,s.OVERRIDDEN);case"FEATURE_FLAG":return t0.of(e,t,n,s.INDIVIDUAL_TARGET_MATCH)}},UE),A0=(PE.prototype.evaluate=function(e,t,r){return"DRAFT"===e.experiment.status?t0.ofDefault(e,t,s.EXPERIMENT_DRAFT):r.evaluate(e,t)},PE),C0=(ME.prototype.evaluate=function(e,t,r){if("PAUSED"!==e.experiment.status)return r.evaluate(e,t);switch(e.experiment.type){case"AB_TEST":return t0.ofDefault(e,t,s.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return t0.ofDefault(e,t,s.FEATURE_FLAG_INACTIVE)}},ME),k0=(xE.prototype.evaluate=function(e,t,r){if("COMPLETED"!==e.experiment.status)return r.evaluate(e,t);r=e.experiment._winnerVariationOrNull();if(r)return t0.of(e,t,r,s.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(e.experiment.id,"]"))},xE),x0=(kE.prototype.evaluate=function(e,t,r){if("AB_TEST"!==e.experiment.type)throw new Error("experiment type must be AB_TEST [".concat(e.experiment.id,"]"));return this.experimentTargetDeterminer.isUserInExperimentTarget(e,t)?r.evaluate(e,t):t0.ofDefault(e,t,s.NOT_IN_EXPERIMENT_TARGET)},kE),M0=(CE.prototype.evaluate=function(e,t,r){if("RUNNING"!==e.experiment.status)throw new Error("experiment status must be RUNNING [".concat(e.experiment.id,"]"));if("AB_TEST"!==e.experiment.type)throw new Error("experiment type must be AB_TEST [".concat(e.experiment.id,"]"));var n=this.actionResolver.resolveOrNull(e,t,e.experiment.defaultRule);return n?n.isDropped?t0.ofDefault(e,t,s.VARIATION_DROPPED):t0.of(e,t,n,s.TRAFFIC_ALLOCATED):t0.ofDefault(e,t,s.TRAFFIC_NOT_ALLOCATED)},CE),P0=(AE.prototype.evaluate=function(e,t,r){if("RUNNING"!==e.experiment.status)throw new Error("experiment status must be RUNNING [".concat(e.experiment.id,"]"));if("FEATURE_FLAG"!==e.experiment.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(e.experiment.id,"]"));if(!e.user.identifiers[e.experiment.identifierType])return r.evaluate(e,t);var n=this.targetRuleDeterminer.determineTargetRuleOrNull(e,t);if(!n)return r.evaluate(e,t);r=this.actionResolver.resolveOrNull(e,t,n.action);if(r)return t0.of(e,t,r,s.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(e.experiment.id,"]"))},AE),U0=(NE.prototype.evaluate=function(e,t,r){if("RUNNING"!==e.experiment.status)throw new Error("experiment status must be RUNNING [".concat(e.experiment.id,"]"));if("FEATURE_FLAG"!==e.experiment.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(e.experiment.id,"]"));if(!e.user.identifiers[e.experiment.identifierType])return t0.ofDefault(e,t,s.DEFAULT_RULE);var n=this.actionResolver.resolveOrNull(e,t,e.experiment.defaultRule);if(n)return t0.of(e,t,n,s.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(e.experiment.id,"]"))},NE),D0=(IE.prototype.evaluate=function(e,t,r){var n=e.experiment.containerId;if(!n)return r.evaluate(e,t);var i=e.workspace.getContainerOrNull(n);if(i)return this.containerResolver.isUserInContainerGroup(e,t,i)?r.evaluate(e,t):t0.ofDefault(e,t,s.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("container[".concat(n,"]"))},IE),L0=(SE.prototype.evaluate=function(e,t,r){return e.user.identifiers[e.experiment.identifierType]?r.evaluate(e,t):t0.ofDefault(e,t,s.IDENTIFIER_NOT_FOUND)},SE),F0=(RE.prototype.isUserInExperimentTarget=function(t,r){var n=this;return 0===t.experiment.targetAudiences.length||t.experiment.targetAudiences.some(function(e){return n.targetMatcher.matches(t,r,e)})},RE),j0=(OE.prototype.determineTargetRuleOrNull=function(t,r){var n=this;return t.experiment.targetRules.find(function(e){return n.targetMatcher.matches(t,r,e.target)})},OE),V0=(_E.prototype.resolveOrNull=function(e,t){var r;return null!=(r=null!=(r=this.resolveManualOverride(e))?r:this._resolveUserOverride(e))?r:this._resolveSegmentOverride(e,t)},_E.prototype.resolveManualOverride=function(e){return this.manualOverrideStorage.getVariation(e.experiment,e.user)},_E.prototype._resolveUserOverride=function(e){var t=e.experiment,e=e.user.identifiers[t.identifierType];if(e){e=t.userOverrides.get(e);if(e)return t._getVariationByIdOrNull(e)}},_E.prototype._resolveSegmentOverride=function(t,r){var n=this,e=t.experiment.segmentOverrides.find(function(e){return n.targetMatcher.matches(t,r,e.target)});if(e)return this.actionResolver.resolveOrNull(t,r,e.action)},_E),H0=(bE.prototype.isUserInContainerGroup=function(e,t,r){var n=e.user.identifiers[e.experiment.identifierType];if(a.isNullOrUndefined(n))return!1;var i=e.workspace.getBucketOrNull(r.bucketId);if(a.isNullOrUndefined(i))throw new Error("Bucket[".concat(r.bucketId,"]"));i=this.bucketer.bucketing(i,n);if(a.isNullOrUndefined(i))return!1;n=r.getGroupOrNull(i.variationId);if(a.isNullOrUndefined(n))throw new Error("ContainerGroup[".concat(i.variationId,"]"));return n.experiments.includes(e.experiment.id)},bE),K0=(TE.prototype.determineTargetRuleOrNull=function(t,r){var n=this;return t.parameter.targetRules.find(function(e){return n.matches(t,r,e)})},TE.prototype.matches=function(e,t,r){if(!this.targetMatcher.matches(e,t,r.target))return!1;t=e.user.identifiers[e.parameter.identifierType];if(a.isNullOrUndefined(t))return!1;e=e.workspace.getBucketOrNull(r.bucketId);if(a.isNullOrUndefined(e))throw new Error("bucket[".concat(r.bucketId,"]"));return a.isNotNullOrUndefined(this.bucketer.bucketing(e,t))},TE),G0=(wE.prototype.determineInAppMessageTargetRule=function(e,t){return this.matches(e,t,e.message)?e.message:void 0},wE.prototype.matches=function(t,r,e){var n=this;return!!e.supportsWeb()&&(!!e.targetContext.overrides.some(function(e){return n.targetMatcher.matches(t,r,e.toTarget())})||!!e.isActive()&&!!e.dateRange.within(t.timestamp)&&(0===e.targetContext.targets.length||e.targetContext.targets.some(function(e){return n.targetMatcher.matches(t,r,e)})))},wE),z0=(EE.prototype.determineInAppMessage=function(r,n){var i=this,e=r.workspace.getInAppMessages().reduce(function(e,t){t=i.matches(r,n,t);return!t||e&&e.priority>=t.priority?e:t},null);return null==e?void 0:e.message},EE.prototype.matches=function(r,n,i){var o=this;return i.eventTriggerRules.reduce(function(e,t){return t.eventKey!==r.track.event.key||0!==t.targets.length&&!t.targets.some(function(e){return o.targetMather.matches(r,n,e)})||e&&e.priority>=t.priority?e:{message:i,priority:t.priority}},null)},EE),B0=(gE.prototype.matches=function(t,r,e){var n=this;return e.conditions.every(function(e){return n._matches(t,r,e)})},gE.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(r.key.type).matches(e,t,r)},gE),q0=(mE.prototype.matches=function(e,t,r){if(a.isNullOrUndefined(e.event))return!1;e=this.eventValueResolver.resolveOrNull(e.event,r.key);return!a.isNullOrUndefined(e)&&this.valueOperatorMatcher.matches(e,r.match)},mE),Y0=(vE.prototype.resolveOrNull=function(e,t){var r;switch(t.type){case"EVENT_PROPERTY":return null==(r=null==e?void 0:e.properties)?void 0:r[t.name];case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":case"SEGMENT":case"AB_TEST":case"FEATURE_FLAG":throw new Error("Unsupported TargetKeyType [".concat(t.type,"]"))}},vE),$0=(yE.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return this.userConditionMatcher;case"SEGMENT":return this.segmentConditionMatcher;case"AB_TEST":case"FEATURE_FLAG":throw new Error("Unsupported TargetKeyType [".concat(e,"]"));case"EVENT_PROPERTY":return this.eventConditionMatcher}},yE),J0=(hE.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},hE),X0=(dE.prototype.create=function(r,e){var n=this,i=this.clock.currentMillis(),o=new Array,t=this.createEvent(r,e,i,{});return o.push(t),e.targetEvaluations.forEach(function(e){var t;(t={})[dE.ROOT_TYPE]=r.key.type,t[dE.ROOT_ID]=r.key.id;e=n.createEvent(r,e,i,t);o.push(e)}),o},dE.prototype.createEvent=function(e,t,r,n){var i;if(t instanceof t0)return n[dE.CONFIG_ID_PROPERTY_KEY]=null==(i=t.config)?void 0:i.id,Br.exposure(e.user,t,n,r);if(t instanceof Zg)return Br.remoteConfig(e.user,t,y(y({},n),t.properties),r);throw new Error("Unsupported Evaluation [".concat(typeof t,"]"))},dE.ROOT_TYPE="$targetingRootType",dE.ROOT_ID="$targetingRootId",dE.CONFIG_ID_PROPERTY_KEY="$parameterConfigurationId",dE),W0=(ce(pE,jg=Mi),pE.prototype.supports=function(e){return!!("message"in e&&e.message instanceof Kt)},pE.prototype.evaluateInternal=function(e,t){e=this.determiner.determineInAppMessageTargetRule(e,t);return new Ug(e?s.TARGET_RULE_MATCH:s.DEFAULT_RULE,t.targetEvaluations,e)},pE),Q0=(fE.of=function(e,t,r,n){return new fE(e,t,r,n)},fE.prototype.toString=function(){return"EvaluatorRequest(type=".concat(this.key.type,", key=").concat(this.message.key,")")},fE),Z0=(ce(lE,Fg=Mi),lE.prototype.supports=function(e){return!!("track"in e&&e.track instanceof Yr)},lE.prototype.evaluateInternal=function(e,t){e=this.determiner.determineInAppMessage(e,t);return new Dg(e?s.TARGET_RULE_MATCH:s.DEFAULT_RULE,t.targetEvaluations,e)},lE),eE=(cE.of=function(e,t){return new cE(e,t)},cE.prototype.toString=function(){return"EvaluatorRequest(type=".concat(this.key.type,", key=").concat(this.track.insertId,")")},cE),tE=de.log,rE=(uE.create=function(e,t,r){var n=new c0,r=new a0(r),r=new J0(n,r),i=new Qg(r),o=new e0(r.remoteConfigParameterTargetRuleDeterminer),s=new Z0(r.trackInAppMessageDeterminer),r=new W0(r.inAppMessageDeterminer);return n.add(i),n.add(o),new uE(i,o,r,s,e,new X0(zt.instance),t,new nE)},uE.prototype.experiment=function(e,t,r){var n=this;if(!e)return tE.error("experimentKey must not be empty"),De.of(r,s.INVALID_INPUT);var i=this.workspaceFetcher.get();if(!i)return tE.warn("SDK not ready."),De.of(r,s.SDK_NOT_READY);e=i.getExperimentOrNull(e);if(!e)return tE.warn("Experiment does not exist."),De.of(r,s.EXPERIMENT_NOT_FOUND);i=i0.of(i,t,e,r),t=this.experimentInternal(i),e=t[0],r=t[1];return this.eventFactory.create(i,e).forEach(function(e){return n.eventProcessor.process(e)}),r},uE.prototype.experiments=function(r){var n=this,i=new hr(function(e,t){return e.id===t.id}),o=this.workspaceFetcher.get();return o&&o.getExperiments().forEach(function(e){var t=i0.of(o,r,e,"A"),t=n.experimentInternal(t),t=(t[0],t[1]);i.add(e,t)}),i},uE.prototype.experimentInternal=function(e){var e=this.experimentEvaluator.evaluate(e,n0.create()),t=null!=(t=e.config)?t:new Fe;return[e,De.of(e.variationKey,e.reason,t)]},uE.prototype.featureFlag=function(e,t){var r=this;if(!e)return tE.error("featureKey must not be empty"),Le.off(s.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return tE.warn("SDK not ready."),Le.off(s.SDK_NOT_READY);e=n.getFeatureFlagOrNull(e);if(!e)return tE.warn("FeatureFlag does not exist."),Le.off(s.FEATURE_FLAG_NOT_FOUND);n=i0.of(n,t,e,"A"),t=this.featureFlagInternal(n),e=t[0],t=t[1];return this.eventFactory.create(n,e).forEach(function(e){return r.eventProcessor.process(e)}),t},uE.prototype.featureFlags=function(r){var n=this,i=new hr(function(e,t){return e.id===t.id}),o=this.workspaceFetcher.get();return o&&o.getFeatureFlags().forEach(function(e){var t=i0.of(o,r,e,"A"),t=n.featureFlagInternal(t),t=(t[0],t[1]);i.add(e,t)}),i},uE.prototype.featureFlagInternal=function(e){var e=this.experimentEvaluator.evaluate(e,n0.create()),t=null!=(t=e.config)?t:new Fe;return[e,"A"===e.variationKey?Le.off(e.reason,t):Le.on(e.reason,t)]},uE.prototype.trackInAppMessage=function(e){var t=this.workspaceFetcher.get();if(!t)return tE.warn("SDK not ready."),new xe(void 0,s.SDK_NOT_READY);t=new eE(t,e),e=this.trackInAppMessageEvaluator.evaluate(t,n0.create());return new xe(e.message,e.reason)},uE.prototype.inAppMessage=function(e,t,r){void 0===r&&(r=Date.now());var n=this.workspaceFetcher.get();if(!n)return tE.warn("SDK not ready."),new xe(void 0,s.SDK_NOT_READY);e=n.getInAppMessageOrNull(e);if(!e)return tE.warn("In app message does not exist."),new xe(void 0,s.IN_APP_MESSAGE_NOT_FOUND);n=Q0.of(n,e,t,r),e=this.inAppMessageEvaluator.evaluate(n,n0.create());return new xe(e.message,e.reason)},uE.prototype.track=function(e,t,r){var n;void 0===r&&(r=(new Date).getTime()),e?"object"==typeof e?"object"!=typeof e||e.key&&"string"==typeof e.key?(n=(null==(n=this.workspaceFetcher.get())?void 0:n.getEventTypeOrNull(e.key))||new Me(0,e.key),this.eventProcessor.process(Br.track(n,e,t,r))):tE.warn("Event key must be not null. or event key must be string type."):tE.warn("Event must be event type."):tE.warn("event must not be null.")},uE.prototype.trackException=function(e,t){this.errorDedupDeterminer.isDedupTarget(e)||(e=Wg.toEvent(e),this.flush(),this.track(e,t),this.flush())},uE.prototype.flush=function(){this.eventProcessor.flush()},uE.prototype.remoteConfig=function(e,t,r,n){var i=this,o=this.workspaceFetcher.get();if(a.isNullOrUndefined(o))return tE.warn("SDK not ready."),Ue.of(n,s.SDK_NOT_READY);e=o.getRemoteConfigParameterOrNull(e);if(a.isNullOrUndefined(e))return tE.warn("Remote config parameter does not exist."),Ue.of(n,s.REMOTE_CONFIG_PARAMETER_NOT_FOUND);o=o0.of(o,t,e,r,n),t=this.remoteConfigEvaluator.evaluate(o,n0.create());return this.eventFactory.create(o,t).forEach(function(e){return i.eventProcessor.process(e)}),Ue.of(t.value,t.reason)},uE.prototype.onReady=function(e,t){this.onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},uE.prototype.onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(tE.debug("Start HackleClient initializing"),new Promise(function(e){t=e})),n=setTimeout(function(){t({success:!1})},e);return this.readyPromise.then(function(){clearTimeout(n),t({success:!0})},function(e){clearTimeout(n),t({success:!1,error:e})}),Promise.race([this.readyPromise,r]).then(function(e){return e.success?tE.debug("HackleClient onInitialized Success"):e.error instanceof Error?tE.error("HackleClient onInitialized Failed. ".concat(e.error.message)):tE.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},uE.prototype.close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},uE),nE=(aE.prototype.isDedupTarget=function(e){return!!this._isSameError(e,this.previous)||(this.previous=e,!1)},aE.prototype._isSameError=function(e,t){return!a.isNullOrUndefined(t)&&e.name===t.name&&e.message===t.message&&e.stack===t.stack},aE),iE=(sE.prototype.install=function(e,t){this._install("onerror",e,t),this._install("onunhandledrejection",e,t)},sE.prototype._install=function(e,t,r){e in this._installed||((0,this._installations[e])(t,r),this._installed.push(e))},sE),oE=null;function sE(){this._installed=[],this._installations={onerror:xw,onunhandledrejection:Mw}}function aE(){}function uE(e,t,r,n,i,o,s,a){this.experimentEvaluator=e,this.remoteConfigEvaluator=t,this.trackInAppMessageEvaluator=n,this.inAppMessageEvaluator=r,this.workspaceFetcher=i,this.eventFactory=o,this.eventProcessor=s,this.errorDedupDeterminer=a,this.workspaceFetcher.start(),this.eventProcessor.start(),this.readyPromise=this.workspaceFetcher.onReady().then(function(){return{success:!0}},function(e){return{success:!1,error:e}})}function cE(e,t){this.key=new r0("IN_APP_MESSAGE",t.insertId),this.workspace=e,this.track=t,this.user=t.user,this.event=t.event}function lE(e){var t=Fg.call(this)||this;return t.determiner=e,t}function fE(e,t,r,n){this.key=new r0("IN_APP_MESSAGE",t.key),this.workspace=e,this.user=r,this.message=t,this.timestamp=n}function pE(e){var t=jg.call(this)||this;return t.determiner=e,t}function dE(e){this.clock=e}function hE(e,t){var r=new S0,e=new l0(new _0(e)),n=new O0(r),t=new V0(t,e,n),i=new H0(r),i=(this.abTestFlow=I0.of(new N0(t),new L0,new D0(i),new x0(new F0(e)),new A0,new C0,new k0,new M0(n)),this.featureFlagFlow=I0.of(new A0,new C0,new k0,new N0(t),new L0,new P0(new j0(e),n),new U0(n)),this.remoteConfigParameterTargetRuleDeterminer=new K0(e,r),new B0(new $0));this.inAppMessageDeterminer=new G0(i),this.trackInAppMessageDeterminer=new z0(i)}function yE(){var e=new f0(new y0,new d0),t=new v0(new m0,e);this.userConditionMatcher=t,this.segmentConditionMatcher=new g0(new E0(t)),this.eventConditionMatcher=new q0(new Y0,e)}function vE(){}function mE(e,t){this.eventValueResolver=e,this.valueOperatorMatcher=t}function gE(e){this.conditionMatcherFactory=e}function EE(e){this.targetMather=e}function wE(e){this.targetMatcher=e}function TE(e,t){this.targetMatcher=e,this.bucketer=t}function bE(e){this.bucketer=e}function _E(e,t,r){this.manualOverrideStorage=e,this.targetMatcher=t,this.actionResolver=r}function OE(e){this.targetMatcher=e}function RE(e){this.targetMatcher=e}function SE(){}function IE(e){this.containerResolver=e}function NE(e){this.actionResolver=e}function AE(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function CE(e){this.actionResolver=e}function kE(e){this.experimentTargetDeterminer=e}function xE(){}function ME(){}function PE(){}function UE(e){this.overrideResolver=e}function DE(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function LE(){}function FE(e){this.bucketer=e}function jE(e){var t=new f0(new y0,new d0),r=new v0(new m0,t);this.userConditionMatcher=r,this.segmentConditionMatcher=new g0(new E0(r)),this.experimentConditionMatcher=new w0(new T0(e,t),new b0(e,t))}function VE(e,t){return Vg.call(this,e,t)||this}function HE(e,t){return Hg.call(this,e,t)||this}function KE(e,t){this.evaluator=e,this.valueOperatorMatcher=t}function GE(e,t){this.abTestMatcher=e,this.featureFlagMatcher=t}function zE(e){this.userConditionMatcher=e}function BE(e){this.segmentMatcher=e}function qE(){}function YE(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function $E(){}function JE(){}function XE(){}function WE(){}function QE(){}function ZE(){}function ew(){}function tw(){}function rw(){}function nw(){}function iw(){}function ow(){}function sw(){}function aw(){}function uw(){}function cw(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function lw(e){this.conditionMatcherFactory=e}function fw(){this.evaluators=new Array}function pw(e){this.listStorage=e}function dw(e){this.storages=e}function hw(){}function yw(e,t,r,n,i){this.key=new r0("REMOTE_CONFIG",r.id),this.workspace=e,this.user=t,this.parameter=r,this.requiredType=n,this.defaultValue=i}function vw(e,t,r,n){this.key=new r0("EXPERIMENT",r.id),this.workspace=e,this.user=t,this.experiment=r,this.defaultVariationKey=n}function mw(){this._stack=[],this._targetEvaluations=[]}function gw(e,t){this.type=e,this.id=t}function Ew(e,t,r,n,i,o){this.reason=e,this.targetEvaluations=t,this.experiment=r,this.variationId=n,this.variationKey=i,this.config=o}function ww(e){var t=Kg.call(this)||this;return t.targetRuleDeterminer=e,t}function Tw(e,t,r,n,i,o){this.reason=e,this.targetEvaluations=t,this.parameter=r,this.valueId=n,this.value=i,this.properties=o}function bw(e){var t=Gg.call(this)||this;return t.evaluationFlowFactory=e,t}function _w(){}function Ow(){}function Rw(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function Sw(e,t,r,n,i,o,s){e=zg.call(this,e,t,r,n=void 0===n?null:n)||this;return e.exposureEventDedupDeterminer=i,e.sessionManager=o,e.userManager=s,e}function Iw(e,t){this.hackleUserResolver=e,this.core=t}function Nw(e,t,r,n){void 0===n&&(n=null);var i=Bg.call(this)||this;return i.eventDispatcher=e,i.flushInterval=r,i.queue=new Yg(i.drainQueue.bind(i),t,r),i.repository=n,i}function Aw(){this.listeners={}}function Cw(e,t,r){this.buffer=[],this.sink=e,this.maxQueueSize=t,this.timer=new qg({callback:this.flush.bind(this),timeout:r}),this.started=!1}function kw(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function xw(o,s){oE=window.onerror,window.onerror=function(e,t,r,n,i){a.isNotNullOrUndefined(i)&&o.trackException(i,s.resolveCurrentUser()),oE&&oE.apply(this,arguments)}}function Mw(r,n){Lg=window.onunhandledrejection,window.onunhandledrejection=function(e){var t;try{"reason"in e?t=e.reason:"detail"in e&&"reason"in e.detail&&(t=e.detail.reason)}catch(e){}t instanceof Error&&r.trackException(t,n.resolveCurrentUser()),Lg&&Lg.apply(this,arguments)}}function Pw(e,t){return e.userId===t.userId&&e.deviceId===t.deviceId}tT.prototype.read=function(){var r=this;return new Promise(function(e){var t=r.storage.getItem(r.storageKey);t&&e(JSON.parse(t)),e([])})},tT.prototype.save=function(r){var n=this;return 0===r.length?this.clear():new Promise(function(e){var t=JSON.stringify(r.slice(-n.maxSize));n.storage.setItem(n.storageKey,t),e()})},tT.prototype.add=function(t){var r=this;return this.read().then(function(e){return r.save(e.concat(t).slice(-r.maxSize))})},tT.prototype.delete=function(r){var t=this;return this.read().then(function(e){e=e.filter(function(t){return r.findIndex(function(e){return e.insertId===t.insertId})<0});return t.save(e)})},tT.prototype.clear=function(){var t=this;return new Promise(function(e){localStorage.removeItem(t.storageKey),e()})};var Uw,Dw=tT,Lw=(eT.prototype.addListener=function(e){this.userListeners.push(e)},eT.prototype.initialize=function(){var e=this.storage.getItem("_hackle_did")||this.hackleDeviceId,t=this.storage.getItem("_hackle_uid")||void 0;this._currentUser={deviceId:e,userId:t}},Object.defineProperty(eT.prototype,"currentUser",{get:function(){return this._currentUser},enumerable:!1,configurable:!0}),eT.prototype.resolveCurrentOrNull=function(e){if(void 0===e)return this.currentUser;if("string"==typeof e)return this.setUser({id:e});e=Pe(e);return e?this.setUser(e):null},eT.prototype.setUser=function(e){var t=this._currentUser,r=Pw(r=t,e=e)?y(y({},e),{properties:y(y({},r.properties),e.properties)}):e;return this._currentUser=r,Pw(t,r)||(this.changeUser(t,r,(new Date).getTime()),this.saveUser(r)),r},eT.prototype.setUserId=function(e){e=y(y({},this._currentUser),{userId:e});return this.setUser(e)},eT.prototype.setDeviceId=function(e){e=y(y({},this._currentUser),{deviceId:e});return this.setUser(e)},eT.prototype.setUserProperty=function(e,t){var r,e=y(y({},this._currentUser),{properties:y(y({},this._currentUser.properties),((r={})[e]=t,r))});return this.setUser(e)},eT.prototype.setUserProperties=function(e){e=y(y({},this._currentUser),{properties:y(y({},this._currentUser.properties),e)});return this.setUser(e)},eT.prototype.resetUser=function(){return this.setUser(this.defaultUser)},eT.prototype.changeUser=function(t,r,n){this.userListeners.forEach(function(e){e.onUserUpdated(t,r,n)})},eT.prototype.saveUser=function(e){a.isNotNullOrUndefined(e.deviceId)?this.storage.setItem("_hackle_did",e.deviceId):this.storage.removeItem("_hackle_did"),a.isNotNullOrUndefined(e.userId)?this.storage.setItem("_hackle_uid",e.userId):this.storage.removeItem("_hackle_uid")},eT),Fw=(Object.defineProperty(Zw.prototype,"currentSessionId",{get:function(){return this._currentSessionId},enumerable:!1,configurable:!0}),Object.defineProperty(Zw.prototype,"sessionId",{get:function(){var e;return null!=(e=this._currentSessionId)?e:Zw.EMPTY_SESSION_ID},enumerable:!1,configurable:!0}),Object.defineProperty(Zw.prototype,"lastEventTime",{get:function(){return this._lastEventTime},enumerable:!1,configurable:!0}),Zw.prototype.addListener=function(e){this.sessionListeners.push(e)},Zw.prototype.startNewSession=function(e,t){return this.endSession(e),this.newSession(e,t)},Zw.prototype.startNewSessionIfNeeded=function(e,t){var r=this._lastEventTime;return null!==r&&null!==this._currentSessionId&&t-r<this.sessionTimeoutMillis?(this.updateLastEventTime(t),this._currentSessionId):this.startNewSession(e,t)},Zw.prototype.updateLastEventTime=function(e){this._lastEventTime=e,this.storage.setItem("_hackle_last_event_ts","".concat(e))},Zw.prototype.endSession=function(t){var r=this._currentSessionId,n=this._lastEventTime;null!==r&&null!==n&&this.sessionListeners.forEach(function(e){return e.onSessionEnded(r,t,n)})},Zw.prototype.newSession=function(t,r){var n="".concat(r,".").concat(ae.v4().slice(0,8));return this.saveSession(n),this.updateLastEventTime(r),this.sessionListeners.forEach(function(e){e.onSessionStarted(n,t,r)}),n},Zw.prototype.saveSession=function(e){this._currentSessionId=e,this.storage.setItem("_hackle_session_id",e)},Zw.prototype.loadSession=function(){this._currentSessionId=this.storage.getItem("_hackle_session_id")},Zw.prototype.loadLastEventTime=function(){var e=this.storage.getItem("_hackle_last_event_ts");null!==e&&0<(e=Number.parseFloat(e))&&(this._lastEventTime=e)},Zw.prototype.onUserUpdated=function(e,t,r){this.endSession(e),this.newSession(t,r)},Zw.EMPTY_SESSION_ID="0.ffffffff",Zw),jw=(Qw.postfix=function(e,t){return new Qw(e,function(e){return"".concat(e).concat(t)})},Qw.prototype.getItem=function(e){return this.delegate.getItem(this.transform(e))},Qw.prototype.removeItem=function(e){this.delegate.removeItem(this.transform(e))},Qw.prototype.setItem=function(e,t){this.delegate.setItem(this.transform(e),t)},Qw),Vw=(Ww.prototype.isEqualItem=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},Ww.prototype.getRemainListSize=function(){try{return this.maxLength-JSON.stringify(this.getList()).length}catch(e){return 0}},Ww.prototype.isAddableItem=function(e){try{return this.getRemainListSize()>JSON.stringify(e).length}catch(e){return!1}},Ww.prototype.getVictimIndex=function(e){var t=this.getRemainListSize();try{var r=JSON.stringify(e),n=this.getList(),i=0;return n.findIndex(function(e){return(i+=JSON.stringify(e).length)+t>=r.length})}catch(e){return-1}},Ww.prototype.getList=function(){try{var e=this.delegate.getItem(this.listKey);if(!e)return[];var t=JSON.parse(e);return Array.isArray(t)?t:[]}catch(e){return[]}},Ww.prototype.entries=function(){return this.getList().flatMap(Object.entries)},Ww.prototype.setItem=function(e,t){var r;try{this.removeItem(e);var n=this.getList(),i=((r={})[e]=t,r);if(!this.isAddableItem(i)){var o=this.getVictimIndex(i);if(o<0)return;n=n.slice(o+1)}var s=JSON.stringify(n.concat(i));this.delegate.setItem(this.listKey,s)}catch(e){}},Ww.prototype.getItem=function(t){var r=this,e=this.getList().find(function(e){return r.isEqualItem(e,t)});if(e&&e[t])return e[t]},Ww.prototype.removeItem=function(t){var r=this,e=this.getList();try{var n=e.filter(function(e){return!r.isEqualItem(e,t)}),i=JSON.stringify(n);this.delegate.setItem(this.listKey,i)}catch(t){}},Ww.prototype.clear=function(){this.delegate.removeItem(this.listKey)},Ww),Hw=(Xw.prototype.currentUser=function(){var e=this.userManager.currentUser;return this.userResolver.resolve(e)},Xw.prototype.getAbTestDecisions=function(){return this.core.experiments(this.currentUser()).entries()},Xw.prototype.getAbTestOverrides=function(){return this.abOverrideStorage.getAll()},Xw.prototype.setAbTestOverride=function(e,t){this.abOverrideStorage.set(e,t),this.increment("AB_TEST","set")},Xw.prototype.resetAbTestOverride=function(e){this.abOverrideStorage.remove(e),this.increment("AB_TEST","reset")},Xw.prototype.resetAllAbTestOverride=function(){this.abOverrideStorage.clear(),this.increment("AB_TEST","reset.all")},Xw.prototype.getFeatureFlagDecisions=function(){return this.core.featureFlags(this.currentUser()).entries()},Xw.prototype.getFeatureFlagOverrides=function(){return this.ffOverrideStorage.getAll()},Xw.prototype.setFeatureFlagOverride=function(e,t){this.ffOverrideStorage.set(e,t),this.increment("FEATURE_FLAG","set")},Xw.prototype.resetFeatureFlagOverride=function(e){this.ffOverrideStorage.remove(e),this.increment("FEATURE_FLAG","reset")},Xw.prototype.resetAllFeatureFlagOverride=function(){this.ffOverrideStorage.clear(),this.increment("FEATURE_FLAG","reset.all")},Xw.prototype.increment=function(e,t){Lr.counter("experiment.manual.override",{"experiment.type":e,operation:t}).increment()},Xw),Kw=(Jw.serverFetch=function(e){return"".concat(e,"/api/v2/workspaces")},Jw.clientFetch=function(e,t){return"".concat(e,"/api/v2/w/").concat(t,"/w")},Jw.serverDispatch=function(e){return"".concat(e,"/api/v2/events")},Jw.clientDispatch=function(e){return"".concat(e,"/api/v2/w/events")},Jw.beaconDispatch=function(e,t){return"".concat(e,"/api/v2/w/").concat(t,"/events")},Jw),Gw=(ce($w,Uw=d),$w.prototype.initialize=function(){this.core.eventProcessor.on("queue",this.handleTrackEventTrigger),this.core.workspaceFetcher.start()},$w.prototype.destroy=function(){this.core.eventProcessor.off("queue",this.handleTrackEventTrigger)},$w),zw=(M.createRendererScript=function(e){var t=document.createElement("script");return t.type="text/javascript",t.async=!0,t.src=e,t},M.waitForLoad=function(o){return new Promise(function(e,t){function r(){o.removeEventListener("error",i),o.removeEventListener("load",n)}var n=function(){r(),e(o)},i=function(e){r(),t(e.message)};o.addEventListener("load",n),o.addEventListener("error",i)})},M.waitForRendererScript=function(r){return le(this,void 0,void 0,function(){var t;return fe(this,function(e){return window.HackleIAMRenderer?[2]:(t=M.createRendererScript(r),document.head.appendChild(t),[2,M.waitForLoad(t)])})})},M.getBrowserLang=function(){return(window.navigator.language||window.navigator.languages[0]).split("-")[0]},M.prototype.initialize=function(){this.addListeners()},M.prototype.destroy=function(){this.removeListeners(),this.destroyActive()},M.prototype.addListeners=function(){this.triggerManager.on("campaign",this.handleTriggerMessage),window.addEventListener(M.HACKLE_IAM_EVENT_TYPE,this.handleIAMEvent)},M.prototype.removeListeners=function(){this.triggerManager.off("campaign",this.handleTriggerMessage),window.removeEventListener(M.HACKLE_IAM_EVENT_TYPE,this.handleIAMEvent)},M.prototype.addContainer=function(){var e;return this.container||((e=document.createElement("div")).classList.add(M.CONTAINER_CLASS_NAME),this.container=e),this.container.parentNode||document.body.appendChild(this.container),this.container},M.prototype.removeContainer=function(){var e;this.container&&(null!=(e=this.container.parentNode)&&e.removeChild(this.container),this.container=null)},M.prototype.destroyActive=function(){var e;null!=(e=this.active)&&e.renderer.destroy(),this.active=null,this.removeContainer()},M.prototype.markMessageHidden=function(e,t){this.storage.setItem("".concat(this.expirationStorageKey).concat(e),"".concat(t))},M.prototype.checkMessageHidden=function(e,t){e=this.storage.getItem("".concat(this.expirationStorageKey).concat(e.key));if(e){e=Number.parseInt(e,10);if(!Number.isNaN(e))return t<=e}return!1},M.HOUR_IN_MS=36e5,M.HIDE_EXPIRATION=24*M.HOUR_IN_MS,M.RENDERER_SCRIPT="https://static.hackle.io/sdk/iam-renderer/latest/iam-renderer.js",M.NAMESPACE="hackle-iam",M.HACKLE_IAM_EVENT_TYPE=M.NAMESPACE,M.CONTAINER_CLASS_NAME=M.NAMESPACE,M),Bw=de.log,qw=null,Yw={debug:!1,log_disabled:!1,auto_track_page_view:!0,pollingIntervalMillis:-1,exposureEventDedupIntervalMillis:-1,sessionTimeoutMillis:18e5,autoOpenDevTool:!1,sdkUrl:"https://client-sdk.hackle.io",eventUrl:"https://event.hackle.io",monitoringUrl:"https://monitoring.hackle.io",rendererScriptUrl:zw.RENDERER_SCRIPT,SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.15.3"};function M(e,t,r,n,i){void 0===i&&(i={rendererScriptUrl:M.RENDERER_SCRIPT});var a=this;this.triggerManager=e,this.storage=t,this.expirationStorageKey=r,this.client=n,this.options=i,this.opening=!1,this.container=null,this.active=null,this.handleIAMEvent=function(e){var t,r;e instanceof CustomEvent&&e.type===M.HACKLE_IAM_EVENT_TYPE&&(e=e.detail,a.client.track(e),"$in_app_close"!==e.key&&"$in_app_hidden"!==e.key&&("$in_app_action"!==e.key||"CLOSE"!==e.properties.action_type&&"HIDDEN"!==e.properties.action_type)||(("$in_app_hidden"===e.key||"$in_app_action"===e.key&&"HIDDEN"===e.properties.action_type)&&(t=M.HIDE_EXPIRATION,"$in_app_action"===e.key&&"HIDDEN"===e.properties.action_type&&("number"==typeof(r=e.properties.action_value)?t=r*M.HOUR_IN_MS:"string"==typeof r&&(r=Number.parseInt(r,10),Number.isNaN(r)||(t=r*M.HOUR_IN_MS))),a.markMessageHidden(e.properties.in_app_message_key,Date.now()+t)),a.destroyActive()))},this.handleTriggerMessage=function(e){var o=e.message,s=e.timestamp;return le(a,void 0,void 0,function(){var t,r,n,i;return fe(this,function(e){switch(e.label){case 0:if(this.active)return[2];if(this.opening)return[2];if(this.checkMessageHidden(o,s))return[2];this.opening=!0,t=null,e.label=1;case 1:return e.trys.push([1,4,,5]),[4,M.waitForRendererScript(this.options.rendererScriptUrl)];case 2:return e.sent(),(r=this.addContainer()).style.display="none",r.classList.add("".concat(M.CONTAINER_CLASS_NAME,"--loading")),n=M.getBrowserLang(),n=o.messageContext.getMessageForLang(n)||o.messageContext.getDefaultMessage(),i=window.HackleIAMRenderer,[4,(t=new i.HackleIAMRenderer(r)).render({message:o.toJSON(),contextMessage:n})];case 3:return e.sent(),this.active={message:o,renderer:t},r.classList.remove("".concat(M.CONTAINER_CLASS_NAME,"--loading")),r.style.display="block",[3,5];case 4:return e.sent(),null!=t&&t.destroy(),this.destroyActive(),[3,5];case 5:return this.opening=!1,[2]}})})},this.initialize()}function $w(e){var r=Uw.call(this)||this;return r.core=e,r.handleTrackEventTrigger=function(e){var t;Br.isTrack(e)&&(t=r.core.trackInAppMessage(e)).value&&(t=r.core.inAppMessage(t.value.key,e.user,e.timestamp)).value&&r.emit("campaign",{message:t.value,timestamp:e.timestamp})},r.initialize(),r}function Jw(){}function Xw(e,t,r,n,i){this.core=e,this.userManager=t,this.userResolver=r,this.abOverrideStorage=n,this.ffOverrideStorage=i}function Ww(e,t,r){void 0===r&&(r=4096);var n=this;this.delegate=e,this.listKey=t,this.encodedListCharLen=6,this.resolveMaxLength=function(e){e-=n.encodedListCharLen;return e<0?0:e},this.maxLength=this.resolveMaxLength(r)}function Qw(e,t){this.delegate=e,this.transform=t}function Zw(e,t){this.sessionTimeoutMillis=e,this.storage=t,this.sessionListeners=[],this._currentSessionId=null,this._lastEventTime=null,this.loadSession(),this.loadLastEventTime()}function eT(e,t){this.storage=e,this.hackleDeviceId=t,this.userListeners=[],this.defaultUser={deviceId:this.hackleDeviceId},this._currentUser=this.defaultUser,this.initialize()}function tT(e,t,r){this.storage=e,this.storageKey=t,this.maxSize=r}function rT(e,t){t=y(y({},Yw),t);if(de.initCounter(function(e){return Lr.counter("log",{level:e})}),t.log_disabled?de.setLogLevel(pe.DISABLE):t.debug&&de.setLogLevel(pe.DEBUG),Bw.debug("sdkKey : "+e),e||Bw.error("SDK Key must not be null"),qw)return Bw.debug("use already exists hackleClient"),qw;var r=!1,n=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&Bw.debug("support sendBeacon API"),new fn(e,_e,{dispatchUrl:Kw.clientDispatch(t.eventUrl),beaconDispatchUrl:Kw.beaconDispatch(t.eventUrl,e),useBeacon:r,headers:((n={})[ye]=t.SDK_NAME_HEADER,n["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,n)})),i=-1,i=(void 0!==t.pollingIntervalMillis&&"number"==typeof t.pollingIntervalMillis&&0<t.pollingIntervalMillis&&(i=Math.max(t.pollingIntervalMillis,3e4)),new dn(e,_e,{fetchUrl:Kw.clientFetch(t.sdkUrl,e),updateInterval:i,headers:((i={})[ye]=t.SDK_NAME_HEADER,i["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,i)})),o=-1,s=(void 0!==t.exposureEventDedupIntervalMillis&&"number"==typeof t.exposureEventDedupIntervalMillis&&-1!==t.exposureEventDedupIntervalMillis&&(o=t.exposureEventDedupIntervalMillis<1e3||36e5<t.exposureEventDedupIntervalMillis?(Bw.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):t.exposureEventDedupIntervalMillis),new Dw(window.localStorage,"".concat("hackle-repository-storage","_").concat(e),100)),a=new Lw(jw.postfix(mn,"_".concat(e)),Cn()),u=new Fw(t.sessionTimeoutMillis,jw.postfix(mn,"_".concat(e.slice(8)))),o=(a.addListener(u),new Xg(o)),c=new Jg(n,100,500,s,o,u,a),n=new u0(new Vw(mn,"".concat("hackle-manual-override_ab","_").concat(e.slice(0,8)))),s=new u0(new Vw(mn,"".concat("hackle-manual-override_ff","_").concat(e.slice(0,8)))),o=rE.create(i,c,[n,s]),i=new Gw(o),l=new En(a),n=new Hw(o,a,l,n,s),s=(null==(s=t.devTool)?void 0:s.userExplorer)&&"function"==typeof(null==(s=t.devTool)?void 0:s.userExplorer),s=t.devTool&&s?{manager:t.devTool,userExplorer:n}:void 0,f=new zr(o,l,u,a,s);new zw(i,window.localStorage,"hackle-iam-hide:",f,{rendererScriptUrl:t.rendererScriptUrl});function p(){c.drainRepository()}var d,h,n=new $g(l,o),i=(u.addListener(n),qw=f,t.auto_track_page_view&&(h=function(){return d.trackPageView({user:{id:Cn()}})},(d=f).onReady(function(){function t(e){if("function"==typeof window.Event)return new Event(e);var t=!1,r=!1,n=void 0,i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t,r,n),i}h();try{history.pushState=(n=history.pushState,function(){try{var e=n.apply(this,arguments);return window.dispatchEvent(t("locationchange")),e}catch(e){if(e instanceof Error)Bw.error(e);else try{Bw.error(e)}catch(e){}}}),history.replaceState=(r=history.replaceState,function(){try{var e=r.apply(this,arguments);return window.dispatchEvent(t("locationchange")),e}catch(e){if(e instanceof Error)Bw.error(e);else try{Bw.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(t("locationchange"))}catch(e){if(e instanceof Error)Bw.error(e);else try{Bw.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{h()}catch(e){if(e instanceof Error)Bw.error(e);else try{Bw.error(e)}catch(e){}}})}catch(t){if(t instanceof Error)Bw.error(t);else try{Bw.error(t)}catch(t){}}var r,n})),t.autoOpenDevTool&&(t.devTool?f.showUserExplorer():Bw.error("DevTool is not provided")),(new iE).install(o,l),new Fr(t.monitoringUrl,6e4,_e,((s={})[ye]=t.SDK_NAME_HEADER,s["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,s["X-HACKLE-SDK-KEY"]=e,s),r));return document.addEventListener("visibilitychange",function(){document.hidden||p()}),window.addEventListener("pageshow",p),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){xn(),u.updateLastEventTime((new Date).getTime()),f.close(),Lr.globalRegistry.close()}),Lr.addRegistry(i),f.onReady(function(){u.startNewSessionIfNeeded(a.currentUser,(new Date).getTime())}),f}var N={createInstance:rT,getUserId:Cn,setUserId:kn,removeUserId:xn,Logger:de},nT=(l.Bucket=t.Bucket=He,l.Container=t.Container=Qe,l.ContainerGroup=t.ContainerGroup=Ze,l.CoreVersion=t.CoreVersion=Nt,l.Decision=t.Decision=De,l.DecisionReason=t.DecisionReason=s,l.EmptyHackleRemoteConfig=t.EmptyHackleRemoteConfig=oe,l.EmptyParameterConfig=t.EmptyParameterConfig=Fe,l.EventType=t.EventType=Me,l.Experiment=t.Experiment=je,l.FeatureFlagDecision=t.FeatureFlagDecision=Le,l.IAM=t.IAM=Kt,l.IAMContext=t.IAMContext=Ht,l.IAMDateRange=t.IAMDateRange=Lt,l.IAMEventTriggerRule=t.IAMEventTriggerRule=Ft,l.IAMTargetContext=t.IAMTargetContext=Vt,l.IAMTargetRuleOverride=t.IAMTargetRuleOverride=jt,l.IdentifierType=t.IdentifierType=Ge,l.IdentifiersBuilder=t.IdentifiersBuilder=ze,l.InAppMessageDecision=t.InAppMessageDecision=xe,l.Logger=t.Logger=de,l.MATCH_OPERATORS=t.MATCH_OPERATORS=xt,l.MATCH_TYPES=t.MATCH_TYPES=Ct,l.MATCH_VALUE_TYPES=t.MATCH_VALUE_TYPES=kt,l.MetaVersion=t.MetaVersion=At,l.ParameterConfiguration=t.ParameterConfiguration=et,l.RemoteConfigDecision=t.RemoteConfigDecision=Ue,l.RemoteConfigParameter=t.RemoteConfigParameter=tt,l.RemoteConfigParameterValue=t.RemoteConfigParameterValue=nt,l.RemoteConfigTargetRule=t.RemoteConfigTargetRule=rt,l.SEGMENT_TYPES=t.SEGMENT_TYPES=Ut,l.Segment=t.Segment=We,l.Slot=t.Slot=Ke,l.TARGET_ACTION_TYPES=t.TARGET_ACTION_TYPES=Mt,l.TARGET_KEY_TYPES=t.TARGET_KEY_TYPES=Pt,l.Target=t.Target=Be,l.TargetAction=t.TargetAction=Je,l.TargetCondition=t.TargetCondition=qe,l.TargetKey=t.TargetKey=Ye,l.TargetMatch=t.TargetMatch=$e,l.TargetRule=t.TargetRule=Xe,l.TargetingType=t.TargetingType=Dt,l.Variation=t.Variation=Ve,l.Version=t.Version=It,se=t.createInstance=rT,t.default=N,l.getUserId=t.getUserId=Cn,l.removeUserId=t.removeUserId=xn,l.sanitizeUser=t.sanitizeUser=Pe,l.setUserId=t.setUserId=kn,function(e,t){return(nT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)});var iT=function(){return(iT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function oT(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}sT.prototype.on=function(e,t){this.listeners[e]=(this.listeners[e]||[]).concat(t)},sT.prototype.off=function(e,t){this.listeners[e]=(this.listeners[e]||[]).filter(function(e){return e!==t})},sT.prototype.emit=function(e,t){(this.listeners[e]||[]).forEach(function(e){e(t)})};ji=sT;function sT(){this.listeners={}}uT.arePropertiesEqual=function(e,t){var r=uT.coerceUnknownToProperties(e),n=uT.coerceUnknownToProperties(t),e=Object.keys(r),t=Object.keys(n);return e.length===t.length&&e.every(function(e){return e in n&&r[e]===n[e]})},uT.coerceUnknownToProperties=function(e){return"object"==typeof e&&null!==e?e:{}};var aT=uT;function uT(){}lT.isUserEqual=function(e,t){return(null==e?void 0:e.id)===(null==t?void 0:t.id)&&(null==e?void 0:e.deviceId)===(null==t?void 0:t.deviceId)&&(null==e?void 0:e.userId)===(null==t?void 0:t.userId)&&aT.arePropertiesEqual(null==e?void 0:e.properties,null==t?void 0:t.properties)&&aT.arePropertiesEqual(null==e?void 0:e.identifiers,null==t?void 0:t.identifiers)};var cT=lT;function lT(){}var fT=function(n){var e=i,t=n;if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}function i(e,t){var r=n.call(this)||this;return r._currentUser=null,r.client=se(e,iT(iT({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.15.3"})),null!=t&&t.devTool&&null!=t&&t.autoOpenDevTool&&"undefined"!=typeof window&&r.showUserExplorer(),r}return nT(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r),i.prototype.getUser=function(){return this.client.getUser()},i.prototype.setUser=function(e){this.client.setUser(e),this.emitUpdatedUser(this.getUser())},i.prototype.setUserId=function(e){this.client.setUserId(e),this.emitUpdatedUser(this.getUser())},i.prototype.setDeviceId=function(e){this.client.setDeviceId(e),this.emitUpdatedUser(this.getUser())},i.prototype.setUserProperty=function(e,t){this.client.setUserProperty(e,t),this.emitUpdatedUser(this.getUser())},i.prototype.resetUser=function(){this.client.resetUser(),this.emitUpdatedUser(this.getUser())},i.prototype.variation=function(e,t,r){return this.client.variation(e,t||void 0,r)},i.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t||void 0,r)},i.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t||void 0)},i.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t||void 0)},i.prototype.track=function(e,t){this.client.track(e,t||void 0)},i.prototype.trackPageView=function(e){this.client.trackPageView(iT(iT({},e),{user:(null==e?void 0:e.user)||void 0}))},i.prototype.remoteConfig=function(e){return this.client.remoteConfig(e||void 0)},i.prototype.onReady=function(e,t){this.client.onReady(e,t)},i.prototype.onInitialized=function(e){return this.client.onInitialized(e)},i.prototype.emitUpdatedUser=function(e){cT.isUserEqual(this._currentUser,e)||this.emit("user-updated",e),this._currentUser=e},i.prototype.showUserExplorer=function(){this.client.showUserExplorer()},i.prototype.hideUserExplorer=function(){this.client.hideUserExplorer()},i}(ji);var P={exports:{}},b={},pT=Object.getOwnPropertySymbols,dT=Object.prototype.hasOwnProperty,hT=Object.prototype.propertyIsEnumerable;var o=function(){try{if(!Object.assign)return;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},n)).join("")?void 0:1}catch(e){return}}()?Object.assign:function(e,t){for(var r,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var o in r=Object(arguments[i]))dT.call(r,o)&&(n[o]=r[o]);if(pT)for(var s=pT(r),a=0;a<s.length;a++)hT.call(r,s[a])&&(n[s[a]]=r[s[a]])}return n},yT=o,A="function"==typeof Symbol&&Symbol.for,vT=A?Symbol.for("react.element"):60103,mT=A?Symbol.for("react.portal"):60106,yi=A?Symbol.for("react.fragment"):60107,gT=A?Symbol.for("react.strict_mode"):60108,Zn=A?Symbol.for("react.profiler"):60114,ET=A?Symbol.for("react.provider"):60109,wT=A?Symbol.for("react.context"):60110,TT=A?Symbol.for("react.forward_ref"):60112,sf=A?Symbol.for("react.suspense"):60113,bT=A?Symbol.for("react.memo"):60115,_T=A?Symbol.for("react.lazy"):60116,OT="function"==typeof Symbol&&Symbol.iterator;function RT(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ST={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},IT={};function NT(e,t,r){this.props=e,this.context=t,this.refs=IT,this.updater=r||ST}function AT(){}function CT(e,t,r){this.props=e,this.context=t,this.refs=IT,this.updater=r||ST}NT.prototype.isReactComponent={},NT.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(RT(85));this.updater.enqueueSetState(this,e,t,"setState")},NT.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},AT.prototype=NT.prototype;var Zo=CT.prototype=new AT,kT=(Zo.constructor=CT,yT(Zo,NT.prototype),Zo.isPureReactComponent=!0,{current:null}),xT=Object.prototype.hasOwnProperty,MT={key:!0,ref:!0,__self:!0,__source:!0};function PT(e,t,r){var n,i={},o=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)xT.call(t,n)&&!MT.hasOwnProperty(n)&&(i[n]=t[n]);var a=arguments.length-2;if(1===a)i.children=r;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(n in a=e.defaultProps)void 0===i[n]&&(i[n]=a[n]);return{$$typeof:vT,type:e,key:o,ref:s,props:i,_owner:kT.current}}function UT(e){return"object"==typeof e&&null!==e&&e.$$typeof===vT}var DT=/\/+/g,LT=[];function FT(e,t,r,n){var i;return LT.length?((i=LT.pop()).result=e,i.keyPrefix=t,i.func=r,i.context=n,i.count=0,i):{result:e,keyPrefix:t,func:r,context:n,count:0}}function jT(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,LT.length<10&<.push(e)}function VT(e,t,r){return null==e?0:function e(t,r,n,i){var o=!1;if(null===(t="undefined"!=(a=typeof t)&&"boolean"!==a?t:null))o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case vT:case mT:o=!0}}if(o)return n(i,t,""===r?"."+HT(t,0):r),1;if(o=0,r=""===r?".":r+":",Array.isArray(t))for(var s=0;s<t.length;s++){var a,u=r+HT(a=t[s],s);o+=e(a,u,n,i)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=OT&&t[OT]||t["@@iterator"])?u:null))for(t=u.call(t),s=0;!(a=t.next()).done;)o+=e(a=a.value,u=r+HT(a,s++),n,i);else if("object"===a)throw n=""+t,Error(RT(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return o}(e,"",t,r)}function HT(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=e.key,r={"=":"=0",":":"=2"},"$"+(""+e).replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var r}function KT(e,t){e.func.call(e.context,t,e.count++)}function GT(e,t,r){var n=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?zT(e,n,r,function(e){return e}):null!=e&&(UT(e)&&(t=i+(!(i=e).key||t&&t.key===e.key?"":(""+e.key).replace(DT,"$&/")+"/")+r,e={$$typeof:vT,type:i.type,key:t,ref:i.ref,props:i.props,_owner:i._owner}),n.push(e))}function zT(e,t,r,n,i){var o="";VT(e,GT,t=FT(t,o=null!=r?(""+r).replace(DT,"$&/")+"/":o,n,i)),jT(t)}var BT={current:null};function qT(){var e=BT.current;if(null===e)throw Error(RT(321));return e}var YT,$T,JT,h={ReactCurrentDispatcher:BT,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:kT,IsSomeRendererActing:{current:!1},assign:yT},x=(b.Children={map:function(e,t,r){if(null==e)return e;var n=[];return zT(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;VT(e,KT,t=FT(null,null,t,r)),jT(t)},count:function(e){return VT(e,function(){return null},null)},toArray:function(e){var t=[];return zT(e,t,null,function(e){return e}),t},only:function(e){if(UT(e))return e;throw Error(RT(143))}},b.Component=NT,b.Fragment=yi,b.Profiler=Zn,b.PureComponent=CT,b.StrictMode=gT,b.Suspense=sf,b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=h,b.cloneElement=function(e,t,r){if(null==e)throw Error(RT(267,e));var n=yT({},e.props),i=e.key,o=e.ref,s=e._owner;if(null!=t)for(a in void 0!==t.ref&&(o=t.ref,s=kT.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)xT.call(t,a)&&!MT.hasOwnProperty(a)&&(n[a]=(void 0===t[a]&&void 0!==u?u:t)[a]);var a=arguments.length-2;if(1===a)n.children=r;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];n.children=u}return{$$typeof:vT,type:e.type,key:i,ref:o,props:n,_owner:s}},b.createContext=function(e,t){return(e={$$typeof:wT,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:ET,_context:e},e.Consumer=e},b.createElement=PT,b.createFactory=function(e){var t=PT.bind(null,e);return t.type=e,t},b.createRef=function(){return{current:null}},b.forwardRef=function(e){return{$$typeof:TT,render:e}},b.isValidElement=UT,b.lazy=function(e){return{$$typeof:_T,_ctor:e,_status:-1,_result:null}},b.memo=function(e,t){return{$$typeof:bT,type:e,compare:void 0===t?null:t}},b.useCallback=function(e,t){return qT().useCallback(e,t)},b.useContext=function(e,t){return qT().useContext(e,t)},b.useDebugValue=function(){},b.useEffect=function(e,t){return qT().useEffect(e,t)},b.useImperativeHandle=function(e,t,r){return qT().useImperativeHandle(e,t,r)},b.useLayoutEffect=function(e,t){return qT().useLayoutEffect(e,t)},b.useMemo=function(e,t){return qT().useMemo(e,t)},b.useReducer=function(e,t,r){return qT().useReducer(e,t,r)},b.useRef=function(e){return qT().useRef(e)},b.useState=function(e){return qT().useState(e)},b.version="16.14.0",{}),k=Function.call.bind(Object.prototype.hasOwnProperty),XT=function(){};function WT(e,t,r,n,i){if("production"!==production)for(var o in e)if(JT(e,o)){var s,a;try{if("function"!=typeof e[o])throw(a=Error((n||"React class")+": "+r+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.")).name="Invariant Violation",a;s=e[o](t,o,n,r,null,YT)}catch(e){s=e}!s||s instanceof Error||XT((n||"React class")+": type specification of "+r+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in $T)&&($T[s.message]=!0,o=i?i():"",XT("Failed "+r+" type: "+s.message+(null!=o?o:"")))}}if("production"!==production&&(YT="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",$T={},JT=k,XT=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),WT.resetWarningCache=function(){"production"!==production&&($T={})},"production"!==production){var QT=o,ZT=WT,w="function"==typeof Symbol&&Symbol.for,e1=w?Symbol.for("react.element"):60103,t1=w?Symbol.for("react.portal"):60106,r1=w?Symbol.for("react.fragment"):60107,n1=w?Symbol.for("react.strict_mode"):60108,i1=w?Symbol.for("react.profiler"):60114,o1=w?Symbol.for("react.provider"):60109,s1=w?Symbol.for("react.context"):60110,a1=w?Symbol.for("react.concurrent_mode"):60111,u1=w?Symbol.for("react.forward_ref"):60112,c1=w?Symbol.for("react.suspense"):60113,l1=w?Symbol.for("react.suspense_list"):60120,f1=w?Symbol.for("react.memo"):60115,p1=w?Symbol.for("react.lazy"):60116,d1=w?Symbol.for("react.block"):60121,h1=w?Symbol.for("react.fundamental"):60117,y1=w?Symbol.for("react.responder"):60118,v1=w?Symbol.for("react.scope"):60119,m1="function"==typeof Symbol&&Symbol.iterator,g1="@@iterator";function E1(e){if(null===e||"object"!=typeof e)return null;e=m1&&e[m1]||e[g1];return"function"==typeof e?e:null}var w1={current:null},T1={current:null},b1=/^(.*)[\\\/]/,_1=1;function O1(e){if(null==e)return null;if("number"==typeof e.tag&&U("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case r1:return"Fragment";case t1:return"Portal";case i1:return"Profiler";case n1:return"StrictMode";case c1:return"Suspense";case l1:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s1:return"Context.Consumer";case o1:return"Context.Provider";case u1:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case f1:return O1(e.type);case d1:return O1(e.render);case p1:r=(t=e)._status===_1?t._result:null;if(r)return O1(r)}var t,r;return null}var R1={},S1=null;function I1(e){S1=e}R1.getCurrentStack=null,R1.getStackAddendum=function(){var e,t,r,n,i,o="",s=(S1&&(e=O1(S1.type),r=S1._owner,o+=(e=e,t=S1._source,r=r&&O1(r.type),i="",t?(n=(s=t.fileName).replace(b1,""),i=" (at "+(n=/^index\./.test(n)&&(s=s.match(b1))&&(s=s[1])?s.replace(b1,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(i=" (created by "+r+")"),"\n in "+(e||"Unknown")+i)),R1.getCurrentStack);return s&&(o+=s()||""),o};var N1={ReactCurrentDispatcher:w1,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:T1,IsSomeRendererActing:{current:!1},assign:QT};function A1(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];C1("warn",e,r)}function U(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];C1("error",e,r)}function C1(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=N1.ReactDebugCurrentFrame.getStackAddendum())&&(t+="%s",r=r.concat([n]));var n=r.map(function(e){return""+e});n.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,n);try{var i=0,o="Warning: "+t.replace(/%s/g,function(){return r[i++]});throw new Error(o)}catch(e){}}QT(N1,{ReactDebugCurrentFrame:R1,ReactComponentTreeHook:{}});var k1={};function x1(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;k1[r]||(U("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),k1[r]=!0)}var M1={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){x1(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){x1(e,"replaceState")},enqueueSetState:function(e,t,r,n){x1(e,"setState")}},P1={};function U1(e,t,r){this.props=e,this.context=t,this.refs=P1,this.updater=r||M1}Object.freeze(P1),U1.prototype.isReactComponent={},U1.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},U1.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var D1,L1={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(D1 in L1)L1.hasOwnProperty(D1)&&!function(e,t){Object.defineProperty(U1.prototype,e,{get:function(){A1("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(D1,L1[D1]);function F1(){}function j1(e,t,r){this.props=e,this.context=t,this.refs=P1,this.updater=r||M1}F1.prototype=U1.prototype,(w=j1.prototype=new F1).constructor=j1,QT(w,U1.prototype),w.isPureReactComponent=!0;var V1,H1,K1=Object.prototype.hasOwnProperty,G1={key:!0,ref:!0,__self:!0,__source:!0};function z1(e){if(K1.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function B1(e){if(K1.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var q1={},Y1=function(e,t,r,n,i,o,s){e={$$typeof:e1,type:e,key:t,ref:r,props:s,_owner:o,_store:{}};return Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(e,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(e,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e};function $1(e,t,r){var n,i={},o=null,s=null,a=null,u=null;if(null!=t)for(n in z1(t)&&(s=t.ref,"string"==typeof(c=t).ref&&T1.current&&c.__self&&T1.current.stateNode!==c.__self&&(f=O1(T1.current.type),q1[f]||(U('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',O1(T1.current.type),c.ref),q1[f]=!0))),B1(t)&&(o=""+t.key),a=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)K1.call(t,n)&&!G1.hasOwnProperty(n)&&(i[n]=t[n]);var c,l,f,p,d=arguments.length-2;if(1==d)i.children=r;else if(1<d){for(var h=Array(d),y=0;y<d;y++)h[y]=arguments[y+2];Object.freeze&&Object.freeze(h),i.children=h}if(e&&e.defaultProps){var v=e.defaultProps;for(n in v)void 0===i[n]&&(i[n]=v[n])}function m(){H1||(H1=!0,U("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",l))}function g(){V1||(V1=!0,U("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",p))}return(o||s)&&(c="function"==typeof e?e.displayName||e.name||"Unknown":e,o&&(f=i,p=c,g.isReactWarning=!0,Object.defineProperty(f,"key",{get:g,configurable:!0})),s&&(r=i,l=c,m.isReactWarning=!0,Object.defineProperty(r,"ref",{get:m,configurable:!0}))),Y1(e,o,s,a,u,T1.current,i)}function J1(e){return"object"==typeof e&&null!==e&&e.$$typeof===e1}var X1=".",W1=":",Q1=!1,Z1=/\/+/g;function eb(e){return(""+e).replace(Z1,"$&/")}var tb=10,rb=[];function nb(e,t,r,n){var i;return rb.length?((i=rb.pop()).result=e,i.keyPrefix=t,i.func=r,i.context=n,i.count=0,i):{result:e,keyPrefix:t,func:r,context:n,count:0}}function ib(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,rb.length<tb&&rb.push(e)}function ob(e,t,r){return null==e?0:function e(t,r,n,i){var o,s=typeof t,a=!1;if(null===(t="undefined"!=s&&"boolean"!=s?t:null))a=!0;else switch(s){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case e1:case t1:a=!0}}if(a)return n(i,t,""===r?X1+sb(t,0):r),1;var u=0,c=""===r?X1:r+W1;if(Array.isArray(t))for(var l=0;l<t.length;l++)u+=e(o=t[l],c+sb(o,l),n,i);else if("function"==typeof(r=E1(t))){r===t.entries&&(Q1||A1("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),Q1=!0);for(var f,p=r.call(t),d=0;!(f=p.next()).done;)u+=e(o=f.value,c+sb(o,d++),n,i)}else if("object"==s)throw r="",r=" If you meant to render a collection of children, use an array instead."+R1.getStackAddendum(),s=""+t,Error("Objects are not valid as a React child (found: "+("[object Object]"==s?"object with keys {"+Object.keys(t).join(", ")+"}":s)+")."+r);return u}(e,"",t,r)}function sb(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=e.key,r={"=":"=0",":":"=2"},"$"+(""+e).replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var r}function ab(e,t,r){var n=e.func,i=e.context;n.call(i,t,e.count++)}function ub(e,t,r){var n=e.result,i=e.keyPrefix,o=e.func,s=e.context,o=o.call(s,t,e.count++);Array.isArray(o)?cb(o,n,r,function(e){return e}):null!=o&&(J1(o)&&(e=i+(!(s=o).key||t&&t.key===o.key?"":eb(o.key)+"/")+r,o=Y1(s.type,e,s.ref,s._self,s._source,s._owner,s.props)),n.push(o))}function cb(e,t,r,n,i){var o="",t=nb(t,o=null!=r?eb(r)+"/":o,n,i);ob(e,ub,t),ib(t)}function lb(e){return"string"==typeof e||"function"==typeof e||e===r1||e===a1||e===i1||e===n1||e===c1||e===l1||"object"==typeof e&&null!==e&&(e.$$typeof===p1||e.$$typeof===f1||e.$$typeof===o1||e.$$typeof===s1||e.$$typeof===u1||e.$$typeof===h1||e.$$typeof===y1||e.$$typeof===v1||e.$$typeof===d1)}function fb(){var e=w1.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");return e}function pb(){if(T1.current){var e=O1(T1.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var db=!1,hb={};function yb(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=pb())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),hb[t=r]||(hb[t]=!0,r="",e&&e._owner&&e._owner!==T1.current&&(r=" It was passed a child from "+O1(e._owner.type)+"."),I1(e),U('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',t,r),I1(null)))}function vb(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];J1(n)&&yb(n,t)}else if(J1(e))e._store&&(e._store.validated=!0);else if(e){var i=E1(e);if("function"==typeof i&&i!==e.entries)for(var o,s=i.call(e);!(o=s.next()).done;)J1(o.value)&&yb(o.value,t)}}function mb(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=O1(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==u1&&t.$$typeof!==f1)return;r=t.propTypes}r?(I1(e),ZT(r,e.props,"prop",n,R1.getStackAddendum),I1(null)):void 0===t.PropTypes||db||(db=!0,U("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||U("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function gb(e,t,r){var n,i=lb(e),t=(i||(n="",(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(n+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),n+=(null!=(t=t)&&void 0!==(t=t.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"")||pb(),null===e?s="null":Array.isArray(e)?s="array":void 0!==e&&e.$$typeof===e1?(s="<"+(O1(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,U("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,n)),$1.apply(this,arguments));if(null==t)return t;if(i)for(var o=2;o<arguments.length;o++)vb(arguments[o],e);if(e===r1){var s=t;I1(s);for(var a=Object.keys(s.props),u=0;u<a.length;u++){var c=a[u];if("children"!==c&&"key"!==c){U("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c);break}}null!==s.ref&&U("Invalid attribute `ref` supplied to `React.Fragment`."),I1(null)}else mb(t);return t}var Eb=!1;try{var wb=Object.freeze({}),Tb=new Map([[wb,null]]),bb=new Set([wb]);Tb.set(0,0),bb.add(0)}catch(e){}function _b(e,t,r){for(var n=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n,i,o=QT({},e.props),s=e.key,a=e.ref,u=e._self,c=e._source,l=e._owner;if(null!=t)for(n in z1(t)&&(a=t.ref,l=T1.current),B1(t)&&(s=""+t.key),e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)K1.call(t,n)&&!G1.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==i?o[n]=i[n]:o[n]=t[n]);var f=arguments.length-2;if(1==f)o.children=r;else if(1<f){for(var p=Array(f),d=0;d<f;d++)p[d]=arguments[d+2];o.children=p}return Y1(e.type,s,a,u,c,l,o)}.apply(this,arguments),i=2;i<arguments.length;i++)vb(arguments[i],n.type);return mb(n),n}function Ob(e){var t=gb.bind(null,e);return t.type=e,Eb||(Eb=!0,A1("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return A1("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}w=gb,x.Children={map:function(e,t,r){if(null==e)return e;var n=[];return cb(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=nb(null,null,t,r),ob(e,ab,t),ib(t)},count:function(e){return ob(e,function(){return null},null)},toArray:function(e){var t=[];return cb(e,t,null,function(e){return e}),t},only:function(e){if(J1(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},x.Component=U1,x.Fragment=r1,x.Profiler=i1,x.PureComponent=j1,x.StrictMode=n1,x.Suspense=c1,x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N1,x.cloneElement=_b,x.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&U("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:s1,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:o1,_context:r}),i=!1,t={$$typeof:s1,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return i||(i=!0,U("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,U("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}}}),r.Consumer=t,r._currentRenderer=null,r._currentRenderer2=null,r},x.createElement=w,x.createFactory=Ob,x.createRef=function(){var e={current:null};return Object.seal(e),e},x.forwardRef=function(e){return null!=e&&e.$$typeof===f1?U("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?U("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&U("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null==e||null==e.defaultProps&&null==e.propTypes||U("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:u1,render:e}},x.isValidElement=J1,x.lazy=function(e){var t,r,n={$$typeof:p1,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){U("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){U("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},x.memo=function(e,t){return lb(e)||U("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:f1,type:e,compare:void 0===t?null:t}},x.useCallback=function(e,t){return fb().useCallback(e,t)},x.useContext=function(e,t){var r,n=fb();return void 0!==t&&U("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context&&((r=e._context).Consumer===e?U("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&U("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},x.useDebugValue=function(e,t){return fb().useDebugValue(e,t)},x.useEffect=function(e,t){return fb().useEffect(e,t)},x.useImperativeHandle=function(e,t,r){return fb().useImperativeHandle(e,t,r)},x.useLayoutEffect=function(e,t){return fb().useLayoutEffect(e,t)},x.useMemo=function(e,t){return fb().useMemo(e,t)},x.useReducer=function(e,t,r){return fb().useReducer(e,t,r)},x.useRef=function(e){return fb().useRef(e)},x.useState=function(e){return fb().useState(e)},x.version="16.14.0"}"production"===production?P.exports=b:P.exports=x;var Rb=P.exports,Sb=P.exports.createContext({hackle:void 0,userVersion:0,initialized:!1}),Ti=Sb.Consumer,Ib=Sb.Provider;var Nb=l.Logger.log;function Ab(e,t){e=Cb(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function Cb(e,t){void 0===t&&(t="A");var r=P.exports.useContext(Sb),n=r.hackle,i=r.userVersion,o=r.initialized,s=P.exports.useCallback(function(){return o?(null==n?void 0:n.variationDetail(e))||l.Decision.of(t,l.DecisionReason.EXCEPTION):l.Decision.of(t,l.DecisionReason.SDK_NOT_READY)},[t,e,n,o]),r=oT(P.exports.useState(function(){return n?s():(Nb.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2),a=r[0],r=r[1],i={key:e,userVersion:i,initialized:o},u=oT(P.exports.useState(i),2),c=u[0],u=u[1];return Mb(c,i)||(u(i),r(s())),{isLoading:!o,decision:a}}function kb(e){e=xb(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function xb(e){var t=P.exports.useContext(Sb),r=t.hackle,n=t.userVersion,i=t.initialized,o=P.exports.useCallback(function(){return i?(null==r?void 0:r.featureFlagDetail(e))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION):l.FeatureFlagDecision.off(l.DecisionReason.SDK_NOT_READY)},[e,r,i]),t=oT(P.exports.useState(function(){return r?o():(Nb.error("HackleClient is not existed"),l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION))}),2),s=t[0],t=t[1],n={key:e,userVersion:n,initialized:i},a=oT(P.exports.useState(n),2),u=a[0],a=a[1];return Mb(u,n)||(a(n),t(o())),{isLoading:!i,decision:s}}function Mb(e,t){return e.initialized===t.initialized&&e.key===t.key&&e.userVersion===t.userVersion}function Pb(e){var t,r=e.experimentKey,e=e.children,n=(r=Ab(r)).isLoading,i=r.variation;return n?null:e&&"function"==typeof e?e(i):(P.exports.Children.forEach(e,function(e){P.exports.isValidElement(e)&&(e.props.variation?i===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?P.exports.cloneElement(t,{variation:i}):null)}function Ub(e){return e.variation,e=e.children,P.exports.createElement(P.exports.Fragment,null,e)}function Db(e){var t=(r=kb(e.featureKey)).isLoading,r=r.isOn;return t?null:Rb.createElement(Rb.Fragment,null,e.children(r))}l.HackleContext=Sb,l.HackleContextConsumer=Ti,l.HackleContextProvider=Ib,l.HackleExperiment=Pb,l.HackleFeature=Db,l.HackleProvider=function(e){var t=e.hackleClient,r=e.user,n=void 0===(i=e.timeout)?3e3:i,i=void 0!==(i=e.supportSSR)&&i,e=e.children,o=oT(P.exports.useState({hackle:t,initialized:!1,userVersion:0}),2),s=o[0],a=o[1];return P.exports.useEffect(function(){null!=r&&t.setUser(r)},[r]),P.exports.useEffect(function(){function e(){a(function(e){return iT(iT({},e),{userVersion:e.userVersion+1})})}return t.on("user-updated",e),function(){t.off("user-updated",e)}},[t]),P.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){a(function(e){return iT(iT({},e),{initialized:!0})})},function(){a(function(e){return iT(iT({},e),{initialized:!0})})}).catch(function(){a(function(e){return iT(iT({},e),{initialized:!0})})})},[t]),i||s.initialized?Rb.createElement(Ib,{value:s},e):null},l.HackleVariation=Ub,l.createInstance=function(e,t){return new fT(e,t)},l.useFeature=function(e){var t=(n=P.exports.useContext(Sb)).hackle,r=n.userVersion,n=n.initialized,i=P.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e))||!1},[e,t,n]),o=(s=oT(P.exports.useState(function(){return t?i():("undefined"!=typeof window&&Nb.error("HackleClient is not existed"),!1)}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=oT(P.exports.useState(r),2))[0],n=n[1];return Mb(a,r)||(n(r),s(i())),o},l.useFeatureFlagDetail=function(e){var t=(n=P.exports.useContext(Sb)).hackle,r=n.userVersion,n=n.initialized,i=P.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION)},[e,t,n]),o=(s=oT(P.exports.useState(function(){return t?i():("undefined"!=typeof window&&Nb.error("HackleClient is not existed"),l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION))}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=oT(P.exports.useState(r),2))[0],n=n[1];return Mb(a,r)||(n(r),s(i())),o},l.useLoadableFeature=kb,l.useLoadableFeatureDetail=xb,l.useLoadableRemoteConfig=function(){var e=(o=P.exports.useContext(Sb)).hackle,t=o.userVersion,r=o.initialized,n=P.exports.useCallback(function(){return r&&(null==e?void 0:e.remoteConfig())||new l.EmptyHackleRemoteConfig},[e,r]),i=(o=oT(P.exports.useState(function(){return e||Nb.error("HackleClient is not existed"),n()}),2))[0],o=o[1],t={userVersion:t,initialized:r},s=(a=oT(P.exports.useState(t),2))[0],a=a[1];return Mb(s,t)||(a(t),o(n())),{isLoading:!r,remoteConfig:i}},l.useLoadableVariation=Ab,l.useLoadableVariationDetail=Cb,l.useRemoteConfig=function(){var e=(r=P.exports.useContext(Sb)).hackle,t=r.userVersion,r=r.initialized,n=P.exports.useCallback(function(){return(null==e?void 0:e.remoteConfig())||new l.EmptyHackleRemoteConfig},[e,r]),i=(o=oT(P.exports.useState(function(){return e||Nb.error("HackleClient is not existed"),n()}),2))[0],o=o[1],t={userVersion:t,initialized:r},s=(r=oT(P.exports.useState(t),2))[0],r=r[1];return Mb(s,t)||(r(t),o(n())),i},l.useTrack=function(){var t=P.exports.useContext(Sb).hackle;return t?function(e){return null==t?void 0:t.track(e)}:(Nb.error("HackleClient is not existed"),function(){})},l.useVariation=function(e,t){void 0===t&&(t="A");var r=(a=P.exports.useContext(Sb)).hackle,n=a.userVersion,i=a.initialized,o=P.exports.useCallback(function(){return i&&(null==r?void 0:r.variation(e))||t},[t,e,r,i]),s=(a=oT(P.exports.useState(function(){return r?o():("undefined"!=typeof window&&Nb.error("HackleClient is not existed"),t)}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:i},u=(c=oT(P.exports.useState(n),2))[0],c=c[1];return Mb(u,n)||(c(n),a(o())),s},l.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(i=P.exports.useContext(Sb)).hackle,n=i.userVersion,i=i.initialized,o=P.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e))||l.Decision.of(t,l.DecisionReason.EXCEPTION)},[t,e,r,i]),s=(a=oT(P.exports.useState(function(){return r?o():("undefined"!=typeof window&&Nb.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:i},u=(i=oT(P.exports.useState(n),2))[0],i=i[1];return Mb(u,n)||(i(n),a(o())),s},Object.defineProperty(l,"__esModule",{value:!0})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hackler/react-sdk",
|
|
3
|
-
"version": "11.15.
|
|
3
|
+
"version": "11.15.3",
|
|
4
4
|
"description": "React SDK for Hackle",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Hackle",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"url": "https://github.com/hackle-io/hackle-javascript-sdk/issues"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@hackler/javascript-sdk": "11.15.
|
|
42
|
+
"@hackler/javascript-sdk": "11.15.3"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.8.0"
|