@hackler/react-sdk 11.8.0 → 11.9.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 CHANGED
@@ -1,3 +1,3 @@
1
1
  export declare const SDK_NAME_HEADER = "react-sdk";
2
- export declare const SDK_VERSION_HEADER = "11.8.0";
2
+ export declare const SDK_VERSION_HEADER = "11.9.1";
3
3
  //# sourceMappingURL=config.d.ts.map
package/lib/index.es.js CHANGED
@@ -48,7 +48,7 @@ function __read(o, n) {
48
48
  }
49
49
 
50
50
  var SDK_NAME_HEADER = "react-sdk";
51
- var SDK_VERSION_HEADER = "11.8.0";
51
+ var SDK_VERSION_HEADER = "11.9.1";
52
52
 
53
53
  var HackleReactSDKClient = /** @class */ (function () {
54
54
  function HackleReactSDKClient(sdkKey, config) {
package/lib/index.js CHANGED
@@ -73,7 +73,7 @@ function __read(o, n) {
73
73
  }
74
74
 
75
75
  var SDK_NAME_HEADER = "react-sdk";
76
- var SDK_VERSION_HEADER = "11.8.0";
76
+ var SDK_VERSION_HEADER = "11.9.1";
77
77
 
78
78
  var HackleReactSDKClient = /** @class */ (function () {
79
79
  function HackleReactSDKClient(sdkKey, config) {
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(f){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function U(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 Z(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function Q(e,t,r,n,o,i){return Z((t=Z(Z(t,e),Z(n,i)))<<o|t>>>32-o,r)}function ee(e,t,r,n,o,i,s){return Q(t&r|~t&n,e,t,o,i,s)}function te(e,t,r,n,o,i,s){return Q(t&n|r&~n,e,t,o,i,s)}function re(e,t,r,n,o,i,s){return Q(t^r^n,e,t,o,i,s)}function ne(e,t,r,n,o,i,s){return Q(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=Z(r,a),n=Z(n,u),o=Z(o,c),i=Z(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=U(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=(f.setUserId=void 0,f.removeUserId=void 0,f.getUserId=void 0,f.Version=void 0,f.Variation=void 0,f.TargetingType=void 0,f.TargetRule=void 0,f.TargetMatch=void 0,f.TargetKey=void 0,f.TargetCondition=void 0,f.TargetAction=void 0,f.Target=void 0,f.TARGET_KEY_TYPES=void 0,f.TARGET_ACTION_TYPES=void 0,f.Slot=void 0,f.Segment=void 0,f.SEGMENT_TYPES=void 0,f.RemoteConfigTargetRule=void 0,f.RemoteConfigParameterValue=void 0,f.RemoteConfigParameter=void 0,f.RemoteConfigDecision=void 0,f.ParameterConfiguration=void 0,f.MetaVersion=void 0,f.MATCH_VALUE_TYPES=void 0,f.MATCH_TYPES=void 0,f.MATCH_OPERATORS=void 0,f.Logger=void 0,f.IdentifiersBuilder=void 0,f.IdentifierType=void 0,f.FeatureFlagDecision=void 0,f.Experiment=void 0,f.EventType=void 0,f.EmptyParameterConfig=void 0,f.EmptyHackleRemoteConfig=void 0,f.DecisionReason=void 0,f.Decision=void 0,f.CoreVersion=void 0,f.ContainerGroup=void 0,f.Container=void 0,f.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 le=function(){return(le=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 fe(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 pe(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)he.log(e,r,t.message,t);else try{he.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 de=ge,he=(me.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},me),ye=[0,8,16,32,64,128,256,512],ve=de.log;function me(){}function ge(){}function we(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}function Ee(e,t,r,n){this.id=e,this.key=t,this.isDropped=r,this.parameterConfigurationId=n}function be(e,t,r){this.seed=e,this.slotSize=t,this.slots=r}function Te(e,t){this.id=e,this.key=t}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 Se(e,t,r,n){this.type=e,this.operator=t,this.valueType=r,this.values=n}function Ce(e,t,r){this.type=e,this.variationId=t,this.bucketId=r}function Ie(e,t){this.target=e,this.action=t}function Ne(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 De={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"),we(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"),we(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()):(ve.error("Does not support sendBeacon"),o())}},a=(nt.isNotNullOrUndefined=function(e){return null!=e},nt.isNullOrUndefined=function(e){return null==e},nt.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},nt),Me=de.log,Ue=(rt.of=function(e,t){return new rt(e,t)},rt),Le=(tt.of=function(e,t,r){return new tt(e,t,r=void 0===r?new Fe:r)},tt.prototype.get=function(e,t){return this.config.get(e,t)},tt),je=(et.on=function(e,t){return new et(!0,e,t=void 0===t?new Fe:t)},et.off=function(e,t){return new et(!1,e,t=void 0===t?new Fe:t)},et.prototype.get=function(e,t){return this.config.get(e,t)},et),ie=(Qe.prototype.get=function(e,t){return t},Qe),Fe=(Ze.prototype.get=function(e,t){return t},Ze),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),Ve=(Je.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},Je.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},Je.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},Je),He=(We.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},We),Ke=(Ye.ID="$id",Ye.USER="$userId",Ye.DEVICE="$deviceId",Ye.SESSION="$sessionId",Ye),ze=(Xe.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},Xe.prototype.add=function(e,t){return t&&this._isValid(e,t)?this.identifiers[e]=t:Me.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},Xe.prototype._isValid=function(e,t){return!(!e||"string"!=typeof e||128<e.length||!t||"string"!=typeof t||512<t.length)},Xe.prototype.build=function(){return this.identifiers},Xe),Ge=($e.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},$e),Be=(qe.prototype.get=function(e,t){e=this.parameters.get(e);return!a.isNullOrUndefined(e)&&(a.isNullOrUndefined(t)||typeof e==typeof t)?e:t},qe);function qe(e,t){this.id=e,this.parameters=t}function $e(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function Xe(){this.identifiers={}}function Ye(){}function We(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function Je(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 Ze(){}function Qe(){}function et(e,t,r){this.isOn=e,this.reason=t,this.config=r}function tt(e,t,r){this.variation=e,this.reason=t,this.config=r}function rt(e,t){this.value=e,this.reason=t}function nt(){}Ut.tryParse=function(e){var t,r,n,o,e=Ut.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 Ut(new ut(parseInt(t,10),parseInt(r,10),parseInt(n,10)),ct.parse(o),ct.parse(e))},Ut.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},Ut.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},Ut.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},Ut.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},Ut.prototype.isLessThan=function(e){return this.compareTo(e)<0},Ut.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},Ut.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 ot,it,st,at=Ut,ut=(Mt.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},Mt),ct=(Dt.parse=function(e){return e?new Dt(e.split(".")):Dt.EMPTY},Dt.prototype.isEmpty=function(){return 0===this.identifiers.length},Dt.prototype.isNotEmpty=function(){return!this.isEmpty()},Dt.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},Dt.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=Dt.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},Dt.compareIdentifiers=function(e,t){return Dt.numericIdentifierRegExp.test(e)&&Dt.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},Dt.EMPTY=new Dt([]),Dt.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,Dt),lt=["MATCH","NOT_MATCH"],ft=["STRING","NUMBER","BOOLEAN","VERSION","JSON","NULL","UNKNOWN"],pt=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],dt=["VARIATION","BUCKET"],ht=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT"],yt=["USER_ID","USER_PROPERTY"],vt=(Pt.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},Pt.IDENTIFIER=new Pt("SEGMENT"),Pt.PROPERTY=new Pt("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY"),Pt.SEGMENT=new Pt("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),Pt),mt=de.log,gt=(xt.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}},xt.prototype._get=function(e,t,r){try{var n=this.hackleUserResolver.resolveOrNull(this.user);return a.isNullOrUndefined(n)?Ue.of(r,u.INVALID_INPUT):a.isNullOrUndefined(e)?(mt.error("parameterKey must not be empty"),Ue.of(r,u.INVALID_INPUT)):this.hackleInternalClient._remoteConfig(e,n,t,r)}catch(t){return mt.error("Unexpected exception while deciding remote config parameter[".concat(e,"]. Returning default value. : ").concat(t)),Ue.of(r,u.EXCEPTION)}},xt),wt=de.log,Et=(kt.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},kt.prototype.variationDetail=function(e,t,r){r=r||"A";try{var n=this.hackleUserResolver.resolveOrNull(t);return n?this.hackleInternalClient._experiment(e,n,r):Le.of(r,u.INVALID_INPUT)}catch(t){return wt.error("Unexpected exception while deciding variation for experiment[".concat(e,"]. Returning default variation[").concat(r,"] : ").concat(t)),Le.of(r,u.EXCEPTION)}},kt.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},kt.prototype.featureFlagDetail=function(e,t){try{var r=this.hackleUserResolver.resolveOrNull(t);return r?this.hackleInternalClient._featureFlag(e,r):je.off(u.INVALID_INPUT)}catch(t){return wt.error('"Unexpected exception while deciding feature flag['.concat(e,"]. Returning default value[false] : ").concat(t)),je.off(u.EXCEPTION)}},kt.prototype.track=function(e,t){wt.debug("track event : ".concat(JSON.stringify(e)));e=this._convertEvent(e),t=this.hackleUserResolver.resolveOrNull(t);t&&this.hackleInternalClient._track(e,t)},kt.prototype.trackPageView=function(e){wt.debug("tracking page view");e=this.hackleUserResolver.resolveOrNull(null==e?void 0:e.user);e&&this.hackleInternalClient._track({key:"$page_view"},e)},kt.prototype.remoteConfig=function(e){return new gt(this.hackleInternalClient,this.hackleUserResolver,e)},kt.prototype.onReady=function(e,t){this.hackleInternalClient._onReady(e,t=void 0===t?3e3:t)},kt.prototype.onInitialized=function(e){return this.hackleInternalClient._onInitialized({timeout:null==e?void 0:e.timeout})},kt.prototype.close=function(){wt.debug("Hackle Client is closing"),this.hackleInternalClient._close()},kt.prototype.getSessionId=function(){return this.sessionManager.sessionId},kt.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},kt),bt=(At.filteredProperties=function(r){var n=this;return Object.keys(r).filter(function(e){return n.validProperty(e,r[e])}).reduce(function(e,t){return le(le({},e),((e={})[t]=n.filteredPropertiesValue(t,r[t]),e))},{})},At.filteredPropertiesValue=function(e,t){return!e.startsWith(At.SYSTEM_PROPERTY_KEY_PREFIX)&&"string"==typeof t&&1024<t.length?t.slice(0,1024):t},At.validProperty=function(e,t){return!!e&&"string"==typeof e&&!(128<e.length)&&("string"==typeof t||"boolean"==typeof t||"number"==typeof t&&!isNaN(t)&&isFinite(t))},At.SYSTEM_PROPERTY_KEY_PREFIX="$",At),Tt=(Nt.exposure=function(e,t,r){return new _t((new Date).getTime(),t,e,r.variationId,r.variationKey,r.reason,this.exposureProperties(r))},Nt.exposureProperties=function(e){return a.isNotNullOrUndefined(e.config)?{$parameterConfigurationId:e.config.id}:{}},Nt.track=function(e,t,r){return new Rt((new Date).getTime(),r,e,t)},Nt.remoteConfig=function(e,t,r){return new Ot((new Date).getTime(),t,e,r)},Nt.isExposure=function(e){return void 0!==e.experiment},Nt.isTrack=function(e){return void 0!==e.eventType},Nt.isRemoteConfig=function(e){return void 0!==e.remoteConfigParameter},Nt.isExposureDto=function(e){return"experimentId"in e&&void 0!==e.experimentId},Nt.isTrackDto=function(e){return"eventTypeId"in e&&void 0!==e.eventTypeId},Nt.isRemoteConfigDto=function(e){return"parameterId"in e&&void 0!==e.parameterId},Nt.prototype.toDto=function(){return{insertId:this.insertId,timestamp:this.timestamp,userId:this.user.identifiers[Ke.ID],identifiers:this.user.identifiers,userProperties:bt.filteredProperties(this.user.properties),hackleProperties:bt.filteredProperties(this.user.hackleProperties)}},Nt),_t=(ce(It,st=Tt),It.prototype.copyWithUser=function(e){return new It(this.timestamp,e,this.experiment,this.variationId,this.variationKey,this.decisionReason,this.properties,this.insertId)},It.prototype.toDto=function(){return le(le({},st.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})},It),Rt=(ce(Ct,it=Tt),Ct.prototype.copyWithUser=function(e){return new Ct(this.timestamp,e,this.eventType,this.event,this.insertId)},Ct.prototype.toDto=function(){return le(le({},it.prototype.toDto.call(this)),{eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:bt.filteredProperties(this.event.properties||{})})},Ct),Ot=(ce(St,ot=Tt),St.prototype.copyWithUser=function(e){return new St(this.timestamp,e,this.remoteConfigParameter,this.evaluation,this.insertId)},St.prototype.toDto=function(){return le(le({},ot.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:bt.filteredProperties(this.evaluation.properties)})},St);function St(e,t,r,n,o){e=ot.call(this,e,t,o)||this;return e.remoteConfigParameter=r,e.evaluation=n,e}function Ct(e,t,r,n,o){e=it.call(this,e,t,o)||this;return e.eventType=r,e.event=n,e}function It(e,t,r,n,o,i,s,a){e=st.call(this,e,t,a)||this;return e.experiment=r,e.variationId=n,e.variationKey=o,e.decisionReason=i,e.properties=s,e}function Nt(e,t,r){void 0===r&&(r=ae.v4()),this.timestamp=e,this.user=t,this.insertId=r}function At(){}function kt(e,t,r){this.hackleInternalClient=e,this.hackleUserResolver=t,this.sessionManager=r}function xt(e,t,r){this.hackleInternalClient=e,this.hackleUserResolver=t,this.user=r}function Pt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function Dt(e){this.identifiers=e}function Mt(e,t,r){this.major=e,this.minor=t,this.patch=r}function Ut(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}function Lt(e){var t=new Array,r=new Array,n=new Array;return e.forEach(function(e){e instanceof Tt?Tt.isExposure(e)?t.push(e.toDto()):Tt.isTrack(e)?r.push(e.toDto()):Tt.isRemoteConfig(e)&&n.push(e.toDto()):Tt.isExposureDto(e)?t.push(e):Tt.isTrackDto(e)?r.push(e):Tt.isRemoteConfigDto(e)&&n.push(e)}),{exposureEvents:t,trackEvents:r,remoteConfigEvents:n}}tr.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(),Lt(e));this.httpRequest.postRequest(this.dispatchUrl,e,n,t,r)},tr.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=Lt(e),this.httpRequest.sendBeacon(this.beaconDispatchUrl,o,n,t,r)):this.dispatch(e,t,r)};var jt=tr,l=(er.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},er.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},er.associate=function(e,t){return this.associateTo(e,new Map,t)},er.associateBy=function(e,t){return this.associate(e,function(e){return[t(e),e]})},er),Ft=de.log,Vt=(y.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},y.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},y.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},y.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},y.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},y.prototype.getContainerOrNull=function(e){return this.containers.get(e)},y.prototype.getParameterConfigurationOrNull=function(e){return this.parameterConfigurations.get(e)},y.prototype.getRemoteConfigParameterOrNull=function(e){return this.remoteConfigParameters.get(e)},y.from=function(e){var t=this,r=l.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]});return new y(l.associateBy(l.mapNotNullOrUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),l.associateBy(l.mapNotNullOrUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),r,l.associate(e.events,function(e){return[e.key,new Te(e.id,e.key)]}),l.associateBy(l.mapNotNullOrUndefined(e.segments,function(e){return t.toSegmentOrNull(e)}),function(e){return e.key}),l.associate(e.containers,function(e){return[e.id,t.toContainer(e)]}),l.associate(e.parameterConfigurations,function(e){return[e.id,t.toParameterConfiguration(e)]}),l.associateBy(l.mapNotNullOrUndefined(e.remoteConfigParameters,function(e){return t.toRemoteConfigParameterOrNull(e)}),function(e){return e.key}))},y.toBucket=function(e){return new be(e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new He(t,r,e)}))},y.toExperimentOrNull=function(e,t){var r=this,n=this.experimentStatusOrNull(t.execution.status),o=t.variations.map(function(e){return new Ee(e.id,e.key,"DROPPED"===e.status,e.parameterConfigurationId)}),i=l.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),s=l.mapNotNullOrUndefined(t.execution.segmentOverrides,function(e){return r.toTargetRuleOrNull(e,vt.IDENTIFIER)}),a=l.mapNotNullOrUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e,vt.PROPERTY)}),u=l.mapNotNullOrUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e,vt.PROPERTY)}),c=this.toTargetActionOrNull(t.execution.defaultRule);return n&&c&&new Ve(t.id,t.key,e,t.identifierType,n,t.version,o,i,s,a,u,c,t.containerId,t.winnerVariationId)},y.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void Ft.debug("Unsupported status [".concat(e,"]"))}},y.toTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t),e=this.toTargetActionOrNull(e.action);return t&&e&&new Ie(t,e)},y.toTargetActionOrNull=function(e){var t=this.parseOrNull(dt,e.type);return t&&new Ce(t,e.variationId,e.bucketId)},y.toTargetOrNull=function(e,t){var r=this,e=l.mapNotNullOrUndefined(e.conditions,function(e){return r.toConditionOrNull(e,t)});return new _e(e)},y.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)},y.toTargetKeyOrNull=function(e){var t=this.parseOrNull(ht,e.type);return t&&new Oe(t,e.name)},y.toTargetMatchOrNull=function(e){var t=this.parseOrNull(lt,e.type),r=this.parseOrNull(pt,e.operator),n=this.parseOrNull(ft,e.valueType);return t&&r&&n&&new Se(t,r,n,e.values)},y.toSegmentOrNull=function(e){var t=this,r=this.parseOrNull(yt,e.type);return r&&new Ne(e.id,e.key,r,l.mapNotNullOrUndefined(e.targets,function(e){return t.toTargetOrNull(e,vt.SEGMENT)}))},y.toContainer=function(e){var t=this;return new Ge(e.id,e.bucketId,e.groups.map(function(e){return t.toContainerGroup(e)}))},y.toContainerGroup=function(e){return new Ae(e.id,e.experiments)},y.toParameterConfiguration=function(e){return new Be(e.id,l.associate(e.parameters,function(e){return[e.key,e.value]}))},y.toRemoteConfigParameterOrNull=function(e){var t=this,r=this.parseOrNull(ft,e.type),n=l.mapNotNullOrUndefined(e.targetRules,function(e){return t.toRemoteConfigTargetRuleOrNull(e,vt.PROPERTY)}),o=this.toRemoteConfigParameterValueOrNull(e.defaultValue);return r&&new ke(e.id,e.key,r,e.identifierType,n,o)},y.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))},y.toRemoteConfigParameterValueOrNull=function(e){return new Pe(e.id,e.value)},y.parseOrNull=function(e,t){e=e.find(function(e){return e===t});return e||Ft.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e},y),Ht=(Qt.prototype.onReady=function(){return this.readyPromise},Qt.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},Qt.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()},Qt.prototype.get=function(){return this.workspace},Qt.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)},Qt.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()},Qt.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},Qt.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=Vt.from(e),this.readyPromiseResolver())}},Qt.prototype.onRequestRejected=function(e){this.isStarted&&(this.errorRetryController.countError(),console.error("Error fetching data",e))},Qt.prototype.close=function(){this.stop()},Qt),Kt=(Zt.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*ye[Math.min(ye.length-1,this.errorCount)]+Math.round(1e3*Math.random())},Zt.prototype.countError=function(){this.errorCount<ye.length-1&&this.errorCount++},Zt.prototype.reset=function(){this.errorCount=0},Zt),r="model",o="name",i="type",s="vendor",c="version",p="mobile",d="tablet",zt=(h.parse=function(e){return{browser:h.getBrowser(e),cpu:h.getCPU(e),device:h.getDevice(e),engine:h.getEngine(e),os:h.getOS(e)}},h.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return h.mapper.rgx.call(t,e,h.regexes.browser),t.major=h.util.major(t.version),t},h.getCPU=function(e){var t={architecture:void 0};return h.mapper.rgx.call(t,e,h.regexes.cpu),t},h.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return h.mapper.rgx.call(t,e,h.regexes.device),t},h.getEngine=function(e){var t={name:void 0,version:void 0};return h.mapper.rgx.call(t,e,h.regexes.os),t},h.getOS=function(e){var t={name:void 0,version:void 0};return h.mapper.rgx.call(t,e,h.regexes.os),t},h.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,"")}},h.regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[o,c],[/(opios)[\/\s]+([\w\.]+)/i],[[o,"Opera Mini"],c],[/\s(opr)\/([\w\.]+)/i],[[o,"Opera"],c],[/(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,c],[/(konqueror)\/([\w\.]+)/i],[[o,"Konqueror"],c],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[o,"IE"],c],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[o,"Edge"],c],[/(yabrowser)\/([\w\.]+)/i],[[o,"Yandex"],c],[/(Avast)\/([\w\.]+)/i],[[o,"Avast Secure Browser"],c],[/(AVG)\/([\w\.]+)/i],[[o,"AVG Secure Browser"],c],[/(puffin)\/([\w\.]+)/i],[[o,"Puffin"],c],[/(focus)\/([\w\.]+)/i],[[o,"Firefox Focus"],c],[/(opt)\/([\w\.]+)/i],[[o,"Opera Touch"],c],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[o,"UCBrowser"],c],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],c],[/(windowswechat qbcore)\/([\w\.]+)/i],[[o,"WeChat(Win) Desktop"],c],[/(micromessenger)\/([\w\.]+)/i],[[o,"WeChat"],c],[/(brave)\/([\w\.]+)/i],[[o,"Brave"],c],[/(whale)\/([\w\.]+)/i],[[o,"Whale"],c],[/(qqbrowserlite)\/([\w\.]+)/i],[o,c],[/(QQ)\/([\d\.]+)/i],[o,c],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[o,c],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[o,c],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[o,c],[/(MetaSr)[\/\s]?([\w\.]+)/i],[o],[/(LBBROWSER)/i],[o],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[c,[o,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[c,[o,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[o,c],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[c,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,/(.+)/,"$1 WebView"],c],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[o,/(.+(?:g|us))(.+)/,"$1 $2"],c],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[o,"Chrome Mobile"],c],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[c,[o,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[o,"Sailfish Browser"],c],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,c],[/(dolfin)\/([\w\.]+)/i],[[o,"Dolphin"],c],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[o,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[o,"Opera Coast"],c],[/fxios\/([\w\.-]+)/i],[c,[o,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[c,[o,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[c,o],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[o,"GSA"],c],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[c,(h.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(h.util.has(t[r][n],e))return"?"===r?void 0:r}else if(h.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(h.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,c],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],c],[/(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,c]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",h.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",h.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",h.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[r,s,[i,d]],[/applecoremedia\/[\w\.]+ \((ipad)/],[r,[s,"Apple"],[i,d]],[/(apple\s{0,1}tv)/i],[[r,"Apple TV"],[s,"Apple"],[i,"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],[s,r,[i,d]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[r,[s,"Amazon"],[i,d]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[r,h.mapper.str,h.maps.device.amazon.model],[s,"Amazon"],[i,p]],[/android.+aft([bms])\sbuild/i],[r,[s,"Amazon"],[i,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[r,s,[i,p]],[/\((ip[honed|\s\w*]+);/i],[r,[s,"Apple"],[i,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],[s,r,[i,p]],[/\(bb10;\s(\w+)/i],[r,[s,"BlackBerry"],[i,p]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[r,[s,"Asus"],[i,d]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[s,"Sony"],[r,"Xperia Tablet"],[i,d]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[s,"Sony"],[i,p]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[s,r,[i,"console"]],[/android.+;\s(shield)\sbuild/i],[r,[s,"Nvidia"],[i,"console"]],[/(playstation\s[34portablevi]+)/i],[r,[s,"Sony"],[i,"console"]],[/(sprint\s(\w+))/i],[[s,h.mapper.str,h.maps.device.sprint.vendor],[r,h.mapper.str,h.maps.device.sprint.model],[i,p]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[s,[r,/_/g," "],[i,p]],[/(nexus\s9)/i],[r,[s,"HTC"],[i,d]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[r,[s,"Huawei"],[i,p]],[/android.+(bah2?-a?[lw]\d{2})/i],[r,[s,"Huawei"],[i,d]],[/(microsoft);\s(lumia[\s\w]+)/i],[s,r,[i,p]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[r,[s,"Microsoft"],[i,"console"]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[s,"Microsoft"],[i,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,[s,"Motorola"],[i,p]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[r,[s,"Motorola"],[i,d]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[s,h.util.trim],[r,h.util.trim],[i,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[s,"Samsung"],[i,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[r,[s,"Sharp"],[i,"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],[[s,"Samsung"],r,[i,d]],[/smart-tv.+(samsung)/i],[s,[i,"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],[[s,"Samsung"],r,[i,p]],[/sie-(\w*)/i],[r,[s,"Siemens"],[i,p]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[s,"Nokia"],r,[i,p]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[r,[s,"Acer"],[i,d]],[/android.+([vl]k\-?\d{3})\s+build/i],[r,[s,"LG"],[i,d]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[s,"LG"],r,[i,d]],[/(lg) netcast\.tv/i],[s,r,[i,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[r,[s,"LG"],[i,p]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[s,r,[i,d]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[r,[s,"Lenovo"],[i,d]],[/(lenovo)[_\s-]?([\w-]+)/i],[s,r,[i,p]],[/linux;.+((jolla));/i],[s,r,[i,p]],[/((pebble))app\/[\d\.]+\s/i],[s,r,[i,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[s,r,[i,p]],[/crkey/i],[[r,"Chromecast"],[s,"Google"],[i,"smarttv"]],[/android.+;\s(glass)\s\d/i],[r,[s,"Google"],[i,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[r,[s,"Google"],[i,d]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[r,[s,"Google"],[i,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," "],[s,"Xiaomi"],[i,p]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[s,"Xiaomi"],[i,d]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[r,[s,"Meizu"],[i,p]],[/(mz)-([\w-]{2,})/i],[[s,"Meizu"],r,[i,p]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[r,[s,"OnePlus"],[i,p]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[r,[s,"RCA"],[i,d]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[r,[s,"Dell"],[i,d]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[r,[s,"Verizon"],[i,d]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[s,"Barnes & Noble"],r,[i,d]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[r,[s,"NuVision"],[i,d]],[/android.+;\s(k88)\sbuild/i],[r,[s,"ZTE"],[i,d]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[r,[s,"Swiss"],[i,p]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[r,[s,"Swiss"],[i,d]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[r,[s,"Zeki"],[i,d]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[s,"Dragon Touch"],r,[i,d]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[r,[s,"Insignia"],[i,d]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[r,[s,"NextBook"],[i,d]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[s,"Voice"],r,[i,p]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[s,"LvTel"],r,[i,p]],[/android.+;\s(PH-1)\s/i],[r,[s,"Essential"],[i,p]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[r,[s,"Envizen"],[i,d]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[s,r,[i,d]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[r,[s,"MachSpeed"],[i,d]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[s,r,[i,d]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[r,[s,"Rotor"],[i,d]],[/android.+(KS(.+))\s+build/i],[r,[s,"Amazon"],[i,d]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[s,r,[i,d]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[i,h.util.lowerize],s,r],[/[\s\/\(](smart-?tv)[;\)]/i],[[i,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[r,[s,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[c,[o,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[c,[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,c],[/rv\:([\w\.]{1,9}).+(gecko)/i],[c,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,c],[/(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,h.mapper.str,h.maps.os.windows],[c,h.mapper.str,h.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[c,h.mapper.str,h.maps.os.windows.version]],[/\((bb)(10);/i],[[o,"BlackBerry"],c],[/(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,c],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[o,"Symbian"],c],[/\((series40);/i],[o],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"],c],[/(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"],c],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],c],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],c],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[o,"Linux"],c],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPhone"],[c,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPad"],[c,/_/g,"."]],[/(haiku)\s(\w+)/i],[o,c],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[c,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[o,"Mac"],[c,/_/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,c]]},h),Gt=(Jt.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=zt.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||""}},Jt),Bt=(Wt.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]:""},Wt.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},Wt.prototype.setItem=function(e,t,r){var r=le(le({},this.options),r),n=r.isSecure,o="",i="",s="",a=(r.isCrossSubdomain&&(o=(a=Wt.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},Wt.prototype.removeItem=function(e,t){this.setItem(e,"",le(le({},t),{days:-1}))},new Wt({days:3650,isCrossSubdomain:!0})),qt=(Yt.prototype.resolveOrNull=function(e){e=this._resolveUser(e);return this._resolveHackleUserOrNull(e)},Yt.prototype.resolveAnonymousUser=function(){return{identifiers:{},properties:{},hackleProperties:this._getHackleProperties()}},Yt.prototype._resolveUser=function(e){return e?"string"==typeof e?{id:e}:e:{id:rr()}},Yt.prototype._resolveHackleUserOrNull=function(e){var t=new ze,t=(t.addIdentifiers(e.identifiers||{}),e.id&&t.add(Ke.ID,e.id),e.userId&&t.add(Ke.USER,e.userId),t.add(Ke.DEVICE,e.deviceId||rr()),t.build());if(0!==Object.keys(t).length)return{identifiers:t,properties:e.properties||{},hackleProperties:this._getHackleProperties()}},Yt.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?Gt.generate(window):e)||{}},Yt),$t=(Xt.initialize=function(){Bt.getItem("_hackle_hid")||ir()},Xt.reInitialize=function(){ir()},Xt);function Xt(){}function Yt(){$t.initialize()}function Wt(e){this.options=e=void 0===e?{days:0,isCrossSubdomain:!1,isSecure:!1,isCrossSite:!1}:e}function Jt(){}function h(){}function Zt(){this.errorCount=0}function Qt(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 Kt,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function y(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 er(){}function tr(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 rr(){var e=Bt.getItem("_hackle_id");return e||Bt.getItem("_hackle_hid")||ir()}function nr(e){Bt.setItem("_hackle_id",e)}function or(){Bt.removeItem("_hackle_id")}function ir(){var e=ae.v4();return Bt.setItem("_hackle_hid",e),e}function sr(e){return e&&e.Math==Math&&e}function v(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:{},d=sr("object"==typeof globalThis&&globalThis)||sr("object"==typeof window&&window)||sr("object"==typeof self&&self)||sr("object"==typeof p&&p)||function(){return this}()||Function("return this")(),i={},r=!v(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),s=!v(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),ar=Function.prototype.call,o=s?ar.bind(ar):function(){return ar.apply(ar,arguments)},c={},e={}.propertyIsEnumerable,ur=Object.getOwnPropertyDescriptor,p=ur&&!e.call({1:2},1);c.f=p?function(e){e=ur(this,e);return!!e&&e.enumerable}:e;function cr(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function lr(e){return Sr(Or(e),8,-1)}function fr(e){if(null==e)throw Ar("Can't call method on "+e);return e}function pr(e){return kr(xr(e))}function m(e){return"function"==typeof e}function dr(e){return"object"==typeof e?null!==e:Pr(e)}function hr(e,t){return arguments.length<2?(r=Dr[e],Mr(r)?r:void 0):Dr[e]&&Dr[e][t];var r}function yr(e){try{return Gr(e)}catch(e){return"Object"}}function vr(e){if(Br(e))return e;throw $r(qr(e)+" is not a function")}function mr(e,t){return null==(e=e[t])?void 0:Xr(e)}function gr(t,r){try{en(Qr,t,{value:r,configurable:!0,writable:!0})}catch(e){Qr[t]=r}return r}function g(e){return on(nn(e))}function wr(e){return"Symbol("+(void 0===e?"":e)+")_"+pn(++ln+fn,36)}function w(e){var t;return dn(mn,e)&&(yn||"string"==typeof mn[e])||(t="Symbol."+e,yn&&dn(gn,e)?mn[e]=gn[e]:mn[e]=(vn&&wn?wn:En)(t)),mn[e]}function Er(e){return e=function(e,t){if(!Tn(e)||_n(e))return e;var r=Rn(e,Cn);if(r){if(r=bn(r,e,t=void 0===t?"default":t),!Tn(r)||_n(r))return r;throw Sn("Can't convert object to primitive value")}return On(e,t=void 0===t?"number":t)}(e,"string"),In(e)?e:e+""}function br(e){return An?Nn.createElement(e):{}}function Tr(e){if(Vn(e))return e;throw Kn(Hn(e)+" is not an object")}var p=s,e=Function.prototype,E=e.bind,_r=e.call,Rr=p&&E.bind(_r,_r),e=p?function(e){return e&&Rr(e)}:function(e){return e&&function(){return _r.apply(e,arguments)}},E=e,Or=E({}.toString),Sr=E("".slice),p=v,Cr=lr,Ir=Object,Nr=e("".split),E=p(function(){return!Ir("z").propertyIsEnumerable(0)})?function(e){return"String"==Cr(e)?Nr(e,""):Ir(e)}:Ir,Ar=TypeError,kr=E,xr=fr,Pr=m,Dr=d,Mr=m,p=e({}.isPrototypeOf),Ur=hr("navigator","userAgent")||"",b=Ur,T=d.process,Lr=d.Deno,T=T&&T.versions||Lr&&Lr.version,Lr=T&&T.v8,T=zr=!(zr=Lr?0<(_=Lr.split("."))[0]&&_[0]<4?1:+(_[0]+_[1]):zr)&&b&&(!(_=b.match(/Edge\/(\d+)/))||74<=_[1])&&(_=b.match(/Chrome\/(\d+)/))?+_[1]:zr,jr=T,Lr=v,b=!!Object.getOwnPropertySymbols&&!Lr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&jr&&jr<41}),_=b&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Fr=hr,Vr=m,Hr=p,Kr=Object,zr=_?function(e){return"symbol"==typeof e}:function(e){var t=Fr("Symbol");return Vr(t)&&Hr(t.prototype,Kr(e))},Gr=String,Br=m,qr=yr,$r=TypeError,Xr=vr,Yr=o,Wr=m,Jr=dr,Zr=TypeError,Lr={exports:{}},Qr=d,en=Object.defineProperty,tn=gr,tn=d["__core-js_shared__"]||tn("__core-js_shared__",{}),rn=tn,nn=((Lr.exports=function(e,t){return rn[e]||(rn[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"}),fr),on=Object,sn=g,an=e({}.hasOwnProperty),un=Object.hasOwn||function(e,t){return an(sn(e),t)},cn=e,ln=0,fn=Math.random(),pn=cn(1..toString),cn=d,R=Lr.exports,dn=un,hn=wr,yn=b,vn=_,mn=R("wks"),gn=cn.Symbol,wn=gn&&gn.for,En=vn?gn:gn&&gn.withoutSetter||hn,bn=o,Tn=dr,_n=zr,Rn=mr,On=function(e,t){var r,n;if("string"===t&&Wr(r=e.toString)&&!Jr(n=Yr(r,e)))return n;if(Wr(r=e.valueOf)&&!Jr(n=Yr(r,e)))return n;if("string"!==t&&Wr(r=e.toString)&&!Jr(n=Yr(r,e)))return n;throw Zr("Can't convert object to primitive value")},Sn=TypeError,Cn=w("toPrimitive"),In=zr,b=dr,Nn=d.document,An=b(Nn)&&b(Nn.createElement),kn=br,_=!r&&!v(function(){return 7!=Object.defineProperty(kn("div"),"a",{get:function(){return 7}}).a}),xn=o,Pn=c,Dn=cr,Mn=pr,Un=Er,Ln=un,jn=_,Fn=Object.getOwnPropertyDescriptor,R=(i.f=r?Fn:function(e,t){if(e=Mn(e),t=Un(t),jn)try{return Fn(e,t)}catch(e){}if(Ln(e,t))return Dn(!xn(Pn.f,e,t),e[t])},{}),cn=r&&v(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Vn=dr,Hn=String,Kn=TypeError,zn=_,Gn=Tr,Bn=Er,qn=TypeError,$n=Object.defineProperty,Xn=Object.getOwnPropertyDescriptor,Yn=(R.f=r?cn?function(e,t,r){var n;return Gn(e),t=Bn(t),Gn(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=Xn(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}),$n(e,t,r)}:$n:function(e,t,r){if(Gn(e),t=Bn(t),Gn(r),zn)try{return $n(e,t,r)}catch(e){}if("get"in r||"set"in r)throw qn("Accessors not supported");return"value"in r&&(e[t]=r.value),e},R),Wn=cr,hn=r?function(e,t,r){return Yn.f(e,t,Wn(1,r))}:function(e,t,r){return e[t]=r,e},zr={exports:{}},b=r,c=un,_=Function.prototype,Jn=b&&Object.getOwnPropertyDescriptor,c=c(_,"name"),c={EXISTS:c,PROPER:c&&"something"===function(){}.name,CONFIGURABLE:c&&(!b||Jn(_,"name").configurable)},b=m,Jn=tn,Zn=e(Function.toString);b(Jn.inspectSource)||(Jn.inspectSource=function(e){return Zn(e)});function Qn(e){return go[e]||(go[e]=mo(e))}function eo(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(Mo(r)&&Lo(r,i,n),n.global)o?e[t]=r:jo(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:Uo.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function to(e){return(e=+e)!=e||0==e?0:Ho(e)}function ro(e,t){return(e=Ko(e))<0?zo(e+t,0):Go(e,t)}function O(e){return 0<(e=e.length)?qo(Bo(e),9007199254740991):0}function no(a){return function(e,t,r){var n,o=$o(e),i=Yo(o),s=Xo(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 oo(e,t){var r,n=Jo(e),o=0,i=[];for(r in n)!Wo(Qo,r)&&Wo(n,r)&&ei(i,r);for(;t.length>o;)!Wo(n,r=t[o++])||~Zo(i,r)||ei(i,r);return i}function io(e,t,r){for(var n=ui(t),o=li.f,i=ci.f,s=0;s<n.length;s++){var a=n[s];ai(e,a)||r&&ai(r,a)||o(e,a,i(t,a))}}function so(e,t){return(e=yi[hi(e)])==mi||e!=vi&&(pi(t)?fi(t):!!t)}function S(e,t){var r,n,o,i,s=e.target,a=e.global,u=e.stat;if(r=a?gi:u?gi[s]||Ti(s,{}):(gi[s]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(i=wi(r,n))&&i.value:r[n],!Ri(a?n:s+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;_i(o,i)}(e.sham||i&&i.sham)&&Ei(o,"sham",!0),bi(r,n,o,e)}}var ao,uo,co,lo,fo,po,ho,yo,_=Jn.inspectSource,b=m,Jn=_,vo=d.WeakMap,b=b(vo)&&/native code/.test(Jn(vo)),Jn=Lr.exports,mo=wr,go=Jn("keys"),vo={},Lr=e,wo=dr,Eo=hn,bo=un,Jn=tn,C=Qn,To=vo,_o=d.TypeError,Ro=d.WeakMap,b=(ho=b||Jn.state?(ao=Jn.state||(Jn.state=new Ro),uo=Lr(ao.get),co=Lr(ao.has),lo=Lr(ao.set),fo=function(e,t){if(co(ao,e))throw new _o("Object already initialized");return t.facade=e,lo(ao,e,t),t},po=function(e){return uo(ao,e)||{}},function(e){return co(ao,e)}):(To[yo=C("state")]=!0,fo=function(e,t){if(bo(e,yo))throw new _o("Object already initialized");return t.facade=e,Eo(e,yo,t),t},po=function(e){return bo(e,yo)?e[yo]:{}},function(e){return bo(e,yo)}),{set:fo,get:po,has:ho,enforce:function(e){return ho(e)?po(e):fo(e,{})},getterFor:function(t){return function(e){if(wo(e)&&(e=po(e)).type===t)return e;throw _o("Incompatible receiver, "+t+" required")}}}),Jn=v,Oo=m,So=un,Co=r,Io=c.CONFIGURABLE,No=_,Ao=b.enforce,ko=b.get,xo=Object.defineProperty,Po=Co&&!Jn(function(){return 8!==xo(function(){},"length",{value:8}).length}),Do=String(String).split("String"),Ro=zr.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),(!So(e,"name")||Io&&e.name!==t)&&(Co?xo(e,"name",{value:t,configurable:!0}):e.name=t),Po&&r&&So(r,"arity")&&e.length!==r.arity&&xo(e,"length",{value:r.arity});try{r&&So(r,"constructor")&&r.constructor?Co&&xo(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=Ao(e);return So(r,"source")||(r.source=Do.join("string"==typeof t?t:"")),e},Mo=(Function.prototype.toString=Ro(function(){return Oo(this)&&ko(this).source||No(this)},"toString"),m),Uo=R,Lo=zr.exports,jo=gr,Lr={},Fo=Math.ceil,Vo=Math.floor,Ho=Math.trunc||function(e){e=+e;return(0<e?Vo:Fo)(e)},Ko=to,zo=Math.max,Go=Math.min,Bo=to,qo=Math.min,$o=pr,Xo=ro,Yo=O,To={includes:no(!0),indexOf:no(!1)},Wo=un,Jo=pr,Zo=To.indexOf,Qo=vo,ei=e([].push),C=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ti=oo,ri=C.concat("length","prototype"),Jn=(Lr.f=Object.getOwnPropertyNames||function(e){return ti(e,ri)},{}),Ro=(Jn.f=Object.getOwnPropertySymbols,hr),ni=Lr,oi=Jn,ii=Tr,si=e([].concat),Jn=Ro("Reflect","ownKeys")||function(e){var t=ni.f(ii(e)),r=oi.f;return r?si(t,r(e)):t},ai=un,ui=Jn,ci=i,li=R,fi=v,pi=m,di=/#|\.prototype\./,hi=so.normalize=function(e){return String(e).replace(di,".").toLowerCase()},yi=so.data={},vi=so.NATIVE="N",mi=so.POLYFILL="P",Ro=so,gi=d,wi=i.f,Ei=hn,bi=eo,Ti=gr,_i=io,Ri=Ro,Jn=!v(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Oi=un,Si=m,Ci=g,Ii=Qn("IE_PROTO"),Ni=Object,Ai=Ni.prototype,Jn=Jn?Ni.getPrototypeOf:function(e){e=Ci(e);if(Oi(e,Ii))return e[Ii];var t=e.constructor;return Si(t)&&e instanceof t?t.prototype:e instanceof Ni?Ai:null},ki=m,xi=String,Pi=TypeError,Di=e,Mi=Tr,Ui=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=Di(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return Mi(e),function(e){if("object"==typeof e||ki(e))return;throw Pi("Can't set "+xi(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),Li={},ji=oo,Fi=C,I=Object.keys||function(e){return ji(e,Fi)},Vi=R,Hi=Tr,Ki=pr,zi=I;Li.f=r&&!cn?Object.defineProperties:function(e,t){Hi(e);for(var r,n=Ki(t),o=zi(t),i=o.length,s=0;s<i;)Vi.f(e,r=o[s++],n[r]);return e};function Gi(){}function Bi(e){e.write(us("")),e.close();var t=e.parentWindow.Object;return e=null,t}function qi(e,t){return vs(e),void 0===t?e:ms?gs(e,t):function(){return e.apply(t,arguments)}}function $i(e){return void 0!==e&&(ws.Array===e||bs[Es]===e)}function Xi(e){if(null!=e)return Is(e,As)||Is(e,"@@iterator")||Ns[Cs(e)]}function Yi(e,t){if(t=arguments.length<2?Ms(e):t,xs(t))return Ps(ks(t,e));throw Us(Ds(e)+" is not iterable")}function Wi(e,t,r){var n,o;js(e);try{if(!(n=Fs(e,"return"))){if("throw"===t)throw r;return r}n=Ls(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return js(n),r}function Ji(e,t){this.stopped=e,this.result=t}function Zi(e,t,r){function n(e){return i&&Ys(i,"normal",e),new Ji(!0,e)}function o(e){return p?(Ks(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=Vs(t,f);if(d)i=e.iterator;else if(h)i=e;else{if(!(r=Xs(e)))throw Ws(zs(e)+" is not iterable");if(Gs(r)){for(s=0,a=Bs(e);s<a;s++)if((u=o(e[s]))&&qs(Js,u))return u;return new Ji(!1)}i=$s(e,r)}for(c=(d?e:i).next;!(l=Hs(c,i)).done;){try{u=o(l.value)}catch(e){Ys(i,"throw",e)}if("object"==typeof u&&u&&qs(Js,u))return u}return new Ji(!1)}function Qi(e){if("Symbol"===Zs(e))throw TypeError("Cannot convert a Symbol value to a string");return Qs(e)}function es(e,t){var r,n=2<arguments.length?arguments[2]:void 0,o=na(ha,this);return ia?r=ia(new pa,o?oa(this):ha):(r=o?this:aa(ha),ua(r,fa,"Error")),void 0!==t&&ua(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:ea(e)}(t)),la&&ua(r,"stack",function(e,t){if(ds&&"string"==typeof e&&!ls.prepareStackTrace)for(;t--;)e=fs(e,ps,"");return e}(r.stack,1)),o=r,hs(t=n)&&"cause"in t&&ys(o,"cause",t.cause),ca(e,da,{that:n=[]}),ua(r,"errors",n),r}var ts,I=hr("document","documentElement"),rs=Tr,ns=Li,os=C,cn=vo,is=I,ss=br,as=Qn("IE_PROTO"),us=function(e){return"<script>"+e+"<\/script>"},cs=function(){try{ts=new ActiveXObject("htmlfile")}catch(e){}var e,t;cs="undefined"==typeof document||document.domain&&ts?Bi(ts):((t=ss("iframe")).style.display="none",is.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(us("document.F=Object")),e.close(),e.F);for(var r=os.length;r--;)delete cs.prototype[os[r]];return cs()},Li=(cn[as]=!0,Object.create||function(e,t){var r;return null!==e?(Gi.prototype=rs(e),r=new Gi,Gi.prototype=null,r[as]=e):r=cs(),void 0===t?r:ns.f(r,t)}),ls=Error,fs=e("".replace),C=String(ls("zxcasd").stack),ps=/\n\s*at [^:]*:[^\n]*/,ds=ps.test(C),hs=dr,ys=hn,vs=vr,ms=s,gs=e(e.bind),cn={},ws=cn,Es=w("iterator"),bs=Array.prototype,C={},C=(C[w("toStringTag")]="z","[object z]"===String(C)),N=C,Ts=m,_s=lr,Rs=w("toStringTag"),Os=Object,Ss="Arguments"==_s(function(){return arguments}()),N=N?_s: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=Os(e),Rs))?t:Ss?_s(e):"Object"==(t=_s(e))&&Ts(e.callee)?"Arguments":t},Cs=N,Is=mr,Ns=cn,As=w("iterator"),ks=o,xs=vr,Ps=Tr,Ds=yr,Ms=Xi,Us=TypeError,Ls=o,js=Tr,Fs=mr,Vs=qi,Hs=o,Ks=Tr,zs=yr,Gs=$i,Bs=O,qs=p,$s=Yi,Xs=Xi,Ys=Wi,Ws=TypeError,Js=Ji.prototype,Zs=N,Qs=String,ea=Qi,ta=cr,A=!v(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",ta(1,7)),7!==e.stack)}),ra=S,na=p,oa=Jn,ia=Ui,sa=io,aa=Li,ua=hn,k=cr,ca=Zi,la=A,fa=w("toStringTag"),pa=Error,da=[].push,ha=(ia?ia(es,pa):sa(es,pa,{name:!0}),es.prototype=aa(pa.prototype,{constructor:k(1,es),message:k(1,""),name:k(1,"AggregateError")})),A=(ra({global:!0,constructor:!0,arity:2},{AggregateError:es}),w),sa=Li,k=R.f,ya=A("unscopables"),va=Array.prototype;null==va[ya]&&k(va,ya,{configurable:!0,value:sa(null)});function x(e){va[ya][e]=!0}var ma,ra=v,A=m,k=Jn,sa=eo,ga=w("iterator"),P=!1;[].keys&&("next"in(Ta=[].keys())?(k=k(k(Ta)))!==Object.prototype&&(ma=k):P=!0);function wa(e,t,r){(e=e&&!r?e.prototype:e)&&!Ra(e,Oa)&&_a(e,Oa,{configurable:!0,value:t})}function Ea(){return this}function ba(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(!Ga&&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=Ca(Sa,{next:Ia(+!c,n)}),Na(a,u,!1),Aa[u]=ka;var f,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[Ba]||h["@@iterator"]||o&&h[o],v=!Ga&&y||l(o);if((n="Array"==t&&h.entries||y)&&(a=Ma(n.call(new e)))!==Object.prototype&&a.next&&(Ma(a)!==za&&(Ua?Ua(a,za):Da(a[Ba])||Fa(a,Ba,Ea)),La(a,c,!0)),Ha&&"values"==o&&y&&"values"!==y.name&&(Ka?ja(h,"name","values"):(d=!0,v=function(){return Pa(y,this)})),o)if(f={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},s)for(p in f)!Ga&&!d&&p in h||Fa(h,p,f[p]);else xa({target:t,proto:!0,forced:Ga||d},f);return h[Ba]!==v&&Fa(h,Ba,v,{name:o}),Va[t]=v,f}A((ma=null==ma||ra(function(){var e={};return ma[ga].call(e)!==e})?{}:ma)[ga])||sa(ma,ga,function(){return this});var Ta={IteratorPrototype:ma,BUGGY_SAFARI_ITERATORS:P},_a=R.f,Ra=un,Oa=w("toStringTag"),Sa=Ta.IteratorPrototype,Ca=Li,Ia=cr,Na=wa,Aa=cn,ka=function(){return this},xa=S,Pa=o,Da=m,Ma=Jn,Ua=Ui,La=wa,ja=hn,Fa=eo,Va=cn,Ha=c.PROPER,Ka=c.CONFIGURABLE,za=Ta.IteratorPrototype,Ga=Ta.BUGGY_SAFARI_ITERATORS,Ba=w("iterator"),qa=pr,k=x,A=cn,ra=b,sa=R.f,P=ba,c=r,$a=ra.set,Xa=ra.getterFor("Array Iterator"),Ta=P(Array,"Array",function(e,t){$a(this,{type:"Array Iterator",target:qa(e),index:0,kind:t})},function(){var e=Xa(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"),cn=A.Arguments=A.Array;if(k("keys"),k("values"),k("entries"),c&&"values"!==cn.name)try{sa(cn,"name",{value:"values"})}catch(p0){}function Ya(e){var e=tu(e),t=ru.f;nu&&e&&!e[ou]&&t(e,ou,{configurable:!0,get:function(){return this}})}function Wa(e,t){if(iu(t,e))return e;throw su("Incorrect invocation")}function Ja(){}function Za(e){if(!au(e))return!1;try{return fu(Ja,lu,e),!0}catch(e){return!1}}function Qa(e){if(!au(e))return!1;switch(uu(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return hu||!!du(pu,cu(e))}catch(e){return!0}}var eu=N,ra=(C||eo(Object.prototype,"toString",C?{}.toString:function(){return"[object "+eu(this)+"]"},{unsafe:!0}),"process"==lr(d.process)),tu=hr,ru=R,nu=r,ou=w("species"),iu=p,su=TypeError,P=e,A=v,au=m,uu=N,cu=_,lu=[],fu=hr("Reflect","construct"),pu=/^\s*(?:class|function)\b/,du=P(pu.exec),hu=!pu.exec(Ja);Qa.sham=!0;function yu(e,t){var r,e=bu(e).constructor;if(void 0===e||null==(r=bu(e)[Tu]))return t;if(gu(e=r))return e;throw Eu(wu(e)+" is not a constructor")}var vu,mu,k=!fu||A(function(){var e;return Za(Za.call)||!Za(Object)||!Za(function(){e=!0})||e})?Qa:Za,gu=k,wu=yr,Eu=TypeError,bu=Tr,Tu=w("species"),c=Function.prototype,_u=c.apply,Ru=c.call,sa="object"==typeof Reflect&&Reflect.apply||(s?Ru.bind(_u):function(){return Ru.apply(_u,arguments)}),cn=e([].slice),Ou=TypeError,C=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ur),Su=d,Cu=sa,p=qi,Iu=m,Nu=un,N=v,Au=I,ku=cn,xu=br,P=C,A=ra,c=Su.setImmediate,s=Su.clearImmediate,Pu=Su.process,Du=Su.Dispatch,Mu=Su.Function,I=Su.MessageChannel,Uu=Su.String,Lu=0,ju={};try{vu=Su.location}catch(p0){}function Fu(e){return function(){Ku(e)}}function Vu(e){Ku(e.data)}function Hu(e){Su.postMessage(Uu(e),vu.protocol+"//"+vu.host)}var Ku=function(e){var t;Nu(ju,e)&&(t=ju[e],delete ju[e],t())};c&&s||(c=function(e){var t=arguments.length,r=1;if(t<r)throw Ou("Not enough arguments");var n=Iu(e)?e:Mu(e),o=ku(arguments,1);return ju[++Lu]=function(){Cu(n,void 0,o)},mu(Lu),Lu},s=function(e){delete ju[e]},A?mu=function(e){Pu.nextTick(Fu(e))}:Du&&Du.now?mu=function(e){Du.now(Fu(e))}:I&&!P?(P=(A=new I).port2,A.port1.onmessage=Vu,mu=p(P.postMessage,P)):Su.addEventListener&&Iu(Su.postMessage)&&!Su.importScripts&&vu&&"file:"!==vu.protocol&&!N(Hu)?(mu=Hu,Su.addEventListener("message",Vu,!1)):mu="onreadystatechange"in xu("script")?function(e){Au.appendChild(xu("script")).onreadystatechange=function(){Au.removeChild(this),Ku(e)}}:function(e){setTimeout(Fu(e),0)});function zu(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function Gu(){this.head=null,this.tail=null}function Bu(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=pc(r),this.reject=pc(n)}var qu,$u,Xu,Yu,Wu,Ju,Zu,I={set:c,clear:s},A=d,p=/ipad|iphone|ipod/i.test(Ur)&&void 0!==A.Pebble,P=/web0s(?!.*chrome)/i.test(Ur),N=d,c=qi,s=i.f,Qu=I.set,A=C,i=p,C=P,ec=ra,p=N.MutationObserver||N.WebKitMutationObserver,P=N.document,tc=N.process,rc=N.Promise,s=s(N,"queueMicrotask"),s=s&&s.value,C=(s||(qu=function(){var e,t;for(ec&&(e=tc.domain)&&e.exit();$u;){t=$u.fn,$u=$u.next;try{t()}catch(e){throw $u?Yu():Xu=void 0,e}}Xu=void 0,e&&e.enter()},Yu=A||ec||C||!p||!P?!i&&rc&&rc.resolve?((A=rc.resolve(void 0)).constructor=rc,Zu=c(A.then,A),function(){Zu(qu)}):ec?function(){tc.nextTick(qu)}:(Qu=c(Qu,N),function(){Qu(qu)}):(Wu=!0,Ju=P.createTextNode(""),new p(qu).observe(Ju,{characterData:!0}),function(){Ju.data=Wu=!Wu})),s||function(e){e={fn:e,next:void 0};Xu&&(Xu.next=e),$u||($u=e,Yu()),Xu=e}),nc=d,i=(Gu.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}},Gu),rc=d.Promise,A="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,c=!A&&!ra&&"object"==typeof window&&"object"==typeof document,N=d,oc=rc,P=m,p=Ro,ic=_,s=w,sc=c,ac=A,uc=T,cc=(oc&&oc.prototype,s("species")),lc=!1,fc=P(N.PromiseRejectionEvent),_={CONSTRUCTOR:p("Promise",function(){var e=ic(oc),t=e!==String(oc);if(!t&&66===uc)return!0;if(!uc||uc<51||!/native code/.test(e)){var e=new oc(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[cc]=r,!(lc=e.then(function(){})instanceof r))return!0}return!t&&(sc||ac)&&!fc}),REJECTION_EVENT:fc,SUBCLASSING:lc},c={},pc=vr;c.f=function(e){return new Bu(e)};function dc(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,wc(Oc,gc,function(){var e=i.facade;mc?jc.emit("rejectionHandled",e):Gc("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(Uc("Promise-chain cycle")):(n=Kc(r))?wc(n,r,c,l):c(r)):l(s)}catch(e){f&&!o&&f.exit(),l(e)}}var hc,yc,vc,A=S,mc=ra,gc=d,wc=o,s=eo,P=Ui,N=wa,p=Ya,Ec=vr,bc=m,Tc=dr,_c=Wa,Rc=yu,Oc=I.set,Sc=C,Cc=zu,Ic=i,I=b,C=rc,i=c,Nc=_.CONSTRUCTOR,Ac=_.REJECTION_EVENT,kc=_.SUBCLASSING,xc=I.getterFor("Promise"),Pc=I.set,I=C&&C.prototype,Dc=C,Mc=I,Uc=gc.TypeError,Lc=gc.document,jc=gc.process,Fc=i.f,Vc=Fc,Hc=!!(Lc&&Lc.createEvent&&gc.dispatchEvent),Kc=function(e){var t;return!(!Tc(e)||!bc(t=e.then))&&t},zc=function(r,o){r.notified||(r.notified=!0,Sc(function(){for(var e,n,t=r.reactions;e=t.get();)dc(e,r);r.notified=!1,o&&!r.rejection&&(n=r,wc(Oc,gc,function(){var e,t=n.facade,r=n.value;if(Bc(n)&&(e=Cc(function(){mc?jc.emit("unhandledRejection",r,t):Gc("unhandledrejection",t,r)}),n.rejection=mc||Bc(n)?2:1,e.error))throw e.value}))}))},Gc=function(e,t,r){var n;Hc?((n=Lc.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),gc.dispatchEvent(n)):n={promise:t,reason:r},!Ac&&(t=gc["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=nc.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},Bc=function(e){return 1!==e.rejection&&!e.parent},qc=function(t,r,n){return function(e){t(r,e,n)}},$c=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,zc(e,!0))},Xc=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw Uc("Promise can't be resolved itself");var n=Kc(e);n?Sc(function(){var t={done:!1};try{wc(n,e,qc(Xc,t,r),qc($c,t,r))}catch(e){$c(t,e,r)}}):(r.value=e,r.state=1,zc(r,!1))}catch(e){$c({done:!1},e,r)}}};if(Nc&&(Mc=(Dc=function(e){_c(this,Mc),Ec(e),wc(hc,this);var t=xc(this);try{e(qc(Xc,t),qc($c,t))}catch(e){$c(t,e)}}).prototype,(hc=function(e){Pc(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new Ic,rejection:!1,state:0,value:void 0})}).prototype=s(Mc,"then",function(e,t){var r=xc(this),n=Fc(Rc(this,Dc));return r.parent=!0,n.ok=!bc(e)||e,n.fail=bc(t)&&t,n.domain=mc?jc.domain:void 0,0==r.state?r.reactions.add(n):Sc(function(){dc(n,r)}),n.promise}),yc=function(){var e=new hc,t=xc(e);this.promise=e,this.resolve=qc(Xc,t),this.reject=qc($c,t)},i.f=Fc=function(e){return e===Dc||void 0===e?new yc:Vc(e)},bc(C)&&I!==Object.prototype)){vc=I.then,kc||s(I,"then",function(e,t){var r=this;return new Dc(function(e,t){wc(vc,r,e,t)}).then(e,t)},{unsafe:!0});try{delete I.constructor}catch(p0){}P&&P(I,Mc)}A({global:!0,constructor:!0,wrap:!0,forced:Nc},{Promise:Dc}),N(Dc,"Promise",!1),p("Promise");var Yc=w("iterator"),Wc=!1;try{var Jc=0,Zc={next:function(){return{done:!!Jc++}},return:function(){Wc=!0}};Zc[Yc]=function(){return this},Array.from(Zc,function(){throw 2})}catch(p0){}function Qc(e,t){if(!t&&!Wc)return!1;var r=!1;try{var n={};n[Yc]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function el(e,t){return ml(e),gl(t)&&t.constructor===e?t:((0,(e=wl.f(e)).resolve)(t),e.promise)}function tl(o){return function(e,t){var r,e=jl(Fl(e)),t=Ll(t),n=e.length;return t<0||n<=t?o?"":void 0:(r=Hl(e,t))<55296||56319<r||t+1===n||(n=Hl(e,t+1))<56320||57343<n?o?Vl(e,t):r:o?Kl(e,t,t+2):n-56320+(r-55296<<10)+65536}}function rl(e,t){if(e){if(e[Jl]!==Ql)try{Wl(e,Jl,Ql)}catch(t){e[Jl]=Ql}if(e[Zl]||Wl(e,Zl,t),Xl[t])for(var r in Yl)if(e[r]!==Yl[r])try{Wl(e,r,Yl[r])}catch(t){e[r]=Yl[r]}}}var nl,ol=rc,i=_.CONSTRUCTOR||!Qc(function(e){ol.all(e).then(void 0,function(){})}),il=o,sl=vr,al=c,ul=zu,cl=Zi,C=(S({target:"Promise",stat:!0,forced:i},{all:function(e){var a=this,t=al.f(a),u=t.resolve,c=t.reject,r=ul(function(){var n=sl(a.resolve),o=[],i=0,s=1;cl(e,function(e){var t=i++,r=!1;s++,il(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}}),S),kc=rc,s=hr,P=m,I=eo,A=kc&&kc.prototype,ll=(C({target:"Promise",proto:!0,forced:_.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),P(kc)&&(Nc=s("Promise").prototype.catch,A.catch!==Nc&&I(A,"catch",Nc,{unsafe:!0})),o),fl=vr,pl=c,dl=zu,hl=Zi,yl=(S({target:"Promise",stat:!0,forced:i},{race:function(e){var r=this,n=pl.f(r),o=n.reject,t=dl(function(){var t=fl(r.resolve);hl(e,function(e){ll(t,r,e).then(n.resolve,o)})});return t.error&&o(t.value),n.promise}}),o),vl=c,ml=(S({target:"Promise",stat:!0,forced:_.CONSTRUCTOR},{reject:function(e){var t=vl.f(this);return yl(t.reject,void 0,e),t.promise}}),Tr),gl=dr,wl=c,N=S,p=_.CONSTRUCTOR,El=el,bl=(hr("Promise"),N({target:"Promise",stat:!0,forced:p},{resolve:function(e){return El(this,e)}}),o),Tl=vr,_l=c,Rl=zu,Ol=Zi,Sl=(S({target:"Promise",stat:!0},{allSettled:function(e){var a=this,t=_l.f(a),u=t.resolve,r=t.reject,n=Rl(function(){var n=Tl(a.resolve),o=[],i=0,s=1;Ol(e,function(e){var t=i++,r=!1;s++,bl(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),Cl=vr,Il=hr,Nl=c,Al=zu,kl=Zi,Zc=(S({target:"Promise",stat:!0},{any:function(e){var u=this,c=Il("AggregateError"),t=Nl.f(u),l=t.resolve,f=t.reject,r=Al(function(){var n=Cl(u.resolve),o=[],i=0,s=1,a=!1;kl(e,function(e){var t=i++,r=!1;s++,Sl(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}}),S),C=rc,P=v,xl=hr,Pl=m,Dl=yu,Ml=el,kc=eo,Ul=C&&C.prototype,I=(Zc({target:"Promise",proto:!0,real:!0,forced:!!C&&P(function(){Ul.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=Dl(this,xl("Promise")),e=Pl(t);return this.then(e?function(e){return Ml(r,t()).then(function(){return e})}:t,e?function(e){return Ml(r,t()).then(function(){throw e})}:t)}}),Pl(C)&&(s=xl("Promise").prototype.finally,Ul.finally!==s&&kc(Ul,"finally",s,{unsafe:!0})),e),Ll=to,jl=Qi,Fl=fr,Vl=I("".charAt),Hl=I("".charCodeAt),Kl=I("".slice),zl=(tl(!1),tl(!0)),Gl=Qi,A=b,Nc=ba,Bl=A.set,ql=A.getterFor("String Iterator"),i=(Nc(String,"String",function(e){Bl(this,{type:"String Iterator",string:Gl(e),index:0})},function(){var e=ql(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=zl(t,r),e.index+=t.length,{value:t,done:!1})}),d),_=(i.Promise,br("span").classList),N=_&&_.constructor&&_.constructor.prototype,p=N===Object.prototype?void 0:N,$l=d,Xl={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},rc=p,Yl=Ta,Wl=hn,Zc=w,Jl=Zc("iterator"),Zl=Zc("toStringTag"),Ql=Yl.values;for(nl in Xl)rl($l[nl]&&$l[nl].prototype,nl);rl(rc,"DOMTokenList");function ef(e,t,r){(t=Sf(t))in e?Cf.f(e,t,If(0,r)):e[t]=r}function tf(e){if(9007199254740991<e)throw qf("Maximum allowed index exceeded");return e}function rf(e,t){return $f(e=e)&&(r=e.constructor,(Xf(r)&&(r===Jf||$f(r.prototype))||Yf(r)&&null===(r=r[Wf]))&&(r=void 0)),new(void 0===r?Jf:r)(0===t?0:t);var r}function nf(t){return 51<=Qf||!Zf(function(){var e=[];return(e.constructor={})[ep]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function of(e,t){if(!delete e[t])throw lp("Cannot delete property "+cp(t)+" of "+cp(e))}function sf(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=gp(e),a=mp(s),u=vp(t,r),c=wp(a),l=0,t=n||Ep,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:bp(f,o)}else switch(p){case 4:return!1;case 7:bp(f,o)}return m?-1:y||v?v:f}}function af(e,t){var r=[][e];return!!r&&Tp(function(){r.call(null,t||function(){return 1},1)})}function uf(u){var c=1==u;return function(e,t,r){for(var n,o=Dp(e),i=Pp(o),s=xp(t,r),a=Mp(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 cf(e,t,r,n,o,i,s,a){for(var u,c,l=o,f=0,p=!!s&&Hp(s,a);f<n;)f in r&&(u=p?p(r[f],f,t):r[f],0<i&&jp(u)?(c=Fp(u),l=cf(e,t,u,c,l,i-1)-1):(Vp(l+1),e[l]=u),l++),f++;return l}function lf(c){return function(e,t,r,n){vd(t);var o=md(e),i=gd(o),s=wd(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 Ed("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 ff(e,t,r){for(var n=jd(e),o=Ld(t,n),i=Ld(void 0===r?n:r,n),s=Vd(Hd(i-o,0)),a=0;o<i;o++,a++)Fd(s,a,e[o]);return s.length=a,s}function pf(e,t){var r=e.length,n=zd(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=pf(Kd(e,0,n),t),p=pf(Kd(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 df(e){kh(e,Lh,{value:{objectID:"O"+jh++,weakData:{}}})}function hf(e,t,r){for(var n in t)Xh(e,n,t[n],r);return e}var yf,vf,mf,gf,wf,Ef,bf,Tf=c,_f=zu,Rf=(S({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Tf.f(this),e=_f(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),Tr),Of=Wi,Sf=Er,Cf=R,If=cr,Nf=qi,Af=o,kf=g,xf=$i,Pf=k,Df=O,Mf=ef,Uf=Yi,Lf=Xi,jf=Array,Ff=(S({target:"Array",stat:!0,forced:!Qc(function(e){Array.from(e)})},{from:function(e){var t=kf(e),e=Pf(this),r=arguments.length,n=1<r?arguments[1]:void 0,o=void 0!==n;o&&(n=Nf(n,2<r?arguments[2]:void 0));var i,s,a,u,c,l,r=Lf(t),f=0;if(!r||this===jf&&xf(r))for(i=Df(t),s=e?new this(i):jf(i);f<i;f++)l=o?n(t[f],f):t[f],Mf(s,f,l);else for(c=(u=Uf(t,r)).next,s=e?new this:[];!(a=Af(c,u)).done;f++)l=o?function(e,t,r,n){try{return n?t(Rf(r)[0],r[1]):t(r)}catch(t){Of(e,"throw",t)}}(u,n,[a.value,f],!0):a.value,Mf(s,f,l);return s.length=f,s}}),lr),P=Array.isArray||function(e){return"Array"==Ff(e)},Vf=(S({target:"Array",stat:!0},{isArray:P}),k),Hf=ef,Kf=Array,zf=(S({target:"Array",stat:!0,forced:v(function(){function e(){}return!(Kf.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(Vf(this)?this:Kf)(t);e<t;)Hf(r,e,arguments[e++]);return r.length=t,r}}),g),Gf=O,Bf=to,C=x,qf=(S({target:"Array",proto:!0},{at:function(e){var t=zf(this),r=Gf(t),e=Bf(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),C("at"),TypeError),$f=P,Xf=k,Yf=dr,Wf=w("species"),Jf=Array,Zf=v,Qf=T,ep=w("species"),kc=S,s=v,tp=P,rp=dr,np=g,op=O,ip=tf,sp=ef,ap=rf,I=nf,A=T,up=w("isConcatSpreadable"),Nc=51<=A||!s(function(){var e=[];return e[up]=!1,e.concat()[0]!==e}),_=I("concat"),cp=(kc({target:"Array",proto:!0,arity:1,forced:!Nc||!_},{concat:function(e){for(var t,r,n,o=np(this),i=ap(o,0),s=0,a=-1,u=arguments.length;a<u;a++)if(function(e){if(!rp(e))return!1;var t=e[up];return void 0!==t?!!t:tp(e)}(n=-1===a?o:arguments[a]))for(r=op(n),ip(s+r),t=0;t<r;t++,s++)t in n&&sp(i,s,n[t]);else ip(s+1),sp(i,s++,n);return i.length=s,i}}),yr),lp=TypeError,fp=g,pp=ro,dp=O,hp=of,yp=Math.min,N=x,vp=(S({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=fp(this),n=dp(r),o=pp(e,n),i=pp(t,n),e=2<arguments.length?arguments[2]:void 0,s=yp((void 0===e?n:pp(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]:hp(r,o),o+=a,i+=a;return r}}),N("copyWithin"),qi),mp=E,gp=g,wp=O,Ep=rf,bp=e([].push),p={forEach:sf(0),map:sf(1),filter:sf(2),some:sf(3),every:sf(4),find:sf(5),findIndex:sf(6),filterReject:sf(7)},Tp=v,_p=p.every,Rp=(S({target:"Array",proto:!0,forced:!af("every")},{every:function(e){return _p(this,e,1<arguments.length?arguments[1]:void 0)}}),g),Op=ro,Sp=O,Ta=x,Cp=(S({target:"Array",proto:!0},{fill:function(e){for(var t=Rp(this),r=Sp(t),n=arguments.length,o=Op(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,i=void 0===n?r:Op(n,r);o<i;)t[o++]=e;return t}}),Ta("fill"),p.filter),hn=(S({target:"Array",proto:!0,forced:!nf("filter")},{filter:function(e){return Cp(this,e,1<arguments.length?arguments[1]:void 0)}}),S),Ip=p.find,Zc=x,Np=!0,rc=("find"in[]&&Array(1).find(function(){Np=!1}),hn({target:"Array",proto:!0,forced:Np},{find:function(e){return Ip(this,e,1<arguments.length?arguments[1]:void 0)}}),Zc("find"),S),Ap=p.findIndex,c=x,kp=!0,xp=("findIndex"in[]&&Array(1).findIndex(function(){kp=!1}),rc({target:"Array",proto:!0,forced:kp},{findIndex:function(e){return Ap(this,e,1<arguments.length?arguments[1]:void 0)}}),c("findIndex"),qi),Pp=E,Dp=g,Mp=O,C={findLast:uf(0),findLastIndex:uf(1)},Up=C.findLast,A=x,Lp=(S({target:"Array",proto:!0},{findLast:function(e){return Up(this,e,1<arguments.length?arguments[1]:void 0)}}),A("findLast"),C.findLastIndex),s=x,jp=(S({target:"Array",proto:!0},{findLastIndex:function(e){return Lp(this,e,1<arguments.length?arguments[1]:void 0)}}),s("findLastIndex"),P),Fp=O,Vp=tf,Hp=qi,I=cf,Kp=I,zp=g,Gp=O,Bp=to,qp=rf,$p=(S({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=zp(this),r=Gp(t),n=qp(t,0);return n.length=Kp(n,t,t,r,0,void 0===e?1:Bp(e)),n}}),I),Xp=vr,Yp=g,Wp=O,Jp=rf,Zp=(S({target:"Array",proto:!0},{flatMap:function(e){var t,r=Yp(this),n=Wp(r);return Xp(e),(t=Jp(r,0)).length=$p(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),p.forEach),kc=af("forEach")?[].forEach:function(e){return Zp(this,e,1<arguments.length?arguments[1]:void 0)},Qp=(S({target:"Array",proto:!0,forced:[].forEach!=kc},{forEach:kc}),To.includes),Nc=x,_=(S({target:"Array",proto:!0,forced:v(function(){return!Array(1).includes()})},{includes:function(e){return Qp(this,e,1<arguments.length?arguments[1]:void 0)}}),Nc("includes"),S),ed=To.indexOf,N=af,td=e([].indexOf),rd=!!td&&1/td([1],1,-0)<0,Ta=N("indexOf"),hn=(_({target:"Array",proto:!0,forced:rd||!Ta},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return rd?td(this,e,t)||0:ed(this,e,t)}}),S),Zc=E,nd=pr,rc=af,od=e([].join),c=Zc!=Object,A=rc("join",","),id=(hn({target:"Array",proto:!0,forced:c||!A},{join:function(e){return od(nd(this),void 0===e?",":e)}}),sa),sd=pr,ad=to,ud=O,C=af,cd=Math.min,ld=[].lastIndexOf,fd=!!ld&&1/[1].lastIndexOf(1,-0)<0,s=C("lastIndexOf"),I=fd||!s?function(e){if(fd)return id(ld,this,arguments)||0;var t=sd(this),r=ud(t),n=r-1;for((n=1<arguments.length?cd(n,ad(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:ld,pd=(S({target:"Array",proto:!0,forced:I!==[].lastIndexOf},{lastIndexOf:I}),p.map),kc=(S({target:"Array",proto:!0,forced:!nf("map")},{map:function(e){return pd(this,e,1<arguments.length?arguments[1]:void 0)}}),S),dd=g,hd=O,yd=tf,Nc=v(function(){return 4294967297!==[].push.call({length:4294967296},1)}),To=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),vd=(kc({target:"Array",proto:!0,arity:1,forced:Nc||To},{push:function(e){var t=dd(this),r=hd(t),n=arguments.length;yd(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return t.length=r}}),vr),md=g,gd=E,wd=O,Ed=TypeError,N={left:lf(!1),right:lf(!0)},bd=N.left,_=T,Ta=ra,Td=(S({target:"Array",proto:!0,forced:!af("reduce")||!Ta&&79<_&&_<83},{reduce:function(e){var t=arguments.length;return bd(this,e,t,1<t?arguments[1]:void 0)}}),N.right),Zc=T,rc=ra,hn=(S({target:"Array",proto:!0,forced:!af("reduceRight")||!rc&&79<Zc&&Zc<83},{reduceRight:function(e){return Td(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),S),_d=P,Rd=e([].reverse),c=[1,2],A=(hn({target:"Array",proto:!0,forced:String(c)===String(c.reverse())},{reverse:function(){return _d(this)&&(this.length=this.length),Rd(this)}}),S),Od=P,Sd=k,Cd=dr,Id=ro,Nd=O,Ad=pr,kd=ef,sa=w,xd=cn,C=nf("slice"),Pd=sa("species"),Dd=Array,Md=Math.max,Ud=(A({target:"Array",proto:!0,forced:!C},{slice:function(e,t){var r,n,o,i=Ad(this),s=Nd(i),a=Id(e,s),u=Id(void 0===t?s:t,s);if(Od(i)&&(r=i.constructor,(r=Sd(r)&&(r===Dd||Od(r.prototype))||Cd(r)&&null===(r=r[Pd])?void 0:r)===Dd||void 0===r))return xd(i,a,u);for(n=new(void 0===r?Dd:r)(Md(u-a,0)),o=0;a<u;a++,o++)a in i&&kd(n,o,i[a]);return n.length=o,n}}),p.some),Ld=(S({target:"Array",proto:!0,forced:!af("some")},{some:function(e){return Ud(this,e,1<arguments.length?arguments[1]:void 0)}}),ro),jd=O,Fd=ef,Vd=Array,Hd=Math.max,Kd=ff,zd=Math.floor,s=pf,I=Ur.match(/firefox\/(\d+)/i),kc=!!I&&+I[1],Nc=/MSIE|Trident/.test(Ur),To=Ur.match(/AppleWebKit\/(\d+)\./),Ta=!!To&&+To[1],_=S,N=e,Gd=vr,Bd=g,qd=O,$d=of,Xd=Qi,ra=v,Yd=s,rc=af,Wd=kc,Jd=Nc,Zd=T,Qd=Ta,eh=[],th=N(eh.sort),rh=N(eh.push),Zc=ra(function(){eh.sort(void 0)}),hn=ra(function(){eh.sort(null)}),c=rc("sort"),nh=!ra(function(){if(Zd)return Zd<70;if(!(Wd&&3<Wd)){if(Jd)return!0;if(Qd)return Qd<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++)eh.push({k:e+r,v:t})}for(eh.sort(function(e,t){return t.v-e.v}),r=0;r<eh.length;r++)e=eh[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),cn=(_({target:"Array",proto:!0,forced:Zc||!hn||!c||!nh},{sort:function(e){void 0!==e&&Gd(e);var t=Bd(this);if(nh)return void 0===e?th(t):th(t,e);for(var r,n,o=[],i=qd(t),s=0;s<i;s++)s in t&&rh(o,t[s]);for(Yd(o,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:Xd(e)>Xd(t)?1:-1})),r=o.length,s=0;s<r;)t[s]=o[s++];for(;s<i;)$d(t,s++);return t}}),Ya("Array"),S),oh=g,ih=ro,sh=to,ah=O,uh=tf,ch=rf,lh=ef,fh=of,sa=nf("splice"),ph=Math.max,dh=Math.min,A=(cn({target:"Array",proto:!0,forced:!sa},{splice:function(e,t){var r,n,o,i,s,a,u=oh(this),c=ah(u),l=ih(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-l):(r=e-2,dh(ph(sh(t),0),c-l)),uh(c+r-n),o=ch(u,n),i=0;i<n;i++)(s=l+i)in u&&lh(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]:fh(u,a);for(i=c;c-n+r<i;i--)fh(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]:fh(u,a);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return u.length=c-n+r,o}}),x("flat"),x("flatMap"),S),hh=g,yh=O,vh=of,mh=tf,C=1!==[].unshift(0),I=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),Ur=(A({target:"Array",proto:!0,arity:1,forced:C||I},{unshift:function(e){var t=hh(this),r=yh(t),n=arguments.length;if(n){mh(r+n);for(var o=r;o--;){var i=o+n;o in t?t[i]=t[o]:vh(t,i)}for(var s=0;s<n;s++)t[s]=arguments[s]}return t.length=r+n}}),i.Array,{exports:{}}),To={},gh=lr,wh=pr,Eh=Lr.f,bh=ff,Th="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=(To.f=function(e){if(!Th||"Window"!=gh(e))return Eh(wh(e));var t=e;try{return Eh(t)}catch(t){return bh(Th)}},v(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),kc=v,_h=dr,Rh=lr,Oh=s,Sh=Object.isExtensible,Nc=kc(function(){Sh(1)})||Oh?function(e){return!!_h(e)&&(!Oh||"ArrayBuffer"!=Rh(e))&&(!Sh||Sh(e))}:Sh,T=!v(function(){return Object.isExtensible(Object.preventExtensions({}))}),Ch=S,Ih=e,Ta=vo,Nh=dr,Ah=un,kh=R.f,xh=Lr,Ph=To,Dh=Nc,Mh=T,Uh=!1,Lh=wr("meta"),jh=0,Fh=Ur.exports={enable:function(){Fh.enable=function(){},Uh=!0;var o=xh.f,i=Ih([].splice),e={};e[Lh]=1,o(e).length&&(xh.f=function(e){for(var t=o(e),r=0,n=t.length;r<n;r++)if(t[r]===Lh){i(t,r,1);break}return t},Ch({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ph.f}))},fastKey:function(e,t){if(!Nh(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Ah(e,Lh)){if(!Dh(e))return"F";if(!t)return"E";df(e)}return e[Lh].objectID},getWeakData:function(e,t){if(!Ah(e,Lh)){if(!Dh(e))return!0;if(!t)return!1;df(e)}return e[Lh].weakData},onFreeze:function(e){return Mh&&Uh&&Dh(e)&&!Ah(e,Lh)&&df(e),e}},Vh=(Ta[Lh]=!0,m),Hh=dr,Kh=Ui,N=S,rc=d,zh=e,ra=Ro,Gh=eo,_=Ur.exports,Bh=Zi,qh=Wa,Zc=m,$h=dr,hn=v,c=Qc,cn=wa,Xh=eo,Yh=R.f,Wh=Li,Jh=hf,Zh=qi,Qh=Wa,ey=Zi,ty=ba,ry=Ya,ny=r,oy=Ur.exports.fastKey,iy=b.set,sy=b.getterFor;function ay(e){var r=zh(Ef[e]);Gh(Ef,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(mf&&!$h(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return mf&&!$h(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(mf&&!$h(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}sa=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=oy(t,!0),key:t,value:r,previous:t=o.last,next:void 0,removed:!1},o.first||(o.first=i),t&&(t.next=i),ny?o.size++:e.size++,"F"!==n&&(o.index[n]=i)),e}function s(e,t){var r,e=u(e),n=oy(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){Qh(e,a),iy(e,{type:r,index:Wh(null),first:void 0,last:void 0,size:0}),ny||(e.size=0),null!=t&&ey(t,e[o],{that:e,AS_ENTRIES:n})}),a=e.prototype,u=sy(r);return Jh(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,ny?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),ny?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=Zh(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)}}),Jh(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)}}),ny&&Yh(a,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",o=sy(t),i=sy(n);ty(e,t,function(e,t){iy(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),ry(t)}},vf=-1!==(C="Map").indexOf("Map"),mf=-1!==C.indexOf("Weak"),gf=vf?"set":"add",wf=rc.Map,Ef=wf&&wf.prototype,I={},ra(C,!Zc(bf=wf)||!(mf||Ef.forEach&&!hn(function(){(new wf).entries().next()})))?(bf=A.getConstructor(sa,C,vf,gf),_.enable()):ra(C,!0)&&(i=(yf=new bf)[gf](mf?{}:-0,1)!=yf,s=hn(function(){yf.has(1)}),kc=c(function(e){new wf(e)}),vo=!mf&&hn(function(){for(var e=new wf,t=5;t--;)e[gf](t,t);return!e.has(-0)}),kc||(((bf=sa(function(e,t){qh(e,Ef);r=new wf,e=e,n=bf,Kh&&Vh(e=e.constructor)&&e!==n&&Hh(e=e.prototype)&&e!==n.prototype&&Kh(r,e);var r,n=r;return null!=t&&Bh(t,n[gf],{that:n,AS_ENTRIES:vf}),n})).prototype=Ef).constructor=bf),(s||vo)&&(ay("delete"),ay("has"),vf&&ay("get")),(vo||i)&&ay(gf),mf&&Ef.clear&&delete Ef.clear),I.Map=bf,N({global:!0,constructor:!0,forced:bf!=wf},I),cn(bf,C),mf||A.setStrong(bf,C,vf);function uy(e,t){for(var r=0,n=py(t),o=new e(n);r<n;)o[r]=t[r++];return o}function cy(e,t,r,n){for(var o,i,s,a=yy(e),u=hy(a),c=dy(t,r),l=gy(null),f=my(u),p=0;p<f;p++)s=u[p],(i=vy(c(s,p,a)))in l?by(l[i],s):l[i]=[s];if(n&&(o=n(a))!==Ey)for(i in l)l[i]=wy(o,l[i]);return l}function ly(e){for(var t,r,n=Sy(this),o=Oy(n),i=Ry(e,1<arguments.length?arguments[1]:void 0),s=new Iy,a=Cy(o),u=0;u<a;u++)t=i(r=o[u],u,n),Ay(s,t)?xy(Ny(s,t),r):ky(s,t,[r]);return s}function fy(e){return Uy[e].prototype}var py=O,dy=qi,hy=E,yy=g,vy=Er,my=O,gy=Li,wy=uy,Ey=Array,by=e([].push),Ty=cy,un=x,_y=(S({target:"Array",proto:!0},{group:function(e){return Ty(this,e,1<arguments.length?arguments[1]:void 0)}}),un("group"),cy),Lr=x,Ry=(S({target:"Array",proto:!0,forced:!af("groupBy")},{groupBy:function(e){return _y(this,e,1<arguments.length?arguments[1]:void 0)}}),Lr("groupBy"),qi),To=e,Oy=E,Sy=g,Cy=O,Iy=hr("Map"),Nc=Iy.prototype,Ny=To(Nc.get),Ay=To(Nc.has),ky=To(Nc.set),xy=To([].push),T=x,Ta=ly,Ui=(S({target:"Array",proto:!0,name:"groupToMap",forced:!af("groupByToMap")},{groupByToMap:Ta}),T("groupByToMap"),x),Py=(S({target:"Array",proto:!0},{groupToMap:ly}),Ui("groupToMap"),O),Dy=pr,Ro=x,My=Array,Uy=(S({target:"Array",proto:!0},{toReversed:function(){for(var e=Dy(this),t=My,r=Py(e),n=new t(r),o=0;o<r;o++)n[o]=e[r-o-1];return n}}),Ro("toReversed"),d),Ur=S,Ly=vr,jy=pr,Fy=uy,rc=x,Vy=Array,Hy=e(fy("Array").sort),ra=(Ur({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&Ly(e);var t=jy(this),t=Fy(Vy,t);return Hy(t,e)}}),rc("toSorted"),S),c=x,Ky=tf,zy=O,Gy=ro,By=pr,qy=to,$y=Array,Xy=Math.max,Yy=Math.min,Wy=(ra({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,o,i,s=By(this),a=zy(s),u=Gy(e,a),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,a-u):(r=e-2,Yy(Xy(qy(t),0),a-u)),o=Ky(a+r-n),i=$y(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}}),c("toSpliced"),O),Jy=to,Zy=RangeError,Qy=pr,ev=Array;S({target:"Array",proto:!0},{with:function(e,t){var r=Qy(this),n=ev,o=t,i=Wy(r),s=(e=Jy(e))<0?i+e:e;if(i<=s||s<0)throw Zy("Incorrect index");for(var a=new n(i),u=0;u<i;u++)a[u]=u===s?o:r[u];return a}});hn=d,kc=tn,sa=m,s=Jn,vo=eo,i=w("asyncIterator"),N=hn.AsyncIterator,I=kc.AsyncIteratorPrototype;if(I)bm=I;else if(sa(N))bm=N.prototype;else if(kc.USE_FUNCTION_CONSTRUCTOR||hn.USE_FUNCTION_CONSTRUCTOR)try{Em=s(s(s(Function("return async function*(){}()")()))),s(Em)===Object.prototype&&(bm=Em)}catch(p0){}sa((bm=bm||{})[i])||vo(bm,i,function(){return this});function tv(e,t,r){var n=e.done;lv.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function rv(e){fv(this,{type:"AsyncFromSyncIterator",iterator:uv(e),next:e.next})}function nv(e,t,r,n){try{var o=_v(e,"return");if(o)return Tv("Promise").resolve(bv(o,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function ov(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,s,a){var e={iterator:e,next:wv(Ev(e).next)},u=Iv("Promise"),c=e.iterator,t=e.next,l=0,f=void 0!==s;return!f&&p||Ov(s),new u(function(r,n){var o=function(e){nv(c,n,e,n)},i=function(){try{if(p&&f)try{Cv(l)}catch(e){o(e)}u.resolve(Sv(Rv(t,c))).then(function(e){try{if(Sv(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():nv(c,r,!1,n);else if(p)try{a[l++]=e,i()}catch(e){o(e)}else e?nv(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 iv(e,t){if(!zv||!Kv(e)||!zv(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 sv(e,t,r){r.get&&Gv(r.get,t,{getter:!0}),r.set&&Gv(r.set,t,{setter:!0}),Bv.f(e,t,r)}var av=o,uv=Tr,cn=Li,cv=mr,A=hf,C=b,un=bm,lv=hr("Promise"),fv=C.set,pv=C.getterFor("AsyncFromSyncIterator"),Lr=(rv.prototype=A(cn(un),{next:function(){var n=pv(this);return new lv(function(e,t){var r=uv(av(n.next,n.iterator));tv(r,e,t)})},return:function(){var n=pv(this).iterator;return new lv(function(e,t){var r=cv(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=uv(av(r,n));tv(r,e,t)})}}),rv),dv=o,hv=Lr,yv=Tr,vv=Yi,mv=mr,gv=w("asyncIterator"),wv=vr,Ev=Tr,bv=o,Tv=hr,_v=mr,Rv=o,Ov=vr,Sv=Tr,Cv=tf,Iv=hr,E={toArray:ov(0),forEach:ov(1),every:ov(2),some:ov(3),find:ov(4)},Nv=qi,Av=g,kv=k,xv=Yi,Pv=Xi,Dv=mr,Nc=fy,Mv=hr,Uv=Lr,Lv=E.toArray,jv=w("asyncIterator"),Fv=Nc("Array").values,Vv=(S({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(Mv("Promise"))(function(e){var t=Av(i),r=(void 0!==a&&(a=Nv(a,u)),Dv(t,jv)),n=r?void 0:Pv(t)||Fv,o=kv(s)?new s:[],r=r?function(e,t){t=arguments.length<2?mv(e,gv):t;return t?yv(dv(t,e)):new hv(vv(e))}(t,r):new Uv(xv(t,n));e(Lv(r,a,o))})}}),p.filterReject),To=x,Hv=(S({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return Vv(this,e,1<arguments.length?arguments[1]:void 0)}}),To("filterOut"),p.filterReject),Ta=x,T=(S({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return Hv(this,e,1<arguments.length?arguments[1]:void 0)}}),Ta("filterReject"),S),Kv=P,zv=Object.isFrozen,Gv=(T({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!iv(e,!0))return!1;var t=e.raw;return t.length===e.length&&iv(t,!1)}}),zr.exports),Bv=R,Ui=x,qv=g,$v=O,Ro=(r&&(sv(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=qv(this),t=$v(e);return 0==t?void 0:e[t-1]},set:function(e){var t=qv(this),r=$v(t);return t[0==r?0:r-1]=e}}),Ui("lastItem")),x),Xv=g,Yv=O,Ur=(r&&(sv(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=Xv(this),e=Yv(e);return 0==e?0:e-1}}),Ro("lastIndex")),e),Wv=vr,Jv=O,Zv=g,Qv=rf,em=hr("Map"),rc=em.prototype,tm=Ur(rc.forEach),rm=Ur(rc.has),nm=Ur(rc.set),om=Ur([].push),ra=x;S({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=Zv(this),o=Jv(n),i=Qv(n,0),s=new em,a=null!=e?Wv(e):function(e){return e},u=0;u<o;u++)r=a(t=n[u]),rm(s,r)||nm(s,r,t);return tm(s,function(e){om(i,e)}),i}}),ra("uniqueBy");function im(e,t,r,n){this.valueId=e,this.value=t,this.reason=r,this.properties=n}zg.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},zg.prototype.refresh=function(){this.stop(),this.start()},zg.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)};var sm,am=zg,um=(Kg.prototype.start=function(){this.started=!0},Kg.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},Kg.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},Kg.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},Kg.prototype.close=function(){this.stop()},Kg),cm=(Hg.prototype.isClientError=function(e){return!!(e&&400<=e.statusCode&&e.statusCode<500)},Hg.prototype.drainRepository=function(i){var e=this;return new Promise(function(o){return fe(e,void 0,void 0,function(){var t,r,n=this;return pe(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]}})})})},Hg.prototype.drainQueue=function(o,i){var e=this,s=o.map(function(e){return e.toDto()});return new Promise(function(n){return fe(e,void 0,void 0,function(){var t,r=this;return pe(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]})})})},Hg.prototype.process=function(e){this.queue.enqueue(e)},Hg.prototype.start=function(){return fe(this,void 0,void 0,function(){return pe(this,function(e){return this.queue.start(),[2]})})},Hg.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},Hg.prototype.flush=function(){this.queue.flush()},Hg.prototype.close=function(){this.stop()},Hg),lm=(Vg.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]})},Vg),fm=(Fg.prototype.process=function(e){var t;this.exposureEventDedupDeterminer.isDedupTarget(e)||(this.userManager.updateUser(e.user,e.timestamp),this.sessionManager.startNewSessionIfNeeded(e.timestamp),this.delegate.process((e=e,null===(t=this.sessionManager).sessionId||e.user.identifiers[Ke.SESSION]?e:e.copyWithUser(le(le({},e.user),{identifiers:le(le({},e.user.identifiers),((e={})[Ke.SESSION]=t.sessionId,e))})))))},Fg.prototype.close=function(){this.delegate.close()},Fg.prototype.flush=function(){this.delegate.flush()},Fg.prototype.start=function(){return this.delegate.start()},Fg),pm=(jg.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!Tt.isExposure(e))return!1;lm.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)},jg),dm=(Lg.toEvent=function(e){var t;return{key:Lg.EVENT_KEY,properties:{level:Lg.LEVEL_ERROR,type:e.name,message:null!=(t=e.message)?t:"",$stacktrace:Lg._stacktrace(e)}}},Lg._stacktrace=function(e){return a.isNullOrUndefined(e.stack)?"":e.stack.split("\n").slice(0,Lg.STACK_TRACK_LIMIT).join("\n")},Lg.EVENT_KEY="$trace",Lg.LEVEL_ERROR="error",Lg.STACK_TRACK_LIMIT=30,Lg),hm=de.log,ym=(Ug.prototype._experiment=function(e,t,r){if(!e)return hm.error("experimentKey must not be empty"),Le.of(r,u.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return hm.warn("SDK not ready."),Le.of(r,u.SDK_NOT_READY);e=n.getExperimentOrNull(e);if(!e)return hm.warn("Experiment does not exist."),Le.of(r,u.EXPERIMENT_NOT_FOUND);n=this.evaluator.evaluate(n,e,t,r),this.eventProcessor.process(Tt.exposure(e,t,n)),e=null!=(r=n.config)?r:new Fe;return Le.of(n.variationKey,n.reason,e)},Ug.prototype._featureFlag=function(e,t){if(!e)return hm.error("featureKey must not be empty"),je.off(u.INVALID_INPUT);var r=this.workspaceFetcher.get();if(!r)return hm.warn("SDK not ready."),je.off(u.SDK_NOT_READY);var e=r.getFeatureFlagOrNull(e);if(!e)return hm.warn("FeatureFlag does not exist."),je.off(u.FEATURE_FLAG_NOT_FOUND);r=this.evaluator.evaluate(r,e,t,"A"),this.eventProcessor.process(Tt.exposure(e,t,r)),t=null!=(e=r.config)?e:new Fe;return"A"===r.variationKey?je.off(r.reason,t):je.on(r.reason,t)},Ug.prototype._track=function(e,t){var r;e?"object"==typeof e?"object"!=typeof e||e.key&&"string"==typeof e.key?(r=(null==(r=this.workspaceFetcher.get())?void 0:r.getEventTypeOrNull(e.key))||new Te(0,e.key),this.eventProcessor.process(Tt.track(r,e,t))):hm.warn("Event key must be not null. or event key must be string type."):hm.warn("Event must be event type."):hm.warn("event must not be null.")},Ug.prototype._trackException=function(e,t){this.errorDedupDeterminer.isDedupTarget(e)||(e=dm.toEvent(e),this._flush(),this._track(e,t),this._flush())},Ug.prototype._flush=function(){this.eventProcessor.flush()},Ug.prototype._remoteConfig=function(e,t,r,n){var o=this.workspaceFetcher.get();if(a.isNullOrUndefined(o))return hm.warn("SDK not ready."),Ue.of(n,u.SDK_NOT_READY);e=o.getRemoteConfigParameterOrNull(e);if(a.isNullOrUndefined(e))return hm.warn("Remote config parameter does not exist."),Ue.of(n,u.REMOTE_CONFIG_PARAMETER_NOT_FOUND);o=this.evaluator.remoteConfigEvaluate(o,e,t,r,n);return this.eventProcessor.process(Tt.remoteConfig(e,t,o)),Ue.of(o.value,o.reason)},Ug.prototype._onReady=function(e,t){this._onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},Ug.prototype._onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(hm.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?hm.debug("HackleClient onInitialized Success"):e.error instanceof Error?hm.error("HackleClient onInitialized Failed. ".concat(e.error.message)):hm.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},Ug.prototype._close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},Ug),vm=(Mg.prototype.isDedupTarget=function(e){return!!this._isSameError(e,this.previous)||(this.previous=e,!1)},Mg.prototype._isSameError=function(e,t){return!a.isNullOrUndefined(t)&&e.name===t.name&&e.message===t.message&&e.stack===t.stack},Mg),mm=(Dg.of=function(e,t,r,n){t=t._getVariationByKeyOrNull(r);return a.isNotNullOrUndefined(t)?Dg.withVariation(e,t,n):new Dg(void 0,r,n,void 0)},Dg.withVariation=function(e,t,r){e=this.config(e,t);return new Dg(t.id,t.key,r,e)},Dg.config=function(e,t){if(!a.isNullOrUndefined(t.parameterConfigurationId))return a.requiredNotNullOrUndefined(e.getParameterConfigurationOrNull(t.parameterConfigurationId),function(){return"ParameterConfiguration[".concat(t.parameterConfigurationId,"]")})},Dg),gm=(Pg.prototype.evaluate=function(e,t,r,n){return this.evaluationFlowFactory.getFlow(t.type).evaluate(e,t,r,n)},Pg.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 im(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)},Pg.prototype.getRemoteConfigEvaluationWithTypeCheck=function(e,t,r,n,o){return"UNKNOWN"===r||"NULL"!==r&&typeof n!=typeof e.rawValue?(o.returnValue=n,new im(void 0,n,u.TYPE_MISMATCH,o)):(o.returnValue=e.rawValue,new im(e.id,e.rawValue,t,o))},Pg),wm=(xg.prototype.matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n._matches(e,t,r)})},xg.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(e.key.type).matches(e,t,r)},xg),c=(kg.prototype.matches=function(t,e){var r=this.valueMatcherFactory.getMatcher(e.valueType),n=this.operatorMatcherFactory.getMatcher(e.operator),o=e.values.some(function(e){return r.matches(n,t,e)});return this._matches(e.type,o)},kg.prototype._matches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},kg),d=(Ag.prototype.booleanMatches=function(e,t){return e===t},Ag.prototype.numberMatches=function(e,t){return e===t},Ag.prototype.stringMatches=function(e,t){return e===t},Ag.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},Ag),tn=(Ng.prototype.booleanMatches=function(e,t){return!1},Ng.prototype.numberMatches=function(e,t){return!1},Ng.prototype.stringMatches=function(e,t){return e.includes(t)},Ng.prototype.versionMatches=function(e,t){return!1},Ng),Jn=(Ig.prototype.booleanMatches=function(e,t){return!1},Ig.prototype.numberMatches=function(e,t){return!1},Ig.prototype.stringMatches=function(e,t){return e.startsWith(t)},Ig.prototype.versionMatches=function(e,t){return!1},Ig),I=(Cg.prototype.booleanMatches=function(e,t){return!1},Cg.prototype.numberMatches=function(e,t){return!1},Cg.prototype.stringMatches=function(e,t){return e.endsWith(t)},Cg.prototype.versionMatches=function(e,t){return!1},Cg),N=(Sg.prototype.booleanMatches=function(e,t){return!1},Sg.prototype.numberMatches=function(e,t){return t<e},Sg.prototype.stringMatches=function(e,t){return!1},Sg.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},Sg),kc=(Og.prototype.booleanMatches=function(e,t){return!1},Og.prototype.numberMatches=function(e,t){return t<=e},Og.prototype.stringMatches=function(e,t){return!1},Og.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},Og),hn=(Rg.prototype.booleanMatches=function(e,t){return!1},Rg.prototype.numberMatches=function(e,t){return e<t},Rg.prototype.stringMatches=function(e,t){return!1},Rg.prototype.versionMatches=function(e,t){return e.isLessThan(t)},Rg),s=(_g.prototype.booleanMatches=function(e,t){return!1},_g.prototype.numberMatches=function(e,t){return e<=t},_g.prototype.stringMatches=function(e,t){return!1},_g.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},_g),Em=(Tg.prototype.getMatcher=function(e){switch(e){case"IN":return Tg.IN_MATCHER;case"CONTAINS":return Tg.CONTAINS_MATCHER;case"STARTS_WITH":return Tg.STARTS_WITH_MATCHER;case"ENDS_WITH":return Tg.ENDS_WITH_MATCHER;case"GT":return Tg.GT_MATCHER;case"GTE":return Tg.GTE_MATCHER;case"LT":return Tg.LT_MATCHER;case"LTE":return Tg.LTE_MATCHER}},Tg.IN_MATCHER=new d,Tg.CONTAINS_MATCHER=new tn,Tg.STARTS_WITH_MATCHER=new Jn,Tg.ENDS_WITH_MATCHER=new I,Tg.GT_MATCHER=new N,Tg.GTE_MATCHER=new kc,Tg.LT_MATCHER=new hn,Tg.LTE_MATCHER=new s,Tg),sa=(bg.prototype.matches=function(e,t,r){return"string"==typeof t&&"string"==typeof r&&e.stringMatches(t,r)},bg),vo=(Eg.prototype.matches=function(e,t,r){return"number"==typeof t&&"number"==typeof r&&e.numberMatches(t,r)},Eg),i=(wg.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},wg),Li=(gg.prototype.matches=function(e,t,r){t=at.tryParse(t),r=at.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},gg),b=(mg.prototype.matches=function(e,t,r){return!1},mg),bm=(vg.prototype.getMatcher=function(e){switch(e){case"STRING":case"JSON":return vg.STRING_MATCHER;case"NUMBER":return vg.NUMBER_MATCHER;case"BOOLEAN":return vg.BOOLEAN_MATCHER;case"VERSION":return vg.VERSION_MATCHER;case"NULL":case"UNKNOWN":return vg.NULL_MATCHER}},vg.STRING_MATCHER=new sa,vg.NUMBER_MATCHER=new vo,vg.BOOLEAN_MATCHER=new i,vg.VERSION_MATCHER=new Li,vg.NULL_MATCHER=new b,vg),C=(yg.prototype.matches=function(e,t,r){r=this.userValueResolver.resolveOrNull(r,e.key);return!a.isNullOrUndefined(r)&&this.valueOperatorMatcher.matches(r,e.match)},yg),A=(hg.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,"]"))}},hg),cn=(dg.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}},dg.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,"]"))},dg),un=(pg.prototype.matches=function(e,t,r){var n=this;return e.targets.some(function(e){return n._matches(e,t,r)})},pg.prototype._matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(e,t,r)})},pg),Tm=(fg.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return fg.USER_CONDITION_MATCHER;case"SEGMENT":return fg.SEGMENT_CONDITION_MATCHER}},fg.USER_CONDITION_MATCHER=new C(new A,new c(new bm,new Em)),fg.SEGMENT_CONDITION_MATCHER=new cn(new un(fg.USER_CONDITION_MATCHER)),fg),_m=(lg.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)}},lg.prototype._resolveVariation=function(e,t){return t._getVariationByIdOrNull(e.variationId)},lg.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)}},lg),Rm={murmurhash3_x86_32:function(e,t,r,n){for(var o,i=3432918353,s=461845907,a=-4&(n=void 0===n?e.length:n),u=t,c=0;c<a;c+=4)o=255&e.charCodeAt(c)|(255&e.charCodeAt(c+1))<<8|(255&e.charCodeAt(c+2))<<16|(255&e.charCodeAt(c+3))<<24,o=(131071&(o=this.mul32(o,i)))<<15|o>>>17,u=5*((524287&(u^=o=this.mul32(o,s)))<<13|u>>>19)+3864292196|0;switch(o=0,n%4){case 3:o=(255&e.charCodeAt(2+a))<<16;case 2:o|=(255&e.charCodeAt(1+a))<<8;case 1:o|=255&e.charCodeAt(a),o=(131071&(o=this.mul32(o,i)))<<15|o>>>17,u^=o=this.mul32(o,s)}return u=this.mul32(u=(u^=n)^u>>>16,2246822507),(u=this.mul32(u^=u>>>13,3266489909))^u>>>16},mul32:function(e,t){var r=65535&t;return((t-r)*e|0)+(r*e|0)|0}},Om=(cg.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},cg.prototype.calculateSlotNumber=function(e,t,r){r=Rm.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},cg),Sm=(ug.prototype.evaluate=function(e,t,r,n){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,r,n,this.nextFlow):mm.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},ug.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new ug,n=0,o=e.reverse();n<o.length;n++)r=new ug(o[n],r);return r},ug),Cm=(ag.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 mm.withVariation(e,i,u.OVERRIDDEN);case"FEATURE_FLAG":return mm.withVariation(e,i,u.INDIVIDUAL_TARGET_MATCH)}},ag),Im=(sg.prototype.evaluate=function(e,t,r,n,o){return"DRAFT"===t.status?mm.of(e,t,n,u.EXPERIMENT_DRAFT):o.evaluate(e,t,r,n)},sg),Nm=(ig.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 mm.of(e,t,n,u.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return mm.of(e,t,n,u.FEATURE_FLAG_INACTIVE)}},ig),Am=(og.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 mm.withVariation(e,o,u.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(t.id,"]"))},og),km=(ng.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):mm.of(e,t,n,u.NOT_IN_EXPERIMENT_TARGET)},ng),xm=(rg.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?mm.of(e,t,n,u.VARIATION_DROPPED):mm.withVariation(e,r,u.TRAFFIC_ALLOCATED):mm.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},rg),Pm=(tg.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 mm.withVariation(e,o,u.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},tg),Dm=(eg.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 mm.of(e,t,n,u.DEFAULT_RULE);n=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);if(n)return mm.withVariation(e,n,u.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},eg),Mm=(Qm.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):mm.of(e,t,n,u.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("bucket[".concat(s.bucketId,"]"))},Qm),Um=(Zm.prototype.evaluate=function(e,t,r,n,o){return r.identifiers[t.identifierType]?o.evaluate(e,t,r,n):mm.of(e,t,n,u.IDENTIFIER_NOT_FOUND)},Zm),Lm=(Jm.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)})},Jm),jm=(Wm.prototype.determineTargetRuleOrNull=function(t,e,r){var n=this;return e.targetRules.find(function(e){return n.targetMatcher.matches(e.target,t,r)})},Wm),Fm=(Ym.prototype.resolveOrNull=function(e,t,r){return this._resolveUserOverride(t,r)||this._resolveSegmentOverride(e,t,r)},Ym.prototype._resolveUserOverride=function(e,t){t=t.identifiers[e.identifierType];if(t){t=e.userOverrides.get(t);if(t)return e._getVariationByIdOrNull(t)}},Ym.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)},Ym),Vm=(Xm.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,"]"))},Xm),Hm=($m.prototype.determineTargetRuleOrNull=function(t,r,n){var o=this;return r.targetRules.find(function(e){return o.matches(e,t,r,n)})},$m.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))},$m),Km=(qm.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},qm.prototype.getRemoteConfigParameterTargetRuleDeterminer=function(){return this.remoteConfigParameterTargetRuleDeterminer},qm),zm=(Bm.prototype.install=function(e,t){this._install("onerror",e,t),this._install("onunhandledrejection",e,t)},Bm.prototype._install=function(e,t,r){e in this._installed||((0,this._installations[e])(t,r),this._installed.push(e))},Bm),Gm=null;function Bm(){this._installed=[],this._installations={onerror:Gg,onunhandledrejection:Bg}}function qm(){var e=new Om,t=new wm(new Tm),r=new _m(e),n=new Fm(t,r),o=new Vm(e);this.abTestFlow=Sm.of(new Cm(n),new Um,new Mm(o),new km(new Lm(t)),new Im,new Nm,new Am,new xm(r)),this.featureFlagFlow=Sm.of(new Im,new Nm,new Am,new Cm(n),new Um,new Pm(new jm(t),r),new Dm(r)),this.remoteConfigParameterTargetRuleDeterminer=new Hm(t,e)}function $m(e,t){this.targetMatcher=e,this.bucketer=t}function Xm(e){this.bucketer=e}function Ym(e,t){this.targetMatcher=e,this.actionResolver=t}function Wm(e){this.targetMatcher=e}function Jm(e){this.targetMatcher=e}function Zm(){}function Qm(e){this.containerResolver=e}function eg(e){this.actionResolver=e}function tg(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function rg(e){this.actionResolver=e}function ng(e){this.experimentTargetDeterminer=e}function og(){}function ig(){}function sg(){}function ag(e){this.overrideResolver=e}function ug(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function cg(){}function lg(e){this.bucketer=e}function fg(){}function pg(e){this.userConditionMatcher=e}function dg(e){this.segmentMatcher=e}function hg(){}function yg(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function vg(){}function mg(){}function gg(){}function wg(){}function Eg(){}function bg(){}function Tg(){}function _g(){}function Rg(){}function Og(){}function Sg(){}function Cg(){}function Ig(){}function Ng(){}function Ag(){}function kg(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function xg(e){this.conditionMatcherFactory=e}function Pg(e){this.evaluationFlowFactory=e}function Dg(e,t,r,n){this.variationId=e,this.variationKey=t,this.reason=r,this.config=n}function Mg(){}function Ug(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 Lg(){}function jg(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function Fg(e,t,r,n){this.delegate=e,this.exposureEventDedupDeterminer=t,this.sessionManager=r,this.userManager=n}function Vg(){}function Hg(e,t,r,n){void 0===n&&(n=null),this.eventDispatcher=e,this.flushInterval=r,this.queue=new um(this.drainQueue.bind(this),t,r),this.repository=n}function Kg(e,t,r){this.buffer=[],this.sink=e,this.maxQueueSize=t,this.timer=new am({callback:this.flush.bind(this),timeout:r}),this.started=!1}function zg(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function Gg(i,s){Gm=window.onerror,window.onerror=function(e,t,r,n,o){a.isNotNullOrUndefined(o)&&i._trackException(o,s.resolveAnonymousUser()),Gm&&Gm.apply(this,arguments)}}function Bg(r,n){sm=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.resolveAnonymousUser()),sm&&sm.apply(this,arguments)}}e0.prototype.read=function(){var r=this;return new Promise(function(e){var t=r.storage.getItem(r.storageKey);t&&e(JSON.parse(t)),e([])})},e0.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()})},e0.prototype.add=function(t){var r=this;return this.read().then(function(e){return r.save(e.concat(t).slice(-r.maxSize))})},e0.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)})},e0.prototype.clear=function(){var t=this;return new Promise(function(e){localStorage.removeItem(t.storageKey),e()})};var qg=e0,$g=(Object.defineProperty(Qg.prototype,"currentUser",{get:function(){return this._currentUser},enumerable:!1,configurable:!0}),Qg.prototype.addListener=function(e){this.userListeners.push(e)},Qg.prototype.updateUser=function(e,t){this.isUserChanged(e)&&this.changeUser(e,t),this._currentUser=e},Qg.prototype.changeUser=function(t,r){this.userListeners.forEach(function(e){e.onUserUpdated(t,r)})},Qg.prototype.isUserChanged=function(e){return null!==this._currentUser&&(t=this._currentUser,e=e,!(a.isNotNullOrUndefined(t.identifiers[Ke.USER])&&a.isNotNullOrUndefined(e.identifiers[Ke.USER])?t.identifiers[Ke.USER]===e.identifiers[Ke.USER]:t.identifiers[Ke.DEVICE]===e.identifiers[Ke.DEVICE]));var t},Qg),Xg=(Object.defineProperty(Zg.prototype,"sessionId",{get:function(){return null===this._sessionId?Zg.EMPTY_SESSION_ID:this._sessionId},enumerable:!1,configurable:!0}),Object.defineProperty(Zg.prototype,"lastEventTime",{get:function(){return this._lastEventTime},enumerable:!1,configurable:!0}),Zg.prototype.addListener=function(e){this.sessionListeners.push(e)},Zg.prototype.startNewSession=function(e){return this.endSession(),this.newSession(e)},Zg.prototype.startNewSessionIfNeeded=function(e){this.loadSession(),this.loadLastEventTime();var t=this._lastEventTime;return null!==t&&null!==this._sessionId&&e-t<this.timeoutInMs?(this.updateLastEventTime(e),this._sessionId):this.startNewSession(e)},Zg.prototype.endSession=function(){var t,r;this.loadSession(),this.loadLastEventTime(),null!==this._sessionId&&null!==this._lastEventTime&&(t=this._sessionId,r=this._lastEventTime,this.sessionListeners.forEach(function(e){e.onSessionEnded(t,r)}))},Zg.prototype.newSession=function(t){var r="".concat(t,".").concat(ae.v4().slice(0,8));return this.saveSession(r),this.updateLastEventTime(t),this.sessionListeners.forEach(function(e){e.onSessionStarted(r,t)}),r},Zg.prototype.saveSession=function(e){this._sessionId=e,this.storage.setItem(this.sessionStorageKey,e)},Zg.prototype.loadSession=function(){var e=this.storage.getItem(this.sessionStorageKey);this._sessionId=e},Zg.prototype.loadLastEventTime=function(){var e=this.storage.getItem(this.lastEventTimeStorageKey);null!==e&&0<(e=Number.parseFloat(e))&&(this._lastEventTime=e)},Zg.prototype.updateLastEventTime=function(e){this._lastEventTime=e,this.storage.setItem(this.lastEventTimeStorageKey,"".concat(e))},Zg.prototype.onUserUpdated=function(e,t){this.startNewSession(t)},Zg.EMPTY_SESSION_ID="0.ffffffff",Zg),Yg=de.log,Wg=null,Jg={debug:!1,log_disabled:!1,auto_track_page_view:!1,pollingIntervalMillis:-1,exposureEventDedupIntervalMillis:-1,sessionTimeoutMillis:18e5,SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.8.0"};function Zg(e,t,r,n){this.timeoutInMs=e,this.storage=t,this.sessionStorageKey=r,this.lastEventTimeStorageKey=n,this.sessionListeners=[],this._sessionId=null,this._lastEventTime=null,this.timeoutInMs=e,this.storage=t,this.sessionStorageKey=r,this.loadSession(),this.loadLastEventTime()}function Qg(){this.userListeners=[],this._currentUser=null}function e0(e,t,r){this.storage=e,this.storageKey=t,this.maxSize=r}function t0(e,t){t=le(le({},Jg),t);if(t.log_disabled?de.setLogLevel(0):t.debug&&de.setLogLevel(4),Yg.debug("sdkKey : "+e),e||Yg.error("SDK Key must not be null"),Wg)return Yg.debug("use already exists hackleClient"),Wg;var r=!1,r=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&Yg.debug("support sendBeacon API"),new jt(e,De,{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 Ht(e,De,{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?(Yg.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):t.exposureEventDedupIntervalMillis),new qg(window.localStorage,"".concat("hackle-repository-storage","_").concat(e),100)),s=new $g,e=new Xg(t.sessionTimeoutMillis,Bt,"".concat("_hackle_session_id","_").concat(e.slice(8)),"".concat("_hackle_last_event_ts","_").concat(e.slice(8)));s.addListener(e);function a(){l.drainRepository()}var u,c,l=new cm(r,100,500,i),r=new pm(o),i=new fm(l,r,e,s),o=new ym(n,i,new gm(new Km),new vm),r=new qt,f=new Et(o,r,e);Wg=f,t.auto_track_page_view&&(c=function(){return u.trackPageView({user:{id:rr()}})},(u=f).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}c();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)Yg.error(e);else try{Yg.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)Yg.error(e);else try{Yg.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(t("locationchange"))}catch(e){if(e instanceof Error)Yg.error(e);else try{Yg.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{c()}catch(e){if(e instanceof Error)Yg.error(e);else try{Yg.error(e)}catch(e){}}})}catch(t){if(t instanceof Error)Yg.error(t);else try{Yg.error(t)}catch(t){}}var r,n})),(new zm).install(o,r);return document.addEventListener("visibilitychange",function(){document.hidden||a()}),window.addEventListener("pageshow",a),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){or(),f.close()}),f}var o={createInstance:t0,getUserId:rr,setUserId:nr,removeUserId:or,Logger:de},r0=(f.Bucket=t.Bucket=be,f.Container=t.Container=Ge,f.ContainerGroup=t.ContainerGroup=Ae,f.CoreVersion=t.CoreVersion=ut,f.Decision=t.Decision=Le,f.DecisionReason=t.DecisionReason=u,f.EmptyHackleRemoteConfig=t.EmptyHackleRemoteConfig=ie,f.EmptyParameterConfig=t.EmptyParameterConfig=Fe,f.EventType=t.EventType=Te,f.Experiment=t.Experiment=Ve,f.FeatureFlagDecision=t.FeatureFlagDecision=je,f.IdentifierType=t.IdentifierType=Ke,f.IdentifiersBuilder=t.IdentifiersBuilder=ze,f.Logger=t.Logger=de,f.MATCH_OPERATORS=t.MATCH_OPERATORS=pt,f.MATCH_TYPES=t.MATCH_TYPES=lt,f.MATCH_VALUE_TYPES=t.MATCH_VALUE_TYPES=ft,f.MetaVersion=t.MetaVersion=ct,f.ParameterConfiguration=t.ParameterConfiguration=Be,f.RemoteConfigDecision=t.RemoteConfigDecision=Ue,f.RemoteConfigParameter=t.RemoteConfigParameter=ke,f.RemoteConfigParameterValue=t.RemoteConfigParameterValue=Pe,f.RemoteConfigTargetRule=t.RemoteConfigTargetRule=xe,f.SEGMENT_TYPES=t.SEGMENT_TYPES=yt,f.Segment=t.Segment=Ne,f.Slot=t.Slot=He,f.TARGET_ACTION_TYPES=t.TARGET_ACTION_TYPES=dt,f.TARGET_KEY_TYPES=t.TARGET_KEY_TYPES=ht,f.Target=t.Target=_e,f.TargetAction=t.TargetAction=Ce,f.TargetCondition=t.TargetCondition=Re,f.TargetKey=t.TargetKey=Oe,f.TargetMatch=t.TargetMatch=Se,f.TargetRule=t.TargetRule=Ie,f.TargetingType=t.TargetingType=vt,f.Variation=t.Variation=Ee,f.Version=t.Version=at,se=t.createInstance=t0,t.default=o,f.getUserId=t.getUserId=rr,f.removeUserId=t.removeUserId=or,f.setUserId=t.setUserId=nr,function(){return(r0=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 n0(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}i0.prototype.variation=function(e,t,r){return this.client.variation(e,t,r)},i0.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t,r)},i0.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t)},i0.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t)},i0.prototype.track=function(e,t){this.client.track(e,t)},i0.prototype.trackPageView=function(e){this.client.trackPageView(e)},i0.prototype.remoteConfig=function(e){return this.client.remoteConfig(e)},i0.prototype.onReady=function(e,t){this.client.onReady(e,t)},i0.prototype.onInitialized=function(e){return this.client.onInitialized(e)};var o0=i0;function i0(e,t){this.client=se(e,r0(r0({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.8.0"}))}var D={exports:{}},k={},s0=Object.getOwnPropertySymbols,a0=Object.prototype.hasOwnProperty,u0=Object.prototype.propertyIsEnumerable;var Lr=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]))a0.call(r,i)&&(n[i]=r[i]);if(s0)for(var s=s0(r),a=0;a<s.length;a++)u0.call(r,s[a])&&(n[s[a]]=r[s[a]])}return n},c0=Lr,E="function"==typeof Symbol&&Symbol.for,l0=E?Symbol.for("react.element"):60103,f0=E?Symbol.for("react.portal"):60106,Nc=E?Symbol.for("react.fragment"):60107,p0=E?Symbol.for("react.strict_mode"):60108,To=E?Symbol.for("react.profiler"):60114,d0=E?Symbol.for("react.provider"):60109,h0=E?Symbol.for("react.context"):60110,y0=E?Symbol.for("react.forward_ref"):60112,p=E?Symbol.for("react.suspense"):60113,v0=E?Symbol.for("react.memo"):60115,m0=E?Symbol.for("react.lazy"):60116,g0="function"==typeof Symbol&&Symbol.iterator;function w0(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 E0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b0={};function T0(e,t,r){this.props=e,this.context=t,this.refs=b0,this.updater=r||E0}function _0(){}function R0(e,t,r){this.props=e,this.context=t,this.refs=b0,this.updater=r||E0}T0.prototype.isReactComponent={},T0.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(w0(85));this.updater.enqueueSetState(this,e,t,"setState")},T0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_0.prototype=T0.prototype;var Ta=R0.prototype=new _0,O0=(Ta.constructor=R0,c0(Ta,T0.prototype),Ta.isPureReactComponent=!0,{current:null}),S0=Object.prototype.hasOwnProperty,C0={key:!0,ref:!0,__self:!0,__source:!0};function I0(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)S0.call(t,n)&&!C0.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:l0,type:e,key:i,ref:s,props:o,_owner:O0.current}}function N0(e){return"object"==typeof e&&null!==e&&e.$$typeof===l0}var A0=/\/+/g,k0=[];function x0(e,t,r,n){var o;return k0.length?((o=k0.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 P0(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,k0.length<10&&k0.push(e)}function D0(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 l0:case f0:i=!0}}if(i)return n(o,t,""===r?"."+M0(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+M0(a=t[s],s);i+=e(a,u,n,o)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=g0&&t[g0]||t["@@iterator"])?u:null))for(t=u.call(t),s=0;!(a=t.next()).done;)i+=e(a=a.value,u=r+M0(a,s++),n,o);else if("object"===a)throw n=""+t,Error(w0(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return i}(e,"",t,r)}function M0(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 U0(e,t){e.func.call(e.context,t,e.count++)}function L0(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?j0(e,n,r,function(e){return e}):null!=e&&(N0(e)&&(t=o+(!(o=e).key||t&&t.key===e.key?"":(""+e.key).replace(A0,"$&/")+"/")+r,e={$$typeof:l0,type:o.type,key:t,ref:o.ref,props:o.props,_owner:o._owner}),n.push(e))}function j0(e,t,r,n,o){var i="";D0(e,L0,t=x0(t,i=null!=r?(""+r).replace(A0,"$&/")+"/":i,n,o)),P0(t)}var F0={current:null};function V0(){var e=F0.current;if(null===e)throw Error(w0(321));return e}var H0,K0,z0,P={ReactCurrentDispatcher:F0,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:O0,IsSomeRendererActing:{current:!1},assign:c0},T=(k.Children={map:function(e,t,r){if(null==e)return e;var n=[];return j0(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;D0(e,U0,t=x0(null,null,t,r)),P0(t)},count:function(e){return D0(e,function(){return null},null)},toArray:function(e){var t=[];return j0(e,t,null,function(e){return e}),t},only:function(e){if(N0(e))return e;throw Error(w0(143))}},k.Component=T0,k.Fragment=Nc,k.Profiler=To,k.PureComponent=R0,k.StrictMode=p0,k.Suspense=p,k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,k.cloneElement=function(e,t,r){if(null==e)throw Error(w0(267,e));var n=c0({},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=O0.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)S0.call(t,a)&&!C0.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:l0,type:e.type,key:o,ref:i,props:n,_owner:s}},k.createContext=function(e,t){return(e={$$typeof:h0,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:d0,_context:e},e.Consumer=e},k.createElement=I0,k.createFactory=function(e){var t=I0.bind(null,e);return t.type=e,t},k.createRef=function(){return{current:null}},k.forwardRef=function(e){return{$$typeof:y0,render:e}},k.isValidElement=N0,k.lazy=function(e){return{$$typeof:m0,_ctor:e,_status:-1,_result:null}},k.memo=function(e,t){return{$$typeof:v0,type:e,compare:void 0===t?null:t}},k.useCallback=function(e,t){return V0().useCallback(e,t)},k.useContext=function(e,t){return V0().useContext(e,t)},k.useDebugValue=function(){},k.useEffect=function(e,t){return V0().useEffect(e,t)},k.useImperativeHandle=function(e,t,r){return V0().useImperativeHandle(e,t,r)},k.useLayoutEffect=function(e,t){return V0().useLayoutEffect(e,t)},k.useMemo=function(e,t){return V0().useMemo(e,t)},k.useReducer=function(e,t,r){return V0().useReducer(e,t,r)},k.useRef=function(e){return V0().useRef(e)},k.useState=function(e){return V0().useState(e)},k.version="16.14.0",{}),zr=Function.call.bind(Object.prototype.hasOwnProperty),G0=function(){};function B0(e,t,r,n,o){if("production"!==production)for(var i in e)if(z0(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,H0)}catch(e){s=e}!s||s instanceof Error||G0((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 K0)&&(K0[s.message]=!0,i=o?o():"",G0("Failed "+r+" type: "+s.message+(null!=i?i:"")))}}if("production"!==production&&(H0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",K0={},z0=zr,G0=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),B0.resetWarningCache=function(){"production"!==production&&(K0={})},"production"!==production){var q0=Lr,$0=B0,R="function"==typeof Symbol&&Symbol.for,X0=R?Symbol.for("react.element"):60103,Y0=R?Symbol.for("react.portal"):60106,W0=R?Symbol.for("react.fragment"):60107,J0=R?Symbol.for("react.strict_mode"):60108,Z0=R?Symbol.for("react.profiler"):60114,Q0=R?Symbol.for("react.provider"):60109,ew=R?Symbol.for("react.context"):60110,tw=R?Symbol.for("react.concurrent_mode"):60111,rw=R?Symbol.for("react.forward_ref"):60112,nw=R?Symbol.for("react.suspense"):60113,ow=R?Symbol.for("react.suspense_list"):60120,iw=R?Symbol.for("react.memo"):60115,sw=R?Symbol.for("react.lazy"):60116,aw=R?Symbol.for("react.block"):60121,uw=R?Symbol.for("react.fundamental"):60117,cw=R?Symbol.for("react.responder"):60118,lw=R?Symbol.for("react.scope"):60119,fw="function"==typeof Symbol&&Symbol.iterator,pw="@@iterator";function dw(e){if(null===e||"object"!=typeof e)return null;e=fw&&e[fw]||e[pw];return"function"==typeof e?e:null}var hw={current:null},yw={current:null},vw=/^(.*)[\\\/]/,mw=1;function gw(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 W0:return"Fragment";case Y0:return"Portal";case Z0:return"Profiler";case J0:return"StrictMode";case nw:return"Suspense";case ow:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ew:return"Context.Consumer";case Q0:return"Context.Provider";case rw:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case iw:return gw(e.type);case aw:return gw(e.render);case sw:r=(t=e)._status===mw?t._result:null;if(r)return gw(r)}var t,r;return null}var ww={},Ew=null;function bw(e){Ew=e}ww.getCurrentStack=null,ww.getStackAddendum=function(){var e,t,r,n,o,i="",s=(Ew&&(e=gw(Ew.type),r=Ew._owner,i+=(e=e,t=Ew._source,r=r&&gw(r.type),o="",t?(n=(s=t.fileName).replace(vw,""),o=" (at "+(n=/^index\./.test(n)&&(s=s.match(vw))&&(s=s[1])?s.replace(vw,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(o=" (created by "+r+")"),"\n in "+(e||"Unknown")+o)),ww.getCurrentStack);return s&&(i+=s()||""),i};var Tw={ReactCurrentDispatcher:hw,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:yw,IsSomeRendererActing:{current:!1},assign:q0};function _w(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];Rw("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];Rw("error",e,r)}function Rw(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=Tw.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){}}q0(Tw,{ReactDebugCurrentFrame:ww,ReactComponentTreeHook:{}});var Ow={};function Sw(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;Ow[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),Ow[r]=!0)}var Cw={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){Sw(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){Sw(e,"replaceState")},enqueueSetState:function(e,t,r,n){Sw(e,"setState")}},Iw={};function Nw(e,t,r){this.props=e,this.context=t,this.refs=Iw,this.updater=r||Cw}Object.freeze(Iw),Nw.prototype.isReactComponent={},Nw.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")},Nw.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var Aw,kw={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(Aw in kw)kw.hasOwnProperty(Aw)&&!function(e,t){Object.defineProperty(Nw.prototype,e,{get:function(){_w("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(Aw,kw[Aw]);function xw(){}function Pw(e,t,r){this.props=e,this.context=t,this.refs=Iw,this.updater=r||Cw}xw.prototype=Nw.prototype,(R=Pw.prototype=new xw).constructor=Pw,q0(R,Nw.prototype),R.isPureReactComponent=!0;var Dw,Mw,Uw=Object.prototype.hasOwnProperty,Lw={key:!0,ref:!0,__self:!0,__source:!0};function jw(e){if(Uw.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function Fw(e){if(Uw.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var Vw={},Hw=function(e,t,r,n,o,i,s){e={$$typeof:X0,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 Kw(e,t,r){var n,o={},i=null,s=null,a=null,u=null;if(null!=t)for(n in jw(t)&&(s=t.ref,"string"==typeof(c=t).ref&&yw.current&&c.__self&&yw.current.stateNode!==c.__self&&(f=gw(yw.current.type),Vw[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',gw(yw.current.type),c.ref),Vw[f]=!0))),Fw(t)&&(i=""+t.key),a=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)Uw.call(t,n)&&!Lw.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(){Mw||(Mw=!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(){Dw||(Dw=!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}))),Hw(e,i,s,a,u,yw.current,o)}function zw(e){return"object"==typeof e&&null!==e&&e.$$typeof===X0}var Gw=".",Bw=":",qw=!1,$w=/\/+/g;function Xw(e){return(""+e).replace($w,"$&/")}var Yw=10,Ww=[];function Jw(e,t,r,n){var o;return Ww.length?((o=Ww.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,Ww.length<Yw&&Ww.push(e)}function Qw(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 X0:case Y0:a=!0}}if(a)return n(o,t,""===r?Gw+e1(t,0):r),1;var u=0,c=""===r?Gw:r+Bw;if(Array.isArray(t))for(var l=0;l<t.length;l++)u+=e(i=t[l],c+e1(i,l),n,o);else if("function"==typeof(r=dw(t))){r===t.entries&&(qw||_w("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."),qw=!0);for(var f,p=r.call(t),d=0;!(f=p.next()).done;)u+=e(i=f.value,c+e1(i,d++),n,o)}else if("object"==s)throw r="",r=" If you meant to render a collection of children, use an array instead."+ww.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 e1(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 t1(e,t,r){var n=e.func,o=e.context;n.call(o,t,e.count++)}function r1(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)?n1(i,n,r,function(e){return e}):null!=i&&(zw(i)&&(e=o+(!(s=i).key||t&&t.key===i.key?"":Xw(i.key)+"/")+r,i=Hw(s.type,e,s.ref,s._self,s._source,s._owner,s.props)),n.push(i))}function n1(e,t,r,n,o){var i="",t=Jw(t,i=null!=r?Xw(r)+"/":i,n,o);Qw(e,r1,t),Zw(t)}function o1(e){return"string"==typeof e||"function"==typeof e||e===W0||e===tw||e===Z0||e===J0||e===nw||e===ow||"object"==typeof e&&null!==e&&(e.$$typeof===sw||e.$$typeof===iw||e.$$typeof===Q0||e.$$typeof===ew||e.$$typeof===rw||e.$$typeof===uw||e.$$typeof===cw||e.$$typeof===lw||e.$$typeof===aw)}function i1(){var e=hw.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 s1(){if(yw.current){var e=gw(yw.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var a1=!1,u1={};function c1(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=s1())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),u1[t=r]||(u1[t]=!0,r="",e&&e._owner&&e._owner!==yw.current&&(r=" It was passed a child from "+gw(e._owner.type)+"."),bw(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),bw(null)))}function l1(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];zw(n)&&c1(n,t)}else if(zw(e))e._store&&(e._store.validated=!0);else if(e){var o=dw(e);if("function"==typeof o&&o!==e.entries)for(var i,s=o.call(e);!(i=s.next()).done;)zw(i.value)&&c1(i.value,t)}}function f1(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=gw(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==rw&&t.$$typeof!==iw)return;r=t.propTypes}r?(bw(e),$0(r,e.props,"prop",n,ww.getStackAddendum),bw(null)):void 0===t.PropTypes||a1||(a1=!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 p1(e,t,r){var n,o=o1(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+".":"")||s1(),null===e?s="null":Array.isArray(e)?s="array":void 0!==e&&e.$$typeof===X0?(s="<"+(gw(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)),Kw.apply(this,arguments));if(null==t)return t;if(o)for(var i=2;i<arguments.length;i++)l1(arguments[i],e);if(e===W0){var s=t;bw(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`."),bw(null)}else f1(t);return t}var d1=!1;try{var h1=Object.freeze({}),y1=new Map([[h1,null]]),v1=new Set([h1]);y1.set(0,0),v1.add(0)}catch(e){}function m1(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=q0({},e.props),s=e.key,a=e.ref,u=e._self,c=e._source,l=e._owner;if(null!=t)for(n in jw(t)&&(a=t.ref,l=yw.current),Fw(t)&&(s=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)Uw.call(t,n)&&!Lw.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 Hw(e.type,s,a,u,c,l,i)}.apply(this,arguments),o=2;o<arguments.length;o++)l1(arguments[o],n.type);return f1(n),n}function g1(e){var t=p1.bind(null,e);return t.type=e,d1||(d1=!0,_w("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 _w("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}R=p1,T.Children={map:function(e,t,r){if(null==e)return e;var n=[];return n1(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=Jw(null,null,t,r),Qw(e,t1,t),Zw(t)},count:function(e){return Qw(e,function(){return null},null)},toArray:function(e){var t=[];return n1(e,t,null,function(e){return e}),t},only:function(e){if(zw(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},T.Component=Nw,T.Fragment=W0,T.Profiler=Z0,T.PureComponent=Pw,T.StrictMode=J0,T.Suspense=nw,T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Tw,T.cloneElement=m1,T.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:ew,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:Q0,_context:r}),o=!1,t={$$typeof:ew,_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},T.createElement=R,T.createFactory=g1,T.createRef=function(){var e={current:null};return Object.seal(e),e},T.forwardRef=function(e){return null!=e&&e.$$typeof===iw?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:rw,render:e}},T.isValidElement=zw,T.lazy=function(e){var t,r,n={$$typeof:sw,_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},T.memo=function(e,t){return o1(e)||M("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:iw,type:e,compare:void 0===t?null:t}},T.useCallback=function(e,t){return i1().useCallback(e,t)},T.useContext=function(e,t){var r,n=i1();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)},T.useDebugValue=function(e,t){return i1().useDebugValue(e,t)},T.useEffect=function(e,t){return i1().useEffect(e,t)},T.useImperativeHandle=function(e,t,r){return i1().useImperativeHandle(e,t,r)},T.useLayoutEffect=function(e,t){return i1().useLayoutEffect(e,t)},T.useMemo=function(e,t){return i1().useMemo(e,t)},T.useReducer=function(e,t,r){return i1().useReducer(e,t,r)},T.useRef=function(e){return i1().useRef(e)},T.useState=function(e){return i1().useState(e)},T.version="16.14.0"}"production"===production?D.exports=k:D.exports=T;var w1=D.exports,E1=D.exports.createContext({hackle:void 0,user:void 0,initialized:!1}),Ui=E1.Consumer,b1=E1.Provider;var T1=f.Logger.log;function _1(e,t){e=R1(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function R1(e,t){void 0===t&&(t="A");var r=D.exports.useContext(E1),n=r.hackle,o=r.user,i=r.initialized,s=D.exports.useCallback(function(){return i?(null==n?void 0:n.variationDetail(e,o))||f.Decision.of(t,f.DecisionReason.EXCEPTION):f.Decision.of(t,f.DecisionReason.SDK_NOT_READY)},[t,e,o,n,i]),r=n0(D.exports.useState(function(){return n?s():(T1.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2),a=r[0],r=r[1],u={key:e,user:o,initialized:i},c=n0(D.exports.useState(u),2),l=c[0],c=c[1];return C1(l,u)||(c(u),r(s())),{isLoading:!i,decision:a}}function O1(e){e=S1(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function S1(e){var t=D.exports.useContext(E1),r=t.hackle,n=t.user,o=t.initialized,i=D.exports.useCallback(function(){return o?(null==r?void 0:r.featureFlagDetail(e,n))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION):f.FeatureFlagDecision.off(f.DecisionReason.SDK_NOT_READY)},[e,n,r,o]),t=n0(D.exports.useState(function(){return r?i():(T1.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2),s=t[0],t=t[1],a={key:e,user:n,initialized:o},u=n0(D.exports.useState(a),2),c=u[0],u=u[1];return C1(c,a)||(u(a),t(i())),{isLoading:!o,decision:s}}function C1(e,t){var r,n,o;return e.initialized===t.initialized&&e.key===t.key&&(null==(r=e.user)?void 0:r.id)===(null==(r=t.user)?void 0:r.id)&&(e=null==(r=e.user)?void 0:r.properties,t=null==(r=t.user)?void 0:r.properties,n=I1(e),o=I1(t),e=Object.keys(n),t=Object.keys(o),e.length===t.length&&e.every(function(e){return e in o&&n[e]===o[e]}))}function I1(e){return"object"==typeof e&&null!==e?e:{}}function N1(e){var t,r=e.experimentKey,e=e.children,n=(r=_1(r)).isLoading,o=r.variation;return n?null:e&&"function"==typeof e?e(o):(D.exports.Children.forEach(e,function(e){D.exports.isValidElement(e)&&(e.props.variation?o===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?D.exports.cloneElement(t,{variation:o}):null)}function A1(e){return e.variation,e=e.children,D.exports.createElement(D.exports.Fragment,null,e)}function k1(e){var t=(r=O1(e.featureKey)).isLoading,r=r.isOn;return t?null:w1.createElement(w1.Fragment,null,e.children(r))}f.HackleContext=E1,f.HackleContextConsumer=Ui,f.HackleContextProvider=b1,f.HackleExperiment=N1,f.HackleFeature=k1,f.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=n0(D.exports.useState({hackle:t,user:r,initialized:!1}),2),s=i[0],a=i[1];return D.exports.useEffect(function(){a(function(e){return r0(r0({},e),{user:r})})},[r]),D.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){a(function(e){return r0(r0({},e),{initialized:!0})})},function(){a(function(e){return r0(r0({},e),{initialized:!0})})}).catch(function(){a(function(e){return r0(r0({},e),{initialized:!0})})})},[t]),o||s.initialized?w1.createElement(b1,{value:s},e):null},f.HackleVariation=A1,f.createInstance=function(e,t){return new o0(e,t)},f.useFeature=function(e){var t=(n=D.exports.useContext(E1)).hackle,r=n.user,n=n.initialized,o=D.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e,r))||!1},[e,r,t,n]),i=(s=n0(D.exports.useState(function(){return t?o():("undefined"!=typeof window&&T1.error("HackleClient is not existed"),!1)}),2))[0],s=s[1],n={key:e,user:r,initialized:n},a=(u=n0(D.exports.useState(n),2))[0],u=u[1];return C1(a,n)||(u(n),s(o())),i},f.useFeatureFlagDetail=function(e){var t=(n=D.exports.useContext(E1)).hackle,r=n.user,n=n.initialized,o=D.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e,r))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION)},[e,r,t,n]),i=(s=n0(D.exports.useState(function(){return t?o():("undefined"!=typeof window&&T1.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2))[0],s=s[1],n={key:e,user:r,initialized:n},a=(u=n0(D.exports.useState(n),2))[0],u=u[1];return C1(a,n)||(u(n),s(o())),i},f.useLoadableFeature=O1,f.useLoadableFeatureDetail=S1,f.useLoadableRemoteConfig=function(){var e=(i=D.exports.useContext(E1)).hackle,t=i.user,r=i.initialized,n=D.exports.useCallback(function(){return r&&(null==e?void 0:e.remoteConfig(t))||new f.EmptyHackleRemoteConfig},[t,e,r]),o=(i=n0(D.exports.useState(function(){return e||T1.error("HackleClient is not existed"),n()}),2))[0],i=i[1],s={user:t,initialized:r},a=(u=n0(D.exports.useState(s),2))[0],u=u[1];return C1(a,s)||(u(s),i(n())),{isLoading:!r,remoteConfig:o}},f.useLoadableVariation=_1,f.useLoadableVariationDetail=R1,f.useRemoteConfig=function(){var e=(r=D.exports.useContext(E1)).hackle,t=r.user,r=r.initialized,n=D.exports.useCallback(function(){return(null==e?void 0:e.remoteConfig(t))||new f.EmptyHackleRemoteConfig},[t,e,r]),o=(i=n0(D.exports.useState(function(){return e||T1.error("HackleClient is not existed"),n()}),2))[0],i=i[1],r={user:t,initialized:r},s=(a=n0(D.exports.useState(r),2))[0],a=a[1];return C1(s,r)||(a(r),i(n())),o},f.useTrack=function(){var e=D.exports.useContext(E1),t=e.hackle,r=e.user;return t?function(e){return null==t?void 0:t.track(e,r)}:(T1.error("HackleClient is not existed"),function(){})},f.useVariation=function(e,t){void 0===t&&(t="A");var r=(a=D.exports.useContext(E1)).hackle,n=a.user,o=a.initialized,i=D.exports.useCallback(function(){return o&&(null==r?void 0:r.variation(e,n))||t},[t,e,n,r,o]),s=(a=n0(D.exports.useState(function(){return r?i():("undefined"!=typeof window&&T1.error("HackleClient is not existed"),t)}),2))[0],a=a[1],u={key:e,user:n,initialized:o},c=(l=n0(D.exports.useState(u),2))[0],l=l[1];return C1(c,u)||(l(u),a(i())),s},f.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(o=D.exports.useContext(E1)).hackle,n=o.user,o=o.initialized,i=D.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e,n))||f.Decision.of(t,f.DecisionReason.EXCEPTION)},[t,e,n,r,o]),s=(a=n0(D.exports.useState(function(){return r?i():("undefined"!=typeof window&&T1.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2))[0],a=a[1],o={key:e,user:n,initialized:o},u=(c=n0(D.exports.useState(o),2))[0],c=c[1];return C1(u,o)||(c(o),a(i())),s},Object.defineProperty(f,"__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(f){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function U(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 Z(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function Q(e,t,r,n,o,i){return Z((t=Z(Z(t,e),Z(n,i)))<<o|t>>>32-o,r)}function ee(e,t,r,n,o,i,s){return Q(t&r|~t&n,e,t,o,i,s)}function te(e,t,r,n,o,i,s){return Q(t&n|r&~n,e,t,o,i,s)}function re(e,t,r,n,o,i,s){return Q(t^r^n,e,t,o,i,s)}function ne(e,t,r,n,o,i,s){return Q(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=Z(r,a),n=Z(n,u),o=Z(o,c),i=Z(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=U(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=(f.setUserId=void 0,f.removeUserId=void 0,f.getUserId=void 0,f.Version=void 0,f.Variation=void 0,f.TargetingType=void 0,f.TargetRule=void 0,f.TargetMatch=void 0,f.TargetKey=void 0,f.TargetCondition=void 0,f.TargetAction=void 0,f.Target=void 0,f.TARGET_KEY_TYPES=void 0,f.TARGET_ACTION_TYPES=void 0,f.Slot=void 0,f.Segment=void 0,f.SEGMENT_TYPES=void 0,f.RemoteConfigTargetRule=void 0,f.RemoteConfigParameterValue=void 0,f.RemoteConfigParameter=void 0,f.RemoteConfigDecision=void 0,f.ParameterConfiguration=void 0,f.MetaVersion=void 0,f.MATCH_VALUE_TYPES=void 0,f.MATCH_TYPES=void 0,f.MATCH_OPERATORS=void 0,f.Logger=void 0,f.IdentifiersBuilder=void 0,f.IdentifierType=void 0,f.FeatureFlagDecision=void 0,f.Experiment=void 0,f.EventType=void 0,f.EmptyParameterConfig=void 0,f.EmptyHackleRemoteConfig=void 0,f.DecisionReason=void 0,f.Decision=void 0,f.CoreVersion=void 0,f.ContainerGroup=void 0,f.Container=void 0,f.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 p=function(){return(p=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}}}}me.setLogLevel=function(e){this.logLevel=e=void 0===e?3:e},me._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){}},me.logLevel=3,me.log={error:function(e){1<=me.logLevel&&me._log("ERROR",e)},warn:function(e){2<=me.logLevel&&me._log("WARN",e)},info:function(e){3<=me.logLevel&&me._log("INFO",e)},debug:function(e){4<=me.logLevel&&me._log("DEBUG",e)}};var pe=me,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 me(){}function ge(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){this.conditions=e}function _e(e,t){this.key=e,this.match=t}function Re(e,t){this.type=e,this.name=t}function Oe(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 Ce(e,t){this.target=e,this.action=t}function Ie(e,t,r,n){this.id=e,this.key=t,this.type=r,this.targets=n}function Ne(e,t){this.id=e,this.experiments=t}function Ae(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 ke(e,t,r,n,o){this.key=e,this.name=t,this.target=r,this.bucketId=n,this.value=o}function xe(e,t){this.id=e,this.rawValue=t}var Pe={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"),ge(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"),ge(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=(rt.isNotNullOrUndefined=function(e){return null!=e},rt.isNullOrUndefined=function(e){return null==e},rt.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},rt),De=pe.log,Me=(tt.of=function(e,t){return new tt(e,t)},tt),Ue=(et.of=function(e,t,r){return new et(e,t,r=void 0===r?new je:r)},et.prototype.get=function(e,t){return this.config.get(e,t)},et),Le=(Qe.on=function(e,t){return new Qe(!0,e,t=void 0===t?new je:t)},Qe.off=function(e,t){return new Qe(!1,e,t=void 0===t?new je:t)},Qe.prototype.get=function(e,t){return this.config.get(e,t)},Qe),ie=(Ze.prototype.get=function(e,t){return t},Ze),je=(Je.prototype.get=function(e,t){return t},Je),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),Fe=(We.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},We.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},We.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},We),Ve=(Ye.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},Ye),He=(Xe.ID="$id",Xe.USER="$userId",Xe.DEVICE="$deviceId",Xe.SESSION="$sessionId",Xe),Ke=($e.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},$e.prototype.add=function(e,t){return t&&this._isValid(e,t)?this.identifiers[e]=t:De.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},$e.prototype._isValid=function(e,t){return!(!e||"string"!=typeof e||128<e.length||!t||"string"!=typeof t||512<t.length)},$e.prototype.build=function(){return this.identifiers},$e),ze=(qe.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},qe),Ge=(Be.prototype.get=function(e,t){e=this.parameters.get(e);return!a.isNullOrUndefined(e)&&(a.isNullOrUndefined(t)||typeof e==typeof t)?e:t},Be);function Be(e,t){this.id=e,this.parameters=t}function qe(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function $e(){this.identifiers={}}function Xe(){}function Ye(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function We(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 Je(){}function Ze(){}function Qe(e,t,r){this.isOn=e,this.reason=t,this.config=r}function et(e,t,r){this.variation=e,this.reason=t,this.config=r}function tt(e,t){this.value=e,this.reason=t}function rt(){}Mt.tryParse=function(e){var t,r,n,o,e=Mt.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 Mt(new at(parseInt(t,10),parseInt(r,10),parseInt(n,10)),ut.parse(o),ut.parse(e))},Mt.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},Mt.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},Mt.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},Mt.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},Mt.prototype.isLessThan=function(e){return this.compareTo(e)<0},Mt.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},Mt.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 nt,ot,it,st=Mt,at=(Dt.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},Dt),ut=(Pt.parse=function(e){return e?new Pt(e.split(".")):Pt.EMPTY},Pt.prototype.isEmpty=function(){return 0===this.identifiers.length},Pt.prototype.isNotEmpty=function(){return!this.isEmpty()},Pt.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},Pt.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=Pt.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},Pt.compareIdentifiers=function(e,t){return Pt.numericIdentifierRegExp.test(e)&&Pt.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},Pt.EMPTY=new Pt([]),Pt.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,Pt),ct=["MATCH","NOT_MATCH"],lt=["STRING","NUMBER","BOOLEAN","VERSION","JSON","NULL","UNKNOWN"],ft=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],pt=["VARIATION","BUCKET"],dt=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT"],ht=["USER_ID","USER_PROPERTY"],yt=(xt.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},xt.IDENTIFIER=new xt("SEGMENT"),xt.PROPERTY=new xt("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY"),xt.SEGMENT=new xt("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),xt),vt=pe.log,mt=(kt.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}},kt.prototype._get=function(e,t,r){try{var n=this.hackleUserResolver.resolveOrNull(this.user);return a.isNullOrUndefined(n)?Me.of(r,u.INVALID_INPUT):a.isNullOrUndefined(e)?(vt.error("parameterKey must not be empty"),Me.of(r,u.INVALID_INPUT)):this.hackleInternalClient._remoteConfig(e,n,t,r)}catch(t){return vt.error("Unexpected exception while deciding remote config parameter[".concat(e,"]. Returning default value. : ").concat(t)),Me.of(r,u.EXCEPTION)}},kt),gt=pe.log,wt=(At.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},At.prototype.variationDetail=function(e,t,r){r=r||"A";try{var n=this.hackleUserResolver.resolveOrNull(t);return n?this.hackleInternalClient._experiment(e,n,r):Ue.of(r,u.INVALID_INPUT)}catch(t){return gt.error("Unexpected exception while deciding variation for experiment[".concat(e,"]. Returning default variation[").concat(r,"] : ").concat(t)),Ue.of(r,u.EXCEPTION)}},At.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},At.prototype.featureFlagDetail=function(e,t){try{var r=this.hackleUserResolver.resolveOrNull(t);return r?this.hackleInternalClient._featureFlag(e,r):Le.off(u.INVALID_INPUT)}catch(t){return gt.error('"Unexpected exception while deciding feature flag['.concat(e,"]. Returning default value[false] : ").concat(t)),Le.off(u.EXCEPTION)}},At.prototype.track=function(e,t){gt.debug("track event : ".concat(JSON.stringify(e)));e=this._convertEvent(e),t=this.hackleUserResolver.resolveOrNull(t);t&&this.hackleInternalClient._track(e,t)},At.prototype.trackPageView=function(e){gt.debug("tracking page view");e=this.hackleUserResolver.resolveOrNull(null==e?void 0:e.user);e&&this.hackleInternalClient._track({key:"$page_view"},e)},At.prototype.remoteConfig=function(e){return new mt(this.hackleInternalClient,this.hackleUserResolver,e)},At.prototype.onReady=function(e,t){this.hackleInternalClient._onReady(e,t=void 0===t?3e3:t)},At.prototype.onInitialized=function(e){return this.hackleInternalClient._onInitialized({timeout:null==e?void 0:e.timeout})},At.prototype.close=function(){gt.debug("Hackle Client is closing"),this.hackleInternalClient._close()},At.prototype.getSessionId=function(){return this.sessionManager.sessionId},At.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},At),Et=(Nt.filteredProperties=function(r){var n=this;return Object.keys(r).filter(function(e){return n.validProperty(e,r[e])}).reduce(function(e,t){return p(p({},e),((e={})[t]=n.filteredPropertiesValue(t,r[t]),e))},{})},Nt.filteredPropertiesValue=function(e,t){return!e.startsWith(Nt.SYSTEM_PROPERTY_KEY_PREFIX)&&"string"==typeof t&&1024<t.length?t.slice(0,1024):t},Nt.validProperty=function(e,t){return!!e&&"string"==typeof e&&!(128<e.length)&&("string"==typeof t||"boolean"==typeof t||"number"==typeof t&&!isNaN(t)&&isFinite(t))},Nt.SYSTEM_PROPERTY_KEY_PREFIX="$",Nt),bt=(It.exposure=function(e,t,r){return new Tt((new Date).getTime(),t,e,r.variationId,r.variationKey,r.reason,this.exposureProperties(r))},It.exposureProperties=function(e){return a.isNotNullOrUndefined(e.config)?{$parameterConfigurationId:e.config.id}:{}},It.track=function(e,t,r){return new _t((new Date).getTime(),r,e,t)},It.remoteConfig=function(e,t,r){return new Rt((new Date).getTime(),t,e,r)},It.isExposure=function(e){return void 0!==e.experiment},It.isTrack=function(e){return void 0!==e.eventType},It.isRemoteConfig=function(e){return void 0!==e.remoteConfigParameter},It.isExposureDto=function(e){return"experimentId"in e&&void 0!==e.experimentId},It.isTrackDto=function(e){return"eventTypeId"in e&&void 0!==e.eventTypeId},It.isRemoteConfigDto=function(e){return"parameterId"in e&&void 0!==e.parameterId},It.prototype.toDto=function(){return{insertId:this.insertId,timestamp:this.timestamp,userId:this.user.identifiers[He.ID],identifiers:this.user.identifiers,userProperties:Et.filteredProperties(this.user.properties),hackleProperties:Et.filteredProperties(this.user.hackleProperties)}},It),Tt=(ce(Ct,it=bt),Ct.prototype.copyWithUser=function(e){return new Ct(this.timestamp,e,this.experiment,this.variationId,this.variationKey,this.decisionReason,this.properties,this.insertId)},Ct.prototype.toDto=function(){return p(p({},it.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})},Ct),_t=(ce(St,ot=bt),St.prototype.copyWithUser=function(e){return new St(this.timestamp,e,this.eventType,this.event,this.insertId)},St.prototype.toDto=function(){return p(p({},ot.prototype.toDto.call(this)),{eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:Et.filteredProperties(this.event.properties||{})})},St),Rt=(ce(Ot,nt=bt),Ot.prototype.copyWithUser=function(e){return new Ot(this.timestamp,e,this.remoteConfigParameter,this.evaluation,this.insertId)},Ot.prototype.toDto=function(){return p(p({},nt.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:Et.filteredProperties(this.evaluation.properties)})},Ot);function Ot(e,t,r,n,o){e=nt.call(this,e,t,o)||this;return e.remoteConfigParameter=r,e.evaluation=n,e}function St(e,t,r,n,o){e=ot.call(this,e,t,o)||this;return e.eventType=r,e.event=n,e}function Ct(e,t,r,n,o,i,s,a){e=it.call(this,e,t,a)||this;return e.experiment=r,e.variationId=n,e.variationKey=o,e.decisionReason=i,e.properties=s,e}function It(e,t,r){void 0===r&&(r=ae.v4()),this.timestamp=e,this.user=t,this.insertId=r}function Nt(){}function At(e,t,r){this.hackleInternalClient=e,this.hackleUserResolver=t,this.sessionManager=r}function kt(e,t,r){this.hackleInternalClient=e,this.hackleUserResolver=t,this.user=r}function xt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function Pt(e){this.identifiers=e}function Dt(e,t,r){this.major=e,this.minor=t,this.patch=r}function Mt(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}function Ut(e){var t=new Array,r=new Array,n=new Array;return e.forEach(function(e){e instanceof bt?bt.isExposure(e)?t.push(e.toDto()):bt.isTrack(e)?r.push(e.toDto()):bt.isRemoteConfig(e)&&n.push(e.toDto()):bt.isExposureDto(e)?t.push(e):bt.isTrackDto(e)?r.push(e):bt.isRemoteConfigDto(e)&&n.push(e)}),{exposureEvents:t,trackEvents:r,remoteConfigEvents:n}}nr.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(),Ut(e));this.httpRequest.postRequest(this.dispatchUrl,e,n,t,r)},nr.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=Ut(e),this.httpRequest.sendBeacon(this.beaconDispatchUrl,o,n,t,r)):this.dispatch(e,t,r)};var Lt=nr,jt=(rr.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},rr.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},rr.associate=function(e,t){return this.associateTo(e,new Map,t)},rr.associateBy=function(e,t){return this.associate(e,function(e){return[t(e),e]})},rr),Ft=pe.log,Vt=(y.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},y.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},y.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},y.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},y.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},y.prototype.getContainerOrNull=function(e){return this.containers.get(e)},y.prototype.getParameterConfigurationOrNull=function(e){return this.parameterConfigurations.get(e)},y.prototype.getRemoteConfigParameterOrNull=function(e){return this.remoteConfigParameters.get(e)},y.from=function(e){var t=this,r=jt.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]});return new y(jt.associateBy(jt.mapNotNullOrUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),jt.associateBy(jt.mapNotNullOrUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),r,jt.associate(e.events,function(e){return[e.key,new be(e.id,e.key)]}),jt.associateBy(jt.mapNotNullOrUndefined(e.segments,function(e){return t.toSegmentOrNull(e)}),function(e){return e.key}),jt.associate(e.containers,function(e){return[e.id,t.toContainer(e)]}),jt.associate(e.parameterConfigurations,function(e){return[e.id,t.toParameterConfiguration(e)]}),jt.associateBy(jt.mapNotNullOrUndefined(e.remoteConfigParameters,function(e){return t.toRemoteConfigParameterOrNull(e)}),function(e){return e.key}))},y.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 Ve(t,r,e)}))},y.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=jt.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),s=jt.mapNotNullOrUndefined(t.execution.segmentOverrides,function(e){return r.toTargetRuleOrNull(e,yt.IDENTIFIER)}),a=jt.mapNotNullOrUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e,yt.PROPERTY)}),u=jt.mapNotNullOrUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e,yt.PROPERTY)}),c=this.toTargetActionOrNull(t.execution.defaultRule);return n&&c&&new Fe(t.id,t.key,e,t.identifierType,n,t.version,o,i,s,a,u,c,t.containerId,t.winnerVariationId)},y.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void Ft.debug("Unsupported status [".concat(e,"]"))}},y.toTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t),e=this.toTargetActionOrNull(e.action);return t&&e&&new Ce(t,e)},y.toTargetActionOrNull=function(e){var t=this.parseOrNull(pt,e.type);return t&&new Se(t,e.variationId,e.bucketId)},y.toTargetOrNull=function(e,t){var r=this,e=jt.mapNotNullOrUndefined(e.conditions,function(e){return r.toConditionOrNull(e,t)});return new Te(e)},y.toConditionOrNull=function(e,t){var r=this.toTargetKeyOrNull(e.key);if(r&&t.supports(r.type))return(t=this.toTargetMatchOrNull(e.match))&&new _e(r,t)},y.toTargetKeyOrNull=function(e){var t=this.parseOrNull(dt,e.type);return t&&new Re(t,e.name)},y.toTargetMatchOrNull=function(e){var t=this.parseOrNull(ct,e.type),r=this.parseOrNull(ft,e.operator),n=this.parseOrNull(lt,e.valueType);return t&&r&&n&&new Oe(t,r,n,e.values)},y.toSegmentOrNull=function(e){var t=this,r=this.parseOrNull(ht,e.type);return r&&new Ie(e.id,e.key,r,jt.mapNotNullOrUndefined(e.targets,function(e){return t.toTargetOrNull(e,yt.SEGMENT)}))},y.toContainer=function(e){var t=this;return new ze(e.id,e.bucketId,e.groups.map(function(e){return t.toContainerGroup(e)}))},y.toContainerGroup=function(e){return new Ne(e.id,e.experiments)},y.toParameterConfiguration=function(e){return new Ge(e.id,jt.associate(e.parameters,function(e){return[e.key,e.value]}))},y.toRemoteConfigParameterOrNull=function(e){var t=this,r=this.parseOrNull(lt,e.type),n=jt.mapNotNullOrUndefined(e.targetRules,function(e){return t.toRemoteConfigTargetRuleOrNull(e,yt.PROPERTY)}),o=this.toRemoteConfigParameterValueOrNull(e.defaultValue);return r&&new Ae(e.id,e.key,r,e.identifierType,n,o)},y.toRemoteConfigTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t);return t&&new ke(e.key,e.name,t,e.bucketId,this.toRemoteConfigParameterValueOrNull(e.value))},y.toRemoteConfigParameterValueOrNull=function(e){return new xe(e.id,e.value)},y.parseOrNull=function(e,t){e=e.find(function(e){return e===t});return e||Ft.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e},y),Ht=(tr.prototype.onReady=function(){return this.readyPromise},tr.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},tr.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()},tr.prototype.get=function(){return this.workspace},tr.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)},tr.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()},tr.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},tr.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=Vt.from(e),this.readyPromiseResolver())}},tr.prototype.onRequestRejected=function(e){this.isStarted&&(this.errorRetryController.countError(),console.error("Error fetching data",e))},tr.prototype.close=function(){this.stop()},tr),Kt=(er.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*he[Math.min(he.length-1,this.errorCount)]+Math.round(1e3*Math.random())},er.prototype.countError=function(){this.errorCount<he.length-1&&this.errorCount++},er.prototype.reset=function(){this.errorCount=0},er),r="model",o="name",i="type",s="vendor",c="version",l="mobile",d="tablet",zt=(h.parse=function(e){return{browser:h.getBrowser(e),cpu:h.getCPU(e),device:h.getDevice(e),engine:h.getEngine(e),os:h.getOS(e)}},h.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return h.mapper.rgx.call(t,e,h.regexes.browser),t.major=h.util.major(t.version),t},h.getCPU=function(e){var t={architecture:void 0};return h.mapper.rgx.call(t,e,h.regexes.cpu),t},h.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return h.mapper.rgx.call(t,e,h.regexes.device),t},h.getEngine=function(e){var t={name:void 0,version:void 0};return h.mapper.rgx.call(t,e,h.regexes.os),t},h.getOS=function(e){var t={name:void 0,version:void 0};return h.mapper.rgx.call(t,e,h.regexes.os),t},h.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,"")}},h.regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[o,c],[/(opios)[\/\s]+([\w\.]+)/i],[[o,"Opera Mini"],c],[/\s(opr)\/([\w\.]+)/i],[[o,"Opera"],c],[/(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,c],[/(konqueror)\/([\w\.]+)/i],[[o,"Konqueror"],c],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[o,"IE"],c],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[o,"Edge"],c],[/(yabrowser)\/([\w\.]+)/i],[[o,"Yandex"],c],[/(Avast)\/([\w\.]+)/i],[[o,"Avast Secure Browser"],c],[/(AVG)\/([\w\.]+)/i],[[o,"AVG Secure Browser"],c],[/(puffin)\/([\w\.]+)/i],[[o,"Puffin"],c],[/(focus)\/([\w\.]+)/i],[[o,"Firefox Focus"],c],[/(opt)\/([\w\.]+)/i],[[o,"Opera Touch"],c],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[o,"UCBrowser"],c],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],c],[/(windowswechat qbcore)\/([\w\.]+)/i],[[o,"WeChat(Win) Desktop"],c],[/(micromessenger)\/([\w\.]+)/i],[[o,"WeChat"],c],[/(brave)\/([\w\.]+)/i],[[o,"Brave"],c],[/(whale)\/([\w\.]+)/i],[[o,"Whale"],c],[/(qqbrowserlite)\/([\w\.]+)/i],[o,c],[/(QQ)\/([\d\.]+)/i],[o,c],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[o,c],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[o,c],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[o,c],[/(MetaSr)[\/\s]?([\w\.]+)/i],[o],[/(LBBROWSER)/i],[o],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[c,[o,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[c,[o,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[o,c],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[c,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,/(.+)/,"$1 WebView"],c],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[o,/(.+(?:g|us))(.+)/,"$1 $2"],c],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[o,"Chrome Mobile"],c],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[c,[o,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[o,"Sailfish Browser"],c],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,c],[/(dolfin)\/([\w\.]+)/i],[[o,"Dolphin"],c],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[o,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[o,"Opera Coast"],c],[/fxios\/([\w\.-]+)/i],[c,[o,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[c,[o,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[c,o],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[o,"GSA"],c],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[c,(h.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(h.util.has(t[r][n],e))return"?"===r?void 0:r}else if(h.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(h.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,c],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],c],[/(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,c]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",h.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",h.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",h.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[r,s,[i,d]],[/applecoremedia\/[\w\.]+ \((ipad)/],[r,[s,"Apple"],[i,d]],[/(apple\s{0,1}tv)/i],[[r,"Apple TV"],[s,"Apple"],[i,"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],[s,r,[i,d]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[r,[s,"Amazon"],[i,d]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[r,h.mapper.str,h.maps.device.amazon.model],[s,"Amazon"],[i,l]],[/android.+aft([bms])\sbuild/i],[r,[s,"Amazon"],[i,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[r,s,[i,l]],[/\((ip[honed|\s\w*]+);/i],[r,[s,"Apple"],[i,l]],[/(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],[s,r,[i,l]],[/\(bb10;\s(\w+)/i],[r,[s,"BlackBerry"],[i,l]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[r,[s,"Asus"],[i,d]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[s,"Sony"],[r,"Xperia Tablet"],[i,d]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[s,"Sony"],[i,l]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[s,r,[i,"console"]],[/android.+;\s(shield)\sbuild/i],[r,[s,"Nvidia"],[i,"console"]],[/(playstation\s[34portablevi]+)/i],[r,[s,"Sony"],[i,"console"]],[/(sprint\s(\w+))/i],[[s,h.mapper.str,h.maps.device.sprint.vendor],[r,h.mapper.str,h.maps.device.sprint.model],[i,l]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[s,[r,/_/g," "],[i,l]],[/(nexus\s9)/i],[r,[s,"HTC"],[i,d]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[r,[s,"Huawei"],[i,l]],[/android.+(bah2?-a?[lw]\d{2})/i],[r,[s,"Huawei"],[i,d]],[/(microsoft);\s(lumia[\s\w]+)/i],[s,r,[i,l]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[r,[s,"Microsoft"],[i,"console"]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[s,"Microsoft"],[i,l]],[/\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,[s,"Motorola"],[i,l]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[r,[s,"Motorola"],[i,d]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[s,h.util.trim],[r,h.util.trim],[i,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[s,"Samsung"],[i,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[r,[s,"Sharp"],[i,"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],[[s,"Samsung"],r,[i,d]],[/smart-tv.+(samsung)/i],[s,[i,"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],[[s,"Samsung"],r,[i,l]],[/sie-(\w*)/i],[r,[s,"Siemens"],[i,l]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[s,"Nokia"],r,[i,l]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[r,[s,"Acer"],[i,d]],[/android.+([vl]k\-?\d{3})\s+build/i],[r,[s,"LG"],[i,d]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[s,"LG"],r,[i,d]],[/(lg) netcast\.tv/i],[s,r,[i,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[r,[s,"LG"],[i,l]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[s,r,[i,d]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[r,[s,"Lenovo"],[i,d]],[/(lenovo)[_\s-]?([\w-]+)/i],[s,r,[i,l]],[/linux;.+((jolla));/i],[s,r,[i,l]],[/((pebble))app\/[\d\.]+\s/i],[s,r,[i,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[s,r,[i,l]],[/crkey/i],[[r,"Chromecast"],[s,"Google"],[i,"smarttv"]],[/android.+;\s(glass)\s\d/i],[r,[s,"Google"],[i,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[r,[s,"Google"],[i,d]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[r,[s,"Google"],[i,l]],[/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," "],[s,"Xiaomi"],[i,l]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[s,"Xiaomi"],[i,d]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[r,[s,"Meizu"],[i,l]],[/(mz)-([\w-]{2,})/i],[[s,"Meizu"],r,[i,l]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[r,[s,"OnePlus"],[i,l]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[r,[s,"RCA"],[i,d]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[r,[s,"Dell"],[i,d]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[r,[s,"Verizon"],[i,d]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[s,"Barnes & Noble"],r,[i,d]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[r,[s,"NuVision"],[i,d]],[/android.+;\s(k88)\sbuild/i],[r,[s,"ZTE"],[i,d]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[r,[s,"Swiss"],[i,l]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[r,[s,"Swiss"],[i,d]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[r,[s,"Zeki"],[i,d]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[s,"Dragon Touch"],r,[i,d]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[r,[s,"Insignia"],[i,d]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[r,[s,"NextBook"],[i,d]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[s,"Voice"],r,[i,l]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[s,"LvTel"],r,[i,l]],[/android.+;\s(PH-1)\s/i],[r,[s,"Essential"],[i,l]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[r,[s,"Envizen"],[i,d]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[s,r,[i,d]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[r,[s,"MachSpeed"],[i,d]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[s,r,[i,d]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[r,[s,"Rotor"],[i,d]],[/android.+(KS(.+))\s+build/i],[r,[s,"Amazon"],[i,d]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[s,r,[i,d]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[i,h.util.lowerize],s,r],[/[\s\/\(](smart-?tv)[;\)]/i],[[i,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[r,[s,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[c,[o,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[c,[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,c],[/rv\:([\w\.]{1,9}).+(gecko)/i],[c,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,c],[/(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,h.mapper.str,h.maps.os.windows],[c,h.mapper.str,h.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[c,h.mapper.str,h.maps.os.windows.version]],[/\((bb)(10);/i],[[o,"BlackBerry"],c],[/(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,c],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[o,"Symbian"],c],[/\((series40);/i],[o],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"],c],[/(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"],c],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],c],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],c],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[o,"Linux"],c],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPhone"],[c,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPad"],[c,/_/g,"."]],[/(haiku)\s(\w+)/i],[o,c],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[c,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[o,"Mac"],[c,/_/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,c]]},h),Gt=(Qt.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=zt.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||""}},Qt),Bt=(Zt.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]:""},Zt.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},Zt.prototype.setItem=function(e,t,r){var r=p(p({},this.options),r),n=r.isSecure,o="",i="",s="",a=(r.isCrossSubdomain&&(o=(a=Zt.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},Zt.prototype.removeItem=function(e,t){this.setItem(e,"",p(p({},t),{days:-1}))},new Zt({days:3650,isCrossSubdomain:!0})),qt=(Jt.parse=function(e){for(var t={},r=0,n=e.substring(1).split("&");r<n.length;r++){var o=n[r].split("="),i=o[0],o=o[1];i.startsWith("utm_")&&(t[i]=decodeURIComponent(o))}return t},Jt),$t=(Wt.prototype.resolveOrNull=function(e){e=this._resolveUser(e);return this._resolveHackleUserOrNull(e)},Wt.prototype.resolveAnonymousUser=function(){return{identifiers:{},properties:{},hackleProperties:this._getHackleProperties()}},Wt.prototype._resolveUser=function(e){return e?"string"==typeof e?{id:e}:e:{id:or()}},Wt.prototype._resolveHackleUserOrNull=function(e){var t=new Ke,t=(t.addIdentifiers(e.identifiers||{}),e.id&&t.add(He.ID,e.id),e.userId&&t.add(He.USER,e.userId),t.add(He.DEVICE,e.deviceId||or()),t.build());if(0!==Object.keys(t).length)return{identifiers:t,properties:this._userProperties(e.properties),hackleProperties:this._getHackleProperties()}},Wt.prototype._userProperties=function(e){void 0===e&&(e={});var t={};return"undefined"!=typeof window&&(t=qt.parse(window.location.search)),p(p({},t),e)},Wt.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?Gt.generate(window):e)||{}},Wt),Xt=(Yt.initialize=function(){Bt.getItem("_hackle_hid")||ar()},Yt.reInitialize=function(){ar()},Yt);function Yt(){}function Wt(){Xt.initialize()}function Jt(){}function Zt(e){this.options=e=void 0===e?{days:0,isCrossSubdomain:!1,isSecure:!1,isCrossSite:!1}:e}function Qt(){}function h(){}function er(){this.errorCount=0}function tr(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 Kt,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function y(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 rr(){}function nr(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 or(){var e=Bt.getItem("_hackle_id");return e||Bt.getItem("_hackle_hid")||ar()}function ir(e){Bt.setItem("_hackle_id",e)}function sr(){Bt.removeItem("_hackle_id")}function ar(){var e=ae.v4();return Bt.setItem("_hackle_hid",e),e}function ur(e){return e&&e.Math==Math&&e}function v(e){try{return!!e()}catch(e){return!0}}var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},d=ur("object"==typeof globalThis&&globalThis)||ur("object"==typeof window&&window)||ur("object"==typeof self&&self)||ur("object"==typeof l&&l)||function(){return this}()||Function("return this")(),i={},r=!v(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),s=!v(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),cr=Function.prototype.call,o=s?cr.bind(cr):function(){return cr.apply(cr,arguments)},c={},e={}.propertyIsEnumerable,lr=Object.getOwnPropertyDescriptor,l=lr&&!e.call({1:2},1);c.f=l?function(e){e=lr(this,e);return!!e&&e.enumerable}:e;function fr(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function pr(e){return Ir(Cr(e),8,-1)}function dr(e){if(null==e)throw xr("Can't call method on "+e);return e}function hr(e){return Pr(Dr(e))}function m(e){return"function"==typeof e}function yr(e){return"object"==typeof e?null!==e:Mr(e)}function vr(e,t){return arguments.length<2?(r=Ur[e],Lr(r)?r:void 0):Ur[e]&&Ur[e][t];var r}function mr(e){try{return qr(e)}catch(e){return"Object"}}function gr(e){if($r(e))return e;throw Yr(Xr(e)+" is not a function")}function wr(e,t){return null==(e=e[t])?void 0:Wr(e)}function Er(t,r){try{rn(tn,t,{value:r,configurable:!0,writable:!0})}catch(e){tn[t]=r}return r}function g(e){return an(sn(e))}function br(e){return"Symbol("+(void 0===e?"":e)+")_"+hn(++pn+dn,36)}function w(e){var t;return yn(wn,e)&&(mn||"string"==typeof wn[e])||(t="Symbol."+e,mn&&yn(En,e)?wn[e]=En[e]:wn[e]=(gn&&bn?bn:Tn)(t)),wn[e]}function Tr(e){return e=function(e,t){if(!Rn(e)||On(e))return e;var r=Sn(e,Nn);if(r){if(r=_n(r,e,t=void 0===t?"default":t),!Rn(r)||On(r))return r;throw In("Can't convert object to primitive value")}return Cn(e,t=void 0===t?"number":t)}(e,"string"),An(e)?e:e+""}function _r(e){return xn?kn.createElement(e):{}}function Rr(e){if(Kn(e))return e;throw Gn(zn(e)+" is not an object")}var l=s,e=Function.prototype,E=e.bind,Or=e.call,Sr=l&&E.bind(Or,Or),e=l?function(e){return e&&Sr(e)}:function(e){return e&&function(){return Or.apply(e,arguments)}},E=e,Cr=E({}.toString),Ir=E("".slice),l=v,Nr=pr,Ar=Object,kr=e("".split),E=l(function(){return!Ar("z").propertyIsEnumerable(0)})?function(e){return"String"==Nr(e)?kr(e,""):Ar(e)}:Ar,xr=TypeError,Pr=E,Dr=dr,Mr=m,Ur=d,Lr=m,l=e({}.isPrototypeOf),jr=vr("navigator","userAgent")||"",b=jr,T=d.process,Fr=d.Deno,T=T&&T.versions||Fr&&Fr.version,Fr=T&&T.v8,T=Br=!(Br=Fr?0<(_=Fr.split("."))[0]&&_[0]<4?1:+(_[0]+_[1]):Br)&&b&&(!(_=b.match(/Edge\/(\d+)/))||74<=_[1])&&(_=b.match(/Chrome\/(\d+)/))?+_[1]:Br,Vr=T,Fr=v,b=!!Object.getOwnPropertySymbols&&!Fr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Vr&&Vr<41}),_=b&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Hr=vr,Kr=m,zr=l,Gr=Object,Br=_?function(e){return"symbol"==typeof e}:function(e){var t=Hr("Symbol");return Kr(t)&&zr(t.prototype,Gr(e))},qr=String,$r=m,Xr=mr,Yr=TypeError,Wr=gr,Jr=o,Zr=m,Qr=yr,en=TypeError,Fr={exports:{}},tn=d,rn=Object.defineProperty,nn=Er,nn=d["__core-js_shared__"]||nn("__core-js_shared__",{}),on=nn,sn=((Fr.exports=function(e,t){return on[e]||(on[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"}),dr),an=Object,un=g,cn=e({}.hasOwnProperty),ln=Object.hasOwn||function(e,t){return cn(un(e),t)},fn=e,pn=0,dn=Math.random(),hn=fn(1..toString),fn=d,R=Fr.exports,yn=ln,vn=br,mn=b,gn=_,wn=R("wks"),En=fn.Symbol,bn=En&&En.for,Tn=gn?En:En&&En.withoutSetter||vn,_n=o,Rn=yr,On=Br,Sn=wr,Cn=function(e,t){var r,n;if("string"===t&&Zr(r=e.toString)&&!Qr(n=Jr(r,e)))return n;if(Zr(r=e.valueOf)&&!Qr(n=Jr(r,e)))return n;if("string"!==t&&Zr(r=e.toString)&&!Qr(n=Jr(r,e)))return n;throw en("Can't convert object to primitive value")},In=TypeError,Nn=w("toPrimitive"),An=Br,b=yr,kn=d.document,xn=b(kn)&&b(kn.createElement),Pn=_r,_=!r&&!v(function(){return 7!=Object.defineProperty(Pn("div"),"a",{get:function(){return 7}}).a}),Dn=o,Mn=c,Un=fr,Ln=hr,jn=Tr,Fn=ln,Vn=_,Hn=Object.getOwnPropertyDescriptor,R=(i.f=r?Hn:function(e,t){if(e=Ln(e),t=jn(t),Vn)try{return Hn(e,t)}catch(e){}if(Fn(e,t))return Un(!Dn(Mn.f,e,t),e[t])},{}),fn=r&&v(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Kn=yr,zn=String,Gn=TypeError,Bn=_,qn=Rr,$n=Tr,Xn=TypeError,Yn=Object.defineProperty,Wn=Object.getOwnPropertyDescriptor,Jn=(R.f=r?fn?function(e,t,r){var n;return qn(e),t=$n(t),qn(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=Wn(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}),Yn(e,t,r)}:Yn:function(e,t,r){if(qn(e),t=$n(t),qn(r),Bn)try{return Yn(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Xn("Accessors not supported");return"value"in r&&(e[t]=r.value),e},R),Zn=fr,vn=r?function(e,t,r){return Jn.f(e,t,Zn(1,r))}:function(e,t,r){return e[t]=r,e},Br={exports:{}},b=r,c=ln,_=Function.prototype,Qn=b&&Object.getOwnPropertyDescriptor,c=c(_,"name"),c={EXISTS:c,PROPER:c&&"something"===function(){}.name,CONFIGURABLE:c&&(!b||Qn(_,"name").configurable)},b=m,Qn=nn,eo=e(Function.toString);b(Qn.inspectSource)||(Qn.inspectSource=function(e){return eo(e)});function to(e){return Eo[e]||(Eo[e]=wo(e))}function ro(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(Lo(r)&&Fo(r,i,n),n.global)o?e[t]=r:Vo(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:jo.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function no(e){return(e=+e)!=e||0==e?0:zo(e)}function oo(e,t){return(e=Go(e))<0?Bo(e+t,0):qo(e,t)}function O(e){return 0<(e=e.length)?Xo($o(e),9007199254740991):0}function io(a){return function(e,t,r){var n,o=Yo(e),i=Jo(o),s=Wo(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 so(e,t){var r,n=Qo(e),o=0,i=[];for(r in n)!Zo(ti,r)&&Zo(n,r)&&ri(i,r);for(;t.length>o;)!Zo(n,r=t[o++])||~ei(i,r)||ri(i,r);return i}function ao(e,t,r){for(var n=li(t),o=pi.f,i=fi.f,s=0;s<n.length;s++){var a=n[s];ci(e,a)||r&&ci(r,a)||o(e,a,i(t,a))}}function uo(e,t){return(e=mi[vi(e)])==wi||e!=gi&&(hi(t)?di(t):!!t)}function S(e,t){var r,n,o,i,s=e.target,a=e.global,u=e.stat;if(r=a?Ei:u?Ei[s]||Ri(s,{}):(Ei[s]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(i=bi(r,n))&&i.value:r[n],!Si(a?n:s+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;Oi(o,i)}(e.sham||i&&i.sham)&&Ti(o,"sham",!0),_i(r,n,o,e)}}var co,lo,fo,po,ho,yo,vo,mo,_=Qn.inspectSource,b=m,Qn=_,go=d.WeakMap,b=b(go)&&/native code/.test(Qn(go)),Qn=Fr.exports,wo=br,Eo=Qn("keys"),go={},Fr=e,bo=yr,To=vn,_o=ln,Qn=nn,C=to,Ro=go,Oo=d.TypeError,So=d.WeakMap,b=(vo=b||Qn.state?(co=Qn.state||(Qn.state=new So),lo=Fr(co.get),fo=Fr(co.has),po=Fr(co.set),ho=function(e,t){if(fo(co,e))throw new Oo("Object already initialized");return t.facade=e,po(co,e,t),t},yo=function(e){return lo(co,e)||{}},function(e){return fo(co,e)}):(Ro[mo=C("state")]=!0,ho=function(e,t){if(_o(e,mo))throw new Oo("Object already initialized");return t.facade=e,To(e,mo,t),t},yo=function(e){return _o(e,mo)?e[mo]:{}},function(e){return _o(e,mo)}),{set:ho,get:yo,has:vo,enforce:function(e){return vo(e)?yo(e):ho(e,{})},getterFor:function(t){return function(e){if(bo(e)&&(e=yo(e)).type===t)return e;throw Oo("Incompatible receiver, "+t+" required")}}}),Qn=v,Co=m,Io=ln,No=r,Ao=c.CONFIGURABLE,ko=_,xo=b.enforce,Po=b.get,Do=Object.defineProperty,Mo=No&&!Qn(function(){return 8!==Do(function(){},"length",{value:8}).length}),Uo=String(String).split("String"),So=Br.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),(!Io(e,"name")||Ao&&e.name!==t)&&(No?Do(e,"name",{value:t,configurable:!0}):e.name=t),Mo&&r&&Io(r,"arity")&&e.length!==r.arity&&Do(e,"length",{value:r.arity});try{r&&Io(r,"constructor")&&r.constructor?No&&Do(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=xo(e);return Io(r,"source")||(r.source=Uo.join("string"==typeof t?t:"")),e},Lo=(Function.prototype.toString=So(function(){return Co(this)&&Po(this).source||ko(this)},"toString"),m),jo=R,Fo=Br.exports,Vo=Er,Fr={},Ho=Math.ceil,Ko=Math.floor,zo=Math.trunc||function(e){e=+e;return(0<e?Ko:Ho)(e)},Go=no,Bo=Math.max,qo=Math.min,$o=no,Xo=Math.min,Yo=hr,Wo=oo,Jo=O,Ro={includes:io(!0),indexOf:io(!1)},Zo=ln,Qo=hr,ei=Ro.indexOf,ti=go,ri=e([].push),C=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ni=so,oi=C.concat("length","prototype"),Qn=(Fr.f=Object.getOwnPropertyNames||function(e){return ni(e,oi)},{}),So=(Qn.f=Object.getOwnPropertySymbols,vr),ii=Fr,si=Qn,ai=Rr,ui=e([].concat),Qn=So("Reflect","ownKeys")||function(e){var t=ii.f(ai(e)),r=si.f;return r?ui(t,r(e)):t},ci=ln,li=Qn,fi=i,pi=R,di=v,hi=m,yi=/#|\.prototype\./,vi=uo.normalize=function(e){return String(e).replace(yi,".").toLowerCase()},mi=uo.data={},gi=uo.NATIVE="N",wi=uo.POLYFILL="P",So=uo,Ei=d,bi=i.f,Ti=vn,_i=ro,Ri=Er,Oi=ao,Si=So,Qn=!v(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Ci=ln,Ii=m,Ni=g,Ai=to("IE_PROTO"),ki=Object,xi=ki.prototype,Qn=Qn?ki.getPrototypeOf:function(e){e=Ni(e);if(Ci(e,Ai))return e[Ai];var t=e.constructor;return Ii(t)&&e instanceof t?t.prototype:e instanceof ki?xi:null},Pi=m,Di=String,Mi=TypeError,Ui=e,Li=Rr,ji=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=Ui(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return Li(e),function(e){if("object"==typeof e||Pi(e))return;throw Mi("Can't set "+Di(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),Fi={},Vi=so,Hi=C,I=Object.keys||function(e){return Vi(e,Hi)},Ki=R,zi=Rr,Gi=hr,Bi=I;Fi.f=r&&!fn?Object.defineProperties:function(e,t){zi(e);for(var r,n=Gi(t),o=Bi(t),i=o.length,s=0;s<i;)Ki.f(e,r=o[s++],n[r]);return e};function qi(){}function $i(e){e.write(ls("")),e.close();var t=e.parentWindow.Object;return e=null,t}function Xi(e,t){return gs(e),void 0===t?e:ws?Es(e,t):function(){return e.apply(t,arguments)}}function Yi(e){return void 0!==e&&(bs.Array===e||_s[Ts]===e)}function Wi(e){if(null!=e)return As(e,xs)||As(e,"@@iterator")||ks[Ns(e)]}function Ji(e,t){if(t=arguments.length<2?Ls(e):t,Ds(t))return Ms(Ps(t,e));throw js(Us(e)+" is not iterable")}function Zi(e,t,r){var n,o;Vs(e);try{if(!(n=Hs(e,"return"))){if("throw"===t)throw r;return r}n=Fs(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return Vs(n),r}function Qi(e,t){this.stopped=e,this.result=t}function es(e,t,r){function n(e){return i&&Js(i,"normal",e),new Qi(!0,e)}function o(e){return p?(Gs(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=Ks(t,f);if(d)i=e.iterator;else if(h)i=e;else{if(!(r=Ws(e)))throw Zs(Bs(e)+" is not iterable");if(qs(r)){for(s=0,a=$s(e);s<a;s++)if((u=o(e[s]))&&Xs(Qs,u))return u;return new Qi(!1)}i=Ys(e,r)}for(c=(d?e:i).next;!(l=zs(c,i)).done;){try{u=o(l.value)}catch(e){Js(i,"throw",e)}if("object"==typeof u&&u&&Xs(Qs,u))return u}return new Qi(!1)}function ts(e){if("Symbol"===ea(e))throw TypeError("Cannot convert a Symbol value to a string");return ta(e)}function rs(e,t){var r,n=2<arguments.length?arguments[2]:void 0,o=ia(va,this);return aa?r=aa(new ha,o?sa(this):va):(r=o?this:ca(va),la(r,da,"Error")),void 0!==t&&la(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:ra(e)}(t)),pa&&la(r,"stack",function(e,t){if(ys&&"string"==typeof e&&!ps.prepareStackTrace)for(;t--;)e=ds(e,hs,"");return e}(r.stack,1)),o=r,vs(t=n)&&"cause"in t&&ms(o,"cause",t.cause),fa(e,ya,{that:n=[]}),la(r,"errors",n),r}var ns,I=vr("document","documentElement"),os=Rr,is=Fi,ss=C,fn=go,as=I,us=_r,cs=to("IE_PROTO"),ls=function(e){return"<script>"+e+"<\/script>"},fs=function(){try{ns=new ActiveXObject("htmlfile")}catch(e){}var e,t;fs="undefined"==typeof document||document.domain&&ns?$i(ns):((t=us("iframe")).style.display="none",as.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ls("document.F=Object")),e.close(),e.F);for(var r=ss.length;r--;)delete fs.prototype[ss[r]];return fs()},Fi=(fn[cs]=!0,Object.create||function(e,t){var r;return null!==e?(qi.prototype=os(e),r=new qi,qi.prototype=null,r[cs]=e):r=fs(),void 0===t?r:is.f(r,t)}),ps=Error,ds=e("".replace),C=String(ps("zxcasd").stack),hs=/\n\s*at [^:]*:[^\n]*/,ys=hs.test(C),vs=yr,ms=vn,gs=gr,ws=s,Es=e(e.bind),fn={},bs=fn,Ts=w("iterator"),_s=Array.prototype,C={},C=(C[w("toStringTag")]="z","[object z]"===String(C)),N=C,Rs=m,Os=pr,Ss=w("toStringTag"),Cs=Object,Is="Arguments"==Os(function(){return arguments}()),N=N?Os: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=Cs(e),Ss))?t:Is?Os(e):"Object"==(t=Os(e))&&Rs(e.callee)?"Arguments":t},Ns=N,As=wr,ks=fn,xs=w("iterator"),Ps=o,Ds=gr,Ms=Rr,Us=mr,Ls=Wi,js=TypeError,Fs=o,Vs=Rr,Hs=wr,Ks=Xi,zs=o,Gs=Rr,Bs=mr,qs=Yi,$s=O,Xs=l,Ys=Ji,Ws=Wi,Js=Zi,Zs=TypeError,Qs=Qi.prototype,ea=N,ta=String,ra=ts,na=fr,A=!v(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",na(1,7)),7!==e.stack)}),oa=S,ia=l,sa=Qn,aa=ji,ua=ao,ca=Fi,la=vn,k=fr,fa=es,pa=A,da=w("toStringTag"),ha=Error,ya=[].push,va=(aa?aa(rs,ha):ua(rs,ha,{name:!0}),rs.prototype=ca(ha.prototype,{constructor:k(1,rs),message:k(1,""),name:k(1,"AggregateError")})),A=(oa({global:!0,constructor:!0,arity:2},{AggregateError:rs}),w),ua=Fi,k=R.f,ma=A("unscopables"),ga=Array.prototype;null==ga[ma]&&k(ga,ma,{configurable:!0,value:ua(null)});function x(e){ga[ma][e]=!0}var wa,oa=v,A=m,k=Qn,ua=ro,Ea=w("iterator"),P=!1;[].keys&&("next"in(Ra=[].keys())?(k=k(k(Ra)))!==Object.prototype&&(wa=k):P=!0);function ba(e,t,r){(e=e&&!r?e.prototype:e)&&!Sa(e,Ca)&&Oa(e,Ca,{configurable:!0,value:t})}function Ta(){return this}function _a(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=Na(Ia,{next:Aa(+!c,n)}),ka(a,u,!1),xa[u]=Pa;var f,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[$a]||h["@@iterator"]||o&&h[o],v=!qa&&y||l(o);if((n="Array"==t&&h.entries||y)&&(a=La(n.call(new e)))!==Object.prototype&&a.next&&(La(a)!==Ba&&(ja?ja(a,Ba):Ua(a[$a])||Ha(a,$a,Ta)),Fa(a,c,!0)),za&&"values"==o&&y&&"values"!==y.name&&(Ga?Va(h,"name","values"):(d=!0,v=function(){return Ma(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||Ha(h,p,f[p]);else Da({target:t,proto:!0,forced:qa||d},f);return h[$a]!==v&&Ha(h,$a,v,{name:o}),Ka[t]=v,f}A((wa=null==wa||oa(function(){var e={};return wa[Ea].call(e)!==e})?{}:wa)[Ea])||ua(wa,Ea,function(){return this});var Ra={IteratorPrototype:wa,BUGGY_SAFARI_ITERATORS:P},Oa=R.f,Sa=ln,Ca=w("toStringTag"),Ia=Ra.IteratorPrototype,Na=Fi,Aa=fr,ka=ba,xa=fn,Pa=function(){return this},Da=S,Ma=o,Ua=m,La=Qn,ja=ji,Fa=ba,Va=vn,Ha=ro,Ka=fn,za=c.PROPER,Ga=c.CONFIGURABLE,Ba=Ra.IteratorPrototype,qa=Ra.BUGGY_SAFARI_ITERATORS,$a=w("iterator"),Xa=hr,k=x,A=fn,oa=b,ua=R.f,P=_a,c=r,Ya=oa.set,Wa=oa.getterFor("Array Iterator"),Ra=P(Array,"Array",function(e,t){Ya(this,{type:"Array Iterator",target:Xa(e),index:0,kind:t})},function(){var e=Wa(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"),fn=A.Arguments=A.Array;if(k("keys"),k("values"),k("entries"),c&&"values"!==fn.name)try{ua(fn,"name",{value:"values"})}catch(h0){}function Ja(e){var e=nu(e),t=ou.f;iu&&e&&!e[su]&&t(e,su,{configurable:!0,get:function(){return this}})}function Za(e,t){if(au(t,e))return e;throw uu("Incorrect invocation")}function Qa(){}function eu(e){if(!cu(e))return!1;try{return du(Qa,pu,e),!0}catch(e){return!1}}function tu(e){if(!cu(e))return!1;switch(lu(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return vu||!!yu(hu,fu(e))}catch(e){return!0}}var ru=N,oa=(C||ro(Object.prototype,"toString",C?{}.toString:function(){return"[object "+ru(this)+"]"},{unsafe:!0}),"process"==pr(d.process)),nu=vr,ou=R,iu=r,su=w("species"),au=l,uu=TypeError,P=e,A=v,cu=m,lu=N,fu=_,pu=[],du=vr("Reflect","construct"),hu=/^\s*(?:class|function)\b/,yu=P(hu.exec),vu=!hu.exec(Qa);tu.sham=!0;function mu(e,t){var r,e=_u(e).constructor;if(void 0===e||null==(r=_u(e)[Ru]))return t;if(Eu(e=r))return e;throw Tu(bu(e)+" is not a constructor")}var gu,wu,k=!du||A(function(){var e;return eu(eu.call)||!eu(Object)||!eu(function(){e=!0})||e})?tu:eu,Eu=k,bu=mr,Tu=TypeError,_u=Rr,Ru=w("species"),c=Function.prototype,Ou=c.apply,Su=c.call,ua="object"==typeof Reflect&&Reflect.apply||(s?Su.bind(Ou):function(){return Su.apply(Ou,arguments)}),fn=e([].slice),Cu=TypeError,C=/(?:ipad|iphone|ipod).*applewebkit/i.test(jr),Iu=d,Nu=ua,l=Xi,Au=m,ku=ln,N=v,xu=I,Pu=fn,Du=_r,P=C,A=oa,c=Iu.setImmediate,s=Iu.clearImmediate,Mu=Iu.process,Uu=Iu.Dispatch,Lu=Iu.Function,I=Iu.MessageChannel,ju=Iu.String,Fu=0,Vu={};try{gu=Iu.location}catch(h0){}function Hu(e){return function(){Gu(e)}}function Ku(e){Gu(e.data)}function zu(e){Iu.postMessage(ju(e),gu.protocol+"//"+gu.host)}var Gu=function(e){var t;ku(Vu,e)&&(t=Vu[e],delete Vu[e],t())};c&&s||(c=function(e){var t=arguments.length,r=1;if(t<r)throw Cu("Not enough arguments");var n=Au(e)?e:Lu(e),o=Pu(arguments,1);return Vu[++Fu]=function(){Nu(n,void 0,o)},wu(Fu),Fu},s=function(e){delete Vu[e]},A?wu=function(e){Mu.nextTick(Hu(e))}:Uu&&Uu.now?wu=function(e){Uu.now(Hu(e))}:I&&!P?(P=(A=new I).port2,A.port1.onmessage=Ku,wu=l(P.postMessage,P)):Iu.addEventListener&&Au(Iu.postMessage)&&!Iu.importScripts&&gu&&"file:"!==gu.protocol&&!N(zu)?(wu=zu,Iu.addEventListener("message",Ku,!1)):wu="onreadystatechange"in Du("script")?function(e){xu.appendChild(Du("script")).onreadystatechange=function(){xu.removeChild(this),Gu(e)}}:function(e){setTimeout(Hu(e),0)});function Bu(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function qu(){this.head=null,this.tail=null}function $u(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=hc(r),this.reject=hc(n)}var Xu,Yu,Wu,Ju,Zu,Qu,ec,I={set:c,clear:s},A=d,l=/ipad|iphone|ipod/i.test(jr)&&void 0!==A.Pebble,P=/web0s(?!.*chrome)/i.test(jr),N=d,c=Xi,s=i.f,tc=I.set,A=C,i=l,C=P,rc=oa,l=N.MutationObserver||N.WebKitMutationObserver,P=N.document,nc=N.process,oc=N.Promise,s=s(N,"queueMicrotask"),s=s&&s.value,C=(s||(Xu=function(){var e,t;for(rc&&(e=nc.domain)&&e.exit();Yu;){t=Yu.fn,Yu=Yu.next;try{t()}catch(e){throw Yu?Ju():Wu=void 0,e}}Wu=void 0,e&&e.enter()},Ju=A||rc||C||!l||!P?!i&&oc&&oc.resolve?((A=oc.resolve(void 0)).constructor=oc,ec=c(A.then,A),function(){ec(Xu)}):rc?function(){nc.nextTick(Xu)}:(tc=c(tc,N),function(){tc(Xu)}):(Zu=!0,Qu=P.createTextNode(""),new l(Xu).observe(Qu,{characterData:!0}),function(){Qu.data=Zu=!Zu})),s||function(e){e={fn:e,next:void 0};Wu&&(Wu.next=e),Yu||(Yu=e,Ju()),Wu=e}),ic=d,i=(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),oc=d.Promise,A="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,c=!A&&!oa&&"object"==typeof window&&"object"==typeof document,N=d,sc=oc,P=m,l=So,ac=_,s=w,uc=c,cc=A,lc=T,fc=(sc&&sc.prototype,s("species")),pc=!1,dc=P(N.PromiseRejectionEvent),_={CONSTRUCTOR:l("Promise",function(){var e=ac(sc),t=e!==String(sc);if(!t&&66===lc)return!0;if(!lc||lc<51||!/native code/.test(e)){var e=new sc(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[fc]=r,!(pc=e.then(function(){})instanceof r))return!0}return!t&&(uc||cc)&&!dc}),REJECTION_EVENT:dc,SUBCLASSING:pc},c={},hc=gr;c.f=function(e){return new $u(e)};function yc(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,bc(Cc,Ec,function(){var e=i.facade;wc?Vc.emit("rejectionHandled",e):qc("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(jc("Promise-chain cycle")):(n=Gc(r))?bc(n,r,c,l):c(r)):l(s)}catch(e){f&&!o&&f.exit(),l(e)}}var vc,mc,gc,A=S,wc=oa,Ec=d,bc=o,s=ro,P=ji,N=ba,l=Ja,Tc=gr,_c=m,Rc=yr,Oc=Za,Sc=mu,Cc=I.set,Ic=C,Nc=Bu,Ac=i,I=b,C=oc,i=c,kc=_.CONSTRUCTOR,xc=_.REJECTION_EVENT,Pc=_.SUBCLASSING,Dc=I.getterFor("Promise"),Mc=I.set,I=C&&C.prototype,Uc=C,Lc=I,jc=Ec.TypeError,Fc=Ec.document,Vc=Ec.process,Hc=i.f,Kc=Hc,zc=!!(Fc&&Fc.createEvent&&Ec.dispatchEvent),Gc=function(e){var t;return!(!Rc(e)||!_c(t=e.then))&&t},Bc=function(r,o){r.notified||(r.notified=!0,Ic(function(){for(var e,n,t=r.reactions;e=t.get();)yc(e,r);r.notified=!1,o&&!r.rejection&&(n=r,bc(Cc,Ec,function(){var e,t=n.facade,r=n.value;if($c(n)&&(e=Nc(function(){wc?Vc.emit("unhandledRejection",r,t):qc("unhandledrejection",t,r)}),n.rejection=wc||$c(n)?2:1,e.error))throw e.value}))}))},qc=function(e,t,r){var n;zc?((n=Fc.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Ec.dispatchEvent(n)):n={promise:t,reason:r},!xc&&(t=Ec["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=ic.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},$c=function(e){return 1!==e.rejection&&!e.parent},Xc=function(t,r,n){return function(e){t(r,e,n)}},Yc=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,Bc(e,!0))},Wc=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw jc("Promise can't be resolved itself");var n=Gc(e);n?Ic(function(){var t={done:!1};try{bc(n,e,Xc(Wc,t,r),Xc(Yc,t,r))}catch(e){Yc(t,e,r)}}):(r.value=e,r.state=1,Bc(r,!1))}catch(e){Yc({done:!1},e,r)}}};if(kc&&(Lc=(Uc=function(e){Oc(this,Lc),Tc(e),bc(vc,this);var t=Dc(this);try{e(Xc(Wc,t),Xc(Yc,t))}catch(e){Yc(t,e)}}).prototype,(vc=function(e){Mc(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new Ac,rejection:!1,state:0,value:void 0})}).prototype=s(Lc,"then",function(e,t){var r=Dc(this),n=Hc(Sc(this,Uc));return r.parent=!0,n.ok=!_c(e)||e,n.fail=_c(t)&&t,n.domain=wc?Vc.domain:void 0,0==r.state?r.reactions.add(n):Ic(function(){yc(n,r)}),n.promise}),mc=function(){var e=new vc,t=Dc(e);this.promise=e,this.resolve=Xc(Wc,t),this.reject=Xc(Yc,t)},i.f=Hc=function(e){return e===Uc||void 0===e?new mc:Kc(e)},_c(C)&&I!==Object.prototype)){gc=I.then,Pc||s(I,"then",function(e,t){var r=this;return new Uc(function(e,t){bc(gc,r,e,t)}).then(e,t)},{unsafe:!0});try{delete I.constructor}catch(h0){}P&&P(I,Lc)}A({global:!0,constructor:!0,wrap:!0,forced:kc},{Promise:Uc}),N(Uc,"Promise",!1),l("Promise");var Jc=w("iterator"),Zc=!1;try{var Qc=0,el={next:function(){return{done:!!Qc++}},return:function(){Zc=!0}};el[Jc]=function(){return this},Array.from(el,function(){throw 2})}catch(h0){}function tl(e,t){if(!t&&!Zc)return!1;var r=!1;try{var n={};n[Jc]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function rl(e,t){return wl(e),El(t)&&t.constructor===e?t:((0,(e=bl.f(e)).resolve)(t),e.promise)}function nl(o){return function(e,t){var r,e=Vl(Hl(e)),t=Fl(t),n=e.length;return t<0||n<=t?o?"":void 0:(r=zl(e,t))<55296||56319<r||t+1===n||(n=zl(e,t+1))<56320||57343<n?o?Kl(e,t):r:o?Gl(e,t,t+2):n-56320+(r-55296<<10)+65536}}function ol(e,t){if(e){if(e[Ql]!==tf)try{Zl(e,Ql,tf)}catch(t){e[Ql]=tf}if(e[ef]||Zl(e,ef,t),Wl[t])for(var r in Jl)if(e[r]!==Jl[r])try{Zl(e,r,Jl[r])}catch(t){e[r]=Jl[r]}}}var il,sl=oc,i=_.CONSTRUCTOR||!tl(function(e){sl.all(e).then(void 0,function(){})}),al=o,ul=gr,cl=c,ll=Bu,fl=es,C=(S({target:"Promise",stat:!0,forced:i},{all:function(e){var a=this,t=cl.f(a),u=t.resolve,c=t.reject,r=ll(function(){var n=ul(a.resolve),o=[],i=0,s=1;fl(e,function(e){var t=i++,r=!1;s++,al(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}}),S),Pc=oc,s=vr,P=m,I=ro,A=Pc&&Pc.prototype,pl=(C({target:"Promise",proto:!0,forced:_.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),P(Pc)&&(kc=s("Promise").prototype.catch,A.catch!==kc&&I(A,"catch",kc,{unsafe:!0})),o),dl=gr,hl=c,yl=Bu,vl=es,ml=(S({target:"Promise",stat:!0,forced:i},{race:function(e){var r=this,n=hl.f(r),o=n.reject,t=yl(function(){var t=dl(r.resolve);vl(e,function(e){pl(t,r,e).then(n.resolve,o)})});return t.error&&o(t.value),n.promise}}),o),gl=c,wl=(S({target:"Promise",stat:!0,forced:_.CONSTRUCTOR},{reject:function(e){var t=gl.f(this);return ml(t.reject,void 0,e),t.promise}}),Rr),El=yr,bl=c,N=S,l=_.CONSTRUCTOR,Tl=rl,_l=(vr("Promise"),N({target:"Promise",stat:!0,forced:l},{resolve:function(e){return Tl(this,e)}}),o),Rl=gr,Ol=c,Sl=Bu,Cl=es,Il=(S({target:"Promise",stat:!0},{allSettled:function(e){var a=this,t=Ol.f(a),u=t.resolve,r=t.reject,n=Sl(function(){var n=Rl(a.resolve),o=[],i=0,s=1;Cl(e,function(e){var t=i++,r=!1;s++,_l(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),Nl=gr,Al=vr,kl=c,xl=Bu,Pl=es,el=(S({target:"Promise",stat:!0},{any:function(e){var u=this,c=Al("AggregateError"),t=kl.f(u),l=t.resolve,f=t.reject,r=xl(function(){var n=Nl(u.resolve),o=[],i=0,s=1,a=!1;Pl(e,function(e){var t=i++,r=!1;s++,Il(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}}),S),C=oc,P=v,Dl=vr,Ml=m,Ul=mu,Ll=rl,Pc=ro,jl=C&&C.prototype,I=(el({target:"Promise",proto:!0,real:!0,forced:!!C&&P(function(){jl.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=Ul(this,Dl("Promise")),e=Ml(t);return this.then(e?function(e){return Ll(r,t()).then(function(){return e})}:t,e?function(e){return Ll(r,t()).then(function(){throw e})}:t)}}),Ml(C)&&(s=Dl("Promise").prototype.finally,jl.finally!==s&&Pc(jl,"finally",s,{unsafe:!0})),e),Fl=no,Vl=ts,Hl=dr,Kl=I("".charAt),zl=I("".charCodeAt),Gl=I("".slice),Bl=(nl(!1),nl(!0)),ql=ts,A=b,kc=_a,$l=A.set,Xl=A.getterFor("String Iterator"),i=(kc(String,"String",function(e){$l(this,{type:"String Iterator",string:ql(e),index:0})},function(){var e=Xl(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=Bl(t,r),e.index+=t.length,{value:t,done:!1})}),d),_=(i.Promise,_r("span").classList),N=_&&_.constructor&&_.constructor.prototype,l=N===Object.prototype?void 0:N,Yl=d,Wl={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},oc=l,Jl=Ra,Zl=vn,el=w,Ql=el("iterator"),ef=el("toStringTag"),tf=Jl.values;for(il in Wl)ol(Yl[il]&&Yl[il].prototype,il);ol(oc,"DOMTokenList");function rf(e,t,r){(t=If(t))in e?Nf.f(e,t,Af(0,r)):e[t]=r}function nf(e){if(9007199254740991<e)throw Xf("Maximum allowed index exceeded");return e}function of(e,t){return Yf(e=e)&&(r=e.constructor,(Wf(r)&&(r===Qf||Yf(r.prototype))||Jf(r)&&null===(r=r[Zf]))&&(r=void 0)),new(void 0===r?Qf:r)(0===t?0:t);var r}function sf(t){return 51<=tp||!ep(function(){var e=[];return(e.constructor={})[rp]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function af(e,t){if(!delete e[t])throw pp("Cannot delete property "+fp(t)+" of "+fp(e))}function uf(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=Ep(e),a=wp(s),u=gp(t,r),c=bp(a),l=0,t=n||Tp,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:_p(f,o)}else switch(p){case 4:return!1;case 7:_p(f,o)}return m?-1:y||v?v:f}}function cf(e,t){var r=[][e];return!!r&&Rp(function(){r.call(null,t||function(){return 1},1)})}function lf(u){var c=1==u;return function(e,t,r){for(var n,o=Up(e),i=Mp(o),s=Dp(t,r),a=Lp(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 ff(e,t,r,n,o,i,s,a){for(var u,c,l=o,f=0,p=!!s&&zp(s,a);f<n;)f in r&&(u=p?p(r[f],f,t):r[f],0<i&&Vp(u)?(c=Hp(u),l=ff(e,t,u,c,l,i-1)-1):(Kp(l+1),e[l]=u),l++),f++;return l}function pf(c){return function(e,t,r,n){gd(t);var o=wd(e),i=Ed(o),s=bd(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 Td("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 df(e,t,r){for(var n=Vd(e),o=Fd(t,n),i=Fd(void 0===r?n:r,n),s=Kd(zd(i-o,0)),a=0;o<i;o++,a++)Hd(s,a,e[o]);return s.length=a,s}function hf(e,t){var r=e.length,n=Bd(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=hf(Gd(e,0,n),t),p=hf(Gd(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 yf(e){Ph(e,Fh,{value:{objectID:"O"+Vh++,weakData:{}}})}function vf(e,t,r){for(var n in t)Wh(e,n,t[n],r);return e}var mf,gf,wf,Ef,bf,Tf,_f,Rf=c,Of=Bu,Sf=(S({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Rf.f(this),e=Of(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),Rr),Cf=Zi,If=Tr,Nf=R,Af=fr,kf=Xi,xf=o,Pf=g,Df=Yi,Mf=k,Uf=O,Lf=rf,jf=Ji,Ff=Wi,Vf=Array,Hf=(S({target:"Array",stat:!0,forced:!tl(function(e){Array.from(e)})},{from:function(e){var t=Pf(e),e=Mf(this),r=arguments.length,n=1<r?arguments[1]:void 0,o=void 0!==n;o&&(n=kf(n,2<r?arguments[2]:void 0));var i,s,a,u,c,l,r=Ff(t),f=0;if(!r||this===Vf&&Df(r))for(i=Uf(t),s=e?new this(i):Vf(i);f<i;f++)l=o?n(t[f],f):t[f],Lf(s,f,l);else for(c=(u=jf(t,r)).next,s=e?new this:[];!(a=xf(c,u)).done;f++)l=o?function(e,t,r,n){try{return n?t(Sf(r)[0],r[1]):t(r)}catch(t){Cf(e,"throw",t)}}(u,n,[a.value,f],!0):a.value,Lf(s,f,l);return s.length=f,s}}),pr),P=Array.isArray||function(e){return"Array"==Hf(e)},Kf=(S({target:"Array",stat:!0},{isArray:P}),k),zf=rf,Gf=Array,Bf=(S({target:"Array",stat:!0,forced:v(function(){function e(){}return!(Gf.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(Kf(this)?this:Gf)(t);e<t;)zf(r,e,arguments[e++]);return r.length=t,r}}),g),qf=O,$f=no,C=x,Xf=(S({target:"Array",proto:!0},{at:function(e){var t=Bf(this),r=qf(t),e=$f(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),C("at"),TypeError),Yf=P,Wf=k,Jf=yr,Zf=w("species"),Qf=Array,ep=v,tp=T,rp=w("species"),Pc=S,s=v,np=P,op=yr,ip=g,sp=O,ap=nf,up=rf,cp=of,I=sf,A=T,lp=w("isConcatSpreadable"),kc=51<=A||!s(function(){var e=[];return e[lp]=!1,e.concat()[0]!==e}),_=I("concat"),fp=(Pc({target:"Array",proto:!0,arity:1,forced:!kc||!_},{concat:function(e){for(var t,r,n,o=ip(this),i=cp(o,0),s=0,a=-1,u=arguments.length;a<u;a++)if(function(e){if(!op(e))return!1;var t=e[lp];return void 0!==t?!!t:np(e)}(n=-1===a?o:arguments[a]))for(r=sp(n),ap(s+r),t=0;t<r;t++,s++)t in n&&up(i,s,n[t]);else ap(s+1),up(i,s++,n);return i.length=s,i}}),mr),pp=TypeError,dp=g,hp=oo,yp=O,vp=af,mp=Math.min,N=x,gp=(S({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=dp(this),n=yp(r),o=hp(e,n),i=hp(t,n),e=2<arguments.length?arguments[2]:void 0,s=mp((void 0===e?n:hp(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]:vp(r,o),o+=a,i+=a;return r}}),N("copyWithin"),Xi),wp=E,Ep=g,bp=O,Tp=of,_p=e([].push),l={forEach:uf(0),map:uf(1),filter:uf(2),some:uf(3),every:uf(4),find:uf(5),findIndex:uf(6),filterReject:uf(7)},Rp=v,Op=l.every,Sp=(S({target:"Array",proto:!0,forced:!cf("every")},{every:function(e){return Op(this,e,1<arguments.length?arguments[1]:void 0)}}),g),Cp=oo,Ip=O,Ra=x,Np=(S({target:"Array",proto:!0},{fill:function(e){for(var t=Sp(this),r=Ip(t),n=arguments.length,o=Cp(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,i=void 0===n?r:Cp(n,r);o<i;)t[o++]=e;return t}}),Ra("fill"),l.filter),vn=(S({target:"Array",proto:!0,forced:!sf("filter")},{filter:function(e){return Np(this,e,1<arguments.length?arguments[1]:void 0)}}),S),Ap=l.find,el=x,kp=!0,oc=("find"in[]&&Array(1).find(function(){kp=!1}),vn({target:"Array",proto:!0,forced:kp},{find:function(e){return Ap(this,e,1<arguments.length?arguments[1]:void 0)}}),el("find"),S),xp=l.findIndex,c=x,Pp=!0,Dp=("findIndex"in[]&&Array(1).findIndex(function(){Pp=!1}),oc({target:"Array",proto:!0,forced:Pp},{findIndex:function(e){return xp(this,e,1<arguments.length?arguments[1]:void 0)}}),c("findIndex"),Xi),Mp=E,Up=g,Lp=O,C={findLast:lf(0),findLastIndex:lf(1)},jp=C.findLast,A=x,Fp=(S({target:"Array",proto:!0},{findLast:function(e){return jp(this,e,1<arguments.length?arguments[1]:void 0)}}),A("findLast"),C.findLastIndex),s=x,Vp=(S({target:"Array",proto:!0},{findLastIndex:function(e){return Fp(this,e,1<arguments.length?arguments[1]:void 0)}}),s("findLastIndex"),P),Hp=O,Kp=nf,zp=Xi,I=ff,Gp=I,Bp=g,qp=O,$p=no,Xp=of,Yp=(S({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Bp(this),r=qp(t),n=Xp(t,0);return n.length=Gp(n,t,t,r,0,void 0===e?1:$p(e)),n}}),I),Wp=gr,Jp=g,Zp=O,Qp=of,ed=(S({target:"Array",proto:!0},{flatMap:function(e){var t,r=Jp(this),n=Zp(r);return Wp(e),(t=Qp(r,0)).length=Yp(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),l.forEach),Pc=cf("forEach")?[].forEach:function(e){return ed(this,e,1<arguments.length?arguments[1]:void 0)},td=(S({target:"Array",proto:!0,forced:[].forEach!=Pc},{forEach:Pc}),Ro.includes),kc=x,_=(S({target:"Array",proto:!0,forced:v(function(){return!Array(1).includes()})},{includes:function(e){return td(this,e,1<arguments.length?arguments[1]:void 0)}}),kc("includes"),S),rd=Ro.indexOf,N=cf,nd=e([].indexOf),od=!!nd&&1/nd([1],1,-0)<0,Ra=N("indexOf"),vn=(_({target:"Array",proto:!0,forced:od||!Ra},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return od?nd(this,e,t)||0:rd(this,e,t)}}),S),el=E,id=hr,oc=cf,sd=e([].join),c=el!=Object,A=oc("join",","),ad=(vn({target:"Array",proto:!0,forced:c||!A},{join:function(e){return sd(id(this),void 0===e?",":e)}}),ua),ud=hr,cd=no,ld=O,C=cf,fd=Math.min,pd=[].lastIndexOf,dd=!!pd&&1/[1].lastIndexOf(1,-0)<0,s=C("lastIndexOf"),I=dd||!s?function(e){if(dd)return ad(pd,this,arguments)||0;var t=ud(this),r=ld(t),n=r-1;for((n=1<arguments.length?fd(n,cd(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:pd,hd=(S({target:"Array",proto:!0,forced:I!==[].lastIndexOf},{lastIndexOf:I}),l.map),Pc=(S({target:"Array",proto:!0,forced:!sf("map")},{map:function(e){return hd(this,e,1<arguments.length?arguments[1]:void 0)}}),S),yd=g,vd=O,md=nf,kc=v(function(){return 4294967297!==[].push.call({length:4294967296},1)}),Ro=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),gd=(Pc({target:"Array",proto:!0,arity:1,forced:kc||Ro},{push:function(e){var t=yd(this),r=vd(t),n=arguments.length;md(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return t.length=r}}),gr),wd=g,Ed=E,bd=O,Td=TypeError,N={left:pf(!1),right:pf(!0)},_d=N.left,_=T,Ra=oa,Rd=(S({target:"Array",proto:!0,forced:!cf("reduce")||!Ra&&79<_&&_<83},{reduce:function(e){var t=arguments.length;return _d(this,e,t,1<t?arguments[1]:void 0)}}),N.right),el=T,oc=oa,vn=(S({target:"Array",proto:!0,forced:!cf("reduceRight")||!oc&&79<el&&el<83},{reduceRight:function(e){return Rd(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),S),Od=P,Sd=e([].reverse),c=[1,2],A=(vn({target:"Array",proto:!0,forced:String(c)===String(c.reverse())},{reverse:function(){return Od(this)&&(this.length=this.length),Sd(this)}}),S),Cd=P,Id=k,Nd=yr,Ad=oo,kd=O,xd=hr,Pd=rf,ua=w,Dd=fn,C=sf("slice"),Md=ua("species"),Ud=Array,Ld=Math.max,jd=(A({target:"Array",proto:!0,forced:!C},{slice:function(e,t){var r,n,o,i=xd(this),s=kd(i),a=Ad(e,s),u=Ad(void 0===t?s:t,s);if(Cd(i)&&(r=i.constructor,(r=Id(r)&&(r===Ud||Cd(r.prototype))||Nd(r)&&null===(r=r[Md])?void 0:r)===Ud||void 0===r))return Dd(i,a,u);for(n=new(void 0===r?Ud:r)(Ld(u-a,0)),o=0;a<u;a++,o++)a in i&&Pd(n,o,i[a]);return n.length=o,n}}),l.some),Fd=(S({target:"Array",proto:!0,forced:!cf("some")},{some:function(e){return jd(this,e,1<arguments.length?arguments[1]:void 0)}}),oo),Vd=O,Hd=rf,Kd=Array,zd=Math.max,Gd=df,Bd=Math.floor,s=hf,I=jr.match(/firefox\/(\d+)/i),Pc=!!I&&+I[1],kc=/MSIE|Trident/.test(jr),Ro=jr.match(/AppleWebKit\/(\d+)\./),Ra=!!Ro&&+Ro[1],_=S,N=e,qd=gr,$d=g,Xd=O,Yd=af,Wd=ts,oa=v,Jd=s,oc=cf,Zd=Pc,Qd=kc,eh=T,th=Ra,rh=[],nh=N(rh.sort),oh=N(rh.push),el=oa(function(){rh.sort(void 0)}),vn=oa(function(){rh.sort(null)}),c=oc("sort"),ih=!oa(function(){if(eh)return eh<70;if(!(Zd&&3<Zd)){if(Qd)return!0;if(th)return th<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++)rh.push({k:e+r,v:t})}for(rh.sort(function(e,t){return t.v-e.v}),r=0;r<rh.length;r++)e=rh[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),fn=(_({target:"Array",proto:!0,forced:el||!vn||!c||!ih},{sort:function(e){void 0!==e&&qd(e);var t=$d(this);if(ih)return void 0===e?nh(t):nh(t,e);for(var r,n,o=[],i=Xd(t),s=0;s<i;s++)s in t&&oh(o,t[s]);for(Jd(o,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:Wd(e)>Wd(t)?1:-1})),r=o.length,s=0;s<r;)t[s]=o[s++];for(;s<i;)Yd(t,s++);return t}}),Ja("Array"),S),sh=g,ah=oo,uh=no,ch=O,lh=nf,fh=of,ph=rf,dh=af,ua=sf("splice"),hh=Math.max,yh=Math.min,A=(fn({target:"Array",proto:!0,forced:!ua},{splice:function(e,t){var r,n,o,i,s,a,u=sh(this),c=ch(u),l=ah(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-l):(r=e-2,yh(hh(uh(t),0),c-l)),lh(c+r-n),o=fh(u,n),i=0;i<n;i++)(s=l+i)in u&&ph(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]:dh(u,a);for(i=c;c-n+r<i;i--)dh(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]:dh(u,a);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return u.length=c-n+r,o}}),x("flat"),x("flatMap"),S),vh=g,mh=O,gh=af,wh=nf,C=1!==[].unshift(0),I=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),jr=(A({target:"Array",proto:!0,arity:1,forced:C||I},{unshift:function(e){var t=vh(this),r=mh(t),n=arguments.length;if(n){wh(r+n);for(var o=r;o--;){var i=o+n;o in t?t[i]=t[o]:gh(t,i)}for(var s=0;s<n;s++)t[s]=arguments[s]}return t.length=r+n}}),i.Array,{exports:{}}),Ro={},Eh=pr,bh=hr,Th=Fr.f,_h=df,Rh="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=(Ro.f=function(e){if(!Rh||"Window"!=Eh(e))return Th(bh(e));var t=e;try{return Th(t)}catch(t){return _h(Rh)}},v(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),Pc=v,Oh=yr,Sh=pr,Ch=s,Ih=Object.isExtensible,kc=Pc(function(){Ih(1)})||Ch?function(e){return!!Oh(e)&&(!Ch||"ArrayBuffer"!=Sh(e))&&(!Ih||Ih(e))}:Ih,T=!v(function(){return Object.isExtensible(Object.preventExtensions({}))}),Nh=S,Ah=e,Ra=go,kh=yr,xh=ln,Ph=R.f,Dh=Fr,Mh=Ro,Uh=kc,Lh=T,jh=!1,Fh=br("meta"),Vh=0,Hh=jr.exports={enable:function(){Hh.enable=function(){},jh=!0;var o=Dh.f,i=Ah([].splice),e={};e[Fh]=1,o(e).length&&(Dh.f=function(e){for(var t=o(e),r=0,n=t.length;r<n;r++)if(t[r]===Fh){i(t,r,1);break}return t},Nh({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Mh.f}))},fastKey:function(e,t){if(!kh(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!xh(e,Fh)){if(!Uh(e))return"F";if(!t)return"E";yf(e)}return e[Fh].objectID},getWeakData:function(e,t){if(!xh(e,Fh)){if(!Uh(e))return!0;if(!t)return!1;yf(e)}return e[Fh].weakData},onFreeze:function(e){return Lh&&jh&&Uh(e)&&!xh(e,Fh)&&yf(e),e}},Kh=(Ra[Fh]=!0,m),zh=yr,Gh=ji,N=S,oc=d,Bh=e,oa=So,qh=ro,_=jr.exports,$h=es,Xh=Za,el=m,Yh=yr,vn=v,c=tl,fn=ba,Wh=ro,Jh=R.f,Zh=Fi,Qh=vf,ey=Xi,ty=Za,ry=es,ny=_a,oy=Ja,iy=r,sy=jr.exports.fastKey,ay=b.set,uy=b.getterFor;function cy(e){var r=Bh(Tf[e]);qh(Tf,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(wf&&!Yh(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return wf&&!Yh(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(wf&&!Yh(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}ua=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=sy(t,!0),key:t,value:r,previous:t=o.last,next:void 0,removed:!1},o.first||(o.first=i),t&&(t.next=i),iy?o.size++:e.size++,"F"!==n&&(o.index[n]=i)),e}function s(e,t){var r,e=u(e),n=sy(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){ty(e,a),ay(e,{type:r,index:Zh(null),first:void 0,last:void 0,size:0}),iy||(e.size=0),null!=t&&ry(t,e[o],{that:e,AS_ENTRIES:n})}),a=e.prototype,u=uy(r);return Qh(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,iy?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),iy?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=ey(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)}}),Qh(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)}}),iy&&Jh(a,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",o=uy(t),i=uy(n);ny(e,t,function(e,t){ay(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),oy(t)}},gf=-1!==(C="Map").indexOf("Map"),wf=-1!==C.indexOf("Weak"),Ef=gf?"set":"add",bf=oc.Map,Tf=bf&&bf.prototype,I={},oa(C,!el(_f=bf)||!(wf||Tf.forEach&&!vn(function(){(new bf).entries().next()})))?(_f=A.getConstructor(ua,C,gf,Ef),_.enable()):oa(C,!0)&&(i=(mf=new _f)[Ef](wf?{}:-0,1)!=mf,s=vn(function(){mf.has(1)}),Pc=c(function(e){new bf(e)}),go=!wf&&vn(function(){for(var e=new bf,t=5;t--;)e[Ef](t,t);return!e.has(-0)}),Pc||(((_f=ua(function(e,t){Xh(e,Tf);r=new bf,e=e,n=_f,Gh&&Kh(e=e.constructor)&&e!==n&&zh(e=e.prototype)&&e!==n.prototype&&Gh(r,e);var r,n=r;return null!=t&&$h(t,n[Ef],{that:n,AS_ENTRIES:gf}),n})).prototype=Tf).constructor=_f),(s||go)&&(cy("delete"),cy("has"),gf&&cy("get")),(go||i)&&cy(Ef),wf&&Tf.clear&&delete Tf.clear),I.Map=_f,N({global:!0,constructor:!0,forced:_f!=bf},I),fn(_f,C),wf||A.setStrong(_f,C,gf);function ly(e,t){for(var r=0,n=hy(t),o=new e(n);r<n;)o[r]=t[r++];return o}function fy(e,t,r,n){for(var o,i,s,a=my(e),u=vy(a),c=yy(t,r),l=Ey(null),f=wy(u),p=0;p<f;p++)s=u[p],(i=gy(c(s,p,a)))in l?_y(l[i],s):l[i]=[s];if(n&&(o=n(a))!==Ty)for(i in l)l[i]=by(o,l[i]);return l}function py(e){for(var t,r,n=Iy(this),o=Cy(n),i=Sy(e,1<arguments.length?arguments[1]:void 0),s=new Ay,a=Ny(o),u=0;u<a;u++)t=i(r=o[u],u,n),xy(s,t)?Dy(ky(s,t),r):Py(s,t,[r]);return s}function dy(e){return jy[e].prototype}var hy=O,yy=Xi,vy=E,my=g,gy=Tr,wy=O,Ey=Fi,by=ly,Ty=Array,_y=e([].push),Ry=fy,ln=x,Oy=(S({target:"Array",proto:!0},{group:function(e){return Ry(this,e,1<arguments.length?arguments[1]:void 0)}}),ln("group"),fy),Fr=x,Sy=(S({target:"Array",proto:!0,forced:!cf("groupBy")},{groupBy:function(e){return Oy(this,e,1<arguments.length?arguments[1]:void 0)}}),Fr("groupBy"),Xi),Ro=e,Cy=E,Iy=g,Ny=O,Ay=vr("Map"),kc=Ay.prototype,ky=Ro(kc.get),xy=Ro(kc.has),Py=Ro(kc.set),Dy=Ro([].push),T=x,Ra=py,ji=(S({target:"Array",proto:!0,name:"groupToMap",forced:!cf("groupByToMap")},{groupByToMap:Ra}),T("groupByToMap"),x),My=(S({target:"Array",proto:!0},{groupToMap:py}),ji("groupToMap"),O),Uy=hr,So=x,Ly=Array,jy=(S({target:"Array",proto:!0},{toReversed:function(){for(var e=Uy(this),t=Ly,r=My(e),n=new t(r),o=0;o<r;o++)n[o]=e[r-o-1];return n}}),So("toReversed"),d),jr=S,Fy=gr,Vy=hr,Hy=ly,oc=x,Ky=Array,zy=e(dy("Array").sort),oa=(jr({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&Fy(e);var t=Vy(this),t=Hy(Ky,t);return zy(t,e)}}),oc("toSorted"),S),c=x,Gy=nf,By=O,qy=oo,$y=hr,Xy=no,Yy=Array,Wy=Math.max,Jy=Math.min,Zy=(oa({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,o,i,s=$y(this),a=By(s),u=qy(e,a),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,a-u):(r=e-2,Jy(Wy(Xy(t),0),a-u)),o=Gy(a+r-n),i=Yy(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}}),c("toSpliced"),O),Qy=no,ev=RangeError,tv=hr,rv=Array;S({target:"Array",proto:!0},{with:function(e,t){var r=tv(this),n=rv,o=t,i=Zy(r),s=(e=Qy(e))<0?i+e:e;if(i<=s||s<0)throw ev("Incorrect index");for(var a=new n(i),u=0;u<i;u++)a[u]=u===s?o:r[u];return a}});vn=d,Pc=nn,ua=m,s=Qn,go=ro,i=w("asyncIterator"),N=vn.AsyncIterator,I=Pc.AsyncIteratorPrototype;if(I)_m=I;else if(ua(N))_m=N.prototype;else if(Pc.USE_FUNCTION_CONSTRUCTOR||vn.USE_FUNCTION_CONSTRUCTOR)try{Tm=s(s(s(Function("return async function*(){}()")()))),s(Tm)===Object.prototype&&(_m=Tm)}catch(h0){}ua((_m=_m||{})[i])||go(_m,i,function(){return this});function nv(e,t,r){var n=e.done;pv.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function ov(e){dv(this,{type:"AsyncFromSyncIterator",iterator:lv(e),next:e.next})}function iv(e,t,r,n){try{var o=Ov(e,"return");if(o)return Rv("Promise").resolve(_v(o,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function sv(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,s,a){var e={iterator:e,next:bv(Tv(e).next)},u=Av("Promise"),c=e.iterator,t=e.next,l=0,f=void 0!==s;return!f&&p||Cv(s),new u(function(r,n){var o=function(e){iv(c,n,e,n)},i=function(){try{if(p&&f)try{Nv(l)}catch(e){o(e)}u.resolve(Iv(Sv(t,c))).then(function(e){try{if(Iv(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():iv(c,r,!1,n);else if(p)try{a[l++]=e,i()}catch(e){o(e)}else e?iv(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 av(e,t){if(!Bv||!Gv(e)||!Bv(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 uv(e,t,r){r.get&&qv(r.get,t,{getter:!0}),r.set&&qv(r.set,t,{setter:!0}),$v.f(e,t,r)}var cv=o,lv=Rr,fn=Fi,fv=wr,A=vf,C=b,ln=_m,pv=vr("Promise"),dv=C.set,hv=C.getterFor("AsyncFromSyncIterator"),Fr=(ov.prototype=A(fn(ln),{next:function(){var n=hv(this);return new pv(function(e,t){var r=lv(cv(n.next,n.iterator));nv(r,e,t)})},return:function(){var n=hv(this).iterator;return new pv(function(e,t){var r=fv(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=lv(cv(r,n));nv(r,e,t)})}}),ov),yv=o,vv=Fr,mv=Rr,gv=Ji,wv=wr,Ev=w("asyncIterator"),bv=gr,Tv=Rr,_v=o,Rv=vr,Ov=wr,Sv=o,Cv=gr,Iv=Rr,Nv=nf,Av=vr,E={toArray:sv(0),forEach:sv(1),every:sv(2),some:sv(3),find:sv(4)},kv=Xi,xv=g,Pv=k,Dv=Ji,Mv=Wi,Uv=wr,kc=dy,Lv=vr,jv=Fr,Fv=E.toArray,Vv=w("asyncIterator"),Hv=kc("Array").values,Kv=(S({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(Lv("Promise"))(function(e){var t=xv(i),r=(void 0!==a&&(a=kv(a,u)),Uv(t,Vv)),n=r?void 0:Mv(t)||Hv,o=Pv(s)?new s:[],r=r?function(e,t){t=arguments.length<2?wv(e,Ev):t;return t?mv(yv(t,e)):new vv(gv(e))}(t,r):new jv(Dv(t,n));e(Fv(r,a,o))})}}),l.filterReject),Ro=x,zv=(S({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return Kv(this,e,1<arguments.length?arguments[1]:void 0)}}),Ro("filterOut"),l.filterReject),Ra=x,T=(S({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return zv(this,e,1<arguments.length?arguments[1]:void 0)}}),Ra("filterReject"),S),Gv=P,Bv=Object.isFrozen,qv=(T({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!av(e,!0))return!1;var t=e.raw;return t.length===e.length&&av(t,!1)}}),Br.exports),$v=R,ji=x,Xv=g,Yv=O,So=(r&&(uv(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=Xv(this),t=Yv(e);return 0==t?void 0:e[t-1]},set:function(e){var t=Xv(this),r=Yv(t);return t[0==r?0:r-1]=e}}),ji("lastItem")),x),Wv=g,Jv=O,jr=(r&&(uv(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=Wv(this),e=Jv(e);return 0==e?0:e-1}}),So("lastIndex")),e),Zv=gr,Qv=O,em=g,tm=of,rm=vr("Map"),oc=rm.prototype,nm=jr(oc.forEach),om=jr(oc.has),im=jr(oc.set),sm=jr([].push),oa=x;S({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=em(this),o=Qv(n),i=tm(n,0),s=new rm,a=null!=e?Zv(e):function(e){return e},u=0;u<o;u++)r=a(t=n[u]),om(s,r)||im(s,r,t);return nm(s,function(e){sm(i,e)}),i}}),oa("uniqueBy");function am(e,t,r,n){this.valueId=e,this.value=t,this.reason=r,this.properties=n}Bg.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},Bg.prototype.refresh=function(){this.stop(),this.start()},Bg.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)};var um,cm=Bg,lm=(Gg.prototype.start=function(){this.started=!0},Gg.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},Gg.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},Gg.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},Gg.prototype.close=function(){this.stop()},Gg),fm=(zg.prototype.isClientError=function(e){return!!(e&&400<=e.statusCode&&e.statusCode<500)},zg.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]}})})})},zg.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]})})})},zg.prototype.process=function(e){this.queue.enqueue(e)},zg.prototype.start=function(){return le(this,void 0,void 0,function(){return fe(this,function(e){return this.queue.start(),[2]})})},zg.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},zg.prototype.flush=function(){this.queue.flush()},zg.prototype.close=function(){this.stop()},zg),pm=(Kg.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]})},Kg),dm=(Hg.prototype.process=function(e){var t;this.exposureEventDedupDeterminer.isDedupTarget(e)||(this.userManager.updateUser(e.user,e.timestamp),this.sessionManager.startNewSessionIfNeeded(e.timestamp),this.delegate.process((e=e,null===(t=this.sessionManager).sessionId||e.user.identifiers[He.SESSION]?e:e.copyWithUser(p(p({},e.user),{identifiers:p(p({},e.user.identifiers),((e={})[He.SESSION]=t.sessionId,e))})))))},Hg.prototype.close=function(){this.delegate.close()},Hg.prototype.flush=function(){this.delegate.flush()},Hg.prototype.start=function(){return this.delegate.start()},Hg),hm=(Vg.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!bt.isExposure(e))return!1;pm.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)},Vg),ym=(Fg.toEvent=function(e){var t;return{key:Fg.EVENT_KEY,properties:{level:Fg.LEVEL_ERROR,type:e.name,message:null!=(t=e.message)?t:"",$stacktrace:Fg._stacktrace(e)}}},Fg._stacktrace=function(e){return a.isNullOrUndefined(e.stack)?"":e.stack.split("\n").slice(0,Fg.STACK_TRACK_LIMIT).join("\n")},Fg.EVENT_KEY="$trace",Fg.LEVEL_ERROR="error",Fg.STACK_TRACK_LIMIT=30,Fg),vm=pe.log,mm=(jg.prototype._experiment=function(e,t,r){if(!e)return vm.error("experimentKey must not be empty"),Ue.of(r,u.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return vm.warn("SDK not ready."),Ue.of(r,u.SDK_NOT_READY);e=n.getExperimentOrNull(e);if(!e)return vm.warn("Experiment does not exist."),Ue.of(r,u.EXPERIMENT_NOT_FOUND);n=this.evaluator.evaluate(n,e,t,r),this.eventProcessor.process(bt.exposure(e,t,n)),e=null!=(r=n.config)?r:new je;return Ue.of(n.variationKey,n.reason,e)},jg.prototype._featureFlag=function(e,t){if(!e)return vm.error("featureKey must not be empty"),Le.off(u.INVALID_INPUT);var r=this.workspaceFetcher.get();if(!r)return vm.warn("SDK not ready."),Le.off(u.SDK_NOT_READY);var e=r.getFeatureFlagOrNull(e);if(!e)return vm.warn("FeatureFlag does not exist."),Le.off(u.FEATURE_FLAG_NOT_FOUND);r=this.evaluator.evaluate(r,e,t,"A"),this.eventProcessor.process(bt.exposure(e,t,r)),t=null!=(e=r.config)?e:new je;return"A"===r.variationKey?Le.off(r.reason,t):Le.on(r.reason,t)},jg.prototype._track=function(e,t){var r;e?"object"==typeof e?"object"!=typeof e||e.key&&"string"==typeof e.key?(r=(null==(r=this.workspaceFetcher.get())?void 0:r.getEventTypeOrNull(e.key))||new be(0,e.key),this.eventProcessor.process(bt.track(r,e,t))):vm.warn("Event key must be not null. or event key must be string type."):vm.warn("Event must be event type."):vm.warn("event must not be null.")},jg.prototype._trackException=function(e,t){this.errorDedupDeterminer.isDedupTarget(e)||(e=ym.toEvent(e),this._flush(),this._track(e,t),this._flush())},jg.prototype._flush=function(){this.eventProcessor.flush()},jg.prototype._remoteConfig=function(e,t,r,n){var o=this.workspaceFetcher.get();if(a.isNullOrUndefined(o))return vm.warn("SDK not ready."),Me.of(n,u.SDK_NOT_READY);e=o.getRemoteConfigParameterOrNull(e);if(a.isNullOrUndefined(e))return vm.warn("Remote config parameter does not exist."),Me.of(n,u.REMOTE_CONFIG_PARAMETER_NOT_FOUND);o=this.evaluator.remoteConfigEvaluate(o,e,t,r,n);return this.eventProcessor.process(bt.remoteConfig(e,t,o)),Me.of(o.value,o.reason)},jg.prototype._onReady=function(e,t){this._onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},jg.prototype._onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(vm.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?vm.debug("HackleClient onInitialized Success"):e.error instanceof Error?vm.error("HackleClient onInitialized Failed. ".concat(e.error.message)):vm.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},jg.prototype._close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},jg),gm=(Lg.prototype.isDedupTarget=function(e){return!!this._isSameError(e,this.previous)||(this.previous=e,!1)},Lg.prototype._isSameError=function(e,t){return!a.isNullOrUndefined(t)&&e.name===t.name&&e.message===t.message&&e.stack===t.stack},Lg),wm=(Ug.of=function(e,t,r,n){t=t._getVariationByKeyOrNull(r);return a.isNotNullOrUndefined(t)?Ug.withVariation(e,t,n):new Ug(void 0,r,n,void 0)},Ug.withVariation=function(e,t,r){e=this.config(e,t);return new Ug(t.id,t.key,r,e)},Ug.config=function(e,t){if(!a.isNullOrUndefined(t.parameterConfigurationId))return a.requiredNotNullOrUndefined(e.getParameterConfigurationOrNull(t.parameterConfigurationId),function(){return"ParameterConfiguration[".concat(t.parameterConfigurationId,"]")})},Ug),Em=(Mg.prototype.evaluate=function(e,t,r,n){return this.evaluationFlowFactory.getFlow(t.type).evaluate(e,t,r,n)},Mg.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 am(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)},Mg.prototype.getRemoteConfigEvaluationWithTypeCheck=function(e,t,r,n,o){return"UNKNOWN"===r||"NULL"!==r&&typeof n!=typeof e.rawValue?(o.returnValue=n,new am(void 0,n,u.TYPE_MISMATCH,o)):(o.returnValue=e.rawValue,new am(e.id,e.rawValue,t,o))},Mg),bm=(Dg.prototype.matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n._matches(e,t,r)})},Dg.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(e.key.type).matches(e,t,r)},Dg),c=(Pg.prototype.matches=function(t,e){var r=this.valueMatcherFactory.getMatcher(e.valueType),n=this.operatorMatcherFactory.getMatcher(e.operator),o=e.values.some(function(e){return r.matches(n,t,e)});return this._matches(e.type,o)},Pg.prototype._matches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},Pg),d=(xg.prototype.booleanMatches=function(e,t){return e===t},xg.prototype.numberMatches=function(e,t){return e===t},xg.prototype.stringMatches=function(e,t){return e===t},xg.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},xg),nn=(kg.prototype.booleanMatches=function(e,t){return!1},kg.prototype.numberMatches=function(e,t){return!1},kg.prototype.stringMatches=function(e,t){return e.includes(t)},kg.prototype.versionMatches=function(e,t){return!1},kg),Qn=(Ag.prototype.booleanMatches=function(e,t){return!1},Ag.prototype.numberMatches=function(e,t){return!1},Ag.prototype.stringMatches=function(e,t){return e.startsWith(t)},Ag.prototype.versionMatches=function(e,t){return!1},Ag),I=(Ng.prototype.booleanMatches=function(e,t){return!1},Ng.prototype.numberMatches=function(e,t){return!1},Ng.prototype.stringMatches=function(e,t){return e.endsWith(t)},Ng.prototype.versionMatches=function(e,t){return!1},Ng),N=(Ig.prototype.booleanMatches=function(e,t){return!1},Ig.prototype.numberMatches=function(e,t){return t<e},Ig.prototype.stringMatches=function(e,t){return!1},Ig.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},Ig),Pc=(Cg.prototype.booleanMatches=function(e,t){return!1},Cg.prototype.numberMatches=function(e,t){return t<=e},Cg.prototype.stringMatches=function(e,t){return!1},Cg.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},Cg),vn=(Sg.prototype.booleanMatches=function(e,t){return!1},Sg.prototype.numberMatches=function(e,t){return e<t},Sg.prototype.stringMatches=function(e,t){return!1},Sg.prototype.versionMatches=function(e,t){return e.isLessThan(t)},Sg),s=(Og.prototype.booleanMatches=function(e,t){return!1},Og.prototype.numberMatches=function(e,t){return e<=t},Og.prototype.stringMatches=function(e,t){return!1},Og.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},Og),Tm=(Rg.prototype.getMatcher=function(e){switch(e){case"IN":return Rg.IN_MATCHER;case"CONTAINS":return Rg.CONTAINS_MATCHER;case"STARTS_WITH":return Rg.STARTS_WITH_MATCHER;case"ENDS_WITH":return Rg.ENDS_WITH_MATCHER;case"GT":return Rg.GT_MATCHER;case"GTE":return Rg.GTE_MATCHER;case"LT":return Rg.LT_MATCHER;case"LTE":return Rg.LTE_MATCHER}},Rg.IN_MATCHER=new d,Rg.CONTAINS_MATCHER=new nn,Rg.STARTS_WITH_MATCHER=new Qn,Rg.ENDS_WITH_MATCHER=new I,Rg.GT_MATCHER=new N,Rg.GTE_MATCHER=new Pc,Rg.LT_MATCHER=new vn,Rg.LTE_MATCHER=new s,Rg),ua=(_g.prototype.matches=function(e,t,r){return"string"==typeof t&&"string"==typeof r&&e.stringMatches(t,r)},_g),go=(Tg.prototype.matches=function(e,t,r){return"number"==typeof t&&"number"==typeof r&&e.numberMatches(t,r)},Tg),i=(bg.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},bg),Fi=(Eg.prototype.matches=function(e,t,r){t=st.tryParse(t),r=st.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},Eg),b=(wg.prototype.matches=function(e,t,r){return!1},wg),_m=(gg.prototype.getMatcher=function(e){switch(e){case"STRING":case"JSON":return gg.STRING_MATCHER;case"NUMBER":return gg.NUMBER_MATCHER;case"BOOLEAN":return gg.BOOLEAN_MATCHER;case"VERSION":return gg.VERSION_MATCHER;case"NULL":case"UNKNOWN":return gg.NULL_MATCHER}},gg.STRING_MATCHER=new ua,gg.NUMBER_MATCHER=new go,gg.BOOLEAN_MATCHER=new i,gg.VERSION_MATCHER=new Fi,gg.NULL_MATCHER=new b,gg),C=(mg.prototype.matches=function(e,t,r){r=this.userValueResolver.resolveOrNull(r,e.key);return!a.isNullOrUndefined(r)&&this.valueOperatorMatcher.matches(r,e.match)},mg),A=(vg.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,"]"))}},vg),fn=(yg.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}},yg.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,"]"))},yg),ln=(hg.prototype.matches=function(e,t,r){var n=this;return e.targets.some(function(e){return n._matches(e,t,r)})},hg.prototype._matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(e,t,r)})},hg),Rm=(dg.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return dg.USER_CONDITION_MATCHER;case"SEGMENT":return dg.SEGMENT_CONDITION_MATCHER}},dg.USER_CONDITION_MATCHER=new C(new A,new c(new _m,new Tm)),dg.SEGMENT_CONDITION_MATCHER=new fn(new ln(dg.USER_CONDITION_MATCHER)),dg),Om=(pg.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)}},pg.prototype._resolveVariation=function(e,t){return t._getVariationByIdOrNull(e.variationId)},pg.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)}},pg),Sm={murmurhash3_x86_32:function(e,t,r,n){for(var o,i=3432918353,s=461845907,a=-4&(n=void 0===n?e.length:n),u=t,c=0;c<a;c+=4)o=255&e.charCodeAt(c)|(255&e.charCodeAt(c+1))<<8|(255&e.charCodeAt(c+2))<<16|(255&e.charCodeAt(c+3))<<24,o=(131071&(o=this.mul32(o,i)))<<15|o>>>17,u=5*((524287&(u^=o=this.mul32(o,s)))<<13|u>>>19)+3864292196|0;switch(o=0,n%4){case 3:o=(255&e.charCodeAt(2+a))<<16;case 2:o|=(255&e.charCodeAt(1+a))<<8;case 1:o|=255&e.charCodeAt(a),o=(131071&(o=this.mul32(o,i)))<<15|o>>>17,u^=o=this.mul32(o,s)}return u=this.mul32(u=(u^=n)^u>>>16,2246822507),(u=this.mul32(u^=u>>>13,3266489909))^u>>>16},mul32:function(e,t){var r=65535&t;return((t-r)*e|0)+(r*e|0)|0}},Cm=(fg.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},fg.prototype.calculateSlotNumber=function(e,t,r){r=Sm.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},fg),Im=(lg.prototype.evaluate=function(e,t,r,n){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,r,n,this.nextFlow):wm.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},lg.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new lg,n=0,o=e.reverse();n<o.length;n++)r=new lg(o[n],r);return r},lg),Nm=(cg.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 wm.withVariation(e,i,u.OVERRIDDEN);case"FEATURE_FLAG":return wm.withVariation(e,i,u.INDIVIDUAL_TARGET_MATCH)}},cg),Am=(ug.prototype.evaluate=function(e,t,r,n,o){return"DRAFT"===t.status?wm.of(e,t,n,u.EXPERIMENT_DRAFT):o.evaluate(e,t,r,n)},ug),km=(ag.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 wm.of(e,t,n,u.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return wm.of(e,t,n,u.FEATURE_FLAG_INACTIVE)}},ag),xm=(sg.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 wm.withVariation(e,o,u.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(t.id,"]"))},sg),Pm=(ig.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):wm.of(e,t,n,u.NOT_IN_EXPERIMENT_TARGET)},ig),Dm=(og.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?wm.of(e,t,n,u.VARIATION_DROPPED):wm.withVariation(e,r,u.TRAFFIC_ALLOCATED):wm.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},og),Mm=(ng.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 wm.withVariation(e,o,u.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},ng),Um=(rg.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 wm.of(e,t,n,u.DEFAULT_RULE);n=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);if(n)return wm.withVariation(e,n,u.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},rg),Lm=(tg.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):wm.of(e,t,n,u.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("bucket[".concat(s.bucketId,"]"))},tg),jm=(eg.prototype.evaluate=function(e,t,r,n,o){return r.identifiers[t.identifierType]?o.evaluate(e,t,r,n):wm.of(e,t,n,u.IDENTIFIER_NOT_FOUND)},eg),Fm=(Qm.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)})},Qm),Vm=(Zm.prototype.determineTargetRuleOrNull=function(t,e,r){var n=this;return e.targetRules.find(function(e){return n.targetMatcher.matches(e.target,t,r)})},Zm),Hm=(Jm.prototype.resolveOrNull=function(e,t,r){return this._resolveUserOverride(t,r)||this._resolveSegmentOverride(e,t,r)},Jm.prototype._resolveUserOverride=function(e,t){t=t.identifiers[e.identifierType];if(t){t=e.userOverrides.get(t);if(t)return e._getVariationByIdOrNull(t)}},Jm.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)},Jm),Km=(Wm.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,"]"))},Wm),zm=(Ym.prototype.determineTargetRuleOrNull=function(t,r,n){var o=this;return r.targetRules.find(function(e){return o.matches(e,t,r,n)})},Ym.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))},Ym),Gm=(Xm.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},Xm.prototype.getRemoteConfigParameterTargetRuleDeterminer=function(){return this.remoteConfigParameterTargetRuleDeterminer},Xm),Bm=($m.prototype.install=function(e,t){this._install("onerror",e,t),this._install("onunhandledrejection",e,t)},$m.prototype._install=function(e,t,r){e in this._installed||((0,this._installations[e])(t,r),this._installed.push(e))},$m),qm=null;function $m(){this._installed=[],this._installations={onerror:qg,onunhandledrejection:$g}}function Xm(){var e=new Cm,t=new bm(new Rm),r=new Om(e),n=new Hm(t,r),o=new Km(e);this.abTestFlow=Im.of(new Nm(n),new jm,new Lm(o),new Pm(new Fm(t)),new Am,new km,new xm,new Dm(r)),this.featureFlagFlow=Im.of(new Am,new km,new xm,new Nm(n),new jm,new Mm(new Vm(t),r),new Um(r)),this.remoteConfigParameterTargetRuleDeterminer=new zm(t,e)}function Ym(e,t){this.targetMatcher=e,this.bucketer=t}function Wm(e){this.bucketer=e}function Jm(e,t){this.targetMatcher=e,this.actionResolver=t}function Zm(e){this.targetMatcher=e}function Qm(e){this.targetMatcher=e}function eg(){}function tg(e){this.containerResolver=e}function rg(e){this.actionResolver=e}function ng(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function og(e){this.actionResolver=e}function ig(e){this.experimentTargetDeterminer=e}function sg(){}function ag(){}function ug(){}function cg(e){this.overrideResolver=e}function lg(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function fg(){}function pg(e){this.bucketer=e}function dg(){}function hg(e){this.userConditionMatcher=e}function yg(e){this.segmentMatcher=e}function vg(){}function mg(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function gg(){}function wg(){}function Eg(){}function bg(){}function Tg(){}function _g(){}function Rg(){}function Og(){}function Sg(){}function Cg(){}function Ig(){}function Ng(){}function Ag(){}function kg(){}function xg(){}function Pg(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function Dg(e){this.conditionMatcherFactory=e}function Mg(e){this.evaluationFlowFactory=e}function Ug(e,t,r,n){this.variationId=e,this.variationKey=t,this.reason=r,this.config=n}function Lg(){}function jg(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 Fg(){}function Vg(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function Hg(e,t,r,n){this.delegate=e,this.exposureEventDedupDeterminer=t,this.sessionManager=r,this.userManager=n}function Kg(){}function zg(e,t,r,n){void 0===n&&(n=null),this.eventDispatcher=e,this.flushInterval=r,this.queue=new lm(this.drainQueue.bind(this),t,r),this.repository=n}function Gg(e,t,r){this.buffer=[],this.sink=e,this.maxQueueSize=t,this.timer=new cm({callback:this.flush.bind(this),timeout:r}),this.started=!1}function Bg(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function qg(i,s){qm=window.onerror,window.onerror=function(e,t,r,n,o){a.isNotNullOrUndefined(o)&&i._trackException(o,s.resolveAnonymousUser()),qm&&qm.apply(this,arguments)}}function $g(r,n){um=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.resolveAnonymousUser()),um&&um.apply(this,arguments)}}r0.prototype.read=function(){var r=this;return new Promise(function(e){var t=r.storage.getItem(r.storageKey);t&&e(JSON.parse(t)),e([])})},r0.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()})},r0.prototype.add=function(t){var r=this;return this.read().then(function(e){return r.save(e.concat(t).slice(-r.maxSize))})},r0.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)})},r0.prototype.clear=function(){var t=this;return new Promise(function(e){localStorage.removeItem(t.storageKey),e()})};var Xg=r0,Yg=(Object.defineProperty(t0.prototype,"currentUser",{get:function(){return this._currentUser},enumerable:!1,configurable:!0}),t0.prototype.addListener=function(e){this.userListeners.push(e)},t0.prototype.updateUser=function(e,t){this.isUserChanged(e)&&this.changeUser(e,t),this._currentUser=e},t0.prototype.changeUser=function(t,r){this.userListeners.forEach(function(e){e.onUserUpdated(t,r)})},t0.prototype.isUserChanged=function(e){return null!==this._currentUser&&(t=this._currentUser,e=e,!(a.isNotNullOrUndefined(t.identifiers[He.USER])&&a.isNotNullOrUndefined(e.identifiers[He.USER])?t.identifiers[He.USER]===e.identifiers[He.USER]:t.identifiers[He.DEVICE]===e.identifiers[He.DEVICE]));var t},t0),Wg=(Object.defineProperty(e0.prototype,"sessionId",{get:function(){return null===this._sessionId?e0.EMPTY_SESSION_ID:this._sessionId},enumerable:!1,configurable:!0}),Object.defineProperty(e0.prototype,"lastEventTime",{get:function(){return this._lastEventTime},enumerable:!1,configurable:!0}),e0.prototype.addListener=function(e){this.sessionListeners.push(e)},e0.prototype.startNewSession=function(e){return this.endSession(),this.newSession(e)},e0.prototype.startNewSessionIfNeeded=function(e){this.loadSession(),this.loadLastEventTime();var t=this._lastEventTime;return null!==t&&null!==this._sessionId&&e-t<this.timeoutInMs?(this.updateLastEventTime(e),this._sessionId):this.startNewSession(e)},e0.prototype.endSession=function(){var t,r;this.loadSession(),this.loadLastEventTime(),null!==this._sessionId&&null!==this._lastEventTime&&(t=this._sessionId,r=this._lastEventTime,this.sessionListeners.forEach(function(e){e.onSessionEnded(t,r)}))},e0.prototype.newSession=function(t){var r="".concat(t,".").concat(ae.v4().slice(0,8));return this.saveSession(r),this.updateLastEventTime(t),this.sessionListeners.forEach(function(e){e.onSessionStarted(r,t)}),r},e0.prototype.saveSession=function(e){this._sessionId=e,this.storage.setItem(this.sessionStorageKey,e)},e0.prototype.loadSession=function(){var e=this.storage.getItem(this.sessionStorageKey);this._sessionId=e},e0.prototype.loadLastEventTime=function(){var e=this.storage.getItem(this.lastEventTimeStorageKey);null!==e&&0<(e=Number.parseFloat(e))&&(this._lastEventTime=e)},e0.prototype.updateLastEventTime=function(e){this._lastEventTime=e,this.storage.setItem(this.lastEventTimeStorageKey,"".concat(e))},e0.prototype.onUserUpdated=function(e,t){this.startNewSession(t)},e0.EMPTY_SESSION_ID="0.ffffffff",e0),Jg=pe.log,Zg=null,Qg={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.9.1"};function e0(e,t,r,n){this.timeoutInMs=e,this.storage=t,this.sessionStorageKey=r,this.lastEventTimeStorageKey=n,this.sessionListeners=[],this._sessionId=null,this._lastEventTime=null,this.timeoutInMs=e,this.storage=t,this.sessionStorageKey=r,this.loadSession(),this.loadLastEventTime()}function t0(){this.userListeners=[],this._currentUser=null}function r0(e,t,r){this.storage=e,this.storageKey=t,this.maxSize=r}function n0(e,t){t=p(p({},Qg),t);if(t.log_disabled?pe.setLogLevel(0):t.debug&&pe.setLogLevel(4),Jg.debug("sdkKey : "+e),e||Jg.error("SDK Key must not be null"),Zg)return Jg.debug("use already exists hackleClient"),Zg;var r=!1,r=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&Jg.debug("support sendBeacon API"),new Lt(e,Pe,{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 Ht(e,Pe,{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?(Jg.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):t.exposureEventDedupIntervalMillis),new Xg(window.localStorage,"".concat("hackle-repository-storage","_").concat(e),100)),s=new Yg,e=new Wg(t.sessionTimeoutMillis,Bt,"".concat("_hackle_session_id","_").concat(e.slice(8)),"".concat("_hackle_last_event_ts","_").concat(e.slice(8)));s.addListener(e);function a(){l.drainRepository()}var u,c,l=new fm(r,100,500,i),r=new hm(o),i=new dm(l,r,e,s),o=new mm(n,i,new Em(new Gm),new gm),r=new $t,f=new wt(o,r,e);Zg=f,t.auto_track_page_view&&(c=function(){return u.trackPageView({user:{id:or()}})},(u=f).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}c();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)Jg.error(e);else try{Jg.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)Jg.error(e);else try{Jg.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(t("locationchange"))}catch(e){if(e instanceof Error)Jg.error(e);else try{Jg.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{c()}catch(e){if(e instanceof Error)Jg.error(e);else try{Jg.error(e)}catch(e){}}})}catch(t){if(t instanceof Error)Jg.error(t);else try{Jg.error(t)}catch(t){}}var r,n})),(new Bm).install(o,r);return document.addEventListener("visibilitychange",function(){document.hidden||a()}),window.addEventListener("pageshow",a),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){sr(),f.close()}),f}var o={createInstance:n0,getUserId:or,setUserId:ir,removeUserId:sr,Logger:pe},o0=(f.Bucket=t.Bucket=Ee,f.Container=t.Container=ze,f.ContainerGroup=t.ContainerGroup=Ne,f.CoreVersion=t.CoreVersion=at,f.Decision=t.Decision=Ue,f.DecisionReason=t.DecisionReason=u,f.EmptyHackleRemoteConfig=t.EmptyHackleRemoteConfig=ie,f.EmptyParameterConfig=t.EmptyParameterConfig=je,f.EventType=t.EventType=be,f.Experiment=t.Experiment=Fe,f.FeatureFlagDecision=t.FeatureFlagDecision=Le,f.IdentifierType=t.IdentifierType=He,f.IdentifiersBuilder=t.IdentifiersBuilder=Ke,f.Logger=t.Logger=pe,f.MATCH_OPERATORS=t.MATCH_OPERATORS=ft,f.MATCH_TYPES=t.MATCH_TYPES=ct,f.MATCH_VALUE_TYPES=t.MATCH_VALUE_TYPES=lt,f.MetaVersion=t.MetaVersion=ut,f.ParameterConfiguration=t.ParameterConfiguration=Ge,f.RemoteConfigDecision=t.RemoteConfigDecision=Me,f.RemoteConfigParameter=t.RemoteConfigParameter=Ae,f.RemoteConfigParameterValue=t.RemoteConfigParameterValue=xe,f.RemoteConfigTargetRule=t.RemoteConfigTargetRule=ke,f.SEGMENT_TYPES=t.SEGMENT_TYPES=ht,f.Segment=t.Segment=Ie,f.Slot=t.Slot=Ve,f.TARGET_ACTION_TYPES=t.TARGET_ACTION_TYPES=pt,f.TARGET_KEY_TYPES=t.TARGET_KEY_TYPES=dt,f.Target=t.Target=Te,f.TargetAction=t.TargetAction=Se,f.TargetCondition=t.TargetCondition=_e,f.TargetKey=t.TargetKey=Re,f.TargetMatch=t.TargetMatch=Oe,f.TargetRule=t.TargetRule=Ce,f.TargetingType=t.TargetingType=yt,f.Variation=t.Variation=we,f.Version=t.Version=st,se=t.createInstance=n0,t.default=o,f.getUserId=t.getUserId=or,f.removeUserId=t.removeUserId=sr,f.setUserId=t.setUserId=ir,function(){return(o0=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 i0(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}a0.prototype.variation=function(e,t,r){return this.client.variation(e,t,r)},a0.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t,r)},a0.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t)},a0.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t)},a0.prototype.track=function(e,t){this.client.track(e,t)},a0.prototype.trackPageView=function(e){this.client.trackPageView(e)},a0.prototype.remoteConfig=function(e){return this.client.remoteConfig(e)},a0.prototype.onReady=function(e,t){this.client.onReady(e,t)},a0.prototype.onInitialized=function(e){return this.client.onInitialized(e)};var s0=a0;function a0(e,t){this.client=se(e,o0(o0({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.9.1"}))}var D={exports:{}},k={},u0=Object.getOwnPropertySymbols,c0=Object.prototype.hasOwnProperty,l0=Object.prototype.propertyIsEnumerable;var Fr=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]))c0.call(r,i)&&(n[i]=r[i]);if(u0)for(var s=u0(r),a=0;a<s.length;a++)l0.call(r,s[a])&&(n[s[a]]=r[s[a]])}return n},f0=Fr,E="function"==typeof Symbol&&Symbol.for,p0=E?Symbol.for("react.element"):60103,d0=E?Symbol.for("react.portal"):60106,kc=E?Symbol.for("react.fragment"):60107,h0=E?Symbol.for("react.strict_mode"):60108,Ro=E?Symbol.for("react.profiler"):60114,y0=E?Symbol.for("react.provider"):60109,v0=E?Symbol.for("react.context"):60110,m0=E?Symbol.for("react.forward_ref"):60112,l=E?Symbol.for("react.suspense"):60113,g0=E?Symbol.for("react.memo"):60115,w0=E?Symbol.for("react.lazy"):60116,E0="function"==typeof Symbol&&Symbol.iterator;function b0(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 T0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_0={};function R0(e,t,r){this.props=e,this.context=t,this.refs=_0,this.updater=r||T0}function O0(){}function S0(e,t,r){this.props=e,this.context=t,this.refs=_0,this.updater=r||T0}R0.prototype.isReactComponent={},R0.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(b0(85));this.updater.enqueueSetState(this,e,t,"setState")},R0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},O0.prototype=R0.prototype;var Ra=S0.prototype=new O0,C0=(Ra.constructor=S0,f0(Ra,R0.prototype),Ra.isPureReactComponent=!0,{current:null}),I0=Object.prototype.hasOwnProperty,N0={key:!0,ref:!0,__self:!0,__source:!0};function A0(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)I0.call(t,n)&&!N0.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:p0,type:e,key:i,ref:s,props:o,_owner:C0.current}}function k0(e){return"object"==typeof e&&null!==e&&e.$$typeof===p0}var x0=/\/+/g,P0=[];function D0(e,t,r,n){var o;return P0.length?((o=P0.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 M0(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,P0.length<10&&P0.push(e)}function U0(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 p0:case d0:i=!0}}if(i)return n(o,t,""===r?"."+L0(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+L0(a=t[s],s);i+=e(a,u,n,o)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=E0&&t[E0]||t["@@iterator"])?u:null))for(t=u.call(t),s=0;!(a=t.next()).done;)i+=e(a=a.value,u=r+L0(a,s++),n,o);else if("object"===a)throw n=""+t,Error(b0(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return i}(e,"",t,r)}function L0(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 j0(e,t){e.func.call(e.context,t,e.count++)}function F0(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?V0(e,n,r,function(e){return e}):null!=e&&(k0(e)&&(t=o+(!(o=e).key||t&&t.key===e.key?"":(""+e.key).replace(x0,"$&/")+"/")+r,e={$$typeof:p0,type:o.type,key:t,ref:o.ref,props:o.props,_owner:o._owner}),n.push(e))}function V0(e,t,r,n,o){var i="";U0(e,F0,t=D0(t,i=null!=r?(""+r).replace(x0,"$&/")+"/":i,n,o)),M0(t)}var H0={current:null};function K0(){var e=H0.current;if(null===e)throw Error(b0(321));return e}var z0,G0,B0,P={ReactCurrentDispatcher:H0,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:C0,IsSomeRendererActing:{current:!1},assign:f0},T=(k.Children={map:function(e,t,r){if(null==e)return e;var n=[];return V0(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;U0(e,j0,t=D0(null,null,t,r)),M0(t)},count:function(e){return U0(e,function(){return null},null)},toArray:function(e){var t=[];return V0(e,t,null,function(e){return e}),t},only:function(e){if(k0(e))return e;throw Error(b0(143))}},k.Component=R0,k.Fragment=kc,k.Profiler=Ro,k.PureComponent=S0,k.StrictMode=h0,k.Suspense=l,k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,k.cloneElement=function(e,t,r){if(null==e)throw Error(b0(267,e));var n=f0({},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=C0.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)I0.call(t,a)&&!N0.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:p0,type:e.type,key:o,ref:i,props:n,_owner:s}},k.createContext=function(e,t){return(e={$$typeof:v0,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:y0,_context:e},e.Consumer=e},k.createElement=A0,k.createFactory=function(e){var t=A0.bind(null,e);return t.type=e,t},k.createRef=function(){return{current:null}},k.forwardRef=function(e){return{$$typeof:m0,render:e}},k.isValidElement=k0,k.lazy=function(e){return{$$typeof:w0,_ctor:e,_status:-1,_result:null}},k.memo=function(e,t){return{$$typeof:g0,type:e,compare:void 0===t?null:t}},k.useCallback=function(e,t){return K0().useCallback(e,t)},k.useContext=function(e,t){return K0().useContext(e,t)},k.useDebugValue=function(){},k.useEffect=function(e,t){return K0().useEffect(e,t)},k.useImperativeHandle=function(e,t,r){return K0().useImperativeHandle(e,t,r)},k.useLayoutEffect=function(e,t){return K0().useLayoutEffect(e,t)},k.useMemo=function(e,t){return K0().useMemo(e,t)},k.useReducer=function(e,t,r){return K0().useReducer(e,t,r)},k.useRef=function(e){return K0().useRef(e)},k.useState=function(e){return K0().useState(e)},k.version="16.14.0",{}),Br=Function.call.bind(Object.prototype.hasOwnProperty),q0=function(){};function $0(e,t,r,n,o){if("production"!==production)for(var i in e)if(B0(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,z0)}catch(e){s=e}!s||s instanceof Error||q0((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 G0)&&(G0[s.message]=!0,i=o?o():"",q0("Failed "+r+" type: "+s.message+(null!=i?i:"")))}}if("production"!==production&&(z0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",G0={},B0=Br,q0=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),$0.resetWarningCache=function(){"production"!==production&&(G0={})},"production"!==production){var X0=Fr,Y0=$0,R="function"==typeof Symbol&&Symbol.for,W0=R?Symbol.for("react.element"):60103,J0=R?Symbol.for("react.portal"):60106,Z0=R?Symbol.for("react.fragment"):60107,Q0=R?Symbol.for("react.strict_mode"):60108,ew=R?Symbol.for("react.profiler"):60114,tw=R?Symbol.for("react.provider"):60109,rw=R?Symbol.for("react.context"):60110,nw=R?Symbol.for("react.concurrent_mode"):60111,ow=R?Symbol.for("react.forward_ref"):60112,iw=R?Symbol.for("react.suspense"):60113,sw=R?Symbol.for("react.suspense_list"):60120,aw=R?Symbol.for("react.memo"):60115,uw=R?Symbol.for("react.lazy"):60116,cw=R?Symbol.for("react.block"):60121,lw=R?Symbol.for("react.fundamental"):60117,fw=R?Symbol.for("react.responder"):60118,pw=R?Symbol.for("react.scope"):60119,dw="function"==typeof Symbol&&Symbol.iterator,hw="@@iterator";function yw(e){if(null===e||"object"!=typeof e)return null;e=dw&&e[dw]||e[hw];return"function"==typeof e?e:null}var vw={current:null},mw={current:null},gw=/^(.*)[\\\/]/,ww=1;function Ew(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 Z0:return"Fragment";case J0:return"Portal";case ew:return"Profiler";case Q0:return"StrictMode";case iw:return"Suspense";case sw:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case rw:return"Context.Consumer";case tw:return"Context.Provider";case ow:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case aw:return Ew(e.type);case cw:return Ew(e.render);case uw:r=(t=e)._status===ww?t._result:null;if(r)return Ew(r)}var t,r;return null}var bw={},Tw=null;function _w(e){Tw=e}bw.getCurrentStack=null,bw.getStackAddendum=function(){var e,t,r,n,o,i="",s=(Tw&&(e=Ew(Tw.type),r=Tw._owner,i+=(e=e,t=Tw._source,r=r&&Ew(r.type),o="",t?(n=(s=t.fileName).replace(gw,""),o=" (at "+(n=/^index\./.test(n)&&(s=s.match(gw))&&(s=s[1])?s.replace(gw,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(o=" (created by "+r+")"),"\n in "+(e||"Unknown")+o)),bw.getCurrentStack);return s&&(i+=s()||""),i};var Rw={ReactCurrentDispatcher:vw,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:mw,IsSomeRendererActing:{current:!1},assign:X0};function Ow(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];Sw("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];Sw("error",e,r)}function Sw(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=Rw.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){}}X0(Rw,{ReactDebugCurrentFrame:bw,ReactComponentTreeHook:{}});var Cw={};function Iw(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;Cw[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),Cw[r]=!0)}var Nw={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){Iw(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){Iw(e,"replaceState")},enqueueSetState:function(e,t,r,n){Iw(e,"setState")}},Aw={};function kw(e,t,r){this.props=e,this.context=t,this.refs=Aw,this.updater=r||Nw}Object.freeze(Aw),kw.prototype.isReactComponent={},kw.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")},kw.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var xw,Pw={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(xw in Pw)Pw.hasOwnProperty(xw)&&!function(e,t){Object.defineProperty(kw.prototype,e,{get:function(){Ow("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(xw,Pw[xw]);function Dw(){}function Mw(e,t,r){this.props=e,this.context=t,this.refs=Aw,this.updater=r||Nw}Dw.prototype=kw.prototype,(R=Mw.prototype=new Dw).constructor=Mw,X0(R,kw.prototype),R.isPureReactComponent=!0;var Uw,Lw,jw=Object.prototype.hasOwnProperty,Fw={key:!0,ref:!0,__self:!0,__source:!0};function Vw(e){if(jw.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function Hw(e){if(jw.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var Kw={},zw=function(e,t,r,n,o,i,s){e={$$typeof:W0,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 Gw(e,t,r){var n,o={},i=null,s=null,a=null,u=null;if(null!=t)for(n in Vw(t)&&(s=t.ref,"string"==typeof(c=t).ref&&mw.current&&c.__self&&mw.current.stateNode!==c.__self&&(f=Ew(mw.current.type),Kw[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',Ew(mw.current.type),c.ref),Kw[f]=!0))),Hw(t)&&(i=""+t.key),a=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)jw.call(t,n)&&!Fw.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(){Lw||(Lw=!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(){Uw||(Uw=!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}))),zw(e,i,s,a,u,mw.current,o)}function Bw(e){return"object"==typeof e&&null!==e&&e.$$typeof===W0}var qw=".",$w=":",Xw=!1,Yw=/\/+/g;function Ww(e){return(""+e).replace(Yw,"$&/")}var Jw=10,Zw=[];function Qw(e,t,r,n){var o;return Zw.length?((o=Zw.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 e1(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,Zw.length<Jw&&Zw.push(e)}function t1(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 W0:case J0:a=!0}}if(a)return n(o,t,""===r?qw+r1(t,0):r),1;var u=0,c=""===r?qw:r+$w;if(Array.isArray(t))for(var l=0;l<t.length;l++)u+=e(i=t[l],c+r1(i,l),n,o);else if("function"==typeof(r=yw(t))){r===t.entries&&(Xw||Ow("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."),Xw=!0);for(var f,p=r.call(t),d=0;!(f=p.next()).done;)u+=e(i=f.value,c+r1(i,d++),n,o)}else if("object"==s)throw r="",r=" If you meant to render a collection of children, use an array instead."+bw.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 r1(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 n1(e,t,r){var n=e.func,o=e.context;n.call(o,t,e.count++)}function o1(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)?i1(i,n,r,function(e){return e}):null!=i&&(Bw(i)&&(e=o+(!(s=i).key||t&&t.key===i.key?"":Ww(i.key)+"/")+r,i=zw(s.type,e,s.ref,s._self,s._source,s._owner,s.props)),n.push(i))}function i1(e,t,r,n,o){var i="",t=Qw(t,i=null!=r?Ww(r)+"/":i,n,o);t1(e,o1,t),e1(t)}function s1(e){return"string"==typeof e||"function"==typeof e||e===Z0||e===nw||e===ew||e===Q0||e===iw||e===sw||"object"==typeof e&&null!==e&&(e.$$typeof===uw||e.$$typeof===aw||e.$$typeof===tw||e.$$typeof===rw||e.$$typeof===ow||e.$$typeof===lw||e.$$typeof===fw||e.$$typeof===pw||e.$$typeof===cw)}function a1(){var e=vw.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 u1(){if(mw.current){var e=Ew(mw.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var c1=!1,l1={};function f1(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=u1())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),l1[t=r]||(l1[t]=!0,r="",e&&e._owner&&e._owner!==mw.current&&(r=" It was passed a child from "+Ew(e._owner.type)+"."),_w(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),_w(null)))}function p1(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];Bw(n)&&f1(n,t)}else if(Bw(e))e._store&&(e._store.validated=!0);else if(e){var o=yw(e);if("function"==typeof o&&o!==e.entries)for(var i,s=o.call(e);!(i=s.next()).done;)Bw(i.value)&&f1(i.value,t)}}function d1(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=Ew(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==ow&&t.$$typeof!==aw)return;r=t.propTypes}r?(_w(e),Y0(r,e.props,"prop",n,bw.getStackAddendum),_w(null)):void 0===t.PropTypes||c1||(c1=!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 h1(e,t,r){var n,o=s1(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+".":"")||u1(),null===e?s="null":Array.isArray(e)?s="array":void 0!==e&&e.$$typeof===W0?(s="<"+(Ew(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)),Gw.apply(this,arguments));if(null==t)return t;if(o)for(var i=2;i<arguments.length;i++)p1(arguments[i],e);if(e===Z0){var s=t;_w(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`."),_w(null)}else d1(t);return t}var y1=!1;try{var v1=Object.freeze({}),m1=new Map([[v1,null]]),g1=new Set([v1]);m1.set(0,0),g1.add(0)}catch(e){}function w1(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=X0({},e.props),s=e.key,a=e.ref,u=e._self,c=e._source,l=e._owner;if(null!=t)for(n in Vw(t)&&(a=t.ref,l=mw.current),Hw(t)&&(s=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)jw.call(t,n)&&!Fw.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 zw(e.type,s,a,u,c,l,i)}.apply(this,arguments),o=2;o<arguments.length;o++)p1(arguments[o],n.type);return d1(n),n}function E1(e){var t=h1.bind(null,e);return t.type=e,y1||(y1=!0,Ow("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 Ow("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}R=h1,T.Children={map:function(e,t,r){if(null==e)return e;var n=[];return i1(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=Qw(null,null,t,r),t1(e,n1,t),e1(t)},count:function(e){return t1(e,function(){return null},null)},toArray:function(e){var t=[];return i1(e,t,null,function(e){return e}),t},only:function(e){if(Bw(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},T.Component=kw,T.Fragment=Z0,T.Profiler=ew,T.PureComponent=Mw,T.StrictMode=Q0,T.Suspense=iw,T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Rw,T.cloneElement=w1,T.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:rw,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:tw,_context:r}),o=!1,t={$$typeof:rw,_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},T.createElement=R,T.createFactory=E1,T.createRef=function(){var e={current:null};return Object.seal(e),e},T.forwardRef=function(e){return null!=e&&e.$$typeof===aw?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:ow,render:e}},T.isValidElement=Bw,T.lazy=function(e){var t,r,n={$$typeof:uw,_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},T.memo=function(e,t){return s1(e)||M("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:aw,type:e,compare:void 0===t?null:t}},T.useCallback=function(e,t){return a1().useCallback(e,t)},T.useContext=function(e,t){var r,n=a1();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)},T.useDebugValue=function(e,t){return a1().useDebugValue(e,t)},T.useEffect=function(e,t){return a1().useEffect(e,t)},T.useImperativeHandle=function(e,t,r){return a1().useImperativeHandle(e,t,r)},T.useLayoutEffect=function(e,t){return a1().useLayoutEffect(e,t)},T.useMemo=function(e,t){return a1().useMemo(e,t)},T.useReducer=function(e,t,r){return a1().useReducer(e,t,r)},T.useRef=function(e){return a1().useRef(e)},T.useState=function(e){return a1().useState(e)},T.version="16.14.0"}"production"===production?D.exports=k:D.exports=T;var b1=D.exports,T1=D.exports.createContext({hackle:void 0,user:void 0,initialized:!1}),ji=T1.Consumer,_1=T1.Provider;var R1=f.Logger.log;function O1(e,t){e=S1(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function S1(e,t){void 0===t&&(t="A");var r=D.exports.useContext(T1),n=r.hackle,o=r.user,i=r.initialized,s=D.exports.useCallback(function(){return i?(null==n?void 0:n.variationDetail(e,o))||f.Decision.of(t,f.DecisionReason.EXCEPTION):f.Decision.of(t,f.DecisionReason.SDK_NOT_READY)},[t,e,o,n,i]),r=i0(D.exports.useState(function(){return n?s():(R1.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2),a=r[0],r=r[1],u={key:e,user:o,initialized:i},c=i0(D.exports.useState(u),2),l=c[0],c=c[1];return N1(l,u)||(c(u),r(s())),{isLoading:!i,decision:a}}function C1(e){e=I1(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function I1(e){var t=D.exports.useContext(T1),r=t.hackle,n=t.user,o=t.initialized,i=D.exports.useCallback(function(){return o?(null==r?void 0:r.featureFlagDetail(e,n))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION):f.FeatureFlagDecision.off(f.DecisionReason.SDK_NOT_READY)},[e,n,r,o]),t=i0(D.exports.useState(function(){return r?i():(R1.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2),s=t[0],t=t[1],a={key:e,user:n,initialized:o},u=i0(D.exports.useState(a),2),c=u[0],u=u[1];return N1(c,a)||(u(a),t(i())),{isLoading:!o,decision:s}}function N1(e,t){var r,n,o;return e.initialized===t.initialized&&e.key===t.key&&(null==(r=e.user)?void 0:r.id)===(null==(r=t.user)?void 0:r.id)&&(e=null==(r=e.user)?void 0:r.properties,t=null==(r=t.user)?void 0:r.properties,n=A1(e),o=A1(t),e=Object.keys(n),t=Object.keys(o),e.length===t.length&&e.every(function(e){return e in o&&n[e]===o[e]}))}function A1(e){return"object"==typeof e&&null!==e?e:{}}function k1(e){var t,r=e.experimentKey,e=e.children,n=(r=O1(r)).isLoading,o=r.variation;return n?null:e&&"function"==typeof e?e(o):(D.exports.Children.forEach(e,function(e){D.exports.isValidElement(e)&&(e.props.variation?o===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?D.exports.cloneElement(t,{variation:o}):null)}function x1(e){return e.variation,e=e.children,D.exports.createElement(D.exports.Fragment,null,e)}function P1(e){var t=(r=C1(e.featureKey)).isLoading,r=r.isOn;return t?null:b1.createElement(b1.Fragment,null,e.children(r))}f.HackleContext=T1,f.HackleContextConsumer=ji,f.HackleContextProvider=_1,f.HackleExperiment=k1,f.HackleFeature=P1,f.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=i0(D.exports.useState({hackle:t,user:r,initialized:!1}),2),s=i[0],a=i[1];return D.exports.useEffect(function(){a(function(e){return o0(o0({},e),{user:r})})},[r]),D.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){a(function(e){return o0(o0({},e),{initialized:!0})})},function(){a(function(e){return o0(o0({},e),{initialized:!0})})}).catch(function(){a(function(e){return o0(o0({},e),{initialized:!0})})})},[t]),o||s.initialized?b1.createElement(_1,{value:s},e):null},f.HackleVariation=x1,f.createInstance=function(e,t){return new s0(e,t)},f.useFeature=function(e){var t=(n=D.exports.useContext(T1)).hackle,r=n.user,n=n.initialized,o=D.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e,r))||!1},[e,r,t,n]),i=(s=i0(D.exports.useState(function(){return t?o():("undefined"!=typeof window&&R1.error("HackleClient is not existed"),!1)}),2))[0],s=s[1],n={key:e,user:r,initialized:n},a=(u=i0(D.exports.useState(n),2))[0],u=u[1];return N1(a,n)||(u(n),s(o())),i},f.useFeatureFlagDetail=function(e){var t=(n=D.exports.useContext(T1)).hackle,r=n.user,n=n.initialized,o=D.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e,r))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION)},[e,r,t,n]),i=(s=i0(D.exports.useState(function(){return t?o():("undefined"!=typeof window&&R1.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2))[0],s=s[1],n={key:e,user:r,initialized:n},a=(u=i0(D.exports.useState(n),2))[0],u=u[1];return N1(a,n)||(u(n),s(o())),i},f.useLoadableFeature=C1,f.useLoadableFeatureDetail=I1,f.useLoadableRemoteConfig=function(){var e=(i=D.exports.useContext(T1)).hackle,t=i.user,r=i.initialized,n=D.exports.useCallback(function(){return r&&(null==e?void 0:e.remoteConfig(t))||new f.EmptyHackleRemoteConfig},[t,e,r]),o=(i=i0(D.exports.useState(function(){return e||R1.error("HackleClient is not existed"),n()}),2))[0],i=i[1],s={user:t,initialized:r},a=(u=i0(D.exports.useState(s),2))[0],u=u[1];return N1(a,s)||(u(s),i(n())),{isLoading:!r,remoteConfig:o}},f.useLoadableVariation=O1,f.useLoadableVariationDetail=S1,f.useRemoteConfig=function(){var e=(r=D.exports.useContext(T1)).hackle,t=r.user,r=r.initialized,n=D.exports.useCallback(function(){return(null==e?void 0:e.remoteConfig(t))||new f.EmptyHackleRemoteConfig},[t,e,r]),o=(i=i0(D.exports.useState(function(){return e||R1.error("HackleClient is not existed"),n()}),2))[0],i=i[1],r={user:t,initialized:r},s=(a=i0(D.exports.useState(r),2))[0],a=a[1];return N1(s,r)||(a(r),i(n())),o},f.useTrack=function(){var e=D.exports.useContext(T1),t=e.hackle,r=e.user;return t?function(e){return null==t?void 0:t.track(e,r)}:(R1.error("HackleClient is not existed"),function(){})},f.useVariation=function(e,t){void 0===t&&(t="A");var r=(a=D.exports.useContext(T1)).hackle,n=a.user,o=a.initialized,i=D.exports.useCallback(function(){return o&&(null==r?void 0:r.variation(e,n))||t},[t,e,n,r,o]),s=(a=i0(D.exports.useState(function(){return r?i():("undefined"!=typeof window&&R1.error("HackleClient is not existed"),t)}),2))[0],a=a[1],u={key:e,user:n,initialized:o},c=(l=i0(D.exports.useState(u),2))[0],l=l[1];return N1(c,u)||(l(u),a(i())),s},f.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(o=D.exports.useContext(T1)).hackle,n=o.user,o=o.initialized,i=D.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e,n))||f.Decision.of(t,f.DecisionReason.EXCEPTION)},[t,e,n,r,o]),s=(a=i0(D.exports.useState(function(){return r?i():("undefined"!=typeof window&&R1.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2))[0],a=a[1],o={key:e,user:n,initialized:o},u=(c=i0(D.exports.useState(o),2))[0],c=c[1];return N1(u,o)||(c(o),a(i())),s},Object.defineProperty(f,"__esModule",{value:!0})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hackler/react-sdk",
3
- "version": "11.8.0",
3
+ "version": "11.9.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.8.0"
42
+ "@hackler/javascript-sdk": "11.9.1"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": ">=16.8.0"