@hackler/react-sdk 11.11.0 → 11.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/config.d.ts +1 -1
- 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/config.d.ts
CHANGED
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={},j=new Uint8Array(16);function F(){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(j);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,z,G=[],B=0;B<256;++B)G.push((B+256).toString(16).substr(1));function q(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,e=(G[e[t+0]]+G[e[t+1]]+G[e[t+2]]+G[e[t+3]]+"-"+G[e[t+4]]+G[e[t+5]]+"-"+G[e[t+6]]+G[e[t+7]]+"-"+G[e[t+8]]+G[e[t+9]]+"-"+G[e[t+10]]+G[e[t+11]]+G[e[t+12]]+G[e[t+13]]+G[e[t+14]]+G[e[t+15]]).toLowerCase();if(H(e))return e;throw TypeError("Stringified UUID is invalid")}var $=0,X=0;function Y(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 W(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?Y(t):t).length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var o=new Uint8Array(16+e.length);if(o.set(t),o.set(e,t.length),(o=a(o))[6]=15&o[6]|s,o[8]=63&o[8]|128,r){n=n||0;for(var i=0;i<16;++i)r[n+i]=o[i];return r}return q(o)}try{t.name=e}catch(e){}return t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t}function J(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,o,i){return Q((t=Q(Q(t,e),Q(n,i)))<<o|t>>>32-o,r)}function ee(e,t,r,n,o,i,s){return Z(t&r|~t&n,e,t,o,i,s)}function te(e,t,r,n,o,i,s){return Z(t&n|r&~n,e,t,o,i,s)}function re(e,t,r,n,o,i,s){return Z(t^r^n,e,t,o,i,s)}function ne(e,t,r,n,o,i,s){return Z(r^(t|~n),e,t,o,i,s)}var r=W("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[J(t)-1]=t;for(var r=1732584193,n=-271733879,o=-1732584194,i=271733878,s=0;s<e.length;s+=16){var a=r,u=n,c=o,l=i;r=ee(r,n,o,i,e[s],7,-680876936),i=ee(i,r,n,o,e[s+1],12,-389564586),o=ee(o,i,r,n,e[s+2],17,606105819),n=ee(n,o,i,r,e[s+3],22,-1044525330),r=ee(r,n,o,i,e[s+4],7,-176418897),i=ee(i,r,n,o,e[s+5],12,1200080426),o=ee(o,i,r,n,e[s+6],17,-1473231341),n=ee(n,o,i,r,e[s+7],22,-45705983),r=ee(r,n,o,i,e[s+8],7,1770035416),i=ee(i,r,n,o,e[s+9],12,-1958414417),o=ee(o,i,r,n,e[s+10],17,-42063),n=ee(n,o,i,r,e[s+11],22,-1990404162),r=ee(r,n,o,i,e[s+12],7,1804603682),i=ee(i,r,n,o,e[s+13],12,-40341101),o=ee(o,i,r,n,e[s+14],17,-1502002290),n=ee(n,o,i,r,e[s+15],22,1236535329),r=te(r,n,o,i,e[s+1],5,-165796510),i=te(i,r,n,o,e[s+6],9,-1069501632),o=te(o,i,r,n,e[s+11],14,643717713),n=te(n,o,i,r,e[s],20,-373897302),r=te(r,n,o,i,e[s+5],5,-701558691),i=te(i,r,n,o,e[s+10],9,38016083),o=te(o,i,r,n,e[s+15],14,-660478335),n=te(n,o,i,r,e[s+4],20,-405537848),r=te(r,n,o,i,e[s+9],5,568446438),i=te(i,r,n,o,e[s+14],9,-1019803690),o=te(o,i,r,n,e[s+3],14,-187363961),n=te(n,o,i,r,e[s+8],20,1163531501),r=te(r,n,o,i,e[s+13],5,-1444681467),i=te(i,r,n,o,e[s+2],9,-51403784),o=te(o,i,r,n,e[s+7],14,1735328473),n=te(n,o,i,r,e[s+12],20,-1926607734),r=re(r,n,o,i,e[s+5],4,-378558),i=re(i,r,n,o,e[s+8],11,-2022574463),o=re(o,i,r,n,e[s+11],16,1839030562),n=re(n,o,i,r,e[s+14],23,-35309556),r=re(r,n,o,i,e[s+1],4,-1530992060),i=re(i,r,n,o,e[s+4],11,1272893353),o=re(o,i,r,n,e[s+7],16,-155497632),n=re(n,o,i,r,e[s+10],23,-1094730640),r=re(r,n,o,i,e[s+13],4,681279174),i=re(i,r,n,o,e[s],11,-358537222),o=re(o,i,r,n,e[s+3],16,-722521979),n=re(n,o,i,r,e[s+6],23,76029189),r=re(r,n,o,i,e[s+9],4,-640364487),i=re(i,r,n,o,e[s+12],11,-421815835),o=re(o,i,r,n,e[s+15],16,530742520),n=re(n,o,i,r,e[s+2],23,-995338651),r=ne(r,n,o,i,e[s],6,-198630844),i=ne(i,r,n,o,e[s+7],10,1126891415),o=ne(o,i,r,n,e[s+14],15,-1416354905),n=ne(n,o,i,r,e[s+5],21,-57434055),r=ne(r,n,o,i,e[s+12],6,1700485571),i=ne(i,r,n,o,e[s+3],10,-1894986606),o=ne(o,i,r,n,e[s+10],15,-1051523),n=ne(n,o,i,r,e[s+1],21,-2054922799),r=ne(r,n,o,i,e[s+8],6,1873313359),i=ne(i,r,n,o,e[s+15],10,-30611744),o=ne(o,i,r,n,e[s+6],15,-1560198380),n=ne(n,o,i,r,e[s+13],21,1309151649),r=ne(r,n,o,i,e[s+4],6,-145523070),i=ne(i,r,n,o,e[s+11],10,-1120210379),o=ne(o,i,r,n,e[s+2],15,718787259),n=ne(n,o,i,r,e[s+9],21,-343485551),r=Q(r,a),n=Q(n,u),o=Q(o,c),i=Q(i,l)}return[r,n,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(J(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length),o=[],i=32*n.length,s="0123456789abcdef",a=0;a<i;a+=8){var u=n[a>>5]>>>a%32&255,u=parseInt(s.charAt(u>>>4&15)+s.charAt(15&u),16);o.push(u)}return o});function oe(e,t){return e<<t|e>>>32-t}var ie=W("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 o=0;o<n.length;++o)e.push(n.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,s=Math.ceil(i/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]=oe(p[h-3]^p[h-8]^p[h-14]^p[h-16],1);for(var y=r[0],v=r[1],g=r[2],m=r[3],w=r[4],E=0;E<80;++E)var b=Math.floor(E/20),b=oe(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}}(b,v,g,m)+w+t[b]+p[E]>>>0,w=m,m=g,g=oe(v,30)>>>0,v=y,y=b;r[0]=r[0]+y>>>0,r[1]=r[1]+v>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+m>>>0,r[4]=r[4]+w>>>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,o=t||new Array(16),i=(e=e||{}).node||K,r=void 0!==e.clockseq?e.clockseq:z,s=(null!=i&&null!=r||(s=e.random||(e.rng||F)(),null==i&&(i=K=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==r&&(r=z=16383&(s[6]<<8|s[7]))),void 0!==e.msecs?e.msecs:Date.now()),a=void 0!==e.nsecs?e.nsecs:X+1,u=s-$+(a-X)/1e4;if(u<0&&void 0===e.clockseq&&(r=r+1&16383),1e4<=(a=(u<0||$<s)&&void 0===e.nsecs?0:a))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");$=s,z=r,u=(1e4*(268435455&(s+=122192928e5))+(X=a))%4294967296,o[n++]=u>>>24&255,o[n++]=u>>>16&255,o[n++]=u>>>8&255,o[n++]=255&u,e=s/4294967296*1e4&268435455,o[n++]=e>>>8&255,o[n++]=255&e,o[n++]=e>>>24&15|16,o[n++]=e>>>16&255,o[n++]=r>>>8|128,o[n++]=255&r;for(var c=0;c<6;++c)o[n+c]=i[c];return t||q(o)},v3:r,v4:function(e,t,r){var n=(e=e||{}).random||(e.rng||F)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return q(n)},v5:ie,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:Y})),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.IdentifiersBuilder=void 0,l.IdentifierType=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function ce(e,t){function r(){this.constructor=e}ue(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var d=function(){return(d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function le(e,s,a,u){return new(a=a||Promise)(function(r,t){function n(e){try{i(u.next(e))}catch(e){t(e)}}function o(e){try{i(u.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((u=u.apply(e,s||[])).next())})}function fe(n,o){var i,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(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=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=o.call(n,u)}catch(e){t=[6,e],s=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}ge.setLogLevel=function(e){this.logLevel=e=void 0===e?3:e},ge._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)de.log(e,r,t.message,t);else try{de.log(e,r,t)}catch(e){}},ge.logLevel=3,ge.log={error:function(e){1<=ge.logLevel&&ge._log("ERROR",e)},warn:function(e){2<=ge.logLevel&&ge._log("WARN",e)},info:function(e){3<=ge.logLevel&&ge._log("INFO",e)},debug:function(e){4<=ge.logLevel&&ge._log("DEBUG",e)}};var pe=ge,de=(ve.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},ve),he=[0,8,16,32,64,128,256,512],ye=pe.log;function ve(){}function ge(){}function me(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}function we(e,t,r,n){this.id=e,this.key=t,this.isDropped=r,this.parameterConfigurationId=n}function Ee(e,t,r){this.seed=e,this.slotSize=t,this.slots=r}function be(e,t){this.id=e,this.key=t}function Te(e){var t,r={};return r.id=null!=(t=De.sanitizeValue(e.id))?t:void 0,r.userId=null!=(t=De.sanitizeValue(e.userId))?t:void 0,r.deviceId=null!=(t=De.sanitizeValue(e.deviceId))?t:void 0,"object"==typeof e.properties&&(r.properties=je.sanitize(e.properties)),"object"==typeof e.identifiers&&(r.identifiers=De.sanitize(e.identifiers)),Boolean(r.id||r.userId||r.deviceId||r.identifiers&&0<Object.keys(r.identifiers).length)?r:null}function _e(e){this.conditions=e}function Re(e,t){this.key=e,this.match=t}function Oe(e,t){this.type=e,this.name=t}function Ie(e,t,r,n){this.type=e,this.operator=t,this.valueType=r,this.values=n}function Se(e,t,r){this.type=e,this.variationId=t,this.bucketId=r}function Ne(e,t){this.target=e,this.action=t}function Ce(e,t,r,n){this.id=e,this.key=t,this.type=r,this.targets=n}function Ae(e,t){this.id=e,this.experiments=t}function ke(e,t,r,n,o,i){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.targetRules=o,this.defaultValue=i}function xe(e,t,r,n,o){this.key=e,this.name=t,this.target=r,this.bucketId=n,this.value=o}function Pe(e,t){this.id=e,this.rawValue=t}var Ue={getRequest:function(n,o){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"),me(r,o),r.send()})}},postRequest:function(e,t,r,n,o){var t=JSON.stringify(t),i=new XMLHttpRequest;i.open("POST",e),i.onreadystatechange=function(){i.readyState===i.DONE&&(200<=i.status&&i.status<400?n({statusCode:i.status}):o&&o({statusCode:i.status}))},i.setRequestHeader("content-type","application/json"),me(i,r),i.send(t)},sendBeacon:function(e,t,r,n,o){var i=!1;(i="undefined"!=typeof window?window&&window.navigator&&window.navigator.sendBeacon&&!0:i)?(i=JSON.stringify(t),(t=new URLSearchParams).append("sdkName",r["X-HACKLE-SDK-NAME"]),t.append("sdkVersion",r["X-HACKLE-SDK-VERSION"]),t.append("data",i),window.navigator.sendBeacon(e,t),n()):(ye.error("Does not support sendBeacon"),o())}},a=(ct.isNotNullOrUndefined=function(e){return null!=e},ct.isNullOrUndefined=function(e){return null==e},ct.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},ct),Me=pe.log,De=(ut.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]})},ut.sanitize=function(e){var t={};if(a.isNullOrUndefined(e))return t;for(var r=0,n=Object.entries(e);r<n.length;r++){var o=n[r],i=o[0],o=o[1];this.isValidType(i)?(o=this.sanitizeValue(o),a.isNullOrUndefined(o)?Me.debug("Invalid identifier value. The identifier type value be a string of 512 characters or less. [".concat(i,"]")):t[i]=o):Me.debug("Invalid identifier type. The identifier type must be a string of 128 characters or less. [".concat(i,"]"))}return t},ut.isValidType=function(e){return!a.isNullOrUndefined(e)&&"string"==typeof e&&0<e.length&&e.length<=this.MAX_IDENTIFIER_TYPE_LENGTH},ut.sanitizeValue=function(e){return"string"==typeof e&&0<e.length&&e.length<=this.MAX_IDENTIFIER_VALUE_LENGTH?e:"number"==typeof e?e.toString():null},ut.MAX_IDENTIFIER_TYPE_LENGTH=128,ut.MAX_IDENTIFIER_VALUE_LENGTH=512,ut),Le=pe.log,je=(at.sanitize=function(e){var t={};if(a.isNullOrUndefined(e))return t;for(var r=0,n=Object.entries(e);r<n.length;r++){var o,i=n[r],s=i[0],i=i[1];if(Object.keys(t).length>=this.MAX_PROPERTIES_COUNT){Le.debug("The number of properties cannot exceed 128. Drops excess properties. [".concat(s,", ").concat(i,"]"));break}this.isValidKey(s)?(o=this.sanitizeValue(s,i),a.isNullOrUndefined(o)?Le.debug("Invalid property value. The property value mus be 'string(..1024)', 'number', 'boolean', or 'array' type. [".concat(i,"]")):t[s]=o):Le.debug("Invalid property key. The property key must be a string of 128 characters or less. [".concat(s,"]"))}return t},at.isValidProperty=function(e,t){return this.isValidKey(e)&&this.isValidValue(t)},at.isValidKey=function(e){return a.isNotNullOrUndefined(e)&&"string"==typeof e&&0<e.length&&e.length<=this.MAX_PROPERTY_KEY_LENGTH},at.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},at.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))},at.isValidElement=function(e){return!a.isNullOrUndefined(e)&&("string"==typeof e?0<e.length&&e.length<=this.MAX_PROPERTY_VALUE_LENGTH:"number"==typeof e)},at.SYSTEM_PROPERTY_KEY_PREFIX="$",at.MAX_PROPERTIES_COUNT=128,at.MAX_PROPERTY_KEY_LENGTH=128,at.MAX_PROPERTY_VALUE_LENGTH=1024,at),Fe=pe.log,Ve=(st.of=function(e,t){return new st(e,t)},st),He=(it.of=function(e,t,r){return new it(e,t,r=void 0===r?new ze:r)},it.prototype.get=function(e,t){return this.config.get(e,t)},it),Ke=(ot.on=function(e,t){return new ot(!0,e,t=void 0===t?new ze:t)},ot.off=function(e,t){return new ot(!1,e,t=void 0===t?new ze:t)},ot.prototype.get=function(e,t){return this.config.get(e,t)},ot),ie=(nt.prototype.get=function(e,t){return t},nt),ze=(rt.prototype.get=function(e,t){return t},rt),u=(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.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.TYPE_MISMATCH="TYPE_MISMATCH",n),Ge=(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),Be=(et.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},et),qe=(Ze.ID="$id",Ze.USER="$userId",Ze.DEVICE="$deviceId",Ze.SESSION="$sessionId",Ze.HACKLE_DEVICE="$hackleDeviceId",Ze),$e=(Qe.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},Qe.prototype.add=function(e,t){var r=De.sanitizeValue(t);return De.isValidType(e)&&r?this.identifiers[e]=t:Fe.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},Qe.prototype.build=function(){return this.identifiers},Qe),Xe=(Je.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},Je),Ye=(We.prototype.get=function(e,t){e=this.parameters.get(e);return!a.isNullOrUndefined(e)&&(a.isNullOrUndefined(t)||typeof e==typeof t)?e:t},We);function We(e,t){this.id=e,this.parameters=t}function Je(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function Qe(){this.identifiers={}}function Ze(){}function et(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function tt(e,t,r,n,o,i,s,a,u,c,l,f,p,d){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.status=o,this.version=i,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 rt(){}function nt(){}function ot(e,t,r){this.isOn=e,this.reason=t,this.config=r}function it(e,t,r){this.variation=e,this.reason=t,this.config=r}function st(e,t){this.value=e,this.reason=t}function at(){}function ut(){}function ct(){}Ft.tryParse=function(e){var t,r,n,o,e=Ft.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,o=e[4],e=e[5],new Ft(new ht(parseInt(t,10),parseInt(r,10),parseInt(n,10)),yt.parse(o),yt.parse(e))},Ft.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},Ft.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},Ft.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},Ft.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},Ft.prototype.isLessThan=function(e){return this.compareTo(e)<0},Ft.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},Ft.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 lt,ft,pt,dt=Ft,ht=(jt.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},jt),yt=(Lt.parse=function(e){return e?new Lt(e.split(".")):Lt.EMPTY},Lt.prototype.isEmpty=function(){return 0===this.identifiers.length},Lt.prototype.isNotEmpty=function(){return!this.isEmpty()},Lt.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},Lt.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=Lt.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},Lt.compareIdentifiers=function(e,t){return Lt.numericIdentifierRegExp.test(e)&&Lt.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},Lt.EMPTY=new Lt([]),Lt.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,Lt),vt=["MATCH","NOT_MATCH"],gt=["STRING","NUMBER","BOOLEAN","VERSION","JSON","NULL","UNKNOWN"],mt=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],wt=["VARIATION","BUCKET"],Et=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT"],bt=["USER_ID","USER_PROPERTY"],Tt=(Dt.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},Dt.IDENTIFIER=new Dt("SEGMENT"),Dt.PROPERTY=new Dt("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY"),Dt.SEGMENT=new Dt("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),Dt),_t=pe.log,Rt=(Mt.prototype.get=function(e,t){if(a.isNullOrUndefined(t))return this._get(e,"NULL",t).value;switch(typeof t){case"string":return this._get(e,"STRING",t).value;case"number":return this._get(e,"NUMBER",t).value;case"boolean":return this._get(e,"BOOLEAN",t).value;default:return this._get(e,"UNKNOWN",t).value}},Mt.prototype._get=function(e,t,r){try{if(a.isNullOrUndefined(e))return Ve.of(r,u.INVALID_INPUT);var n=this.hackleUserResolver.resolveCurrentUser();return this.client._remoteConfig(e,n,t,r)}catch(t){return _t.error("Unexpected exception while deciding remote config parameter[".concat(e,"]. Returning default value. : ").concat(t)),Ve.of(r,u.EXCEPTION)}},Mt),i=pe.log,Ot=(Ut.prototype.getSessionId=function(){return this.sessionManager.sessionId},Ut.prototype.getUser=function(){return this.userManager.currentUser},Ut.prototype.setUser=function(e){try{var t=Te(e);if(!t)return void i.warn("invalid user");this.userManager.setUser(t)}catch(e){i.error("Unexpected exception while set user: ".concat(e))}},Ut.prototype.setUserId=function(e){try{void 0===e&&this.userManager.setUserId(void 0);var t=De.sanitizeValue(e);if(!t)return void i.warn("Invalid userId. [userId=".concat(e,"]"));this.userManager.setUserId(t)}catch(e){i.error("Unexpected exception while set userId: ".concat(e))}},Ut.prototype.setDeviceId=function(e){try{if(!De.sanitizeValue(e))return void i.warn("Invalid deviceId. [deviceId=".concat(e,"]"));this.userManager.setDeviceId(e)}catch(e){i.error("Unexpected exception while set deviceId: ".concat(e))}},Ut.prototype.setUserProperty=function(e,t){try{if(!je.isValidKey(e))return void i.warn("Invalid property key. [key=".concat(e,"]"));if(!je.isValidValue(t))return void i.warn("Invalid property value. [key=".concat(t,"]"));this.userManager.setUserProperty(e,t)}catch(e){i.error("Unexpected exception while set userProperty: ".concat(e))}},Ut.prototype.setUserProperties=function(e){try{var t=je.sanitize(e);this.userManager.setUserProperties(t)}catch(e){i.error("Unexpected exception while set userProperties: ".concat(e))}},Ut.prototype.resetUser=function(){try{this.userManager.resetUser()}catch(e){i.error("Unexpected exception while reset user: ".concat(e))}},Ut.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},Ut.prototype.variationDetail=function(e,t,r){r=r||"A";try{var n=this.userManager.resolveCurrentOrNull(t);if(!n)return i.warn("invalid user"),He.of(r,u.INVALID_INPUT);var o=this.hackleUserResolver.resolve(n);return this.hackleInternalClient._experiment(e,o,r)}catch(t){return i.error("Unexpected exception while deciding variation for experiment[".concat(e,"]. Returning default variation[").concat(r,"] : ").concat(t)),He.of(r,u.EXCEPTION)}},Ut.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},Ut.prototype.featureFlagDetail=function(e,t){try{var r=this.userManager.resolveCurrentOrNull(t);if(!r)return i.warn("invalid user"),Ke.off(u.INVALID_INPUT);var n=this.hackleUserResolver.resolve(r);return this.hackleInternalClient._featureFlag(e,n)}catch(t){return i.error("Unexpected exception while deciding feature flag[".concat(e,"]. Returning default value[false] : ").concat(t)),Ke.off(u.EXCEPTION)}},Ut.prototype.track=function(e,t){try{i.debug("track event : ".concat(JSON.stringify(e)));var r=this._convertEvent(e),n=this.userManager.resolveCurrentOrNull(t);if(!n)return void i.warn("invalid user");var o=this.hackleUserResolver.resolve(n);this.hackleInternalClient._track(r,o)}catch(e){i.error("Unexpected exception while tracking event: $t")}},Ut.prototype.trackPageView=function(e){i.debug("tracking page view");var t=this.hackleUserResolver.resolve(this.userManager.currentUser);this.hackleInternalClient._track({key:"$page_view"},t)},Ut.prototype.remoteConfig=function(e){return new Rt(this.hackleInternalClient,this.userManager,this.hackleUserResolver,e)},Ut.prototype.onReady=function(e,t){this.hackleInternalClient._onReady(e,t=void 0===t?3e3:t)},Ut.prototype.onInitialized=function(e){return this.hackleInternalClient._onInitialized({timeout:null==e?void 0:e.timeout})},Ut.prototype.close=function(){i.debug("Hackle Client is closing"),this.hackleInternalClient._close()},Ut.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},Ut),It=(Pt.exposure=function(e,t,r){return new St((new Date).getTime(),t,e,r.variationId,r.variationKey,r.reason,this.exposureProperties(r))},Pt.exposureProperties=function(e){return a.isNotNullOrUndefined(e.config)?{$parameterConfigurationId:e.config.id}:{}},Pt.track=function(e,t,r,n){return new Nt(n,r,e,t)},Pt.remoteConfig=function(e,t,r){return new Ct((new Date).getTime(),t,e,r)},Pt.isExposure=function(e){return void 0!==e.experiment},Pt.isTrack=function(e){return void 0!==e.eventType},Pt.isRemoteConfig=function(e){return void 0!==e.remoteConfigParameter},Pt.isExposureDto=function(e){return"experimentId"in e&&void 0!==e.experimentId},Pt.isTrackDto=function(e){return"eventTypeId"in e&&void 0!==e.eventTypeId},Pt.isRemoteConfigDto=function(e){return"parameterId"in e&&void 0!==e.parameterId},Pt.prototype.toDto=function(){return{insertId:this.insertId,timestamp:this.timestamp,userId:this.user.identifiers[qe.ID],identifiers:this.user.identifiers,userProperties:je.sanitize(this.user.properties),hackleProperties:je.sanitize(this.user.hackleProperties)}},Pt),St=(ce(xt,pt=It),xt.prototype.copyWithUser=function(e){return new xt(this.timestamp,e,this.experiment,this.variationId,this.variationKey,this.decisionReason,this.properties,this.insertId)},xt.prototype.toDto=function(){return d(d({},pt.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})},xt),Nt=(ce(kt,ft=It),kt.prototype.copyWithUser=function(e){return new kt(this.timestamp,e,this.eventType,this.event,this.insertId)},kt.prototype.toDto=function(){return d(d({},ft.prototype.toDto.call(this)),{eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:je.sanitize(this.event.properties)})},kt),Ct=(ce(At,lt=It),At.prototype.copyWithUser=function(e){return new At(this.timestamp,e,this.remoteConfigParameter,this.evaluation,this.insertId)},At.prototype.toDto=function(){return d(d({},lt.prototype.toDto.call(this)),{parameterId:this.remoteConfigParameter.id,parameterKey:this.remoteConfigParameter.key,parameterType:this.remoteConfigParameter.type,valueId:this.evaluation.valueId,decisionReason:this.evaluation.reason.toString(),properties:je.sanitize(this.evaluation.properties)})},At);function At(e,t,r,n,o){e=lt.call(this,e,t,o)||this;return e.remoteConfigParameter=r,e.evaluation=n,e}function kt(e,t,r,n,o){e=ft.call(this,e,t,o)||this;return e.eventType=r,e.event=n,e}function xt(e,t,r,n,o,i,s,a){e=pt.call(this,e,t,a)||this;return e.experiment=r,e.variationId=n,e.variationKey=o,e.decisionReason=i,e.properties=s,e}function Pt(e,t,r){void 0===r&&(r=ae.v4()),this.timestamp=e,this.user=t,this.insertId=r}function Ut(e,t,r,n){this.hackleInternalClient=e,this.hackleUserResolver=t,this.sessionManager=r,this.userManager=n}function Mt(e,t,r,n){this.client=e,this.userManager=t,this.hackleUserResolver=r,this.user=n}function Dt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function Lt(e){this.identifiers=e}function jt(e,t,r){this.major=e,this.minor=t,this.patch=r}function Ft(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}function Vt(e){var t=new Array,r=new Array,n=new Array;return e.forEach(function(e){e instanceof It?It.isExposure(e)?t.push(e.toDto()):It.isTrack(e)?r.push(e.toDto()):It.isRemoteConfig(e)&&n.push(e.toDto()):It.isExposureDto(e)?t.push(e):It.isTrackDto(e)?r.push(e):It.isRemoteConfigDto(e)&&n.push(e)}),{exposureEvents:t,trackEvents:r,remoteConfigEvents:n}}ar.prototype.dispatch=function(e,t,r){var n={},e=(n["X-HACKLE-SDK-KEY"]=this.sdkKey,n["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),Vt(e));this.httpRequest.postRequest(this.dispatchUrl,e,n,t,r)},ar.prototype.dispatchXhrOrBeacon=function(e,t,r){var n,o;this.useBeacon?((n={})["X-HACKLE-SDK-KEY"]=this.sdkKey,n["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),o=Vt(e),this.httpRequest.sendBeacon(this.beaconDispatchUrl,o,n,t,r)):this.dispatch(e,t,r)};var Ht=ar,Kt=(sr.mapNotNullOrUndefined=function(e,t){for(var r=Array(),n=0,o=e;n<o.length;n++){var i=t(o[n]);a.isNotNullOrUndefined(i)&&r.push(i)}return r},sr.associateTo=function(e,t,r){for(var n=0,o=e;n<o.length;n++){var i=r(o[n]);t.set(i[0],i[1])}return t},sr.associate=function(e,t){return this.associateTo(e,new Map,t)},sr.associateBy=function(e,t){return this.associate(e,function(e){return[t(e),e]})},sr),zt=pe.log,Gt=(v.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},v.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},v.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},v.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},v.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},v.prototype.getContainerOrNull=function(e){return this.containers.get(e)},v.prototype.getParameterConfigurationOrNull=function(e){return this.parameterConfigurations.get(e)},v.prototype.getRemoteConfigParameterOrNull=function(e){return this.remoteConfigParameters.get(e)},v.from=function(e){var t=this,r=Kt.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]});return new v(Kt.associateBy(Kt.mapNotNullOrUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),Kt.associateBy(Kt.mapNotNullOrUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),r,Kt.associate(e.events,function(e){return[e.key,new be(e.id,e.key)]}),Kt.associateBy(Kt.mapNotNullOrUndefined(e.segments,function(e){return t.toSegmentOrNull(e)}),function(e){return e.key}),Kt.associate(e.containers,function(e){return[e.id,t.toContainer(e)]}),Kt.associate(e.parameterConfigurations,function(e){return[e.id,t.toParameterConfiguration(e)]}),Kt.associateBy(Kt.mapNotNullOrUndefined(e.remoteConfigParameters,function(e){return t.toRemoteConfigParameterOrNull(e)}),function(e){return e.key}))},v.toBucket=function(e){return new Ee(e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new Be(t,r,e)}))},v.toExperimentOrNull=function(e,t){var r=this,n=this.experimentStatusOrNull(t.execution.status),o=t.variations.map(function(e){return new we(e.id,e.key,"DROPPED"===e.status,e.parameterConfigurationId)}),i=Kt.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),s=Kt.mapNotNullOrUndefined(t.execution.segmentOverrides,function(e){return r.toTargetRuleOrNull(e,Tt.IDENTIFIER)}),a=Kt.mapNotNullOrUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e,Tt.PROPERTY)}),u=Kt.mapNotNullOrUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e,Tt.PROPERTY)}),c=this.toTargetActionOrNull(t.execution.defaultRule);return n&&c&&new Ge(t.id,t.key,e,t.identifierType,n,t.version,o,i,s,a,u,c,t.containerId,t.winnerVariationId)},v.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void zt.debug("Unsupported status [".concat(e,"]"))}},v.toTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t),e=this.toTargetActionOrNull(e.action);return t&&e&&new Ne(t,e)},v.toTargetActionOrNull=function(e){var t=this.parseOrNull(wt,e.type);return t&&new Se(t,e.variationId,e.bucketId)},v.toTargetOrNull=function(e,t){var r=this,e=Kt.mapNotNullOrUndefined(e.conditions,function(e){return r.toConditionOrNull(e,t)});return new _e(e)},v.toConditionOrNull=function(e,t){var r=this.toTargetKeyOrNull(e.key);if(r&&t.supports(r.type))return(t=this.toTargetMatchOrNull(e.match))&&new Re(r,t)},v.toTargetKeyOrNull=function(e){var t=this.parseOrNull(Et,e.type);return t&&new Oe(t,e.name)},v.toTargetMatchOrNull=function(e){var t=this.parseOrNull(vt,e.type),r=this.parseOrNull(mt,e.operator),n=this.parseOrNull(gt,e.valueType);return t&&r&&n&&new Ie(t,r,n,e.values)},v.toSegmentOrNull=function(e){var t=this,r=this.parseOrNull(bt,e.type);return r&&new Ce(e.id,e.key,r,Kt.mapNotNullOrUndefined(e.targets,function(e){return t.toTargetOrNull(e,Tt.SEGMENT)}))},v.toContainer=function(e){var t=this;return new Xe(e.id,e.bucketId,e.groups.map(function(e){return t.toContainerGroup(e)}))},v.toContainerGroup=function(e){return new Ae(e.id,e.experiments)},v.toParameterConfiguration=function(e){return new Ye(e.id,Kt.associate(e.parameters,function(e){return[e.key,e.value]}))},v.toRemoteConfigParameterOrNull=function(e){var t=this,r=this.parseOrNull(gt,e.type),n=Kt.mapNotNullOrUndefined(e.targetRules,function(e){return t.toRemoteConfigTargetRuleOrNull(e,Tt.PROPERTY)}),o=this.toRemoteConfigParameterValueOrNull(e.defaultValue);return r&&new ke(e.id,e.key,r,e.identifierType,n,o)},v.toRemoteConfigTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t);return t&&new xe(e.key,e.name,t,e.bucketId,this.toRemoteConfigParameterValueOrNull(e.value))},v.toRemoteConfigParameterValueOrNull=function(e){return new Pe(e.id,e.value)},v.parseOrNull=function(e,t){e=e.find(function(e){return e===t});return e||zt.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e},v),Bt=(ir.prototype.onReady=function(){return this.readyPromise},ir.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},ir.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()},ir.prototype.get=function(){return this.workspace},ir.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)},ir.prototype.fetch=function(){var e,t=this;(e={})["X-HACKLE-SDK-KEY"]=this.sdkKey,e["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),e["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],e["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"];function r(){t.onRequestComplete()}this.currentRequest=this.httpRequest.getRequest(this.fetchUrl,e);null!=(e=this.currentRequest)&&e.responsePromise.then(function(e){t.onRequestResolved(e)},function(e){t.onRequestRejected(e)}).then(r,r),0<this.updateInterval&&this.scheduleNextUpdate()},ir.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},ir.prototype.onRequestResolved=function(e){if(this.isStarted){if(void 0!==e.statusCode&&200<=e.statusCode&&e.statusCode<400)this.errorRetryController.reset();else{if(401===e.statusCode||403===e.statusCode)return void this.readyPromiseRejecter(new Error("Invalid key provided."));this.errorRetryController.countError()}e.body&&(e=JSON.parse(e.body),this.workspace=Gt.from(e),this.readyPromiseResolver())}},ir.prototype.onRequestRejected=function(e){this.isStarted&&(this.errorRetryController.countError(),console.error("Error fetching data",e))},ir.prototype.close=function(){this.stop()},ir),qt=(or.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*he[Math.min(he.length-1,this.errorCount)]+Math.round(1e3*Math.random())},or.prototype.countError=function(){this.errorCount<he.length-1&&this.errorCount++},or.prototype.reset=function(){this.errorCount=0},or),r="model",o="name",s="type",c="vendor",f="version",p="mobile",h="tablet",$t=(y.parse=function(e){return{browser:y.getBrowser(e),cpu:y.getCPU(e),device:y.getDevice(e),engine:y.getEngine(e),os:y.getOS(e)}},y.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return y.mapper.rgx.call(t,e,y.regexes.browser),t.major=y.util.major(t.version),t},y.getCPU=function(e){var t={architecture:void 0};return y.mapper.rgx.call(t,e,y.regexes.cpu),t},y.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return y.mapper.rgx.call(t,e,y.regexes.device),t},y.getEngine=function(e){var t={name:void 0,version:void 0};return y.mapper.rgx.call(t,e,y.regexes.os),t},y.getOS=function(e){var t={name:void 0,version:void 0};return y.mapper.rgx.call(t,e,y.regexes.os),t},y.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,"")}},y.regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[o,f],[/(opios)[\/\s]+([\w\.]+)/i],[[o,"Opera Mini"],f],[/\s(opr)\/([\w\.]+)/i],[[o,"Opera"],f],[/(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,f],[/(konqueror)\/([\w\.]+)/i],[[o,"Konqueror"],f],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[o,"IE"],f],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[o,"Edge"],f],[/(yabrowser)\/([\w\.]+)/i],[[o,"Yandex"],f],[/(Avast)\/([\w\.]+)/i],[[o,"Avast Secure Browser"],f],[/(AVG)\/([\w\.]+)/i],[[o,"AVG Secure Browser"],f],[/(puffin)\/([\w\.]+)/i],[[o,"Puffin"],f],[/(focus)\/([\w\.]+)/i],[[o,"Firefox Focus"],f],[/(opt)\/([\w\.]+)/i],[[o,"Opera Touch"],f],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[o,"UCBrowser"],f],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],f],[/(windowswechat qbcore)\/([\w\.]+)/i],[[o,"WeChat(Win) Desktop"],f],[/(micromessenger)\/([\w\.]+)/i],[[o,"WeChat"],f],[/(brave)\/([\w\.]+)/i],[[o,"Brave"],f],[/(whale)\/([\w\.]+)/i],[[o,"Whale"],f],[/(qqbrowserlite)\/([\w\.]+)/i],[o,f],[/(QQ)\/([\d\.]+)/i],[o,f],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[o,f],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[o,f],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[o,f],[/(MetaSr)[\/\s]?([\w\.]+)/i],[o],[/(LBBROWSER)/i],[o],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[f,[o,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[f,[o,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[o,f],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[f,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,/(.+)/,"$1 WebView"],f],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[o,/(.+(?:g|us))(.+)/,"$1 $2"],f],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[o,"Chrome Mobile"],f],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[f,[o,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[o,"Sailfish Browser"],f],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,f],[/(dolfin)\/([\w\.]+)/i],[[o,"Dolphin"],f],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[o,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[o,"Opera Coast"],f],[/fxios\/([\w\.-]+)/i],[f,[o,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[f,[o,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[f,o],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[o,"GSA"],f],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[f,(y.mapper={rgx:function(e,t){for(var r,n,o,i,s,a=0;a<t.length&&!i;){for(var u=t[a],c=t[a+1],l=r=0;l<u.length&&!i;)if(i=u[l++].exec(e))for(n=0;n<c.length;n++)s=i[++r],"object"==typeof(o=c[n])&&0<o.length?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=s?s.replace(o[1],o[2]):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0:4==o.length&&(this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0):this[o]=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(y.util.has(t[r][n],e))return"?"===r?void 0:r}else if(y.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(y.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,f],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],f],[/(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,f]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",y.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",y.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",y.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[r,c,[s,h]],[/applecoremedia\/[\w\.]+ \((ipad)/],[r,[c,"Apple"],[s,h]],[/(apple\s{0,1}tv)/i],[[r,"Apple TV"],[c,"Apple"],[s,"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],[c,r,[s,h]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[r,[c,"Amazon"],[s,h]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[r,y.mapper.str,y.maps.device.amazon.model],[c,"Amazon"],[s,p]],[/android.+aft([bms])\sbuild/i],[r,[c,"Amazon"],[s,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[r,c,[s,p]],[/\((ip[honed|\s\w*]+);/i],[r,[c,"Apple"],[s,p]],[/(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],[c,r,[s,p]],[/\(bb10;\s(\w+)/i],[r,[c,"BlackBerry"],[s,p]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[r,[c,"Asus"],[s,h]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[c,"Sony"],[r,"Xperia Tablet"],[s,h]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[c,"Sony"],[s,p]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[c,r,[s,"console"]],[/android.+;\s(shield)\sbuild/i],[r,[c,"Nvidia"],[s,"console"]],[/(playstation\s[34portablevi]+)/i],[r,[c,"Sony"],[s,"console"]],[/(sprint\s(\w+))/i],[[c,y.mapper.str,y.maps.device.sprint.vendor],[r,y.mapper.str,y.maps.device.sprint.model],[s,p]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[c,[r,/_/g," "],[s,p]],[/(nexus\s9)/i],[r,[c,"HTC"],[s,h]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[r,[c,"Huawei"],[s,p]],[/android.+(bah2?-a?[lw]\d{2})/i],[r,[c,"Huawei"],[s,h]],[/(microsoft);\s(lumia[\s\w]+)/i],[c,r,[s,p]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[r,[c,"Microsoft"],[s,"console"]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[c,"Microsoft"],[s,p]],[/\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,[c,"Motorola"],[s,p]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[r,[c,"Motorola"],[s,h]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[c,y.util.trim],[r,y.util.trim],[s,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[c,"Samsung"],[s,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[r,[c,"Sharp"],[s,"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],[[c,"Samsung"],r,[s,h]],[/smart-tv.+(samsung)/i],[c,[s,"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],[[c,"Samsung"],r,[s,p]],[/sie-(\w*)/i],[r,[c,"Siemens"],[s,p]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[c,"Nokia"],r,[s,p]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[r,[c,"Acer"],[s,h]],[/android.+([vl]k\-?\d{3})\s+build/i],[r,[c,"LG"],[s,h]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[c,"LG"],r,[s,h]],[/(lg) netcast\.tv/i],[c,r,[s,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[r,[c,"LG"],[s,p]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[c,r,[s,h]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[r,[c,"Lenovo"],[s,h]],[/(lenovo)[_\s-]?([\w-]+)/i],[c,r,[s,p]],[/linux;.+((jolla));/i],[c,r,[s,p]],[/((pebble))app\/[\d\.]+\s/i],[c,r,[s,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[c,r,[s,p]],[/crkey/i],[[r,"Chromecast"],[c,"Google"],[s,"smarttv"]],[/android.+;\s(glass)\s\d/i],[r,[c,"Google"],[s,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[r,[c,"Google"],[s,h]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[r,[c,"Google"],[s,p]],[/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," "],[c,"Xiaomi"],[s,p]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[c,"Xiaomi"],[s,h]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[r,[c,"Meizu"],[s,p]],[/(mz)-([\w-]{2,})/i],[[c,"Meizu"],r,[s,p]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[r,[c,"OnePlus"],[s,p]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[r,[c,"RCA"],[s,h]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[r,[c,"Dell"],[s,h]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[r,[c,"Verizon"],[s,h]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[c,"Barnes & Noble"],r,[s,h]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[r,[c,"NuVision"],[s,h]],[/android.+;\s(k88)\sbuild/i],[r,[c,"ZTE"],[s,h]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[r,[c,"Swiss"],[s,p]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[r,[c,"Swiss"],[s,h]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[r,[c,"Zeki"],[s,h]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[c,"Dragon Touch"],r,[s,h]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[r,[c,"Insignia"],[s,h]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[r,[c,"NextBook"],[s,h]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[c,"Voice"],r,[s,p]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[c,"LvTel"],r,[s,p]],[/android.+;\s(PH-1)\s/i],[r,[c,"Essential"],[s,p]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[r,[c,"Envizen"],[s,h]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[c,r,[s,h]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[r,[c,"MachSpeed"],[s,h]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[c,r,[s,h]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[r,[c,"Rotor"],[s,h]],[/android.+(KS(.+))\s+build/i],[r,[c,"Amazon"],[s,h]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[c,r,[s,h]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[s,y.util.lowerize],c,r],[/[\s\/\(](smart-?tv)[;\)]/i],[[s,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[r,[c,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[f,[o,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[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,f],[/rv\:([\w\.]{1,9}).+(gecko)/i],[f,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,f],[/(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,y.mapper.str,y.maps.os.windows],[f,y.mapper.str,y.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[f,y.mapper.str,y.maps.os.windows.version]],[/\((bb)(10);/i],[[o,"BlackBerry"],f],[/(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,f],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[o,"Symbian"],f],[/\((series40);/i],[o],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"],f],[/(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"],f],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],f],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],f],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[o,"Linux"],f],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPhone"],[f,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPad"],[f,/_/g,"."]],[/(haiku)\s(\w+)/i],[o,f],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[f,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[o,"Mac"],[f,/_/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,f]]},y),Xt=(nr.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=$t.parse(t.navigator.userAgent),n=r.browser,o=r.os,r=r.device,i=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:i||"",browserName:n.name||"",browserMajorVersion:n.major||"",browserVersion:n.version||"",osName:o.name||"",osVersion:o.version||"",deviceModel:r.model||"",deviceType:r.type||"",deviceVendor:r.vendor||"",language:(null==(i=t.navigator.languages)?void 0:i[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||""}},nr),Yt=(rr.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]:""},rr.prototype.getItem=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "==o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return null},rr.prototype.setItem=function(e,t,r){var r=d(d({},this.options),r),n=r.isSecure,o="",i="",s="",a=(r.isCrossSubdomain&&(o=(a=rr.extractDomain(document.location.hostname))?"; domain=."+a:""),r.days&&((a=new Date).setTime(a.getTime()+24*r.days*60*60*1e3),i="; expires="+a.toUTCString()),r.isCrossSite&&(n=!0,s="; SameSite=None"),n&&(s+="; secure"),e+"="+encodeURIComponent(t)+i+"; path=/"+o+s);return document.cookie=a},rr.prototype.removeItem=function(e,t){this.setItem(e,"",d(d({},t),{days:-1}))},new rr({days:3650,isCrossSubdomain:!0})),Wt=(tr.prototype.getQueryParam=function(e){return this.getQueryParams(function(){return!0})[e]||""},tr.prototype.getQueryParams=function(e){for(var t={},r=0,n=this.search.substring(1).split("&");r<n.length;r++){var o=n[r].split("="),i=o[0],o=o[1];e(i,o)&&(t[i]=decodeURIComponent(o))}return t},tr),Jt=(er.prototype.resolve=function(e){var t=ur(),t=(new $e).addIdentifiers(e.identifiers||{}).add(qe.ID,e.id||t).add(qe.DEVICE,e.deviceId||t).add(qe.HACKLE_DEVICE,t);return a.isNotNullOrUndefined(e.userId)&&t.add(qe.USER,e.userId),{identifiers:t.build(),properties:this._userProperties(e.properties),hackleProperties:this._getHackleProperties()}},er.prototype.resolveCurrentUser=function(){return this.resolve(this.userManager.currentUser)},er.prototype._userProperties=function(e){void 0===e&&(e={});var t,r={};return"undefined"!=typeof window&&(t=new Wt(window.location.search),r=d(d({},t.getQueryParams(function(e){return e.startsWith("utm_")})),t.getQueryParams(function(e){return["gclid","fbclid"].includes(e)}))),d(d({},r),e)},er.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?Xt.generate(window):e)||{}},er),Qt=(Zt.initialize=function(){Yt.getItem("_hackle_hid")||fr()},Zt.reInitialize=function(){fr()},Zt);function Zt(){}function er(e){this.userManager=e,Qt.initialize()}function tr(e){this.search=e}function rr(e){this.options=e=void 0===e?{days:0,isCrossSubdomain:!1,isSecure:!1,isCrossSite:!1}:e}function nr(){}function y(){}function or(){this.errorCount=0}function ir(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 qt,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function v(e,t,r,n,o,i,s,a){this.experiments=e,this.featureFlags=t,this.buckets=r,this.eventTypes=n,this.segments=o,this.containers=i,this.parameterConfigurations=s,this.remoteConfigParameters=a}function sr(){}function ar(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 ur(){var e=Yt.getItem("_hackle_id");return e||Yt.getItem("_hackle_hid")||fr()}function cr(e){Yt.setItem("_hackle_id",e)}function lr(){Yt.removeItem("_hackle_id")}function fr(){var e=ae.v4();return Yt.setItem("_hackle_hid",e),e}function pr(e){return e&&e.Math==Math&&e}function g(e){try{return!!e()}catch(e){return!0}}var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},h=pr("object"==typeof globalThis&&globalThis)||pr("object"==typeof window&&window)||pr("object"==typeof self&&self)||pr("object"==typeof p&&p)||function(){return this}()||Function("return this")(),s={},r=!g(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),c=!g(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),dr=Function.prototype.call,o=c?dr.bind(dr):function(){return dr.apply(dr,arguments)},f={},e={}.propertyIsEnumerable,hr=Object.getOwnPropertyDescriptor,p=hr&&!e.call({1:2},1);f.f=p?function(e){e=hr(this,e);return!!e&&e.enumerable}:e;function yr(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function vr(e){return Pr(xr(e),8,-1)}function gr(e){if(null==e)throw Lr("Can't call method on "+e);return e}function mr(e){return jr(Fr(e))}function m(e){return"function"==typeof e}function wr(e){return"object"==typeof e?null!==e:Vr(e)}function Er(e,t){return arguments.length<2?(r=Hr[e],Kr(r)?r:void 0):Hr[e]&&Hr[e][t];var r}function br(e){try{return Jr(e)}catch(e){return"Object"}}function Tr(e){if(Qr(e))return e;throw en(Zr(e)+" is not a function")}function _r(e,t){return null==(e=e[t])?void 0:tn(e)}function Rr(t,r){try{un(an,t,{value:r,configurable:!0,writable:!0})}catch(e){an[t]=r}return r}function w(e){return pn(fn(e))}function Or(e){return"Symbol("+(void 0===e?"":e)+")_"+wn(++gn+mn,36)}function E(e){var t;return En(Rn,e)&&(Tn||"string"==typeof Rn[e])||(t="Symbol."+e,Tn&&En(On,e)?Rn[e]=On[e]:Rn[e]=(_n&&In?In:Sn)(t)),Rn[e]}function Ir(e){return e=function(e,t){if(!Cn(e)||An(e))return e;var r=kn(e,Un);if(r){if(r=Nn(r,e,t=void 0===t?"default":t),!Cn(r)||An(r))return r;throw Pn("Can't convert object to primitive value")}return xn(e,t=void 0===t?"number":t)}(e,"string"),Mn(e)?e:e+""}function Sr(e){return Ln?Dn.createElement(e):{}}function Nr(e){if($n(e))return e;throw Yn(Xn(e)+" is not an object")}var p=c,e=Function.prototype,Cr=e.bind,Ar=e.call,kr=p&&Cr.bind(Ar,Ar),e=p?function(e){return e&&kr(e)}:function(e){return e&&function(){return Ar.apply(e,arguments)}},Cr=e,xr=Cr({}.toString),Pr=Cr("".slice),p=g,Ur=vr,Mr=Object,Dr=e("".split),Cr=p(function(){return!Mr("z").propertyIsEnumerable(0)})?function(e){return"String"==Ur(e)?Dr(e,""):Mr(e)}:Mr,Lr=TypeError,jr=Cr,Fr=gr,Vr=m,Hr=h,Kr=m,p=e({}.isPrototypeOf),zr=Er("navigator","userAgent")||"",b=zr,Gr=h.process,T=h.Deno,Gr=Gr&&Gr.versions||T&&T.version,T=Gr&&Gr.v8,Gr=Wr=!(Wr=T?0<(_=T.split("."))[0]&&_[0]<4?1:+(_[0]+_[1]):Wr)&&b&&(!(_=b.match(/Edge\/(\d+)/))||74<=_[1])&&(_=b.match(/Chrome\/(\d+)/))?+_[1]:Wr,Br=Gr,T=g,b=!!Object.getOwnPropertySymbols&&!T(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Br&&Br<41}),_=b&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,qr=Er,$r=m,Xr=p,Yr=Object,Wr=_?function(e){return"symbol"==typeof e}:function(e){var t=qr("Symbol");return $r(t)&&Xr(t.prototype,Yr(e))},Jr=String,Qr=m,Zr=br,en=TypeError,tn=Tr,rn=o,nn=m,on=wr,sn=TypeError,T={exports:{}},an=h,un=Object.defineProperty,cn=Rr,cn=h["__core-js_shared__"]||cn("__core-js_shared__",{}),ln=cn,fn=((T.exports=function(e,t){return ln[e]||(ln[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"}),gr),pn=Object,dn=w,hn=e({}.hasOwnProperty),yn=Object.hasOwn||function(e,t){return hn(dn(e),t)},vn=e,gn=0,mn=Math.random(),wn=vn(1..toString),vn=h,R=T.exports,En=yn,bn=Or,Tn=b,_n=_,Rn=R("wks"),On=vn.Symbol,In=On&&On.for,Sn=_n?On:On&&On.withoutSetter||bn,Nn=o,Cn=wr,An=Wr,kn=_r,xn=function(e,t){var r,n;if("string"===t&&nn(r=e.toString)&&!on(n=rn(r,e)))return n;if(nn(r=e.valueOf)&&!on(n=rn(r,e)))return n;if("string"!==t&&nn(r=e.toString)&&!on(n=rn(r,e)))return n;throw sn("Can't convert object to primitive value")},Pn=TypeError,Un=E("toPrimitive"),Mn=Wr,b=wr,Dn=h.document,Ln=b(Dn)&&b(Dn.createElement),jn=Sr,_=!r&&!g(function(){return 7!=Object.defineProperty(jn("div"),"a",{get:function(){return 7}}).a}),Fn=o,Vn=f,Hn=yr,Kn=mr,zn=Ir,Gn=yn,Bn=_,qn=Object.getOwnPropertyDescriptor,R=(s.f=r?qn:function(e,t){if(e=Kn(e),t=zn(t),Bn)try{return qn(e,t)}catch(e){}if(Gn(e,t))return Hn(!Fn(Vn.f,e,t),e[t])},{}),vn=r&&g(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),$n=wr,Xn=String,Yn=TypeError,Wn=_,Jn=Nr,Qn=Ir,Zn=TypeError,eo=Object.defineProperty,to=Object.getOwnPropertyDescriptor,ro=(R.f=r?vn?function(e,t,r){var n;return Jn(e),t=Qn(t),Jn(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=to(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}),eo(e,t,r)}:eo:function(e,t,r){if(Jn(e),t=Qn(t),Jn(r),Wn)try{return eo(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Zn("Accessors not supported");return"value"in r&&(e[t]=r.value),e},R),no=yr,bn=r?function(e,t,r){return ro.f(e,t,no(1,r))}:function(e,t,r){return e[t]=r,e},Wr={exports:{}},b=r,f=yn,_=Function.prototype,oo=b&&Object.getOwnPropertyDescriptor,f=f(_,"name"),f={EXISTS:f,PROPER:f&&"something"===function(){}.name,CONFIGURABLE:f&&(!b||oo(_,"name").configurable)},b=m,oo=cn,io=e(Function.toString);b(oo.inspectSource)||(oo.inspectSource=function(e){return io(e)});function so(e){return Oo[e]||(Oo[e]=Ro(e))}function ao(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(Ko(r)&&Go(r,i,n),n.global)o?e[t]=r:Bo(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:zo.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function uo(e){return(e=+e)!=e||0==e?0:Xo(e)}function co(e,t){return(e=Yo(e))<0?Wo(e+t,0):Jo(e,t)}function O(e){return 0<(e=e.length)?Zo(Qo(e),9007199254740991):0}function lo(a){return function(e,t,r){var n,o=ei(e),i=ri(o),s=ti(r,i);if(a&&t!=t){for(;s<i;)if((n=o[s++])!=n)return!0}else for(;s<i;s++)if((a||s in o)&&o[s]===t)return a||s||0;return!a&&-1}}function fo(e,t){var r,n=oi(e),o=0,i=[];for(r in n)!ni(si,r)&&ni(n,r)&&ai(i,r);for(;t.length>o;)!ni(n,r=t[o++])||~ii(i,r)||ai(i,r);return i}function po(e,t,r){for(var n=yi(t),o=gi.f,i=vi.f,s=0;s<n.length;s++){var a=n[s];hi(e,a)||r&&hi(r,a)||o(e,a,i(t,a))}}function ho(e,t){return(e=Ti[bi(e)])==Ri||e!=_i&&(wi(t)?mi(t):!!t)}function I(e,t){var r,n,o,i,s=e.target,a=e.global,u=e.stat;if(r=a?Oi:u?Oi[s]||Ci(s,{}):(Oi[s]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(i=Ii(r,n))&&i.value:r[n],!ki(a?n:s+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;Ai(o,i)}(e.sham||i&&i.sham)&&Si(o,"sham",!0),Ni(r,n,o,e)}}var yo,vo,go,mo,wo,Eo,bo,To,_=oo.inspectSource,b=m,oo=_,_o=h.WeakMap,b=b(_o)&&/native code/.test(oo(_o)),oo=T.exports,Ro=Or,Oo=oo("keys"),_o={},T=e,Io=wr,So=bn,No=yn,oo=cn,S=so,Co=_o,Ao=h.TypeError,ko=h.WeakMap,b=(bo=b||oo.state?(yo=oo.state||(oo.state=new ko),vo=T(yo.get),go=T(yo.has),mo=T(yo.set),wo=function(e,t){if(go(yo,e))throw new Ao("Object already initialized");return t.facade=e,mo(yo,e,t),t},Eo=function(e){return vo(yo,e)||{}},function(e){return go(yo,e)}):(Co[To=S("state")]=!0,wo=function(e,t){if(No(e,To))throw new Ao("Object already initialized");return t.facade=e,So(e,To,t),t},Eo=function(e){return No(e,To)?e[To]:{}},function(e){return No(e,To)}),{set:wo,get:Eo,has:bo,enforce:function(e){return bo(e)?Eo(e):wo(e,{})},getterFor:function(t){return function(e){if(Io(e)&&(e=Eo(e)).type===t)return e;throw Ao("Incompatible receiver, "+t+" required")}}}),oo=g,xo=m,Po=yn,Uo=r,Mo=f.CONFIGURABLE,Do=_,Lo=b.enforce,jo=b.get,Fo=Object.defineProperty,Vo=Uo&&!oo(function(){return 8!==Fo(function(){},"length",{value:8}).length}),Ho=String(String).split("String"),ko=Wr.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),(!Po(e,"name")||Mo&&e.name!==t)&&(Uo?Fo(e,"name",{value:t,configurable:!0}):e.name=t),Vo&&r&&Po(r,"arity")&&e.length!==r.arity&&Fo(e,"length",{value:r.arity});try{r&&Po(r,"constructor")&&r.constructor?Uo&&Fo(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=Lo(e);return Po(r,"source")||(r.source=Ho.join("string"==typeof t?t:"")),e},Ko=(Function.prototype.toString=ko(function(){return xo(this)&&jo(this).source||Do(this)},"toString"),m),zo=R,Go=Wr.exports,Bo=Rr,T={},qo=Math.ceil,$o=Math.floor,Xo=Math.trunc||function(e){e=+e;return(0<e?$o:qo)(e)},Yo=uo,Wo=Math.max,Jo=Math.min,Qo=uo,Zo=Math.min,ei=mr,ti=co,ri=O,Co={includes:lo(!0),indexOf:lo(!1)},ni=yn,oi=mr,ii=Co.indexOf,si=_o,ai=e([].push),S=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ui=fo,ci=S.concat("length","prototype"),oo=(T.f=Object.getOwnPropertyNames||function(e){return ui(e,ci)},{}),ko=(oo.f=Object.getOwnPropertySymbols,Er),li=T,fi=oo,pi=Nr,di=e([].concat),oo=ko("Reflect","ownKeys")||function(e){var t=li.f(pi(e)),r=fi.f;return r?di(t,r(e)):t},hi=yn,yi=oo,vi=s,gi=R,mi=g,wi=m,Ei=/#|\.prototype\./,bi=ho.normalize=function(e){return String(e).replace(Ei,".").toLowerCase()},Ti=ho.data={},_i=ho.NATIVE="N",Ri=ho.POLYFILL="P",ko=ho,Oi=h,Ii=s.f,Si=bn,Ni=ao,Ci=Rr,Ai=po,ki=ko,oo=!g(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),xi=yn,Pi=m,Ui=w,Mi=so("IE_PROTO"),Di=Object,Li=Di.prototype,oo=oo?Di.getPrototypeOf:function(e){e=Ui(e);if(xi(e,Mi))return e[Mi];var t=e.constructor;return Pi(t)&&e instanceof t?t.prototype:e instanceof Di?Li:null},ji=m,Fi=String,Vi=TypeError,Hi=e,Ki=Nr,zi=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=Hi(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return Ki(e),function(e){if("object"==typeof e||ji(e))return;throw Vi("Can't set "+Fi(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),Gi={},Bi=fo,qi=S,N=Object.keys||function(e){return Bi(e,qi)},$i=R,Xi=Nr,Yi=mr,Wi=N;Gi.f=r&&!vn?Object.defineProperties:function(e,t){Xi(e);for(var r,n=Yi(t),o=Wi(t),i=o.length,s=0;s<i;)$i.f(e,r=o[s++],n[r]);return e};function Ji(){}function Qi(e){e.write(ys("")),e.close();var t=e.parentWindow.Object;return e=null,t}function Zi(e,t){return _s(e),void 0===t?e:Rs?Os(e,t):function(){return e.apply(t,arguments)}}function es(e){return void 0!==e&&(Is.Array===e||Ns[Ss]===e)}function ts(e){if(null!=e)return Ms(e,Ls)||Ms(e,"@@iterator")||Ds[Us(e)]}function rs(e,t){if(t=arguments.length<2?Ks(e):t,Fs(t))return Vs(js(t,e));throw zs(Hs(e)+" is not iterable")}function ns(e,t,r){var n,o;Bs(e);try{if(!(n=qs(e,"return"))){if("throw"===t)throw r;return r}n=Gs(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return Bs(n),r}function os(e,t){this.stopped=e,this.result=t}function is(e,t,r){function n(e){return i&&ra(i,"normal",e),new os(!0,e)}function o(e){return p?(Ys(e),y?v(e[0],e[1],n):v(e[0],e[1])):y?v(e,n):v(e)}var i,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=$s(t,f);if(d)i=e.iterator;else if(h)i=e;else{if(!(r=ta(e)))throw na(Ws(e)+" is not iterable");if(Js(r)){for(s=0,a=Qs(e);s<a;s++)if((u=o(e[s]))&&Zs(oa,u))return u;return new os(!1)}i=ea(e,r)}for(c=(d?e:i).next;!(l=Xs(c,i)).done;){try{u=o(l.value)}catch(e){ra(i,"throw",e)}if("object"==typeof u&&u&&Zs(oa,u))return u}return new os(!1)}function ss(e){if("Symbol"===ia(e))throw TypeError("Cannot convert a Symbol value to a string");return sa(e)}function as(e,t){var r,n=2<arguments.length?arguments[2]:void 0,o=la(Ta,this);return pa?r=pa(new Ea,o?fa(this):Ta):(r=o?this:ha(Ta),ya(r,wa,"Error")),void 0!==t&&ya(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:aa(e)}(t)),ma&&ya(r,"stack",function(e,t){if(Es&&"string"==typeof e&&!gs.prepareStackTrace)for(;t--;)e=ms(e,ws,"");return e}(r.stack,1)),o=r,bs(t=n)&&"cause"in t&&Ts(o,"cause",t.cause),ga(e,ba,{that:n=[]}),ya(r,"errors",n),r}var us,N=Er("document","documentElement"),cs=Nr,ls=Gi,fs=S,vn=_o,ps=N,ds=Sr,hs=so("IE_PROTO"),ys=function(e){return"<script>"+e+"<\/script>"},vs=function(){try{us=new ActiveXObject("htmlfile")}catch(e){}var e,t;vs="undefined"==typeof document||document.domain&&us?Qi(us):((t=ds("iframe")).style.display="none",ps.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ys("document.F=Object")),e.close(),e.F);for(var r=fs.length;r--;)delete vs.prototype[fs[r]];return vs()},Gi=(vn[hs]=!0,Object.create||function(e,t){var r;return null!==e?(Ji.prototype=cs(e),r=new Ji,Ji.prototype=null,r[hs]=e):r=vs(),void 0===t?r:ls.f(r,t)}),gs=Error,ms=e("".replace),S=String(gs("zxcasd").stack),ws=/\n\s*at [^:]*:[^\n]*/,Es=ws.test(S),bs=wr,Ts=bn,_s=Tr,Rs=c,Os=e(e.bind),vn={},Is=vn,Ss=E("iterator"),Ns=Array.prototype,S={},S=(S[E("toStringTag")]="z","[object z]"===String(S)),C=S,Cs=m,As=vr,ks=E("toStringTag"),xs=Object,Ps="Arguments"==As(function(){return arguments}()),C=C?As: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=xs(e),ks))?t:Ps?As(e):"Object"==(t=As(e))&&Cs(e.callee)?"Arguments":t},Us=C,Ms=_r,Ds=vn,Ls=E("iterator"),js=o,Fs=Tr,Vs=Nr,Hs=br,Ks=ts,zs=TypeError,Gs=o,Bs=Nr,qs=_r,$s=Zi,Xs=o,Ys=Nr,Ws=br,Js=es,Qs=O,Zs=p,ea=rs,ta=ts,ra=ns,na=TypeError,oa=os.prototype,ia=C,sa=String,aa=ss,ua=yr,A=!g(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",ua(1,7)),7!==e.stack)}),ca=I,la=p,fa=oo,pa=zi,da=po,ha=Gi,ya=bn,va=yr,ga=is,ma=A,wa=E("toStringTag"),Ea=Error,ba=[].push,Ta=(pa?pa(as,Ea):da(as,Ea,{name:!0}),as.prototype=ha(Ea.prototype,{constructor:va(1,as),message:va(1,""),name:va(1,"AggregateError")})),A=(ca({global:!0,constructor:!0,arity:2},{AggregateError:as}),E),da=Gi,va=R.f,_a=A("unscopables"),Ra=Array.prototype;null==Ra[_a]&&va(Ra,_a,{configurable:!0,value:da(null)});function k(e){Ra[_a][e]=!0}var Oa,ca=g,A=m,va=oo,da=ao,Ia=E("iterator"),x=!1;[].keys&&("next"in(Aa=[].keys())?(va=va(va(Aa)))!==Object.prototype&&(Oa=va):x=!0);function Sa(e,t,r){(e=e&&!r?e.prototype:e)&&!xa(e,Pa)&&ka(e,Pa,{configurable:!0,value:t})}function Na(){return this}function Ca(e,t,r,n,o,i,s){var a=r,u=t,c=void 0;function l(e){if(e===o&&v)return v;if(!Qa&&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=Ma(Ua,{next:Da(+!c,n)}),La(a,u,!1),ja[u]=Fa;var f,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[Za]||h["@@iterator"]||o&&h[o],v=!Qa&&y||l(o);if((n="Array"==t&&h.entries||y)&&(a=za(n.call(new e)))!==Object.prototype&&a.next&&(za(a)!==Ja&&(Ga?Ga(a,Ja):Ka(a[Za])||$a(a,Za,Na)),Ba(a,c,!0)),Ya&&"values"==o&&y&&"values"!==y.name&&(Wa?qa(h,"name","values"):(d=!0,v=function(){return Ha(y,this)})),o)if(f={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},s)for(p in f)!Qa&&!d&&p in h||$a(h,p,f[p]);else Va({target:t,proto:!0,forced:Qa||d},f);return h[Za]!==v&&$a(h,Za,v,{name:o}),Xa[t]=v,f}A((Oa=null==Oa||ca(function(){var e={};return Oa[Ia].call(e)!==e})?{}:Oa)[Ia])||da(Oa,Ia,function(){return this});var Aa={IteratorPrototype:Oa,BUGGY_SAFARI_ITERATORS:x},ka=R.f,xa=yn,Pa=E("toStringTag"),Ua=Aa.IteratorPrototype,Ma=Gi,Da=yr,La=Sa,ja=vn,Fa=function(){return this},Va=I,Ha=o,Ka=m,za=oo,Ga=zi,Ba=Sa,qa=bn,$a=ao,Xa=vn,Ya=f.PROPER,Wa=f.CONFIGURABLE,Ja=Aa.IteratorPrototype,Qa=Aa.BUGGY_SAFARI_ITERATORS,Za=E("iterator"),eu=mr,va=k,A=vn,ca=b,da=R.f,x=Ca,f=r,tu=ca.set,ru=ca.getterFor("Array Iterator"),Aa=x(Array,"Array",function(e,t){tu(this,{type:"Array Iterator",target:eu(e),index:0,kind:t})},function(){var e=ru(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"),vn=A.Arguments=A.Array;if(va("keys"),va("values"),va("entries"),f&&"values"!==vn.name)try{da(vn,"name",{value:"values"})}catch(ae){}function nu(e){var e=cu(e),t=lu.f;fu&&e&&!e[pu]&&t(e,pu,{configurable:!0,get:function(){return this}})}function ou(e,t){if(du(t,e))return e;throw hu("Incorrect invocation")}function iu(){}function su(e){if(!yu(e))return!1;try{return wu(iu,mu,e),!0}catch(e){return!1}}function au(e){if(!yu(e))return!1;switch(vu(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Tu||!!bu(Eu,gu(e))}catch(e){return!0}}var uu=C,ca=(S||ao(Object.prototype,"toString",S?{}.toString:function(){return"[object "+uu(this)+"]"},{unsafe:!0}),"process"==vr(h.process)),cu=Er,lu=R,fu=r,pu=E("species"),du=p,hu=TypeError,x=e,A=g,yu=m,vu=C,gu=_,mu=[],wu=Er("Reflect","construct"),Eu=/^\s*(?:class|function)\b/,bu=x(Eu.exec),Tu=!Eu.exec(iu);au.sham=!0;function _u(e,t){var r,e=Cu(e).constructor;if(void 0===e||null==(r=Cu(e)[Au]))return t;if(Iu(e=r))return e;throw Nu(Su(e)+" is not a constructor")}var Ru,Ou,va=!wu||A(function(){var e;return su(su.call)||!su(Object)||!su(function(){e=!0})||e})?au:su,Iu=va,Su=br,Nu=TypeError,Cu=Nr,Au=E("species"),f=Function.prototype,ku=f.apply,xu=f.call,da="object"==typeof Reflect&&Reflect.apply||(c?xu.bind(ku):function(){return xu.apply(ku,arguments)}),vn=e([].slice),Pu=TypeError,S=/(?:ipad|iphone|ipod).*applewebkit/i.test(zr),Uu=h,Mu=da,p=Zi,Du=m,Lu=yn,C=g,ju=N,Fu=vn,Vu=Sr,x=S,A=ca,f=Uu.setImmediate,c=Uu.clearImmediate,Hu=Uu.process,Ku=Uu.Dispatch,zu=Uu.Function,N=Uu.MessageChannel,Gu=Uu.String,Bu=0,qu={};try{Ru=Uu.location}catch(ae){}function $u(e){return function(){Wu(e)}}function Xu(e){Wu(e.data)}function Yu(e){Uu.postMessage(Gu(e),Ru.protocol+"//"+Ru.host)}var Wu=function(e){var t;Lu(qu,e)&&(t=qu[e],delete qu[e],t())};f&&c||(f=function(e){var t=arguments.length,r=1;if(t<r)throw Pu("Not enough arguments");var n=Du(e)?e:zu(e),o=Fu(arguments,1);return qu[++Bu]=function(){Mu(n,void 0,o)},Ou(Bu),Bu},c=function(e){delete qu[e]},A?Ou=function(e){Hu.nextTick($u(e))}:Ku&&Ku.now?Ou=function(e){Ku.now($u(e))}:N&&!x?(x=(A=new N).port2,A.port1.onmessage=Xu,Ou=p(x.postMessage,x)):Uu.addEventListener&&Du(Uu.postMessage)&&!Uu.importScripts&&Ru&&"file:"!==Ru.protocol&&!C(Yu)?(Ou=Yu,Uu.addEventListener("message",Xu,!1)):Ou="onreadystatechange"in Vu("script")?function(e){ju.appendChild(Vu("script")).onreadystatechange=function(){ju.removeChild(this),Wu(e)}}:function(e){setTimeout($u(e),0)});function Ju(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function Qu(){this.head=null,this.tail=null}function Zu(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=Ec(r),this.reject=Ec(n)}var ec,tc,rc,nc,oc,ic,sc,N={set:f,clear:c},A=h,p=/ipad|iphone|ipod/i.test(zr)&&void 0!==A.Pebble,x=/web0s(?!.*chrome)/i.test(zr),C=h,f=Zi,c=s.f,ac=N.set,A=S,s=p,S=x,uc=ca,p=C.MutationObserver||C.WebKitMutationObserver,x=C.document,cc=C.process,lc=C.Promise,c=c(C,"queueMicrotask"),c=c&&c.value,S=(c||(ec=function(){var e,t;for(uc&&(e=cc.domain)&&e.exit();tc;){t=tc.fn,tc=tc.next;try{t()}catch(e){throw tc?nc():rc=void 0,e}}rc=void 0,e&&e.enter()},nc=A||uc||S||!p||!x?!s&&lc&&lc.resolve?((A=lc.resolve(void 0)).constructor=lc,sc=f(A.then,A),function(){sc(ec)}):uc?function(){cc.nextTick(ec)}:(ac=f(ac,C),function(){ac(ec)}):(oc=!0,ic=x.createTextNode(""),new p(ec).observe(ic,{characterData:!0}),function(){ic.data=oc=!oc})),c||function(e){e={fn:e,next:void 0};rc&&(rc.next=e),tc||(tc=e,nc()),rc=e}),fc=h,s=(Qu.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}},Qu),lc=h.Promise,A="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,f=!A&&!ca&&"object"==typeof window&&"object"==typeof document,C=h,pc=lc,x=m,p=ko,dc=_,c=E,hc=f,yc=A,vc=Gr,gc=(pc&&pc.prototype,c("species")),mc=!1,wc=x(C.PromiseRejectionEvent),_={CONSTRUCTOR:p("Promise",function(){var e=dc(pc),t=e!==String(pc);if(!t&&66===vc)return!0;if(!vc||vc<51||!/native code/.test(e)){var e=new pc(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[gc]=r,!(mc=e.then(function(){})instanceof r))return!0}return!t&&(hc||yc)&&!wc}),REJECTION_EVENT:wc,SUBCLASSING:mc},f={},Ec=Tr;f.f=function(e){return new Zu(e)};function bc(e,t){var r,n,o,i,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&&(i=t,Sc(Pc,Ic,function(){var e=i.facade;Oc?Bc.emit("rejectionHandled",e):Jc("rejectionhandled",e,i.value)})),t.rejection=1),!0===u?r=s:(f&&f.enter(),r=u(s),f&&(f.exit(),o=!0)),r===e.promise?l(zc("Promise-chain cycle")):(n=Yc(r))?Sc(n,r,c,l):c(r)):l(s)}catch(e){f&&!o&&f.exit(),l(e)}}var Tc,_c,Rc,A=I,Oc=ca,Ic=h,Sc=o,c=ao,x=zi,C=Sa,p=nu,Nc=Tr,Cc=m,Ac=wr,kc=ou,xc=_u,Pc=N.set,Uc=S,Mc=Ju,Dc=s,N=b,S=lc,s=f,P=_.CONSTRUCTOR,Lc=_.REJECTION_EVENT,jc=_.SUBCLASSING,Fc=N.getterFor("Promise"),Vc=N.set,N=S&&S.prototype,Hc=S,Kc=N,zc=Ic.TypeError,Gc=Ic.document,Bc=Ic.process,qc=s.f,$c=qc,Xc=!!(Gc&&Gc.createEvent&&Ic.dispatchEvent),Yc=function(e){var t;return!(!Ac(e)||!Cc(t=e.then))&&t},Wc=function(r,o){r.notified||(r.notified=!0,Uc(function(){for(var e,n,t=r.reactions;e=t.get();)bc(e,r);r.notified=!1,o&&!r.rejection&&(n=r,Sc(Pc,Ic,function(){var e,t=n.facade,r=n.value;if(Qc(n)&&(e=Mc(function(){Oc?Bc.emit("unhandledRejection",r,t):Jc("unhandledrejection",t,r)}),n.rejection=Oc||Qc(n)?2:1,e.error))throw e.value}))}))},Jc=function(e,t,r){var n;Xc?((n=Gc.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Ic.dispatchEvent(n)):n={promise:t,reason:r},!Lc&&(t=Ic["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=fc.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},Qc=function(e){return 1!==e.rejection&&!e.parent},Zc=function(t,r,n){return function(e){t(r,e,n)}},el=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,Wc(e,!0))},tl=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw zc("Promise can't be resolved itself");var n=Yc(e);n?Uc(function(){var t={done:!1};try{Sc(n,e,Zc(tl,t,r),Zc(el,t,r))}catch(e){el(t,e,r)}}):(r.value=e,r.state=1,Wc(r,!1))}catch(e){el({done:!1},e,r)}}};if(P&&(Kc=(Hc=function(e){kc(this,Kc),Nc(e),Sc(Tc,this);var t=Fc(this);try{e(Zc(tl,t),Zc(el,t))}catch(e){el(t,e)}}).prototype,(Tc=function(e){Vc(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new Dc,rejection:!1,state:0,value:void 0})}).prototype=c(Kc,"then",function(e,t){var r=Fc(this),n=qc(xc(this,Hc));return r.parent=!0,n.ok=!Cc(e)||e,n.fail=Cc(t)&&t,n.domain=Oc?Bc.domain:void 0,0==r.state?r.reactions.add(n):Uc(function(){bc(n,r)}),n.promise}),_c=function(){var e=new Tc,t=Fc(e);this.promise=e,this.resolve=Zc(tl,t),this.reject=Zc(el,t)},s.f=qc=function(e){return e===Hc||void 0===e?new _c:$c(e)},Cc(S)&&N!==Object.prototype)){Rc=N.then,jc||c(N,"then",function(e,t){var r=this;return new Hc(function(e,t){Sc(Rc,r,e,t)}).then(e,t)},{unsafe:!0});try{delete N.constructor}catch(ae){}x&&x(N,Kc)}A({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:Hc}),C(Hc,"Promise",!1),p("Promise");var rl=E("iterator"),nl=!1;try{var ol=0,il={next:function(){return{done:!!ol++}},return:function(){nl=!0}};il[rl]=function(){return this},Array.from(il,function(){throw 2})}catch(ae){}function sl(e,t){if(!t&&!nl)return!1;var r=!1;try{var n={};n[rl]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function al(e,t){return Rl(e),Ol(t)&&t.constructor===e?t:((0,(e=Il.f(e)).resolve)(t),e.promise)}function ul(o){return function(e,t){var r,e=Bl(ql(e)),t=Gl(t),n=e.length;return t<0||n<=t?o?"":void 0:(r=Xl(e,t))<55296||56319<r||t+1===n||(n=Xl(e,t+1))<56320||57343<n?o?$l(e,t):r:o?Yl(e,t,t+2):n-56320+(r-55296<<10)+65536}}function cl(e,t){if(e){if(e[of]!==af)try{nf(e,of,af)}catch(t){e[of]=af}if(e[sf]||nf(e,sf,t),tf[t])for(var r in rf)if(e[r]!==rf[r])try{nf(e,r,rf[r])}catch(t){e[r]=rf[r]}}}var ll,fl=lc,s=_.CONSTRUCTOR||!sl(function(e){fl.all(e).then(void 0,function(){})}),pl=o,dl=Tr,hl=f,yl=Ju,vl=is,S=(I({target:"Promise",stat:!0,forced:s},{all:function(e){var a=this,t=hl.f(a),u=t.resolve,c=t.reject,r=yl(function(){var n=dl(a.resolve),o=[],i=0,s=1;vl(e,function(e){var t=i++,r=!1;s++,pl(n,a,e).then(function(e){r||(r=!0,o[t]=e,--s||u(o))},c)}),--s||u(o)});return r.error&&c(r.value),t.promise}}),I),jc=lc,c=Er,x=m,N=ao,A=jc&&jc.prototype,gl=(S({target:"Promise",proto:!0,forced:_.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),x(jc)&&(P=c("Promise").prototype.catch,A.catch!==P&&N(A,"catch",P,{unsafe:!0})),o),ml=Tr,wl=f,El=Ju,bl=is,Tl=(I({target:"Promise",stat:!0,forced:s},{race:function(e){var r=this,n=wl.f(r),o=n.reject,t=El(function(){var t=ml(r.resolve);bl(e,function(e){gl(t,r,e).then(n.resolve,o)})});return t.error&&o(t.value),n.promise}}),o),_l=f,Rl=(I({target:"Promise",stat:!0,forced:_.CONSTRUCTOR},{reject:function(e){var t=_l.f(this);return Tl(t.reject,void 0,e),t.promise}}),Nr),Ol=wr,Il=f,C=I,p=_.CONSTRUCTOR,Sl=al,Nl=(Er("Promise"),C({target:"Promise",stat:!0,forced:p},{resolve:function(e){return Sl(this,e)}}),o),Cl=Tr,Al=f,kl=Ju,xl=is,Pl=(I({target:"Promise",stat:!0},{allSettled:function(e){var a=this,t=Al.f(a),u=t.resolve,r=t.reject,n=kl(function(){var n=Cl(a.resolve),o=[],i=0,s=1;xl(e,function(e){var t=i++,r=!1;s++,Nl(n,a,e).then(function(e){r||(r=!0,o[t]={status:"fulfilled",value:e},--s||u(o))},function(e){r||(r=!0,o[t]={status:"rejected",reason:e},--s||u(o))})}),--s||u(o)});return n.error&&r(n.value),t.promise}}),o),Ul=Tr,Ml=Er,Dl=f,Ll=Ju,jl=is,il=(I({target:"Promise",stat:!0},{any:function(e){var u=this,c=Ml("AggregateError"),t=Dl.f(u),l=t.resolve,f=t.reject,r=Ll(function(){var n=Ul(u.resolve),o=[],i=0,s=1,a=!1;jl(e,function(e){var t=i++,r=!1;s++,Pl(n,u,e).then(function(e){r||a||(a=!0,l(e))},function(e){r||a||(r=!0,o[t]=e,--s||f(new c(o,"No one promise resolved")))})}),--s||f(new c(o,"No one promise resolved"))});return r.error&&f(r.value),t.promise}}),I),S=lc,x=g,Fl=Er,Vl=m,Hl=_u,Kl=al,jc=ao,zl=S&&S.prototype,N=(il({target:"Promise",proto:!0,real:!0,forced:!!S&&x(function(){zl.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=Hl(this,Fl("Promise")),e=Vl(t);return this.then(e?function(e){return Kl(r,t()).then(function(){return e})}:t,e?function(e){return Kl(r,t()).then(function(){throw e})}:t)}}),Vl(S)&&(c=Fl("Promise").prototype.finally,zl.finally!==c&&jc(zl,"finally",c,{unsafe:!0})),e),Gl=uo,Bl=ss,ql=gr,$l=N("".charAt),Xl=N("".charCodeAt),Yl=N("".slice),Wl=(ul(!1),ul(!0)),Jl=ss,A=b,P=Ca,Ql=A.set,Zl=A.getterFor("String Iterator"),s=(P(String,"String",function(e){Ql(this,{type:"String Iterator",string:Jl(e),index:0})},function(){var e=Zl(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=Wl(t,r),e.index+=t.length,{value:t,done:!1})}),h),_=(s.Promise,Sr("span").classList),C=_&&_.constructor&&_.constructor.prototype,p=C===Object.prototype?void 0:C,ef=h,tf={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},lc=p,rf=Aa,nf=bn,il=E,of=il("iterator"),sf=il("toStringTag"),af=rf.values;for(ll in tf)cl(ef[ll]&&ef[ll].prototype,ll);cl(lc,"DOMTokenList");function uf(e,t,r){(t=Pf(t))in e?Uf.f(e,t,Mf(0,r)):e[t]=r}function cf(e){if(9007199254740991<e)throw Zf("Maximum allowed index exceeded");return e}function lf(e,t){return ep(e=e)&&(r=e.constructor,(tp(r)&&(r===op||ep(r.prototype))||rp(r)&&null===(r=r[np]))&&(r=void 0)),new(void 0===r?op:r)(0===t?0:t);var r}function ff(t){return 51<=sp||!ip(function(){var e=[];return(e.constructor={})[ap]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function pf(e,t){if(!delete e[t])throw gp("Cannot delete property "+vp(t)+" of "+vp(e))}function df(p){var d=1==p,h=2==p,y=3==p,v=4==p,g=6==p,m=7==p,w=5==p||g;return function(e,t,r,n){for(var o,i,s=Op(e),a=Rp(s),u=_p(t,r),c=Ip(a),l=0,t=n||Sp,f=d?t(e,c):h||m?t(e,0):void 0;l<c;l++)if((w||l in a)&&(i=u(o=a[l],l,s),p))if(d)f[l]=i;else if(i)switch(p){case 3:return!0;case 5:return o;case 6:return l;case 2:Np(f,o)}else switch(p){case 4:return!1;case 7:Np(f,o)}return g?-1:y||v?v:f}}function hf(e,t){var r=[][e];return!!r&&Cp(function(){r.call(null,t||function(){return 1},1)})}function yf(u){var c=1==u;return function(e,t,r){for(var n,o=Hp(e),i=Vp(o),s=Fp(t,r),a=Kp(i);0<a--;)if(s(n=i[a],a,o))switch(u){case 0:return n;case 1:return a}return c?-1:void 0}}function vf(e,t,r,n,o,i,s,a){for(var u,c,l=o,f=0,p=!!s&&Xp(s,a);f<n;)f in r&&(u=p?p(r[f],f,t):r[f],0<i&&Bp(u)?(c=qp(u),l=vf(e,t,u,c,l,i-1)-1):($p(l+1),e[l]=u),l++),f++;return l}function gf(c){return function(e,t,r,n){_d(t);var o=Rd(e),i=Od(o),s=Id(o),a=c?s-1:0,u=c?-1:1;if(r<2)for(;;){if(a in i){n=i[a],a+=u;break}if(a+=u,c?a<0:s<=a)throw Sd("Reduce of empty array with no initial value")}for(;c?0<=a:a<s;a+=u)a in i&&(n=t(n,i[a],a,o));return n}}function mf(e,t,r){for(var n=Bd(e),o=Gd(t,n),i=Gd(void 0===r?n:r,n),s=$d(Xd(i-o,0)),a=0;o<i;o++,a++)qd(s,a,e[o]);return s.length=a,s}function wf(e,t){var r=e.length,n=Wd(r/2);if(r<8){for(var o,i,s=e,a=t,u=s.length,c=1;c<u;){for(o=s[i=c];i&&0<a(s[i-1],o);)s[i]=s[--i];i!==c++&&(s[i]=o)}return s}for(var l=e,f=wf(Yd(e,0,n),t),p=wf(Yd(e,n),t),d=t,h=f.length,y=p.length,v=0,g=0;v<h||g<y;)l[v+g]=v<h&&g<y?d(f[v],p[g])<=0?f[v++]:p[g++]:v<h?f[v++]:p[g++];return l}function Ef(e){jh(e,Gh,{value:{objectID:"O"+Bh++,weakData:{}}})}function bf(e,t,r){for(var n in t)ty(e,n,t[n],r);return e}var Tf,_f,Rf,Of,If,Sf,Nf,Cf=f,Af=Ju,kf=(I({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Cf.f(this),e=Af(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),Nr),xf=ns,Pf=Ir,Uf=R,Mf=yr,Df=Zi,Lf=o,jf=w,Ff=es,Vf=va,Hf=O,Kf=uf,zf=rs,Gf=ts,Bf=Array,qf=(I({target:"Array",stat:!0,forced:!sl(function(e){Array.from(e)})},{from:function(e){var t=jf(e),e=Vf(this),r=arguments.length,n=1<r?arguments[1]:void 0,o=void 0!==n;o&&(n=Df(n,2<r?arguments[2]:void 0));var i,s,a,u,c,l,r=Gf(t),f=0;if(!r||this===Bf&&Ff(r))for(i=Hf(t),s=e?new this(i):Bf(i);f<i;f++)l=o?n(t[f],f):t[f],Kf(s,f,l);else for(c=(u=zf(t,r)).next,s=e?new this:[];!(a=Lf(c,u)).done;f++)l=o?function(e,t,r,n){try{return n?t(kf(r)[0],r[1]):t(r)}catch(t){xf(e,"throw",t)}}(u,n,[a.value,f],!0):a.value,Kf(s,f,l);return s.length=f,s}}),vr),x=Array.isArray||function(e){return"Array"==qf(e)},$f=(I({target:"Array",stat:!0},{isArray:x}),va),Xf=uf,Yf=Array,Wf=(I({target:"Array",stat:!0,forced:g(function(){function e(){}return!(Yf.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new($f(this)?this:Yf)(t);e<t;)Xf(r,e,arguments[e++]);return r.length=t,r}}),w),Jf=O,Qf=uo,S=k,Zf=(I({target:"Array",proto:!0},{at:function(e){var t=Wf(this),r=Jf(t),e=Qf(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),S("at"),TypeError),ep=x,tp=va,rp=wr,np=E("species"),op=Array,ip=g,sp=Gr,ap=E("species"),jc=I,c=g,up=x,cp=wr,lp=w,fp=O,pp=cf,dp=uf,hp=lf,N=ff,A=Gr,yp=E("isConcatSpreadable"),P=51<=A||!c(function(){var e=[];return e[yp]=!1,e.concat()[0]!==e}),_=N("concat"),vp=(jc({target:"Array",proto:!0,arity:1,forced:!P||!_},{concat:function(e){for(var t,r,n,o=lp(this),i=hp(o,0),s=0,a=-1,u=arguments.length;a<u;a++)if(function(e){if(!cp(e))return!1;var t=e[yp];return void 0!==t?!!t:up(e)}(n=-1===a?o:arguments[a]))for(r=fp(n),pp(s+r),t=0;t<r;t++,s++)t in n&&dp(i,s,n[t]);else pp(s+1),dp(i,s++,n);return i.length=s,i}}),br),gp=TypeError,mp=w,wp=co,Ep=O,bp=pf,Tp=Math.min,C=k,_p=(I({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=mp(this),n=Ep(r),o=wp(e,n),i=wp(t,n),e=2<arguments.length?arguments[2]:void 0,s=Tp((void 0===e?n:wp(e,n))-i,n-o),a=1;for(i<o&&o<i+s&&(a=-1,i+=s-1,o+=s-1);0<s--;)i in r?r[o]=r[i]:bp(r,o),o+=a,i+=a;return r}}),C("copyWithin"),Zi),Rp=Cr,Op=w,Ip=O,Sp=lf,Np=e([].push),p={forEach:df(0),map:df(1),filter:df(2),some:df(3),every:df(4),find:df(5),findIndex:df(6),filterReject:df(7)},Cp=g,Ap=p.every,kp=(I({target:"Array",proto:!0,forced:!hf("every")},{every:function(e){return Ap(this,e,1<arguments.length?arguments[1]:void 0)}}),w),xp=co,Pp=O,Aa=k,Up=(I({target:"Array",proto:!0},{fill:function(e){for(var t=kp(this),r=Pp(t),n=arguments.length,o=xp(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,i=void 0===n?r:xp(n,r);o<i;)t[o++]=e;return t}}),Aa("fill"),p.filter),bn=(I({target:"Array",proto:!0,forced:!ff("filter")},{filter:function(e){return Up(this,e,1<arguments.length?arguments[1]:void 0)}}),I),Mp=p.find,il=k,Dp=!0,lc=("find"in[]&&Array(1).find(function(){Dp=!1}),bn({target:"Array",proto:!0,forced:Dp},{find:function(e){return Mp(this,e,1<arguments.length?arguments[1]:void 0)}}),il("find"),I),Lp=p.findIndex,f=k,jp=!0,Fp=("findIndex"in[]&&Array(1).findIndex(function(){jp=!1}),lc({target:"Array",proto:!0,forced:jp},{findIndex:function(e){return Lp(this,e,1<arguments.length?arguments[1]:void 0)}}),f("findIndex"),Zi),Vp=Cr,Hp=w,Kp=O,S={findLast:yf(0),findLastIndex:yf(1)},zp=S.findLast,A=k,Gp=(I({target:"Array",proto:!0},{findLast:function(e){return zp(this,e,1<arguments.length?arguments[1]:void 0)}}),A("findLast"),S.findLastIndex),c=k,Bp=(I({target:"Array",proto:!0},{findLastIndex:function(e){return Gp(this,e,1<arguments.length?arguments[1]:void 0)}}),c("findLastIndex"),x),qp=O,$p=cf,Xp=Zi,N=vf,Yp=N,Wp=w,Jp=O,Qp=uo,Zp=lf,ed=(I({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Wp(this),r=Jp(t),n=Zp(t,0);return n.length=Yp(n,t,t,r,0,void 0===e?1:Qp(e)),n}}),N),td=Tr,rd=w,nd=O,od=lf,id=(I({target:"Array",proto:!0},{flatMap:function(e){var t,r=rd(this),n=nd(r);return td(e),(t=od(r,0)).length=ed(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),p.forEach),jc=hf("forEach")?[].forEach:function(e){return id(this,e,1<arguments.length?arguments[1]:void 0)},sd=(I({target:"Array",proto:!0,forced:[].forEach!=jc},{forEach:jc}),Co.includes),P=k,_=(I({target:"Array",proto:!0,forced:g(function(){return!Array(1).includes()})},{includes:function(e){return sd(this,e,1<arguments.length?arguments[1]:void 0)}}),P("includes"),I),ad=Co.indexOf,C=hf,ud=e([].indexOf),cd=!!ud&&1/ud([1],1,-0)<0,Aa=C("indexOf"),bn=(_({target:"Array",proto:!0,forced:cd||!Aa},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return cd?ud(this,e,t)||0:ad(this,e,t)}}),I),il=Cr,ld=mr,lc=hf,fd=e([].join),f=il!=Object,A=lc("join",","),pd=(bn({target:"Array",proto:!0,forced:f||!A},{join:function(e){return fd(ld(this),void 0===e?",":e)}}),da),dd=mr,hd=uo,yd=O,S=hf,vd=Math.min,gd=[].lastIndexOf,md=!!gd&&1/[1].lastIndexOf(1,-0)<0,c=S("lastIndexOf"),N=md||!c?function(e){if(md)return pd(gd,this,arguments)||0;var t=dd(this),r=yd(t),n=r-1;for((n=1<arguments.length?vd(n,hd(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:gd,wd=(I({target:"Array",proto:!0,forced:N!==[].lastIndexOf},{lastIndexOf:N}),p.map),jc=(I({target:"Array",proto:!0,forced:!ff("map")},{map:function(e){return wd(this,e,1<arguments.length?arguments[1]:void 0)}}),I),Ed=w,bd=O,Td=cf,P=g(function(){return 4294967297!==[].push.call({length:4294967296},1)}),Co=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),_d=(jc({target:"Array",proto:!0,arity:1,forced:P||Co},{push:function(e){var t=Ed(this),r=bd(t),n=arguments.length;Td(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return t.length=r}}),Tr),Rd=w,Od=Cr,Id=O,Sd=TypeError,C={left:gf(!1),right:gf(!0)},Nd=C.left,_=Gr,Aa=ca,Cd=(I({target:"Array",proto:!0,forced:!hf("reduce")||!Aa&&79<_&&_<83},{reduce:function(e){var t=arguments.length;return Nd(this,e,t,1<t?arguments[1]:void 0)}}),C.right),il=Gr,lc=ca,bn=(I({target:"Array",proto:!0,forced:!hf("reduceRight")||!lc&&79<il&&il<83},{reduceRight:function(e){return Cd(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),I),Ad=x,kd=e([].reverse),f=[1,2],A=(bn({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){return Ad(this)&&(this.length=this.length),kd(this)}}),I),xd=x,Pd=va,Ud=wr,Md=co,Dd=O,Ld=mr,jd=uf,da=E,Fd=vn,S=ff("slice"),Vd=da("species"),Hd=Array,Kd=Math.max,zd=(A({target:"Array",proto:!0,forced:!S},{slice:function(e,t){var r,n,o,i=Ld(this),s=Dd(i),a=Md(e,s),u=Md(void 0===t?s:t,s);if(xd(i)&&(r=i.constructor,(r=Pd(r)&&(r===Hd||xd(r.prototype))||Ud(r)&&null===(r=r[Vd])?void 0:r)===Hd||void 0===r))return Fd(i,a,u);for(n=new(void 0===r?Hd:r)(Kd(u-a,0)),o=0;a<u;a++,o++)a in i&&jd(n,o,i[a]);return n.length=o,n}}),p.some),Gd=(I({target:"Array",proto:!0,forced:!hf("some")},{some:function(e){return zd(this,e,1<arguments.length?arguments[1]:void 0)}}),co),Bd=O,qd=uf,$d=Array,Xd=Math.max,Yd=mf,Wd=Math.floor,c=wf,N=zr.match(/firefox\/(\d+)/i),jc=!!N&&+N[1],P=/MSIE|Trident/.test(zr),Co=zr.match(/AppleWebKit\/(\d+)\./),Aa=!!Co&&+Co[1],_=I,C=e,Jd=Tr,Qd=w,Zd=O,eh=pf,th=ss,ca=g,rh=c,lc=hf,nh=jc,oh=P,ih=Gr,sh=Aa,ah=[],uh=C(ah.sort),ch=C(ah.push),il=ca(function(){ah.sort(void 0)}),bn=ca(function(){ah.sort(null)}),f=lc("sort"),lh=!ca(function(){if(ih)return ih<70;if(!(nh&&3<nh)){if(oh)return!0;if(sh)return sh<603;for(var e,t,r,n="",o=65;o<76;o++){switch(e=String.fromCharCode(o),o){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++)ah.push({k:e+r,v:t})}for(ah.sort(function(e,t){return t.v-e.v}),r=0;r<ah.length;r++)e=ah[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),vn=(_({target:"Array",proto:!0,forced:il||!bn||!f||!lh},{sort:function(e){void 0!==e&&Jd(e);var t=Qd(this);if(lh)return void 0===e?uh(t):uh(t,e);for(var r,n,o=[],i=Zd(t),s=0;s<i;s++)s in t&&ch(o,t[s]);for(rh(o,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:th(e)>th(t)?1:-1})),r=o.length,s=0;s<r;)t[s]=o[s++];for(;s<i;)eh(t,s++);return t}}),nu("Array"),I),fh=w,ph=co,dh=uo,hh=O,yh=cf,vh=lf,gh=uf,mh=pf,da=ff("splice"),wh=Math.max,Eh=Math.min,A=(vn({target:"Array",proto:!0,forced:!da},{splice:function(e,t){var r,n,o,i,s,a,u=fh(this),c=hh(u),l=ph(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-l):(r=e-2,Eh(wh(dh(t),0),c-l)),yh(c+r-n),o=vh(u,n),i=0;i<n;i++)(s=l+i)in u&&gh(o,i,u[s]);if(r<(o.length=n)){for(i=l;i<c-n;i++)a=i+r,(s=i+n)in u?u[a]=u[s]:mh(u,a);for(i=c;c-n+r<i;i--)mh(u,i-1)}else if(n<r)for(i=c-n;l<i;i--)a=i+r-1,(s=i+n-1)in u?u[a]=u[s]:mh(u,a);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return u.length=c-n+r,o}}),k("flat"),k("flatMap"),I),bh=w,Th=O,_h=pf,Rh=cf,S=1!==[].unshift(0),N=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),zr=(A({target:"Array",proto:!0,arity:1,forced:S||N},{unshift:function(e){var t=bh(this),r=Th(t),n=arguments.length;if(n){Rh(r+n);for(var o=r;o--;){var i=o+n;o in t?t[i]=t[o]:_h(t,i)}for(var s=0;s<n;s++)t[s]=arguments[s]}return t.length=r+n}}),s.Array,{exports:{}}),Co={},Oh=vr,Ih=mr,Sh=T.f,Nh=mf,Ch="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=(Co.f=function(e){if(!Ch||"Window"!=Oh(e))return Sh(Ih(e));var t=e;try{return Sh(t)}catch(t){return Nh(Ch)}},g(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),jc=g,Ah=wr,kh=vr,xh=c,Ph=Object.isExtensible,P=jc(function(){Ph(1)})||xh?function(e){return!!Ah(e)&&(!xh||"ArrayBuffer"!=kh(e))&&(!Ph||Ph(e))}:Ph,Gr=!g(function(){return Object.isExtensible(Object.preventExtensions({}))}),Uh=I,Mh=e,Aa=_o,Dh=wr,Lh=yn,jh=R.f,Fh=T,Vh=Co,Hh=P,Kh=Gr,zh=!1,Gh=Or("meta"),Bh=0,qh=zr.exports={enable:function(){qh.enable=function(){},zh=!0;var o=Fh.f,i=Mh([].splice),e={};e[Gh]=1,o(e).length&&(Fh.f=function(e){for(var t=o(e),r=0,n=t.length;r<n;r++)if(t[r]===Gh){i(t,r,1);break}return t},Uh({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Vh.f}))},fastKey:function(e,t){if(!Dh(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Lh(e,Gh)){if(!Hh(e))return"F";if(!t)return"E";Ef(e)}return e[Gh].objectID},getWeakData:function(e,t){if(!Lh(e,Gh)){if(!Hh(e))return!0;if(!t)return!1;Ef(e)}return e[Gh].weakData},onFreeze:function(e){return Kh&&zh&&Hh(e)&&!Lh(e,Gh)&&Ef(e),e}},$h=(Aa[Gh]=!0,m),Xh=wr,Yh=zi,C=I,lc=h,Wh=e,ca=ko,Jh=ao,_=zr.exports,Qh=is,Zh=ou,il=m,ey=wr,bn=g,f=sl,vn=Sa,ty=ao,ry=R.f,ny=Gi,oy=bf,iy=Zi,sy=ou,ay=is,uy=Ca,cy=nu,ly=r,fy=zr.exports.fastKey,py=b.set,dy=b.getterFor;function hy(e){var r=Wh(Sf[e]);Jh(Sf,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(Rf&&!ey(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return Rf&&!ey(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(Rf&&!ey(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}da=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},A={getConstructor:function(e,r,n,o){function i(e,t,r){var n,o=u(e),i=s(e,t);return i?i.value=r:(o.last=i={index:n=fy(t,!0),key:t,value:r,previous:t=o.last,next:void 0,removed:!1},o.first||(o.first=i),t&&(t.next=i),ly?o.size++:e.size++,"F"!==n&&(o.index[n]=i)),e}function s(e,t){var r,e=u(e),n=fy(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){sy(e,a),py(e,{type:r,index:ny(null),first:void 0,last:void 0,size:0}),ly||(e.size=0),null!=t&&ay(t,e[o],{that:e,AS_ENTRIES:n})}),a=e.prototype,u=dy(r);return oy(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,ly?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),ly?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=iy(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)}}),oy(a,n?{get:function(e){e=s(this,e);return e&&e.value},set:function(e,t){return i(this,0===e?0:e,t)}}:{add:function(e){return i(this,e=0===e?0:e,e)}}),ly&&ry(a,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",o=dy(t),i=dy(n);uy(e,t,function(e,t){py(this,{type:n,target:e,state:o(e),kind:t,last:void 0})},function(){for(var e=i(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),cy(t)}},_f=-1!==(S="Map").indexOf("Map"),Rf=-1!==S.indexOf("Weak"),Of=_f?"set":"add",If=lc.Map,Sf=If&&If.prototype,N={},ca(S,!il(Nf=If)||!(Rf||Sf.forEach&&!bn(function(){(new If).entries().next()})))?(Nf=A.getConstructor(da,S,_f,Of),_.enable()):ca(S,!0)&&(s=(Tf=new Nf)[Of](Rf?{}:-0,1)!=Tf,c=bn(function(){Tf.has(1)}),jc=f(function(e){new If(e)}),_o=!Rf&&bn(function(){for(var e=new If,t=5;t--;)e[Of](t,t);return!e.has(-0)}),jc||(((Nf=da(function(e,t){Zh(e,Sf);r=new If,e=e,n=Nf,Yh&&$h(e=e.constructor)&&e!==n&&Xh(e=e.prototype)&&e!==n.prototype&&Yh(r,e);var r,n=r;return null!=t&&Qh(t,n[Of],{that:n,AS_ENTRIES:_f}),n})).prototype=Sf).constructor=Nf),(c||_o)&&(hy("delete"),hy("has"),_f&&hy("get")),(_o||s)&&hy(Of),Rf&&Sf.clear&&delete Sf.clear),N.Map=Nf,C({global:!0,constructor:!0,forced:Nf!=If},N),vn(Nf,S),Rf||A.setStrong(Nf,S,_f);function yy(e,t){for(var r=0,n=wy(t),o=new e(n);r<n;)o[r]=t[r++];return o}function vy(e,t,r,n){for(var o,i,s,a=Ty(e),u=by(a),c=Ey(t,r),l=Oy(null),f=Ry(u),p=0;p<f;p++)s=u[p],(i=_y(c(s,p,a)))in l?Ny(l[i],s):l[i]=[s];if(n&&(o=n(a))!==Sy)for(i in l)l[i]=Iy(o,l[i]);return l}function gy(e){for(var t,r,n=Py(this),o=xy(n),i=ky(e,1<arguments.length?arguments[1]:void 0),s=new My,a=Uy(o),u=0;u<a;u++)t=i(r=o[u],u,n),Ly(s,t)?Fy(Dy(s,t),r):jy(s,t,[r]);return s}function my(e){return zy[e].prototype}var wy=O,Ey=Zi,by=Cr,Ty=w,_y=Ir,Ry=O,Oy=Gi,Iy=yy,Sy=Array,Ny=e([].push),Cy=vy,yn=k,Ay=(I({target:"Array",proto:!0},{group:function(e){return Cy(this,e,1<arguments.length?arguments[1]:void 0)}}),yn("group"),vy),T=k,ky=(I({target:"Array",proto:!0,forced:!hf("groupBy")},{groupBy:function(e){return Ay(this,e,1<arguments.length?arguments[1]:void 0)}}),T("groupBy"),Zi),Co=e,xy=Cr,Py=w,Uy=O,My=Er("Map"),P=My.prototype,Dy=Co(P.get),Ly=Co(P.has),jy=Co(P.set),Fy=Co([].push),Gr=k,Aa=gy,zi=(I({target:"Array",proto:!0,name:"groupToMap",forced:!hf("groupByToMap")},{groupByToMap:Aa}),Gr("groupByToMap"),k),Vy=(I({target:"Array",proto:!0},{groupToMap:gy}),zi("groupToMap"),O),Hy=mr,ko=k,Ky=Array,zy=(I({target:"Array",proto:!0},{toReversed:function(){for(var e=Hy(this),t=Ky,r=Vy(e),n=new t(r),o=0;o<r;o++)n[o]=e[r-o-1];return n}}),ko("toReversed"),h),zr=I,Gy=Tr,By=mr,qy=yy,lc=k,$y=Array,Xy=e(my("Array").sort),ca=(zr({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&Gy(e);var t=By(this),t=qy($y,t);return Xy(t,e)}}),lc("toSorted"),I),f=k,Yy=cf,Wy=O,Jy=co,Qy=mr,Zy=uo,ev=Array,tv=Math.max,rv=Math.min,nv=(ca({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,o,i,s=Qy(this),a=Wy(s),u=Jy(e,a),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,a-u):(r=e-2,rv(tv(Zy(t),0),a-u)),o=Yy(a+r-n),i=ev(o);c<u;c++)i[c]=s[c];for(;c<u+r;c++)i[c]=arguments[c-u+2];for(;c<o;c++)i[c]=s[c+n-r];return i}}),f("toSpliced"),O),ov=uo,iv=RangeError,sv=mr,av=Array;I({target:"Array",proto:!0},{with:function(e,t){var r=sv(this),n=av,o=t,i=nv(r),s=(e=ov(e))<0?i+e:e;if(i<=s||s<0)throw iv("Incorrect index");for(var a=new n(i),u=0;u<i;u++)a[u]=u===s?o:r[u];return a}});bn=h,jc=cn,da=m,c=oo,_o=ao,s=E("asyncIterator"),C=bn.AsyncIterator,N=jc.AsyncIteratorPrototype;if(N)Ng=N;else if(da(C))Ng=C.prototype;else if(jc.USE_FUNCTION_CONSTRUCTOR||bn.USE_FUNCTION_CONSTRUCTOR)try{Sg=c(c(c(Function("return async function*(){}()")()))),c(Sg)===Object.prototype&&(Ng=Sg)}catch(ae){}da((Ng=Ng||{})[s])||_o(Ng,s,function(){return this});function uv(e,t,r){var n=e.done;gv.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function cv(e){mv(this,{type:"AsyncFromSyncIterator",iterator:yv(e),next:e.next})}function lv(e,t,r,n){try{var o=Av(e,"return");if(o)return Cv("Promise").resolve(Nv(o,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function fv(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,s,a){var e={iterator:e,next:Iv(Sv(e).next)},u=Mv("Promise"),c=e.iterator,t=e.next,l=0,f=void 0!==s;return!f&&p||xv(s),new u(function(r,n){var o=function(e){lv(c,n,e,n)},i=function(){try{if(p&&f)try{Uv(l)}catch(e){o(e)}u.resolve(Pv(kv(t,c))).then(function(e){try{if(Pv(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)i();else if(h)e?i():lv(c,r,!1,n);else if(p)try{a[l++]=e,i()}catch(e){o(e)}else e?lv(c,r,y||t,n):i()},o):(a[l++]=t,i())}catch(e){o(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};i()})}}function pv(e,t){if(!Wv||!Yv(e)||!Wv(e))return!1;for(var r,n=0,o=e.length;n<o;)if(!("string"==typeof(r=e[n++])||t&&void 0===r))return!1;return 0!==o}function dv(e,t,r){r.get&&Jv(r.get,t,{getter:!0}),r.set&&Jv(r.set,t,{setter:!0}),Qv.f(e,t,r)}var hv=o,yv=Nr,vn=Gi,vv=_r,A=bf,S=b,yn=Ng,gv=Er("Promise"),mv=S.set,wv=S.getterFor("AsyncFromSyncIterator"),T=(cv.prototype=A(vn(yn),{next:function(){var n=wv(this);return new gv(function(e,t){var r=yv(hv(n.next,n.iterator));uv(r,e,t)})},return:function(){var n=wv(this).iterator;return new gv(function(e,t){var r=vv(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=yv(hv(r,n));uv(r,e,t)})}}),cv),Ev=o,bv=T,Tv=Nr,_v=rs,Rv=_r,Ov=E("asyncIterator"),Iv=Tr,Sv=Nr,Nv=o,Cv=Er,Av=_r,kv=o,xv=Tr,Pv=Nr,Uv=cf,Mv=Er,Cr={toArray:fv(0),forEach:fv(1),every:fv(2),some:fv(3),find:fv(4)},Dv=Zi,Lv=w,jv=va,Fv=rs,Vv=ts,Hv=_r,P=my,Kv=Er,zv=T,Gv=Cr.toArray,Bv=E("asyncIterator"),qv=P("Array").values,$v=(I({target:"Array",stat:!0,forced:!0},{fromAsync:function(i){var s=this,e=arguments.length,a=1<e?arguments[1]:void 0,u=2<e?arguments[2]:void 0;return new(Kv("Promise"))(function(e){var t=Lv(i),r=(void 0!==a&&(a=Dv(a,u)),Hv(t,Bv)),n=r?void 0:Vv(t)||qv,o=jv(s)?new s:[],r=r?function(e,t){t=arguments.length<2?Rv(e,Ov):t;return t?Tv(Ev(t,e)):new bv(_v(e))}(t,r):new zv(Fv(t,n));e(Gv(r,a,o))})}}),p.filterReject),Co=k,Xv=(I({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return $v(this,e,1<arguments.length?arguments[1]:void 0)}}),Co("filterOut"),p.filterReject),Aa=k,Gr=(I({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return Xv(this,e,1<arguments.length?arguments[1]:void 0)}}),Aa("filterReject"),I),Yv=x,Wv=Object.isFrozen,Jv=(Gr({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!pv(e,!0))return!1;var t=e.raw;return t.length===e.length&&pv(t,!1)}}),Wr.exports),Qv=R,zi=k,Zv=w,eg=O,ko=(r&&(dv(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=Zv(this),t=eg(e);return 0==t?void 0:e[t-1]},set:function(e){var t=Zv(this),r=eg(t);return t[0==r?0:r-1]=e}}),zi("lastItem")),k),tg=w,rg=O,zr=(r&&(dv(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=tg(this),e=rg(e);return 0==e?0:e-1}}),ko("lastIndex")),e),ng=Tr,og=O,ig=w,sg=lf,ag=Er("Map"),lc=ag.prototype,ug=zr(lc.forEach),cg=zr(lc.has),lg=zr(lc.set),fg=zr([].push),ca=k;I({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=ig(this),o=og(n),i=sg(n,0),s=new ag,a=null!=e?ng(e):function(e){return e},u=0;u<o;u++)r=a(t=n[u]),cg(s,r)||lg(s,r,t);return ug(s,function(e){fg(i,e)}),i}}),ca("uniqueBy");function pg(e,t,r,n){this.valueId=e,this.value=t,this.reason=r,this.properties=n}Wm.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},Wm.prototype.refresh=function(){this.stop(),this.start()},Wm.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)};var dg,hg=Wm,yg=(Ym.prototype.start=function(){this.started=!0},Ym.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},Ym.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},Ym.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},Ym.prototype.close=function(){this.stop()},Ym),vg=(Xm.prototype.isClientError=function(e){return!!(e&&400<=e.statusCode&&e.statusCode<500)},Xm.prototype.drainRepository=function(i){var e=this;return new Promise(function(o){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?i?this.eventDispatcher.dispatchXhrOrBeacon(t,function(){var e;o(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?o(null==(e=n.repository)?void 0:e.delete(t)):o()}):this.eventDispatcher.dispatch(t,function(){var e;o(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?o(null==(e=n.repository)?void 0:e.delete(t)):o()}):o(),[2]}})})})},Xm.prototype.drainQueue=function(o,i){var e=this,s=o.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===o.length?n():i?(null!=(t=this.repository)&&t.add(s),this.eventDispatcher.dispatchXhrOrBeacon(o,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(o,function(){n()},function(e){r.isClientError(e)?n():n(null==(e=r.repository)?void 0:e.add(s))}),[2]})})})},Xm.prototype.process=function(e){this.queue.enqueue(e)},Xm.prototype.start=function(){return le(this,void 0,void 0,function(){return fe(this,function(e){return this.queue.start(),[2]})})},Xm.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},Xm.prototype.flush=function(){this.queue.flush()},Xm.prototype.close=function(){this.stop()},Xm),gg=($m.isSessionEvent=function(e){return!!It.isTrack(e)&&(e.event.key===$m.SESSION_START_EVENT_NAME||e.event.key===$m.SESSION_END_EVENT_NAME)},$m.prototype.onSessionStarted=function(e,t,r){this.track($m.SESSION_START_EVENT_NAME,e,t,r)},$m.prototype.onSessionEnded=function(e,t,r){this.track($m.SESSION_END_EVENT_NAME,e,t,r)},$m.prototype.track=function(e,t,r,n){e={key:e,properties:{sessionId:t}},r=this.hackleUserResolver.resolve(r),r=this.decorateSession(r,t);this.hackleInternalClient._track(e,r,n)},$m.prototype.decorateSession=function(e,t){t=(new $e).add(qe.SESSION,t).addIdentifiers(e.identifiers).build();return d(d({},e),{identifiers:t})},$m.SESSION_START_EVENT_NAME="$session_start",$m.SESSION_END_EVENT_NAME="$session_end",$m),mg=(qm.prototype.process=function(e){var t;gg.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[qe.SESSION]?e:e.copyWithUser(d(d({},e.user),{identifiers:d(d({},e.user.identifiers),((e={})[qe.SESSION]=t.sessionId,e))})),this.delegate.process(t))},qm.prototype.close=function(){this.delegate.close()},qm.prototype.flush=function(){this.delegate.flush()},qm.prototype.start=function(){return this.delegate.start()},qm),wg=(Bm.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!It.isExposure(e))return!1;De.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)},Bm),Eg=(Gm.toEvent=function(e){var t;return{key:Gm.EVENT_KEY,properties:{level:Gm.LEVEL_ERROR,type:e.name,message:null!=(t=e.message)?t:"",$stacktrace:Gm._stacktrace(e)}}},Gm._stacktrace=function(e){return a.isNullOrUndefined(e.stack)?"":e.stack.split("\n").slice(0,Gm.STACK_TRACK_LIMIT).join("\n")},Gm.EVENT_KEY="$trace",Gm.LEVEL_ERROR="error",Gm.STACK_TRACK_LIMIT=30,Gm),bg=pe.log,Tg=(zm.prototype._experiment=function(e,t,r){if(!e)return bg.error("experimentKey must not be empty"),He.of(r,u.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return bg.warn("SDK not ready."),He.of(r,u.SDK_NOT_READY);e=n.getExperimentOrNull(e);if(!e)return bg.warn("Experiment does not exist."),He.of(r,u.EXPERIMENT_NOT_FOUND);n=this.evaluator.evaluate(n,e,t,r),this.eventProcessor.process(It.exposure(e,t,n)),e=null!=(r=n.config)?r:new ze;return He.of(n.variationKey,n.reason,e)},zm.prototype._featureFlag=function(e,t){if(!e)return bg.error("featureKey must not be empty"),Ke.off(u.INVALID_INPUT);var r=this.workspaceFetcher.get();if(!r)return bg.warn("SDK not ready."),Ke.off(u.SDK_NOT_READY);var e=r.getFeatureFlagOrNull(e);if(!e)return bg.warn("FeatureFlag does not exist."),Ke.off(u.FEATURE_FLAG_NOT_FOUND);r=this.evaluator.evaluate(r,e,t,"A"),this.eventProcessor.process(It.exposure(e,t,r)),t=null!=(e=r.config)?e:new ze;return"A"===r.variationKey?Ke.off(r.reason,t):Ke.on(r.reason,t)},zm.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 be(0,e.key),this.eventProcessor.process(It.track(n,e,t,r))):bg.warn("Event key must be not null. or event key must be string type."):bg.warn("Event must be event type."):bg.warn("event must not be null.")},zm.prototype._trackException=function(e,t){this.errorDedupDeterminer.isDedupTarget(e)||(e=Eg.toEvent(e),this._flush(),this._track(e,t),this._flush())},zm.prototype._flush=function(){this.eventProcessor.flush()},zm.prototype._remoteConfig=function(e,t,r,n){var o=this.workspaceFetcher.get();if(a.isNullOrUndefined(o))return bg.warn("SDK not ready."),Ve.of(n,u.SDK_NOT_READY);e=o.getRemoteConfigParameterOrNull(e);if(a.isNullOrUndefined(e))return bg.warn("Remote config parameter does not exist."),Ve.of(n,u.REMOTE_CONFIG_PARAMETER_NOT_FOUND);o=this.evaluator.remoteConfigEvaluate(o,e,t,r,n);return this.eventProcessor.process(It.remoteConfig(e,t,o)),Ve.of(o.value,o.reason)},zm.prototype._onReady=function(e,t){this._onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},zm.prototype._onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(bg.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?bg.debug("HackleClient onInitialized Success"):e.error instanceof Error?bg.error("HackleClient onInitialized Failed. ".concat(e.error.message)):bg.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},zm.prototype._close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},zm),_g=(Km.prototype.isDedupTarget=function(e){return!!this._isSameError(e,this.previous)||(this.previous=e,!1)},Km.prototype._isSameError=function(e,t){return!a.isNullOrUndefined(t)&&e.name===t.name&&e.message===t.message&&e.stack===t.stack},Km),Rg=(Hm.of=function(e,t,r,n){t=t._getVariationByKeyOrNull(r);return a.isNotNullOrUndefined(t)?Hm.withVariation(e,t,n):new Hm(void 0,r,n,void 0)},Hm.withVariation=function(e,t,r){e=this.config(e,t);return new Hm(t.id,t.key,r,e)},Hm.config=function(e,t){if(!a.isNullOrUndefined(t.parameterConfigurationId))return a.requiredNotNullOrUndefined(e.getParameterConfigurationOrNull(t.parameterConfigurationId),function(){return"ParameterConfiguration[".concat(t.parameterConfigurationId,"]")})},Hm),Og=(Vm.prototype.evaluate=function(e,t,r,n){return this.evaluationFlowFactory.getFlow(t.type).evaluate(e,t,r,n)},Vm.prototype.remoteConfigEvaluate=function(e,t,r,n,o){var i={};if(i.requestValueType=n,i.requestDefaultValue=o,a.isNullOrUndefined(r.identifiers[t.identifierType]))return new pg(void 0,o,u.IDENTIFIER_NOT_FOUND,i);e=this.evaluationFlowFactory.getRemoteConfigParameterTargetRuleDeterminer().determineTargetRuleOrNull(e,t,r);return e?(i.targetRuleKey=e.key,i.targetRuleName=e.name,this.getRemoteConfigEvaluationWithTypeCheck(e.value,u.TARGET_RULE_MATCH,n,o,i)):this.getRemoteConfigEvaluationWithTypeCheck(t.defaultValue,u.DEFAULT_RULE,n,o,i)},Vm.prototype.getRemoteConfigEvaluationWithTypeCheck=function(e,t,r,n,o){return"UNKNOWN"===r||"NULL"!==r&&typeof n!=typeof e.rawValue?(o.returnValue=n,new pg(void 0,n,u.TYPE_MISMATCH,o)):(o.returnValue=e.rawValue,new pg(e.id,e.rawValue,t,o))},Vm),Ig=(Fm.prototype.matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n._matches(e,t,r)})},Fm.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(e.key.type).matches(e,t,r)},Fm),f=(jm.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)},jm.prototype.userValueMatches=function(e,t,r,n){return Array.isArray(e)?this.arrayMatches(e,t,r,n):this.singleMatches(e,t,r,n)},jm.prototype.singleMatches=function(t,e,r,n){return e.values.some(function(e){return r.matches(n,t,e)})},jm.prototype.arrayMatches=function(e,t,r,n){var o=this;return e.some(function(e){return o.singleMatches(e,t,r,n)})},jm.prototype.typeMatches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},jm),h=(Lm.prototype.booleanMatches=function(e,t){return e===t},Lm.prototype.numberMatches=function(e,t){return e===t},Lm.prototype.stringMatches=function(e,t){return e===t},Lm.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},Lm),cn=(Dm.prototype.booleanMatches=function(e,t){return!1},Dm.prototype.numberMatches=function(e,t){return!1},Dm.prototype.stringMatches=function(e,t){return e.includes(t)},Dm.prototype.versionMatches=function(e,t){return!1},Dm),oo=(Mm.prototype.booleanMatches=function(e,t){return!1},Mm.prototype.numberMatches=function(e,t){return!1},Mm.prototype.stringMatches=function(e,t){return e.startsWith(t)},Mm.prototype.versionMatches=function(e,t){return!1},Mm),N=(Um.prototype.booleanMatches=function(e,t){return!1},Um.prototype.numberMatches=function(e,t){return!1},Um.prototype.stringMatches=function(e,t){return e.endsWith(t)},Um.prototype.versionMatches=function(e,t){return!1},Um),C=(Pm.prototype.booleanMatches=function(e,t){return!1},Pm.prototype.numberMatches=function(e,t){return t<e},Pm.prototype.stringMatches=function(e,t){return t<e},Pm.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},Pm),jc=(xm.prototype.booleanMatches=function(e,t){return!1},xm.prototype.numberMatches=function(e,t){return t<=e},xm.prototype.stringMatches=function(e,t){return t<=e},xm.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},xm),bn=(km.prototype.booleanMatches=function(e,t){return!1},km.prototype.numberMatches=function(e,t){return e<t},km.prototype.stringMatches=function(e,t){return e<t},km.prototype.versionMatches=function(e,t){return e.isLessThan(t)},km),c=(Am.prototype.booleanMatches=function(e,t){return!1},Am.prototype.numberMatches=function(e,t){return e<=t},Am.prototype.stringMatches=function(e,t){return e<=t},Am.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},Am),Sg=(Cm.prototype.getMatcher=function(e){switch(e){case"IN":return Cm.IN_MATCHER;case"CONTAINS":return Cm.CONTAINS_MATCHER;case"STARTS_WITH":return Cm.STARTS_WITH_MATCHER;case"ENDS_WITH":return Cm.ENDS_WITH_MATCHER;case"GT":return Cm.GT_MATCHER;case"GTE":return Cm.GTE_MATCHER;case"LT":return Cm.LT_MATCHER;case"LTE":return Cm.LTE_MATCHER}},Cm.IN_MATCHER=new h,Cm.CONTAINS_MATCHER=new cn,Cm.STARTS_WITH_MATCHER=new oo,Cm.ENDS_WITH_MATCHER=new N,Cm.GT_MATCHER=new C,Cm.GTE_MATCHER=new jc,Cm.LT_MATCHER=new bn,Cm.LTE_MATCHER=new c,Cm),da=(Nm.prototype.matches=function(e,t,r){t=this.asString(t),r=this.asString(r);return!a.isNullOrUndefined(t)&&!a.isNullOrUndefined(r)&&e.stringMatches(t,r)},Nm.prototype.asString=function(e){return"string"==typeof e?e:"number"==typeof e?e.toString():null},Nm),_o=(Sm.prototype.matches=function(e,t,r){t=this.asNumber(t),r=this.asNumber(r);return!a.isNullOrUndefined(t)&&!a.isNullOrUndefined(r)&&e.numberMatches(t,r)},Sm.prototype.asNumber=function(e){return"number"==typeof e?e:"string"==typeof e?(e=Number(e),isNaN(e)?null:e):null},Sm),s=(Im.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},Im),Gi=(Om.prototype.matches=function(e,t,r){t=dt.tryParse(t),r=dt.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},Om),b=(Rm.prototype.matches=function(e,t,r){return!1},Rm),Ng=(_m.prototype.getMatcher=function(e){switch(e){case"STRING":case"JSON":return _m.STRING_MATCHER;case"NUMBER":return _m.NUMBER_MATCHER;case"BOOLEAN":return _m.BOOLEAN_MATCHER;case"VERSION":return _m.VERSION_MATCHER;case"NULL":case"UNKNOWN":return _m.NULL_MATCHER}},_m.STRING_MATCHER=new da,_m.NUMBER_MATCHER=new _o,_m.BOOLEAN_MATCHER=new s,_m.VERSION_MATCHER=new Gi,_m.NULL_MATCHER=new b,_m),S=(Tm.prototype.matches=function(e,t,r){r=this.userValueResolver.resolveOrNull(r,e.key);return!a.isNullOrUndefined(r)&&this.valueOperatorMatcher.matches(r,e.match)},Tm),A=(bm.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":throw new Error("Unsupported TargetKeyType [".concat(t.type,"]"))}},bm),vn=(Em.prototype.matches=function(e,t,r){var n=this;if("SEGMENT"!=e.key.type)throw new Error("Unsupported TargetKeyType [".concat(e.key.type,"]"));var o=e.match.values.some(function(e){return n._matches(e,t,r)});switch(e.match.type){case"MATCH":return o;case"NOT_MATCH":return!o}},Em.prototype._matches=function(e,t,r){if("string"!=typeof e)throw new Error("SegmentKey[".concat(e,"]"));var n=t.getSegmentOrNull(e);if(n)return this.segmentMatcher.matches(n,t,r);throw new Error("Segment[".concat(e,"]"))},Em),yn=(wm.prototype.matches=function(e,t,r){var n=this;return e.targets.some(function(e){return n._matches(e,t,r)})},wm.prototype._matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(e,t,r)})},wm),Cg=(mm.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return mm.USER_CONDITION_MATCHER;case"SEGMENT":return mm.SEGMENT_CONDITION_MATCHER}},mm.USER_CONDITION_MATCHER=new S(new A,new f(new Ng,new Sg)),mm.SEGMENT_CONDITION_MATCHER=new vn(new yn(mm.USER_CONDITION_MATCHER)),mm),Ag=(gm.prototype.resolveOrNull=function(e,t,r,n){switch(e.type){case"VARIATION":return this._resolveVariation(e,r);case"BUCKET":return this._resolveBucket(e,t,r,n)}},gm.prototype._resolveVariation=function(e,t){return t._getVariationByIdOrNull(e.variationId)},gm.prototype._resolveBucket=function(e,t,r,n){t=t.getBucketOrNull(e.bucketId),e=n.identifiers[r.identifierType];if(e){n=this.bucketer.bucketing(t,e);if(n)return r._getVariationByIdOrNull(n.variationId)}},gm),kg={murmurhash3_x86_32:function(e,t,r,n){for(var o,i=-4&(n=void 0===n?e.length:n),s=t,a=0;a<i;a+=4)o=255&e.charCodeAt(a)|(255&e.charCodeAt(a+1))<<8|(255&e.charCodeAt(a+2))<<16|(255&e.charCodeAt(a+3))<<24,o=(131071&(o=this.mul32(o,3432918353)))<<15|o>>>17,s=5*((524287&(s^=o=this.mul32(o,461845907)))<<13|s>>>19)+3864292196|0;switch(o=0,n%4){case 3:o=(255&e.charCodeAt(2+i))<<16;case 2:o|=(255&e.charCodeAt(1+i))<<8;case 1:o|=255&e.charCodeAt(i),o=(131071&(o=this.mul32(o,3432918353)))<<15|o>>>17,s^=o=this.mul32(o,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}},xg=(vm.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},vm.prototype.calculateSlotNumber=function(e,t,r){r=kg.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},vm),Pg=(ym.prototype.evaluate=function(e,t,r,n){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,r,n,this.nextFlow):Rg.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},ym.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new ym,n=0,o=e.reverse();n<o.length;n++)r=new ym(o[n],r);return r},ym),Ug=(hm.prototype.evaluate=function(e,t,r,n,o){var i=this.overrideResolver.resolveOrNull(e,t,r);if(!i)return o.evaluate(e,t,r,n);switch(t.type){case"AB_TEST":return Rg.withVariation(e,i,u.OVERRIDDEN);case"FEATURE_FLAG":return Rg.withVariation(e,i,u.INDIVIDUAL_TARGET_MATCH)}},hm),Mg=(dm.prototype.evaluate=function(e,t,r,n,o){return"DRAFT"===t.status?Rg.of(e,t,n,u.EXPERIMENT_DRAFT):o.evaluate(e,t,r,n)},dm),Dg=(pm.prototype.evaluate=function(e,t,r,n,o){if("PAUSED"!==t.status)return o.evaluate(e,t,r,n);switch(t.type){case"AB_TEST":return Rg.of(e,t,n,u.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return Rg.of(e,t,n,u.FEATURE_FLAG_INACTIVE)}},pm),Lg=(fm.prototype.evaluate=function(e,t,r,n,o){if("COMPLETED"!==t.status)return o.evaluate(e,t,r,n);o=t._winnerVariationOrNull();if(o)return Rg.withVariation(e,o,u.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(t.id,"]"))},fm),jg=(lm.prototype.evaluate=function(e,t,r,n,o){if("AB_TEST"!==t.type)throw new Error("experiment type must be AB_TEST [".concat(t.id,"]"));return this.experimentTargetDeterminer.isUserInExperimentTarget(e,t,r)?o.evaluate(e,t,r,n):Rg.of(e,t,n,u.NOT_IN_EXPERIMENT_TARGET)},lm),Fg=(cm.prototype.evaluate=function(e,t,r,n,o){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("AB_TEST"!==t.type)throw new Error("experiment type must be AB_TEST [".concat(t.id,"]"));r=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);return r?r.isDropped?Rg.of(e,t,n,u.VARIATION_DROPPED):Rg.withVariation(e,r,u.TRAFFIC_ALLOCATED):Rg.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},cm),Vg=(um.prototype.evaluate=function(e,t,r,n,o){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("FEATURE_FLAG"!==t.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(t.id,"]"));if(!r.identifiers[t.identifierType])return o.evaluate(e,t,r,n);var i=this.targetRuleDeterminer.determineTargetRuleOrNull(e,t,r);if(!i)return o.evaluate(e,t,r,n);o=this.actionResolver.resolveOrNull(i.action,e,t,r);if(o)return Rg.withVariation(e,o,u.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},um),Hg=(am.prototype.evaluate=function(e,t,r,n,o){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("FEATURE_FLAG"!==t.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(t.id,"]"));if(!r.identifiers[t.identifierType])return Rg.of(e,t,n,u.DEFAULT_RULE);n=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);if(n)return Rg.withVariation(e,n,u.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},am),Kg=(sm.prototype.evaluate=function(e,t,r,n,o){var i=t.containerId;if(!i)return o.evaluate(e,t,r,n);var s=e.getContainerOrNull(i);if(!s)throw new Error("container[".concat(i,"]"));i=e.getBucketOrNull(s.bucketId);if(i)return this.containerResolver.isUserInContainerGroup(s,i,t,r)?o.evaluate(e,t,r,n):Rg.of(e,t,n,u.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("bucket[".concat(s.bucketId,"]"))},sm),zg=(im.prototype.evaluate=function(e,t,r,n,o){return r.identifiers[t.identifierType]?o.evaluate(e,t,r,n):Rg.of(e,t,n,u.IDENTIFIER_NOT_FOUND)},im),Gg=(om.prototype.isUserInExperimentTarget=function(t,e,r){var n=this;return 0===e.targetAudiences.length||e.targetAudiences.some(function(e){return n.targetMatcher.matches(e,t,r)})},om),Bg=(nm.prototype.determineTargetRuleOrNull=function(t,e,r){var n=this;return e.targetRules.find(function(e){return n.targetMatcher.matches(e.target,t,r)})},nm),qg=(rm.prototype.resolveOrNull=function(e,t,r){return this._resolveUserOverride(t,r)||this._resolveSegmentOverride(e,t,r)},rm.prototype._resolveUserOverride=function(e,t){t=t.identifiers[e.identifierType];if(t){t=e.userOverrides.get(t);if(t)return e._getVariationByIdOrNull(t)}},rm.prototype._resolveSegmentOverride=function(t,e,r){var n=this,o=e.segmentOverrides.find(function(e){return n.targetMatcher.matches(e.target,t,r)});if(o)return this.actionResolver.resolveOrNull(o.action,t,e,r)},rm),$g=(tm.prototype.isUserInContainerGroup=function(e,t,r,n){n=n.identifiers[r.identifierType];if(!n)return!1;t=this.bucketer.bucketing(t,n);if(!t)return!1;n=e.getGroupOrNull(t.variationId);if(n)return n.experiments.includes(r.id);throw new Error("ContainerGroup[".concat(t.variationId,"]"))},tm),Xg=(em.prototype.determineTargetRuleOrNull=function(t,r,n){var o=this;return r.targetRules.find(function(e){return o.matches(e,t,r,n)})},em.prototype.matches=function(e,t,r,n){if(!this.targetMatcher.matches(e.target,t,n))return!1;n=n.identifiers[r.identifierType];if(a.isNullOrUndefined(n))return!1;r=t.getBucketOrNull(e.bucketId);if(a.isNullOrUndefined(r))throw new Error("bucket[".concat(e.bucketId,"]"));return a.isNotNullOrUndefined(this.bucketer.bucketing(r,n))},em),Yg=(Zg.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},Zg.prototype.getRemoteConfigParameterTargetRuleDeterminer=function(){return this.remoteConfigParameterTargetRuleDeterminer},Zg),Wg=(Qg.prototype.install=function(e,t){this._install("onerror",e,t),this._install("onunhandledrejection",e,t)},Qg.prototype._install=function(e,t,r){e in this._installed||((0,this._installations[e])(t,r),this._installed.push(e))},Qg),Jg=null;function Qg(){this._installed=[],this._installations={onerror:Jm,onunhandledrejection:Qm}}function Zg(){var e=new xg,t=new Ig(new Cg),r=new Ag(e),n=new qg(t,r),o=new $g(e);this.abTestFlow=Pg.of(new Ug(n),new zg,new Kg(o),new jg(new Gg(t)),new Mg,new Dg,new Lg,new Fg(r)),this.featureFlagFlow=Pg.of(new Mg,new Dg,new Lg,new Ug(n),new zg,new Vg(new Bg(t),r),new Hg(r)),this.remoteConfigParameterTargetRuleDeterminer=new Xg(t,e)}function em(e,t){this.targetMatcher=e,this.bucketer=t}function tm(e){this.bucketer=e}function rm(e,t){this.targetMatcher=e,this.actionResolver=t}function nm(e){this.targetMatcher=e}function om(e){this.targetMatcher=e}function im(){}function sm(e){this.containerResolver=e}function am(e){this.actionResolver=e}function um(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function cm(e){this.actionResolver=e}function lm(e){this.experimentTargetDeterminer=e}function fm(){}function pm(){}function dm(){}function hm(e){this.overrideResolver=e}function ym(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function vm(){}function gm(e){this.bucketer=e}function mm(){}function wm(e){this.userConditionMatcher=e}function Em(e){this.segmentMatcher=e}function bm(){}function Tm(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function _m(){}function Rm(){}function Om(){}function Im(){}function Sm(){}function Nm(){}function Cm(){}function Am(){}function km(){}function xm(){}function Pm(){}function Um(){}function Mm(){}function Dm(){}function Lm(){}function jm(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function Fm(e){this.conditionMatcherFactory=e}function Vm(e){this.evaluationFlowFactory=e}function Hm(e,t,r,n){this.variationId=e,this.variationKey=t,this.reason=r,this.config=n}function Km(){}function zm(e,t,r,n){this.workspaceFetcher=e,this.eventProcessor=t,this.evaluator=r,this.errorDedupDeterminer=n,this.workspaceFetcher.start(),this.eventProcessor.start(),this.readyPromise=this.workspaceFetcher.onReady().then(function(){return{success:!0}},function(e){return{success:!1,error:e}})}function Gm(){}function Bm(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function qm(e,t,r,n){this.delegate=e,this.exposureEventDedupDeterminer=t,this.sessionManager=r,this.userManager=n}function $m(e,t){this.hackleUserResolver=e,this.hackleInternalClient=t}function Xm(e,t,r,n){void 0===n&&(n=null),this.eventDispatcher=e,this.flushInterval=r,this.queue=new yg(this.drainQueue.bind(this),t,r),this.repository=n}function Ym(e,t,r){this.buffer=[],this.sink=e,this.maxQueueSize=t,this.timer=new hg({callback:this.flush.bind(this),timeout:r}),this.started=!1}function Wm(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function Jm(i,s){Jg=window.onerror,window.onerror=function(e,t,r,n,o){a.isNotNullOrUndefined(o)&&i._trackException(o,s.resolveCurrentUser()),Jg&&Jg.apply(this,arguments)}}function Qm(r,n){dg=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()),dg&&dg.apply(this,arguments)}}function Zm(e,t){return e.userId===t.userId&&e.deviceId===t.deviceId}l0.prototype.read=function(){var r=this;return new Promise(function(e){var t=r.storage.getItem(r.storageKey);t&&e(JSON.parse(t)),e([])})},l0.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()})},l0.prototype.add=function(t){var r=this;return this.read().then(function(e){return r.save(e.concat(t).slice(-r.maxSize))})},l0.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)})},l0.prototype.clear=function(){var t=this;return new Promise(function(e){localStorage.removeItem(t.storageKey),e()})};var e0=l0,t0=(c0.prototype.addListener=function(e){this.userListeners.push(e)},c0.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(c0.prototype,"currentUser",{get:function(){return this._currentUser},enumerable:!1,configurable:!0}),c0.prototype.resolveCurrentOrNull=function(e){if(void 0===e)return this.currentUser;if("string"==typeof e)return this.setUser({id:e});e=Te(e);return e?this.setUser(e):null},c0.prototype.setUser=function(e){var t=this._currentUser,r=Zm(r=t,e=e)?d(d({},e),{properties:d(d({},r.properties),e.properties)}):e;return this._currentUser=r,Zm(t,r)||(this.changeUser(t,r,(new Date).getTime()),this.saveUser(r)),r},c0.prototype.setUserId=function(e){e=d(d({},this._currentUser),{userId:e});return this.setUser(e)},c0.prototype.setDeviceId=function(e){e=d(d({},this._currentUser),{deviceId:e});return this.setUser(e)},c0.prototype.setUserProperty=function(e,t){var r,e=d(d({},this._currentUser),{properties:d(d({},this._currentUser.properties),((r={})[e]=t,r))});return this.setUser(e)},c0.prototype.setUserProperties=function(e){e=d(d({},this._currentUser),{properties:d(d({},this._currentUser.properties),e)});return this.setUser(e)},c0.prototype.resetUser=function(){return this.setUser(this.defaultUser)},c0.prototype.changeUser=function(t,r,n){this.userListeners.forEach(function(e){e.onUserUpdated(t,r,n)})},c0.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")},c0),r0=(Object.defineProperty(u0.prototype,"currentSessionId",{get:function(){return this._currentSessionId},enumerable:!1,configurable:!0}),Object.defineProperty(u0.prototype,"sessionId",{get:function(){var e;return null!=(e=this._currentSessionId)?e:u0.EMPTY_SESSION_ID},enumerable:!1,configurable:!0}),Object.defineProperty(u0.prototype,"lastEventTime",{get:function(){return this._lastEventTime},enumerable:!1,configurable:!0}),u0.prototype.addListener=function(e){this.sessionListeners.push(e)},u0.prototype.startNewSession=function(e,t){return this.endSession(e),this.newSession(e,t)},u0.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)},u0.prototype.updateLastEventTime=function(e){this._lastEventTime=e,this.storage.setItem("_hackle_last_event_ts","".concat(e))},u0.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)})},u0.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},u0.prototype.saveSession=function(e){this._currentSessionId=e,this.storage.setItem("_hackle_session_id",e)},u0.prototype.loadSession=function(){this._currentSessionId=this.storage.getItem("_hackle_session_id")},u0.prototype.loadLastEventTime=function(){var e=this.storage.getItem("_hackle_last_event_ts");null!==e&&0<(e=Number.parseFloat(e))&&(this._lastEventTime=e)},u0.prototype.onUserUpdated=function(e,t,r){this.endSession(e),this.newSession(t,r)},u0.EMPTY_SESSION_ID="0.ffffffff",u0),n0=(a0.postfix=function(e,t){return new a0(e,function(e){return"".concat(e).concat(t)})},a0.prototype.getItem=function(e){return this.delegate.getItem(this.transform(e))},a0.prototype.removeItem=function(e){this.delegate.removeItem(this.transform(e))},a0.prototype.setItem=function(e,t){this.delegate.setItem(this.transform(e),t)},a0),o0=pe.log,i0=null,s0={debug:!1,log_disabled:!1,auto_track_page_view:!0,pollingIntervalMillis:-1,exposureEventDedupIntervalMillis:-1,sessionTimeoutMillis:18e5,SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.11.0"};function a0(e,t){this.delegate=e,this.transform=t}function u0(e,t){this.sessionTimeoutMillis=e,this.storage=t,this.sessionListeners=[],this._currentSessionId=null,this._lastEventTime=null,this.loadSession(),this.loadLastEventTime()}function c0(e,t){this.storage=e,this.hackleDeviceId=t,this.userListeners=[],this.defaultUser={deviceId:this.hackleDeviceId},this._currentUser=this.defaultUser,this.initialize()}function l0(e,t,r){this.storage=e,this.storageKey=t,this.maxSize=r}function f0(e,t){t=d(d({},s0),t);if(t.log_disabled?pe.setLogLevel(0):t.debug&&pe.setLogLevel(4),o0.debug("sdkKey : "+e),e||o0.error("SDK Key must not be null"),i0)return o0.debug("use already exists hackleClient"),i0;var r=!1,r=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&o0.debug("support sendBeacon API"),new Ht(e,Ue,{dispatchUrl:"https://event.hackle.io/api/v2/w/events",beaconDispatchUrl:"".concat("https://event.hackle.io/api/v2/w/").concat(e).concat("/events"),useBeacon:r,headers:((r={})["X-HACKLE-SDK-NAME"]=t.SDK_NAME_HEADER,r["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,r)})),n=-1,n=(void 0!==t.pollingIntervalMillis&&"number"==typeof t.pollingIntervalMillis&&0<t.pollingIntervalMillis&&(n=Math.max(t.pollingIntervalMillis,3e4)),new Bt(e,Ue,{fetchUrl:"".concat("https://client-sdk.hackle.io/api/v2/w/").concat(e).concat("/w"),updateInterval:n,headers:((n={})["X-HACKLE-SDK-NAME"]=t.SDK_NAME_HEADER,n["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,n)})),o=-1,i=(void 0!==t.exposureEventDedupIntervalMillis&&"number"==typeof t.exposureEventDedupIntervalMillis&&-1!==t.exposureEventDedupIntervalMillis&&(o=t.exposureEventDedupIntervalMillis<1e3||36e5<t.exposureEventDedupIntervalMillis?(o0.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):t.exposureEventDedupIntervalMillis),new e0(window.localStorage,"".concat("hackle-repository-storage","_").concat(e),100)),s=new t0(n0.postfix(Yt,"_".concat(e)),ur()),a=new r0(t.sessionTimeoutMillis,n0.postfix(Yt,"_".concat(e.slice(8))));s.addListener(a);function u(){f.drainRepository()}var c,l,f=new vg(r,100,500,i),e=new wg(o),r=new mg(f,e,a,s),i=new Tg(n,r,new Og(new Yg),new _g),o=new Jt(s),p=new Ot(i,o,a,s),e=new gg(o,i);a.addListener(e),i0=p,t.auto_track_page_view&&(l=function(){return c.trackPageView({user:{id:ur()}})},(c=p).onReady(function(){function t(e){if("function"==typeof window.Event)return new Event(e);var t=!1,r=!1,n=void 0,o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t,r,n),o}l();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)o0.error(e);else try{o0.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)o0.error(e);else try{o0.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(t("locationchange"))}catch(e){if(e instanceof Error)o0.error(e);else try{o0.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{l()}catch(e){if(e instanceof Error)o0.error(e);else try{o0.error(e)}catch(e){}}})}catch(t){if(t instanceof Error)o0.error(t);else try{o0.error(t)}catch(t){}}var r,n})),(new Wg).install(i,o);return document.addEventListener("visibilitychange",function(){document.hidden||u()}),window.addEventListener("pageshow",u),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){lr(),a.updateLastEventTime((new Date).getTime()),p.close()}),p.onReady(function(){a.startNewSessionIfNeeded(s.currentUser,(new Date).getTime())}),p}var o={createInstance:f0,getUserId:ur,setUserId:cr,removeUserId:lr,Logger:pe},p0=(l.Bucket=t.Bucket=Ee,l.Container=t.Container=Xe,l.ContainerGroup=t.ContainerGroup=Ae,l.CoreVersion=t.CoreVersion=ht,l.Decision=t.Decision=He,l.DecisionReason=t.DecisionReason=u,l.EmptyHackleRemoteConfig=t.EmptyHackleRemoteConfig=ie,l.EmptyParameterConfig=t.EmptyParameterConfig=ze,l.EventType=t.EventType=be,l.Experiment=t.Experiment=Ge,l.FeatureFlagDecision=t.FeatureFlagDecision=Ke,l.IdentifierType=t.IdentifierType=qe,l.IdentifiersBuilder=t.IdentifiersBuilder=$e,l.Logger=t.Logger=pe,l.MATCH_OPERATORS=t.MATCH_OPERATORS=mt,l.MATCH_TYPES=t.MATCH_TYPES=vt,l.MATCH_VALUE_TYPES=t.MATCH_VALUE_TYPES=gt,l.MetaVersion=t.MetaVersion=yt,l.ParameterConfiguration=t.ParameterConfiguration=Ye,l.RemoteConfigDecision=t.RemoteConfigDecision=Ve,l.RemoteConfigParameter=t.RemoteConfigParameter=ke,l.RemoteConfigParameterValue=t.RemoteConfigParameterValue=Pe,l.RemoteConfigTargetRule=t.RemoteConfigTargetRule=xe,l.SEGMENT_TYPES=t.SEGMENT_TYPES=bt,l.Segment=t.Segment=Ce,l.Slot=t.Slot=Be,l.TARGET_ACTION_TYPES=t.TARGET_ACTION_TYPES=wt,l.TARGET_KEY_TYPES=t.TARGET_KEY_TYPES=Et,l.Target=t.Target=_e,l.TargetAction=t.TargetAction=Se,l.TargetCondition=t.TargetCondition=Re,l.TargetKey=t.TargetKey=Oe,l.TargetMatch=t.TargetMatch=Ie,l.TargetRule=t.TargetRule=Ne,l.TargetingType=t.TargetingType=Tt,l.Variation=t.Variation=we,l.Version=t.Version=dt,se=t.createInstance=f0,t.default=o,l.getUserId=t.getUserId=ur,l.removeUserId=t.removeUserId=lr,l.sanitizeUser=t.sanitizeUser=Te,l.setUserId=t.setUserId=cr,function(e,t){return(p0=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 d0=function(){return(d0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function h0(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}y0.prototype.on=function(e,t){this.listeners[e]=(this.listeners[e]||[]).concat(t)},y0.prototype.off=function(e,t){this.listeners[e]=(this.listeners[e]||[]).filter(function(e){return e!==t})},y0.prototype.emit=function(e,t){(this.listeners[e]||[]).forEach(function(e){e(t)})};va=y0;function y0(){this.listeners={}}g0.arePropertiesEqual=function(e,t){var r=g0.coerceUnknownToProperties(e),n=g0.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]})},g0.coerceUnknownToProperties=function(e){return"object"==typeof e&&null!==e?e:{}};var v0=g0;function g0(){}w0.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)&&v0.arePropertiesEqual(null==e?void 0:e.properties,null==t?void 0:t.properties)&&v0.arePropertiesEqual(null==e?void 0:e.identifiers,null==t?void 0:t.identifiers)};var m0=w0;function w0(){}var E0=function(n){var e=o,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 o(e,t){var r=n.call(this)||this;return r._currentUser=null,r.client=se(e,d0(d0({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.11.0"})),r}return p0(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r),o.prototype.getUser=function(){return this.client.getUser()},o.prototype.setUser=function(e){this.client.setUser(e),this.emitUpdatedUser(this.getUser())},o.prototype.setUserId=function(e){this.client.setUserId(e),this.emitUpdatedUser(this.getUser())},o.prototype.setDeviceId=function(e){this.client.setDeviceId(e),this.emitUpdatedUser(this.getUser())},o.prototype.setUserProperty=function(e,t){this.client.setUserProperty(e,t),this.emitUpdatedUser(this.getUser())},o.prototype.resetUser=function(){this.client.resetUser(),this.emitUpdatedUser(this.getUser())},o.prototype.variation=function(e,t,r){return this.client.variation(e,t||void 0,r)},o.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t||void 0,r)},o.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t||void 0)},o.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t||void 0)},o.prototype.track=function(e,t){this.client.track(e,t||void 0)},o.prototype.trackPageView=function(e){this.client.trackPageView(d0(d0({},e),{user:(null==e?void 0:e.user)||void 0}))},o.prototype.remoteConfig=function(e){return this.client.remoteConfig(e||void 0)},o.prototype.onReady=function(e,t){this.client.onReady(e,t)},o.prototype.onInitialized=function(e){return this.client.onInitialized(e)},o.prototype.emitUpdatedUser=function(e){m0.isUserEqual(this._currentUser,e)||this.emit("user-updated",e),this._currentUser=e},o}(va);var U={exports:{}},T={},b0=Object.getOwnPropertySymbols,T0=Object.prototype.hasOwnProperty,_0=Object.prototype.propertyIsEnumerable;var Cr=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),o=1;o<arguments.length;o++){for(var i in r=Object(arguments[o]))T0.call(r,i)&&(n[i]=r[i]);if(b0)for(var s=b0(r),a=0;a<s.length;a++)_0.call(r,s[a])&&(n[s[a]]=r[s[a]])}return n},R0=Cr,P="function"==typeof Symbol&&Symbol.for,O0=P?Symbol.for("react.element"):60103,I0=P?Symbol.for("react.portal"):60106,Co=P?Symbol.for("react.fragment"):60107,p=P?Symbol.for("react.strict_mode"):60108,Aa=P?Symbol.for("react.profiler"):60114,S0=P?Symbol.for("react.provider"):60109,N0=P?Symbol.for("react.context"):60110,C0=P?Symbol.for("react.forward_ref"):60112,x=P?Symbol.for("react.suspense"):60113,A0=P?Symbol.for("react.memo"):60115,k0=P?Symbol.for("react.lazy"):60116,x0="function"==typeof Symbol&&Symbol.iterator;function P0(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 U0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M0={};function D0(e,t,r){this.props=e,this.context=t,this.refs=M0,this.updater=r||U0}function L0(){}function j0(e,t,r){this.props=e,this.context=t,this.refs=M0,this.updater=r||U0}D0.prototype.isReactComponent={},D0.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(P0(85));this.updater.enqueueSetState(this,e,t,"setState")},D0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},L0.prototype=D0.prototype;var Gr=j0.prototype=new L0,F0=(Gr.constructor=j0,R0(Gr,D0.prototype),Gr.isPureReactComponent=!0,{current:null}),V0=Object.prototype.hasOwnProperty,H0={key:!0,ref:!0,__self:!0,__source:!0};function K0(e,t,r){var n,o={},i=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)V0.call(t,n)&&!H0.hasOwnProperty(n)&&(o[n]=t[n]);var a=arguments.length-2;if(1===a)o.children=r;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(n in a=e.defaultProps)void 0===o[n]&&(o[n]=a[n]);return{$$typeof:O0,type:e,key:i,ref:s,props:o,_owner:F0.current}}function z0(e){return"object"==typeof e&&null!==e&&e.$$typeof===O0}var G0=/\/+/g,B0=[];function q0(e,t,r,n){var o;return B0.length?((o=B0.pop()).result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o):{result:e,keyPrefix:t,func:r,context:n,count:0}}function $0(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,B0.length<10&&B0.push(e)}function X0(e,t,r){return null==e?0:function e(t,r,n,o){var i=!1;if(null===(t="undefined"!=(a=typeof t)&&"boolean"!==a?t:null))i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case O0:case I0:i=!0}}if(i)return n(o,t,""===r?"."+Y0(t,0):r),1;if(i=0,r=""===r?".":r+":",Array.isArray(t))for(var s=0;s<t.length;s++){var a,u=r+Y0(a=t[s],s);i+=e(a,u,n,o)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=x0&&t[x0]||t["@@iterator"])?u:null))for(t=u.call(t),s=0;!(a=t.next()).done;)i+=e(a=a.value,u=r+Y0(a,s++),n,o);else if("object"===a)throw n=""+t,Error(P0(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return i}(e,"",t,r)}function Y0(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 W0(e,t){e.func.call(e.context,t,e.count++)}function J0(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?Q0(e,n,r,function(e){return e}):null!=e&&(z0(e)&&(t=o+(!(o=e).key||t&&t.key===e.key?"":(""+e.key).replace(G0,"$&/")+"/")+r,e={$$typeof:O0,type:o.type,key:t,ref:o.ref,props:o.props,_owner:o._owner}),n.push(e))}function Q0(e,t,r,n,o){var i="";X0(e,J0,t=q0(t,i=null!=r?(""+r).replace(G0,"$&/")+"/":i,n,o)),$0(t)}var Z0={current:null};function ew(){var e=Z0.current;if(null===e)throw Error(P0(321));return e}var tw,rw,nw,Wr={ReactCurrentDispatcher:Z0,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:F0,IsSomeRendererActing:{current:!1},assign:R0},R=(T.Children={map:function(e,t,r){if(null==e)return e;var n=[];return Q0(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;X0(e,W0,t=q0(null,null,t,r)),$0(t)},count:function(e){return X0(e,function(){return null},null)},toArray:function(e){var t=[];return Q0(e,t,null,function(e){return e}),t},only:function(e){if(z0(e))return e;throw Error(P0(143))}},T.Component=D0,T.Fragment=Co,T.Profiler=Aa,T.PureComponent=j0,T.StrictMode=p,T.Suspense=x,T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wr,T.cloneElement=function(e,t,r){if(null==e)throw Error(P0(267,e));var n=R0({},e.props),o=e.key,i=e.ref,s=e._owner;if(null!=t)for(a in void 0!==t.ref&&(i=t.ref,s=F0.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)V0.call(t,a)&&!H0.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:O0,type:e.type,key:o,ref:i,props:n,_owner:s}},T.createContext=function(e,t){return(e={$$typeof:N0,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:S0,_context:e},e.Consumer=e},T.createElement=K0,T.createFactory=function(e){var t=K0.bind(null,e);return t.type=e,t},T.createRef=function(){return{current:null}},T.forwardRef=function(e){return{$$typeof:C0,render:e}},T.isValidElement=z0,T.lazy=function(e){return{$$typeof:k0,_ctor:e,_status:-1,_result:null}},T.memo=function(e,t){return{$$typeof:A0,type:e,compare:void 0===t?null:t}},T.useCallback=function(e,t){return ew().useCallback(e,t)},T.useContext=function(e,t){return ew().useContext(e,t)},T.useDebugValue=function(){},T.useEffect=function(e,t){return ew().useEffect(e,t)},T.useImperativeHandle=function(e,t,r){return ew().useImperativeHandle(e,t,r)},T.useLayoutEffect=function(e,t){return ew().useLayoutEffect(e,t)},T.useMemo=function(e,t){return ew().useMemo(e,t)},T.useReducer=function(e,t,r){return ew().useReducer(e,t,r)},T.useRef=function(e){return ew().useRef(e)},T.useState=function(e){return ew().useState(e)},T.version="16.14.0",{}),zi=Function.call.bind(Object.prototype.hasOwnProperty),ow=function(){};function iw(e,t,r,n,o){if("production"!==production)for(var i in e)if(nw(e,i)){var s,a;try{if("function"!=typeof e[i])throw(a=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.")).name="Invariant Violation",a;s=e[i](t,i,n,r,null,tw)}catch(e){s=e}!s||s instanceof Error||ow((n||"React class")+": type specification of "+r+" `"+i+"` 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 rw)&&(rw[s.message]=!0,i=o?o():"",ow("Failed "+r+" type: "+s.message+(null!=i?i:"")))}}if("production"!==production&&(tw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",rw={},nw=zi,ow=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),iw.resetWarningCache=function(){"production"!==production&&(rw={})},"production"!==production){var sw=Cr,aw=iw,r="function"==typeof Symbol&&Symbol.for,uw=r?Symbol.for("react.element"):60103,cw=r?Symbol.for("react.portal"):60106,lw=r?Symbol.for("react.fragment"):60107,fw=r?Symbol.for("react.strict_mode"):60108,pw=r?Symbol.for("react.profiler"):60114,dw=r?Symbol.for("react.provider"):60109,hw=r?Symbol.for("react.context"):60110,yw=r?Symbol.for("react.concurrent_mode"):60111,vw=r?Symbol.for("react.forward_ref"):60112,gw=r?Symbol.for("react.suspense"):60113,mw=r?Symbol.for("react.suspense_list"):60120,ww=r?Symbol.for("react.memo"):60115,Ew=r?Symbol.for("react.lazy"):60116,bw=r?Symbol.for("react.block"):60121,Tw=r?Symbol.for("react.fundamental"):60117,_w=r?Symbol.for("react.responder"):60118,Rw=r?Symbol.for("react.scope"):60119,Ow="function"==typeof Symbol&&Symbol.iterator,Iw="@@iterator";function Sw(e){if(null===e||"object"!=typeof e)return null;e=Ow&&e[Ow]||e[Iw];return"function"==typeof e?e:null}var Nw={current:null},Cw={current:null},Aw=/^(.*)[\\\/]/,kw=1;function xw(e){if(null==e)return null;if("number"==typeof e.tag&&M("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 lw:return"Fragment";case cw:return"Portal";case pw:return"Profiler";case fw:return"StrictMode";case gw:return"Suspense";case mw:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case hw:return"Context.Consumer";case dw:return"Context.Provider";case vw:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case ww:return xw(e.type);case bw:return xw(e.render);case Ew:r=(t=e)._status===kw?t._result:null;if(r)return xw(r)}var t,r;return null}var Pw={},Uw=null;function Mw(e){Uw=e}Pw.getCurrentStack=null,Pw.getStackAddendum=function(){var e,t,r,n,o,i="",s=(Uw&&(e=xw(Uw.type),r=Uw._owner,i+=(e=e,t=Uw._source,r=r&&xw(r.type),o="",t?(n=(s=t.fileName).replace(Aw,""),o=" (at "+(n=/^index\./.test(n)&&(s=s.match(Aw))&&(s=s[1])?s.replace(Aw,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(o=" (created by "+r+")"),"\n in "+(e||"Unknown")+o)),Pw.getCurrentStack);return s&&(i+=s()||""),i};var Dw={ReactCurrentDispatcher:Nw,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Cw,IsSomeRendererActing:{current:!1},assign:sw};function Lw(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];jw("warn",e,r)}function M(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];jw("error",e,r)}function jw(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=Dw.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 o=0,i="Warning: "+t.replace(/%s/g,function(){return r[o++]});throw new Error(i)}catch(e){}}sw(Dw,{ReactDebugCurrentFrame:Pw,ReactComponentTreeHook:{}});var Fw={};function Vw(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;Fw[r]||(M("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),Fw[r]=!0)}var Hw={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){Vw(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){Vw(e,"replaceState")},enqueueSetState:function(e,t,r,n){Vw(e,"setState")}},Kw={};function zw(e,t,r){this.props=e,this.context=t,this.refs=Kw,this.updater=r||Hw}Object.freeze(Kw),zw.prototype.isReactComponent={},zw.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")},zw.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var Gw,Bw={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(Gw in Bw)Bw.hasOwnProperty(Gw)&&!function(e,t){Object.defineProperty(zw.prototype,e,{get:function(){Lw("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(Gw,Bw[Gw]);function qw(){}function $w(e,t,r){this.props=e,this.context=t,this.refs=Kw,this.updater=r||Hw}qw.prototype=zw.prototype,(r=$w.prototype=new qw).constructor=$w,sw(r,zw.prototype),r.isPureReactComponent=!0;var Xw,Yw,Ww=Object.prototype.hasOwnProperty,Jw={key:!0,ref:!0,__self:!0,__source:!0};function Qw(e){if(Ww.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function Zw(e){if(Ww.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var eE={},tE=function(e,t,r,n,o,i,s){e={$$typeof:uw,type:e,key:t,ref:r,props:s,_owner:i,_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:o}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e};function rE(e,t,r){var n,o={},i=null,s=null,a=null,u=null;if(null!=t)for(n in Qw(t)&&(s=t.ref,"string"==typeof(c=t).ref&&Cw.current&&c.__self&&Cw.current.stateNode!==c.__self&&(f=xw(Cw.current.type),eE[f]||(M('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',xw(Cw.current.type),c.ref),eE[f]=!0))),Zw(t)&&(i=""+t.key),a=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)Ww.call(t,n)&&!Jw.hasOwnProperty(n)&&(o[n]=t[n]);var c,l,f,p,d=arguments.length-2;if(1==d)o.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),o.children=h}if(e&&e.defaultProps){var v=e.defaultProps;for(n in v)void 0===o[n]&&(o[n]=v[n])}function g(){Yw||(Yw=!0,M("%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 m(){Xw||(Xw=!0,M("%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(i||s)&&(c="function"==typeof e?e.displayName||e.name||"Unknown":e,i&&(f=o,p=c,m.isReactWarning=!0,Object.defineProperty(f,"key",{get:m,configurable:!0})),s&&(r=o,l=c,g.isReactWarning=!0,Object.defineProperty(r,"ref",{get:g,configurable:!0}))),tE(e,i,s,a,u,Cw.current,o)}function nE(e){return"object"==typeof e&&null!==e&&e.$$typeof===uw}var oE=".",iE=":",sE=!1,aE=/\/+/g;function uE(e){return(""+e).replace(aE,"$&/")}var cE=10,lE=[];function fE(e,t,r,n){var o;return lE.length?((o=lE.pop()).result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o):{result:e,keyPrefix:t,func:r,context:n,count:0}}function pE(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,lE.length<cE&&lE.push(e)}function dE(e,t,r){return null==e?0:function e(t,r,n,o){var i,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 uw:case cw:a=!0}}if(a)return n(o,t,""===r?oE+hE(t,0):r),1;var u=0,c=""===r?oE:r+iE;if(Array.isArray(t))for(var l=0;l<t.length;l++)u+=e(i=t[l],c+hE(i,l),n,o);else if("function"==typeof(r=Sw(t))){r===t.entries&&(sE||Lw("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."),sE=!0);for(var f,p=r.call(t),d=0;!(f=p.next()).done;)u+=e(i=f.value,c+hE(i,d++),n,o)}else if("object"==s)throw r="",r=" If you meant to render a collection of children, use an array instead."+Pw.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 hE(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 yE(e,t,r){var n=e.func,o=e.context;n.call(o,t,e.count++)}function vE(e,t,r){var n=e.result,o=e.keyPrefix,i=e.func,s=e.context,i=i.call(s,t,e.count++);Array.isArray(i)?gE(i,n,r,function(e){return e}):null!=i&&(nE(i)&&(e=o+(!(s=i).key||t&&t.key===i.key?"":uE(i.key)+"/")+r,i=tE(s.type,e,s.ref,s._self,s._source,s._owner,s.props)),n.push(i))}function gE(e,t,r,n,o){var i="",t=fE(t,i=null!=r?uE(r)+"/":i,n,o);dE(e,vE,t),pE(t)}function mE(e){return"string"==typeof e||"function"==typeof e||e===lw||e===yw||e===pw||e===fw||e===gw||e===mw||"object"==typeof e&&null!==e&&(e.$$typeof===Ew||e.$$typeof===ww||e.$$typeof===dw||e.$$typeof===hw||e.$$typeof===vw||e.$$typeof===Tw||e.$$typeof===_w||e.$$typeof===Rw||e.$$typeof===bw)}function wE(){var e=Nw.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 EE(){if(Cw.current){var e=xw(Cw.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var bE=!1,TE={};function _E(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=EE())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),TE[t=r]||(TE[t]=!0,r="",e&&e._owner&&e._owner!==Cw.current&&(r=" It was passed a child from "+xw(e._owner.type)+"."),Mw(e),M('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),Mw(null)))}function RE(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];nE(n)&&_E(n,t)}else if(nE(e))e._store&&(e._store.validated=!0);else if(e){var o=Sw(e);if("function"==typeof o&&o!==e.entries)for(var i,s=o.call(e);!(i=s.next()).done;)nE(i.value)&&_E(i.value,t)}}function OE(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=xw(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==vw&&t.$$typeof!==ww)return;r=t.propTypes}r?(Mw(e),aw(r,e.props,"prop",n,Pw.getStackAddendum),Mw(null)):void 0===t.PropTypes||bE||(bE=!0,M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function IE(e,t,r){var n,o=mE(e),t=(o||(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+".":"")||EE(),null===e?s="null":Array.isArray(e)?s="array":void 0!==e&&e.$$typeof===uw?(s="<"+(xw(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,M("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)),rE.apply(this,arguments));if(null==t)return t;if(o)for(var i=2;i<arguments.length;i++)RE(arguments[i],e);if(e===lw){var s=t;Mw(s);for(var a=Object.keys(s.props),u=0;u<a.length;u++){var c=a[u];if("children"!==c&&"key"!==c){M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c);break}}null!==s.ref&&M("Invalid attribute `ref` supplied to `React.Fragment`."),Mw(null)}else OE(t);return t}var SE=!1;try{var NE=Object.freeze({}),CE=new Map([[NE,null]]),AE=new Set([NE]);CE.set(0,0),AE.add(0)}catch(e){}function kE(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,o,i=sw({},e.props),s=e.key,a=e.ref,u=e._self,c=e._source,l=e._owner;if(null!=t)for(n in Qw(t)&&(a=t.ref,l=Cw.current),Zw(t)&&(s=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)Ww.call(t,n)&&!Jw.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==o?i[n]=o[n]:i[n]=t[n]);var f=arguments.length-2;if(1==f)i.children=r;else if(1<f){for(var p=Array(f),d=0;d<f;d++)p[d]=arguments[d+2];i.children=p}return tE(e.type,s,a,u,c,l,i)}.apply(this,arguments),o=2;o<arguments.length;o++)RE(arguments[o],n.type);return OE(n),n}function xE(e){var t=IE.bind(null,e);return t.type=e,SE||(SE=!0,Lw("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 Lw("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}r=IE,R.Children={map:function(e,t,r){if(null==e)return e;var n=[];return gE(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=fE(null,null,t,r),dE(e,yE,t),pE(t)},count:function(e){return dE(e,function(){return null},null)},toArray:function(e){var t=[];return gE(e,t,null,function(e){return e}),t},only:function(e){if(nE(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},R.Component=zw,R.Fragment=lw,R.Profiler=pw,R.PureComponent=$w,R.StrictMode=fw,R.Suspense=gw,R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Dw,R.cloneElement=kE,R.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&M("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:hw,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:dw,_context:r}),o=!1,t={$$typeof:hw,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return o||(o=!0,M("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,M("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},R.createElement=r,R.createFactory=xE,R.createRef=function(){var e={current:null};return Object.seal(e),e},R.forwardRef=function(e){return null!=e&&e.$$typeof===ww?M("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?M("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&M("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||M("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:vw,render:e}},R.isValidElement=nE,R.lazy=function(e){var t,r,n={$$typeof:Ew,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){M("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){M("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},R.memo=function(e,t){return mE(e)||M("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:ww,type:e,compare:void 0===t?null:t}},R.useCallback=function(e,t){return wE().useCallback(e,t)},R.useContext=function(e,t){var r,n=wE();return void 0!==t&&M("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?M("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&&M("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},R.useDebugValue=function(e,t){return wE().useDebugValue(e,t)},R.useEffect=function(e,t){return wE().useEffect(e,t)},R.useImperativeHandle=function(e,t,r){return wE().useImperativeHandle(e,t,r)},R.useLayoutEffect=function(e,t){return wE().useLayoutEffect(e,t)},R.useMemo=function(e,t){return wE().useMemo(e,t)},R.useReducer=function(e,t,r){return wE().useReducer(e,t,r)},R.useRef=function(e){return wE().useRef(e)},R.useState=function(e){return wE().useState(e)},R.version="16.14.0"}"production"===production?U.exports=T:U.exports=R;var PE=U.exports,UE=U.exports.createContext({hackle:void 0,userVersion:0,initialized:!1}),ko=UE.Consumer,ME=UE.Provider;var DE=l.Logger.log;function LE(e,t){e=jE(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function jE(e,t){void 0===t&&(t="A");var r=U.exports.useContext(UE),n=r.hackle,o=r.userVersion,i=r.initialized,s=U.exports.useCallback(function(){return i?(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,i]),r=h0(U.exports.useState(function(){return n?s():(DE.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2),a=r[0],r=r[1],o={key:e,userVersion:o,initialized:i},u=h0(U.exports.useState(o),2),c=u[0],u=u[1];return HE(c,o)||(u(o),r(s())),{isLoading:!i,decision:a}}function FE(e){e=VE(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function VE(e){var t=U.exports.useContext(UE),r=t.hackle,n=t.userVersion,o=t.initialized,i=U.exports.useCallback(function(){return o?(null==r?void 0:r.featureFlagDetail(e))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION):l.FeatureFlagDecision.off(l.DecisionReason.SDK_NOT_READY)},[e,r,o]),t=h0(U.exports.useState(function(){return r?i():(DE.error("HackleClient is not existed"),l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION))}),2),s=t[0],t=t[1],n={key:e,userVersion:n,initialized:o},a=h0(U.exports.useState(n),2),u=a[0],a=a[1];return HE(u,n)||(a(n),t(i())),{isLoading:!o,decision:s}}function HE(e,t){return e.initialized===t.initialized&&e.key===t.key&&e.userVersion===t.userVersion}function KE(e){var t,r=e.experimentKey,e=e.children,n=(r=LE(r)).isLoading,o=r.variation;return n?null:e&&"function"==typeof e?e(o):(U.exports.Children.forEach(e,function(e){U.exports.isValidElement(e)&&(e.props.variation?o===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?U.exports.cloneElement(t,{variation:o}):null)}function zE(e){return e.variation,e=e.children,U.exports.createElement(U.exports.Fragment,null,e)}function GE(e){var t=(r=FE(e.featureKey)).isLoading,r=r.isOn;return t?null:PE.createElement(PE.Fragment,null,e.children(r))}l.HackleContext=UE,l.HackleContextConsumer=ko,l.HackleContextProvider=ME,l.HackleExperiment=KE,l.HackleFeature=GE,l.HackleProvider=function(e){var t=e.hackleClient,r=e.user,n=void 0===(o=e.timeout)?3e3:o,o=void 0!==(o=e.supportSSR)&&o,e=e.children,i=h0(U.exports.useState({hackle:t,initialized:!1,userVersion:0}),2),s=i[0],a=i[1];return U.exports.useEffect(function(){null!=r&&t.setUser(r)},[r]),U.exports.useEffect(function(){function e(){a(function(e){return d0(d0({},e),{userVersion:e.userVersion+1})})}return t.on("user-updated",e),function(){t.off("user-updated",e)}},[t]),U.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){a(function(e){return d0(d0({},e),{initialized:!0})})},function(){a(function(e){return d0(d0({},e),{initialized:!0})})}).catch(function(){a(function(e){return d0(d0({},e),{initialized:!0})})})},[t]),o||s.initialized?PE.createElement(ME,{value:s},e):null},l.HackleVariation=zE,l.createInstance=function(e,t){return new E0(e,t)},l.useFeature=function(e){var t=(n=U.exports.useContext(UE)).hackle,r=n.userVersion,n=n.initialized,o=U.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e))||!1},[e,t,n]),i=(s=h0(U.exports.useState(function(){return t?o():("undefined"!=typeof window&&DE.error("HackleClient is not existed"),!1)}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=h0(U.exports.useState(r),2))[0],n=n[1];return HE(a,r)||(n(r),s(o())),i},l.useFeatureFlagDetail=function(e){var t=(n=U.exports.useContext(UE)).hackle,r=n.userVersion,n=n.initialized,o=U.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION)},[e,t,n]),i=(s=h0(U.exports.useState(function(){return t?o():("undefined"!=typeof window&&DE.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=h0(U.exports.useState(r),2))[0],n=n[1];return HE(a,r)||(n(r),s(o())),i},l.useLoadableFeature=FE,l.useLoadableFeatureDetail=VE,l.useLoadableRemoteConfig=function(){var e=(i=U.exports.useContext(UE)).hackle,t=i.userVersion,r=i.initialized,n=U.exports.useCallback(function(){return r&&(null==e?void 0:e.remoteConfig())||new l.EmptyHackleRemoteConfig},[e,r]),o=(i=h0(U.exports.useState(function(){return e||DE.error("HackleClient is not existed"),n()}),2))[0],i=i[1],t={userVersion:t,initialized:r},s=(a=h0(U.exports.useState(t),2))[0],a=a[1];return HE(s,t)||(a(t),i(n())),{isLoading:!r,remoteConfig:o}},l.useLoadableVariation=LE,l.useLoadableVariationDetail=jE,l.useRemoteConfig=function(){var e=(r=U.exports.useContext(UE)).hackle,t=r.userVersion,r=r.initialized,n=U.exports.useCallback(function(){return(null==e?void 0:e.remoteConfig())||new l.EmptyHackleRemoteConfig},[e,r]),o=(i=h0(U.exports.useState(function(){return e||DE.error("HackleClient is not existed"),n()}),2))[0],i=i[1],t={userVersion:t,initialized:r},s=(r=h0(U.exports.useState(t),2))[0],r=r[1];return HE(s,t)||(r(t),i(n())),o},l.useTrack=function(){var t=U.exports.useContext(UE).hackle;return t?function(e){return null==t?void 0:t.track(e)}:(DE.error("HackleClient is not existed"),function(){})},l.useVariation=function(e,t){void 0===t&&(t="A");var r=(a=U.exports.useContext(UE)).hackle,n=a.userVersion,o=a.initialized,i=U.exports.useCallback(function(){return o&&(null==r?void 0:r.variation(e))||t},[t,e,r,o]),s=(a=h0(U.exports.useState(function(){return r?i():("undefined"!=typeof window&&DE.error("HackleClient is not existed"),t)}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:o},u=(c=h0(U.exports.useState(n),2))[0],c=c[1];return HE(u,n)||(c(n),a(i())),s},l.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(o=U.exports.useContext(UE)).hackle,n=o.userVersion,o=o.initialized,i=U.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e))||l.Decision.of(t,l.DecisionReason.EXCEPTION)},[t,e,r,o]),s=(a=h0(U.exports.useState(function(){return r?i():("undefined"!=typeof window&&DE.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:o},u=(o=h0(U.exports.useState(n),2))[0],o=o[1];return HE(u,n)||(o(n),a(i())),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={},j=new Uint8Array(16);function F(){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(j);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 z,K,B=[],G=0;G<256;++G)B.push((G+256).toString(16).substr(1));function q(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,e=(B[e[t+0]]+B[e[t+1]]+B[e[t+2]]+B[e[t+3]]+"-"+B[e[t+4]]+B[e[t+5]]+"-"+B[e[t+6]]+B[e[t+7]]+"-"+B[e[t+8]]+B[e[t+9]]+"-"+B[e[t+10]]+B[e[t+11]]+B[e[t+12]]+B[e[t+13]]+B[e[t+14]]+B[e[t+15]]).toLowerCase();if(H(e))return e;throw TypeError("Stringified UUID is invalid")}var $=0,Y=0;function X(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 W(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?X(t):t).length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var o=new Uint8Array(16+e.length);if(o.set(t),o.set(e,t.length),(o=a(o))[6]=15&o[6]|s,o[8]=63&o[8]|128,r){n=n||0;for(var i=0;i<16;++i)r[n+i]=o[i];return r}return q(o)}try{t.name=e}catch(e){}return t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t}function J(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,o,i){return Q((t=Q(Q(t,e),Q(n,i)))<<o|t>>>32-o,r)}function ee(e,t,r,n,o,i,s){return Z(t&r|~t&n,e,t,o,i,s)}function te(e,t,r,n,o,i,s){return Z(t&n|r&~n,e,t,o,i,s)}function re(e,t,r,n,o,i,s){return Z(t^r^n,e,t,o,i,s)}function ne(e,t,r,n,o,i,s){return Z(r^(t|~n),e,t,o,i,s)}var r=W("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[J(t)-1]=t;for(var r=1732584193,n=-271733879,o=-1732584194,i=271733878,s=0;s<e.length;s+=16){var a=r,u=n,c=o,l=i;r=ee(r,n,o,i,e[s],7,-680876936),i=ee(i,r,n,o,e[s+1],12,-389564586),o=ee(o,i,r,n,e[s+2],17,606105819),n=ee(n,o,i,r,e[s+3],22,-1044525330),r=ee(r,n,o,i,e[s+4],7,-176418897),i=ee(i,r,n,o,e[s+5],12,1200080426),o=ee(o,i,r,n,e[s+6],17,-1473231341),n=ee(n,o,i,r,e[s+7],22,-45705983),r=ee(r,n,o,i,e[s+8],7,1770035416),i=ee(i,r,n,o,e[s+9],12,-1958414417),o=ee(o,i,r,n,e[s+10],17,-42063),n=ee(n,o,i,r,e[s+11],22,-1990404162),r=ee(r,n,o,i,e[s+12],7,1804603682),i=ee(i,r,n,o,e[s+13],12,-40341101),o=ee(o,i,r,n,e[s+14],17,-1502002290),n=ee(n,o,i,r,e[s+15],22,1236535329),r=te(r,n,o,i,e[s+1],5,-165796510),i=te(i,r,n,o,e[s+6],9,-1069501632),o=te(o,i,r,n,e[s+11],14,643717713),n=te(n,o,i,r,e[s],20,-373897302),r=te(r,n,o,i,e[s+5],5,-701558691),i=te(i,r,n,o,e[s+10],9,38016083),o=te(o,i,r,n,e[s+15],14,-660478335),n=te(n,o,i,r,e[s+4],20,-405537848),r=te(r,n,o,i,e[s+9],5,568446438),i=te(i,r,n,o,e[s+14],9,-1019803690),o=te(o,i,r,n,e[s+3],14,-187363961),n=te(n,o,i,r,e[s+8],20,1163531501),r=te(r,n,o,i,e[s+13],5,-1444681467),i=te(i,r,n,o,e[s+2],9,-51403784),o=te(o,i,r,n,e[s+7],14,1735328473),n=te(n,o,i,r,e[s+12],20,-1926607734),r=re(r,n,o,i,e[s+5],4,-378558),i=re(i,r,n,o,e[s+8],11,-2022574463),o=re(o,i,r,n,e[s+11],16,1839030562),n=re(n,o,i,r,e[s+14],23,-35309556),r=re(r,n,o,i,e[s+1],4,-1530992060),i=re(i,r,n,o,e[s+4],11,1272893353),o=re(o,i,r,n,e[s+7],16,-155497632),n=re(n,o,i,r,e[s+10],23,-1094730640),r=re(r,n,o,i,e[s+13],4,681279174),i=re(i,r,n,o,e[s],11,-358537222),o=re(o,i,r,n,e[s+3],16,-722521979),n=re(n,o,i,r,e[s+6],23,76029189),r=re(r,n,o,i,e[s+9],4,-640364487),i=re(i,r,n,o,e[s+12],11,-421815835),o=re(o,i,r,n,e[s+15],16,530742520),n=re(n,o,i,r,e[s+2],23,-995338651),r=ne(r,n,o,i,e[s],6,-198630844),i=ne(i,r,n,o,e[s+7],10,1126891415),o=ne(o,i,r,n,e[s+14],15,-1416354905),n=ne(n,o,i,r,e[s+5],21,-57434055),r=ne(r,n,o,i,e[s+12],6,1700485571),i=ne(i,r,n,o,e[s+3],10,-1894986606),o=ne(o,i,r,n,e[s+10],15,-1051523),n=ne(n,o,i,r,e[s+1],21,-2054922799),r=ne(r,n,o,i,e[s+8],6,1873313359),i=ne(i,r,n,o,e[s+15],10,-30611744),o=ne(o,i,r,n,e[s+6],15,-1560198380),n=ne(n,o,i,r,e[s+13],21,1309151649),r=ne(r,n,o,i,e[s+4],6,-145523070),i=ne(i,r,n,o,e[s+11],10,-1120210379),o=ne(o,i,r,n,e[s+2],15,718787259),n=ne(n,o,i,r,e[s+9],21,-343485551),r=Q(r,a),n=Q(n,u),o=Q(o,c),i=Q(i,l)}return[r,n,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(J(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length),o=[],i=32*n.length,s="0123456789abcdef",a=0;a<i;a+=8){var u=n[a>>5]>>>a%32&255,u=parseInt(s.charAt(u>>>4&15)+s.charAt(15&u),16);o.push(u)}return o});function oe(e,t){return e<<t|e>>>32-t}var ie=W("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 o=0;o<n.length;++o)e.push(n.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,s=Math.ceil(i/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]=oe(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],w=r[4],E=0;E<80;++E)var b=Math.floor(E/20),b=oe(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}}(b,v,m,g)+w+t[b]+p[E]>>>0,w=g,g=m,m=oe(v,30)>>>0,v=y,y=b;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]+w>>>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,o=t||new Array(16),i=(e=e||{}).node||z,r=void 0!==e.clockseq?e.clockseq:K,s=(null!=i&&null!=r||(s=e.random||(e.rng||F)(),null==i&&(i=z=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==r&&(r=K=16383&(s[6]<<8|s[7]))),void 0!==e.msecs?e.msecs:Date.now()),a=void 0!==e.nsecs?e.nsecs:Y+1,u=s-$+(a-Y)/1e4;if(u<0&&void 0===e.clockseq&&(r=r+1&16383),1e4<=(a=(u<0||$<s)&&void 0===e.nsecs?0:a))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");$=s,K=r,u=(1e4*(268435455&(s+=122192928e5))+(Y=a))%4294967296,o[n++]=u>>>24&255,o[n++]=u>>>16&255,o[n++]=u>>>8&255,o[n++]=255&u,e=s/4294967296*1e4&268435455,o[n++]=e>>>8&255,o[n++]=255&e,o[n++]=e>>>24&15|16,o[n++]=e>>>16&255,o[n++]=r>>>8|128,o[n++]=255&r;for(var c=0;c<6;++c)o[n+c]=i[c];return t||q(o)},v3:r,v4:function(e,t,r){var n=(e=e||{}).random||(e.rng||F)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return q(n)},v5:ie,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:X})),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.IdentifiersBuilder=void 0,l.IdentifierType=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function ce(e,t){function r(){this.constructor=e}ue(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var h=function(){return(h=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function le(e,s,a,u){return new(a=a||Promise)(function(r,t){function n(e){try{i(u.next(e))}catch(e){t(e)}}function o(e){try{i(u.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((u=u.apply(e,s||[])).next())})}function fe(n,o){var i,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(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=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=o.call(n,u)}catch(e){t=[6,e],s=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}be.isNotNullOrUndefined=function(e){return null!=e},be.isNullOrUndefined=function(e){return null==e},be.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};var a=be,f=(Ee.mapNotNullOrUndefined=function(e,t){for(var r=Array(),n=0,o=e;n<o.length;n++){var i=t(o[n]);a.isNotNullOrUndefined(i)&&r.push(i)}return r},Ee.associateTo=function(e,t,r){for(var n=0,o=e;n<o.length;n++){var i=r(o[n]);t.set(i[0],i[1])}return t},Ee.associate=function(e,t){return this.associateTo(e,new Map,t)},Ee.associateBy=function(e,t){return this.associate(e,function(e){return[t(e),e]})},Ee.chunked=function(e,t){for(var r=[],n=e.slice();n.length;)r.push(n.splice(0,t));return r},Ee),pe={DISABLE:0,ERROR:1,WARN:2,INFO:3,DEBUG:4},de=(we.setLogLevel=function(e){this.logLevel=e=void 0===e?pe.INFO:e},we.initCounter=function(t){this.counters=f.associate(Object.keys(pe),function(e){return[e,t(e)]})},we._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){}},we.increment=function(e){var t;null!=(t=null==(t=we.counters)?void 0:t.get(e))&&t.increment()},we.logLevel=pe.INFO,we.log={error:function(e){pe.ERROR<=we.logLevel&&(we._log("ERROR",e),we.increment("ERROR"))},warn:function(e){pe.WARN<=we.logLevel&&(we._log("WARN",e),we.increment("WARN"))},info:function(e){pe.INFO<=we.logLevel&&(we._log("INFO",e),we.increment("INFO"))},debug:function(e){pe.DEBUG<=we.logLevel&&(we._log("DEBUG",e),we.increment("DEBUG"))}},we),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 we(){}function Ee(){}function be(){}function Te(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}function _e(e,t,r,n){this.id=e,this.key=t,this.isDropped=r,this.parameterConfigurationId=n}function Re(e,t,r){this.seed=e,this.slotSize=t,this.slots=r}function Ie(e,t){this.id=e,this.key=t}function Oe(e){var t,r={};return r.id=null!=(t=Ve.sanitizeValue(e.id))?t:void 0,r.userId=null!=(t=Ve.sanitizeValue(e.userId))?t:void 0,r.deviceId=null!=(t=Ve.sanitizeValue(e.deviceId))?t:void 0,"object"==typeof e.properties&&(r.properties=ze.sanitize(e.properties)),"object"==typeof e.identifiers&&(r.identifiers=Ve.sanitize(e.identifiers)),Boolean(r.id||r.userId||r.deviceId||r.identifiers&&0<Object.keys(r.identifiers).length)?r:null}function Se(e){this.conditions=e}function Ce(e,t){this.key=e,this.match=t}function Ne(e,t){this.type=e,this.name=t}function Ae(e,t,r,n){this.type=e,this.operator=t,this.valueType=r,this.values=n}function ke(e,t,r){this.type=e,this.variationId=t,this.bucketId=r}function xe(e,t){this.target=e,this.action=t}function Pe(e,t,r,n){this.id=e,this.key=t,this.type=r,this.targets=n}function Ue(e,t){this.id=e,this.experiments=t}function Me(e,t,r,n,o,i){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.targetRules=o,this.defaultValue=i}function De(e,t,r,n,o){this.key=e,this.name=t,this.target=r,this.bucketId=n,this.value=o}function Le(e,t){this.id=e,this.rawValue=t}var je={getRequest:function(n,o){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"),Te(r,o),r.send()})}},postRequest:function(e,t,r,n,o){var t=JSON.stringify(t),i=new XMLHttpRequest;i.open("POST",e),i.onreadystatechange=function(){i.readyState===i.DONE&&(200<=i.status&&i.status<400?n({statusCode:i.status}):o&&o({statusCode:i.status}))},i.setRequestHeader("content-type","application/json"),Te(i,r),i.send(t)},sendBeacon:function(e,t,r,n,o){var i=!1;if(i="undefined"!=typeof window?window&&window.navigator&&window.navigator.sendBeacon&&!0:i){i=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",i),!window.navigator.sendBeacon(e,t))return me.error("sendBeacon failed to queue request."),void o();n()}else me.error("Does not support sendBeacon"),o()}},Fe=de.log,Ve=(pt.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]})},pt.sanitize=function(e){var t={};if(a.isNullOrUndefined(e))return t;for(var r=0,n=Object.entries(e);r<n.length;r++){var o=n[r],i=o[0],o=o[1];this.isValidType(i)?(o=this.sanitizeValue(o),a.isNullOrUndefined(o)?Fe.debug("Invalid identifier value. The identifier type value be a string of 512 characters or less. [".concat(i,"]")):t[i]=o):Fe.debug("Invalid identifier type. The identifier type must be a string of 128 characters or less. [".concat(i,"]"))}return t},pt.isValidType=function(e){return!a.isNullOrUndefined(e)&&"string"==typeof e&&0<e.length&&e.length<=this.MAX_IDENTIFIER_TYPE_LENGTH},pt.sanitizeValue=function(e){return"string"==typeof e&&0<e.length&&e.length<=this.MAX_IDENTIFIER_VALUE_LENGTH?e:"number"==typeof e?e.toString():null},pt.MAX_IDENTIFIER_TYPE_LENGTH=128,pt.MAX_IDENTIFIER_VALUE_LENGTH=512,pt),He=de.log,ze=(ft.sanitize=function(e){var t={};if(a.isNullOrUndefined(e))return t;for(var r=0,n=Object.entries(e);r<n.length;r++){var o,i=n[r],s=i[0],i=i[1];if(Object.keys(t).length>=this.MAX_PROPERTIES_COUNT){He.debug("The number of properties cannot exceed 128. Drops excess properties. [".concat(s,", ").concat(i,"]"));break}this.isValidKey(s)?(o=this.sanitizeValue(s,i),a.isNullOrUndefined(o)?He.debug("Invalid property value. The property value mus be 'string(..1024)', 'number', 'boolean', or 'array' type. [".concat(i,"]")):t[s]=o):He.debug("Invalid property key. The property key must be a string of 128 characters or less. [".concat(s,"]"))}return t},ft.isValidProperty=function(e,t){return this.isValidKey(e)&&this.isValidValue(t)},ft.isValidKey=function(e){return a.isNotNullOrUndefined(e)&&"string"==typeof e&&0<e.length&&e.length<=this.MAX_PROPERTY_KEY_LENGTH},ft.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},ft.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))},ft.isValidElement=function(e){return!a.isNullOrUndefined(e)&&("string"==typeof e?0<e.length&&e.length<=this.MAX_PROPERTY_VALUE_LENGTH:"number"==typeof e)},ft.SYSTEM_PROPERTY_KEY_PREFIX="$",ft.MAX_PROPERTIES_COUNT=128,ft.MAX_PROPERTY_KEY_LENGTH=128,ft.MAX_PROPERTY_VALUE_LENGTH=1024,ft),Ke=de.log,Be=(lt.of=function(e,t){return new lt(e,t)},lt),Ge=(ct.of=function(e,t,r){return new ct(e,t,r=void 0===r?new $e:r)},ct.prototype.get=function(e,t){return this.config.get(e,t)},ct),qe=(ut.on=function(e,t){return new ut(!0,e,t=void 0===t?new $e:t)},ut.off=function(e,t){return new ut(!1,e,t=void 0===t?new $e:t)},ut.prototype.get=function(e,t){return this.config.get(e,t)},ut),ie=(at.prototype.get=function(e,t){return t},at),$e=(st.prototype.get=function(e,t){return t},st),u=(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.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.TYPE_MISMATCH="TYPE_MISMATCH",n),Ye=(it.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},it.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},it.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},it),Xe=(ot.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},ot),We=(nt.ID="$id",nt.USER="$userId",nt.DEVICE="$deviceId",nt.SESSION="$sessionId",nt.HACKLE_DEVICE="$hackleDeviceId",nt),Je=(rt.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},rt.prototype.add=function(e,t){var r=Ve.sanitizeValue(t);return Ve.isValidType(e)&&r?this.identifiers[e]=t:Ke.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},rt.prototype.build=function(){return this.identifiers},rt),Qe=(tt.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},tt),Ze=(et.prototype.get=function(e,t){e=this.parameters.get(e);return!a.isNullOrUndefined(e)&&(a.isNullOrUndefined(t)||typeof e==typeof t)?e:t},et);function et(e,t){this.id=e,this.parameters=t}function tt(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function rt(){this.identifiers={}}function nt(){}function ot(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function it(e,t,r,n,o,i,s,a,u,c,l,f,p,d){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.status=o,this.version=i,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 st(){}function at(){}function ut(e,t,r){this.isOn=e,this.reason=t,this.config=r}function ct(e,t,r){this.variation=e,this.reason=t,this.config=r}function lt(e,t){this.value=e,this.reason=t}function ft(){}function pt(){}xt.tryParse=function(e){var t,r,n,o,e=xt.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,o=e[4],e=e[5],new xt(new ht(parseInt(t,10),parseInt(r,10),parseInt(n,10)),yt.parse(o),yt.parse(e))},xt.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},xt.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},xt.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},xt.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},xt.prototype.isLessThan=function(e){return this.compareTo(e)<0},xt.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},xt.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 dt=xt,ht=(kt.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},kt),yt=(At.parse=function(e){return e?new At(e.split(".")):At.EMPTY},At.prototype.isEmpty=function(){return 0===this.identifiers.length},At.prototype.isNotEmpty=function(){return!this.isEmpty()},At.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},At.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=At.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},At.compareIdentifiers=function(e,t){return At.numericIdentifierRegExp.test(e)&&At.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},At.EMPTY=new At([]),At.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,At),vt=["MATCH","NOT_MATCH"],mt=["STRING","NUMBER","BOOLEAN","VERSION","JSON","NULL","UNKNOWN"],gt=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],wt=["VARIATION","BUCKET"],Et=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT"],bt=["USER_ID","USER_PROPERTY"],Tt=(Nt.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},Nt.IDENTIFIER=new Nt("SEGMENT"),Nt.PROPERTY=new Nt("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY"),Nt.SEGMENT=new Nt("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),Nt),_t=(o.nanosToUnit=function(e,t){switch(t){case"microseconds":return e/(o.C1/o.C0);case"milliseconds":return e/(o.C2/o.C0);case"seconds":return e/(o.C3/o.C0);default:return e}},o.microsToUnit=function(e,t){switch(t){case"nanoseconds":return e*(o.C1/o.C0);case"milliseconds":return e/(o.C2/o.C1);case"seconds":return e/(o.C3/o.C1);default:return e}},o.millisToUnit=function(e,t){switch(t){case"nanoseconds":return e*(o.C2/o.C0);case"microseconds":return e*(o.C2/o.C1);case"seconds":return e/(o.C3/o.C2);default:return e}},o.secondsToUnit=function(e,t){switch(t){case"nanoseconds":return e*(o.C3/o.C0);case"microseconds":return e*(o.C3/o.C1);case"milliseconds":return e*(o.C3/o.C2);default:return e}},o.C3=1e3*(o.C2=1e3*(o.C1=1e3*(o.C0=1))),o.converter={nanoseconds:o.nanosToUnit,microseconds:o.microsToUnit,milliseconds:o.millisToUnit,seconds:o.secondsToUnit},o),r=(Ct.prototype.tick=function(){return 1e3*Date.now()},Ct.prototype.currentMillis=function(){return Date.now()},Ct),Rt=(St.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},St.prototype.tag=function(e,t){return this._tags[e]=t,this},St.prototype.register=function(e){return e.registerTimer({name:this.name,tags:this._tags,type:"TIMER"})},St),It=(Ot.start=function(e){return new Ot(e=void 0===e?Ot.defaultClock:e)},Ot.prototype.stop=function(e){var t=this._clock.tick()-this.startTime;e.record(t,"microseconds")},Ot.defaultClock=new r,Ot);function Ot(e){this._clock=e,this.startTime=this._clock.tick()}function St(e){this.name=e,this._tags={},this.name=e}function Ct(){}function o(){}function Nt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function At(e){this.identifiers=e}function kt(e,t,r){this.major=e,this.minor=t,this.patch=r}function xt(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}Ut.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},Ut.prototype.tag=function(e,t){return this._tags[e]=t,this},Ut.prototype.register=function(e){return e.registerCounter({name:this.name,tags:this._tags,type:"COUNTER"})};var Pt=Ut;function Ut(e){this.name=e,this._tags={}}Object.defineProperty(Dt.prototype,"value",{get:function(){return this.valueSupplier()},enumerable:!1,configurable:!0});var Mt=Dt;function Dt(e,t){this.valueSupplier=t,this.field=e}function Lt(e,t){return e.name===t.name&&Ve.isEquals(e.tags,t.tags)}qt.prototype.count=function(){return this.counterValue},qt.prototype.increment=function(e){this.counterValue+=null!=e?e:1},qt.prototype.measure=function(){return[new Mt("count",this.count.bind(this))]};var jt,Ft=qt,Vt=(Gt.prototype.flush=function(){var e=this.currentCounter;return this.currentCounter=new Ft(this.id),e},Gt.prototype.count=function(){return this.currentCounter.count()},Gt.prototype.increment=function(e){this.currentCounter.increment(e)},Gt.prototype.measure=function(){return[new Mt("count",this.count.bind(this))]},Gt),Ht=(Bt.prototype.values=function(){return Array.from(this.data.values())},Bt.prototype.keys=function(){return Array.from(this.data.keys())},Bt.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},Bt.prototype.has=function(e){return void 0!==this.get(e)},Bt.prototype.add=function(e,t){t=(t=t)||e;return this.data.set(e,t),this},Bt.prototype.delete=function(e){var t;if(this.has(e))return t=this.get(e),this.data.delete(e),t},Bt.prototype.forEach=function(e){this.data.forEach(e)},Bt),r=(Object.defineProperty(Kt.prototype,"metrics",{get:function(){return Array.from(this._metrics.values())},enumerable:!1,configurable:!0}),Kt.prototype.registerCounter=function(e){return this.registerMetricIfNecessary(e,this.createCounter.bind(this))},Kt.prototype.registerTimer=function(e){return this.registerMetricIfNecessary(e,this.createTimer.bind(this))},Kt.prototype.counter=function(e,t){return void 0===t&&(t={}),new Pt(e).tags(t).register(this)},Kt.prototype.timer=function(e,t){return void 0===t&&(t={}),new Rt(e).tags(t).register(this)},Kt.prototype.registerMetricIfNecessary=function(e,t){return this.getOrCreateMetric(e,t)},Kt.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},Kt.prototype.close=function(){},Kt),i=(ce(zt,jt=r),zt.prototype.start=function(){var e=this;void 0===this.currentIntervalId&&(this.currentIntervalId=setInterval(function(){e.publish()},this.pushIntervalMillis),de.log.info("PushMetricRegistry started. Publish metrics every ".concat(this.pushIntervalMillis,"ms.")))},zt.prototype.stop=function(){void 0!==this.currentIntervalId&&(clearInterval(this.currentIntervalId),this.currentIntervalId=void 0,this.publish(),de.log.info("PushMetricRegistry stopped."))},zt.prototype.close=function(){this.stop()},zt);function zt(e){var t=jt.call(this)||this;return t.pushIntervalMillis=e,t.currentIntervalId=void 0,t.pushIntervalMillis=e,t}function Kt(){this.id=ae.v4(),this.name="MetricRegistry",this._metrics=new Ht(Lt)}function Bt(e){this.compareFn=e,this.data=new Map,this.compareFn=e,this.data=new Map}function Gt(e){this.id=e,this.currentCounter=new Ft(e)}function qt(e){this.counterValue=0,this.id=e}rr.prototype.count=function(){return this._count},rr.prototype.totalTime=function(e){return _t.nanosToUnit(this._total,e)},rr.prototype.max=function(e){return _t.nanosToUnit(this._max,e)},rr.prototype.mean=function(e){return 0===this.count()?0:this.totalTime(e)/this.count()},rr.prototype.record=function(e,t){e<0||(t=_t.converter[t](e,"nanoseconds"),this._count=this.count()+1,this._total+=t,this._max=Math.max(t,this._max))},rr.prototype.measure=function(){var e=this;return[new Mt("count",this.count.bind(this)),new Mt("total",function(){return e.totalTime("milliseconds")}),new Mt("max",function(){return e.max("milliseconds")}),new Mt("mean",function(){return e.mean("milliseconds")})]};var $t,Yt=rr,Xt=(tr.prototype.flush=function(){var e=this.currentTimer;return this.currentTimer=new Yt(this.id),e},tr.prototype.count=function(){return this.currentTimer.count()},tr.prototype.totalTime=function(e){return this.currentTimer.totalTime(e)},tr.prototype.max=function(e){return this.currentTimer.max(e)},tr.prototype.record=function(e,t){this.currentTimer.record(e,t)},tr.prototype.mean=function(e){return 0===this.count()?0:this.totalTime(e)/this.count()},tr.prototype.measure=function(){var e=this;return[new Mt("count",this.count.bind(this)),new Mt("total",function(){return e.totalTime("milliseconds")}),new Mt("max",function(){return e.max("milliseconds")}),new Mt("mean",function(){return e.mean("milliseconds")})]},tr),i=(ce(er,$t=i),er.prototype.createCounter=function(e){return new Vt(e)},er.prototype.createTimer=function(e){return new Xt(e)},er.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)},er.prototype.close=function(){$t.prototype.close.call(this)},er),Wt=(Zt.prototype.count=function(){return 0},Zt.prototype.increment=function(e){},Zt.prototype.measure=function(){return[new Mt("count",this.count.bind(this))]},Zt),Jt=(Object.defineProperty(Qt.prototype,"counters",{get:function(){return Array.from(this._counters.values())},enumerable:!1,configurable:!0}),Qt.prototype.add=function(e){this._counters.add(e,e.registerCounter(this.id))},Qt.prototype.count=function(){return(this.counters[0]||this.noopCounter).count()},Qt.prototype.increment=function(t){this.counters.forEach(function(e){e.increment(t)})},Qt.prototype.measure=function(){return[new Mt("count",this.count.bind(this))]},Qt);function Qt(e){this._counters=new Ht(function(e,t){return e.id===t.id}),this.id=e,this.noopCounter=new Wt(e)}function Zt(e){this.id=e}function er(e){return $t.call(this,e)||this}function tr(e){this.id=e,this.currentTimer=new Yt(e)}function rr(e){this._count=0,this._total=0,this._max=0,this.id=e}Ur.prototype.measure=function(){var e=this;return[new Mt("count",this.count.bind(this)),new Mt("total",function(){return e.totalTime("milliseconds")}),new Mt("max",function(){return e.max("milliseconds")}),new Mt("mean",function(){return e.mean("milliseconds")})]},Ur.prototype.count=function(){return 0},Ur.prototype.totalTime=function(e){return 0},Ur.prototype.max=function(e){return 0},Ur.prototype.mean=function(e){return 0},Ur.prototype.record=function(e,t){};var nr,or,ir,sr,ar,ur=Ur,cr=(Object.defineProperty(Pr.prototype,"firstTimer",{get:function(){return this.timers[0]||this.noopTimer},enumerable:!1,configurable:!0}),Pr.prototype.totalTime=function(e){return this.firstTimer.totalTime(e)},Pr.prototype.max=function(e){return this.firstTimer.max(e)},Pr.prototype.mean=function(e){return this.firstTimer.mean(e)},Pr.prototype.record=function(t,r){this.timers.forEach(function(e){e.record(t,r)})},Object.defineProperty(Pr.prototype,"timers",{get:function(){return Array.from(this._timers.values())},enumerable:!1,configurable:!0}),Pr.prototype.add=function(e){this._timers.add(e,e.registerTimer(this.id))},Pr.prototype.count=function(){return this.firstTimer.count()},Pr.prototype.measure=function(){var e=this;return[new Mt("count",this.count.bind(this)),new Mt("total",function(){return e.totalTime("milliseconds")}),new Mt("max",function(){return e.max("milliseconds")}),new Mt("mean",function(){return e.mean("milliseconds")})]},Pr),r=(ce(xr,ar=r),xr.prototype.createCounter=function(e){e=new Jt(e);return this.addRegistry(e),e},xr.prototype.createTimer=function(e){e=new cr(e);return this.addRegistry(e),e},xr.prototype.addRegistry=function(t){this.registries.forEach(function(e){return t.add(e)})},xr.prototype.add=function(t){t instanceof xr||this.registries.has(t)||(this.registries.add(t),this.metrics.forEach(function(e){void 0!==e.add&&"function"==typeof e.add&&e.add(t)}))},xr.prototype.close=function(){this.registries.forEach(function(e){e.close()})},xr),lr=(kr.counter=function(e,t){return kr.globalRegistry.counter(e,t)},kr.timer=function(e,t){return kr.globalRegistry.timer(e,t)},kr.addRegistry=function(e){kr.globalRegistry.add(e),de.log.info("MetricRegistry added ".concat(e.name))},kr.globalRegistry=new r,kr),fr=(ce(Ar,sr=i),Ar.prototype.flushMetrics=function(e){var t=this;f.chunked(e.filter(this.isDispatchTarget.bind(this)),100).forEach(function(e){t.dispatch(e)})},Ar.prototype.isDispatchTarget=function(e){return!("COUNTER"!==e.id.type&&"TIMER"!==e.id.type)&&0<e.count()},Ar.prototype.dispatch=function(e){this.useBeacon&&this.shouldUseBeacon?this.httpClient.sendBeacon(this.monitoringEndPoint,this.batch(e),this.httpHeader,function(){de.log.info("Beacon called.")}):this.httpClient.postRequest(this.monitoringEndPoint,this.batch(e),this.httpHeader,function(){},function(){de.log.error("Failed to flushing metrics.")})},Ar.prototype.batch=function(e){return{metrics:e.map(function(e){return{name:e.id.name,type:e.id.type,tags:e.id.tags,measurements:Object.fromEntries(f.associate(e.measure(),function(e){return[e.field,e.value]}))}})}},Ar.prototype.createCounter=function(e){return new Vt(e)},Ar.prototype.createTimer=function(e){return new Xt(e)},Ar.prototype.close=function(){this.shouldUseBeacon=!0,sr.prototype.close.call(this)},Ar),pr=(Nr.experiment=function(e,t,r){t=lr.timer("experiment.decision",{key:String(t),variation:r.variation,reason:String(r.reason)});e.stop(t)},Nr.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)},Nr.remoteConfig=function(e,t,r){t=lr.timer("remote.config.decision",{key:String(t),reason:String(r.reason)});e.stop(t)},Nr),dr=(Cr.record=function(e,t,r){e=lr.timer("api.call",{operation:e,success:String(r)});t.stop(e)},Cr),hr=de.log,yr=(Sr.prototype.get=function(e,t){if(a.isNullOrUndefined(t))return this._get(e,"NULL",t).value;switch(typeof t){case"string":return this._get(e,"STRING",t).value;case"number":return this._get(e,"NUMBER",t).value;case"boolean":return this._get(e,"BOOLEAN",t).value;default:return this._get(e,"UNKNOWN",t).value}},Sr.prototype._get=function(r,n,o){var e=It.start(),t=function(e){try{if(a.isNullOrUndefined(r))return Be.of(o,u.INVALID_INPUT);var t=e.hackleUserResolver.resolveCurrentUser();return e.client._remoteConfig(r,t,n,o)}catch(e){return hr.error("Unexpected exception while deciding remote config parameter[".concat(r,"]. Returning default value. : ").concat(e)),Be.of(o,u.EXCEPTION)}}(this);return pr.remoteConfig(e,r,t),t},Sr),vr=de.log,mr=(Or.prototype.getSessionId=function(){return this.sessionManager.sessionId},Or.prototype.getUser=function(){return this.userManager.currentUser},Or.prototype.setUser=function(e){try{var t=Oe(e);if(!t)return void vr.warn("invalid user");this.userManager.setUser(t)}catch(e){vr.error("Unexpected exception while set user: ".concat(e))}},Or.prototype.setUserId=function(e){try{void 0===e&&this.userManager.setUserId(void 0);var t=Ve.sanitizeValue(e);if(!t)return void vr.warn("Invalid userId. [userId=".concat(e,"]"));this.userManager.setUserId(t)}catch(e){vr.error("Unexpected exception while set userId: ".concat(e))}},Or.prototype.setDeviceId=function(e){try{if(!Ve.sanitizeValue(e))return void vr.warn("Invalid deviceId. [deviceId=".concat(e,"]"));this.userManager.setDeviceId(e)}catch(e){vr.error("Unexpected exception while set deviceId: ".concat(e))}},Or.prototype.setUserProperty=function(e,t){try{if(!ze.isValidKey(e))return void vr.warn("Invalid property key. [key=".concat(e,"]"));if(!ze.isValidValue(t))return void vr.warn("Invalid property value. [key=".concat(t,"]"));this.userManager.setUserProperty(e,t)}catch(e){vr.error("Unexpected exception while set userProperty: ".concat(e))}},Or.prototype.setUserProperties=function(e){try{var t=ze.sanitize(e);this.userManager.setUserProperties(t)}catch(e){vr.error("Unexpected exception while set userProperties: ".concat(e))}},Or.prototype.resetUser=function(){try{this.userManager.resetUser()}catch(e){vr.error("Unexpected exception while reset user: ".concat(e))}},Or.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},Or.prototype.variationDetail=function(n,o,e){var i=e||"A",e=It.start(),t=function(e){try{var t=e.userManager.resolveCurrentOrNull(o);if(!t)return vr.warn("invalid user"),Ge.of(i,u.INVALID_INPUT);var r=e.hackleUserResolver.resolve(t);return e.hackleInternalClient._experiment(n,r,i)}catch(e){return vr.error("Unexpected exception while deciding variation for experiment[".concat(n,"]. Returning default variation[").concat(i,"] : ").concat(e)),Ge.of(i,u.EXCEPTION)}}(this);return pr.experiment(e,n,t),t},Or.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},Or.prototype.featureFlagDetail=function(n,o){var e=It.start(),t=function(e){try{var t=e.userManager.resolveCurrentOrNull(o);if(!t)return vr.warn("invalid user"),qe.off(u.INVALID_INPUT);var r=e.hackleUserResolver.resolve(t);return e.hackleInternalClient._featureFlag(n,r)}catch(e){return vr.error("Unexpected exception while deciding feature flag[".concat(n,"]. Returning default value[false] : ").concat(e)),qe.off(u.EXCEPTION)}}(this);return pr.featureFlag(e,n,t),t},Or.prototype.track=function(e,t){try{vr.debug("track event : ".concat(JSON.stringify(e)));var r=this._convertEvent(e),n=this.userManager.resolveCurrentOrNull(t);if(!n)return void vr.warn("invalid user");var o=this.hackleUserResolver.resolve(n);this.hackleInternalClient._track(r,o)}catch(e){vr.error("Unexpected exception while tracking event: $t")}},Or.prototype.trackPageView=function(e){vr.debug("tracking page view");var t=this.hackleUserResolver.resolve(this.userManager.currentUser);this.hackleInternalClient._track({key:"$page_view"},t)},Or.prototype.remoteConfig=function(e){return new yr(this.hackleInternalClient,this.userManager,this.hackleUserResolver,e)},Or.prototype.onReady=function(e,t){this.hackleInternalClient._onReady(e,t=void 0===t?3e3:t)},Or.prototype.onInitialized=function(e){return this.hackleInternalClient._onInitialized({timeout:null==e?void 0:e.timeout})},Or.prototype.close=function(){vr.debug("Hackle Client is closing"),this.hackleInternalClient._close()},Or.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},Or),gr=(Ir.exposure=function(e,t,r){return new wr((new Date).getTime(),t,e,r.variationId,r.variationKey,r.reason,this.exposureProperties(r))},Ir.exposureProperties=function(e){return a.isNotNullOrUndefined(e.config)?{$parameterConfigurationId:e.config.id}:{}},Ir.track=function(e,t,r,n){return new Er(n,r,e,t)},Ir.remoteConfig=function(e,t,r){return new br((new Date).getTime(),t,e,r)},Ir.isExposure=function(e){return void 0!==e.experiment},Ir.isTrack=function(e){return void 0!==e.eventType},Ir.isRemoteConfig=function(e){return void 0!==e.remoteConfigParameter},Ir.isExposureDto=function(e){return"experimentId"in e&&void 0!==e.experimentId},Ir.isTrackDto=function(e){return"eventTypeId"in e&&void 0!==e.eventTypeId},Ir.isRemoteConfigDto=function(e){return"parameterId"in e&&void 0!==e.parameterId},Ir.prototype.toDto=function(){return{insertId:this.insertId,timestamp:this.timestamp,userId:this.user.identifiers[We.ID],identifiers:this.user.identifiers,userProperties:ze.sanitize(this.user.properties),hackleProperties:ze.sanitize(this.user.hackleProperties)}},Ir),wr=(ce(Rr,ir=gr),Rr.prototype.copyWithUser=function(e){return new Rr(this.timestamp,e,this.experiment,this.variationId,this.variationKey,this.decisionReason,this.properties,this.insertId)},Rr.prototype.toDto=function(){return h(h({},ir.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})},Rr),Er=(ce(_r,or=gr),_r.prototype.copyWithUser=function(e){return new _r(this.timestamp,e,this.eventType,this.event,this.insertId)},_r.prototype.toDto=function(){return h(h({},or.prototype.toDto.call(this)),{eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:ze.sanitize(this.event.properties)})},_r),br=(ce(Tr,nr=gr),Tr.prototype.copyWithUser=function(e){return new Tr(this.timestamp,e,this.remoteConfigParameter,this.evaluation,this.insertId)},Tr.prototype.toDto=function(){return h(h({},nr.prototype.toDto.call(this)),{parameterId:this.remoteConfigParameter.id,parameterKey:this.remoteConfigParameter.key,parameterType:this.remoteConfigParameter.type,valueId:this.evaluation.valueId,decisionReason:this.evaluation.reason.toString(),properties:ze.sanitize(this.evaluation.properties)})},Tr);function Tr(e,t,r,n,o){e=nr.call(this,e,t,o)||this;return e.remoteConfigParameter=r,e.evaluation=n,e}function _r(e,t,r,n,o){e=or.call(this,e,t,o)||this;return e.eventType=r,e.event=n,e}function Rr(e,t,r,n,o,i,s,a){e=ir.call(this,e,t,a)||this;return e.experiment=r,e.variationId=n,e.variationKey=o,e.decisionReason=i,e.properties=s,e}function Ir(e,t,r){void 0===r&&(r=ae.v4()),this.timestamp=e,this.user=t,this.insertId=r}function Or(e,t,r,n){this.hackleInternalClient=e,this.hackleUserResolver=t,this.sessionManager=r,this.userManager=n}function Sr(e,t,r,n){this.client=e,this.userManager=t,this.hackleUserResolver=r,this.user=n}function Cr(){}function Nr(){}function Ar(e,t,r,n,o){t=sr.call(this,t)||this;return t.monitoringBaseUrl=e,t.httpClient=r,t.httpHeader=n,t.useBeacon=o,t.monitoringEndPoint="".concat(t.monitoringBaseUrl,"/metrics"),t.shouldUseBeacon=!1,t.start(),t.monitoringBaseUrl=e,t}function kr(){}function xr(){var e=null!==ar&&ar.apply(this,arguments)||this;return e.registries=new Ht(function(e,t){return e.id===t.id}),e}function Pr(e){this._timers=new Ht(function(e,t){return e.id===t.id}),this.id=e,this.noopTimer=new ur(e)}function Ur(e){this.id=e}function Mr(e){var t=new Array,r=new Array,n=new Array;return e.forEach(function(e){e instanceof gr?gr.isExposure(e)?t.push(e.toDto()):gr.isTrack(e)?r.push(e.toDto()):gr.isRemoteConfig(e)&&n.push(e.toDto()):gr.isExposureDto(e)?t.push(e):gr.isTrackDto(e)?r.push(e):gr.isRemoteConfigDto(e)&&n.push(e)}),{exposureEvents:t,trackEvents:r,remoteConfigEvents:n}}en.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(),Mr(e)),o=It.start();this.httpRequest.postRequest(this.dispatchUrl,e,n,function(e){t(e),dr.record("post.events",o,!0)},function(e){null!=r&&r(e),dr.record("post.events",o,!1)})},en.prototype.dispatchXhrOrBeacon=function(e,t,r){var n,o,i;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(),o=Mr(e),i=It.start(),this.httpRequest.sendBeacon(this.beaconDispatchUrl,o,n,function(e){t(e),dr.record("post.events",i,!0)},function(e){null!=r&&r(e),dr.record("post.events",i,!1)})):this.dispatch(e,t,r)};var Dr=en,Lr=de.log,jr=(m.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},m.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},m.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},m.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},m.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},m.prototype.getContainerOrNull=function(e){return this.containers.get(e)},m.prototype.getParameterConfigurationOrNull=function(e){return this.parameterConfigurations.get(e)},m.prototype.getRemoteConfigParameterOrNull=function(e){return this.remoteConfigParameters.get(e)},m.from=function(e){var t=this,r=f.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]});return new m(f.associateBy(f.mapNotNullOrUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),f.associateBy(f.mapNotNullOrUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),r,f.associate(e.events,function(e){return[e.key,new Ie(e.id,e.key)]}),f.associateBy(f.mapNotNullOrUndefined(e.segments,function(e){return t.toSegmentOrNull(e)}),function(e){return e.key}),f.associate(e.containers,function(e){return[e.id,t.toContainer(e)]}),f.associate(e.parameterConfigurations,function(e){return[e.id,t.toParameterConfiguration(e)]}),f.associateBy(f.mapNotNullOrUndefined(e.remoteConfigParameters,function(e){return t.toRemoteConfigParameterOrNull(e)}),function(e){return e.key}))},m.toBucket=function(e){return new Re(e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new Xe(t,r,e)}))},m.toExperimentOrNull=function(e,t){var r=this,n=this.experimentStatusOrNull(t.execution.status),o=t.variations.map(function(e){return new _e(e.id,e.key,"DROPPED"===e.status,e.parameterConfigurationId)}),i=f.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),s=f.mapNotNullOrUndefined(t.execution.segmentOverrides,function(e){return r.toTargetRuleOrNull(e,Tt.IDENTIFIER)}),a=f.mapNotNullOrUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e,Tt.PROPERTY)}),u=f.mapNotNullOrUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e,Tt.PROPERTY)}),c=this.toTargetActionOrNull(t.execution.defaultRule);return n&&c&&new Ye(t.id,t.key,e,t.identifierType,n,t.version,o,i,s,a,u,c,t.containerId,t.winnerVariationId)},m.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void Lr.debug("Unsupported status [".concat(e,"]"))}},m.toTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t),e=this.toTargetActionOrNull(e.action);return t&&e&&new xe(t,e)},m.toTargetActionOrNull=function(e){var t=this.parseOrNull(wt,e.type);return t&&new ke(t,e.variationId,e.bucketId)},m.toTargetOrNull=function(e,t){var r=this,e=f.mapNotNullOrUndefined(e.conditions,function(e){return r.toConditionOrNull(e,t)});return new Se(e)},m.toConditionOrNull=function(e,t){var r=this.toTargetKeyOrNull(e.key);if(r&&t.supports(r.type))return(t=this.toTargetMatchOrNull(e.match))&&new Ce(r,t)},m.toTargetKeyOrNull=function(e){var t=this.parseOrNull(Et,e.type);return t&&new Ne(t,e.name)},m.toTargetMatchOrNull=function(e){var t=this.parseOrNull(vt,e.type),r=this.parseOrNull(gt,e.operator),n=this.parseOrNull(mt,e.valueType);return t&&r&&n&&new Ae(t,r,n,e.values)},m.toSegmentOrNull=function(e){var t=this,r=this.parseOrNull(bt,e.type);return r&&new Pe(e.id,e.key,r,f.mapNotNullOrUndefined(e.targets,function(e){return t.toTargetOrNull(e,Tt.SEGMENT)}))},m.toContainer=function(e){var t=this;return new Qe(e.id,e.bucketId,e.groups.map(function(e){return t.toContainerGroup(e)}))},m.toContainerGroup=function(e){return new Ue(e.id,e.experiments)},m.toParameterConfiguration=function(e){return new Ze(e.id,f.associate(e.parameters,function(e){return[e.key,e.value]}))},m.toRemoteConfigParameterOrNull=function(e){var t=this,r=this.parseOrNull(mt,e.type),n=f.mapNotNullOrUndefined(e.targetRules,function(e){return t.toRemoteConfigTargetRuleOrNull(e,Tt.PROPERTY)}),o=this.toRemoteConfigParameterValueOrNull(e.defaultValue);return r&&new Me(e.id,e.key,r,e.identifierType,n,o)},m.toRemoteConfigTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t);return t&&new De(e.key,e.name,t,e.bucketId,this.toRemoteConfigParameterValueOrNull(e.value))},m.toRemoteConfigParameterValueOrNull=function(e){return new Le(e.id,e.value)},m.parseOrNull=function(e,t){e=e.find(function(e){return e===t});return e||Lr.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e},m),Fr=(Zr.prototype.onReady=function(){return this.readyPromise},Zr.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},Zr.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()},Zr.prototype.get=function(){return this.workspace},Zr.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)},Zr.prototype.fetch=function(){function t(e){e=e.isSuccess,dr.record("get.workspace",o,e)}function e(){n.onRequestComplete()}var r,n=this,o=((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"],It.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()},Zr.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},Zr.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=jr.from(t),this.readyPromiseResolver())}},Zr.prototype.onRequestRejected=function(e,t){this.isStarted&&(t({isSuccess:!1}),this.errorRetryController.countError(),console.error("Error fetching data",e))},Zr.prototype.close=function(){this.stop()},Zr),Vr=(Qr.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*ve[Math.min(ve.length-1,this.errorCount)]+Math.round(1e3*Math.random())},Qr.prototype.countError=function(){this.errorCount<ve.length-1&&this.errorCount++},Qr.prototype.reset=function(){this.errorCount=0},Qr),r="model",i="name",s="type",c="vendor",p="version",d="mobile",y="tablet",Hr=(v.parse=function(e){return{browser:v.getBrowser(e),cpu:v.getCPU(e),device:v.getDevice(e),engine:v.getEngine(e),os:v.getOS(e)}},v.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return v.mapper.rgx.call(t,e,v.regexes.browser),t.major=v.util.major(t.version),t},v.getCPU=function(e){var t={architecture:void 0};return v.mapper.rgx.call(t,e,v.regexes.cpu),t},v.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return v.mapper.rgx.call(t,e,v.regexes.device),t},v.getEngine=function(e){var t={name:void 0,version:void 0};return v.mapper.rgx.call(t,e,v.regexes.os),t},v.getOS=function(e){var t={name:void 0,version:void 0};return v.mapper.rgx.call(t,e,v.regexes.os),t},v.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,"")}},v.regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[i,p],[/(opios)[\/\s]+([\w\.]+)/i],[[i,"Opera Mini"],p],[/\s(opr)\/([\w\.]+)/i],[[i,"Opera"],p],[/(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],[i,p],[/(konqueror)\/([\w\.]+)/i],[[i,"Konqueror"],p],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[i,"IE"],p],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[i,"Edge"],p],[/(yabrowser)\/([\w\.]+)/i],[[i,"Yandex"],p],[/(Avast)\/([\w\.]+)/i],[[i,"Avast Secure Browser"],p],[/(AVG)\/([\w\.]+)/i],[[i,"AVG Secure Browser"],p],[/(puffin)\/([\w\.]+)/i],[[i,"Puffin"],p],[/(focus)\/([\w\.]+)/i],[[i,"Firefox Focus"],p],[/(opt)\/([\w\.]+)/i],[[i,"Opera Touch"],p],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[i,"UCBrowser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[i,/_/g," "],p],[/(windowswechat qbcore)\/([\w\.]+)/i],[[i,"WeChat(Win) Desktop"],p],[/(micromessenger)\/([\w\.]+)/i],[[i,"WeChat"],p],[/(brave)\/([\w\.]+)/i],[[i,"Brave"],p],[/(whale)\/([\w\.]+)/i],[[i,"Whale"],p],[/(qqbrowserlite)\/([\w\.]+)/i],[i,p],[/(QQ)\/([\d\.]+)/i],[i,p],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[i,p],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[i,p],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[i,p],[/(MetaSr)[\/\s]?([\w\.]+)/i],[i],[/(LBBROWSER)/i],[i],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[p,[i,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[p,[i,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[i,p],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[p,[i,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[i,/(.+)/,"$1 WebView"],p],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[i,/(.+(?:g|us))(.+)/,"$1 $2"],p],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[i,"Chrome Mobile"],p],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[p,[i,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[i,"Sailfish Browser"],p],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[i,p],[/(dolfin)\/([\w\.]+)/i],[[i,"Dolphin"],p],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[i,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[i,"Opera Coast"],p],[/fxios\/([\w\.-]+)/i],[p,[i,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[p,[i,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[p,i],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[i,"GSA"],p],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[i,[p,(v.mapper={rgx:function(e,t){for(var r,n,o,i,s,a=0;a<t.length&&!i;){for(var u=t[a],c=t[a+1],l=r=0;l<u.length&&!i;)if(i=u[l++].exec(e))for(n=0;n<c.length;n++)s=i[++r],"object"==typeof(o=c[n])&&0<o.length?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=s?s.replace(o[1],o[2]):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0:4==o.length&&(this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0):this[o]=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(v.util.has(t[r][n],e))return"?"===r?void 0:r}else if(v.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(v.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],[i,p],[/(navigator|netscape)\/([\w\.-]+)/i],[[i,"Netscape"],p],[/(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],[i,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",v.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",v.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",v.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[r,c,[s,y]],[/applecoremedia\/[\w\.]+ \((ipad)/],[r,[c,"Apple"],[s,y]],[/(apple\s{0,1}tv)/i],[[r,"Apple TV"],[c,"Apple"],[s,"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],[c,r,[s,y]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[r,[c,"Amazon"],[s,y]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[r,v.mapper.str,v.maps.device.amazon.model],[c,"Amazon"],[s,d]],[/android.+aft([bms])\sbuild/i],[r,[c,"Amazon"],[s,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[r,c,[s,d]],[/\((ip[honed|\s\w*]+);/i],[r,[c,"Apple"],[s,d]],[/(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],[c,r,[s,d]],[/\(bb10;\s(\w+)/i],[r,[c,"BlackBerry"],[s,d]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[r,[c,"Asus"],[s,y]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[c,"Sony"],[r,"Xperia Tablet"],[s,y]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[c,"Sony"],[s,d]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[c,r,[s,"console"]],[/android.+;\s(shield)\sbuild/i],[r,[c,"Nvidia"],[s,"console"]],[/(playstation\s[34portablevi]+)/i],[r,[c,"Sony"],[s,"console"]],[/(sprint\s(\w+))/i],[[c,v.mapper.str,v.maps.device.sprint.vendor],[r,v.mapper.str,v.maps.device.sprint.model],[s,d]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[c,[r,/_/g," "],[s,d]],[/(nexus\s9)/i],[r,[c,"HTC"],[s,y]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[r,[c,"Huawei"],[s,d]],[/android.+(bah2?-a?[lw]\d{2})/i],[r,[c,"Huawei"],[s,y]],[/(microsoft);\s(lumia[\s\w]+)/i],[c,r,[s,d]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[r,[c,"Microsoft"],[s,"console"]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[c,"Microsoft"],[s,d]],[/\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,[c,"Motorola"],[s,d]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[r,[c,"Motorola"],[s,y]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[c,v.util.trim],[r,v.util.trim],[s,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[c,"Samsung"],[s,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[r,[c,"Sharp"],[s,"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],[[c,"Samsung"],r,[s,y]],[/smart-tv.+(samsung)/i],[c,[s,"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],[[c,"Samsung"],r,[s,d]],[/sie-(\w*)/i],[r,[c,"Siemens"],[s,d]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[c,"Nokia"],r,[s,d]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[r,[c,"Acer"],[s,y]],[/android.+([vl]k\-?\d{3})\s+build/i],[r,[c,"LG"],[s,y]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[c,"LG"],r,[s,y]],[/(lg) netcast\.tv/i],[c,r,[s,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[r,[c,"LG"],[s,d]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[c,r,[s,y]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[r,[c,"Lenovo"],[s,y]],[/(lenovo)[_\s-]?([\w-]+)/i],[c,r,[s,d]],[/linux;.+((jolla));/i],[c,r,[s,d]],[/((pebble))app\/[\d\.]+\s/i],[c,r,[s,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[c,r,[s,d]],[/crkey/i],[[r,"Chromecast"],[c,"Google"],[s,"smarttv"]],[/android.+;\s(glass)\s\d/i],[r,[c,"Google"],[s,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[r,[c,"Google"],[s,y]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[r,[c,"Google"],[s,d]],[/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," "],[c,"Xiaomi"],[s,d]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[c,"Xiaomi"],[s,y]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[r,[c,"Meizu"],[s,d]],[/(mz)-([\w-]{2,})/i],[[c,"Meizu"],r,[s,d]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[r,[c,"OnePlus"],[s,d]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[r,[c,"RCA"],[s,y]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[r,[c,"Dell"],[s,y]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[r,[c,"Verizon"],[s,y]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[c,"Barnes & Noble"],r,[s,y]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[r,[c,"NuVision"],[s,y]],[/android.+;\s(k88)\sbuild/i],[r,[c,"ZTE"],[s,y]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[r,[c,"Swiss"],[s,d]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[r,[c,"Swiss"],[s,y]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[r,[c,"Zeki"],[s,y]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[c,"Dragon Touch"],r,[s,y]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[r,[c,"Insignia"],[s,y]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[r,[c,"NextBook"],[s,y]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[c,"Voice"],r,[s,d]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[c,"LvTel"],r,[s,d]],[/android.+;\s(PH-1)\s/i],[r,[c,"Essential"],[s,d]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[r,[c,"Envizen"],[s,y]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[c,r,[s,y]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[r,[c,"MachSpeed"],[s,y]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[c,r,[s,y]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[r,[c,"Rotor"],[s,y]],[/android.+(KS(.+))\s+build/i],[r,[c,"Amazon"],[s,y]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[c,r,[s,y]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[s,v.util.lowerize],c,r],[/[\s\/\(](smart-?tv)[;\)]/i],[[s,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[r,[c,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[p,[i,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[i,"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],[i,p],[/rv\:([\w\.]{1,9}).+(gecko)/i],[p,i]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[i,p],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[[i,v.mapper.str,v.maps.os.windows],[p,v.mapper.str,v.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[i,"Windows"],[p,v.mapper.str,v.maps.os.windows.version]],[/\((bb)(10);/i],[[i,"BlackBerry"],p],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[i,p],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[i,"Symbian"],p],[/\((series40);/i],[i],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[i,"Firefox OS"],p],[/(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],[[i,"Linux"],p],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[i,"Chromium OS"],p],[/(sunos)\s?([\w\.\d]*)/i],[[i,"Solaris"],p],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[i,"Linux"],p],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[i,"iPhone"],[p,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[i,"iPad"],[p,/_/g,"."]],[/(haiku)\s(\w+)/i],[i,p],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[p,/_/g,"."],[i,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[i,"Mac"],[p,/_/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],[i,p]]},v),zr=(Jr.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=Hr.parse(t.navigator.userAgent),n=r.browser,o=r.os,r=r.device,i=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:i||"",browserName:n.name||"",browserMajorVersion:n.major||"",browserVersion:n.version||"",osName:o.name||"",osVersion:o.version||"",deviceModel:r.model||"",deviceType:r.type||"",deviceVendor:r.vendor||"",language:(null==(i=t.navigator.languages)?void 0:i[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||""}},Jr),Kr=(Wr.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]:""},Wr.prototype.getItem=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "==o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return null},Wr.prototype.setItem=function(e,t,r){var r=h(h({},this.options),r),n=r.isSecure,o="",i="",s="",a=(r.isCrossSubdomain&&(o=(a=Wr.extractDomain(document.location.hostname))?"; domain=."+a:""),r.days&&((a=new Date).setTime(a.getTime()+24*r.days*60*60*1e3),i="; expires="+a.toUTCString()),r.isCrossSite&&(n=!0,s="; SameSite=None"),n&&(s+="; secure"),e+"="+encodeURIComponent(t)+i+"; path=/"+o+s);return document.cookie=a},Wr.prototype.removeItem=function(e,t){this.setItem(e,"",h(h({},t),{days:-1}))},new Wr({days:3650,isCrossSubdomain:!0})),Br=(Xr.prototype.getQueryParam=function(e){return this.getQueryParams(function(){return!0})[e]||""},Xr.prototype.getQueryParams=function(e){for(var t={},r=0,n=this.search.substring(1).split("&");r<n.length;r++){var o=n[r].split("="),i=o[0],o=o[1];e(i,o)&&(t[i]=decodeURIComponent(o))}return t},Xr),Gr=(Yr.prototype.resolve=function(e){var t=tn(),t=(new Je).addIdentifiers(e.identifiers||{}).add(We.ID,e.id||t).add(We.DEVICE,e.deviceId||t).add(We.HACKLE_DEVICE,t);return a.isNotNullOrUndefined(e.userId)&&t.add(We.USER,e.userId),{identifiers:t.build(),properties:this._userProperties(e.properties),hackleProperties:this._getHackleProperties()}},Yr.prototype.resolveCurrentUser=function(){return this.resolve(this.userManager.currentUser)},Yr.prototype._userProperties=function(e){void 0===e&&(e={});var t,r={};return"undefined"!=typeof window&&(t=new Br(window.location.search),r=h(h({},t.getQueryParams(function(e){return e.startsWith("utm_")})),t.getQueryParams(function(e){return["gclid","fbclid"].includes(e)}))),h(h({},r),e)},Yr.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?zr.generate(window):e)||{}},Yr),qr=($r.initialize=function(){Kr.getItem("_hackle_hid")||on()},$r.reInitialize=function(){on()},$r);function $r(){}function Yr(e){this.userManager=e,qr.initialize()}function Xr(e){this.search=e}function Wr(e){this.options=e=void 0===e?{days:0,isCrossSubdomain:!1,isSecure:!1,isCrossSite:!1}:e}function Jr(){}function v(){}function Qr(){this.errorCount=0}function Zr(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 Vr,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function m(e,t,r,n,o,i,s,a){this.experiments=e,this.featureFlags=t,this.buckets=r,this.eventTypes=n,this.segments=o,this.containers=i,this.parameterConfigurations=s,this.remoteConfigParameters=a}function en(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 tn(){var e=Kr.getItem("_hackle_id");return e||Kr.getItem("_hackle_hid")||on()}function rn(e){Kr.setItem("_hackle_id",e)}function nn(){Kr.removeItem("_hackle_id")}function on(){var e=ae.v4();return Kr.setItem("_hackle_hid",e),e}function sn(e){return e&&e.Math==Math&&e}function g(e){try{return!!e()}catch(e){return!0}}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},y=sn("object"==typeof globalThis&&globalThis)||sn("object"==typeof window&&window)||sn("object"==typeof self&&self)||sn("object"==typeof d&&d)||function(){return this}()||Function("return this")(),s={},r=!g(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),c=!g(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),an=Function.prototype.call,i=c?an.bind(an):function(){return an.apply(an,arguments)},p={},e={}.propertyIsEnumerable,un=Object.getOwnPropertyDescriptor,d=un&&!e.call({1:2},1);p.f=d?function(e){e=un(this,e);return!!e&&e.enumerable}:e;function cn(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function ln(e){return Cn(Sn(e),8,-1)}function fn(e){if(null==e)throw xn("Can't call method on "+e);return e}function pn(e){return Pn(Un(e))}function w(e){return"function"==typeof e}function dn(e){return"object"==typeof e?null!==e:Mn(e)}function hn(e,t){return arguments.length<2?(r=Dn[e],Ln(r)?r:void 0):Dn[e]&&Dn[e][t];var r}function yn(e){try{return qn(e)}catch(e){return"Object"}}function vn(e){if($n(e))return e;throw Xn(Yn(e)+" is not a function")}function mn(e,t){return null==(e=e[t])?void 0:Wn(e)}function gn(t,r){try{ro(to,t,{value:r,configurable:!0,writable:!0})}catch(e){to[t]=r}return r}function E(e){return so(io(e))}function wn(e){return"Symbol("+(void 0===e?"":e)+")_"+ho(++fo+po,36)}function En(e){var t;return vo(Eo,e)&&(go||"string"==typeof Eo[e])||(t="Symbol."+e,go&&vo(bo,e)?Eo[e]=bo[e]:Eo[e]=(wo&&To?To:_o)(t)),Eo[e]}function bn(e){return e=function(e,t){if(!Io(e)||Oo(e))return e;var r=So(e,Ao);if(r){if(r=Ro(r,e,t=void 0===t?"default":t),!Io(r)||Oo(r))return r;throw No("Can't convert object to primitive value")}return Co(e,t=void 0===t?"number":t)}(e,"string"),ko(e)?e:e+""}function Tn(e){return Po?xo.createElement(e):{}}function _n(e){if(Ko(e))return e;throw Go(Bo(e)+" is not an object")}var d=c,e=Function.prototype,Rn=e.bind,In=e.call,On=d&&Rn.bind(In,In),e=d?function(e){return e&&On(e)}:function(e){return e&&function(){return In.apply(e,arguments)}},Rn=e,Sn=Rn({}.toString),Cn=Rn("".slice),d=g,Nn=ln,An=Object,kn=e("".split),Rn=d(function(){return!An("z").propertyIsEnumerable(0)})?function(e){return"String"==Nn(e)?kn(e,""):An(e)}:An,xn=TypeError,Pn=Rn,Un=fn,Mn=w,Dn=y,Ln=w,d=e({}.isPrototypeOf),jn=hn("navigator","userAgent")||"",Fn=jn,Vn=y.process,b=y.Deno,Vn=Vn&&Vn.versions||b&&b.version,b=Vn&&Vn.v8,Vn=_=!(_=b?0<(T=b.split("."))[0]&&T[0]<4?1:+(T[0]+T[1]):_)&&Fn&&(!(T=Fn.match(/Edge\/(\d+)/))||74<=T[1])&&(T=Fn.match(/Chrome\/(\d+)/))?+T[1]:_,Hn=Vn,b=g,Fn=!!Object.getOwnPropertySymbols&&!b(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Hn&&Hn<41}),T=Fn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,zn=hn,Kn=w,Bn=d,Gn=Object,_=T?function(e){return"symbol"==typeof e}:function(e){var t=zn("Symbol");return Kn(t)&&Bn(t.prototype,Gn(e))},qn=String,$n=w,Yn=yn,Xn=TypeError,Wn=vn,Jn=i,Qn=w,Zn=dn,eo=TypeError,b={exports:{}},to=y,ro=Object.defineProperty,no=gn,no=y["__core-js_shared__"]||no("__core-js_shared__",{}),oo=no,io=((b.exports=function(e,t){return oo[e]||(oo[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"}),fn),so=Object,ao=E,uo=e({}.hasOwnProperty),co=Object.hasOwn||function(e,t){return uo(ao(e),t)},lo=e,fo=0,po=Math.random(),ho=lo(1..toString),lo=y,yo=b.exports,vo=co,mo=wn,go=Fn,wo=T,Eo=yo("wks"),bo=lo.Symbol,To=bo&&bo.for,_o=wo?bo:bo&&bo.withoutSetter||mo,Ro=i,Io=dn,Oo=_,So=mn,Co=function(e,t){var r,n;if("string"===t&&Qn(r=e.toString)&&!Zn(n=Jn(r,e)))return n;if(Qn(r=e.valueOf)&&!Zn(n=Jn(r,e)))return n;if("string"!==t&&Qn(r=e.toString)&&!Zn(n=Jn(r,e)))return n;throw eo("Can't convert object to primitive value")},No=TypeError,Ao=En("toPrimitive"),ko=_,Fn=dn,xo=y.document,Po=Fn(xo)&&Fn(xo.createElement),Uo=Tn,T=!r&&!g(function(){return 7!=Object.defineProperty(Uo("div"),"a",{get:function(){return 7}}).a}),Mo=i,Do=p,Lo=cn,jo=pn,Fo=bn,Vo=co,Ho=T,zo=Object.getOwnPropertyDescriptor,yo=(s.f=r?zo:function(e,t){if(e=jo(e),t=Fo(t),Ho)try{return zo(e,t)}catch(e){}if(Vo(e,t))return Lo(!Mo(Do.f,e,t),e[t])},{}),lo=r&&g(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Ko=dn,Bo=String,Go=TypeError,qo=T,$o=_n,Yo=bn,Xo=TypeError,Wo=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,Qo=(yo.f=r?lo?function(e,t,r){var n;return $o(e),t=Yo(t),$o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=Jo(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}),Wo(e,t,r)}:Wo:function(e,t,r){if($o(e),t=Yo(t),$o(r),qo)try{return Wo(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Xo("Accessors not supported");return"value"in r&&(e[t]=r.value),e},yo),Zo=cn,mo=r?function(e,t,r){return Qo.f(e,t,Zo(1,r))}:function(e,t,r){return e[t]=r,e},_={exports:{}},Fn=r,p=co,T=Function.prototype,ei=Fn&&Object.getOwnPropertyDescriptor,p=p(T,"name"),p={EXISTS:p,PROPER:p&&"something"===function(){}.name,CONFIGURABLE:p&&(!Fn||ei(T,"name").configurable)},Fn=w,ei=no,ti=e(Function.toString);Fn(ei.inspectSource)||(ei.inspectSource=function(e){return ti(e)});function ri(e){return Ei[e]||(Ei[e]=wi(e))}function ni(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(Li(r)&&Fi(r,i,n),n.global)o?e[t]=r:Vi(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:ji.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function oi(e){return(e=+e)!=e||0==e?0:Ki(e)}function ii(e,t){return(e=Bi(e))<0?Gi(e+t,0):qi(e,t)}function R(e){return 0<(e=e.length)?Yi($i(e),9007199254740991):0}function si(a){return function(e,t,r){var n,o=Xi(e),i=Ji(o),s=Wi(r,i);if(a&&t!=t){for(;s<i;)if((n=o[s++])!=n)return!0}else for(;s<i;s++)if((a||s in o)&&o[s]===t)return a||s||0;return!a&&-1}}function ai(e,t){var r,n=Zi(e),o=0,i=[];for(r in n)!Qi(ts,r)&&Qi(n,r)&&rs(i,r);for(;t.length>o;)!Qi(n,r=t[o++])||~es(i,r)||rs(i,r);return i}function ui(e,t,r){for(var n=ls(t),o=ps.f,i=fs.f,s=0;s<n.length;s++){var a=n[s];cs(e,a)||r&&cs(r,a)||o(e,a,i(t,a))}}function ci(e,t){return(e=ms[vs(e)])==ws||e!=gs&&(hs(t)?ds(t):!!t)}function I(e,t){var r,n,o,i,s=e.target,a=e.global,u=e.stat;if(r=a?Es:u?Es[s]||Rs(s,{}):(Es[s]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(i=bs(r,n))&&i.value:r[n],!Os(a?n:s+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;Is(o,i)}(e.sham||i&&i.sham)&&Ts(o,"sham",!0),_s(r,n,o,e)}}var li,fi,pi,di,hi,yi,vi,mi,T=ei.inspectSource,Fn=w,ei=T,gi=y.WeakMap,Fn=Fn(gi)&&/native code/.test(ei(gi)),ei=b.exports,wi=wn,Ei=ei("keys"),gi={},b=e,bi=dn,Ti=mo,_i=co,ei=no,O=ri,Ri=gi,Ii=y.TypeError,Oi=y.WeakMap,Fn=(vi=Fn||ei.state?(li=ei.state||(ei.state=new Oi),fi=b(li.get),pi=b(li.has),di=b(li.set),hi=function(e,t){if(pi(li,e))throw new Ii("Object already initialized");return t.facade=e,di(li,e,t),t},yi=function(e){return fi(li,e)||{}},function(e){return pi(li,e)}):(Ri[mi=O("state")]=!0,hi=function(e,t){if(_i(e,mi))throw new Ii("Object already initialized");return t.facade=e,Ti(e,mi,t),t},yi=function(e){return _i(e,mi)?e[mi]:{}},function(e){return _i(e,mi)}),{set:hi,get:yi,has:vi,enforce:function(e){return vi(e)?yi(e):hi(e,{})},getterFor:function(t){return function(e){if(bi(e)&&(e=yi(e)).type===t)return e;throw Ii("Incompatible receiver, "+t+" required")}}}),ei=g,Si=w,Ci=co,Ni=r,Ai=p.CONFIGURABLE,ki=T,xi=Fn.enforce,Pi=Fn.get,Ui=Object.defineProperty,Mi=Ni&&!ei(function(){return 8!==Ui(function(){},"length",{value:8}).length}),Di=String(String).split("String"),Oi=_.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),(!Ci(e,"name")||Ai&&e.name!==t)&&(Ni?Ui(e,"name",{value:t,configurable:!0}):e.name=t),Mi&&r&&Ci(r,"arity")&&e.length!==r.arity&&Ui(e,"length",{value:r.arity});try{r&&Ci(r,"constructor")&&r.constructor?Ni&&Ui(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=xi(e);return Ci(r,"source")||(r.source=Di.join("string"==typeof t?t:"")),e},Li=(Function.prototype.toString=Oi(function(){return Si(this)&&Pi(this).source||ki(this)},"toString"),w),ji=yo,Fi=_.exports,Vi=gn,b={},Hi=Math.ceil,zi=Math.floor,Ki=Math.trunc||function(e){e=+e;return(0<e?zi:Hi)(e)},Bi=oi,Gi=Math.max,qi=Math.min,$i=oi,Yi=Math.min,Xi=pn,Wi=ii,Ji=R,Ri={includes:si(!0),indexOf:si(!1)},Qi=co,Zi=pn,es=Ri.indexOf,ts=gi,rs=e([].push),O=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ns=ai,os=O.concat("length","prototype"),ei=(b.f=Object.getOwnPropertyNames||function(e){return ns(e,os)},{}),Oi=(ei.f=Object.getOwnPropertySymbols,hn),is=b,ss=ei,as=_n,us=e([].concat),ei=Oi("Reflect","ownKeys")||function(e){var t=is.f(as(e)),r=ss.f;return r?us(t,r(e)):t},cs=co,ls=ei,fs=s,ps=yo,ds=g,hs=w,ys=/#|\.prototype\./,vs=ci.normalize=function(e){return String(e).replace(ys,".").toLowerCase()},ms=ci.data={},gs=ci.NATIVE="N",ws=ci.POLYFILL="P",Oi=ci,Es=y,bs=s.f,Ts=mo,_s=ni,Rs=gn,Is=ui,Os=Oi,ei=!g(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Ss=co,Cs=w,Ns=E,As=ri("IE_PROTO"),ks=Object,xs=ks.prototype,ei=ei?ks.getPrototypeOf:function(e){e=Ns(e);if(Ss(e,As))return e[As];var t=e.constructor;return Cs(t)&&e instanceof t?t.prototype:e instanceof ks?xs:null},Ps=w,Us=String,Ms=TypeError,Ds=e,Ls=_n,S=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=Ds(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return Ls(e),function(e){if("object"==typeof e||Ps(e))return;throw Ms("Can't set "+Us(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),js={},Fs=ai,Vs=O,C=Object.keys||function(e){return Fs(e,Vs)},Hs=yo,zs=_n,Ks=pn,Bs=C;js.f=r&&!lo?Object.defineProperties:function(e,t){zs(e);for(var r,n=Ks(t),o=Bs(t),i=o.length,s=0;s<i;)Hs.f(e,r=o[s++],n[r]);return e};function Gs(){}function qs(e){e.write(ca("")),e.close();var t=e.parentWindow.Object;return e=null,t}function $s(e,t){return ma(e),void 0===t?e:ga?wa(e,t):function(){return e.apply(t,arguments)}}function Ys(e){return void 0!==e&&(Ea.Array===e||Ta[ba]===e)}function Xs(e){if(null!=e)return Na(e,ka)||Na(e,"@@iterator")||Aa[Ca(e)]}function Ws(e,t){if(t=arguments.length<2?Da(e):t,Pa(t))return Ua(xa(t,e));throw La(Ma(e)+" is not iterable")}function Js(e,t,r){var n,o;Fa(e);try{if(!(n=Va(e,"return"))){if("throw"===t)throw r;return r}n=ja(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return Fa(n),r}function Qs(e,t){this.stopped=e,this.result=t}function Zs(e,t,r){function n(e){return i&&Wa(i,"normal",e),new Qs(!0,e)}function o(e){return p?(Ka(e),y?v(e[0],e[1],n):v(e[0],e[1])):y?v(e,n):v(e)}var i,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=Ha(t,f);if(d)i=e.iterator;else if(h)i=e;else{if(!(r=Xa(e)))throw Ja(Ba(e)+" is not iterable");if(Ga(r)){for(s=0,a=qa(e);s<a;s++)if((u=o(e[s]))&&$a(Qa,u))return u;return new Qs(!1)}i=Ya(e,r)}for(c=(d?e:i).next;!(l=za(c,i)).done;){try{u=o(l.value)}catch(e){Wa(i,"throw",e)}if("object"==typeof u&&u&&$a(Qa,u))return u}return new Qs(!1)}function ea(e){if("Symbol"===Za(e))throw TypeError("Cannot convert a Symbol value to a string");return eu(e)}function ta(e,t){var r,n=2<arguments.length?arguments[2]:void 0,o=ou(vu,this);return su?r=su(new hu,o?iu(this):vu):(r=o?this:uu(vu),cu(r,du,"Error")),void 0!==t&&cu(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:tu(e)}(t)),pu&&cu(r,"stack",function(e,t){if(ha&&"string"==typeof e&&!fa.prepareStackTrace)for(;t--;)e=pa(e,da,"");return e}(r.stack,1)),o=r,ya(t=n)&&"cause"in t&&va(o,"cause",t.cause),fu(e,yu,{that:n=[]}),cu(r,"errors",n),r}var ra,C=hn("document","documentElement"),na=_n,oa=js,ia=O,lo=gi,sa=C,aa=Tn,ua=ri("IE_PROTO"),ca=function(e){return"<script>"+e+"<\/script>"},la=function(){try{ra=new ActiveXObject("htmlfile")}catch(e){}var e,t;la="undefined"==typeof document||document.domain&&ra?qs(ra):((t=aa("iframe")).style.display="none",sa.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ca("document.F=Object")),e.close(),e.F);for(var r=ia.length;r--;)delete la.prototype[ia[r]];return la()},js=(lo[ua]=!0,Object.create||function(e,t){var r;return null!==e?(Gs.prototype=na(e),r=new Gs,Gs.prototype=null,r[ua]=e):r=la(),void 0===t?r:oa.f(r,t)}),fa=Error,pa=e("".replace),O=String(fa("zxcasd").stack),da=/\n\s*at [^:]*:[^\n]*/,ha=da.test(O),ya=dn,va=mo,ma=vn,ga=c,wa=e(e.bind),lo={},Ea=lo,ba=En("iterator"),Ta=Array.prototype,O={},O=(O[En("toStringTag")]="z","[object z]"===String(O)),N=O,_a=w,Ra=ln,Ia=En("toStringTag"),Oa=Object,Sa="Arguments"==Ra(function(){return arguments}()),N=N?Ra: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=Oa(e),Ia))?t:Sa?Ra(e):"Object"==(t=Ra(e))&&_a(e.callee)?"Arguments":t},Ca=N,Na=mn,Aa=lo,ka=En("iterator"),xa=i,Pa=vn,Ua=_n,Ma=yn,Da=Xs,La=TypeError,ja=i,Fa=_n,Va=mn,Ha=$s,za=i,Ka=_n,Ba=yn,Ga=Ys,qa=R,$a=d,Ya=Ws,Xa=Xs,Wa=Js,Ja=TypeError,Qa=Qs.prototype,Za=N,eu=String,tu=ea,ru=cn,A=!g(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",ru(1,7)),7!==e.stack)}),nu=I,ou=d,iu=ei,su=S,au=ui,uu=js,cu=mo,lu=cn,fu=Zs,pu=A,du=En("toStringTag"),hu=Error,yu=[].push,vu=(su?su(ta,hu):au(ta,hu,{name:!0}),ta.prototype=uu(hu.prototype,{constructor:lu(1,ta),message:lu(1,""),name:lu(1,"AggregateError")})),A=(nu({global:!0,constructor:!0,arity:2},{AggregateError:ta}),En),au=js,lu=yo.f,mu=A("unscopables"),gu=Array.prototype;null==gu[mu]&&lu(gu,mu,{configurable:!0,value:au(null)});function k(e){gu[mu][e]=!0}var wu,nu=g,A=w,lu=ei,au=ni,Eu=En("iterator"),x=!1;[].keys&&("next"in(Ru=[].keys())?(lu=lu(lu(Ru)))!==Object.prototype&&(wu=lu):x=!0);function bu(e,t,r){(e=e&&!r?e.prototype:e)&&!Ou(e,Su)&&Iu(e,Su,{configurable:!0,value:t})}function Tu(){return this}function _u(e,t,r,n,o,i,s){var a=r,u=t,c=void 0;function l(e){if(e===o&&v)return v;if(!qu&&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=Nu(Cu,{next:Au(+!c,n)}),ku(a,u,!1),xu[u]=Pu;var f,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[$u]||h["@@iterator"]||o&&h[o],v=!qu&&y||l(o);if((n="Array"==t&&h.entries||y)&&(a=Lu(n.call(new e)))!==Object.prototype&&a.next&&(Lu(a)!==Gu&&(ju?ju(a,Gu):Du(a[$u])||Hu(a,$u,Tu)),Fu(a,c,!0)),Ku&&"values"==o&&y&&"values"!==y.name&&(Bu?Vu(h,"name","values"):(d=!0,v=function(){return Mu(y,this)})),o)if(f={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},s)for(p in f)!qu&&!d&&p in h||Hu(h,p,f[p]);else Uu({target:t,proto:!0,forced:qu||d},f);return h[$u]!==v&&Hu(h,$u,v,{name:o}),zu[t]=v,f}A((wu=null==wu||nu(function(){var e={};return wu[Eu].call(e)!==e})?{}:wu)[Eu])||au(wu,Eu,function(){return this});var Ru={IteratorPrototype:wu,BUGGY_SAFARI_ITERATORS:x},Iu=yo.f,Ou=co,Su=En("toStringTag"),Cu=Ru.IteratorPrototype,Nu=js,Au=cn,ku=bu,xu=lo,Pu=function(){return this},Uu=I,Mu=i,Du=w,Lu=ei,ju=S,Fu=bu,Vu=mo,Hu=ni,zu=lo,Ku=p.PROPER,Bu=p.CONFIGURABLE,Gu=Ru.IteratorPrototype,qu=Ru.BUGGY_SAFARI_ITERATORS,$u=En("iterator"),Yu=pn,lu=k,A=lo,nu=Fn,au=yo.f,x=_u,p=r,Xu=nu.set,Wu=nu.getterFor("Array Iterator"),Ru=x(Array,"Array",function(e,t){Xu(this,{type:"Array Iterator",target:Yu(e),index:0,kind:t})},function(){var e=Wu(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"),lo=A.Arguments=A.Array;if(lu("keys"),lu("values"),lu("entries"),p&&"values"!==lo.name)try{au(lo,"name",{value:"values"})}catch(bw){}function Ju(e){var e=nc(e),t=oc.f;ic&&e&&!e[sc]&&t(e,sc,{configurable:!0,get:function(){return this}})}function Qu(e,t){if(ac(t,e))return e;throw uc("Incorrect invocation")}function Zu(){}function ec(e){if(!cc(e))return!1;try{return dc(Zu,pc,e),!0}catch(e){return!1}}function tc(e){if(!cc(e))return!1;switch(lc(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return vc||!!yc(hc,fc(e))}catch(e){return!0}}var rc=N,nu=(O||ni(Object.prototype,"toString",O?{}.toString:function(){return"[object "+rc(this)+"]"},{unsafe:!0}),"process"==ln(y.process)),nc=hn,oc=yo,ic=r,sc=En("species"),ac=d,uc=TypeError,x=e,A=g,cc=w,lc=N,fc=T,pc=[],dc=hn("Reflect","construct"),hc=/^\s*(?:class|function)\b/,yc=x(hc.exec),vc=!hc.exec(Zu);tc.sham=!0;function mc(e,t){var r,e=_c(e).constructor;if(void 0===e||null==(r=_c(e)[Rc]))return t;if(Ec(e=r))return e;throw Tc(bc(e)+" is not a constructor")}var gc,wc,lu=!dc||A(function(){var e;return ec(ec.call)||!ec(Object)||!ec(function(){e=!0})||e})?tc:ec,Ec=lu,bc=yn,Tc=TypeError,_c=_n,Rc=En("species"),p=Function.prototype,Ic=p.apply,Oc=p.call,au="object"==typeof Reflect&&Reflect.apply||(c?Oc.bind(Ic):function(){return Oc.apply(Ic,arguments)}),lo=e([].slice),Sc=TypeError,O=/(?:ipad|iphone|ipod).*applewebkit/i.test(jn),Cc=y,Nc=au,d=$s,Ac=w,kc=co,N=g,xc=C,Pc=lo,Uc=Tn,x=O,A=nu,p=Cc.setImmediate,c=Cc.clearImmediate,Mc=Cc.process,Dc=Cc.Dispatch,Lc=Cc.Function,C=Cc.MessageChannel,jc=Cc.String,Fc=0,Vc={};try{gc=Cc.location}catch(bw){}function Hc(e){return function(){Bc(e)}}function zc(e){Bc(e.data)}function Kc(e){Cc.postMessage(jc(e),gc.protocol+"//"+gc.host)}var Bc=function(e){var t;kc(Vc,e)&&(t=Vc[e],delete Vc[e],t())};p&&c||(p=function(e){var t=arguments.length,r=1;if(t<r)throw Sc("Not enough arguments");var n=Ac(e)?e:Lc(e),o=Pc(arguments,1);return Vc[++Fc]=function(){Nc(n,void 0,o)},wc(Fc),Fc},c=function(e){delete Vc[e]},A?wc=function(e){Mc.nextTick(Hc(e))}:Dc&&Dc.now?wc=function(e){Dc.now(Hc(e))}:C&&!x?(x=(A=new C).port2,A.port1.onmessage=zc,wc=d(x.postMessage,x)):Cc.addEventListener&&Ac(Cc.postMessage)&&!Cc.importScripts&&gc&&"file:"!==gc.protocol&&!N(Kc)?(wc=Kc,Cc.addEventListener("message",zc,!1)):wc="onreadystatechange"in Uc("script")?function(e){xc.appendChild(Uc("script")).onreadystatechange=function(){xc.removeChild(this),Bc(e)}}:function(e){setTimeout(Hc(e),0)});function Gc(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function qc(){this.head=null,this.tail=null}function $c(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=hl(r),this.reject=hl(n)}var Yc,Xc,Wc,Jc,Qc,Zc,el,C={set:p,clear:c},A=y,d=/ipad|iphone|ipod/i.test(jn)&&void 0!==A.Pebble,x=/web0s(?!.*chrome)/i.test(jn),N=y,p=$s,c=s.f,tl=C.set,A=O,s=d,O=x,rl=nu,d=N.MutationObserver||N.WebKitMutationObserver,x=N.document,nl=N.process,ol=N.Promise,c=c(N,"queueMicrotask"),c=c&&c.value,O=(c||(Yc=function(){var e,t;for(rl&&(e=nl.domain)&&e.exit();Xc;){t=Xc.fn,Xc=Xc.next;try{t()}catch(e){throw Xc?Jc():Wc=void 0,e}}Wc=void 0,e&&e.enter()},Jc=A||rl||O||!d||!x?!s&&ol&&ol.resolve?((A=ol.resolve(void 0)).constructor=ol,el=p(A.then,A),function(){el(Yc)}):rl?function(){nl.nextTick(Yc)}:(tl=p(tl,N),function(){tl(Yc)}):(Qc=!0,Zc=x.createTextNode(""),new d(Yc).observe(Zc,{characterData:!0}),function(){Zc.data=Qc=!Qc})),c||function(e){e={fn:e,next:void 0};Wc&&(Wc.next=e),Xc||(Xc=e,Jc()),Wc=e}),il=y,s=(qc.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}},qc),ol=y.Promise,A="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,p=!A&&!nu&&"object"==typeof window&&"object"==typeof document,N=y,sl=ol,x=w,d=Oi,al=T,c=En,ul=p,cl=A,ll=Vn,fl=(sl&&sl.prototype,c("species")),pl=!1,dl=x(N.PromiseRejectionEvent),T={CONSTRUCTOR:d("Promise",function(){var e=al(sl),t=e!==String(sl);if(!t&&66===ll)return!0;if(!ll||ll<51||!/native code/.test(e)){var e=new sl(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[fl]=r,!(pl=e.then(function(){})instanceof r))return!0}return!t&&(ul||cl)&&!dl}),REJECTION_EVENT:dl,SUBCLASSING:pl},p={},hl=vn;p.f=function(e){return new $c(e)};function yl(e,t){var r,n,o,i,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&&(i=t,bl(Sl,El,function(){var e=i.facade;wl?Fl.emit("rejectionHandled",e):Gl("rejectionhandled",e,i.value)})),t.rejection=1),!0===u?r=s:(f&&f.enter(),r=u(s),f&&(f.exit(),o=!0)),r===e.promise?l(Ll("Promise-chain cycle")):(n=Kl(r))?bl(n,r,c,l):c(r)):l(s)}catch(e){f&&!o&&f.exit(),l(e)}}var vl,ml,gl,A=I,wl=nu,El=y,bl=i,c=ni,x=S,N=bu,d=Ju,Tl=vn,_l=w,Rl=dn,Il=Qu,Ol=mc,Sl=C.set,Cl=O,Nl=Gc,Al=s,C=Fn,O=ol,s=p,P=T.CONSTRUCTOR,kl=T.REJECTION_EVENT,xl=T.SUBCLASSING,Pl=C.getterFor("Promise"),Ul=C.set,C=O&&O.prototype,Ml=O,Dl=C,Ll=El.TypeError,jl=El.document,Fl=El.process,Vl=s.f,Hl=Vl,zl=!!(jl&&jl.createEvent&&El.dispatchEvent),Kl=function(e){var t;return!(!Rl(e)||!_l(t=e.then))&&t},Bl=function(r,o){r.notified||(r.notified=!0,Cl(function(){for(var e,n,t=r.reactions;e=t.get();)yl(e,r);r.notified=!1,o&&!r.rejection&&(n=r,bl(Sl,El,function(){var e,t=n.facade,r=n.value;if(ql(n)&&(e=Nl(function(){wl?Fl.emit("unhandledRejection",r,t):Gl("unhandledrejection",t,r)}),n.rejection=wl||ql(n)?2:1,e.error))throw e.value}))}))},Gl=function(e,t,r){var n;zl?((n=jl.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),El.dispatchEvent(n)):n={promise:t,reason:r},!kl&&(t=El["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=il.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},ql=function(e){return 1!==e.rejection&&!e.parent},$l=function(t,r,n){return function(e){t(r,e,n)}},Yl=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,Bl(e,!0))},Xl=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw Ll("Promise can't be resolved itself");var n=Kl(e);n?Cl(function(){var t={done:!1};try{bl(n,e,$l(Xl,t,r),$l(Yl,t,r))}catch(e){Yl(t,e,r)}}):(r.value=e,r.state=1,Bl(r,!1))}catch(e){Yl({done:!1},e,r)}}};if(P&&(Dl=(Ml=function(e){Il(this,Dl),Tl(e),bl(vl,this);var t=Pl(this);try{e($l(Xl,t),$l(Yl,t))}catch(e){Yl(t,e)}}).prototype,(vl=function(e){Ul(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new Al,rejection:!1,state:0,value:void 0})}).prototype=c(Dl,"then",function(e,t){var r=Pl(this),n=Vl(Ol(this,Ml));return r.parent=!0,n.ok=!_l(e)||e,n.fail=_l(t)&&t,n.domain=wl?Fl.domain:void 0,0==r.state?r.reactions.add(n):Cl(function(){yl(n,r)}),n.promise}),ml=function(){var e=new vl,t=Pl(e);this.promise=e,this.resolve=$l(Xl,t),this.reject=$l(Yl,t)},s.f=Vl=function(e){return e===Ml||void 0===e?new ml:Hl(e)},_l(O)&&C!==Object.prototype)){gl=C.then,xl||c(C,"then",function(e,t){var r=this;return new Ml(function(e,t){bl(gl,r,e,t)}).then(e,t)},{unsafe:!0});try{delete C.constructor}catch(bw){}x&&x(C,Dl)}A({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:Ml}),N(Ml,"Promise",!1),d("Promise");var Wl=En("iterator"),Jl=!1;try{var Ql=0,Zl={next:function(){return{done:!!Ql++}},return:function(){Jl=!0}};Zl[Wl]=function(){return this},Array.from(Zl,function(){throw 2})}catch(bw){}function ef(e,t){if(!t&&!Jl)return!1;var r=!1;try{var n={};n[Wl]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function tf(e,t){return wf(e),Ef(t)&&t.constructor===e?t:((0,(e=bf.f(e)).resolve)(t),e.promise)}function rf(o){return function(e,t){var r,e=Vf(Hf(e)),t=Ff(t),n=e.length;return t<0||n<=t?o?"":void 0:(r=Kf(e,t))<55296||56319<r||t+1===n||(n=Kf(e,t+1))<56320||57343<n?o?zf(e,t):r:o?Bf(e,t,t+2):n-56320+(r-55296<<10)+65536}}function nf(e,t){if(e){if(e[Zf]!==tp)try{Qf(e,Zf,tp)}catch(t){e[Zf]=tp}if(e[ep]||Qf(e,ep,t),Wf[t])for(var r in Jf)if(e[r]!==Jf[r])try{Qf(e,r,Jf[r])}catch(t){e[r]=Jf[r]}}}var of,sf=ol,s=T.CONSTRUCTOR||!ef(function(e){sf.all(e).then(void 0,function(){})}),af=i,uf=vn,cf=p,lf=Gc,ff=Zs,O=(I({target:"Promise",stat:!0,forced:s},{all:function(e){var a=this,t=cf.f(a),u=t.resolve,c=t.reject,r=lf(function(){var n=uf(a.resolve),o=[],i=0,s=1;ff(e,function(e){var t=i++,r=!1;s++,af(n,a,e).then(function(e){r||(r=!0,o[t]=e,--s||u(o))},c)}),--s||u(o)});return r.error&&c(r.value),t.promise}}),I),xl=ol,c=hn,x=w,C=ni,A=xl&&xl.prototype,pf=(O({target:"Promise",proto:!0,forced:T.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),x(xl)&&(P=c("Promise").prototype.catch,A.catch!==P&&C(A,"catch",P,{unsafe:!0})),i),df=vn,hf=p,yf=Gc,vf=Zs,mf=(I({target:"Promise",stat:!0,forced:s},{race:function(e){var r=this,n=hf.f(r),o=n.reject,t=yf(function(){var t=df(r.resolve);vf(e,function(e){pf(t,r,e).then(n.resolve,o)})});return t.error&&o(t.value),n.promise}}),i),gf=p,wf=(I({target:"Promise",stat:!0,forced:T.CONSTRUCTOR},{reject:function(e){var t=gf.f(this);return mf(t.reject,void 0,e),t.promise}}),_n),Ef=dn,bf=p,N=I,d=T.CONSTRUCTOR,Tf=tf,_f=(hn("Promise"),N({target:"Promise",stat:!0,forced:d},{resolve:function(e){return Tf(this,e)}}),i),Rf=vn,If=p,Of=Gc,Sf=Zs,Cf=(I({target:"Promise",stat:!0},{allSettled:function(e){var a=this,t=If.f(a),u=t.resolve,r=t.reject,n=Of(function(){var n=Rf(a.resolve),o=[],i=0,s=1;Sf(e,function(e){var t=i++,r=!1;s++,_f(n,a,e).then(function(e){r||(r=!0,o[t]={status:"fulfilled",value:e},--s||u(o))},function(e){r||(r=!0,o[t]={status:"rejected",reason:e},--s||u(o))})}),--s||u(o)});return n.error&&r(n.value),t.promise}}),i),Nf=vn,Af=hn,kf=p,xf=Gc,Pf=Zs,Zl=(I({target:"Promise",stat:!0},{any:function(e){var u=this,c=Af("AggregateError"),t=kf.f(u),l=t.resolve,f=t.reject,r=xf(function(){var n=Nf(u.resolve),o=[],i=0,s=1,a=!1;Pf(e,function(e){var t=i++,r=!1;s++,Cf(n,u,e).then(function(e){r||a||(a=!0,l(e))},function(e){r||a||(r=!0,o[t]=e,--s||f(new c(o,"No one promise resolved")))})}),--s||f(new c(o,"No one promise resolved"))});return r.error&&f(r.value),t.promise}}),I),O=ol,x=g,Uf=hn,Mf=w,Df=mc,Lf=tf,xl=ni,jf=O&&O.prototype,C=(Zl({target:"Promise",proto:!0,real:!0,forced:!!O&&x(function(){jf.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=Df(this,Uf("Promise")),e=Mf(t);return this.then(e?function(e){return Lf(r,t()).then(function(){return e})}:t,e?function(e){return Lf(r,t()).then(function(){throw e})}:t)}}),Mf(O)&&(c=Uf("Promise").prototype.finally,jf.finally!==c&&xl(jf,"finally",c,{unsafe:!0})),e),Ff=oi,Vf=ea,Hf=fn,zf=C("".charAt),Kf=C("".charCodeAt),Bf=C("".slice),Gf=(rf(!1),rf(!0)),qf=ea,A=Fn,P=_u,$f=A.set,Yf=A.getterFor("String Iterator"),s=(P(String,"String",function(e){$f(this,{type:"String Iterator",string:qf(e),index:0})},function(){var e=Yf(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=Gf(t,r),e.index+=t.length,{value:t,done:!1})}),y),T=(s.Promise,Tn("span").classList),N=T&&T.constructor&&T.constructor.prototype,d=N===Object.prototype?void 0:N,Xf=y,Wf={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},ol=d,Jf=Ru,Qf=mo,Zl=En,Zf=Zl("iterator"),ep=Zl("toStringTag"),tp=Jf.values;for(of in Wf)nf(Xf[of]&&Xf[of].prototype,of);nf(ol,"DOMTokenList");function rp(e,t,r){(t=Sp(t))in e?Cp.f(e,t,Np(0,r)):e[t]=r}function np(e){if(9007199254740991<e)throw $p("Maximum allowed index exceeded");return e}function op(e,t){return Yp(e=e)&&(r=e.constructor,(Xp(r)&&(r===Qp||Yp(r.prototype))||Wp(r)&&null===(r=r[Jp]))&&(r=void 0)),new(void 0===r?Qp:r)(0===t?0:t);var r}function ip(t){return 51<=ed||!Zp(function(){var e=[];return(e.constructor={})[td]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function sp(e,t){if(!delete e[t])throw fd("Cannot delete property "+ld(t)+" of "+ld(e))}function ap(p){var d=1==p,h=2==p,y=3==p,v=4==p,m=6==p,g=7==p,w=5==p||m;return function(e,t,r,n){for(var o,i,s=wd(e),a=gd(s),u=md(t,r),c=Ed(a),l=0,t=n||bd,f=d?t(e,c):h||g?t(e,0):void 0;l<c;l++)if((w||l in a)&&(i=u(o=a[l],l,s),p))if(d)f[l]=i;else if(i)switch(p){case 3:return!0;case 5:return o;case 6:return l;case 2:Td(f,o)}else switch(p){case 4:return!1;case 7:Td(f,o)}return m?-1:y||v?v:f}}function up(e,t){var r=[][e];return!!r&&_d(function(){r.call(null,t||function(){return 1},1)})}function cp(u){var c=1==u;return function(e,t,r){for(var n,o=Md(e),i=Ud(o),s=Pd(t,r),a=Dd(i);0<a--;)if(s(n=i[a],a,o))switch(u){case 0:return n;case 1:return a}return c?-1:void 0}}function lp(e,t,r,n,o,i,s,a){for(var u,c,l=o,f=0,p=!!s&&zd(s,a);f<n;)f in r&&(u=p?p(r[f],f,t):r[f],0<i&&Fd(u)?(c=Vd(u),l=lp(e,t,u,c,l,i-1)-1):(Hd(l+1),e[l]=u),l++),f++;return l}function fp(c){return function(e,t,r,n){mh(t);var o=gh(e),i=wh(o),s=Eh(o),a=c?s-1:0,u=c?-1:1;if(r<2)for(;;){if(a in i){n=i[a],a+=u;break}if(a+=u,c?a<0:s<=a)throw bh("Reduce of empty array with no initial value")}for(;c?0<=a:a<s;a+=u)a in i&&(n=t(n,i[a],a,o));return n}}function pp(e,t,r){for(var n=Fh(e),o=jh(t,n),i=jh(void 0===r?n:r,n),s=Hh(zh(i-o,0)),a=0;o<i;o++,a++)Vh(s,a,e[o]);return s.length=a,s}function dp(e,t){var r=e.length,n=Bh(r/2);if(r<8){for(var o,i,s=e,a=t,u=s.length,c=1;c<u;){for(o=s[i=c];i&&0<a(s[i-1],o);)s[i]=s[--i];i!==c++&&(s[i]=o)}return s}for(var l=e,f=dp(Kh(e,0,n),t),p=dp(Kh(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 hp(e){xy(e,jy,{value:{objectID:"O"+Fy++,weakData:{}}})}function yp(e,t,r){for(var n in t)Xy(e,n,t[n],r);return e}var vp,mp,gp,wp,Ep,bp,Tp,_p=p,Rp=Gc,Ip=(I({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=_p.f(this),e=Rp(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),_n),Op=Js,Sp=bn,Cp=yo,Np=cn,Ap=$s,kp=i,xp=E,Pp=Ys,Up=lu,Mp=R,Dp=rp,Lp=Ws,jp=Xs,Fp=Array,Vp=(I({target:"Array",stat:!0,forced:!ef(function(e){Array.from(e)})},{from:function(e){var t=xp(e),e=Up(this),r=arguments.length,n=1<r?arguments[1]:void 0,o=void 0!==n;o&&(n=Ap(n,2<r?arguments[2]:void 0));var i,s,a,u,c,l,r=jp(t),f=0;if(!r||this===Fp&&Pp(r))for(i=Mp(t),s=e?new this(i):Fp(i);f<i;f++)l=o?n(t[f],f):t[f],Dp(s,f,l);else for(c=(u=Lp(t,r)).next,s=e?new this:[];!(a=kp(c,u)).done;f++)l=o?function(e,t,r,n){try{return n?t(Ip(r)[0],r[1]):t(r)}catch(t){Op(e,"throw",t)}}(u,n,[a.value,f],!0):a.value,Dp(s,f,l);return s.length=f,s}}),ln),x=Array.isArray||function(e){return"Array"==Vp(e)},Hp=(I({target:"Array",stat:!0},{isArray:x}),lu),zp=rp,Kp=Array,Bp=(I({target:"Array",stat:!0,forced:g(function(){function e(){}return!(Kp.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(Hp(this)?this:Kp)(t);e<t;)zp(r,e,arguments[e++]);return r.length=t,r}}),E),Gp=R,qp=oi,O=k,$p=(I({target:"Array",proto:!0},{at:function(e){var t=Bp(this),r=Gp(t),e=qp(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),O("at"),TypeError),Yp=x,Xp=lu,Wp=dn,Jp=En("species"),Qp=Array,Zp=g,ed=Vn,td=En("species"),xl=I,c=g,rd=x,nd=dn,od=E,id=R,sd=np,ad=rp,ud=op,C=ip,A=Vn,cd=En("isConcatSpreadable"),P=51<=A||!c(function(){var e=[];return e[cd]=!1,e.concat()[0]!==e}),T=C("concat"),ld=(xl({target:"Array",proto:!0,arity:1,forced:!P||!T},{concat:function(e){for(var t,r,n,o=od(this),i=ud(o,0),s=0,a=-1,u=arguments.length;a<u;a++)if(function(e){if(!nd(e))return!1;var t=e[cd];return void 0!==t?!!t:rd(e)}(n=-1===a?o:arguments[a]))for(r=id(n),sd(s+r),t=0;t<r;t++,s++)t in n&&ad(i,s,n[t]);else sd(s+1),ad(i,s++,n);return i.length=s,i}}),yn),fd=TypeError,pd=E,dd=ii,hd=R,yd=sp,vd=Math.min,N=k,md=(I({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=pd(this),n=hd(r),o=dd(e,n),i=dd(t,n),e=2<arguments.length?arguments[2]:void 0,s=vd((void 0===e?n:dd(e,n))-i,n-o),a=1;for(i<o&&o<i+s&&(a=-1,i+=s-1,o+=s-1);0<s--;)i in r?r[o]=r[i]:yd(r,o),o+=a,i+=a;return r}}),N("copyWithin"),$s),gd=Rn,wd=E,Ed=R,bd=op,Td=e([].push),d={forEach:ap(0),map:ap(1),filter:ap(2),some:ap(3),every:ap(4),find:ap(5),findIndex:ap(6),filterReject:ap(7)},_d=g,Rd=d.every,Id=(I({target:"Array",proto:!0,forced:!up("every")},{every:function(e){return Rd(this,e,1<arguments.length?arguments[1]:void 0)}}),E),Od=ii,Sd=R,Ru=k,Cd=(I({target:"Array",proto:!0},{fill:function(e){for(var t=Id(this),r=Sd(t),n=arguments.length,o=Od(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,i=void 0===n?r:Od(n,r);o<i;)t[o++]=e;return t}}),Ru("fill"),d.filter),mo=(I({target:"Array",proto:!0,forced:!ip("filter")},{filter:function(e){return Cd(this,e,1<arguments.length?arguments[1]:void 0)}}),I),Nd=d.find,Zl=k,Ad=!0,ol=("find"in[]&&Array(1).find(function(){Ad=!1}),mo({target:"Array",proto:!0,forced:Ad},{find:function(e){return Nd(this,e,1<arguments.length?arguments[1]:void 0)}}),Zl("find"),I),kd=d.findIndex,p=k,xd=!0,Pd=("findIndex"in[]&&Array(1).findIndex(function(){xd=!1}),ol({target:"Array",proto:!0,forced:xd},{findIndex:function(e){return kd(this,e,1<arguments.length?arguments[1]:void 0)}}),p("findIndex"),$s),Ud=Rn,Md=E,Dd=R,O={findLast:cp(0),findLastIndex:cp(1)},Ld=O.findLast,A=k,jd=(I({target:"Array",proto:!0},{findLast:function(e){return Ld(this,e,1<arguments.length?arguments[1]:void 0)}}),A("findLast"),O.findLastIndex),c=k,Fd=(I({target:"Array",proto:!0},{findLastIndex:function(e){return jd(this,e,1<arguments.length?arguments[1]:void 0)}}),c("findLastIndex"),x),Vd=R,Hd=np,zd=$s,C=lp,Kd=C,Bd=E,Gd=R,qd=oi,$d=op,Yd=(I({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Bd(this),r=Gd(t),n=$d(t,0);return n.length=Kd(n,t,t,r,0,void 0===e?1:qd(e)),n}}),C),Xd=vn,Wd=E,Jd=R,Qd=op,Zd=(I({target:"Array",proto:!0},{flatMap:function(e){var t,r=Wd(this),n=Jd(r);return Xd(e),(t=Qd(r,0)).length=Yd(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),d.forEach),xl=up("forEach")?[].forEach:function(e){return Zd(this,e,1<arguments.length?arguments[1]:void 0)},eh=(I({target:"Array",proto:!0,forced:[].forEach!=xl},{forEach:xl}),Ri.includes),P=k,T=(I({target:"Array",proto:!0,forced:g(function(){return!Array(1).includes()})},{includes:function(e){return eh(this,e,1<arguments.length?arguments[1]:void 0)}}),P("includes"),I),th=Ri.indexOf,N=up,rh=e([].indexOf),nh=!!rh&&1/rh([1],1,-0)<0,Ru=N("indexOf"),mo=(T({target:"Array",proto:!0,forced:nh||!Ru},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return nh?rh(this,e,t)||0:th(this,e,t)}}),I),Zl=Rn,oh=pn,ol=up,ih=e([].join),p=Zl!=Object,A=ol("join",","),sh=(mo({target:"Array",proto:!0,forced:p||!A},{join:function(e){return ih(oh(this),void 0===e?",":e)}}),au),ah=pn,uh=oi,ch=R,O=up,lh=Math.min,fh=[].lastIndexOf,ph=!!fh&&1/[1].lastIndexOf(1,-0)<0,c=O("lastIndexOf"),C=ph||!c?function(e){if(ph)return sh(fh,this,arguments)||0;var t=ah(this),r=ch(t),n=r-1;for((n=1<arguments.length?lh(n,uh(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:fh,dh=(I({target:"Array",proto:!0,forced:C!==[].lastIndexOf},{lastIndexOf:C}),d.map),xl=(I({target:"Array",proto:!0,forced:!ip("map")},{map:function(e){return dh(this,e,1<arguments.length?arguments[1]:void 0)}}),I),hh=E,yh=R,vh=np,P=g(function(){return 4294967297!==[].push.call({length:4294967296},1)}),Ri=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),mh=(xl({target:"Array",proto:!0,arity:1,forced:P||Ri},{push:function(e){var t=hh(this),r=yh(t),n=arguments.length;vh(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return t.length=r}}),vn),gh=E,wh=Rn,Eh=R,bh=TypeError,N={left:fp(!1),right:fp(!0)},Th=N.left,T=Vn,Ru=nu,_h=(I({target:"Array",proto:!0,forced:!up("reduce")||!Ru&&79<T&&T<83},{reduce:function(e){var t=arguments.length;return Th(this,e,t,1<t?arguments[1]:void 0)}}),N.right),Zl=Vn,ol=nu,mo=(I({target:"Array",proto:!0,forced:!up("reduceRight")||!ol&&79<Zl&&Zl<83},{reduceRight:function(e){return _h(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),I),Rh=x,Ih=e([].reverse),p=[1,2],A=(mo({target:"Array",proto:!0,forced:String(p)===String(p.reverse())},{reverse:function(){return Rh(this)&&(this.length=this.length),Ih(this)}}),I),Oh=x,Sh=lu,Ch=dn,Nh=ii,Ah=R,kh=pn,xh=rp,au=En,Ph=lo,O=ip("slice"),Uh=au("species"),Mh=Array,Dh=Math.max,Lh=(A({target:"Array",proto:!0,forced:!O},{slice:function(e,t){var r,n,o,i=kh(this),s=Ah(i),a=Nh(e,s),u=Nh(void 0===t?s:t,s);if(Oh(i)&&(r=i.constructor,(r=Sh(r)&&(r===Mh||Oh(r.prototype))||Ch(r)&&null===(r=r[Uh])?void 0:r)===Mh||void 0===r))return Ph(i,a,u);for(n=new(void 0===r?Mh:r)(Dh(u-a,0)),o=0;a<u;a++,o++)a in i&&xh(n,o,i[a]);return n.length=o,n}}),d.some),jh=(I({target:"Array",proto:!0,forced:!up("some")},{some:function(e){return Lh(this,e,1<arguments.length?arguments[1]:void 0)}}),ii),Fh=R,Vh=rp,Hh=Array,zh=Math.max,Kh=pp,Bh=Math.floor,c=dp,C=jn.match(/firefox\/(\d+)/i),xl=!!C&&+C[1],P=/MSIE|Trident/.test(jn),Ri=jn.match(/AppleWebKit\/(\d+)\./),Ru=!!Ri&&+Ri[1],T=I,N=e,Gh=vn,qh=E,$h=R,Yh=sp,Xh=ea,nu=g,Wh=c,ol=up,Jh=xl,Qh=P,Zh=Vn,ey=Ru,ty=[],ry=N(ty.sort),ny=N(ty.push),Zl=nu(function(){ty.sort(void 0)}),mo=nu(function(){ty.sort(null)}),p=ol("sort"),oy=!nu(function(){if(Zh)return Zh<70;if(!(Jh&&3<Jh)){if(Qh)return!0;if(ey)return ey<603;for(var e,t,r,n="",o=65;o<76;o++){switch(e=String.fromCharCode(o),o){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++)ty.push({k:e+r,v:t})}for(ty.sort(function(e,t){return t.v-e.v}),r=0;r<ty.length;r++)e=ty[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),lo=(T({target:"Array",proto:!0,forced:Zl||!mo||!p||!oy},{sort:function(e){void 0!==e&&Gh(e);var t=qh(this);if(oy)return void 0===e?ry(t):ry(t,e);for(var r,n,o=[],i=$h(t),s=0;s<i;s++)s in t&&ny(o,t[s]);for(Wh(o,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:Xh(e)>Xh(t)?1:-1})),r=o.length,s=0;s<r;)t[s]=o[s++];for(;s<i;)Yh(t,s++);return t}}),Ju("Array"),I),iy=E,sy=ii,ay=oi,uy=R,cy=np,ly=op,fy=rp,py=sp,au=ip("splice"),dy=Math.max,hy=Math.min,A=(lo({target:"Array",proto:!0,forced:!au},{splice:function(e,t){var r,n,o,i,s,a,u=iy(this),c=uy(u),l=sy(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-l):(r=e-2,hy(dy(ay(t),0),c-l)),cy(c+r-n),o=ly(u,n),i=0;i<n;i++)(s=l+i)in u&&fy(o,i,u[s]);if(r<(o.length=n)){for(i=l;i<c-n;i++)a=i+r,(s=i+n)in u?u[a]=u[s]:py(u,a);for(i=c;c-n+r<i;i--)py(u,i-1)}else if(n<r)for(i=c-n;l<i;i--)a=i+r-1,(s=i+n-1)in u?u[a]=u[s]:py(u,a);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return u.length=c-n+r,o}}),k("flat"),k("flatMap"),I),yy=E,vy=R,my=sp,gy=np,O=1!==[].unshift(0),C=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),jn=(A({target:"Array",proto:!0,arity:1,forced:O||C},{unshift:function(e){var t=yy(this),r=vy(t),n=arguments.length;if(n){gy(r+n);for(var o=r;o--;){var i=o+n;o in t?t[i]=t[o]:my(t,i)}for(var s=0;s<n;s++)t[s]=arguments[s]}return t.length=r+n}}),s.Array,{exports:{}}),Ri={},wy=ln,Ey=pn,by=b.f,Ty=pp,_y="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=(Ri.f=function(e){if(!_y||"Window"!=wy(e))return by(Ey(e));var t=e;try{return by(t)}catch(t){return Ty(_y)}},g(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),xl=g,Ry=dn,Iy=ln,Oy=c,Sy=Object.isExtensible,P=xl(function(){Sy(1)})||Oy?function(e){return!!Ry(e)&&(!Oy||"ArrayBuffer"!=Iy(e))&&(!Sy||Sy(e))}:Sy,Vn=!g(function(){return Object.isExtensible(Object.preventExtensions({}))}),Cy=I,Ny=e,Ru=gi,Ay=dn,ky=co,xy=yo.f,Py=b,Uy=Ri,My=P,Dy=Vn,Ly=!1,jy=wn("meta"),Fy=0,Vy=jn.exports={enable:function(){Vy.enable=function(){},Ly=!0;var o=Py.f,i=Ny([].splice),e={};e[jy]=1,o(e).length&&(Py.f=function(e){for(var t=o(e),r=0,n=t.length;r<n;r++)if(t[r]===jy){i(t,r,1);break}return t},Cy({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Uy.f}))},fastKey:function(e,t){if(!Ay(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!ky(e,jy)){if(!My(e))return"F";if(!t)return"E";hp(e)}return e[jy].objectID},getWeakData:function(e,t){if(!ky(e,jy)){if(!My(e))return!0;if(!t)return!1;hp(e)}return e[jy].weakData},onFreeze:function(e){return Dy&&Ly&&My(e)&&!ky(e,jy)&&hp(e),e}},Hy=(Ru[jy]=!0,w),zy=dn,Ky=S,N=I,ol=y,By=e,nu=Oi,Gy=ni,T=jn.exports,qy=Zs,$y=Qu,Zl=w,Yy=dn,mo=g,p=ef,lo=bu,Xy=ni,Wy=yo.f,Jy=js,Qy=yp,Zy=$s,ev=Qu,tv=Zs,rv=_u,nv=Ju,ov=r,iv=jn.exports.fastKey,sv=Fn.set,av=Fn.getterFor;function uv(e){var r=By(bp[e]);Gy(bp,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(gp&&!Yy(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return gp&&!Yy(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(gp&&!Yy(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}au=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},A={getConstructor:function(e,r,n,o){function i(e,t,r){var n,o=u(e),i=s(e,t);return i?i.value=r:(o.last=i={index:n=iv(t,!0),key:t,value:r,previous:t=o.last,next:void 0,removed:!1},o.first||(o.first=i),t&&(t.next=i),ov?o.size++:e.size++,"F"!==n&&(o.index[n]=i)),e}function s(e,t){var r,e=u(e),n=iv(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){ev(e,a),sv(e,{type:r,index:Jy(null),first:void 0,last:void 0,size:0}),ov||(e.size=0),null!=t&&tv(t,e[o],{that:e,AS_ENTRIES:n})}),a=e.prototype,u=av(r);return Qy(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,ov?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),ov?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=Zy(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)}}),Qy(a,n?{get:function(e){e=s(this,e);return e&&e.value},set:function(e,t){return i(this,0===e?0:e,t)}}:{add:function(e){return i(this,e=0===e?0:e,e)}}),ov&&Wy(a,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",o=av(t),i=av(n);rv(e,t,function(e,t){sv(this,{type:n,target:e,state:o(e),kind:t,last:void 0})},function(){for(var e=i(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),nv(t)}},mp=-1!==(O="Map").indexOf("Map"),gp=-1!==O.indexOf("Weak"),wp=mp?"set":"add",Ep=ol.Map,bp=Ep&&Ep.prototype,C={},nu(O,!Zl(Tp=Ep)||!(gp||bp.forEach&&!mo(function(){(new Ep).entries().next()})))?(Tp=A.getConstructor(au,O,mp,wp),T.enable()):nu(O,!0)&&(s=(vp=new Tp)[wp](gp?{}:-0,1)!=vp,c=mo(function(){vp.has(1)}),xl=p(function(e){new Ep(e)}),gi=!gp&&mo(function(){for(var e=new Ep,t=5;t--;)e[wp](t,t);return!e.has(-0)}),xl||(((Tp=au(function(e,t){$y(e,bp);r=new Ep,e=e,n=Tp,Ky&&Hy(e=e.constructor)&&e!==n&&zy(e=e.prototype)&&e!==n.prototype&&Ky(r,e);var r,n=r;return null!=t&&qy(t,n[wp],{that:n,AS_ENTRIES:mp}),n})).prototype=bp).constructor=Tp),(c||gi)&&(uv("delete"),uv("has"),mp&&uv("get")),(gi||s)&&uv(wp),gp&&bp.clear&&delete bp.clear),C.Map=Tp,N({global:!0,constructor:!0,forced:Tp!=Ep},C),lo(Tp,O),gp||A.setStrong(Tp,O,mp);function cv(e,t){for(var r=0,n=dv(t),o=new e(n);r<n;)o[r]=t[r++];return o}function lv(e,t,r,n){for(var o,i,s,a=vv(e),u=yv(a),c=hv(t,r),l=wv(null),f=gv(u),p=0;p<f;p++)s=u[p],(i=mv(c(s,p,a)))in l?Tv(l[i],s):l[i]=[s];if(n&&(o=n(a))!==bv)for(i in l)l[i]=Ev(o,l[i]);return l}function fv(e){for(var t,r,n=Sv(this),o=Ov(n),i=Iv(e,1<arguments.length?arguments[1]:void 0),s=new Nv,a=Cv(o),u=0;u<a;u++)t=i(r=o[u],u,n),kv(s,t)?Pv(Av(s,t),r):xv(s,t,[r]);return s}function pv(e){return Lv[e].prototype}var dv=R,hv=$s,yv=Rn,vv=E,mv=bn,gv=R,wv=js,Ev=cv,bv=Array,Tv=e([].push),_v=lv,co=k,Rv=(I({target:"Array",proto:!0},{group:function(e){return _v(this,e,1<arguments.length?arguments[1]:void 0)}}),co("group"),lv),b=k,Iv=(I({target:"Array",proto:!0,forced:!up("groupBy")},{groupBy:function(e){return Rv(this,e,1<arguments.length?arguments[1]:void 0)}}),b("groupBy"),$s),Ri=e,Ov=Rn,Sv=E,Cv=R,Nv=hn("Map"),P=Nv.prototype,Av=Ri(P.get),kv=Ri(P.has),xv=Ri(P.set),Pv=Ri([].push),Vn=k,Ru=fv,S=(I({target:"Array",proto:!0,name:"groupToMap",forced:!up("groupByToMap")},{groupByToMap:Ru}),Vn("groupByToMap"),k),Uv=(I({target:"Array",proto:!0},{groupToMap:fv}),S("groupToMap"),R),Mv=pn,Oi=k,Dv=Array,Lv=(I({target:"Array",proto:!0},{toReversed:function(){for(var e=Mv(this),t=Dv,r=Uv(e),n=new t(r),o=0;o<r;o++)n[o]=e[r-o-1];return n}}),Oi("toReversed"),y),jn=I,jv=vn,Fv=pn,Vv=cv,ol=k,Hv=Array,zv=e(pv("Array").sort),nu=(jn({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&jv(e);var t=Fv(this),t=Vv(Hv,t);return zv(t,e)}}),ol("toSorted"),I),p=k,Kv=np,Bv=R,Gv=ii,qv=pn,$v=oi,Yv=Array,Xv=Math.max,Wv=Math.min,Jv=(nu({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,o,i,s=qv(this),a=Bv(s),u=Gv(e,a),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,a-u):(r=e-2,Wv(Xv($v(t),0),a-u)),o=Kv(a+r-n),i=Yv(o);c<u;c++)i[c]=s[c];for(;c<u+r;c++)i[c]=arguments[c-u+2];for(;c<o;c++)i[c]=s[c+n-r];return i}}),p("toSpliced"),R),Qv=oi,Zv=RangeError,em=pn,tm=Array;I({target:"Array",proto:!0},{with:function(e,t){var r=em(this),n=tm,o=t,i=Jv(r),s=(e=Qv(e))<0?i+e:e;if(i<=s||s<0)throw Zv("Incorrect index");for(var a=new n(i),u=0;u<i;u++)a[u]=u===s?o:r[u];return a}});mo=y,xl=no,au=w,c=ei,gi=ni,s=En("asyncIterator"),N=mo.AsyncIterator,C=xl.AsyncIteratorPrototype;if(C)Tg=C;else if(au(N))Tg=N.prototype;else if(xl.USE_FUNCTION_CONSTRUCTOR||mo.USE_FUNCTION_CONSTRUCTOR)try{bg=c(c(c(Function("return async function*(){}()")()))),c(bg)===Object.prototype&&(Tg=bg)}catch(bw){}au((Tg=Tg||{})[s])||gi(Tg,s,function(){return this});function rm(e,t,r){var n=e.done;fm.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function nm(e){pm(this,{type:"AsyncFromSyncIterator",iterator:cm(e),next:e.next})}function om(e,t,r,n){try{var o=Rm(e,"return");if(o)return _m("Promise").resolve(Tm(o,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function im(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,s,a){var e={iterator:e,next:Em(bm(e).next)},u=Nm("Promise"),c=e.iterator,t=e.next,l=0,f=void 0!==s;return!f&&p||Om(s),new u(function(r,n){var o=function(e){om(c,n,e,n)},i=function(){try{if(p&&f)try{Cm(l)}catch(e){o(e)}u.resolve(Sm(Im(t,c))).then(function(e){try{if(Sm(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)i();else if(h)e?i():om(c,r,!1,n);else if(p)try{a[l++]=e,i()}catch(e){o(e)}else e?om(c,r,y||t,n):i()},o):(a[l++]=t,i())}catch(e){o(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};i()})}}function sm(e,t){if(!Bm||!Km(e)||!Bm(e))return!1;for(var r,n=0,o=e.length;n<o;)if(!("string"==typeof(r=e[n++])||t&&void 0===r))return!1;return 0!==o}function am(e,t,r){r.get&&Gm(r.get,t,{getter:!0}),r.set&&Gm(r.set,t,{setter:!0}),qm.f(e,t,r)}var um=i,cm=_n,lo=js,lm=mn,A=yp,O=Fn,co=Tg,fm=hn("Promise"),pm=O.set,dm=O.getterFor("AsyncFromSyncIterator"),b=(nm.prototype=A(lo(co),{next:function(){var n=dm(this);return new fm(function(e,t){var r=cm(um(n.next,n.iterator));rm(r,e,t)})},return:function(){var n=dm(this).iterator;return new fm(function(e,t){var r=lm(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=cm(um(r,n));rm(r,e,t)})}}),nm),hm=i,ym=b,vm=_n,mm=Ws,gm=mn,wm=En("asyncIterator"),Em=vn,bm=_n,Tm=i,_m=hn,Rm=mn,Im=i,Om=vn,Sm=_n,Cm=np,Nm=hn,Rn={toArray:im(0),forEach:im(1),every:im(2),some:im(3),find:im(4)},Am=$s,km=E,xm=lu,Pm=Ws,Um=Xs,Mm=mn,P=pv,Dm=hn,Lm=b,jm=Rn.toArray,Fm=En("asyncIterator"),Vm=P("Array").values,Hm=(I({target:"Array",stat:!0,forced:!0},{fromAsync:function(i){var s=this,e=arguments.length,a=1<e?arguments[1]:void 0,u=2<e?arguments[2]:void 0;return new(Dm("Promise"))(function(e){var t=km(i),r=(void 0!==a&&(a=Am(a,u)),Mm(t,Fm)),n=r?void 0:Um(t)||Vm,o=xm(s)?new s:[],r=r?function(e,t){t=arguments.length<2?gm(e,wm):t;return t?vm(hm(t,e)):new ym(mm(e))}(t,r):new Lm(Pm(t,n));e(jm(r,a,o))})}}),d.filterReject),Ri=k,zm=(I({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return Hm(this,e,1<arguments.length?arguments[1]:void 0)}}),Ri("filterOut"),d.filterReject),Ru=k,Vn=(I({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return zm(this,e,1<arguments.length?arguments[1]:void 0)}}),Ru("filterReject"),I),Km=x,Bm=Object.isFrozen,Gm=(Vn({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!sm(e,!0))return!1;var t=e.raw;return t.length===e.length&&sm(t,!1)}}),_.exports),qm=yo,S=k,$m=E,Ym=R,Oi=(r&&(am(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=$m(this),t=Ym(e);return 0==t?void 0:e[t-1]},set:function(e){var t=$m(this),r=Ym(t);return t[0==r?0:r-1]=e}}),S("lastItem")),k),Xm=E,Wm=R,jn=(r&&(am(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=Xm(this),e=Wm(e);return 0==e?0:e-1}}),Oi("lastIndex")),e),Jm=vn,Qm=R,Zm=E,eg=op,tg=hn("Map"),ol=tg.prototype,rg=jn(ol.forEach),ng=jn(ol.has),og=jn(ol.set),ig=jn([].push),nu=k;I({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=Zm(this),o=Qm(n),i=eg(n,0),s=new tg,a=null!=e?Jm(e):function(e){return e},u=0;u<o;u++)r=a(t=n[u]),ng(s,r)||og(s,r,t);return rg(s,function(e){ig(i,e)}),i}}),nu("uniqueBy");function sg(e,t,r,n){this.valueId=e,this.value=t,this.reason=r,this.properties=n}B0.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},B0.prototype.refresh=function(){this.stop(),this.start()},B0.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)};var ag,ug=B0,cg=(K0.prototype.start=function(){this.started=!0},K0.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},K0.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},K0.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},K0.prototype.close=function(){this.stop()},K0),lg=(z0.prototype.isClientError=function(e){return!!(e&&400<=e.statusCode&&e.statusCode<500)},z0.prototype.drainRepository=function(i){var e=this;return new Promise(function(o){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?i?this.eventDispatcher.dispatchXhrOrBeacon(t,function(){var e;o(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?o(null==(e=n.repository)?void 0:e.delete(t)):o()}):this.eventDispatcher.dispatch(t,function(){var e;o(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?o(null==(e=n.repository)?void 0:e.delete(t)):o()}):o(),[2]}})})})},z0.prototype.drainQueue=function(o,i){var e=this,s=o.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===o.length?n():i?(null!=(t=this.repository)&&t.add(s),this.eventDispatcher.dispatchXhrOrBeacon(o,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(o,function(){n()},function(e){r.isClientError(e)?n():n(null==(e=r.repository)?void 0:e.add(s))}),[2]})})})},z0.prototype.process=function(e){this.queue.enqueue(e)},z0.prototype.start=function(){return le(this,void 0,void 0,function(){return fe(this,function(e){return this.queue.start(),[2]})})},z0.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},z0.prototype.flush=function(){this.queue.flush()},z0.prototype.close=function(){this.stop()},z0),fg=(H0.isSessionEvent=function(e){return!!gr.isTrack(e)&&(e.event.key===H0.SESSION_START_EVENT_NAME||e.event.key===H0.SESSION_END_EVENT_NAME)},H0.prototype.onSessionStarted=function(e,t,r){this.track(H0.SESSION_START_EVENT_NAME,e,t,r)},H0.prototype.onSessionEnded=function(e,t,r){this.track(H0.SESSION_END_EVENT_NAME,e,t,r)},H0.prototype.track=function(e,t,r,n){e={key:e,properties:{sessionId:t}},r=this.hackleUserResolver.resolve(r),r=this.decorateSession(r,t);this.hackleInternalClient._track(e,r,n)},H0.prototype.decorateSession=function(e,t){t=(new Je).add(We.SESSION,t).addIdentifiers(e.identifiers).build();return h(h({},e),{identifiers:t})},H0.SESSION_START_EVENT_NAME="$session_start",H0.SESSION_END_EVENT_NAME="$session_end",H0),pg=(V0.prototype.process=function(e){var t;fg.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[We.SESSION]?e:e.copyWithUser(h(h({},e.user),{identifiers:h(h({},e.user.identifiers),((e={})[We.SESSION]=t.sessionId,e))})),this.delegate.process(t))},V0.prototype.close=function(){this.delegate.close()},V0.prototype.flush=function(){this.delegate.flush()},V0.prototype.start=function(){return this.delegate.start()},V0),dg=(F0.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!gr.isExposure(e))return!1;Ve.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)},F0),hg=(j0.toEvent=function(e){var t;return{key:j0.EVENT_KEY,properties:{level:j0.LEVEL_ERROR,type:e.name,message:null!=(t=e.message)?t:"",$stacktrace:j0._stacktrace(e)}}},j0._stacktrace=function(e){return a.isNullOrUndefined(e.stack)?"":e.stack.split("\n").slice(0,j0.STACK_TRACK_LIMIT).join("\n")},j0.EVENT_KEY="$trace",j0.LEVEL_ERROR="error",j0.STACK_TRACK_LIMIT=30,j0),yg=de.log,vg=(L0.prototype._experiment=function(e,t,r){if(!e)return yg.error("experimentKey must not be empty"),Ge.of(r,u.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return yg.warn("SDK not ready."),Ge.of(r,u.SDK_NOT_READY);e=n.getExperimentOrNull(e);if(!e)return yg.warn("Experiment does not exist."),Ge.of(r,u.EXPERIMENT_NOT_FOUND);n=this.evaluator.evaluate(n,e,t,r),this.eventProcessor.process(gr.exposure(e,t,n)),e=null!=(r=n.config)?r:new $e;return Ge.of(n.variationKey,n.reason,e)},L0.prototype._featureFlag=function(e,t){if(!e)return yg.error("featureKey must not be empty"),qe.off(u.INVALID_INPUT);var r=this.workspaceFetcher.get();if(!r)return yg.warn("SDK not ready."),qe.off(u.SDK_NOT_READY);var e=r.getFeatureFlagOrNull(e);if(!e)return yg.warn("FeatureFlag does not exist."),qe.off(u.FEATURE_FLAG_NOT_FOUND);r=this.evaluator.evaluate(r,e,t,"A"),this.eventProcessor.process(gr.exposure(e,t,r)),t=null!=(e=r.config)?e:new $e;return"A"===r.variationKey?qe.off(r.reason,t):qe.on(r.reason,t)},L0.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 Ie(0,e.key),this.eventProcessor.process(gr.track(n,e,t,r))):yg.warn("Event key must be not null. or event key must be string type."):yg.warn("Event must be event type."):yg.warn("event must not be null.")},L0.prototype._trackException=function(e,t){this.errorDedupDeterminer.isDedupTarget(e)||(e=hg.toEvent(e),this._flush(),this._track(e,t),this._flush())},L0.prototype._flush=function(){this.eventProcessor.flush()},L0.prototype._remoteConfig=function(e,t,r,n){var o=this.workspaceFetcher.get();if(a.isNullOrUndefined(o))return yg.warn("SDK not ready."),Be.of(n,u.SDK_NOT_READY);e=o.getRemoteConfigParameterOrNull(e);if(a.isNullOrUndefined(e))return yg.warn("Remote config parameter does not exist."),Be.of(n,u.REMOTE_CONFIG_PARAMETER_NOT_FOUND);o=this.evaluator.remoteConfigEvaluate(o,e,t,r,n);return this.eventProcessor.process(gr.remoteConfig(e,t,o)),Be.of(o.value,o.reason)},L0.prototype._onReady=function(e,t){this._onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},L0.prototype._onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(yg.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?yg.debug("HackleClient onInitialized Success"):e.error instanceof Error?yg.error("HackleClient onInitialized Failed. ".concat(e.error.message)):yg.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},L0.prototype._close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},L0),mg=(D0.prototype.isDedupTarget=function(e){return!!this._isSameError(e,this.previous)||(this.previous=e,!1)},D0.prototype._isSameError=function(e,t){return!a.isNullOrUndefined(t)&&e.name===t.name&&e.message===t.message&&e.stack===t.stack},D0),gg=(M0.of=function(e,t,r,n){t=t._getVariationByKeyOrNull(r);return a.isNotNullOrUndefined(t)?M0.withVariation(e,t,n):new M0(void 0,r,n,void 0)},M0.withVariation=function(e,t,r){e=this.config(e,t);return new M0(t.id,t.key,r,e)},M0.config=function(e,t){if(!a.isNullOrUndefined(t.parameterConfigurationId))return a.requiredNotNullOrUndefined(e.getParameterConfigurationOrNull(t.parameterConfigurationId),function(){return"ParameterConfiguration[".concat(t.parameterConfigurationId,"]")})},M0),wg=(U0.prototype.evaluate=function(e,t,r,n){return this.evaluationFlowFactory.getFlow(t.type).evaluate(e,t,r,n)},U0.prototype.remoteConfigEvaluate=function(e,t,r,n,o){var i={};if(i.requestValueType=n,i.requestDefaultValue=o,a.isNullOrUndefined(r.identifiers[t.identifierType]))return new sg(void 0,o,u.IDENTIFIER_NOT_FOUND,i);e=this.evaluationFlowFactory.getRemoteConfigParameterTargetRuleDeterminer().determineTargetRuleOrNull(e,t,r);return e?(i.targetRuleKey=e.key,i.targetRuleName=e.name,this.getRemoteConfigEvaluationWithTypeCheck(e.value,u.TARGET_RULE_MATCH,n,o,i)):this.getRemoteConfigEvaluationWithTypeCheck(t.defaultValue,u.DEFAULT_RULE,n,o,i)},U0.prototype.getRemoteConfigEvaluationWithTypeCheck=function(e,t,r,n,o){return"UNKNOWN"===r||"NULL"!==r&&typeof n!=typeof e.rawValue?(o.returnValue=n,new sg(void 0,n,u.TYPE_MISMATCH,o)):(o.returnValue=e.rawValue,new sg(e.id,e.rawValue,t,o))},U0),Eg=(P0.prototype.matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n._matches(e,t,r)})},P0.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(e.key.type).matches(e,t,r)},P0),p=(x0.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)},x0.prototype.userValueMatches=function(e,t,r,n){return Array.isArray(e)?this.arrayMatches(e,t,r,n):this.singleMatches(e,t,r,n)},x0.prototype.singleMatches=function(t,e,r,n){return e.values.some(function(e){return r.matches(n,t,e)})},x0.prototype.arrayMatches=function(e,t,r,n){var o=this;return e.some(function(e){return o.singleMatches(e,t,r,n)})},x0.prototype.typeMatches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},x0),y=(k0.prototype.booleanMatches=function(e,t){return e===t},k0.prototype.numberMatches=function(e,t){return e===t},k0.prototype.stringMatches=function(e,t){return e===t},k0.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},k0),no=(A0.prototype.booleanMatches=function(e,t){return!1},A0.prototype.numberMatches=function(e,t){return!1},A0.prototype.stringMatches=function(e,t){return e.includes(t)},A0.prototype.versionMatches=function(e,t){return!1},A0),ei=(N0.prototype.booleanMatches=function(e,t){return!1},N0.prototype.numberMatches=function(e,t){return!1},N0.prototype.stringMatches=function(e,t){return e.startsWith(t)},N0.prototype.versionMatches=function(e,t){return!1},N0),C=(C0.prototype.booleanMatches=function(e,t){return!1},C0.prototype.numberMatches=function(e,t){return!1},C0.prototype.stringMatches=function(e,t){return e.endsWith(t)},C0.prototype.versionMatches=function(e,t){return!1},C0),N=(S0.prototype.booleanMatches=function(e,t){return!1},S0.prototype.numberMatches=function(e,t){return t<e},S0.prototype.stringMatches=function(e,t){return t<e},S0.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},S0),xl=(O0.prototype.booleanMatches=function(e,t){return!1},O0.prototype.numberMatches=function(e,t){return t<=e},O0.prototype.stringMatches=function(e,t){return t<=e},O0.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},O0),mo=(I0.prototype.booleanMatches=function(e,t){return!1},I0.prototype.numberMatches=function(e,t){return e<t},I0.prototype.stringMatches=function(e,t){return e<t},I0.prototype.versionMatches=function(e,t){return e.isLessThan(t)},I0),c=(R0.prototype.booleanMatches=function(e,t){return!1},R0.prototype.numberMatches=function(e,t){return e<=t},R0.prototype.stringMatches=function(e,t){return e<=t},R0.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},R0),bg=(_0.prototype.getMatcher=function(e){switch(e){case"IN":return _0.IN_MATCHER;case"CONTAINS":return _0.CONTAINS_MATCHER;case"STARTS_WITH":return _0.STARTS_WITH_MATCHER;case"ENDS_WITH":return _0.ENDS_WITH_MATCHER;case"GT":return _0.GT_MATCHER;case"GTE":return _0.GTE_MATCHER;case"LT":return _0.LT_MATCHER;case"LTE":return _0.LTE_MATCHER}},_0.IN_MATCHER=new y,_0.CONTAINS_MATCHER=new no,_0.STARTS_WITH_MATCHER=new ei,_0.ENDS_WITH_MATCHER=new C,_0.GT_MATCHER=new N,_0.GTE_MATCHER=new xl,_0.LT_MATCHER=new mo,_0.LTE_MATCHER=new c,_0),au=(T0.prototype.matches=function(e,t,r){t=this.asString(t),r=this.asString(r);return!a.isNullOrUndefined(t)&&!a.isNullOrUndefined(r)&&e.stringMatches(t,r)},T0.prototype.asString=function(e){return"string"==typeof e?e:"number"==typeof e?e.toString():null},T0),gi=(b0.prototype.matches=function(e,t,r){t=this.asNumber(t),r=this.asNumber(r);return!a.isNullOrUndefined(t)&&!a.isNullOrUndefined(r)&&e.numberMatches(t,r)},b0.prototype.asNumber=function(e){return"number"==typeof e?e:"string"==typeof e?(e=Number(e),isNaN(e)?null:e):null},b0),s=(E0.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},E0),js=(w0.prototype.matches=function(e,t,r){t=dt.tryParse(t),r=dt.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},w0),Fn=(g0.prototype.matches=function(e,t,r){return!1},g0),Tg=(m0.prototype.getMatcher=function(e){switch(e){case"STRING":case"JSON":return m0.STRING_MATCHER;case"NUMBER":return m0.NUMBER_MATCHER;case"BOOLEAN":return m0.BOOLEAN_MATCHER;case"VERSION":return m0.VERSION_MATCHER;case"NULL":case"UNKNOWN":return m0.NULL_MATCHER}},m0.STRING_MATCHER=new au,m0.NUMBER_MATCHER=new gi,m0.BOOLEAN_MATCHER=new s,m0.VERSION_MATCHER=new js,m0.NULL_MATCHER=new Fn,m0),O=(v0.prototype.matches=function(e,t,r){r=this.userValueResolver.resolveOrNull(r,e.key);return!a.isNullOrUndefined(r)&&this.valueOperatorMatcher.matches(r,e.match)},v0),A=(y0.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":throw new Error("Unsupported TargetKeyType [".concat(t.type,"]"))}},y0),lo=(h0.prototype.matches=function(e,t,r){var n=this;if("SEGMENT"!=e.key.type)throw new Error("Unsupported TargetKeyType [".concat(e.key.type,"]"));var o=e.match.values.some(function(e){return n._matches(e,t,r)});switch(e.match.type){case"MATCH":return o;case"NOT_MATCH":return!o}},h0.prototype._matches=function(e,t,r){if("string"!=typeof e)throw new Error("SegmentKey[".concat(e,"]"));var n=t.getSegmentOrNull(e);if(n)return this.segmentMatcher.matches(n,t,r);throw new Error("Segment[".concat(e,"]"))},h0),co=(d0.prototype.matches=function(e,t,r){var n=this;return e.targets.some(function(e){return n._matches(e,t,r)})},d0.prototype._matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(e,t,r)})},d0),_g=(p0.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return p0.USER_CONDITION_MATCHER;case"SEGMENT":return p0.SEGMENT_CONDITION_MATCHER}},p0.USER_CONDITION_MATCHER=new O(new A,new p(new Tg,new bg)),p0.SEGMENT_CONDITION_MATCHER=new lo(new co(p0.USER_CONDITION_MATCHER)),p0),Rg=(f0.prototype.resolveOrNull=function(e,t,r,n){switch(e.type){case"VARIATION":return this._resolveVariation(e,r);case"BUCKET":return this._resolveBucket(e,t,r,n)}},f0.prototype._resolveVariation=function(e,t){return t._getVariationByIdOrNull(e.variationId)},f0.prototype._resolveBucket=function(e,t,r,n){t=t.getBucketOrNull(e.bucketId),e=n.identifiers[r.identifierType];if(e){n=this.bucketer.bucketing(t,e);if(n)return r._getVariationByIdOrNull(n.variationId)}},f0),Ig={murmurhash3_x86_32:function(e,t,r,n){for(var o,i=-4&(n=void 0===n?e.length:n),s=t,a=0;a<i;a+=4)o=255&e.charCodeAt(a)|(255&e.charCodeAt(a+1))<<8|(255&e.charCodeAt(a+2))<<16|(255&e.charCodeAt(a+3))<<24,o=(131071&(o=this.mul32(o,3432918353)))<<15|o>>>17,s=5*((524287&(s^=o=this.mul32(o,461845907)))<<13|s>>>19)+3864292196|0;switch(o=0,n%4){case 3:o=(255&e.charCodeAt(2+i))<<16;case 2:o|=(255&e.charCodeAt(1+i))<<8;case 1:o|=255&e.charCodeAt(i),o=(131071&(o=this.mul32(o,3432918353)))<<15|o>>>17,s^=o=this.mul32(o,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}},Og=(l0.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},l0.prototype.calculateSlotNumber=function(e,t,r){r=Ig.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},l0),Sg=(c0.prototype.evaluate=function(e,t,r,n){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,r,n,this.nextFlow):gg.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},c0.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new c0,n=0,o=e.reverse();n<o.length;n++)r=new c0(o[n],r);return r},c0),Cg=(u0.prototype.evaluate=function(e,t,r,n,o){var i=this.overrideResolver.resolveOrNull(e,t,r);if(!i)return o.evaluate(e,t,r,n);switch(t.type){case"AB_TEST":return gg.withVariation(e,i,u.OVERRIDDEN);case"FEATURE_FLAG":return gg.withVariation(e,i,u.INDIVIDUAL_TARGET_MATCH)}},u0),Ng=(a0.prototype.evaluate=function(e,t,r,n,o){return"DRAFT"===t.status?gg.of(e,t,n,u.EXPERIMENT_DRAFT):o.evaluate(e,t,r,n)},a0),Ag=(s0.prototype.evaluate=function(e,t,r,n,o){if("PAUSED"!==t.status)return o.evaluate(e,t,r,n);switch(t.type){case"AB_TEST":return gg.of(e,t,n,u.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return gg.of(e,t,n,u.FEATURE_FLAG_INACTIVE)}},s0),kg=(i0.prototype.evaluate=function(e,t,r,n,o){if("COMPLETED"!==t.status)return o.evaluate(e,t,r,n);o=t._winnerVariationOrNull();if(o)return gg.withVariation(e,o,u.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(t.id,"]"))},i0),xg=(o0.prototype.evaluate=function(e,t,r,n,o){if("AB_TEST"!==t.type)throw new Error("experiment type must be AB_TEST [".concat(t.id,"]"));return this.experimentTargetDeterminer.isUserInExperimentTarget(e,t,r)?o.evaluate(e,t,r,n):gg.of(e,t,n,u.NOT_IN_EXPERIMENT_TARGET)},o0),Pg=(n0.prototype.evaluate=function(e,t,r,n,o){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("AB_TEST"!==t.type)throw new Error("experiment type must be AB_TEST [".concat(t.id,"]"));r=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);return r?r.isDropped?gg.of(e,t,n,u.VARIATION_DROPPED):gg.withVariation(e,r,u.TRAFFIC_ALLOCATED):gg.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},n0),Ug=(r0.prototype.evaluate=function(e,t,r,n,o){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("FEATURE_FLAG"!==t.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(t.id,"]"));if(!r.identifiers[t.identifierType])return o.evaluate(e,t,r,n);var i=this.targetRuleDeterminer.determineTargetRuleOrNull(e,t,r);if(!i)return o.evaluate(e,t,r,n);o=this.actionResolver.resolveOrNull(i.action,e,t,r);if(o)return gg.withVariation(e,o,u.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},r0),Mg=(t0.prototype.evaluate=function(e,t,r,n,o){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("FEATURE_FLAG"!==t.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(t.id,"]"));if(!r.identifiers[t.identifierType])return gg.of(e,t,n,u.DEFAULT_RULE);n=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);if(n)return gg.withVariation(e,n,u.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},t0),Dg=(e0.prototype.evaluate=function(e,t,r,n,o){var i=t.containerId;if(!i)return o.evaluate(e,t,r,n);var s=e.getContainerOrNull(i);if(!s)throw new Error("container[".concat(i,"]"));i=e.getBucketOrNull(s.bucketId);if(i)return this.containerResolver.isUserInContainerGroup(s,i,t,r)?o.evaluate(e,t,r,n):gg.of(e,t,n,u.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("bucket[".concat(s.bucketId,"]"))},e0),Lg=(Zg.prototype.evaluate=function(e,t,r,n,o){return r.identifiers[t.identifierType]?o.evaluate(e,t,r,n):gg.of(e,t,n,u.IDENTIFIER_NOT_FOUND)},Zg),jg=(Qg.prototype.isUserInExperimentTarget=function(t,e,r){var n=this;return 0===e.targetAudiences.length||e.targetAudiences.some(function(e){return n.targetMatcher.matches(e,t,r)})},Qg),Fg=(Jg.prototype.determineTargetRuleOrNull=function(t,e,r){var n=this;return e.targetRules.find(function(e){return n.targetMatcher.matches(e.target,t,r)})},Jg),Vg=(Wg.prototype.resolveOrNull=function(e,t,r){return this._resolveUserOverride(t,r)||this._resolveSegmentOverride(e,t,r)},Wg.prototype._resolveUserOverride=function(e,t){t=t.identifiers[e.identifierType];if(t){t=e.userOverrides.get(t);if(t)return e._getVariationByIdOrNull(t)}},Wg.prototype._resolveSegmentOverride=function(t,e,r){var n=this,o=e.segmentOverrides.find(function(e){return n.targetMatcher.matches(e.target,t,r)});if(o)return this.actionResolver.resolveOrNull(o.action,t,e,r)},Wg),Hg=(Xg.prototype.isUserInContainerGroup=function(e,t,r,n){n=n.identifiers[r.identifierType];if(!n)return!1;t=this.bucketer.bucketing(t,n);if(!t)return!1;n=e.getGroupOrNull(t.variationId);if(n)return n.experiments.includes(r.id);throw new Error("ContainerGroup[".concat(t.variationId,"]"))},Xg),zg=(Yg.prototype.determineTargetRuleOrNull=function(t,r,n){var o=this;return r.targetRules.find(function(e){return o.matches(e,t,r,n)})},Yg.prototype.matches=function(e,t,r,n){if(!this.targetMatcher.matches(e.target,t,n))return!1;n=n.identifiers[r.identifierType];if(a.isNullOrUndefined(n))return!1;r=t.getBucketOrNull(e.bucketId);if(a.isNullOrUndefined(r))throw new Error("bucket[".concat(e.bucketId,"]"));return a.isNotNullOrUndefined(this.bucketer.bucketing(r,n))},Yg),Kg=($g.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},$g.prototype.getRemoteConfigParameterTargetRuleDeterminer=function(){return this.remoteConfigParameterTargetRuleDeterminer},$g),Bg=(qg.prototype.install=function(e,t){this._install("onerror",e,t),this._install("onunhandledrejection",e,t)},qg.prototype._install=function(e,t,r){e in this._installed||((0,this._installations[e])(t,r),this._installed.push(e))},qg),Gg=null;function qg(){this._installed=[],this._installations={onerror:G0,onunhandledrejection:q0}}function $g(){var e=new Og,t=new Eg(new _g),r=new Rg(e),n=new Vg(t,r),o=new Hg(e);this.abTestFlow=Sg.of(new Cg(n),new Lg,new Dg(o),new xg(new jg(t)),new Ng,new Ag,new kg,new Pg(r)),this.featureFlagFlow=Sg.of(new Ng,new Ag,new kg,new Cg(n),new Lg,new Ug(new Fg(t),r),new Mg(r)),this.remoteConfigParameterTargetRuleDeterminer=new zg(t,e)}function Yg(e,t){this.targetMatcher=e,this.bucketer=t}function Xg(e){this.bucketer=e}function Wg(e,t){this.targetMatcher=e,this.actionResolver=t}function Jg(e){this.targetMatcher=e}function Qg(e){this.targetMatcher=e}function Zg(){}function e0(e){this.containerResolver=e}function t0(e){this.actionResolver=e}function r0(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function n0(e){this.actionResolver=e}function o0(e){this.experimentTargetDeterminer=e}function i0(){}function s0(){}function a0(){}function u0(e){this.overrideResolver=e}function c0(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function l0(){}function f0(e){this.bucketer=e}function p0(){}function d0(e){this.userConditionMatcher=e}function h0(e){this.segmentMatcher=e}function y0(){}function v0(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function m0(){}function g0(){}function w0(){}function E0(){}function b0(){}function T0(){}function _0(){}function R0(){}function I0(){}function O0(){}function S0(){}function C0(){}function N0(){}function A0(){}function k0(){}function x0(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function P0(e){this.conditionMatcherFactory=e}function U0(e){this.evaluationFlowFactory=e}function M0(e,t,r,n){this.variationId=e,this.variationKey=t,this.reason=r,this.config=n}function D0(){}function L0(e,t,r,n){this.workspaceFetcher=e,this.eventProcessor=t,this.evaluator=r,this.errorDedupDeterminer=n,this.workspaceFetcher.start(),this.eventProcessor.start(),this.readyPromise=this.workspaceFetcher.onReady().then(function(){return{success:!0}},function(e){return{success:!1,error:e}})}function j0(){}function F0(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function V0(e,t,r,n){this.delegate=e,this.exposureEventDedupDeterminer=t,this.sessionManager=r,this.userManager=n}function H0(e,t){this.hackleUserResolver=e,this.hackleInternalClient=t}function z0(e,t,r,n){void 0===n&&(n=null),this.eventDispatcher=e,this.flushInterval=r,this.queue=new cg(this.drainQueue.bind(this),t,r),this.repository=n}function K0(e,t,r){this.buffer=[],this.sink=e,this.maxQueueSize=t,this.timer=new ug({callback:this.flush.bind(this),timeout:r}),this.started=!1}function B0(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function G0(i,s){Gg=window.onerror,window.onerror=function(e,t,r,n,o){a.isNotNullOrUndefined(o)&&i._trackException(o,s.resolveCurrentUser()),Gg&&Gg.apply(this,arguments)}}function q0(r,n){ag=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()),ag&&ag.apply(this,arguments)}}function $0(e,t){return e.userId===t.userId&&e.deviceId===t.deviceId}ow.prototype.read=function(){var r=this;return new Promise(function(e){var t=r.storage.getItem(r.storageKey);t&&e(JSON.parse(t)),e([])})},ow.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()})},ow.prototype.add=function(t){var r=this;return this.read().then(function(e){return r.save(e.concat(t).slice(-r.maxSize))})},ow.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)})},ow.prototype.clear=function(){var t=this;return new Promise(function(e){localStorage.removeItem(t.storageKey),e()})};var Y0=ow,X0=(nw.prototype.addListener=function(e){this.userListeners.push(e)},nw.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(nw.prototype,"currentUser",{get:function(){return this._currentUser},enumerable:!1,configurable:!0}),nw.prototype.resolveCurrentOrNull=function(e){if(void 0===e)return this.currentUser;if("string"==typeof e)return this.setUser({id:e});e=Oe(e);return e?this.setUser(e):null},nw.prototype.setUser=function(e){var t=this._currentUser,r=$0(r=t,e=e)?h(h({},e),{properties:h(h({},r.properties),e.properties)}):e;return this._currentUser=r,$0(t,r)||(this.changeUser(t,r,(new Date).getTime()),this.saveUser(r)),r},nw.prototype.setUserId=function(e){e=h(h({},this._currentUser),{userId:e});return this.setUser(e)},nw.prototype.setDeviceId=function(e){e=h(h({},this._currentUser),{deviceId:e});return this.setUser(e)},nw.prototype.setUserProperty=function(e,t){var r,e=h(h({},this._currentUser),{properties:h(h({},this._currentUser.properties),((r={})[e]=t,r))});return this.setUser(e)},nw.prototype.setUserProperties=function(e){e=h(h({},this._currentUser),{properties:h(h({},this._currentUser.properties),e)});return this.setUser(e)},nw.prototype.resetUser=function(){return this.setUser(this.defaultUser)},nw.prototype.changeUser=function(t,r,n){this.userListeners.forEach(function(e){e.onUserUpdated(t,r,n)})},nw.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")},nw),W0=(Object.defineProperty(rw.prototype,"currentSessionId",{get:function(){return this._currentSessionId},enumerable:!1,configurable:!0}),Object.defineProperty(rw.prototype,"sessionId",{get:function(){var e;return null!=(e=this._currentSessionId)?e:rw.EMPTY_SESSION_ID},enumerable:!1,configurable:!0}),Object.defineProperty(rw.prototype,"lastEventTime",{get:function(){return this._lastEventTime},enumerable:!1,configurable:!0}),rw.prototype.addListener=function(e){this.sessionListeners.push(e)},rw.prototype.startNewSession=function(e,t){return this.endSession(e),this.newSession(e,t)},rw.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)},rw.prototype.updateLastEventTime=function(e){this._lastEventTime=e,this.storage.setItem("_hackle_last_event_ts","".concat(e))},rw.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)})},rw.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},rw.prototype.saveSession=function(e){this._currentSessionId=e,this.storage.setItem("_hackle_session_id",e)},rw.prototype.loadSession=function(){this._currentSessionId=this.storage.getItem("_hackle_session_id")},rw.prototype.loadLastEventTime=function(){var e=this.storage.getItem("_hackle_last_event_ts");null!==e&&0<(e=Number.parseFloat(e))&&(this._lastEventTime=e)},rw.prototype.onUserUpdated=function(e,t,r){this.endSession(e),this.newSession(t,r)},rw.EMPTY_SESSION_ID="0.ffffffff",rw),J0=(tw.postfix=function(e,t){return new tw(e,function(e){return"".concat(e).concat(t)})},tw.prototype.getItem=function(e){return this.delegate.getItem(this.transform(e))},tw.prototype.removeItem=function(e){this.delegate.removeItem(this.transform(e))},tw.prototype.setItem=function(e,t){this.delegate.setItem(this.transform(e),t)},tw),Q0=de.log,Z0=null,ew={debug:!1,log_disabled:!1,auto_track_page_view:!0,pollingIntervalMillis:-1,exposureEventDedupIntervalMillis:-1,sessionTimeoutMillis:18e5,SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.12.1"};function tw(e,t){this.delegate=e,this.transform=t}function rw(e,t){this.sessionTimeoutMillis=e,this.storage=t,this.sessionListeners=[],this._currentSessionId=null,this._lastEventTime=null,this.loadSession(),this.loadLastEventTime()}function nw(e,t){this.storage=e,this.hackleDeviceId=t,this.userListeners=[],this.defaultUser={deviceId:this.hackleDeviceId},this._currentUser=this.defaultUser,this.initialize()}function ow(e,t,r){this.storage=e,this.storageKey=t,this.maxSize=r}function iw(e,t){t=h(h({},ew),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),Q0.debug("sdkKey : "+e),e||Q0.error("SDK Key must not be null"),Z0)return Q0.debug("use already exists hackleClient"),Z0;var r=!1,n=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&Q0.debug("support sendBeacon API"),new Dr(e,je,{dispatchUrl:"https://event.hackle.io/api/v2/w/events",beaconDispatchUrl:"".concat("https://event.hackle.io/api/v2/w/").concat(e).concat("/events"),useBeacon:r,headers:((n={})[ye]=t.SDK_NAME_HEADER,n["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,n)})),o=-1,o=(void 0!==t.pollingIntervalMillis&&"number"==typeof t.pollingIntervalMillis&&0<t.pollingIntervalMillis&&(o=Math.max(t.pollingIntervalMillis,3e4)),new Fr(e,je,{fetchUrl:"".concat("https://client-sdk.hackle.io/api/v2/w/").concat(e).concat("/w"),updateInterval:o,headers:((o={})[ye]=t.SDK_NAME_HEADER,o["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,o)})),i=-1,s=(void 0!==t.exposureEventDedupIntervalMillis&&"number"==typeof t.exposureEventDedupIntervalMillis&&-1!==t.exposureEventDedupIntervalMillis&&(i=t.exposureEventDedupIntervalMillis<1e3||36e5<t.exposureEventDedupIntervalMillis?(Q0.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):t.exposureEventDedupIntervalMillis),new Y0(window.localStorage,"".concat("hackle-repository-storage","_").concat(e),100)),a=new X0(J0.postfix(Kr,"_".concat(e)),tn()),u=new W0(t.sessionTimeoutMillis,J0.postfix(Kr,"_".concat(e.slice(8))));a.addListener(u);function c(){p.drainRepository()}var l,f,p=new lg(n,100,500,s),n=new dg(i),s=new pg(p,n,u,a),i=new vg(o,s,new wg(new Kg),new mg),n=new Gr(a),d=new mr(i,n,u,a),o=new fg(n,i),o=(u.addListener(o),Z0=d,t.auto_track_page_view&&(f=function(){return l.trackPageView({user:{id:tn()}})},(l=d).onReady(function(){function t(e){if("function"==typeof window.Event)return new Event(e);var t=!1,r=!1,n=void 0,o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t,r,n),o}f();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)Q0.error(e);else try{Q0.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)Q0.error(e);else try{Q0.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(t("locationchange"))}catch(e){if(e instanceof Error)Q0.error(e);else try{Q0.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{f()}catch(e){if(e instanceof Error)Q0.error(e);else try{Q0.error(e)}catch(e){}}})}catch(t){if(t instanceof Error)Q0.error(t);else try{Q0.error(t)}catch(t){}}var r,n})),(new Bg).install(i,n),new fr("https://monitoring.hackle.io",6e4,je,((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||c()}),window.addEventListener("pageshow",c),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){nn(),u.updateLastEventTime((new Date).getTime()),d.close(),lr.globalRegistry.close()}),lr.addRegistry(o),d.onReady(function(){u.startNewSessionIfNeeded(a.currentUser,(new Date).getTime())}),d}var i={createInstance:iw,getUserId:tn,setUserId:rn,removeUserId:nn,Logger:de},sw=(l.Bucket=t.Bucket=Re,l.Container=t.Container=Qe,l.ContainerGroup=t.ContainerGroup=Ue,l.CoreVersion=t.CoreVersion=ht,l.Decision=t.Decision=Ge,l.DecisionReason=t.DecisionReason=u,l.EmptyHackleRemoteConfig=t.EmptyHackleRemoteConfig=ie,l.EmptyParameterConfig=t.EmptyParameterConfig=$e,l.EventType=t.EventType=Ie,l.Experiment=t.Experiment=Ye,l.FeatureFlagDecision=t.FeatureFlagDecision=qe,l.IdentifierType=t.IdentifierType=We,l.IdentifiersBuilder=t.IdentifiersBuilder=Je,l.Logger=t.Logger=de,l.MATCH_OPERATORS=t.MATCH_OPERATORS=gt,l.MATCH_TYPES=t.MATCH_TYPES=vt,l.MATCH_VALUE_TYPES=t.MATCH_VALUE_TYPES=mt,l.MetaVersion=t.MetaVersion=yt,l.ParameterConfiguration=t.ParameterConfiguration=Ze,l.RemoteConfigDecision=t.RemoteConfigDecision=Be,l.RemoteConfigParameter=t.RemoteConfigParameter=Me,l.RemoteConfigParameterValue=t.RemoteConfigParameterValue=Le,l.RemoteConfigTargetRule=t.RemoteConfigTargetRule=De,l.SEGMENT_TYPES=t.SEGMENT_TYPES=bt,l.Segment=t.Segment=Pe,l.Slot=t.Slot=Xe,l.TARGET_ACTION_TYPES=t.TARGET_ACTION_TYPES=wt,l.TARGET_KEY_TYPES=t.TARGET_KEY_TYPES=Et,l.Target=t.Target=Se,l.TargetAction=t.TargetAction=ke,l.TargetCondition=t.TargetCondition=Ce,l.TargetKey=t.TargetKey=Ne,l.TargetMatch=t.TargetMatch=Ae,l.TargetRule=t.TargetRule=xe,l.TargetingType=t.TargetingType=Tt,l.Variation=t.Variation=_e,l.Version=t.Version=dt,se=t.createInstance=iw,t.default=i,l.getUserId=t.getUserId=tn,l.removeUserId=t.removeUserId=nn,l.sanitizeUser=t.sanitizeUser=Oe,l.setUserId=t.setUserId=rn,function(e,t){return(sw=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 aw=function(){return(aw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function uw(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}cw.prototype.on=function(e,t){this.listeners[e]=(this.listeners[e]||[]).concat(t)},cw.prototype.off=function(e,t){this.listeners[e]=(this.listeners[e]||[]).filter(function(e){return e!==t})},cw.prototype.emit=function(e,t){(this.listeners[e]||[]).forEach(function(e){e(t)})};lu=cw;function cw(){this.listeners={}}fw.arePropertiesEqual=function(e,t){var r=fw.coerceUnknownToProperties(e),n=fw.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]})},fw.coerceUnknownToProperties=function(e){return"object"==typeof e&&null!==e?e:{}};var lw=fw;function fw(){}dw.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)&&lw.arePropertiesEqual(null==e?void 0:e.properties,null==t?void 0:t.properties)&&lw.arePropertiesEqual(null==e?void 0:e.identifiers,null==t?void 0:t.identifiers)};var pw=dw;function dw(){}var hw=function(n){var e=o,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 o(e,t){var r=n.call(this)||this;return r._currentUser=null,r.client=se(e,aw(aw({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.12.1"})),r}return sw(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r),o.prototype.getUser=function(){return this.client.getUser()},o.prototype.setUser=function(e){this.client.setUser(e),this.emitUpdatedUser(this.getUser())},o.prototype.setUserId=function(e){this.client.setUserId(e),this.emitUpdatedUser(this.getUser())},o.prototype.setDeviceId=function(e){this.client.setDeviceId(e),this.emitUpdatedUser(this.getUser())},o.prototype.setUserProperty=function(e,t){this.client.setUserProperty(e,t),this.emitUpdatedUser(this.getUser())},o.prototype.resetUser=function(){this.client.resetUser(),this.emitUpdatedUser(this.getUser())},o.prototype.variation=function(e,t,r){return this.client.variation(e,t||void 0,r)},o.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t||void 0,r)},o.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t||void 0)},o.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t||void 0)},o.prototype.track=function(e,t){this.client.track(e,t||void 0)},o.prototype.trackPageView=function(e){this.client.trackPageView(aw(aw({},e),{user:(null==e?void 0:e.user)||void 0}))},o.prototype.remoteConfig=function(e){return this.client.remoteConfig(e||void 0)},o.prototype.onReady=function(e,t){this.client.onReady(e,t)},o.prototype.onInitialized=function(e){return this.client.onInitialized(e)},o.prototype.emitUpdatedUser=function(e){pw.isUserEqual(this._currentUser,e)||this.emit("user-updated",e),this._currentUser=e},o}(lu);var U={exports:{}},b={},yw=Object.getOwnPropertySymbols,vw=Object.prototype.hasOwnProperty,mw=Object.prototype.propertyIsEnumerable;var Rn=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),o=1;o<arguments.length;o++){for(var i in r=Object(arguments[o]))vw.call(r,i)&&(n[i]=r[i]);if(yw)for(var s=yw(r),a=0;a<s.length;a++)mw.call(r,s[a])&&(n[s[a]]=r[s[a]])}return n},gw=Rn,P="function"==typeof Symbol&&Symbol.for,ww=P?Symbol.for("react.element"):60103,Ew=P?Symbol.for("react.portal"):60106,Ri=P?Symbol.for("react.fragment"):60107,bw=P?Symbol.for("react.strict_mode"):60108,d=P?Symbol.for("react.profiler"):60114,Tw=P?Symbol.for("react.provider"):60109,_w=P?Symbol.for("react.context"):60110,Rw=P?Symbol.for("react.forward_ref"):60112,Ru=P?Symbol.for("react.suspense"):60113,Iw=P?Symbol.for("react.memo"):60115,Ow=P?Symbol.for("react.lazy"):60116,Sw="function"==typeof Symbol&&Symbol.iterator;function Cw(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 Nw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Aw={};function kw(e,t,r){this.props=e,this.context=t,this.refs=Aw,this.updater=r||Nw}function xw(){}function Pw(e,t,r){this.props=e,this.context=t,this.refs=Aw,this.updater=r||Nw}kw.prototype.isReactComponent={},kw.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(Cw(85));this.updater.enqueueSetState(this,e,t,"setState")},kw.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},xw.prototype=kw.prototype;var x=Pw.prototype=new xw,Uw=(x.constructor=Pw,gw(x,kw.prototype),x.isPureReactComponent=!0,{current:null}),Mw=Object.prototype.hasOwnProperty,Dw={key:!0,ref:!0,__self:!0,__source:!0};function Lw(e,t,r){var n,o={},i=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)Mw.call(t,n)&&!Dw.hasOwnProperty(n)&&(o[n]=t[n]);var a=arguments.length-2;if(1===a)o.children=r;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(n in a=e.defaultProps)void 0===o[n]&&(o[n]=a[n]);return{$$typeof:ww,type:e,key:i,ref:s,props:o,_owner:Uw.current}}function jw(e){return"object"==typeof e&&null!==e&&e.$$typeof===ww}var Fw=/\/+/g,Vw=[];function Hw(e,t,r,n){var o;return Vw.length?((o=Vw.pop()).result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o):{result:e,keyPrefix:t,func:r,context:n,count:0}}function zw(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,Vw.length<10&&Vw.push(e)}function Kw(e,t,r){return null==e?0:function e(t,r,n,o){var i=!1;if(null===(t="undefined"!=(a=typeof t)&&"boolean"!==a?t:null))i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case ww:case Ew:i=!0}}if(i)return n(o,t,""===r?"."+Bw(t,0):r),1;if(i=0,r=""===r?".":r+":",Array.isArray(t))for(var s=0;s<t.length;s++){var a,u=r+Bw(a=t[s],s);i+=e(a,u,n,o)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=Sw&&t[Sw]||t["@@iterator"])?u:null))for(t=u.call(t),s=0;!(a=t.next()).done;)i+=e(a=a.value,u=r+Bw(a,s++),n,o);else if("object"===a)throw n=""+t,Error(Cw(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return i}(e,"",t,r)}function Bw(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 Gw(e,t){e.func.call(e.context,t,e.count++)}function qw(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?$w(e,n,r,function(e){return e}):null!=e&&(jw(e)&&(t=o+(!(o=e).key||t&&t.key===e.key?"":(""+e.key).replace(Fw,"$&/")+"/")+r,e={$$typeof:ww,type:o.type,key:t,ref:o.ref,props:o.props,_owner:o._owner}),n.push(e))}function $w(e,t,r,n,o){var i="";Kw(e,qw,t=Hw(t,i=null!=r?(""+r).replace(Fw,"$&/")+"/":i,n,o)),zw(t)}var Yw={current:null};function Xw(){var e=Yw.current;if(null===e)throw Error(Cw(321));return e}var Ww,Jw,Qw,Vn={ReactCurrentDispatcher:Yw,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Uw,IsSomeRendererActing:{current:!1},assign:gw},_=(b.Children={map:function(e,t,r){if(null==e)return e;var n=[];return $w(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;Kw(e,Gw,t=Hw(null,null,t,r)),zw(t)},count:function(e){return Kw(e,function(){return null},null)},toArray:function(e){var t=[];return $w(e,t,null,function(e){return e}),t},only:function(e){if(jw(e))return e;throw Error(Cw(143))}},b.Component=kw,b.Fragment=Ri,b.Profiler=d,b.PureComponent=Pw,b.StrictMode=bw,b.Suspense=Ru,b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vn,b.cloneElement=function(e,t,r){if(null==e)throw Error(Cw(267,e));var n=gw({},e.props),o=e.key,i=e.ref,s=e._owner;if(null!=t)for(a in void 0!==t.ref&&(i=t.ref,s=Uw.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)Mw.call(t,a)&&!Dw.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:ww,type:e.type,key:o,ref:i,props:n,_owner:s}},b.createContext=function(e,t){return(e={$$typeof:_w,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:Tw,_context:e},e.Consumer=e},b.createElement=Lw,b.createFactory=function(e){var t=Lw.bind(null,e);return t.type=e,t},b.createRef=function(){return{current:null}},b.forwardRef=function(e){return{$$typeof:Rw,render:e}},b.isValidElement=jw,b.lazy=function(e){return{$$typeof:Ow,_ctor:e,_status:-1,_result:null}},b.memo=function(e,t){return{$$typeof:Iw,type:e,compare:void 0===t?null:t}},b.useCallback=function(e,t){return Xw().useCallback(e,t)},b.useContext=function(e,t){return Xw().useContext(e,t)},b.useDebugValue=function(){},b.useEffect=function(e,t){return Xw().useEffect(e,t)},b.useImperativeHandle=function(e,t,r){return Xw().useImperativeHandle(e,t,r)},b.useLayoutEffect=function(e,t){return Xw().useLayoutEffect(e,t)},b.useMemo=function(e,t){return Xw().useMemo(e,t)},b.useReducer=function(e,t,r){return Xw().useReducer(e,t,r)},b.useRef=function(e){return Xw().useRef(e)},b.useState=function(e){return Xw().useState(e)},b.version="16.14.0",{}),yo=Function.call.bind(Object.prototype.hasOwnProperty),Zw=function(){};function eE(e,t,r,n,o){if("production"!==production)for(var i in e)if(Qw(e,i)){var s,a;try{if("function"!=typeof e[i])throw(a=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.")).name="Invariant Violation",a;s=e[i](t,i,n,r,null,Ww)}catch(e){s=e}!s||s instanceof Error||Zw((n||"React class")+": type specification of "+r+" `"+i+"` 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 Jw)&&(Jw[s.message]=!0,i=o?o():"",Zw("Failed "+r+" type: "+s.message+(null!=i?i:"")))}}if("production"!==production&&(Ww="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Jw={},Qw=yo,Zw=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),eE.resetWarningCache=function(){"production"!==production&&(Jw={})},"production"!==production){var tE=Rn,rE=eE,S="function"==typeof Symbol&&Symbol.for,nE=S?Symbol.for("react.element"):60103,oE=S?Symbol.for("react.portal"):60106,iE=S?Symbol.for("react.fragment"):60107,sE=S?Symbol.for("react.strict_mode"):60108,aE=S?Symbol.for("react.profiler"):60114,uE=S?Symbol.for("react.provider"):60109,cE=S?Symbol.for("react.context"):60110,lE=S?Symbol.for("react.concurrent_mode"):60111,fE=S?Symbol.for("react.forward_ref"):60112,pE=S?Symbol.for("react.suspense"):60113,dE=S?Symbol.for("react.suspense_list"):60120,hE=S?Symbol.for("react.memo"):60115,yE=S?Symbol.for("react.lazy"):60116,vE=S?Symbol.for("react.block"):60121,mE=S?Symbol.for("react.fundamental"):60117,gE=S?Symbol.for("react.responder"):60118,wE=S?Symbol.for("react.scope"):60119,EE="function"==typeof Symbol&&Symbol.iterator,bE="@@iterator";function TE(e){if(null===e||"object"!=typeof e)return null;e=EE&&e[EE]||e[bE];return"function"==typeof e?e:null}var _E={current:null},RE={current:null},IE=/^(.*)[\\\/]/,OE=1;function SE(e){if(null==e)return null;if("number"==typeof e.tag&&M("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 iE:return"Fragment";case oE:return"Portal";case aE:return"Profiler";case sE:return"StrictMode";case pE:return"Suspense";case dE:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case cE:return"Context.Consumer";case uE:return"Context.Provider";case fE:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case hE:return SE(e.type);case vE:return SE(e.render);case yE:r=(t=e)._status===OE?t._result:null;if(r)return SE(r)}var t,r;return null}var CE={},NE=null;function AE(e){NE=e}CE.getCurrentStack=null,CE.getStackAddendum=function(){var e,t,r,n,o,i="",s=(NE&&(e=SE(NE.type),r=NE._owner,i+=(e=e,t=NE._source,r=r&&SE(r.type),o="",t?(n=(s=t.fileName).replace(IE,""),o=" (at "+(n=/^index\./.test(n)&&(s=s.match(IE))&&(s=s[1])?s.replace(IE,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(o=" (created by "+r+")"),"\n in "+(e||"Unknown")+o)),CE.getCurrentStack);return s&&(i+=s()||""),i};var kE={ReactCurrentDispatcher:_E,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:RE,IsSomeRendererActing:{current:!1},assign:tE};function xE(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];PE("warn",e,r)}function M(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];PE("error",e,r)}function PE(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=kE.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 o=0,i="Warning: "+t.replace(/%s/g,function(){return r[o++]});throw new Error(i)}catch(e){}}tE(kE,{ReactDebugCurrentFrame:CE,ReactComponentTreeHook:{}});var UE={};function ME(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;UE[r]||(M("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),UE[r]=!0)}var DE={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){ME(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){ME(e,"replaceState")},enqueueSetState:function(e,t,r,n){ME(e,"setState")}},LE={};function jE(e,t,r){this.props=e,this.context=t,this.refs=LE,this.updater=r||DE}Object.freeze(LE),jE.prototype.isReactComponent={},jE.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")},jE.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var FE,VE={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(FE in VE)VE.hasOwnProperty(FE)&&!function(e,t){Object.defineProperty(jE.prototype,e,{get:function(){xE("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(FE,VE[FE]);function HE(){}function zE(e,t,r){this.props=e,this.context=t,this.refs=LE,this.updater=r||DE}HE.prototype=jE.prototype,(S=zE.prototype=new HE).constructor=zE,tE(S,jE.prototype),S.isPureReactComponent=!0;var KE,BE,GE=Object.prototype.hasOwnProperty,qE={key:!0,ref:!0,__self:!0,__source:!0};function $E(e){if(GE.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function YE(e){if(GE.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var XE={},WE=function(e,t,r,n,o,i,s){e={$$typeof:nE,type:e,key:t,ref:r,props:s,_owner:i,_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:o}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e};function JE(e,t,r){var n,o={},i=null,s=null,a=null,u=null;if(null!=t)for(n in $E(t)&&(s=t.ref,"string"==typeof(c=t).ref&&RE.current&&c.__self&&RE.current.stateNode!==c.__self&&(f=SE(RE.current.type),XE[f]||(M('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',SE(RE.current.type),c.ref),XE[f]=!0))),YE(t)&&(i=""+t.key),a=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)GE.call(t,n)&&!qE.hasOwnProperty(n)&&(o[n]=t[n]);var c,l,f,p,d=arguments.length-2;if(1==d)o.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),o.children=h}if(e&&e.defaultProps){var v=e.defaultProps;for(n in v)void 0===o[n]&&(o[n]=v[n])}function m(){BE||(BE=!0,M("%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(){KE||(KE=!0,M("%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(i||s)&&(c="function"==typeof e?e.displayName||e.name||"Unknown":e,i&&(f=o,p=c,g.isReactWarning=!0,Object.defineProperty(f,"key",{get:g,configurable:!0})),s&&(r=o,l=c,m.isReactWarning=!0,Object.defineProperty(r,"ref",{get:m,configurable:!0}))),WE(e,i,s,a,u,RE.current,o)}function QE(e){return"object"==typeof e&&null!==e&&e.$$typeof===nE}var ZE=".",e1=":",t1=!1,r1=/\/+/g;function n1(e){return(""+e).replace(r1,"$&/")}var o1=10,i1=[];function s1(e,t,r,n){var o;return i1.length?((o=i1.pop()).result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o):{result:e,keyPrefix:t,func:r,context:n,count:0}}function a1(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,i1.length<o1&&i1.push(e)}function u1(e,t,r){return null==e?0:function e(t,r,n,o){var i,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 nE:case oE:a=!0}}if(a)return n(o,t,""===r?ZE+c1(t,0):r),1;var u=0,c=""===r?ZE:r+e1;if(Array.isArray(t))for(var l=0;l<t.length;l++)u+=e(i=t[l],c+c1(i,l),n,o);else if("function"==typeof(r=TE(t))){r===t.entries&&(t1||xE("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."),t1=!0);for(var f,p=r.call(t),d=0;!(f=p.next()).done;)u+=e(i=f.value,c+c1(i,d++),n,o)}else if("object"==s)throw r="",r=" If you meant to render a collection of children, use an array instead."+CE.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 c1(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 l1(e,t,r){var n=e.func,o=e.context;n.call(o,t,e.count++)}function f1(e,t,r){var n=e.result,o=e.keyPrefix,i=e.func,s=e.context,i=i.call(s,t,e.count++);Array.isArray(i)?p1(i,n,r,function(e){return e}):null!=i&&(QE(i)&&(e=o+(!(s=i).key||t&&t.key===i.key?"":n1(i.key)+"/")+r,i=WE(s.type,e,s.ref,s._self,s._source,s._owner,s.props)),n.push(i))}function p1(e,t,r,n,o){var i="",t=s1(t,i=null!=r?n1(r)+"/":i,n,o);u1(e,f1,t),a1(t)}function d1(e){return"string"==typeof e||"function"==typeof e||e===iE||e===lE||e===aE||e===sE||e===pE||e===dE||"object"==typeof e&&null!==e&&(e.$$typeof===yE||e.$$typeof===hE||e.$$typeof===uE||e.$$typeof===cE||e.$$typeof===fE||e.$$typeof===mE||e.$$typeof===gE||e.$$typeof===wE||e.$$typeof===vE)}function h1(){var e=_E.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 y1(){if(RE.current){var e=SE(RE.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var v1=!1,m1={};function g1(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=y1())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),m1[t=r]||(m1[t]=!0,r="",e&&e._owner&&e._owner!==RE.current&&(r=" It was passed a child from "+SE(e._owner.type)+"."),AE(e),M('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),AE(null)))}function w1(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];QE(n)&&g1(n,t)}else if(QE(e))e._store&&(e._store.validated=!0);else if(e){var o=TE(e);if("function"==typeof o&&o!==e.entries)for(var i,s=o.call(e);!(i=s.next()).done;)QE(i.value)&&g1(i.value,t)}}function E1(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=SE(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==fE&&t.$$typeof!==hE)return;r=t.propTypes}r?(AE(e),rE(r,e.props,"prop",n,CE.getStackAddendum),AE(null)):void 0===t.PropTypes||v1||(v1=!0,M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function b1(e,t,r){var n,o=d1(e),t=(o||(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+".":"")||y1(),null===e?s="null":Array.isArray(e)?s="array":void 0!==e&&e.$$typeof===nE?(s="<"+(SE(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,M("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)),JE.apply(this,arguments));if(null==t)return t;if(o)for(var i=2;i<arguments.length;i++)w1(arguments[i],e);if(e===iE){var s=t;AE(s);for(var a=Object.keys(s.props),u=0;u<a.length;u++){var c=a[u];if("children"!==c&&"key"!==c){M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c);break}}null!==s.ref&&M("Invalid attribute `ref` supplied to `React.Fragment`."),AE(null)}else E1(t);return t}var T1=!1;try{var _1=Object.freeze({}),R1=new Map([[_1,null]]),I1=new Set([_1]);R1.set(0,0),I1.add(0)}catch(e){}function O1(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,o,i=tE({},e.props),s=e.key,a=e.ref,u=e._self,c=e._source,l=e._owner;if(null!=t)for(n in $E(t)&&(a=t.ref,l=RE.current),YE(t)&&(s=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)GE.call(t,n)&&!qE.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==o?i[n]=o[n]:i[n]=t[n]);var f=arguments.length-2;if(1==f)i.children=r;else if(1<f){for(var p=Array(f),d=0;d<f;d++)p[d]=arguments[d+2];i.children=p}return WE(e.type,s,a,u,c,l,i)}.apply(this,arguments),o=2;o<arguments.length;o++)w1(arguments[o],n.type);return E1(n),n}function S1(e){var t=b1.bind(null,e);return t.type=e,T1||(T1=!0,xE("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 xE("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}S=b1,_.Children={map:function(e,t,r){if(null==e)return e;var n=[];return p1(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=s1(null,null,t,r),u1(e,l1,t),a1(t)},count:function(e){return u1(e,function(){return null},null)},toArray:function(e){var t=[];return p1(e,t,null,function(e){return e}),t},only:function(e){if(QE(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},_.Component=jE,_.Fragment=iE,_.Profiler=aE,_.PureComponent=zE,_.StrictMode=sE,_.Suspense=pE,_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kE,_.cloneElement=O1,_.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&M("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:cE,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:uE,_context:r}),o=!1,t={$$typeof:cE,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return o||(o=!0,M("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,M("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},_.createElement=S,_.createFactory=S1,_.createRef=function(){var e={current:null};return Object.seal(e),e},_.forwardRef=function(e){return null!=e&&e.$$typeof===hE?M("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?M("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&M("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||M("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:fE,render:e}},_.isValidElement=QE,_.lazy=function(e){var t,r,n={$$typeof:yE,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){M("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){M("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},_.memo=function(e,t){return d1(e)||M("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:hE,type:e,compare:void 0===t?null:t}},_.useCallback=function(e,t){return h1().useCallback(e,t)},_.useContext=function(e,t){var r,n=h1();return void 0!==t&&M("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?M("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&&M("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},_.useDebugValue=function(e,t){return h1().useDebugValue(e,t)},_.useEffect=function(e,t){return h1().useEffect(e,t)},_.useImperativeHandle=function(e,t,r){return h1().useImperativeHandle(e,t,r)},_.useLayoutEffect=function(e,t){return h1().useLayoutEffect(e,t)},_.useMemo=function(e,t){return h1().useMemo(e,t)},_.useReducer=function(e,t,r){return h1().useReducer(e,t,r)},_.useRef=function(e){return h1().useRef(e)},_.useState=function(e){return h1().useState(e)},_.version="16.14.0"}"production"===production?U.exports=b:U.exports=_;var C1=U.exports,N1=U.exports.createContext({hackle:void 0,userVersion:0,initialized:!1}),r=N1.Consumer,A1=N1.Provider;var k1=l.Logger.log;function x1(e,t){e=P1(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function P1(e,t){void 0===t&&(t="A");var r=U.exports.useContext(N1),n=r.hackle,o=r.userVersion,i=r.initialized,s=U.exports.useCallback(function(){return i?(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,i]),r=uw(U.exports.useState(function(){return n?s():(k1.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2),a=r[0],r=r[1],o={key:e,userVersion:o,initialized:i},u=uw(U.exports.useState(o),2),c=u[0],u=u[1];return D1(c,o)||(u(o),r(s())),{isLoading:!i,decision:a}}function U1(e){e=M1(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function M1(e){var t=U.exports.useContext(N1),r=t.hackle,n=t.userVersion,o=t.initialized,i=U.exports.useCallback(function(){return o?(null==r?void 0:r.featureFlagDetail(e))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION):l.FeatureFlagDecision.off(l.DecisionReason.SDK_NOT_READY)},[e,r,o]),t=uw(U.exports.useState(function(){return r?i():(k1.error("HackleClient is not existed"),l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION))}),2),s=t[0],t=t[1],n={key:e,userVersion:n,initialized:o},a=uw(U.exports.useState(n),2),u=a[0],a=a[1];return D1(u,n)||(a(n),t(i())),{isLoading:!o,decision:s}}function D1(e,t){return e.initialized===t.initialized&&e.key===t.key&&e.userVersion===t.userVersion}function L1(e){var t,r=e.experimentKey,e=e.children,n=(r=x1(r)).isLoading,o=r.variation;return n?null:e&&"function"==typeof e?e(o):(U.exports.Children.forEach(e,function(e){U.exports.isValidElement(e)&&(e.props.variation?o===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?U.exports.cloneElement(t,{variation:o}):null)}function j1(e){return e.variation,e=e.children,U.exports.createElement(U.exports.Fragment,null,e)}function F1(e){var t=(r=U1(e.featureKey)).isLoading,r=r.isOn;return t?null:C1.createElement(C1.Fragment,null,e.children(r))}l.HackleContext=N1,l.HackleContextConsumer=r,l.HackleContextProvider=A1,l.HackleExperiment=L1,l.HackleFeature=F1,l.HackleProvider=function(e){var t=e.hackleClient,r=e.user,n=void 0===(o=e.timeout)?3e3:o,o=void 0!==(o=e.supportSSR)&&o,e=e.children,i=uw(U.exports.useState({hackle:t,initialized:!1,userVersion:0}),2),s=i[0],a=i[1];return U.exports.useEffect(function(){null!=r&&t.setUser(r)},[r]),U.exports.useEffect(function(){function e(){a(function(e){return aw(aw({},e),{userVersion:e.userVersion+1})})}return t.on("user-updated",e),function(){t.off("user-updated",e)}},[t]),U.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){a(function(e){return aw(aw({},e),{initialized:!0})})},function(){a(function(e){return aw(aw({},e),{initialized:!0})})}).catch(function(){a(function(e){return aw(aw({},e),{initialized:!0})})})},[t]),o||s.initialized?C1.createElement(A1,{value:s},e):null},l.HackleVariation=j1,l.createInstance=function(e,t){return new hw(e,t)},l.useFeature=function(e){var t=(n=U.exports.useContext(N1)).hackle,r=n.userVersion,n=n.initialized,o=U.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e))||!1},[e,t,n]),i=(s=uw(U.exports.useState(function(){return t?o():("undefined"!=typeof window&&k1.error("HackleClient is not existed"),!1)}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=uw(U.exports.useState(r),2))[0],n=n[1];return D1(a,r)||(n(r),s(o())),i},l.useFeatureFlagDetail=function(e){var t=(n=U.exports.useContext(N1)).hackle,r=n.userVersion,n=n.initialized,o=U.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION)},[e,t,n]),i=(s=uw(U.exports.useState(function(){return t?o():("undefined"!=typeof window&&k1.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=uw(U.exports.useState(r),2))[0],n=n[1];return D1(a,r)||(n(r),s(o())),i},l.useLoadableFeature=U1,l.useLoadableFeatureDetail=M1,l.useLoadableRemoteConfig=function(){var e=(i=U.exports.useContext(N1)).hackle,t=i.userVersion,r=i.initialized,n=U.exports.useCallback(function(){return r&&(null==e?void 0:e.remoteConfig())||new l.EmptyHackleRemoteConfig},[e,r]),o=(i=uw(U.exports.useState(function(){return e||k1.error("HackleClient is not existed"),n()}),2))[0],i=i[1],t={userVersion:t,initialized:r},s=(a=uw(U.exports.useState(t),2))[0],a=a[1];return D1(s,t)||(a(t),i(n())),{isLoading:!r,remoteConfig:o}},l.useLoadableVariation=x1,l.useLoadableVariationDetail=P1,l.useRemoteConfig=function(){var e=(r=U.exports.useContext(N1)).hackle,t=r.userVersion,r=r.initialized,n=U.exports.useCallback(function(){return(null==e?void 0:e.remoteConfig())||new l.EmptyHackleRemoteConfig},[e,r]),o=(i=uw(U.exports.useState(function(){return e||k1.error("HackleClient is not existed"),n()}),2))[0],i=i[1],t={userVersion:t,initialized:r},s=(r=uw(U.exports.useState(t),2))[0],r=r[1];return D1(s,t)||(r(t),i(n())),o},l.useTrack=function(){var t=U.exports.useContext(N1).hackle;return t?function(e){return null==t?void 0:t.track(e)}:(k1.error("HackleClient is not existed"),function(){})},l.useVariation=function(e,t){void 0===t&&(t="A");var r=(a=U.exports.useContext(N1)).hackle,n=a.userVersion,o=a.initialized,i=U.exports.useCallback(function(){return o&&(null==r?void 0:r.variation(e))||t},[t,e,r,o]),s=(a=uw(U.exports.useState(function(){return r?i():("undefined"!=typeof window&&k1.error("HackleClient is not existed"),t)}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:o},u=(c=uw(U.exports.useState(n),2))[0],c=c[1];return D1(u,n)||(c(n),a(i())),s},l.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(o=U.exports.useContext(N1)).hackle,n=o.userVersion,o=o.initialized,i=U.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e))||l.Decision.of(t,l.DecisionReason.EXCEPTION)},[t,e,r,o]),s=(a=uw(U.exports.useState(function(){return r?i():("undefined"!=typeof window&&k1.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:o},u=(o=uw(U.exports.useState(n),2))[0],o=o[1];return D1(u,n)||(o(n),a(i())),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.
|
|
3
|
+
"version": "11.12.1",
|
|
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.
|
|
42
|
+
"@hackler/javascript-sdk": "11.12.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.8.0"
|