@hackler/react-sdk 11.10.0 → 11.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/lib/config.d.ts +1 -1
- package/lib/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/lib/index.umd.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
ADDED
package/lib/config.d.ts
CHANGED
package/lib/index.es.js
CHANGED
package/lib/index.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).hackleReactSDK={})}(this,function(l){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function M(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 v=r[0],y=r[1],g=r[2],m=r[3],w=r[4],E=0;E<80;++E)var b=Math.floor(E/20),b=oe(v,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,y,g,m)+w+t[b]+p[E]>>>0,w=m,m=g,g=oe(y,30)>>>0,y=v,v=b;r[0]=r[0]+v>>>0,r[1]=r[1]+y>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+m>>>0,r[4]=r[4]+w>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]});var se,r=M(Object.freeze({__proto__:null,v1:function(e,t,r){var n=t&&r||0,o=t||new Array(16),i=(e=e||{}).node||K,r=void 0!==e.clockseq?e.clockseq:z,s=(null!=i&&null!=r||(s=e.random||(e.rng||F)(),null==i&&(i=K=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==r&&(r=z=16383&(s[6]<<8|s[7]))),void 0!==e.msecs?e.msecs:Date.now()),a=void 0!==e.nsecs?e.nsecs:X+1,u=s-$+(a-X)/1e4;if(u<0&&void 0===e.clockseq&&(r=r+1&16383),1e4<=(a=(u<0||$<s)&&void 0===e.nsecs?0:a))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");$=s,z=r,u=(1e4*(268435455&(s+=122192928e5))+(X=a))%4294967296,o[n++]=u>>>24&255,o[n++]=u>>>16&255,o[n++]=u>>>8&255,o[n++]=255&u,e=s/4294967296*1e4&268435455,o[n++]=e>>>8&255,o[n++]=255&e,o[n++]=e>>>24&15|16,o[n++]=e>>>16&255,o[n++]=r>>>8|128,o[n++]=255&r;for(var c=0;c<6;++c)o[n+c]=i[c];return t||q(o)},v3:r,v4:function(e,t,r){var n=(e=e||{}).random||(e.rng||F)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return q(n)},v5:ie,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(H(e))return parseInt(e.substr(14,1),16);throw TypeError("Invalid UUID")},validate:H,stringify:q,parse:Y})),ae=(l.setUserId=void 0,l.sanitizeUser=void 0,l.sanitizeProperties=void 0,l.sanitizeIdentifiers=void 0,l.sanitizeIdentifier=void 0,l.removeUserId=void 0,l.isValidPropertyValueType=void 0,l.isValidPropertyKeyType=void 0,l.isValidIdentifierType=void 0,l.getUserId=void 0,l.Version=void 0,l.Variation=void 0,l.TargetingType=void 0,l.TargetRule=void 0,l.TargetMatch=void 0,l.TargetKey=void 0,l.TargetCondition=void 0,l.TargetAction=void 0,l.Target=void 0,l.TARGET_KEY_TYPES=void 0,l.TARGET_ACTION_TYPES=void 0,l.Slot=void 0,l.Segment=void 0,l.SEGMENT_TYPES=void 0,l.RemoteConfigTargetRule=void 0,l.RemoteConfigParameterValue=void 0,l.RemoteConfigParameter=void 0,l.RemoteConfigDecision=void 0,l.ParameterConfiguration=void 0,l.MetaVersion=void 0,l.MATCH_VALUE_TYPES=void 0,l.MATCH_TYPES=void 0,l.MATCH_OPERATORS=void 0,l.Logger=void 0,l.IdentifiersBuilder=void 0,l.IdentifierType=void 0,l.FeatureFlagDecision=void 0,l.Experiment=void 0,l.EventType=void 0,l.EmptyParameterConfig=void 0,l.EmptyHackleRemoteConfig=void 0,l.DecisionReason=void 0,l.Decision=void 0,l.CoreVersion=void 0,l.ContainerGroup=void 0,l.Container=void 0,l.Bucket=void 0,Object.defineProperty(t,"__esModule",{value:!0}),r),ue=function(e,t){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function ce(e,t){function r(){this.constructor=e}ue(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var d=function(){return(d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function le(e,s,a,u){return new(a=a||Promise)(function(r,t){function n(e){try{i(u.next(e))}catch(e){t(e)}}function o(e){try{i(u.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((u=u.apply(e,s||[])).next())})}function fe(n,o){var i,s,a,u={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,s&&(a=2&t[0]?s.return:t[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,t[1])).done)return a;switch(s=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,s=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!((a=0<(a=u.trys).length&&a[a.length-1])||6!==t[0]&&2!==t[0])){u=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){u.label=t[1];break}if(6===t[0]&&u.label<a[1]){u.label=a[1],a=t;break}if(a&&u.label<a[2]){u.label=a[2],u.ops.push(t);break}a[2]&&u.ops.pop(),u.trys.pop();continue}t=o.call(n,u)}catch(e){t=[6,e],s=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}ge.setLogLevel=function(e){this.logLevel=e=void 0===e?3:e},ge._log=function(e,t){var r;switch(e){case"WARN":r="orange";break;case"ERROR":r="red";break;default:r="#AAAAAA"}if(t instanceof Error)de.log(e,r,t.message,t);else try{de.log(e,r,t)}catch(e){}},ge.logLevel=3,ge.log={error:function(e){1<=ge.logLevel&&ge._log("ERROR",e)},warn:function(e){2<=ge.logLevel&&ge._log("WARN",e)},info:function(e){3<=ge.logLevel&&ge._log("INFO",e)},debug:function(e){4<=ge.logLevel&&ge._log("DEBUG",e)}};var pe=ge,de=(ye.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},ye),he=[0,8,16,32,64,128,256,512],ve=pe.log;function ye(){}function ge(){}function me(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}function we(e,t,r,n){this.id=e,this.key=t,this.isDropped=r,this.parameterConfigurationId=n}function Ee(e,t,r){this.seed=e,this.slotSize=t,this.slots=r}function be(e,t){this.id=e,this.key=t}function Te(e){var t,r={};return r.id=null!=(t=Ye(e.id))?t:void 0,r.userId=null!=(t=Ye(e.userId))?t:void 0,r.deviceId=null!=(t=Ye(e.deviceId))?t:void 0,"object"==typeof e.properties&&(r.properties=_e(e.properties)),"object"==typeof e.identifiers&&(r.identifiers=Re(e.identifiers)),Boolean(r.id||r.userId||r.deviceId||r.identifiers&&0<Object.keys(r.identifiers).length)?r:null}function _e(e){var r={};return Object.entries(e).forEach(function(e){var t=e[0],e=e[1];$e(t)&&qe(e)?r[t]=e:Le.debug("Invalid property. Property key must be 'string' type and value must be 'string' or 'number' or 'boolean' type. [key=".concat(t,", value=").concat(e,"]"))}),r}function Re(e){var n={};return Object.entries(e).forEach(function(e){var t=e[0],e=e[1],r=Ye(e);Xe(t)&&r?n[t]=r:Le.debug("Invalid identifier. Identifier type must be 'string' type and value must be 'string' type. [type=".concat(t,", value=").concat(e,"]"))}),n}function Ie(e){this.conditions=e}function Oe(e,t){this.key=e,this.match=t}function Se(e,t){this.type=e,this.name=t}function Ce(e,t,r,n){this.type=e,this.operator=t,this.valueType=r,this.values=n}function Ne(e,t,r){this.type=e,this.variationId=t,this.bucketId=r}function Ae(e,t){this.target=e,this.action=t}function ke(e,t,r,n){this.id=e,this.key=t,this.type=r,this.targets=n}function xe(e,t){this.id=e,this.experiments=t}function Pe(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 Ue(e,t,r,n,o){this.key=e,this.name=t,this.target=r,this.bucketId=n,this.value=o}function De(e,t){this.id=e,this.rawValue=t}var Me={getRequest:function(n,o){return{abort:function(){},responsePromise:new Promise(function(e,t){var r=new XMLHttpRequest;r.open("GET",n),r.onreadystatechange=function(){r.readyState===r.DONE&&(0===r.status?t(new Error("Request error")):e({statusCode:r.status,body:r.responseText}))},r.onerror=function(){t()},r.setRequestHeader("content-type","application/json"),me(r,o),r.send()})}},postRequest:function(e,t,r,n,o){var t=JSON.stringify(t),i=new XMLHttpRequest;i.open("POST",e),i.onreadystatechange=function(){i.readyState===i.DONE&&(200<=i.status&&i.status<400?n({statusCode:i.status}):o&&o({statusCode:i.status}))},i.setRequestHeader("content-type","application/json"),me(i,r),i.send(t)},sendBeacon:function(e,t,r,n,o){var i=!1;(i="undefined"!=typeof window?window&&window.navigator&&window.navigator.sendBeacon&&!0:i)?(i=JSON.stringify(t),(t=new URLSearchParams).append("sdkName",r["X-HACKLE-SDK-NAME"]),t.append("sdkVersion",r["X-HACKLE-SDK-VERSION"]),t.append("data",i),window.navigator.sendBeacon(e,t),n()):(ve.error("Does not support sendBeacon"),o())}},a=(ct.isNotNullOrUndefined=function(e){return null!=e},ct.isNullOrUndefined=function(e){return null==e},ct.requiredNotNullOrUndefined=function(e,t){if(void 0===t&&(t=function(){return"Required value is null or undefined"}),this.isNullOrUndefined(e))throw new Error(t());return e},ct),Le=pe.log,je=(ut.of=function(e,t){return new ut(e,t)},ut),Fe=(at.of=function(e,t,r){return new at(e,t,r=void 0===r?new He:r)},at.prototype.get=function(e,t){return this.config.get(e,t)},at),Ve=(st.on=function(e,t){return new st(!0,e,t=void 0===t?new He:t)},st.off=function(e,t){return new st(!1,e,t=void 0===t?new He:t)},st.prototype.get=function(e,t){return this.config.get(e,t)},st),ie=(it.prototype.get=function(e,t){return t},it),He=(ot.prototype.get=function(e,t){return t},ot),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),Ke=(nt.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},nt.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},nt.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},nt),ze=(rt.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},rt),Ge=(tt.ID="$id",tt.USER="$userId",tt.DEVICE="$deviceId",tt.SESSION="$sessionId",tt.HACKLE_DEVICE="$hackleDeviceId",tt),Be=(et.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},et.prototype.add=function(e,t){var r=Ye(t);return Xe(e)&&r?this.identifiers[e]=t:Le.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},et.prototype.build=function(){return this.identifiers},et),qe=function(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e},$e=function(e){return"string"==typeof e},Xe=function(e){return"string"==typeof e&&e.length<=128&&""!==e.trim()},Ye=function(e){return"string"==typeof e&&e.length<=512&&""!==e.trim()?e:"number"==typeof e?e.toString():null},We=(Qe.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},Qe),Je=(Ze.prototype.get=function(e,t){e=this.parameters.get(e);return!a.isNullOrUndefined(e)&&(a.isNullOrUndefined(t)||typeof e==typeof t)?e:t},Ze);function Ze(e,t){this.id=e,this.parameters=t}function Qe(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function et(){this.identifiers={}}function tt(){}function rt(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function nt(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 ot(){}function it(){}function st(e,t,r){this.isOn=e,this.reason=t,this.config=r}function at(e,t,r){this.variation=e,this.reason=t,this.config=r}function ut(e,t){this.value=e,this.reason=t}function ct(){}Ht.tryParse=function(e){var t,r,n,o,e=Ht.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 Ht(new ht(parseInt(t,10),parseInt(r,10),parseInt(n,10)),vt.parse(o),vt.parse(e))},Ht.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},Ht.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},Ht.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},Ht.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},Ht.prototype.isLessThan=function(e){return this.compareTo(e)<0},Ht.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},Ht.regExp=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*))?(?:\.(0|[1-9]\d*))?(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;var lt,ft,pt,dt=Ht,ht=(Vt.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},Vt),vt=(Ft.parse=function(e){return e?new Ft(e.split(".")):Ft.EMPTY},Ft.prototype.isEmpty=function(){return 0===this.identifiers.length},Ft.prototype.isNotEmpty=function(){return!this.isEmpty()},Ft.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},Ft.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=Ft.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},Ft.compareIdentifiers=function(e,t){return Ft.numericIdentifierRegExp.test(e)&&Ft.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},Ft.EMPTY=new Ft([]),Ft.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,Ft),yt=["MATCH","NOT_MATCH"],gt=["STRING","NUMBER","BOOLEAN","VERSION","JSON","NULL","UNKNOWN"],mt=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],wt=["VARIATION","BUCKET"],Et=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT"],bt=["USER_ID","USER_PROPERTY"],Tt=(jt.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},jt.IDENTIFIER=new jt("SEGMENT"),jt.PROPERTY=new jt("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY"),jt.SEGMENT=new jt("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),jt),_t=pe.log,Rt=(Lt.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}},Lt.prototype._get=function(e,t,r){try{if(a.isNullOrUndefined(e))return je.of(r,u.INVALID_INPUT);var n=this.hackleUserResolver.resolveCurrentUser();return this.client._remoteConfig(e,n,t,r)}catch(t){return _t.error("Unexpected exception while deciding remote config parameter[".concat(e,"]. Returning default value. : ").concat(t)),je.of(r,u.EXCEPTION)}},Lt),i=pe.log,It=(Mt.prototype.getSessionId=function(){return this.sessionManager.sessionId},Mt.prototype.getUser=function(){return this.userManager.currentUser},Mt.prototype.setUser=function(e){try{var t=Te(e);if(!t)return void i.warn("invalid user");this.userManager.setUser(t)}catch(e){i.error("Unexpected exception while set user: ".concat(e))}},Mt.prototype.setUserId=function(e){try{void 0===e&&this.userManager.setUserId(void 0);var t=Ye(e);if(!t)return void i.warn("Invalid userId. [userId=".concat(e,"]"));this.userManager.setUserId(t)}catch(e){i.error("Unexpected exception while set userId: ".concat(e))}},Mt.prototype.setDeviceId=function(e){try{if(!Ye(e))return void i.warn("Invalid deviceId. [deviceId=".concat(e,"]"));this.userManager.setDeviceId(e)}catch(e){i.error("Unexpected exception while set deviceId: ".concat(e))}},Mt.prototype.setUserProperty=function(e,t){try{if(!$e(e))return void i.warn("Invalid property key. [key=".concat(e,"]"));if(!qe(t))return void i.warn("Invalid property value. [key=".concat(t,"]"));this.userManager.setUserProperty(e,t)}catch(e){i.error("Unexpected exception while set userProperty: ".concat(e))}},Mt.prototype.setUserProperties=function(e){try{var t=_e(e);this.userManager.setUserProperties(t)}catch(e){i.error("Unexpected exception while set userProperties: ".concat(e))}},Mt.prototype.resetUser=function(){try{this.userManager.resetUser()}catch(e){i.error("Unexpected exception while reset user: ".concat(e))}},Mt.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},Mt.prototype.variationDetail=function(e,t,r){r=r||"A";try{var n=this.userManager.resolveCurrentOrNull(t);if(!n)return i.warn("invalid user"),Fe.of(r,u.INVALID_INPUT);var o=this.hackleUserResolver.resolve(n);return this.hackleInternalClient._experiment(e,o,r)}catch(t){return i.error("Unexpected exception while deciding variation for experiment[".concat(e,"]. Returning default variation[").concat(r,"] : ").concat(t)),Fe.of(r,u.EXCEPTION)}},Mt.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},Mt.prototype.featureFlagDetail=function(e,t){try{var r=this.userManager.resolveCurrentOrNull(t);if(!r)return i.warn("invalid user"),Ve.off(u.INVALID_INPUT);var n=this.hackleUserResolver.resolve(r);return this.hackleInternalClient._featureFlag(e,n)}catch(t){return i.error("Unexpected exception while deciding feature flag[".concat(e,"]. Returning default value[false] : ").concat(t)),Ve.off(u.EXCEPTION)}},Mt.prototype.track=function(e,t){try{i.debug("track event : ".concat(JSON.stringify(e)));var r=this._convertEvent(e),n=this.userManager.resolveCurrentOrNull(t);if(!n)return void i.warn("invalid user");var o=this.hackleUserResolver.resolve(n);this.hackleInternalClient._track(r,o)}catch(e){i.error("Unexpected exception while tracking event: $t")}},Mt.prototype.trackPageView=function(e){i.debug("tracking page view");var t=this.hackleUserResolver.resolve(this.userManager.currentUser);this.hackleInternalClient._track({key:"$page_view"},t)},Mt.prototype.remoteConfig=function(e){return new Rt(this.hackleInternalClient,this.userManager,this.hackleUserResolver,e)},Mt.prototype.onReady=function(e,t){this.hackleInternalClient._onReady(e,t=void 0===t?3e3:t)},Mt.prototype.onInitialized=function(e){return this.hackleInternalClient._onInitialized({timeout:null==e?void 0:e.timeout})},Mt.prototype.close=function(){i.debug("Hackle Client is closing"),this.hackleInternalClient._close()},Mt.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},Mt),Ot=(Dt.filteredProperties=function(r){var n=this;return Object.keys(r).filter(function(e){return n.validProperty(e,r[e])}).reduce(function(e,t){return d(d({},e),((e={})[t]=n.filteredPropertiesValue(t,r[t]),e))},{})},Dt.filteredPropertiesValue=function(e,t){return!e.startsWith(Dt.SYSTEM_PROPERTY_KEY_PREFIX)&&"string"==typeof t&&1024<t.length?t.slice(0,1024):t},Dt.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))},Dt.SYSTEM_PROPERTY_KEY_PREFIX="$",Dt),St=(Ut.exposure=function(e,t,r){return new Ct((new Date).getTime(),t,e,r.variationId,r.variationKey,r.reason,this.exposureProperties(r))},Ut.exposureProperties=function(e){return a.isNotNullOrUndefined(e.config)?{$parameterConfigurationId:e.config.id}:{}},Ut.track=function(e,t,r,n){return new Nt(n,r,e,t)},Ut.remoteConfig=function(e,t,r){return new At((new Date).getTime(),t,e,r)},Ut.isExposure=function(e){return void 0!==e.experiment},Ut.isTrack=function(e){return void 0!==e.eventType},Ut.isRemoteConfig=function(e){return void 0!==e.remoteConfigParameter},Ut.isExposureDto=function(e){return"experimentId"in e&&void 0!==e.experimentId},Ut.isTrackDto=function(e){return"eventTypeId"in e&&void 0!==e.eventTypeId},Ut.isRemoteConfigDto=function(e){return"parameterId"in e&&void 0!==e.parameterId},Ut.prototype.toDto=function(){return{insertId:this.insertId,timestamp:this.timestamp,userId:this.user.identifiers[Ge.ID],identifiers:this.user.identifiers,userProperties:Ot.filteredProperties(this.user.properties),hackleProperties:Ot.filteredProperties(this.user.hackleProperties)}},Ut),Ct=(ce(Pt,pt=St),Pt.prototype.copyWithUser=function(e){return new Pt(this.timestamp,e,this.experiment,this.variationId,this.variationKey,this.decisionReason,this.properties,this.insertId)},Pt.prototype.toDto=function(){return d(d({},pt.prototype.toDto.call(this)),{experimentId:this.experiment.id,experimentKey:this.experiment.key,experimentType:this.experiment.type,experimentVersion:this.experiment.version,variationId:this.variationId,variationKey:this.variationKey,decisionReason:this.decisionReason.toString(),properties:this.properties})},Pt),Nt=(ce(xt,ft=St),xt.prototype.copyWithUser=function(e){return new xt(this.timestamp,e,this.eventType,this.event,this.insertId)},xt.prototype.toDto=function(){return d(d({},ft.prototype.toDto.call(this)),{eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:Ot.filteredProperties(this.event.properties||{})})},xt),At=(ce(kt,lt=St),kt.prototype.copyWithUser=function(e){return new kt(this.timestamp,e,this.remoteConfigParameter,this.evaluation,this.insertId)},kt.prototype.toDto=function(){return d(d({},lt.prototype.toDto.call(this)),{parameterId:this.remoteConfigParameter.id,parameterKey:this.remoteConfigParameter.key,parameterType:this.remoteConfigParameter.type,valueId:this.evaluation.valueId,decisionReason:this.evaluation.reason.toString(),properties:Ot.filteredProperties(this.evaluation.properties)})},kt);function kt(e,t,r,n,o){e=lt.call(this,e,t,o)||this;return e.remoteConfigParameter=r,e.evaluation=n,e}function xt(e,t,r,n,o){e=ft.call(this,e,t,o)||this;return e.eventType=r,e.event=n,e}function Pt(e,t,r,n,o,i,s,a){e=pt.call(this,e,t,a)||this;return e.experiment=r,e.variationId=n,e.variationKey=o,e.decisionReason=i,e.properties=s,e}function Ut(e,t,r){void 0===r&&(r=ae.v4()),this.timestamp=e,this.user=t,this.insertId=r}function Dt(){}function Mt(e,t,r,n){this.hackleInternalClient=e,this.hackleUserResolver=t,this.sessionManager=r,this.userManager=n}function Lt(e,t,r,n){this.client=e,this.userManager=t,this.hackleUserResolver=r,this.user=n}function jt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function Ft(e){this.identifiers=e}function Vt(e,t,r){this.major=e,this.minor=t,this.patch=r}function Ht(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}function Kt(e){var t=new Array,r=new Array,n=new Array;return e.forEach(function(e){e instanceof St?St.isExposure(e)?t.push(e.toDto()):St.isTrack(e)?r.push(e.toDto()):St.isRemoteConfig(e)&&n.push(e.toDto()):St.isExposureDto(e)?t.push(e):St.isTrackDto(e)?r.push(e):St.isRemoteConfigDto(e)&&n.push(e)}),{exposureEvents:t,trackEvents:r,remoteConfigEvents:n}}cr.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(),Kt(e));this.httpRequest.postRequest(this.dispatchUrl,e,n,t,r)},cr.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=Kt(e),this.httpRequest.sendBeacon(this.beaconDispatchUrl,o,n,t,r)):this.dispatch(e,t,r)};var zt=cr,Gt=(ur.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},ur.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},ur.associate=function(e,t){return this.associateTo(e,new Map,t)},ur.associateBy=function(e,t){return this.associate(e,function(e){return[t(e),e]})},ur),Bt=pe.log,qt=(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=Gt.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]});return new y(Gt.associateBy(Gt.mapNotNullOrUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),Gt.associateBy(Gt.mapNotNullOrUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),r,Gt.associate(e.events,function(e){return[e.key,new be(e.id,e.key)]}),Gt.associateBy(Gt.mapNotNullOrUndefined(e.segments,function(e){return t.toSegmentOrNull(e)}),function(e){return e.key}),Gt.associate(e.containers,function(e){return[e.id,t.toContainer(e)]}),Gt.associate(e.parameterConfigurations,function(e){return[e.id,t.toParameterConfiguration(e)]}),Gt.associateBy(Gt.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 ze(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=Gt.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),s=Gt.mapNotNullOrUndefined(t.execution.segmentOverrides,function(e){return r.toTargetRuleOrNull(e,Tt.IDENTIFIER)}),a=Gt.mapNotNullOrUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e,Tt.PROPERTY)}),u=Gt.mapNotNullOrUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e,Tt.PROPERTY)}),c=this.toTargetActionOrNull(t.execution.defaultRule);return n&&c&&new Ke(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 Bt.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 Ae(t,e)},y.toTargetActionOrNull=function(e){var t=this.parseOrNull(wt,e.type);return t&&new Ne(t,e.variationId,e.bucketId)},y.toTargetOrNull=function(e,t){var r=this,e=Gt.mapNotNullOrUndefined(e.conditions,function(e){return r.toConditionOrNull(e,t)});return new Ie(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 Oe(r,t)},y.toTargetKeyOrNull=function(e){var t=this.parseOrNull(Et,e.type);return t&&new Se(t,e.name)},y.toTargetMatchOrNull=function(e){var t=this.parseOrNull(yt,e.type),r=this.parseOrNull(mt,e.operator),n=this.parseOrNull(gt,e.valueType);return t&&r&&n&&new Ce(t,r,n,e.values)},y.toSegmentOrNull=function(e){var t=this,r=this.parseOrNull(bt,e.type);return r&&new ke(e.id,e.key,r,Gt.mapNotNullOrUndefined(e.targets,function(e){return t.toTargetOrNull(e,Tt.SEGMENT)}))},y.toContainer=function(e){var t=this;return new We(e.id,e.bucketId,e.groups.map(function(e){return t.toContainerGroup(e)}))},y.toContainerGroup=function(e){return new xe(e.id,e.experiments)},y.toParameterConfiguration=function(e){return new Je(e.id,Gt.associate(e.parameters,function(e){return[e.key,e.value]}))},y.toRemoteConfigParameterOrNull=function(e){var t=this,r=this.parseOrNull(gt,e.type),n=Gt.mapNotNullOrUndefined(e.targetRules,function(e){return t.toRemoteConfigTargetRuleOrNull(e,Tt.PROPERTY)}),o=this.toRemoteConfigParameterValueOrNull(e.defaultValue);return r&&new Pe(e.id,e.key,r,e.identifierType,n,o)},y.toRemoteConfigTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t);return t&&new Ue(e.key,e.name,t,e.bucketId,this.toRemoteConfigParameterValueOrNull(e.value))},y.toRemoteConfigParameterValueOrNull=function(e){return new De(e.id,e.value)},y.parseOrNull=function(e,t){e=e.find(function(e){return e===t});return e||Bt.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e},y),$t=(ar.prototype.onReady=function(){return this.readyPromise},ar.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},ar.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()},ar.prototype.get=function(){return this.workspace},ar.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)},ar.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()},ar.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},ar.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=qt.from(e),this.readyPromiseResolver())}},ar.prototype.onRequestRejected=function(e){this.isStarted&&(this.errorRetryController.countError(),console.error("Error fetching data",e))},ar.prototype.close=function(){this.stop()},ar),Xt=(sr.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*he[Math.min(he.length-1,this.errorCount)]+Math.round(1e3*Math.random())},sr.prototype.countError=function(){this.errorCount<he.length-1&&this.errorCount++},sr.prototype.reset=function(){this.errorCount=0},sr),r="model",o="name",s="type",c="vendor",f="version",p="mobile",h="tablet",Yt=(v.parse=function(e){return{browser:v.getBrowser(e),cpu:v.getCPU(e),device:v.getDevice(e),engine:v.getEngine(e),os:v.getOS(e)}},v.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return v.mapper.rgx.call(t,e,v.regexes.browser),t.major=v.util.major(t.version),t},v.getCPU=function(e){var t={architecture:void 0};return v.mapper.rgx.call(t,e,v.regexes.cpu),t},v.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return v.mapper.rgx.call(t,e,v.regexes.device),t},v.getEngine=function(e){var t={name:void 0,version:void 0};return v.mapper.rgx.call(t,e,v.regexes.os),t},v.getOS=function(e){var t={name:void 0,version:void 0};return v.mapper.rgx.call(t,e,v.regexes.os),t},v.util={extend:function(e,t){var r,n={};for(r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},v.regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[o,f],[/(opios)[\/\s]+([\w\.]+)/i],[[o,"Opera Mini"],f],[/\s(opr)\/([\w\.]+)/i],[[o,"Opera"],f],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[o,f],[/(konqueror)\/([\w\.]+)/i],[[o,"Konqueror"],f],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[o,"IE"],f],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[o,"Edge"],f],[/(yabrowser)\/([\w\.]+)/i],[[o,"Yandex"],f],[/(Avast)\/([\w\.]+)/i],[[o,"Avast Secure Browser"],f],[/(AVG)\/([\w\.]+)/i],[[o,"AVG Secure Browser"],f],[/(puffin)\/([\w\.]+)/i],[[o,"Puffin"],f],[/(focus)\/([\w\.]+)/i],[[o,"Firefox Focus"],f],[/(opt)\/([\w\.]+)/i],[[o,"Opera Touch"],f],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[o,"UCBrowser"],f],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],f],[/(windowswechat qbcore)\/([\w\.]+)/i],[[o,"WeChat(Win) Desktop"],f],[/(micromessenger)\/([\w\.]+)/i],[[o,"WeChat"],f],[/(brave)\/([\w\.]+)/i],[[o,"Brave"],f],[/(whale)\/([\w\.]+)/i],[[o,"Whale"],f],[/(qqbrowserlite)\/([\w\.]+)/i],[o,f],[/(QQ)\/([\d\.]+)/i],[o,f],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[o,f],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[o,f],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[o,f],[/(MetaSr)[\/\s]?([\w\.]+)/i],[o],[/(LBBROWSER)/i],[o],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[f,[o,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[f,[o,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[o,f],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[f,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,/(.+)/,"$1 WebView"],f],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[o,/(.+(?:g|us))(.+)/,"$1 $2"],f],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[o,"Chrome Mobile"],f],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[f,[o,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[o,"Sailfish Browser"],f],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,f],[/(dolfin)\/([\w\.]+)/i],[[o,"Dolphin"],f],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[o,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[o,"Opera Coast"],f],[/fxios\/([\w\.-]+)/i],[f,[o,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[f,[o,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[f,o],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[o,"GSA"],f],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[f,(v.mapper={rgx:function(e,t){for(var r,n,o,i,s,a=0;a<t.length&&!i;){for(var u=t[a],c=t[a+1],l=r=0;l<u.length&&!i;)if(i=u[l++].exec(e))for(n=0;n<c.length;n++)s=i[++r],"object"==typeof(o=c[n])&&0<o.length?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=s?s.replace(o[1],o[2]):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0:4==o.length&&(this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0):this[o]=s||void 0;a+=2}},str:function(e,t){for(var r in t)if("object"==typeof t[r]&&0<t[r].length){for(var n=0;n<t[r].length;n++)if(v.util.has(t[r][n],e))return"?"===r?void 0:r}else if(v.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(v.maps={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}}).browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[o,f],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],f],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[o,f]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",v.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",v.util.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",v.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[r,c,[s,h]],[/applecoremedia\/[\w\.]+ \((ipad)/],[r,[c,"Apple"],[s,h]],[/(apple\s{0,1}tv)/i],[[r,"Apple TV"],[c,"Apple"],[s,"smarttv"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[c,r,[s,h]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[r,[c,"Amazon"],[s,h]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[r,v.mapper.str,v.maps.device.amazon.model],[c,"Amazon"],[s,p]],[/android.+aft([bms])\sbuild/i],[r,[c,"Amazon"],[s,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[r,c,[s,p]],[/\((ip[honed|\s\w*]+);/i],[r,[c,"Apple"],[s,p]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[c,r,[s,p]],[/\(bb10;\s(\w+)/i],[r,[c,"BlackBerry"],[s,p]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[r,[c,"Asus"],[s,h]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[c,"Sony"],[r,"Xperia Tablet"],[s,h]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[c,"Sony"],[s,p]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[c,r,[s,"console"]],[/android.+;\s(shield)\sbuild/i],[r,[c,"Nvidia"],[s,"console"]],[/(playstation\s[34portablevi]+)/i],[r,[c,"Sony"],[s,"console"]],[/(sprint\s(\w+))/i],[[c,v.mapper.str,v.maps.device.sprint.vendor],[r,v.mapper.str,v.maps.device.sprint.model],[s,p]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[c,[r,/_/g," "],[s,p]],[/(nexus\s9)/i],[r,[c,"HTC"],[s,h]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[r,[c,"Huawei"],[s,p]],[/android.+(bah2?-a?[lw]\d{2})/i],[r,[c,"Huawei"],[s,h]],[/(microsoft);\s(lumia[\s\w]+)/i],[c,r,[s,p]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[r,[c,"Microsoft"],[s,"console"]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[c,"Microsoft"],[s,p]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[r,[c,"Motorola"],[s,p]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[r,[c,"Motorola"],[s,h]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[c,v.util.trim],[r,v.util.trim],[s,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[c,"Samsung"],[s,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[r,[c,"Sharp"],[s,"smarttv"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[c,"Samsung"],r,[s,h]],[/smart-tv.+(samsung)/i],[c,[s,"smarttv"],r],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[c,"Samsung"],r,[s,p]],[/sie-(\w*)/i],[r,[c,"Siemens"],[s,p]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[c,"Nokia"],r,[s,p]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[r,[c,"Acer"],[s,h]],[/android.+([vl]k\-?\d{3})\s+build/i],[r,[c,"LG"],[s,h]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[c,"LG"],r,[s,h]],[/(lg) netcast\.tv/i],[c,r,[s,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[r,[c,"LG"],[s,p]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[c,r,[s,h]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[r,[c,"Lenovo"],[s,h]],[/(lenovo)[_\s-]?([\w-]+)/i],[c,r,[s,p]],[/linux;.+((jolla));/i],[c,r,[s,p]],[/((pebble))app\/[\d\.]+\s/i],[c,r,[s,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[c,r,[s,p]],[/crkey/i],[[r,"Chromecast"],[c,"Google"],[s,"smarttv"]],[/android.+;\s(glass)\s\d/i],[r,[c,"Google"],[s,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[r,[c,"Google"],[s,h]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[r,[c,"Google"],[s,p]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[c,"Xiaomi"],[s,p]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[c,"Xiaomi"],[s,h]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[r,[c,"Meizu"],[s,p]],[/(mz)-([\w-]{2,})/i],[[c,"Meizu"],r,[s,p]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[r,[c,"OnePlus"],[s,p]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[r,[c,"RCA"],[s,h]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[r,[c,"Dell"],[s,h]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[r,[c,"Verizon"],[s,h]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[c,"Barnes & Noble"],r,[s,h]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[r,[c,"NuVision"],[s,h]],[/android.+;\s(k88)\sbuild/i],[r,[c,"ZTE"],[s,h]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[r,[c,"Swiss"],[s,p]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[r,[c,"Swiss"],[s,h]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[r,[c,"Zeki"],[s,h]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[c,"Dragon Touch"],r,[s,h]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[r,[c,"Insignia"],[s,h]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[r,[c,"NextBook"],[s,h]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[c,"Voice"],r,[s,p]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[c,"LvTel"],r,[s,p]],[/android.+;\s(PH-1)\s/i],[r,[c,"Essential"],[s,p]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[r,[c,"Envizen"],[s,h]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[c,r,[s,h]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[r,[c,"MachSpeed"],[s,h]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[c,r,[s,h]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[r,[c,"Rotor"],[s,h]],[/android.+(KS(.+))\s+build/i],[r,[c,"Amazon"],[s,h]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[c,r,[s,h]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[s,v.util.lowerize],c,r],[/[\s\/\(](smart-?tv)[;\)]/i],[[s,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[r,[c,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[f,[o,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[o,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[o,f],[/rv\:([\w\.]{1,9}).+(gecko)/i],[f,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,f],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[[o,v.mapper.str,v.maps.os.windows],[f,v.mapper.str,v.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[f,v.mapper.str,v.maps.os.windows.version]],[/\((bb)(10);/i],[[o,"BlackBerry"],f],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[o,f],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[o,"Symbian"],f],[/\((series40);/i],[o],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"],f],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[[o,"Linux"],f],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],f],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],f],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[o,"Linux"],f],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPhone"],[f,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPad"],[f,/_/g,"."]],[/(haiku)\s(\w+)/i],[o,f],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[f,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[o,"Mac"],[f,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[o,f]]},v),Wt=(ir.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=Yt.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||""}},ir),Jt=(or.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]:""},or.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},or.prototype.setItem=function(e,t,r){var r=d(d({},this.options),r),n=r.isSecure,o="",i="",s="",a=(r.isCrossSubdomain&&(o=(a=or.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},or.prototype.removeItem=function(e,t){this.setItem(e,"",d(d({},t),{days:-1}))},new or({days:3650,isCrossSubdomain:!0})),Zt=(nr.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},nr),Qt=(rr.prototype.resolve=function(e){var t=lr(),t=(new Be).addIdentifiers(e.identifiers||{}).add(Ge.ID,e.id||t).add(Ge.DEVICE,e.deviceId||t).add(Ge.HACKLE_DEVICE,t);return a.isNotNullOrUndefined(e.userId)&&t.add(Ge.USER,e.userId),{identifiers:t.build(),properties:this._userProperties(e.properties),hackleProperties:this._getHackleProperties()}},rr.prototype.resolveCurrentUser=function(){return this.resolve(this.userManager.currentUser)},rr.prototype._userProperties=function(e){void 0===e&&(e={});var t={};return"undefined"!=typeof window&&(t=Zt.parse(window.location.search)),d(d({},t),e)},rr.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?Wt.generate(window):e)||{}},rr),er=(tr.initialize=function(){Jt.getItem("_hackle_hid")||dr()},tr.reInitialize=function(){dr()},tr);function tr(){}function rr(e){this.userManager=e,er.initialize()}function nr(){}function or(e){this.options=e=void 0===e?{days:0,isCrossSubdomain:!1,isSecure:!1,isCrossSite:!1}:e}function ir(){}function v(){}function sr(){this.errorCount=0}function ar(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 Xt,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 ur(){}function cr(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 lr(){var e=Jt.getItem("_hackle_id");return e||Jt.getItem("_hackle_hid")||dr()}function fr(e){Jt.setItem("_hackle_id",e)}function pr(){Jt.removeItem("_hackle_id")}function dr(){var e=ae.v4();return Jt.setItem("_hackle_hid",e),e}function hr(e){return e&&e.Math==Math&&e}function g(e){try{return!!e()}catch(e){return!0}}var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},h=hr("object"==typeof globalThis&&globalThis)||hr("object"==typeof window&&window)||hr("object"==typeof self&&self)||hr("object"==typeof p&&p)||function(){return this}()||Function("return this")(),s={},r=!g(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),c=!g(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),vr=Function.prototype.call,o=c?vr.bind(vr):function(){return vr.apply(vr,arguments)},f={},e={}.propertyIsEnumerable,yr=Object.getOwnPropertyDescriptor,p=yr&&!e.call({1:2},1);f.f=p?function(e){e=yr(this,e);return!!e&&e.enumerable}:e;function gr(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function mr(e){return Dr(Ur(e),8,-1)}function wr(e){if(null==e)throw Fr("Can't call method on "+e);return e}function Er(e){return Vr(Hr(e))}function m(e){return"function"==typeof e}function br(e){return"object"==typeof e?null!==e:Kr(e)}function Tr(e,t){return arguments.length<2?(r=zr[e],Gr(r)?r:void 0):zr[e]&&zr[e][t];var r}function _r(e){try{return Qr(e)}catch(e){return"Object"}}function Rr(e){if(en(e))return e;throw rn(tn(e)+" is not a function")}function Ir(e,t){return null==(e=e[t])?void 0:nn(e)}function Or(t,r){try{ln(cn,t,{value:r,configurable:!0,writable:!0})}catch(e){cn[t]=r}return r}function w(e){return hn(dn(e))}function Sr(e){return"Symbol("+(void 0===e?"":e)+")_"+bn(++wn+En,36)}function E(e){var t;return Tn(On,e)&&(Rn||"string"==typeof On[e])||(t="Symbol."+e,Rn&&Tn(Sn,e)?On[e]=Sn[e]:On[e]=(In&&Cn?Cn:Nn)(t)),On[e]}function Cr(e){return e=function(e,t){if(!kn(e)||xn(e))return e;var r=Pn(e,Mn);if(r){if(r=An(r,e,t=void 0===t?"default":t),!kn(r)||xn(r))return r;throw Dn("Can't convert object to primitive value")}return Un(e,t=void 0===t?"number":t)}(e,"string"),Ln(e)?e:e+""}function Nr(e){return Fn?jn.createElement(e):{}}function Ar(e){if(Yn(e))return e;throw Jn(Wn(e)+" is not an object")}var p=c,e=Function.prototype,kr=e.bind,xr=e.call,Pr=p&&kr.bind(xr,xr),e=p?function(e){return e&&Pr(e)}:function(e){return e&&function(){return xr.apply(e,arguments)}},kr=e,Ur=kr({}.toString),Dr=kr("".slice),p=g,Mr=mr,Lr=Object,jr=e("".split),kr=p(function(){return!Lr("z").propertyIsEnumerable(0)})?function(e){return"String"==Mr(e)?jr(e,""):Lr(e)}:Lr,Fr=TypeError,Vr=kr,Hr=wr,Kr=m,zr=h,Gr=m,p=e({}.isPrototypeOf),Br=Tr("navigator","userAgent")||"",b=Br,qr=h.process,T=h.Deno,qr=qr&&qr.versions||T&&T.version,T=qr&&qr.v8,qr=Zr=!(Zr=T?0<(_=T.split("."))[0]&&_[0]<4?1:+(_[0]+_[1]):Zr)&&b&&(!(_=b.match(/Edge\/(\d+)/))||74<=_[1])&&(_=b.match(/Chrome\/(\d+)/))?+_[1]:Zr,$r=qr,T=g,b=!!Object.getOwnPropertySymbols&&!T(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&$r&&$r<41}),_=b&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Xr=Tr,Yr=m,Wr=p,Jr=Object,Zr=_?function(e){return"symbol"==typeof e}:function(e){var t=Xr("Symbol");return Yr(t)&&Wr(t.prototype,Jr(e))},Qr=String,en=m,tn=_r,rn=TypeError,nn=Rr,on=o,sn=m,an=br,un=TypeError,T={exports:{}},cn=h,ln=Object.defineProperty,fn=Or,fn=h["__core-js_shared__"]||fn("__core-js_shared__",{}),pn=fn,dn=((T.exports=function(e,t){return pn[e]||(pn[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"}),wr),hn=Object,vn=w,yn=e({}.hasOwnProperty),gn=Object.hasOwn||function(e,t){return yn(vn(e),t)},mn=e,wn=0,En=Math.random(),bn=mn(1..toString),mn=h,R=T.exports,Tn=gn,_n=Sr,Rn=b,In=_,On=R("wks"),Sn=mn.Symbol,Cn=Sn&&Sn.for,Nn=In?Sn:Sn&&Sn.withoutSetter||_n,An=o,kn=br,xn=Zr,Pn=Ir,Un=function(e,t){var r,n;if("string"===t&&sn(r=e.toString)&&!an(n=on(r,e)))return n;if(sn(r=e.valueOf)&&!an(n=on(r,e)))return n;if("string"!==t&&sn(r=e.toString)&&!an(n=on(r,e)))return n;throw un("Can't convert object to primitive value")},Dn=TypeError,Mn=E("toPrimitive"),Ln=Zr,b=br,jn=h.document,Fn=b(jn)&&b(jn.createElement),Vn=Nr,_=!r&&!g(function(){return 7!=Object.defineProperty(Vn("div"),"a",{get:function(){return 7}}).a}),Hn=o,Kn=f,zn=gr,Gn=Er,Bn=Cr,qn=gn,$n=_,Xn=Object.getOwnPropertyDescriptor,R=(s.f=r?Xn:function(e,t){if(e=Gn(e),t=Bn(t),$n)try{return Xn(e,t)}catch(e){}if(qn(e,t))return zn(!Hn(Kn.f,e,t),e[t])},{}),mn=r&&g(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Yn=br,Wn=String,Jn=TypeError,Zn=_,Qn=Ar,eo=Cr,to=TypeError,ro=Object.defineProperty,no=Object.getOwnPropertyDescriptor,oo=(R.f=r?mn?function(e,t,r){var n;return Qn(e),t=eo(t),Qn(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=no(e,t))&&n.writable&&(e[t]=r.value,r={configurable:("configurable"in r?r:n).configurable,enumerable:("enumerable"in r?r:n).enumerable,writable:!1}),ro(e,t,r)}:ro:function(e,t,r){if(Qn(e),t=eo(t),Qn(r),Zn)try{return ro(e,t,r)}catch(e){}if("get"in r||"set"in r)throw to("Accessors not supported");return"value"in r&&(e[t]=r.value),e},R),io=gr,_n=r?function(e,t,r){return oo.f(e,t,io(1,r))}:function(e,t,r){return e[t]=r,e},Zr={exports:{}},b=r,f=gn,_=Function.prototype,so=b&&Object.getOwnPropertyDescriptor,f=f(_,"name"),f={EXISTS:f,PROPER:f&&"something"===function(){}.name,CONFIGURABLE:f&&(!b||so(_,"name").configurable)},b=m,so=fn,ao=e(Function.toString);b(so.inspectSource)||(so.inspectSource=function(e){return ao(e)});function uo(e){return So[e]||(So[e]=Oo(e))}function co(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(Go(r)&&qo(r,i,n),n.global)o?e[t]=r:$o(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:Bo.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function lo(e){return(e=+e)!=e||0==e?0:Wo(e)}function fo(e,t){return(e=Jo(e))<0?Zo(e+t,0):Qo(e,t)}function I(e){return 0<(e=e.length)?ti(ei(e),9007199254740991):0}function po(a){return function(e,t,r){var n,o=ri(e),i=oi(o),s=ni(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 ho(e,t){var r,n=si(e),o=0,i=[];for(r in n)!ii(ui,r)&&ii(n,r)&&ci(i,r);for(;t.length>o;)!ii(n,r=t[o++])||~ai(i,r)||ci(i,r);return i}function vo(e,t,r){for(var n=gi(t),o=wi.f,i=mi.f,s=0;s<n.length;s++){var a=n[s];yi(e,a)||r&&yi(r,a)||o(e,a,i(t,a))}}function yo(e,t){return(e=Ri[_i(e)])==Oi||e!=Ii&&(bi(t)?Ei(t):!!t)}function O(e,t){var r,n,o,i,s=e.target,a=e.global,u=e.stat;if(r=a?Si:u?Si[s]||ki(s,{}):(Si[s]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(i=Ci(r,n))&&i.value:r[n],!Pi(a?n:s+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;xi(o,i)}(e.sham||i&&i.sham)&&Ni(o,"sham",!0),Ai(r,n,o,e)}}var go,mo,wo,Eo,bo,To,_o,Ro,_=so.inspectSource,b=m,so=_,Io=h.WeakMap,b=b(Io)&&/native code/.test(so(Io)),so=T.exports,Oo=Sr,So=so("keys"),Io={},T=e,Co=br,No=_n,Ao=gn,so=fn,S=uo,ko=Io,xo=h.TypeError,Po=h.WeakMap,b=(_o=b||so.state?(go=so.state||(so.state=new Po),mo=T(go.get),wo=T(go.has),Eo=T(go.set),bo=function(e,t){if(wo(go,e))throw new xo("Object already initialized");return t.facade=e,Eo(go,e,t),t},To=function(e){return mo(go,e)||{}},function(e){return wo(go,e)}):(ko[Ro=S("state")]=!0,bo=function(e,t){if(Ao(e,Ro))throw new xo("Object already initialized");return t.facade=e,No(e,Ro,t),t},To=function(e){return Ao(e,Ro)?e[Ro]:{}},function(e){return Ao(e,Ro)}),{set:bo,get:To,has:_o,enforce:function(e){return _o(e)?To(e):bo(e,{})},getterFor:function(t){return function(e){if(Co(e)&&(e=To(e)).type===t)return e;throw xo("Incompatible receiver, "+t+" required")}}}),so=g,Uo=m,Do=gn,Mo=r,Lo=f.CONFIGURABLE,jo=_,Fo=b.enforce,Vo=b.get,Ho=Object.defineProperty,Ko=Mo&&!so(function(){return 8!==Ho(function(){},"length",{value:8}).length}),zo=String(String).split("String"),Po=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),(!Do(e,"name")||Lo&&e.name!==t)&&(Mo?Ho(e,"name",{value:t,configurable:!0}):e.name=t),Ko&&r&&Do(r,"arity")&&e.length!==r.arity&&Ho(e,"length",{value:r.arity});try{r&&Do(r,"constructor")&&r.constructor?Mo&&Ho(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=Fo(e);return Do(r,"source")||(r.source=zo.join("string"==typeof t?t:"")),e},Go=(Function.prototype.toString=Po(function(){return Uo(this)&&Vo(this).source||jo(this)},"toString"),m),Bo=R,qo=Zr.exports,$o=Or,T={},Xo=Math.ceil,Yo=Math.floor,Wo=Math.trunc||function(e){e=+e;return(0<e?Yo:Xo)(e)},Jo=lo,Zo=Math.max,Qo=Math.min,ei=lo,ti=Math.min,ri=Er,ni=fo,oi=I,ko={includes:po(!0),indexOf:po(!1)},ii=gn,si=Er,ai=ko.indexOf,ui=Io,ci=e([].push),S=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],li=ho,fi=S.concat("length","prototype"),so=(T.f=Object.getOwnPropertyNames||function(e){return li(e,fi)},{}),Po=(so.f=Object.getOwnPropertySymbols,Tr),pi=T,di=so,hi=Ar,vi=e([].concat),so=Po("Reflect","ownKeys")||function(e){var t=pi.f(hi(e)),r=di.f;return r?vi(t,r(e)):t},yi=gn,gi=so,mi=s,wi=R,Ei=g,bi=m,Ti=/#|\.prototype\./,_i=yo.normalize=function(e){return String(e).replace(Ti,".").toLowerCase()},Ri=yo.data={},Ii=yo.NATIVE="N",Oi=yo.POLYFILL="P",Po=yo,Si=h,Ci=s.f,Ni=_n,Ai=co,ki=Or,xi=vo,Pi=Po,so=!g(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Ui=gn,Di=m,Mi=w,Li=uo("IE_PROTO"),ji=Object,Fi=ji.prototype,so=so?ji.getPrototypeOf:function(e){e=Mi(e);if(Ui(e,Li))return e[Li];var t=e.constructor;return Di(t)&&e instanceof t?t.prototype:e instanceof ji?Fi:null},Vi=m,Hi=String,Ki=TypeError,zi=e,Gi=Ar,Bi=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=zi(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return Gi(e),function(e){if("object"==typeof e||Vi(e))return;throw Ki("Can't set "+Hi(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),qi={},$i=ho,Xi=S,C=Object.keys||function(e){return $i(e,Xi)},Yi=R,Wi=Ar,Ji=Er,Zi=C;qi.f=r&&!mn?Object.defineProperties:function(e,t){Wi(e);for(var r,n=Ji(t),o=Zi(t),i=o.length,s=0;s<i;)Yi.f(e,r=o[s++],n[r]);return e};function Qi(){}function es(e){e.write(gs("")),e.close();var t=e.parentWindow.Object;return e=null,t}function ts(e,t){return Is(e),void 0===t?e:Os?Ss(e,t):function(){return e.apply(t,arguments)}}function rs(e){return void 0!==e&&(Cs.Array===e||As[Ns]===e)}function ns(e){if(null!=e)return Ls(e,Fs)||Ls(e,"@@iterator")||js[Ms(e)]}function os(e,t){if(t=arguments.length<2?Gs(e):t,Hs(t))return Ks(Vs(t,e));throw Bs(zs(e)+" is not iterable")}function is(e,t,r){var n,o;$s(e);try{if(!(n=Xs(e,"return"))){if("throw"===t)throw r;return r}n=qs(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return $s(n),r}function ss(e,t){this.stopped=e,this.result=t}function as(e,t,r){function n(e){return i&&oa(i,"normal",e),new ss(!0,e)}function o(e){return p?(Js(e),v?y(e[0],e[1],n):y(e[0],e[1])):v?y(e,n):y(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),v=!(!r||!r.INTERRUPTED),y=Ys(t,f);if(d)i=e.iterator;else if(h)i=e;else{if(!(r=na(e)))throw ia(Zs(e)+" is not iterable");if(Qs(r)){for(s=0,a=ea(e);s<a;s++)if((u=o(e[s]))&&ta(sa,u))return u;return new ss(!1)}i=ra(e,r)}for(c=(d?e:i).next;!(l=Ws(c,i)).done;){try{u=o(l.value)}catch(e){oa(i,"throw",e)}if("object"==typeof u&&u&&ta(sa,u))return u}return new ss(!1)}function us(e){if("Symbol"===aa(e))throw TypeError("Cannot convert a Symbol value to a string");return ua(e)}function cs(e,t){var r,n=2<arguments.length?arguments[2]:void 0,o=pa(Ra,this);return ha?r=ha(new Ta,o?da(this):Ra):(r=o?this:ya(Ra),ga(r,ba,"Error")),void 0!==t&&ga(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:ca(e)}(t)),Ea&&ga(r,"stack",function(e,t){if(Ts&&"string"==typeof e&&!ws.prepareStackTrace)for(;t--;)e=Es(e,bs,"");return e}(r.stack,1)),o=r,_s(t=n)&&"cause"in t&&Rs(o,"cause",t.cause),wa(e,_a,{that:n=[]}),ga(r,"errors",n),r}var ls,C=Tr("document","documentElement"),fs=Ar,ps=qi,ds=S,mn=Io,hs=C,vs=Nr,ys=uo("IE_PROTO"),gs=function(e){return"<script>"+e+"<\/script>"},ms=function(){try{ls=new ActiveXObject("htmlfile")}catch(e){}var e,t;ms="undefined"==typeof document||document.domain&&ls?es(ls):((t=vs("iframe")).style.display="none",hs.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(gs("document.F=Object")),e.close(),e.F);for(var r=ds.length;r--;)delete ms.prototype[ds[r]];return ms()},qi=(mn[ys]=!0,Object.create||function(e,t){var r;return null!==e?(Qi.prototype=fs(e),r=new Qi,Qi.prototype=null,r[ys]=e):r=ms(),void 0===t?r:ps.f(r,t)}),ws=Error,Es=e("".replace),S=String(ws("zxcasd").stack),bs=/\n\s*at [^:]*:[^\n]*/,Ts=bs.test(S),_s=br,Rs=_n,Is=Rr,Os=c,Ss=e(e.bind),mn={},Cs=mn,Ns=E("iterator"),As=Array.prototype,S={},S=(S[E("toStringTag")]="z","[object z]"===String(S)),N=S,ks=m,xs=mr,Ps=E("toStringTag"),Us=Object,Ds="Arguments"==xs(function(){return arguments}()),N=N?xs: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=Us(e),Ps))?t:Ds?xs(e):"Object"==(t=xs(e))&&ks(e.callee)?"Arguments":t},Ms=N,Ls=Ir,js=mn,Fs=E("iterator"),Vs=o,Hs=Rr,Ks=Ar,zs=_r,Gs=ns,Bs=TypeError,qs=o,$s=Ar,Xs=Ir,Ys=ts,Ws=o,Js=Ar,Zs=_r,Qs=rs,ea=I,ta=p,ra=os,na=ns,oa=is,ia=TypeError,sa=ss.prototype,aa=N,ua=String,ca=us,la=gr,A=!g(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",la(1,7)),7!==e.stack)}),fa=O,pa=p,da=so,ha=Bi,va=vo,ya=qi,ga=_n,ma=gr,wa=as,Ea=A,ba=E("toStringTag"),Ta=Error,_a=[].push,Ra=(ha?ha(cs,Ta):va(cs,Ta,{name:!0}),cs.prototype=ya(Ta.prototype,{constructor:ma(1,cs),message:ma(1,""),name:ma(1,"AggregateError")})),A=(fa({global:!0,constructor:!0,arity:2},{AggregateError:cs}),E),va=qi,ma=R.f,Ia=A("unscopables"),Oa=Array.prototype;null==Oa[Ia]&&ma(Oa,Ia,{configurable:!0,value:va(null)});function k(e){Oa[Ia][e]=!0}var Sa,fa=g,A=m,ma=so,va=co,Ca=E("iterator"),x=!1;[].keys&&("next"in(xa=[].keys())?(ma=ma(ma(xa)))!==Object.prototype&&(Sa=ma):x=!0);function Na(e,t,r){(e=e&&!r?e.prototype:e)&&!Ua(e,Da)&&Pa(e,Da,{configurable:!0,value:t})}function Aa(){return this}function ka(e,t,r,n,o,i,s){var a=r,u=t,c=void 0;function l(e){if(e===o&&y)return y;if(!eu&&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=La(Ma,{next:ja(+!c,n)}),Fa(a,u,!1),Va[u]=Ha;var f,p,c=t+" Iterator",d=!1,h=e.prototype,v=h[tu]||h["@@iterator"]||o&&h[o],y=!eu&&v||l(o);if((n="Array"==t&&h.entries||v)&&(a=Ba(n.call(new e)))!==Object.prototype&&a.next&&(Ba(a)!==Qa&&(qa?qa(a,Qa):Ga(a[tu])||Ya(a,tu,Aa)),$a(a,c,!0)),Ja&&"values"==o&&v&&"values"!==v.name&&(Za?Xa(h,"name","values"):(d=!0,y=function(){return za(v,this)})),o)if(f={values:l("values"),keys:i?y:l("keys"),entries:l("entries")},s)for(p in f)!eu&&!d&&p in h||Ya(h,p,f[p]);else Ka({target:t,proto:!0,forced:eu||d},f);return h[tu]!==y&&Ya(h,tu,y,{name:o}),Wa[t]=y,f}A((Sa=null==Sa||fa(function(){var e={};return Sa[Ca].call(e)!==e})?{}:Sa)[Ca])||va(Sa,Ca,function(){return this});var xa={IteratorPrototype:Sa,BUGGY_SAFARI_ITERATORS:x},Pa=R.f,Ua=gn,Da=E("toStringTag"),Ma=xa.IteratorPrototype,La=qi,ja=gr,Fa=Na,Va=mn,Ha=function(){return this},Ka=O,za=o,Ga=m,Ba=so,qa=Bi,$a=Na,Xa=_n,Ya=co,Wa=mn,Ja=f.PROPER,Za=f.CONFIGURABLE,Qa=xa.IteratorPrototype,eu=xa.BUGGY_SAFARI_ITERATORS,tu=E("iterator"),ru=Er,ma=k,A=mn,fa=b,va=R.f,x=ka,f=r,nu=fa.set,ou=fa.getterFor("Array Iterator"),xa=x(Array,"Array",function(e,t){nu(this,{type:"Array Iterator",target:ru(e),index:0,kind:t})},function(){var e=ou(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"),mn=A.Arguments=A.Array;if(ma("keys"),ma("values"),ma("entries"),f&&"values"!==mn.name)try{va(mn,"name",{value:"values"})}catch(ae){}function iu(e){var e=fu(e),t=pu.f;du&&e&&!e[hu]&&t(e,hu,{configurable:!0,get:function(){return this}})}function su(e,t){if(vu(t,e))return e;throw yu("Incorrect invocation")}function au(){}function uu(e){if(!gu(e))return!1;try{return bu(au,Eu,e),!0}catch(e){return!1}}function cu(e){if(!gu(e))return!1;switch(mu(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ru||!!_u(Tu,wu(e))}catch(e){return!0}}var lu=N,fa=(S||co(Object.prototype,"toString",S?{}.toString:function(){return"[object "+lu(this)+"]"},{unsafe:!0}),"process"==mr(h.process)),fu=Tr,pu=R,du=r,hu=E("species"),vu=p,yu=TypeError,x=e,A=g,gu=m,mu=N,wu=_,Eu=[],bu=Tr("Reflect","construct"),Tu=/^\s*(?:class|function)\b/,_u=x(Tu.exec),Ru=!Tu.exec(au);cu.sham=!0;function Iu(e,t){var r,e=ku(e).constructor;if(void 0===e||null==(r=ku(e)[xu]))return t;if(Cu(e=r))return e;throw Au(Nu(e)+" is not a constructor")}var Ou,Su,ma=!bu||A(function(){var e;return uu(uu.call)||!uu(Object)||!uu(function(){e=!0})||e})?cu:uu,Cu=ma,Nu=_r,Au=TypeError,ku=Ar,xu=E("species"),f=Function.prototype,Pu=f.apply,Uu=f.call,va="object"==typeof Reflect&&Reflect.apply||(c?Uu.bind(Pu):function(){return Uu.apply(Pu,arguments)}),mn=e([].slice),Du=TypeError,S=/(?:ipad|iphone|ipod).*applewebkit/i.test(Br),Mu=h,Lu=va,p=ts,ju=m,Fu=gn,N=g,Vu=C,Hu=mn,Ku=Nr,x=S,A=fa,f=Mu.setImmediate,c=Mu.clearImmediate,zu=Mu.process,Gu=Mu.Dispatch,Bu=Mu.Function,C=Mu.MessageChannel,qu=Mu.String,$u=0,Xu={};try{Ou=Mu.location}catch(ae){}function Yu(e){return function(){Zu(e)}}function Wu(e){Zu(e.data)}function Ju(e){Mu.postMessage(qu(e),Ou.protocol+"//"+Ou.host)}var Zu=function(e){var t;Fu(Xu,e)&&(t=Xu[e],delete Xu[e],t())};f&&c||(f=function(e){var t=arguments.length,r=1;if(t<r)throw Du("Not enough arguments");var n=ju(e)?e:Bu(e),o=Hu(arguments,1);return Xu[++$u]=function(){Lu(n,void 0,o)},Su($u),$u},c=function(e){delete Xu[e]},A?Su=function(e){zu.nextTick(Yu(e))}:Gu&&Gu.now?Su=function(e){Gu.now(Yu(e))}:C&&!x?(x=(A=new C).port2,A.port1.onmessage=Wu,Su=p(x.postMessage,x)):Mu.addEventListener&&ju(Mu.postMessage)&&!Mu.importScripts&&Ou&&"file:"!==Ou.protocol&&!N(Ju)?(Su=Ju,Mu.addEventListener("message",Wu,!1)):Su="onreadystatechange"in Ku("script")?function(e){Vu.appendChild(Ku("script")).onreadystatechange=function(){Vu.removeChild(this),Zu(e)}}:function(e){setTimeout(Yu(e),0)});function Qu(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function ec(){this.head=null,this.tail=null}function tc(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=Tc(r),this.reject=Tc(n)}var rc,nc,oc,ic,sc,ac,uc,C={set:f,clear:c},A=h,p=/ipad|iphone|ipod/i.test(Br)&&void 0!==A.Pebble,x=/web0s(?!.*chrome)/i.test(Br),N=h,f=ts,c=s.f,cc=C.set,A=S,s=p,S=x,lc=fa,p=N.MutationObserver||N.WebKitMutationObserver,x=N.document,fc=N.process,pc=N.Promise,c=c(N,"queueMicrotask"),c=c&&c.value,S=(c||(rc=function(){var e,t;for(lc&&(e=fc.domain)&&e.exit();nc;){t=nc.fn,nc=nc.next;try{t()}catch(e){throw nc?ic():oc=void 0,e}}oc=void 0,e&&e.enter()},ic=A||lc||S||!p||!x?!s&&pc&&pc.resolve?((A=pc.resolve(void 0)).constructor=pc,uc=f(A.then,A),function(){uc(rc)}):lc?function(){fc.nextTick(rc)}:(cc=f(cc,N),function(){cc(rc)}):(sc=!0,ac=x.createTextNode(""),new p(rc).observe(ac,{characterData:!0}),function(){ac.data=sc=!sc})),c||function(e){e={fn:e,next:void 0};oc&&(oc.next=e),nc||(nc=e,ic()),oc=e}),dc=h,s=(ec.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}},ec),pc=h.Promise,A="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,f=!A&&!fa&&"object"==typeof window&&"object"==typeof document,N=h,hc=pc,x=m,p=Po,vc=_,c=E,yc=f,gc=A,mc=qr,wc=(hc&&hc.prototype,c("species")),Ec=!1,bc=x(N.PromiseRejectionEvent),_={CONSTRUCTOR:p("Promise",function(){var e=vc(hc),t=e!==String(hc);if(!t&&66===mc)return!0;if(!mc||mc<51||!/native code/.test(e)){var e=new hc(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[wc]=r,!(Ec=e.then(function(){})instanceof r))return!0}return!t&&(yc||gc)&&!bc}),REJECTION_EVENT:bc,SUBCLASSING:Ec},f={},Tc=Rr;f.f=function(e){return new tc(e)};function _c(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,Nc(Dc,Cc,function(){var e=i.facade;Sc?$c.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(Bc("Promise-chain cycle")):(n=Jc(r))?Nc(n,r,c,l):c(r)):l(s)}catch(e){f&&!o&&f.exit(),l(e)}}var Rc,Ic,Oc,A=O,Sc=fa,Cc=h,Nc=o,c=co,x=Bi,N=Na,p=iu,Ac=Rr,kc=m,xc=br,Pc=su,Uc=Iu,Dc=C.set,Mc=S,Lc=Qu,jc=s,C=b,S=pc,s=f,P=_.CONSTRUCTOR,Fc=_.REJECTION_EVENT,Vc=_.SUBCLASSING,Hc=C.getterFor("Promise"),Kc=C.set,C=S&&S.prototype,zc=S,Gc=C,Bc=Cc.TypeError,qc=Cc.document,$c=Cc.process,Xc=s.f,Yc=Xc,Wc=!!(qc&&qc.createEvent&&Cc.dispatchEvent),Jc=function(e){var t;return!(!xc(e)||!kc(t=e.then))&&t},Zc=function(r,o){r.notified||(r.notified=!0,Mc(function(){for(var e,n,t=r.reactions;e=t.get();)_c(e,r);r.notified=!1,o&&!r.rejection&&(n=r,Nc(Dc,Cc,function(){var e,t=n.facade,r=n.value;if(el(n)&&(e=Lc(function(){Sc?$c.emit("unhandledRejection",r,t):Qc("unhandledrejection",t,r)}),n.rejection=Sc||el(n)?2:1,e.error))throw e.value}))}))},Qc=function(e,t,r){var n;Wc?((n=qc.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Cc.dispatchEvent(n)):n={promise:t,reason:r},!Fc&&(t=Cc["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=dc.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},el=function(e){return 1!==e.rejection&&!e.parent},tl=function(t,r,n){return function(e){t(r,e,n)}},rl=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,Zc(e,!0))},nl=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw Bc("Promise can't be resolved itself");var n=Jc(e);n?Mc(function(){var t={done:!1};try{Nc(n,e,tl(nl,t,r),tl(rl,t,r))}catch(e){rl(t,e,r)}}):(r.value=e,r.state=1,Zc(r,!1))}catch(e){rl({done:!1},e,r)}}};if(P&&(Gc=(zc=function(e){Pc(this,Gc),Ac(e),Nc(Rc,this);var t=Hc(this);try{e(tl(nl,t),tl(rl,t))}catch(e){rl(t,e)}}).prototype,(Rc=function(e){Kc(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new jc,rejection:!1,state:0,value:void 0})}).prototype=c(Gc,"then",function(e,t){var r=Hc(this),n=Xc(Uc(this,zc));return r.parent=!0,n.ok=!kc(e)||e,n.fail=kc(t)&&t,n.domain=Sc?$c.domain:void 0,0==r.state?r.reactions.add(n):Mc(function(){_c(n,r)}),n.promise}),Ic=function(){var e=new Rc,t=Hc(e);this.promise=e,this.resolve=tl(nl,t),this.reject=tl(rl,t)},s.f=Xc=function(e){return e===zc||void 0===e?new Ic:Yc(e)},kc(S)&&C!==Object.prototype)){Oc=C.then,Vc||c(C,"then",function(e,t){var r=this;return new zc(function(e,t){Nc(Oc,r,e,t)}).then(e,t)},{unsafe:!0});try{delete C.constructor}catch(ae){}x&&x(C,Gc)}A({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:zc}),N(zc,"Promise",!1),p("Promise");var ol=E("iterator"),il=!1;try{var sl=0,al={next:function(){return{done:!!sl++}},return:function(){il=!0}};al[ol]=function(){return this},Array.from(al,function(){throw 2})}catch(ae){}function ul(e,t){if(!t&&!il)return!1;var r=!1;try{var n={};n[ol]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function cl(e,t){return Ol(e),Sl(t)&&t.constructor===e?t:((0,(e=Cl.f(e)).resolve)(t),e.promise)}function ll(o){return function(e,t){var r,e=$l(Xl(e)),t=ql(t),n=e.length;return t<0||n<=t?o?"":void 0:(r=Wl(e,t))<55296||56319<r||t+1===n||(n=Wl(e,t+1))<56320||57343<n?o?Yl(e,t):r:o?Jl(e,t,t+2):n-56320+(r-55296<<10)+65536}}function fl(e,t){if(e){if(e[af]!==cf)try{sf(e,af,cf)}catch(t){e[af]=cf}if(e[uf]||sf(e,uf,t),nf[t])for(var r in of)if(e[r]!==of[r])try{sf(e,r,of[r])}catch(t){e[r]=of[r]}}}var pl,dl=pc,s=_.CONSTRUCTOR||!ul(function(e){dl.all(e).then(void 0,function(){})}),hl=o,vl=Rr,yl=f,gl=Qu,ml=as,S=(O({target:"Promise",stat:!0,forced:s},{all:function(e){var a=this,t=yl.f(a),u=t.resolve,c=t.reject,r=gl(function(){var n=vl(a.resolve),o=[],i=0,s=1;ml(e,function(e){var t=i++,r=!1;s++,hl(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}}),O),Vc=pc,c=Tr,x=m,C=co,A=Vc&&Vc.prototype,wl=(S({target:"Promise",proto:!0,forced:_.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),x(Vc)&&(P=c("Promise").prototype.catch,A.catch!==P&&C(A,"catch",P,{unsafe:!0})),o),El=Rr,bl=f,Tl=Qu,_l=as,Rl=(O({target:"Promise",stat:!0,forced:s},{race:function(e){var r=this,n=bl.f(r),o=n.reject,t=Tl(function(){var t=El(r.resolve);_l(e,function(e){wl(t,r,e).then(n.resolve,o)})});return t.error&&o(t.value),n.promise}}),o),Il=f,Ol=(O({target:"Promise",stat:!0,forced:_.CONSTRUCTOR},{reject:function(e){var t=Il.f(this);return Rl(t.reject,void 0,e),t.promise}}),Ar),Sl=br,Cl=f,N=O,p=_.CONSTRUCTOR,Nl=cl,Al=(Tr("Promise"),N({target:"Promise",stat:!0,forced:p},{resolve:function(e){return Nl(this,e)}}),o),kl=Rr,xl=f,Pl=Qu,Ul=as,Dl=(O({target:"Promise",stat:!0},{allSettled:function(e){var a=this,t=xl.f(a),u=t.resolve,r=t.reject,n=Pl(function(){var n=kl(a.resolve),o=[],i=0,s=1;Ul(e,function(e){var t=i++,r=!1;s++,Al(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),Ml=Rr,Ll=Tr,jl=f,Fl=Qu,Vl=as,al=(O({target:"Promise",stat:!0},{any:function(e){var u=this,c=Ll("AggregateError"),t=jl.f(u),l=t.resolve,f=t.reject,r=Fl(function(){var n=Ml(u.resolve),o=[],i=0,s=1,a=!1;Vl(e,function(e){var t=i++,r=!1;s++,Dl(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}}),O),S=pc,x=g,Hl=Tr,Kl=m,zl=Iu,Gl=cl,Vc=co,Bl=S&&S.prototype,C=(al({target:"Promise",proto:!0,real:!0,forced:!!S&&x(function(){Bl.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=zl(this,Hl("Promise")),e=Kl(t);return this.then(e?function(e){return Gl(r,t()).then(function(){return e})}:t,e?function(e){return Gl(r,t()).then(function(){throw e})}:t)}}),Kl(S)&&(c=Hl("Promise").prototype.finally,Bl.finally!==c&&Vc(Bl,"finally",c,{unsafe:!0})),e),ql=lo,$l=us,Xl=wr,Yl=C("".charAt),Wl=C("".charCodeAt),Jl=C("".slice),Zl=(ll(!1),ll(!0)),Ql=us,A=b,P=ka,ef=A.set,tf=A.getterFor("String Iterator"),s=(P(String,"String",function(e){ef(this,{type:"String Iterator",string:Ql(e),index:0})},function(){var e=tf(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})}),h),_=(s.Promise,Nr("span").classList),N=_&&_.constructor&&_.constructor.prototype,p=N===Object.prototype?void 0:N,rf=h,nf={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},pc=p,of=xa,sf=_n,al=E,af=al("iterator"),uf=al("toStringTag"),cf=of.values;for(pl in nf)fl(rf[pl]&&rf[pl].prototype,pl);fl(pc,"DOMTokenList");function lf(e,t,r){(t=Df(t))in e?Mf.f(e,t,Lf(0,r)):e[t]=r}function ff(e){if(9007199254740991<e)throw tp("Maximum allowed index exceeded");return e}function pf(e,t){return rp(e=e)&&(r=e.constructor,(np(r)&&(r===sp||rp(r.prototype))||op(r)&&null===(r=r[ip]))&&(r=void 0)),new(void 0===r?sp:r)(0===t?0:t);var r}function df(t){return 51<=up||!ap(function(){var e=[];return(e.constructor={})[cp]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function hf(e,t){if(!delete e[t])throw wp("Cannot delete property "+mp(t)+" of "+mp(e))}function vf(p){var d=1==p,h=2==p,v=3==p,y=4==p,g=6==p,m=7==p,w=5==p||g;return function(e,t,r,n){for(var o,i,s=Sp(e),a=Op(s),u=Ip(t,r),c=Cp(a),l=0,t=n||Np,f=d?t(e,c):h||m?t(e,0):void 0;l<c;l++)if((w||l in a)&&(i=u(o=a[l],l,s),p))if(d)f[l]=i;else if(i)switch(p){case 3:return!0;case 5:return o;case 6:return l;case 2:Ap(f,o)}else switch(p){case 4:return!1;case 7:Ap(f,o)}return g?-1:v||y?y:f}}function yf(e,t){var r=[][e];return!!r&&kp(function(){r.call(null,t||function(){return 1},1)})}function gf(u){var c=1==u;return function(e,t,r){for(var n,o=zp(e),i=Kp(o),s=Hp(t,r),a=Gp(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 mf(e,t,r,n,o,i,s,a){for(var u,c,l=o,f=0,p=!!s&&Wp(s,a);f<n;)f in r&&(u=p?p(r[f],f,t):r[f],0<i&&$p(u)?(c=Xp(u),l=mf(e,t,u,c,l,i-1)-1):(Yp(l+1),e[l]=u),l++),f++;return l}function wf(c){return function(e,t,r,n){Id(t);var o=Od(e),i=Sd(o),s=Cd(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 Nd("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 Ef(e,t,r){for(var n=$d(e),o=qd(t,n),i=qd(void 0===r?n:r,n),s=Yd(Wd(i-o,0)),a=0;o<i;o++,a++)Xd(s,a,e[o]);return s.length=a,s}function bf(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=bf(Jd(e,0,n),t),p=bf(Jd(e,n),t),d=t,h=f.length,v=p.length,y=0,g=0;y<h||g<v;)l[y+g]=y<h&&g<v?d(f[y],p[g])<=0?f[y++]:p[g++]:y<h?f[y++]:p[g++];return l}function Tf(e){Vh(e,qh,{value:{objectID:"O"+$h++,weakData:{}}})}function _f(e,t,r){for(var n in t)nv(e,n,t[n],r);return e}var Rf,If,Of,Sf,Cf,Nf,Af,kf=f,xf=Qu,Pf=(O({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=kf.f(this),e=xf(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),Ar),Uf=is,Df=Cr,Mf=R,Lf=gr,jf=ts,Ff=o,Vf=w,Hf=rs,Kf=ma,zf=I,Gf=lf,Bf=os,qf=ns,$f=Array,Xf=(O({target:"Array",stat:!0,forced:!ul(function(e){Array.from(e)})},{from:function(e){var t=Vf(e),e=Kf(this),r=arguments.length,n=1<r?arguments[1]:void 0,o=void 0!==n;o&&(n=jf(n,2<r?arguments[2]:void 0));var i,s,a,u,c,l,r=qf(t),f=0;if(!r||this===$f&&Hf(r))for(i=zf(t),s=e?new this(i):$f(i);f<i;f++)l=o?n(t[f],f):t[f],Gf(s,f,l);else for(c=(u=Bf(t,r)).next,s=e?new this:[];!(a=Ff(c,u)).done;f++)l=o?function(e,t,r,n){try{return n?t(Pf(r)[0],r[1]):t(r)}catch(t){Uf(e,"throw",t)}}(u,n,[a.value,f],!0):a.value,Gf(s,f,l);return s.length=f,s}}),mr),x=Array.isArray||function(e){return"Array"==Xf(e)},Yf=(O({target:"Array",stat:!0},{isArray:x}),ma),Wf=lf,Jf=Array,Zf=(O({target:"Array",stat:!0,forced:g(function(){function e(){}return!(Jf.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(Yf(this)?this:Jf)(t);e<t;)Wf(r,e,arguments[e++]);return r.length=t,r}}),w),Qf=I,ep=lo,S=k,tp=(O({target:"Array",proto:!0},{at:function(e){var t=Zf(this),r=Qf(t),e=ep(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),S("at"),TypeError),rp=x,np=ma,op=br,ip=E("species"),sp=Array,ap=g,up=qr,cp=E("species"),Vc=O,c=g,lp=x,fp=br,pp=w,dp=I,hp=ff,vp=lf,yp=pf,C=df,A=qr,gp=E("isConcatSpreadable"),P=51<=A||!c(function(){var e=[];return e[gp]=!1,e.concat()[0]!==e}),_=C("concat"),mp=(Vc({target:"Array",proto:!0,arity:1,forced:!P||!_},{concat:function(e){for(var t,r,n,o=pp(this),i=yp(o,0),s=0,a=-1,u=arguments.length;a<u;a++)if(function(e){if(!fp(e))return!1;var t=e[gp];return void 0!==t?!!t:lp(e)}(n=-1===a?o:arguments[a]))for(r=dp(n),hp(s+r),t=0;t<r;t++,s++)t in n&&vp(i,s,n[t]);else hp(s+1),vp(i,s++,n);return i.length=s,i}}),_r),wp=TypeError,Ep=w,bp=fo,Tp=I,_p=hf,Rp=Math.min,N=k,Ip=(O({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=Ep(this),n=Tp(r),o=bp(e,n),i=bp(t,n),e=2<arguments.length?arguments[2]:void 0,s=Rp((void 0===e?n:bp(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]:_p(r,o),o+=a,i+=a;return r}}),N("copyWithin"),ts),Op=kr,Sp=w,Cp=I,Np=pf,Ap=e([].push),p={forEach:vf(0),map:vf(1),filter:vf(2),some:vf(3),every:vf(4),find:vf(5),findIndex:vf(6),filterReject:vf(7)},kp=g,xp=p.every,Pp=(O({target:"Array",proto:!0,forced:!yf("every")},{every:function(e){return xp(this,e,1<arguments.length?arguments[1]:void 0)}}),w),Up=fo,Dp=I,xa=k,Mp=(O({target:"Array",proto:!0},{fill:function(e){for(var t=Pp(this),r=Dp(t),n=arguments.length,o=Up(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,i=void 0===n?r:Up(n,r);o<i;)t[o++]=e;return t}}),xa("fill"),p.filter),_n=(O({target:"Array",proto:!0,forced:!df("filter")},{filter:function(e){return Mp(this,e,1<arguments.length?arguments[1]:void 0)}}),O),Lp=p.find,al=k,jp=!0,pc=("find"in[]&&Array(1).find(function(){jp=!1}),_n({target:"Array",proto:!0,forced:jp},{find:function(e){return Lp(this,e,1<arguments.length?arguments[1]:void 0)}}),al("find"),O),Fp=p.findIndex,f=k,Vp=!0,Hp=("findIndex"in[]&&Array(1).findIndex(function(){Vp=!1}),pc({target:"Array",proto:!0,forced:Vp},{findIndex:function(e){return Fp(this,e,1<arguments.length?arguments[1]:void 0)}}),f("findIndex"),ts),Kp=kr,zp=w,Gp=I,S={findLast:gf(0),findLastIndex:gf(1)},Bp=S.findLast,A=k,qp=(O({target:"Array",proto:!0},{findLast:function(e){return Bp(this,e,1<arguments.length?arguments[1]:void 0)}}),A("findLast"),S.findLastIndex),c=k,$p=(O({target:"Array",proto:!0},{findLastIndex:function(e){return qp(this,e,1<arguments.length?arguments[1]:void 0)}}),c("findLastIndex"),x),Xp=I,Yp=ff,Wp=ts,C=mf,Jp=C,Zp=w,Qp=I,ed=lo,td=pf,rd=(O({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Zp(this),r=Qp(t),n=td(t,0);return n.length=Jp(n,t,t,r,0,void 0===e?1:ed(e)),n}}),C),nd=Rr,od=w,id=I,sd=pf,ad=(O({target:"Array",proto:!0},{flatMap:function(e){var t,r=od(this),n=id(r);return nd(e),(t=sd(r,0)).length=rd(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),p.forEach),Vc=yf("forEach")?[].forEach:function(e){return ad(this,e,1<arguments.length?arguments[1]:void 0)},ud=(O({target:"Array",proto:!0,forced:[].forEach!=Vc},{forEach:Vc}),ko.includes),P=k,_=(O({target:"Array",proto:!0,forced:g(function(){return!Array(1).includes()})},{includes:function(e){return ud(this,e,1<arguments.length?arguments[1]:void 0)}}),P("includes"),O),cd=ko.indexOf,N=yf,ld=e([].indexOf),fd=!!ld&&1/ld([1],1,-0)<0,xa=N("indexOf"),_n=(_({target:"Array",proto:!0,forced:fd||!xa},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return fd?ld(this,e,t)||0:cd(this,e,t)}}),O),al=kr,pd=Er,pc=yf,dd=e([].join),f=al!=Object,A=pc("join",","),hd=(_n({target:"Array",proto:!0,forced:f||!A},{join:function(e){return dd(pd(this),void 0===e?",":e)}}),va),vd=Er,yd=lo,gd=I,S=yf,md=Math.min,wd=[].lastIndexOf,Ed=!!wd&&1/[1].lastIndexOf(1,-0)<0,c=S("lastIndexOf"),C=Ed||!c?function(e){if(Ed)return hd(wd,this,arguments)||0;var t=vd(this),r=gd(t),n=r-1;for((n=1<arguments.length?md(n,yd(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:wd,bd=(O({target:"Array",proto:!0,forced:C!==[].lastIndexOf},{lastIndexOf:C}),p.map),Vc=(O({target:"Array",proto:!0,forced:!df("map")},{map:function(e){return bd(this,e,1<arguments.length?arguments[1]:void 0)}}),O),Td=w,_d=I,Rd=ff,P=g(function(){return 4294967297!==[].push.call({length:4294967296},1)}),ko=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),Id=(Vc({target:"Array",proto:!0,arity:1,forced:P||ko},{push:function(e){var t=Td(this),r=_d(t),n=arguments.length;Rd(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return t.length=r}}),Rr),Od=w,Sd=kr,Cd=I,Nd=TypeError,N={left:wf(!1),right:wf(!0)},Ad=N.left,_=qr,xa=fa,kd=(O({target:"Array",proto:!0,forced:!yf("reduce")||!xa&&79<_&&_<83},{reduce:function(e){var t=arguments.length;return Ad(this,e,t,1<t?arguments[1]:void 0)}}),N.right),al=qr,pc=fa,_n=(O({target:"Array",proto:!0,forced:!yf("reduceRight")||!pc&&79<al&&al<83},{reduceRight:function(e){return kd(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),O),xd=x,Pd=e([].reverse),f=[1,2],A=(_n({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){return xd(this)&&(this.length=this.length),Pd(this)}}),O),Ud=x,Dd=ma,Md=br,Ld=fo,jd=I,Fd=Er,Vd=lf,va=E,Hd=mn,S=df("slice"),Kd=va("species"),zd=Array,Gd=Math.max,Bd=(A({target:"Array",proto:!0,forced:!S},{slice:function(e,t){var r,n,o,i=Fd(this),s=jd(i),a=Ld(e,s),u=Ld(void 0===t?s:t,s);if(Ud(i)&&(r=i.constructor,(r=Dd(r)&&(r===zd||Ud(r.prototype))||Md(r)&&null===(r=r[Kd])?void 0:r)===zd||void 0===r))return Hd(i,a,u);for(n=new(void 0===r?zd:r)(Gd(u-a,0)),o=0;a<u;a++,o++)a in i&&Vd(n,o,i[a]);return n.length=o,n}}),p.some),qd=(O({target:"Array",proto:!0,forced:!yf("some")},{some:function(e){return Bd(this,e,1<arguments.length?arguments[1]:void 0)}}),fo),$d=I,Xd=lf,Yd=Array,Wd=Math.max,Jd=Ef,Zd=Math.floor,c=bf,C=Br.match(/firefox\/(\d+)/i),Vc=!!C&&+C[1],P=/MSIE|Trident/.test(Br),ko=Br.match(/AppleWebKit\/(\d+)\./),xa=!!ko&&+ko[1],_=O,N=e,Qd=Rr,eh=w,th=I,rh=hf,nh=us,fa=g,oh=c,pc=yf,ih=Vc,sh=P,ah=qr,uh=xa,ch=[],lh=N(ch.sort),fh=N(ch.push),al=fa(function(){ch.sort(void 0)}),_n=fa(function(){ch.sort(null)}),f=pc("sort"),ph=!fa(function(){if(ah)return ah<70;if(!(ih&&3<ih)){if(sh)return!0;if(uh)return uh<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++)ch.push({k:e+r,v:t})}for(ch.sort(function(e,t){return t.v-e.v}),r=0;r<ch.length;r++)e=ch[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),mn=(_({target:"Array",proto:!0,forced:al||!_n||!f||!ph},{sort:function(e){void 0!==e&&Qd(e);var t=eh(this);if(ph)return void 0===e?lh(t):lh(t,e);for(var r,n,o=[],i=th(t),s=0;s<i;s++)s in t&&fh(o,t[s]);for(oh(o,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:nh(e)>nh(t)?1:-1})),r=o.length,s=0;s<r;)t[s]=o[s++];for(;s<i;)rh(t,s++);return t}}),iu("Array"),O),dh=w,hh=fo,vh=lo,yh=I,gh=ff,mh=pf,wh=lf,Eh=hf,va=df("splice"),bh=Math.max,Th=Math.min,A=(mn({target:"Array",proto:!0,forced:!va},{splice:function(e,t){var r,n,o,i,s,a,u=dh(this),c=yh(u),l=hh(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-l):(r=e-2,Th(bh(vh(t),0),c-l)),gh(c+r-n),o=mh(u,n),i=0;i<n;i++)(s=l+i)in u&&wh(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]:Eh(u,a);for(i=c;c-n+r<i;i--)Eh(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]:Eh(u,a);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return u.length=c-n+r,o}}),k("flat"),k("flatMap"),O),_h=w,Rh=I,Ih=hf,Oh=ff,S=1!==[].unshift(0),C=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),Br=(A({target:"Array",proto:!0,arity:1,forced:S||C},{unshift:function(e){var t=_h(this),r=Rh(t),n=arguments.length;if(n){Oh(r+n);for(var o=r;o--;){var i=o+n;o in t?t[i]=t[o]:Ih(t,i)}for(var s=0;s<n;s++)t[s]=arguments[s]}return t.length=r+n}}),s.Array,{exports:{}}),ko={},Sh=mr,Ch=Er,Nh=T.f,Ah=Ef,kh="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=(ko.f=function(e){if(!kh||"Window"!=Sh(e))return Nh(Ch(e));var t=e;try{return Nh(t)}catch(t){return Ah(kh)}},g(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),Vc=g,xh=br,Ph=mr,Uh=c,Dh=Object.isExtensible,P=Vc(function(){Dh(1)})||Uh?function(e){return!!xh(e)&&(!Uh||"ArrayBuffer"!=Ph(e))&&(!Dh||Dh(e))}:Dh,qr=!g(function(){return Object.isExtensible(Object.preventExtensions({}))}),Mh=O,Lh=e,xa=Io,jh=br,Fh=gn,Vh=R.f,Hh=T,Kh=ko,zh=P,Gh=qr,Bh=!1,qh=Sr("meta"),$h=0,Xh=Br.exports={enable:function(){Xh.enable=function(){},Bh=!0;var o=Hh.f,i=Lh([].splice),e={};e[qh]=1,o(e).length&&(Hh.f=function(e){for(var t=o(e),r=0,n=t.length;r<n;r++)if(t[r]===qh){i(t,r,1);break}return t},Mh({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Kh.f}))},fastKey:function(e,t){if(!jh(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Fh(e,qh)){if(!zh(e))return"F";if(!t)return"E";Tf(e)}return e[qh].objectID},getWeakData:function(e,t){if(!Fh(e,qh)){if(!zh(e))return!0;if(!t)return!1;Tf(e)}return e[qh].weakData},onFreeze:function(e){return Gh&&Bh&&zh(e)&&!Fh(e,qh)&&Tf(e),e}},Yh=(xa[qh]=!0,m),Wh=br,Jh=Bi,N=O,pc=h,Zh=e,fa=Po,Qh=co,_=Br.exports,ev=as,tv=su,al=m,rv=br,_n=g,f=ul,mn=Na,nv=co,ov=R.f,iv=qi,sv=_f,av=ts,uv=su,cv=as,lv=ka,fv=iu,pv=r,dv=Br.exports.fastKey,hv=b.set,vv=b.getterFor;function yv(e){var r=Zh(Nf[e]);Qh(Nf,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(Of&&!rv(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return Of&&!rv(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(Of&&!rv(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}va=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=dv(t,!0),key:t,value:r,previous:t=o.last,next:void 0,removed:!1},o.first||(o.first=i),t&&(t.next=i),pv?o.size++:e.size++,"F"!==n&&(o.index[n]=i)),e}function s(e,t){var r,e=u(e),n=dv(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){uv(e,a),hv(e,{type:r,index:iv(null),first:void 0,last:void 0,size:0}),pv||(e.size=0),null!=t&&cv(t,e[o],{that:e,AS_ENTRIES:n})}),a=e.prototype,u=vv(r);return sv(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,pv?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),pv?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=av(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)}}),sv(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)}}),pv&&ov(a,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",o=vv(t),i=vv(n);lv(e,t,function(e,t){hv(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),fv(t)}},If=-1!==(S="Map").indexOf("Map"),Of=-1!==S.indexOf("Weak"),Sf=If?"set":"add",Cf=pc.Map,Nf=Cf&&Cf.prototype,C={},fa(S,!al(Af=Cf)||!(Of||Nf.forEach&&!_n(function(){(new Cf).entries().next()})))?(Af=A.getConstructor(va,S,If,Sf),_.enable()):fa(S,!0)&&(s=(Rf=new Af)[Sf](Of?{}:-0,1)!=Rf,c=_n(function(){Rf.has(1)}),Vc=f(function(e){new Cf(e)}),Io=!Of&&_n(function(){for(var e=new Cf,t=5;t--;)e[Sf](t,t);return!e.has(-0)}),Vc||(((Af=va(function(e,t){tv(e,Nf);r=new Cf,e=e,n=Af,Jh&&Yh(e=e.constructor)&&e!==n&&Wh(e=e.prototype)&&e!==n.prototype&&Jh(r,e);var r,n=r;return null!=t&&ev(t,n[Sf],{that:n,AS_ENTRIES:If}),n})).prototype=Nf).constructor=Af),(c||Io)&&(yv("delete"),yv("has"),If&&yv("get")),(Io||s)&&yv(Sf),Of&&Nf.clear&&delete Nf.clear),C.Map=Af,N({global:!0,constructor:!0,forced:Af!=Cf},C),mn(Af,S),Of||A.setStrong(Af,S,If);function gv(e,t){for(var r=0,n=bv(t),o=new e(n);r<n;)o[r]=t[r++];return o}function mv(e,t,r,n){for(var o,i,s,a=Rv(e),u=_v(a),c=Tv(t,r),l=Sv(null),f=Ov(u),p=0;p<f;p++)s=u[p],(i=Iv(c(s,p,a)))in l?Av(l[i],s):l[i]=[s];if(n&&(o=n(a))!==Nv)for(i in l)l[i]=Cv(o,l[i]);return l}function wv(e){for(var t,r,n=Dv(this),o=Uv(n),i=Pv(e,1<arguments.length?arguments[1]:void 0),s=new Lv,a=Mv(o),u=0;u<a;u++)t=i(r=o[u],u,n),Fv(s,t)?Hv(jv(s,t),r):Vv(s,t,[r]);return s}function Ev(e){return Bv[e].prototype}var bv=I,Tv=ts,_v=kr,Rv=w,Iv=Cr,Ov=I,Sv=qi,Cv=gv,Nv=Array,Av=e([].push),kv=mv,gn=k,xv=(O({target:"Array",proto:!0},{group:function(e){return kv(this,e,1<arguments.length?arguments[1]:void 0)}}),gn("group"),mv),T=k,Pv=(O({target:"Array",proto:!0,forced:!yf("groupBy")},{groupBy:function(e){return xv(this,e,1<arguments.length?arguments[1]:void 0)}}),T("groupBy"),ts),ko=e,Uv=kr,Dv=w,Mv=I,Lv=Tr("Map"),P=Lv.prototype,jv=ko(P.get),Fv=ko(P.has),Vv=ko(P.set),Hv=ko([].push),qr=k,xa=wv,Bi=(O({target:"Array",proto:!0,name:"groupToMap",forced:!yf("groupByToMap")},{groupByToMap:xa}),qr("groupByToMap"),k),Kv=(O({target:"Array",proto:!0},{groupToMap:wv}),Bi("groupToMap"),I),zv=Er,Po=k,Gv=Array,Bv=(O({target:"Array",proto:!0},{toReversed:function(){for(var e=zv(this),t=Gv,r=Kv(e),n=new t(r),o=0;o<r;o++)n[o]=e[r-o-1];return n}}),Po("toReversed"),h),Br=O,qv=Rr,$v=Er,Xv=gv,pc=k,Yv=Array,Wv=e(Ev("Array").sort),fa=(Br({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&qv(e);var t=$v(this),t=Xv(Yv,t);return Wv(t,e)}}),pc("toSorted"),O),f=k,Jv=ff,Zv=I,Qv=fo,ey=Er,ty=lo,ry=Array,ny=Math.max,oy=Math.min,iy=(fa({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,o,i,s=ey(this),a=Zv(s),u=Qv(e,a),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,a-u):(r=e-2,oy(ny(ty(t),0),a-u)),o=Jv(a+r-n),i=ry(o);c<u;c++)i[c]=s[c];for(;c<u+r;c++)i[c]=arguments[c-u+2];for(;c<o;c++)i[c]=s[c+n-r];return i}}),f("toSpliced"),I),sy=lo,ay=RangeError,uy=Er,cy=Array;O({target:"Array",proto:!0},{with:function(e,t){var r=uy(this),n=cy,o=t,i=iy(r),s=(e=sy(e))<0?i+e:e;if(i<=s||s<0)throw ay("Incorrect index");for(var a=new n(i),u=0;u<i;u++)a[u]=u===s?o:r[u];return a}});_n=h,Vc=fn,va=m,c=so,Io=co,s=E("asyncIterator"),N=_n.AsyncIterator,C=Vc.AsyncIteratorPrototype;if(C)kg=C;else if(va(N))kg=N.prototype;else if(Vc.USE_FUNCTION_CONSTRUCTOR||_n.USE_FUNCTION_CONSTRUCTOR)try{Ag=c(c(c(Function("return async function*(){}()")()))),c(Ag)===Object.prototype&&(kg=Ag)}catch(ae){}va((kg=kg||{})[s])||Io(kg,s,function(){return this});function ly(e,t,r){var n=e.done;wy.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function fy(e){Ey(this,{type:"AsyncFromSyncIterator",iterator:gy(e),next:e.next})}function py(e,t,r,n){try{var o=xy(e,"return");if(o)return ky("Promise").resolve(Ay(o,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function dy(e){var p=0==e,d=1==e,h=2==e,v=3==e;return function(e,s,a){var e={iterator:e,next:Cy(Ny(e).next)},u=Ly("Promise"),c=e.iterator,t=e.next,l=0,f=void 0!==s;return!f&&p||Uy(s),new u(function(r,n){var o=function(e){py(c,n,e,n)},i=function(){try{if(p&&f)try{My(l)}catch(e){o(e)}u.resolve(Dy(Py(t,c))).then(function(e){try{if(Dy(e).done)p?(a.length=l,r(a)):r(!v&&(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():py(c,r,!1,n);else if(p)try{a[l++]=e,i()}catch(e){o(e)}else e?py(c,r,v||t,n):i()},o):(a[l++]=t,i())}catch(e){o(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};i()})}}function hy(e,t){if(!Zy||!Jy(e)||!Zy(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 vy(e,t,r){r.get&&Qy(r.get,t,{getter:!0}),r.set&&Qy(r.set,t,{setter:!0}),eg.f(e,t,r)}var yy=o,gy=Ar,mn=qi,my=Ir,A=_f,S=b,gn=kg,wy=Tr("Promise"),Ey=S.set,by=S.getterFor("AsyncFromSyncIterator"),T=(fy.prototype=A(mn(gn),{next:function(){var n=by(this);return new wy(function(e,t){var r=gy(yy(n.next,n.iterator));ly(r,e,t)})},return:function(){var n=by(this).iterator;return new wy(function(e,t){var r=my(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=gy(yy(r,n));ly(r,e,t)})}}),fy),Ty=o,_y=T,Ry=Ar,Iy=os,Oy=Ir,Sy=E("asyncIterator"),Cy=Rr,Ny=Ar,Ay=o,ky=Tr,xy=Ir,Py=o,Uy=Rr,Dy=Ar,My=ff,Ly=Tr,kr={toArray:dy(0),forEach:dy(1),every:dy(2),some:dy(3),find:dy(4)},jy=ts,Fy=w,Vy=ma,Hy=os,Ky=ns,zy=Ir,P=Ev,Gy=Tr,By=T,qy=kr.toArray,$y=E("asyncIterator"),Xy=P("Array").values,Yy=(O({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(Gy("Promise"))(function(e){var t=Fy(i),r=(void 0!==a&&(a=jy(a,u)),zy(t,$y)),n=r?void 0:Ky(t)||Xy,o=Vy(s)?new s:[],r=r?function(e,t){t=arguments.length<2?Oy(e,Sy):t;return t?Ry(Ty(t,e)):new _y(Iy(e))}(t,r):new By(Hy(t,n));e(qy(r,a,o))})}}),p.filterReject),ko=k,Wy=(O({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return Yy(this,e,1<arguments.length?arguments[1]:void 0)}}),ko("filterOut"),p.filterReject),xa=k,qr=(O({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return Wy(this,e,1<arguments.length?arguments[1]:void 0)}}),xa("filterReject"),O),Jy=x,Zy=Object.isFrozen,Qy=(qr({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!hy(e,!0))return!1;var t=e.raw;return t.length===e.length&&hy(t,!1)}}),Zr.exports),eg=R,Bi=k,tg=w,rg=I,Po=(r&&(vy(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=tg(this),t=rg(e);return 0==t?void 0:e[t-1]},set:function(e){var t=tg(this),r=rg(t);return t[0==r?0:r-1]=e}}),Bi("lastItem")),k),ng=w,og=I,Br=(r&&(vy(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=ng(this),e=og(e);return 0==e?0:e-1}}),Po("lastIndex")),e),ig=Rr,sg=I,ag=w,ug=pf,cg=Tr("Map"),pc=cg.prototype,lg=Br(pc.forEach),fg=Br(pc.has),pg=Br(pc.set),dg=Br([].push),fa=k;O({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=ag(this),o=sg(n),i=ug(n,0),s=new cg,a=null!=e?ig(e):function(e){return e},u=0;u<o;u++)r=a(t=n[u]),fg(s,r)||pg(s,r,t);return lg(s,function(e){dg(i,e)}),i}}),fa("uniqueBy");function hg(e,t,r,n){this.valueId=e,this.value=t,this.reason=r,this.properties=n}e0.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},e0.prototype.refresh=function(){this.stop(),this.start()},e0.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)};var vg,yg=e0,gg=(Qm.prototype.start=function(){this.started=!0},Qm.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},Qm.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},Qm.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},Qm.prototype.close=function(){this.stop()},Qm),mg=(Zm.prototype.isClientError=function(e){return!!(e&&400<=e.statusCode&&e.statusCode<500)},Zm.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]}})})})},Zm.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]})})})},Zm.prototype.process=function(e){this.queue.enqueue(e)},Zm.prototype.start=function(){return le(this,void 0,void 0,function(){return fe(this,function(e){return this.queue.start(),[2]})})},Zm.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},Zm.prototype.flush=function(){this.queue.flush()},Zm.prototype.close=function(){this.stop()},Zm),wg=(Jm.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]})},Jm),Eg=(Wm.isSessionEvent=function(e){return!!St.isTrack(e)&&(e.event.key===Wm.SESSION_START_EVENT_NAME||e.event.key===Wm.SESSION_END_EVENT_NAME)},Wm.prototype.onSessionStarted=function(e,t,r){this.track(Wm.SESSION_START_EVENT_NAME,e,t,r)},Wm.prototype.onSessionEnded=function(e,t,r){this.track(Wm.SESSION_END_EVENT_NAME,e,t,r)},Wm.prototype.track=function(e,t,r,n){e={key:e,properties:{sessionId:t}},r=this.hackleUserResolver.resolve(r),r=this.decorateSession(r,t);this.hackleInternalClient._track(e,r,n)},Wm.prototype.decorateSession=function(e,t){t=(new Be).add(Ge.SESSION,t).addIdentifiers(e.identifiers).build();return d(d({},e),{identifiers:t})},Wm.SESSION_START_EVENT_NAME="$session_start",Wm.SESSION_END_EVENT_NAME="$session_end",Wm),bg=(Ym.prototype.process=function(e){var t;Eg.isSessionEvent(e)||this.sessionManager.startNewSessionIfNeeded(this.userManager.currentUser,e.timestamp),this.exposureEventDedupDeterminer.isDedupTarget(e)||(e=e,t=null===(t=this.sessionManager).currentSessionId||e.user.identifiers[Ge.SESSION]?e:e.copyWithUser(d(d({},e.user),{identifiers:d(d({},e.user.identifiers),((e={})[Ge.SESSION]=t.sessionId,e))})),this.delegate.process(t))},Ym.prototype.close=function(){this.delegate.close()},Ym.prototype.flush=function(){this.delegate.flush()},Ym.prototype.start=function(){return this.delegate.start()},Ym),Tg=(Xm.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!St.isExposure(e))return!1;wg.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)},Xm),_g=($m.toEvent=function(e){var t;return{key:$m.EVENT_KEY,properties:{level:$m.LEVEL_ERROR,type:e.name,message:null!=(t=e.message)?t:"",$stacktrace:$m._stacktrace(e)}}},$m._stacktrace=function(e){return a.isNullOrUndefined(e.stack)?"":e.stack.split("\n").slice(0,$m.STACK_TRACK_LIMIT).join("\n")},$m.EVENT_KEY="$trace",$m.LEVEL_ERROR="error",$m.STACK_TRACK_LIMIT=30,$m),Rg=pe.log,Ig=(qm.prototype._experiment=function(e,t,r){if(!e)return Rg.error("experimentKey must not be empty"),Fe.of(r,u.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return Rg.warn("SDK not ready."),Fe.of(r,u.SDK_NOT_READY);e=n.getExperimentOrNull(e);if(!e)return Rg.warn("Experiment does not exist."),Fe.of(r,u.EXPERIMENT_NOT_FOUND);n=this.evaluator.evaluate(n,e,t,r),this.eventProcessor.process(St.exposure(e,t,n)),e=null!=(r=n.config)?r:new He;return Fe.of(n.variationKey,n.reason,e)},qm.prototype._featureFlag=function(e,t){if(!e)return Rg.error("featureKey must not be empty"),Ve.off(u.INVALID_INPUT);var r=this.workspaceFetcher.get();if(!r)return Rg.warn("SDK not ready."),Ve.off(u.SDK_NOT_READY);var e=r.getFeatureFlagOrNull(e);if(!e)return Rg.warn("FeatureFlag does not exist."),Ve.off(u.FEATURE_FLAG_NOT_FOUND);r=this.evaluator.evaluate(r,e,t,"A"),this.eventProcessor.process(St.exposure(e,t,r)),t=null!=(e=r.config)?e:new He;return"A"===r.variationKey?Ve.off(r.reason,t):Ve.on(r.reason,t)},qm.prototype._track=function(e,t,r){var n;void 0===r&&(r=(new Date).getTime()),e?"object"==typeof e?"object"!=typeof e||e.key&&"string"==typeof e.key?(n=(null==(n=this.workspaceFetcher.get())?void 0:n.getEventTypeOrNull(e.key))||new be(0,e.key),this.eventProcessor.process(St.track(n,e,t,r))):Rg.warn("Event key must be not null. or event key must be string type."):Rg.warn("Event must be event type."):Rg.warn("event must not be null.")},qm.prototype._trackException=function(e,t){this.errorDedupDeterminer.isDedupTarget(e)||(e=_g.toEvent(e),this._flush(),this._track(e,t),this._flush())},qm.prototype._flush=function(){this.eventProcessor.flush()},qm.prototype._remoteConfig=function(e,t,r,n){var o=this.workspaceFetcher.get();if(a.isNullOrUndefined(o))return Rg.warn("SDK not ready."),je.of(n,u.SDK_NOT_READY);e=o.getRemoteConfigParameterOrNull(e);if(a.isNullOrUndefined(e))return Rg.warn("Remote config parameter does not exist."),je.of(n,u.REMOTE_CONFIG_PARAMETER_NOT_FOUND);o=this.evaluator.remoteConfigEvaluate(o,e,t,r,n);return this.eventProcessor.process(St.remoteConfig(e,t,o)),je.of(o.value,o.reason)},qm.prototype._onReady=function(e,t){this._onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},qm.prototype._onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(Rg.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?Rg.debug("HackleClient onInitialized Success"):e.error instanceof Error?Rg.error("HackleClient onInitialized Failed. ".concat(e.error.message)):Rg.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},qm.prototype._close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},qm),Og=(Bm.prototype.isDedupTarget=function(e){return!!this._isSameError(e,this.previous)||(this.previous=e,!1)},Bm.prototype._isSameError=function(e,t){return!a.isNullOrUndefined(t)&&e.name===t.name&&e.message===t.message&&e.stack===t.stack},Bm),Sg=(Gm.of=function(e,t,r,n){t=t._getVariationByKeyOrNull(r);return a.isNotNullOrUndefined(t)?Gm.withVariation(e,t,n):new Gm(void 0,r,n,void 0)},Gm.withVariation=function(e,t,r){e=this.config(e,t);return new Gm(t.id,t.key,r,e)},Gm.config=function(e,t){if(!a.isNullOrUndefined(t.parameterConfigurationId))return a.requiredNotNullOrUndefined(e.getParameterConfigurationOrNull(t.parameterConfigurationId),function(){return"ParameterConfiguration[".concat(t.parameterConfigurationId,"]")})},Gm),Cg=(zm.prototype.evaluate=function(e,t,r,n){return this.evaluationFlowFactory.getFlow(t.type).evaluate(e,t,r,n)},zm.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 hg(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)},zm.prototype.getRemoteConfigEvaluationWithTypeCheck=function(e,t,r,n,o){return"UNKNOWN"===r||"NULL"!==r&&typeof n!=typeof e.rawValue?(o.returnValue=n,new hg(void 0,n,u.TYPE_MISMATCH,o)):(o.returnValue=e.rawValue,new hg(e.id,e.rawValue,t,o))},zm),Ng=(Km.prototype.matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n._matches(e,t,r)})},Km.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(e.key.type).matches(e,t,r)},Km),f=(Hm.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)},Hm.prototype._matches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},Hm),h=(Vm.prototype.booleanMatches=function(e,t){return e===t},Vm.prototype.numberMatches=function(e,t){return e===t},Vm.prototype.stringMatches=function(e,t){return e===t},Vm.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},Vm),fn=(Fm.prototype.booleanMatches=function(e,t){return!1},Fm.prototype.numberMatches=function(e,t){return!1},Fm.prototype.stringMatches=function(e,t){return e.includes(t)},Fm.prototype.versionMatches=function(e,t){return!1},Fm),so=(jm.prototype.booleanMatches=function(e,t){return!1},jm.prototype.numberMatches=function(e,t){return!1},jm.prototype.stringMatches=function(e,t){return e.startsWith(t)},jm.prototype.versionMatches=function(e,t){return!1},jm),C=(Lm.prototype.booleanMatches=function(e,t){return!1},Lm.prototype.numberMatches=function(e,t){return!1},Lm.prototype.stringMatches=function(e,t){return e.endsWith(t)},Lm.prototype.versionMatches=function(e,t){return!1},Lm),N=(Mm.prototype.booleanMatches=function(e,t){return!1},Mm.prototype.numberMatches=function(e,t){return t<e},Mm.prototype.stringMatches=function(e,t){return!1},Mm.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},Mm),Vc=(Dm.prototype.booleanMatches=function(e,t){return!1},Dm.prototype.numberMatches=function(e,t){return t<=e},Dm.prototype.stringMatches=function(e,t){return!1},Dm.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},Dm),_n=(Um.prototype.booleanMatches=function(e,t){return!1},Um.prototype.numberMatches=function(e,t){return e<t},Um.prototype.stringMatches=function(e,t){return!1},Um.prototype.versionMatches=function(e,t){return e.isLessThan(t)},Um),c=(Pm.prototype.booleanMatches=function(e,t){return!1},Pm.prototype.numberMatches=function(e,t){return e<=t},Pm.prototype.stringMatches=function(e,t){return!1},Pm.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},Pm),Ag=(xm.prototype.getMatcher=function(e){switch(e){case"IN":return xm.IN_MATCHER;case"CONTAINS":return xm.CONTAINS_MATCHER;case"STARTS_WITH":return xm.STARTS_WITH_MATCHER;case"ENDS_WITH":return xm.ENDS_WITH_MATCHER;case"GT":return xm.GT_MATCHER;case"GTE":return xm.GTE_MATCHER;case"LT":return xm.LT_MATCHER;case"LTE":return xm.LTE_MATCHER}},xm.IN_MATCHER=new h,xm.CONTAINS_MATCHER=new fn,xm.STARTS_WITH_MATCHER=new so,xm.ENDS_WITH_MATCHER=new C,xm.GT_MATCHER=new N,xm.GTE_MATCHER=new Vc,xm.LT_MATCHER=new _n,xm.LTE_MATCHER=new c,xm),va=(km.prototype.matches=function(e,t,r){return"string"==typeof t&&"string"==typeof r&&e.stringMatches(t,r)},km),Io=(Am.prototype.matches=function(e,t,r){return"number"==typeof t&&"number"==typeof r&&e.numberMatches(t,r)},Am),s=(Nm.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},Nm),qi=(Cm.prototype.matches=function(e,t,r){t=dt.tryParse(t),r=dt.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},Cm),b=(Sm.prototype.matches=function(e,t,r){return!1},Sm),kg=(Om.prototype.getMatcher=function(e){switch(e){case"STRING":case"JSON":return Om.STRING_MATCHER;case"NUMBER":return Om.NUMBER_MATCHER;case"BOOLEAN":return Om.BOOLEAN_MATCHER;case"VERSION":return Om.VERSION_MATCHER;case"NULL":case"UNKNOWN":return Om.NULL_MATCHER}},Om.STRING_MATCHER=new va,Om.NUMBER_MATCHER=new Io,Om.BOOLEAN_MATCHER=new s,Om.VERSION_MATCHER=new qi,Om.NULL_MATCHER=new b,Om),S=(Im.prototype.matches=function(e,t,r){r=this.userValueResolver.resolveOrNull(r,e.key);return!a.isNullOrUndefined(r)&&this.valueOperatorMatcher.matches(r,e.match)},Im),A=(Rm.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,"]"))}},Rm),mn=(_m.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}},_m.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,"]"))},_m),gn=(Tm.prototype.matches=function(e,t,r){var n=this;return e.targets.some(function(e){return n._matches(e,t,r)})},Tm.prototype._matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(e,t,r)})},Tm),xg=(bm.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return bm.USER_CONDITION_MATCHER;case"SEGMENT":return bm.SEGMENT_CONDITION_MATCHER}},bm.USER_CONDITION_MATCHER=new S(new A,new f(new kg,new Ag)),bm.SEGMENT_CONDITION_MATCHER=new mn(new gn(bm.USER_CONDITION_MATCHER)),bm),Pg=(Em.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)}},Em.prototype._resolveVariation=function(e,t){return t._getVariationByIdOrNull(e.variationId)},Em.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)}},Em),Ug={murmurhash3_x86_32:function(e,t,r,n){for(var o,i=-4&(n=void 0===n?e.length:n),s=t,a=0;a<i;a+=4)o=255&e.charCodeAt(a)|(255&e.charCodeAt(a+1))<<8|(255&e.charCodeAt(a+2))<<16|(255&e.charCodeAt(a+3))<<24,o=(131071&(o=this.mul32(o,3432918353)))<<15|o>>>17,s=5*((524287&(s^=o=this.mul32(o,461845907)))<<13|s>>>19)+3864292196|0;switch(o=0,n%4){case 3:o=(255&e.charCodeAt(2+i))<<16;case 2:o|=(255&e.charCodeAt(1+i))<<8;case 1:o|=255&e.charCodeAt(i),o=(131071&(o=this.mul32(o,3432918353)))<<15|o>>>17,s^=o=this.mul32(o,461845907)}return s=this.mul32(s=(s^=n)^s>>>16,2246822507),(s=this.mul32(s^=s>>>13,3266489909))^s>>>16},mul32:function(e,t){var r=65535&t;return((t-r)*e|0)+(r*e|0)|0}},Dg=(wm.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},wm.prototype.calculateSlotNumber=function(e,t,r){r=Ug.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},wm),Mg=(mm.prototype.evaluate=function(e,t,r,n){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,r,n,this.nextFlow):Sg.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},mm.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new mm,n=0,o=e.reverse();n<o.length;n++)r=new mm(o[n],r);return r},mm),Lg=(gm.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 Sg.withVariation(e,i,u.OVERRIDDEN);case"FEATURE_FLAG":return Sg.withVariation(e,i,u.INDIVIDUAL_TARGET_MATCH)}},gm),jg=(ym.prototype.evaluate=function(e,t,r,n,o){return"DRAFT"===t.status?Sg.of(e,t,n,u.EXPERIMENT_DRAFT):o.evaluate(e,t,r,n)},ym),Fg=(vm.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 Sg.of(e,t,n,u.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return Sg.of(e,t,n,u.FEATURE_FLAG_INACTIVE)}},vm),Vg=(hm.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 Sg.withVariation(e,o,u.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(t.id,"]"))},hm),Hg=(dm.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):Sg.of(e,t,n,u.NOT_IN_EXPERIMENT_TARGET)},dm),Kg=(pm.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?Sg.of(e,t,n,u.VARIATION_DROPPED):Sg.withVariation(e,r,u.TRAFFIC_ALLOCATED):Sg.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},pm),zg=(fm.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 Sg.withVariation(e,o,u.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},fm),Gg=(lm.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 Sg.of(e,t,n,u.DEFAULT_RULE);n=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);if(n)return Sg.withVariation(e,n,u.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},lm),Bg=(cm.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):Sg.of(e,t,n,u.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("bucket[".concat(s.bucketId,"]"))},cm),qg=(um.prototype.evaluate=function(e,t,r,n,o){return r.identifiers[t.identifierType]?o.evaluate(e,t,r,n):Sg.of(e,t,n,u.IDENTIFIER_NOT_FOUND)},um),$g=(am.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)})},am),Xg=(sm.prototype.determineTargetRuleOrNull=function(t,e,r){var n=this;return e.targetRules.find(function(e){return n.targetMatcher.matches(e.target,t,r)})},sm),Yg=(im.prototype.resolveOrNull=function(e,t,r){return this._resolveUserOverride(t,r)||this._resolveSegmentOverride(e,t,r)},im.prototype._resolveUserOverride=function(e,t){t=t.identifiers[e.identifierType];if(t){t=e.userOverrides.get(t);if(t)return e._getVariationByIdOrNull(t)}},im.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)},im),Wg=(om.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,"]"))},om),Jg=(nm.prototype.determineTargetRuleOrNull=function(t,r,n){var o=this;return r.targetRules.find(function(e){return o.matches(e,t,r,n)})},nm.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))},nm),Zg=(rm.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},rm.prototype.getRemoteConfigParameterTargetRuleDeterminer=function(){return this.remoteConfigParameterTargetRuleDeterminer},rm),Qg=(tm.prototype.install=function(e,t){this._install("onerror",e,t),this._install("onunhandledrejection",e,t)},tm.prototype._install=function(e,t,r){e in this._installed||((0,this._installations[e])(t,r),this._installed.push(e))},tm),em=null;function tm(){this._installed=[],this._installations={onerror:t0,onunhandledrejection:r0}}function rm(){var e=new Dg,t=new Ng(new xg),r=new Pg(e),n=new Yg(t,r),o=new Wg(e);this.abTestFlow=Mg.of(new Lg(n),new qg,new Bg(o),new Hg(new $g(t)),new jg,new Fg,new Vg,new Kg(r)),this.featureFlagFlow=Mg.of(new jg,new Fg,new Vg,new Lg(n),new qg,new zg(new Xg(t),r),new Gg(r)),this.remoteConfigParameterTargetRuleDeterminer=new Jg(t,e)}function nm(e,t){this.targetMatcher=e,this.bucketer=t}function om(e){this.bucketer=e}function im(e,t){this.targetMatcher=e,this.actionResolver=t}function sm(e){this.targetMatcher=e}function am(e){this.targetMatcher=e}function um(){}function cm(e){this.containerResolver=e}function lm(e){this.actionResolver=e}function fm(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function pm(e){this.actionResolver=e}function dm(e){this.experimentTargetDeterminer=e}function hm(){}function vm(){}function ym(){}function gm(e){this.overrideResolver=e}function mm(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function wm(){}function Em(e){this.bucketer=e}function bm(){}function Tm(e){this.userConditionMatcher=e}function _m(e){this.segmentMatcher=e}function Rm(){}function Im(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function Om(){}function Sm(){}function Cm(){}function Nm(){}function Am(){}function km(){}function xm(){}function Pm(){}function Um(){}function Dm(){}function Mm(){}function Lm(){}function jm(){}function Fm(){}function Vm(){}function Hm(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function Km(e){this.conditionMatcherFactory=e}function zm(e){this.evaluationFlowFactory=e}function Gm(e,t,r,n){this.variationId=e,this.variationKey=t,this.reason=r,this.config=n}function Bm(){}function qm(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 $m(){}function Xm(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function Ym(e,t,r,n){this.delegate=e,this.exposureEventDedupDeterminer=t,this.sessionManager=r,this.userManager=n}function Wm(e,t){this.hackleUserResolver=e,this.hackleInternalClient=t}function Jm(){}function Zm(e,t,r,n){void 0===n&&(n=null),this.eventDispatcher=e,this.flushInterval=r,this.queue=new gg(this.drainQueue.bind(this),t,r),this.repository=n}function Qm(e,t,r){this.buffer=[],this.sink=e,this.maxQueueSize=t,this.timer=new yg({callback:this.flush.bind(this),timeout:r}),this.started=!1}function e0(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function t0(i,s){em=window.onerror,window.onerror=function(e,t,r,n,o){a.isNotNullOrUndefined(o)&&i._trackException(o,s.resolveCurrentUser()),em&&em.apply(this,arguments)}}function r0(r,n){vg=window.onunhandledrejection,window.onunhandledrejection=function(e){var t;try{"reason"in e?t=e.reason:"detail"in e&&"reason"in e.detail&&(t=e.detail.reason)}catch(e){}t instanceof Error&&r._trackException(t,n.resolveCurrentUser()),vg&&vg.apply(this,arguments)}}function n0(e,t){return e.userId===t.userId&&e.deviceId===t.deviceId}h0.prototype.read=function(){var r=this;return new Promise(function(e){var t=r.storage.getItem(r.storageKey);t&&e(JSON.parse(t)),e([])})},h0.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()})},h0.prototype.add=function(t){var r=this;return this.read().then(function(e){return r.save(e.concat(t).slice(-r.maxSize))})},h0.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)})},h0.prototype.clear=function(){var t=this;return new Promise(function(e){localStorage.removeItem(t.storageKey),e()})};var o0=h0,i0=(d0.prototype.addListener=function(e){this.userListeners.push(e)},d0.prototype.initialize=function(){var e=this.storage.getItem("_hackle_did")||this.hackleDeviceId,t=this.storage.getItem("_hackle_uid")||void 0;this._currentUser={deviceId:e,userId:t}},Object.defineProperty(d0.prototype,"currentUser",{get:function(){return this._currentUser},enumerable:!1,configurable:!0}),d0.prototype.resolveCurrentOrNull=function(e){if(void 0===e)return this.currentUser;if("string"==typeof e)return this.setUser({id:e});e=Te(e);return e?this.setUser(e):null},d0.prototype.setUser=function(e){var t=this._currentUser,r=n0(r=t,e=e)?d(d({},e),{properties:d(d({},r.properties),e.properties)}):e;return this._currentUser=r,n0(t,r)||(this.changeUser(t,r,(new Date).getTime()),this.saveUser(r)),r},d0.prototype.setUserId=function(e){e=d(d({},this._currentUser),{userId:e});return this.setUser(e)},d0.prototype.setDeviceId=function(e){e=d(d({},this._currentUser),{deviceId:e});return this.setUser(e)},d0.prototype.setUserProperty=function(e,t){var r,e=d(d({},this._currentUser),{properties:d(d({},this._currentUser.properties),((r={})[e]=t,r))});return this.setUser(e)},d0.prototype.setUserProperties=function(e){e=d(d({},this._currentUser),{properties:d(d({},this._currentUser.properties),e)});return this.setUser(e)},d0.prototype.resetUser=function(){return this.setUser(this.defaultUser)},d0.prototype.changeUser=function(t,r,n){this.userListeners.forEach(function(e){e.onUserUpdated(t,r,n)})},d0.prototype.saveUser=function(e){a.isNotNullOrUndefined(e.deviceId)?this.storage.setItem("_hackle_did",e.deviceId):this.storage.removeItem("_hackle_did"),a.isNotNullOrUndefined(e.userId)?this.storage.setItem("_hackle_uid",e.userId):this.storage.removeItem("_hackle_uid")},d0),s0=(Object.defineProperty(p0.prototype,"currentSessionId",{get:function(){return this._currentSessionId},enumerable:!1,configurable:!0}),Object.defineProperty(p0.prototype,"sessionId",{get:function(){var e;return null!=(e=this._currentSessionId)?e:p0.EMPTY_SESSION_ID},enumerable:!1,configurable:!0}),Object.defineProperty(p0.prototype,"lastEventTime",{get:function(){return this._lastEventTime},enumerable:!1,configurable:!0}),p0.prototype.addListener=function(e){this.sessionListeners.push(e)},p0.prototype.startNewSession=function(e,t){return this.endSession(e),this.newSession(e,t)},p0.prototype.startNewSessionIfNeeded=function(e,t){var r=this._lastEventTime;return null!==r&&null!==this._currentSessionId&&t-r<this.sessionTimeoutMillis?(this.updateLastEventTime(t),this._currentSessionId):this.startNewSession(e,t)},p0.prototype.updateLastEventTime=function(e){this._lastEventTime=e,this.storage.setItem("_hackle_last_event_ts","".concat(e))},p0.prototype.endSession=function(t){var r=this._currentSessionId,n=this._lastEventTime;null!==r&&null!==n&&this.sessionListeners.forEach(function(e){return e.onSessionEnded(r,t,n)})},p0.prototype.newSession=function(t,r){var n="".concat(r,".").concat(ae.v4().slice(0,8));return this.saveSession(n),this.updateLastEventTime(r),this.sessionListeners.forEach(function(e){e.onSessionStarted(n,t,r)}),n},p0.prototype.saveSession=function(e){this._currentSessionId=e,this.storage.setItem("_hackle_session_id",e)},p0.prototype.loadSession=function(){this._currentSessionId=this.storage.getItem("_hackle_session_id")},p0.prototype.loadLastEventTime=function(){var e=this.storage.getItem("_hackle_last_event_ts");null!==e&&0<(e=Number.parseFloat(e))&&(this._lastEventTime=e)},p0.prototype.onUserUpdated=function(e,t,r){this.endSession(e),this.newSession(t,r)},p0.EMPTY_SESSION_ID="0.ffffffff",p0),a0=(f0.postfix=function(e,t){return new f0(e,function(e){return"".concat(e).concat(t)})},f0.prototype.getItem=function(e){return this.delegate.getItem(this.transform(e))},f0.prototype.removeItem=function(e){this.delegate.removeItem(this.transform(e))},f0.prototype.setItem=function(e,t){this.delegate.setItem(this.transform(e),t)},f0),u0=pe.log,c0=null,l0={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.10.0"};function f0(e,t){this.delegate=e,this.transform=t}function p0(e,t){this.sessionTimeoutMillis=e,this.storage=t,this.sessionListeners=[],this._currentSessionId=null,this._lastEventTime=null,this.loadSession(),this.loadLastEventTime()}function d0(e,t){this.storage=e,this.hackleDeviceId=t,this.userListeners=[],this.defaultUser={deviceId:this.hackleDeviceId},this._currentUser=this.defaultUser,this.initialize()}function h0(e,t,r){this.storage=e,this.storageKey=t,this.maxSize=r}function v0(e,t){t=d(d({},l0),t);if(t.log_disabled?pe.setLogLevel(0):t.debug&&pe.setLogLevel(4),u0.debug("sdkKey : "+e),e||u0.error("SDK Key must not be null"),c0)return u0.debug("use already exists hackleClient"),c0;var r=!1,r=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&u0.debug("support sendBeacon API"),new zt(e,Me,{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 $t(e,Me,{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?(u0.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):t.exposureEventDedupIntervalMillis),new o0(window.localStorage,"".concat("hackle-repository-storage","_").concat(e),100)),s=new i0(a0.postfix(Jt,"_".concat(e)),lr()),a=new s0(t.sessionTimeoutMillis,a0.postfix(Jt,"_".concat(e.slice(8))));s.addListener(a);function u(){f.drainRepository()}var c,l,f=new mg(r,100,500,i),e=new Tg(o),r=new bg(f,e,a,s),i=new Ig(n,r,new Cg(new Zg),new Og),o=new Qt(s),p=new It(i,o,a,s),e=new Eg(o,i);a.addListener(e),c0=p,t.auto_track_page_view&&(l=function(){return c.trackPageView({user:{id:lr()}})},(c=p).onReady(function(){function t(e){if("function"==typeof window.Event)return new Event(e);var t=!1,r=!1,n=void 0,o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t,r,n),o}l();try{history.pushState=(n=history.pushState,function(){try{var e=n.apply(this,arguments);return window.dispatchEvent(t("locationchange")),e}catch(e){if(e instanceof Error)u0.error(e);else try{u0.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)u0.error(e);else try{u0.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(t("locationchange"))}catch(e){if(e instanceof Error)u0.error(e);else try{u0.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{l()}catch(e){if(e instanceof Error)u0.error(e);else try{u0.error(e)}catch(e){}}})}catch(t){if(t instanceof Error)u0.error(t);else try{u0.error(t)}catch(t){}}var r,n})),(new Qg).install(i,o);return document.addEventListener("visibilitychange",function(){document.hidden||u()}),window.addEventListener("pageshow",u),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){pr(),a.updateLastEventTime((new Date).getTime()),p.close()}),p.onReady(function(){a.startNewSessionIfNeeded(s.currentUser,(new Date).getTime())}),p}var o={createInstance:v0,getUserId:lr,setUserId:fr,removeUserId:pr,Logger:pe},y0=(l.Bucket=t.Bucket=Ee,l.Container=t.Container=We,l.ContainerGroup=t.ContainerGroup=xe,l.CoreVersion=t.CoreVersion=ht,l.Decision=t.Decision=Fe,l.DecisionReason=t.DecisionReason=u,l.EmptyHackleRemoteConfig=t.EmptyHackleRemoteConfig=ie,l.EmptyParameterConfig=t.EmptyParameterConfig=He,l.EventType=t.EventType=be,l.Experiment=t.Experiment=Ke,l.FeatureFlagDecision=t.FeatureFlagDecision=Ve,l.IdentifierType=t.IdentifierType=Ge,l.IdentifiersBuilder=t.IdentifiersBuilder=Be,l.Logger=t.Logger=pe,l.MATCH_OPERATORS=t.MATCH_OPERATORS=mt,l.MATCH_TYPES=t.MATCH_TYPES=yt,l.MATCH_VALUE_TYPES=t.MATCH_VALUE_TYPES=gt,l.MetaVersion=t.MetaVersion=vt,l.ParameterConfiguration=t.ParameterConfiguration=Je,l.RemoteConfigDecision=t.RemoteConfigDecision=je,l.RemoteConfigParameter=t.RemoteConfigParameter=Pe,l.RemoteConfigParameterValue=t.RemoteConfigParameterValue=De,l.RemoteConfigTargetRule=t.RemoteConfigTargetRule=Ue,l.SEGMENT_TYPES=t.SEGMENT_TYPES=bt,l.Segment=t.Segment=ke,l.Slot=t.Slot=ze,l.TARGET_ACTION_TYPES=t.TARGET_ACTION_TYPES=wt,l.TARGET_KEY_TYPES=t.TARGET_KEY_TYPES=Et,l.Target=t.Target=Ie,l.TargetAction=t.TargetAction=Ne,l.TargetCondition=t.TargetCondition=Oe,l.TargetKey=t.TargetKey=Se,l.TargetMatch=t.TargetMatch=Ce,l.TargetRule=t.TargetRule=Ae,l.TargetingType=t.TargetingType=Tt,l.Variation=t.Variation=we,l.Version=t.Version=dt,se=t.createInstance=v0,t.default=o,l.getUserId=t.getUserId=lr,l.isValidIdentifierType=t.isValidIdentifierType=Xe,l.isValidPropertyKeyType=t.isValidPropertyKeyType=$e,l.isValidPropertyValueType=t.isValidPropertyValueType=qe,l.removeUserId=t.removeUserId=pr,l.sanitizeIdentifier=t.sanitizeIdentifier=Ye,l.sanitizeIdentifiers=t.sanitizeIdentifiers=Re,l.sanitizeProperties=t.sanitizeProperties=_e,l.sanitizeUser=t.sanitizeUser=Te,l.setUserId=t.setUserId=fr,function(e,t){return(y0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)});var g0=function(){return(g0=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 m0(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}w0.prototype.on=function(e,t){this.listeners[e]=(this.listeners[e]||[]).concat(t)},w0.prototype.off=function(e,t){this.listeners[e]=(this.listeners[e]||[]).filter(function(e){return e!==t})},w0.prototype.emit=function(e,t){(this.listeners[e]||[]).forEach(function(e){e(t)})};ma=w0;function w0(){this.listeners={}}b0.arePropertiesEqual=function(e,t){var r=b0.coerceUnknownToProperties(e),n=b0.coerceUnknownToProperties(t),e=Object.keys(r),t=Object.keys(n);return e.length===t.length&&e.every(function(e){return e in n&&r[e]===n[e]})},b0.coerceUnknownToProperties=function(e){return"object"==typeof e&&null!==e?e:{}};var E0=b0;function b0(){}_0.isUserEqual=function(e,t){return(null==e?void 0:e.id)===(null==t?void 0:t.id)&&(null==e?void 0:e.deviceId)===(null==t?void 0:t.deviceId)&&(null==e?void 0:e.userId)===(null==t?void 0:t.userId)&&E0.arePropertiesEqual(null==e?void 0:e.properties,null==t?void 0:t.properties)&&E0.arePropertiesEqual(null==e?void 0:e.identifiers,null==t?void 0:t.identifiers)};var T0=_0;function _0(){}var R0=function(n){var e=o,t=n;if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}function o(e,t){var r=n.call(this)||this;return r._currentUser=null,r.client=se(e,g0(g0({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.10.0"})),r}return y0(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r),o.prototype.getUser=function(){return this.client.getUser()},o.prototype.setUser=function(e){this.client.setUser(e),this.emitUpdatedUser(this.getUser())},o.prototype.setUserId=function(e){this.client.setUserId(e),this.emitUpdatedUser(this.getUser())},o.prototype.setDeviceId=function(e){this.client.setDeviceId(e),this.emitUpdatedUser(this.getUser())},o.prototype.setUserProperty=function(e,t){this.client.setUserProperty(e,t),this.emitUpdatedUser(this.getUser())},o.prototype.resetUser=function(){this.client.resetUser(),this.emitUpdatedUser(this.getUser())},o.prototype.variation=function(e,t,r){return this.client.variation(e,t||void 0,r)},o.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t||void 0,r)},o.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t||void 0)},o.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t||void 0)},o.prototype.track=function(e,t){this.client.track(e,t||void 0)},o.prototype.trackPageView=function(e){this.client.trackPageView(g0(g0({},e),{user:(null==e?void 0:e.user)||void 0}))},o.prototype.remoteConfig=function(e){return this.client.remoteConfig(e||void 0)},o.prototype.onReady=function(e,t){this.client.onReady(e,t)},o.prototype.onInitialized=function(e){return this.client.onInitialized(e)},o.prototype.emitUpdatedUser=function(e){T0.isUserEqual(this._currentUser,e)||this.emit("user-updated",e),this._currentUser=e},o}(ma);var U={exports:{}},T={},I0=Object.getOwnPropertySymbols,O0=Object.prototype.hasOwnProperty,S0=Object.prototype.propertyIsEnumerable;var kr=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]))O0.call(r,i)&&(n[i]=r[i]);if(I0)for(var s=I0(r),a=0;a<s.length;a++)S0.call(r,s[a])&&(n[s[a]]=r[s[a]])}return n},C0=kr,P="function"==typeof Symbol&&Symbol.for,N0=P?Symbol.for("react.element"):60103,A0=P?Symbol.for("react.portal"):60106,ko=P?Symbol.for("react.fragment"):60107,p=P?Symbol.for("react.strict_mode"):60108,xa=P?Symbol.for("react.profiler"):60114,k0=P?Symbol.for("react.provider"):60109,x0=P?Symbol.for("react.context"):60110,P0=P?Symbol.for("react.forward_ref"):60112,x=P?Symbol.for("react.suspense"):60113,U0=P?Symbol.for("react.memo"):60115,D0=P?Symbol.for("react.lazy"):60116,M0="function"==typeof Symbol&&Symbol.iterator;function L0(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 j0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F0={};function V0(e,t,r){this.props=e,this.context=t,this.refs=F0,this.updater=r||j0}function H0(){}function K0(e,t,r){this.props=e,this.context=t,this.refs=F0,this.updater=r||j0}V0.prototype.isReactComponent={},V0.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(L0(85));this.updater.enqueueSetState(this,e,t,"setState")},V0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},H0.prototype=V0.prototype;var qr=K0.prototype=new H0,z0=(qr.constructor=K0,C0(qr,V0.prototype),qr.isPureReactComponent=!0,{current:null}),G0=Object.prototype.hasOwnProperty,B0={key:!0,ref:!0,__self:!0,__source:!0};function q0(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)G0.call(t,n)&&!B0.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:N0,type:e,key:i,ref:s,props:o,_owner:z0.current}}function $0(e){return"object"==typeof e&&null!==e&&e.$$typeof===N0}var X0=/\/+/g,Y0=[];function W0(e,t,r,n){var o;return Y0.length?((o=Y0.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 J0(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,Y0.length<10&&Y0.push(e)}function Z0(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 N0:case A0:i=!0}}if(i)return n(o,t,""===r?"."+Q0(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+Q0(a=t[s],s);i+=e(a,u,n,o)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=M0&&t[M0]||t["@@iterator"])?u:null))for(t=u.call(t),s=0;!(a=t.next()).done;)i+=e(a=a.value,u=r+Q0(a,s++),n,o);else if("object"===a)throw n=""+t,Error(L0(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return i}(e,"",t,r)}function Q0(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 ew(e,t){e.func.call(e.context,t,e.count++)}function tw(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?rw(e,n,r,function(e){return e}):null!=e&&($0(e)&&(t=o+(!(o=e).key||t&&t.key===e.key?"":(""+e.key).replace(X0,"$&/")+"/")+r,e={$$typeof:N0,type:o.type,key:t,ref:o.ref,props:o.props,_owner:o._owner}),n.push(e))}function rw(e,t,r,n,o){var i="";Z0(e,tw,t=W0(t,i=null!=r?(""+r).replace(X0,"$&/")+"/":i,n,o)),J0(t)}var nw={current:null};function ow(){var e=nw.current;if(null===e)throw Error(L0(321));return e}var iw,sw,aw,Zr={ReactCurrentDispatcher:nw,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:z0,IsSomeRendererActing:{current:!1},assign:C0},R=(T.Children={map:function(e,t,r){if(null==e)return e;var n=[];return rw(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;Z0(e,ew,t=W0(null,null,t,r)),J0(t)},count:function(e){return Z0(e,function(){return null},null)},toArray:function(e){var t=[];return rw(e,t,null,function(e){return e}),t},only:function(e){if($0(e))return e;throw Error(L0(143))}},T.Component=V0,T.Fragment=ko,T.Profiler=xa,T.PureComponent=K0,T.StrictMode=p,T.Suspense=x,T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zr,T.cloneElement=function(e,t,r){if(null==e)throw Error(L0(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=z0.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)G0.call(t,a)&&!B0.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:N0,type:e.type,key:o,ref:i,props:n,_owner:s}},T.createContext=function(e,t){return(e={$$typeof:x0,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:k0,_context:e},e.Consumer=e},T.createElement=q0,T.createFactory=function(e){var t=q0.bind(null,e);return t.type=e,t},T.createRef=function(){return{current:null}},T.forwardRef=function(e){return{$$typeof:P0,render:e}},T.isValidElement=$0,T.lazy=function(e){return{$$typeof:D0,_ctor:e,_status:-1,_result:null}},T.memo=function(e,t){return{$$typeof:U0,type:e,compare:void 0===t?null:t}},T.useCallback=function(e,t){return ow().useCallback(e,t)},T.useContext=function(e,t){return ow().useContext(e,t)},T.useDebugValue=function(){},T.useEffect=function(e,t){return ow().useEffect(e,t)},T.useImperativeHandle=function(e,t,r){return ow().useImperativeHandle(e,t,r)},T.useLayoutEffect=function(e,t){return ow().useLayoutEffect(e,t)},T.useMemo=function(e,t){return ow().useMemo(e,t)},T.useReducer=function(e,t,r){return ow().useReducer(e,t,r)},T.useRef=function(e){return ow().useRef(e)},T.useState=function(e){return ow().useState(e)},T.version="16.14.0",{}),Bi=Function.call.bind(Object.prototype.hasOwnProperty),uw=function(){};function cw(e,t,r,n,o){if("production"!==production)for(var i in e)if(aw(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,iw)}catch(e){s=e}!s||s instanceof Error||uw((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 sw)&&(sw[s.message]=!0,i=o?o():"",uw("Failed "+r+" type: "+s.message+(null!=i?i:"")))}}if("production"!==production&&(iw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",sw={},aw=Bi,uw=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),cw.resetWarningCache=function(){"production"!==production&&(sw={})},"production"!==production){var lw=kr,fw=cw,r="function"==typeof Symbol&&Symbol.for,pw=r?Symbol.for("react.element"):60103,dw=r?Symbol.for("react.portal"):60106,hw=r?Symbol.for("react.fragment"):60107,vw=r?Symbol.for("react.strict_mode"):60108,yw=r?Symbol.for("react.profiler"):60114,gw=r?Symbol.for("react.provider"):60109,mw=r?Symbol.for("react.context"):60110,ww=r?Symbol.for("react.concurrent_mode"):60111,Ew=r?Symbol.for("react.forward_ref"):60112,bw=r?Symbol.for("react.suspense"):60113,Tw=r?Symbol.for("react.suspense_list"):60120,_w=r?Symbol.for("react.memo"):60115,Rw=r?Symbol.for("react.lazy"):60116,Iw=r?Symbol.for("react.block"):60121,Ow=r?Symbol.for("react.fundamental"):60117,Sw=r?Symbol.for("react.responder"):60118,Cw=r?Symbol.for("react.scope"):60119,Nw="function"==typeof Symbol&&Symbol.iterator,Aw="@@iterator";function kw(e){if(null===e||"object"!=typeof e)return null;e=Nw&&e[Nw]||e[Aw];return"function"==typeof e?e:null}var xw={current:null},Pw={current:null},Uw=/^(.*)[\\\/]/,Dw=1;function Mw(e){if(null==e)return null;if("number"==typeof e.tag&&D("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 hw:return"Fragment";case dw:return"Portal";case yw:return"Profiler";case vw:return"StrictMode";case bw:return"Suspense";case Tw:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case mw:return"Context.Consumer";case gw:return"Context.Provider";case Ew:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case _w:return Mw(e.type);case Iw:return Mw(e.render);case Rw:r=(t=e)._status===Dw?t._result:null;if(r)return Mw(r)}var t,r;return null}var Lw={},jw=null;function Fw(e){jw=e}Lw.getCurrentStack=null,Lw.getStackAddendum=function(){var e,t,r,n,o,i="",s=(jw&&(e=Mw(jw.type),r=jw._owner,i+=(e=e,t=jw._source,r=r&&Mw(r.type),o="",t?(n=(s=t.fileName).replace(Uw,""),o=" (at "+(n=/^index\./.test(n)&&(s=s.match(Uw))&&(s=s[1])?s.replace(Uw,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(o=" (created by "+r+")"),"\n in "+(e||"Unknown")+o)),Lw.getCurrentStack);return s&&(i+=s()||""),i};var Vw={ReactCurrentDispatcher:xw,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Pw,IsSomeRendererActing:{current:!1},assign:lw};function Hw(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];Kw("warn",e,r)}function D(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];Kw("error",e,r)}function Kw(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=Vw.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){}}lw(Vw,{ReactDebugCurrentFrame:Lw,ReactComponentTreeHook:{}});var zw={};function Gw(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;zw[r]||(D("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),zw[r]=!0)}var Bw={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){Gw(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){Gw(e,"replaceState")},enqueueSetState:function(e,t,r,n){Gw(e,"setState")}},qw={};function $w(e,t,r){this.props=e,this.context=t,this.refs=qw,this.updater=r||Bw}Object.freeze(qw),$w.prototype.isReactComponent={},$w.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")},$w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var Xw,Yw={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 Yw)Yw.hasOwnProperty(Xw)&&!function(e,t){Object.defineProperty($w.prototype,e,{get:function(){Hw("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(Xw,Yw[Xw]);function Ww(){}function Jw(e,t,r){this.props=e,this.context=t,this.refs=qw,this.updater=r||Bw}Ww.prototype=$w.prototype,(r=Jw.prototype=new Ww).constructor=Jw,lw(r,$w.prototype),r.isPureReactComponent=!0;var Zw,Qw,eE=Object.prototype.hasOwnProperty,tE={key:!0,ref:!0,__self:!0,__source:!0};function rE(e){if(eE.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function nE(e){if(eE.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var oE={},iE=function(e,t,r,n,o,i,s){e={$$typeof:pw,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 sE(e,t,r){var n,o={},i=null,s=null,a=null,u=null;if(null!=t)for(n in rE(t)&&(s=t.ref,"string"==typeof(c=t).ref&&Pw.current&&c.__self&&Pw.current.stateNode!==c.__self&&(f=Mw(Pw.current.type),oE[f]||(D('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',Mw(Pw.current.type),c.ref),oE[f]=!0))),nE(t)&&(i=""+t.key),a=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)eE.call(t,n)&&!tE.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),v=0;v<d;v++)h[v]=arguments[v+2];Object.freeze&&Object.freeze(h),o.children=h}if(e&&e.defaultProps){var y=e.defaultProps;for(n in y)void 0===o[n]&&(o[n]=y[n])}function g(){Qw||(Qw=!0,D("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",l))}function m(){Zw||(Zw=!0,D("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",p))}return(i||s)&&(c="function"==typeof e?e.displayName||e.name||"Unknown":e,i&&(f=o,p=c,m.isReactWarning=!0,Object.defineProperty(f,"key",{get:m,configurable:!0})),s&&(r=o,l=c,g.isReactWarning=!0,Object.defineProperty(r,"ref",{get:g,configurable:!0}))),iE(e,i,s,a,u,Pw.current,o)}function aE(e){return"object"==typeof e&&null!==e&&e.$$typeof===pw}var uE=".",cE=":",lE=!1,fE=/\/+/g;function pE(e){return(""+e).replace(fE,"$&/")}var dE=10,hE=[];function vE(e,t,r,n){var o;return hE.length?((o=hE.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 yE(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,hE.length<dE&&hE.push(e)}function gE(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 pw:case dw:a=!0}}if(a)return n(o,t,""===r?uE+mE(t,0):r),1;var u=0,c=""===r?uE:r+cE;if(Array.isArray(t))for(var l=0;l<t.length;l++)u+=e(i=t[l],c+mE(i,l),n,o);else if("function"==typeof(r=kw(t))){r===t.entries&&(lE||Hw("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."),lE=!0);for(var f,p=r.call(t),d=0;!(f=p.next()).done;)u+=e(i=f.value,c+mE(i,d++),n,o)}else if("object"==s)throw r="",r=" If you meant to render a collection of children, use an array instead."+Lw.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 mE(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 wE(e,t,r){var n=e.func,o=e.context;n.call(o,t,e.count++)}function EE(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)?bE(i,n,r,function(e){return e}):null!=i&&(aE(i)&&(e=o+(!(s=i).key||t&&t.key===i.key?"":pE(i.key)+"/")+r,i=iE(s.type,e,s.ref,s._self,s._source,s._owner,s.props)),n.push(i))}function bE(e,t,r,n,o){var i="",t=vE(t,i=null!=r?pE(r)+"/":i,n,o);gE(e,EE,t),yE(t)}function TE(e){return"string"==typeof e||"function"==typeof e||e===hw||e===ww||e===yw||e===vw||e===bw||e===Tw||"object"==typeof e&&null!==e&&(e.$$typeof===Rw||e.$$typeof===_w||e.$$typeof===gw||e.$$typeof===mw||e.$$typeof===Ew||e.$$typeof===Ow||e.$$typeof===Sw||e.$$typeof===Cw||e.$$typeof===Iw)}function _E(){var e=xw.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 RE(){if(Pw.current){var e=Mw(Pw.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var IE=!1,OE={};function SE(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=RE())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),OE[t=r]||(OE[t]=!0,r="",e&&e._owner&&e._owner!==Pw.current&&(r=" It was passed a child from "+Mw(e._owner.type)+"."),Fw(e),D('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),Fw(null)))}function CE(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];aE(n)&&SE(n,t)}else if(aE(e))e._store&&(e._store.validated=!0);else if(e){var o=kw(e);if("function"==typeof o&&o!==e.entries)for(var i,s=o.call(e);!(i=s.next()).done;)aE(i.value)&&SE(i.value,t)}}function NE(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=Mw(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==Ew&&t.$$typeof!==_w)return;r=t.propTypes}r?(Fw(e),fw(r,e.props,"prop",n,Lw.getStackAddendum),Fw(null)):void 0===t.PropTypes||IE||(IE=!0,D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function AE(e,t,r){var n,o=TE(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+".":"")||RE(),null===e?s="null":Array.isArray(e)?s="array":void 0!==e&&e.$$typeof===pw?(s="<"+(Mw(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,D("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)),sE.apply(this,arguments));if(null==t)return t;if(o)for(var i=2;i<arguments.length;i++)CE(arguments[i],e);if(e===hw){var s=t;Fw(s);for(var a=Object.keys(s.props),u=0;u<a.length;u++){var c=a[u];if("children"!==c&&"key"!==c){D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c);break}}null!==s.ref&&D("Invalid attribute `ref` supplied to `React.Fragment`."),Fw(null)}else NE(t);return t}var kE=!1;try{var xE=Object.freeze({}),PE=new Map([[xE,null]]),UE=new Set([xE]);PE.set(0,0),UE.add(0)}catch(e){}function DE(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=lw({},e.props),s=e.key,a=e.ref,u=e._self,c=e._source,l=e._owner;if(null!=t)for(n in rE(t)&&(a=t.ref,l=Pw.current),nE(t)&&(s=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)eE.call(t,n)&&!tE.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 iE(e.type,s,a,u,c,l,i)}.apply(this,arguments),o=2;o<arguments.length;o++)CE(arguments[o],n.type);return NE(n),n}function ME(e){var t=AE.bind(null,e);return t.type=e,kE||(kE=!0,Hw("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 Hw("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}r=AE,R.Children={map:function(e,t,r){if(null==e)return e;var n=[];return bE(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=vE(null,null,t,r),gE(e,wE,t),yE(t)},count:function(e){return gE(e,function(){return null},null)},toArray:function(e){var t=[];return bE(e,t,null,function(e){return e}),t},only:function(e){if(aE(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},R.Component=$w,R.Fragment=hw,R.Profiler=yw,R.PureComponent=Jw,R.StrictMode=vw,R.Suspense=bw,R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vw,R.cloneElement=DE,R.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&D("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:mw,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:gw,_context:r}),o=!1,t={$$typeof:mw,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return o||(o=!0,D("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,D("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}}}),r.Consumer=t,r._currentRenderer=null,r._currentRenderer2=null,r},R.createElement=r,R.createFactory=ME,R.createRef=function(){var e={current:null};return Object.seal(e),e},R.forwardRef=function(e){return null!=e&&e.$$typeof===_w?D("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?D("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&D("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||D("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:Ew,render:e}},R.isValidElement=aE,R.lazy=function(e){var t,r,n={$$typeof:Rw,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){D("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){D("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},R.memo=function(e,t){return TE(e)||D("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:_w,type:e,compare:void 0===t?null:t}},R.useCallback=function(e,t){return _E().useCallback(e,t)},R.useContext=function(e,t){var r,n=_E();return void 0!==t&&D("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?D("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&&D("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},R.useDebugValue=function(e,t){return _E().useDebugValue(e,t)},R.useEffect=function(e,t){return _E().useEffect(e,t)},R.useImperativeHandle=function(e,t,r){return _E().useImperativeHandle(e,t,r)},R.useLayoutEffect=function(e,t){return _E().useLayoutEffect(e,t)},R.useMemo=function(e,t){return _E().useMemo(e,t)},R.useReducer=function(e,t,r){return _E().useReducer(e,t,r)},R.useRef=function(e){return _E().useRef(e)},R.useState=function(e){return _E().useState(e)},R.version="16.14.0"}"production"===production?U.exports=T:U.exports=R;var LE=U.exports,jE=U.exports.createContext({hackle:void 0,userVersion:0,initialized:!1}),Po=jE.Consumer,FE=jE.Provider;var VE=l.Logger.log;function HE(e,t){e=KE(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function KE(e,t){void 0===t&&(t="A");var r=U.exports.useContext(jE),n=r.hackle,o=r.userVersion,i=r.initialized,s=U.exports.useCallback(function(){return i?(null==n?void 0:n.variationDetail(e))||l.Decision.of(t,l.DecisionReason.EXCEPTION):l.Decision.of(t,l.DecisionReason.SDK_NOT_READY)},[t,e,n,i]),r=m0(U.exports.useState(function(){return n?s():(VE.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2),a=r[0],r=r[1],o={key:e,userVersion:o,initialized:i},u=m0(U.exports.useState(o),2),c=u[0],u=u[1];return BE(c,o)||(u(o),r(s())),{isLoading:!i,decision:a}}function zE(e){e=GE(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function GE(e){var t=U.exports.useContext(jE),r=t.hackle,n=t.userVersion,o=t.initialized,i=U.exports.useCallback(function(){return o?(null==r?void 0:r.featureFlagDetail(e))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION):l.FeatureFlagDecision.off(l.DecisionReason.SDK_NOT_READY)},[e,r,o]),t=m0(U.exports.useState(function(){return r?i():(VE.error("HackleClient is not existed"),l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION))}),2),s=t[0],t=t[1],n={key:e,userVersion:n,initialized:o},a=m0(U.exports.useState(n),2),u=a[0],a=a[1];return BE(u,n)||(a(n),t(i())),{isLoading:!o,decision:s}}function BE(e,t){return e.initialized===t.initialized&&e.key===t.key&&e.userVersion===t.userVersion}function qE(e){var t,r=e.experimentKey,e=e.children,n=(r=HE(r)).isLoading,o=r.variation;return n?null:e&&"function"==typeof e?e(o):(U.exports.Children.forEach(e,function(e){U.exports.isValidElement(e)&&(e.props.variation?o===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?U.exports.cloneElement(t,{variation:o}):null)}function $E(e){return e.variation,e=e.children,U.exports.createElement(U.exports.Fragment,null,e)}function XE(e){var t=(r=zE(e.featureKey)).isLoading,r=r.isOn;return t?null:LE.createElement(LE.Fragment,null,e.children(r))}l.HackleContext=jE,l.HackleContextConsumer=Po,l.HackleContextProvider=FE,l.HackleExperiment=qE,l.HackleFeature=XE,l.HackleProvider=function(e){var t=e.hackleClient,r=e.user,n=void 0===(o=e.timeout)?3e3:o,o=void 0!==(o=e.supportSSR)&&o,e=e.children,i=m0(U.exports.useState({hackle:t,initialized:!1,userVersion:0}),2),s=i[0],a=i[1];return U.exports.useEffect(function(){null!=r&&t.setUser(r)},[r]),U.exports.useEffect(function(){function e(){a(function(e){return g0(g0({},e),{userVersion:e.userVersion+1})})}return t.on("user-updated",e),function(){t.off("user-updated",e)}},[t]),U.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){a(function(e){return g0(g0({},e),{initialized:!0})})},function(){a(function(e){return g0(g0({},e),{initialized:!0})})}).catch(function(){a(function(e){return g0(g0({},e),{initialized:!0})})})},[t]),o||s.initialized?LE.createElement(FE,{value:s},e):null},l.HackleVariation=$E,l.createInstance=function(e,t){return new R0(e,t)},l.useFeature=function(e){var t=(n=U.exports.useContext(jE)).hackle,r=n.userVersion,n=n.initialized,o=U.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e))||!1},[e,t,n]),i=(s=m0(U.exports.useState(function(){return t?o():("undefined"!=typeof window&&VE.error("HackleClient is not existed"),!1)}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=m0(U.exports.useState(r),2))[0],n=n[1];return BE(a,r)||(n(r),s(o())),i},l.useFeatureFlagDetail=function(e){var t=(n=U.exports.useContext(jE)).hackle,r=n.userVersion,n=n.initialized,o=U.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION)},[e,t,n]),i=(s=m0(U.exports.useState(function(){return t?o():("undefined"!=typeof window&&VE.error("HackleClient is not existed"),l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION))}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=m0(U.exports.useState(r),2))[0],n=n[1];return BE(a,r)||(n(r),s(o())),i},l.useLoadableFeature=zE,l.useLoadableFeatureDetail=GE,l.useLoadableRemoteConfig=function(){var e=(i=U.exports.useContext(jE)).hackle,t=i.userVersion,r=i.initialized,n=U.exports.useCallback(function(){return r&&(null==e?void 0:e.remoteConfig())||new l.EmptyHackleRemoteConfig},[e,r]),o=(i=m0(U.exports.useState(function(){return e||VE.error("HackleClient is not existed"),n()}),2))[0],i=i[1],t={userVersion:t,initialized:r},s=(a=m0(U.exports.useState(t),2))[0],a=a[1];return BE(s,t)||(a(t),i(n())),{isLoading:!r,remoteConfig:o}},l.useLoadableVariation=HE,l.useLoadableVariationDetail=KE,l.useRemoteConfig=function(){var e=(r=U.exports.useContext(jE)).hackle,t=r.userVersion,r=r.initialized,n=U.exports.useCallback(function(){return(null==e?void 0:e.remoteConfig())||new l.EmptyHackleRemoteConfig},[e,r]),o=(i=m0(U.exports.useState(function(){return e||VE.error("HackleClient is not existed"),n()}),2))[0],i=i[1],t={userVersion:t,initialized:r},s=(r=m0(U.exports.useState(t),2))[0],r=r[1];return BE(s,t)||(r(t),i(n())),o},l.useTrack=function(){var t=U.exports.useContext(jE).hackle;return t?function(e){return null==t?void 0:t.track(e)}:(VE.error("HackleClient is not existed"),function(){})},l.useVariation=function(e,t){void 0===t&&(t="A");var r=(a=U.exports.useContext(jE)).hackle,n=a.userVersion,o=a.initialized,i=U.exports.useCallback(function(){return o&&(null==r?void 0:r.variation(e))||t},[t,e,r,o]),s=(a=m0(U.exports.useState(function(){return r?i():("undefined"!=typeof window&&VE.error("HackleClient is not existed"),t)}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:o},u=(c=m0(U.exports.useState(n),2))[0],c=c[1];return BE(u,n)||(c(n),a(i())),s},l.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(o=U.exports.useContext(jE)).hackle,n=o.userVersion,o=o.initialized,i=U.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e))||l.Decision.of(t,l.DecisionReason.EXCEPTION)},[t,e,r,o]),s=(a=m0(U.exports.useState(function(){return r?i():("undefined"!=typeof window&&VE.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:o},u=(o=m0(U.exports.useState(n),2))[0],o=o[1];return BE(u,n)||(o(n),a(i())),s},Object.defineProperty(l,"__esModule",{value:!0})});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).hackleReactSDK={})}(this,function(l){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function M(r){if(r.__esModule)return r;var n=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(e){var t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:function(){return r[e]}})}),n}var L,t={},j=new Uint8Array(16);function F(){if(L=L||"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto))return L(j);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}var V=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function H(e){return"string"==typeof e&&V.test(e)}for(var K,z,G=[],B=0;B<256;++B)G.push((B+256).toString(16).substr(1));function q(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,e=(G[e[t+0]]+G[e[t+1]]+G[e[t+2]]+G[e[t+3]]+"-"+G[e[t+4]]+G[e[t+5]]+"-"+G[e[t+6]]+G[e[t+7]]+"-"+G[e[t+8]]+G[e[t+9]]+"-"+G[e[t+10]]+G[e[t+11]]+G[e[t+12]]+G[e[t+13]]+G[e[t+14]]+G[e[t+15]]).toLowerCase();if(H(e))return e;throw TypeError("Stringified UUID is invalid")}var $=0,X=0;function Y(e){if(!H(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}function W(e,s,a){function t(e,t,r,n){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),16!==(t="string"==typeof t?Y(t):t).length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var o=new Uint8Array(16+e.length);if(o.set(t),o.set(e,t.length),(o=a(o))[6]=15&o[6]|s,o[8]=63&o[8]|128,r){n=n||0;for(var i=0;i<16;++i)r[n+i]=o[i];return r}return q(o)}try{t.name=e}catch(e){}return t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t}function J(e){return 14+(e+64>>>9<<4)+1}function Q(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function Z(e,t,r,n,o,i){return Q((t=Q(Q(t,e),Q(n,i)))<<o|t>>>32-o,r)}function ee(e,t,r,n,o,i,s){return Z(t&r|~t&n,e,t,o,i,s)}function te(e,t,r,n,o,i,s){return Z(t&n|r&~n,e,t,o,i,s)}function re(e,t,r,n,o,i,s){return Z(t^r^n,e,t,o,i,s)}function ne(e,t,r,n,o,i,s){return Z(r^(t|~n),e,t,o,i,s)}var r=W("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}for(var n=function(e,t){e[t>>5]|=128<<t%32,e[J(t)-1]=t;for(var r=1732584193,n=-271733879,o=-1732584194,i=271733878,s=0;s<e.length;s+=16){var a=r,u=n,c=o,l=i;r=ee(r,n,o,i,e[s],7,-680876936),i=ee(i,r,n,o,e[s+1],12,-389564586),o=ee(o,i,r,n,e[s+2],17,606105819),n=ee(n,o,i,r,e[s+3],22,-1044525330),r=ee(r,n,o,i,e[s+4],7,-176418897),i=ee(i,r,n,o,e[s+5],12,1200080426),o=ee(o,i,r,n,e[s+6],17,-1473231341),n=ee(n,o,i,r,e[s+7],22,-45705983),r=ee(r,n,o,i,e[s+8],7,1770035416),i=ee(i,r,n,o,e[s+9],12,-1958414417),o=ee(o,i,r,n,e[s+10],17,-42063),n=ee(n,o,i,r,e[s+11],22,-1990404162),r=ee(r,n,o,i,e[s+12],7,1804603682),i=ee(i,r,n,o,e[s+13],12,-40341101),o=ee(o,i,r,n,e[s+14],17,-1502002290),n=ee(n,o,i,r,e[s+15],22,1236535329),r=te(r,n,o,i,e[s+1],5,-165796510),i=te(i,r,n,o,e[s+6],9,-1069501632),o=te(o,i,r,n,e[s+11],14,643717713),n=te(n,o,i,r,e[s],20,-373897302),r=te(r,n,o,i,e[s+5],5,-701558691),i=te(i,r,n,o,e[s+10],9,38016083),o=te(o,i,r,n,e[s+15],14,-660478335),n=te(n,o,i,r,e[s+4],20,-405537848),r=te(r,n,o,i,e[s+9],5,568446438),i=te(i,r,n,o,e[s+14],9,-1019803690),o=te(o,i,r,n,e[s+3],14,-187363961),n=te(n,o,i,r,e[s+8],20,1163531501),r=te(r,n,o,i,e[s+13],5,-1444681467),i=te(i,r,n,o,e[s+2],9,-51403784),o=te(o,i,r,n,e[s+7],14,1735328473),n=te(n,o,i,r,e[s+12],20,-1926607734),r=re(r,n,o,i,e[s+5],4,-378558),i=re(i,r,n,o,e[s+8],11,-2022574463),o=re(o,i,r,n,e[s+11],16,1839030562),n=re(n,o,i,r,e[s+14],23,-35309556),r=re(r,n,o,i,e[s+1],4,-1530992060),i=re(i,r,n,o,e[s+4],11,1272893353),o=re(o,i,r,n,e[s+7],16,-155497632),n=re(n,o,i,r,e[s+10],23,-1094730640),r=re(r,n,o,i,e[s+13],4,681279174),i=re(i,r,n,o,e[s],11,-358537222),o=re(o,i,r,n,e[s+3],16,-722521979),n=re(n,o,i,r,e[s+6],23,76029189),r=re(r,n,o,i,e[s+9],4,-640364487),i=re(i,r,n,o,e[s+12],11,-421815835),o=re(o,i,r,n,e[s+15],16,530742520),n=re(n,o,i,r,e[s+2],23,-995338651),r=ne(r,n,o,i,e[s],6,-198630844),i=ne(i,r,n,o,e[s+7],10,1126891415),o=ne(o,i,r,n,e[s+14],15,-1416354905),n=ne(n,o,i,r,e[s+5],21,-57434055),r=ne(r,n,o,i,e[s+12],6,1700485571),i=ne(i,r,n,o,e[s+3],10,-1894986606),o=ne(o,i,r,n,e[s+10],15,-1051523),n=ne(n,o,i,r,e[s+1],21,-2054922799),r=ne(r,n,o,i,e[s+8],6,1873313359),i=ne(i,r,n,o,e[s+15],10,-30611744),o=ne(o,i,r,n,e[s+6],15,-1560198380),n=ne(n,o,i,r,e[s+13],21,1309151649),r=ne(r,n,o,i,e[s+4],6,-145523070),i=ne(i,r,n,o,e[s+11],10,-1120210379),o=ne(o,i,r,n,e[s+2],15,718787259),n=ne(n,o,i,r,e[s+9],21,-343485551),r=Q(r,a),n=Q(n,u),o=Q(o,c),i=Q(i,l)}return[r,n,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(J(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length),o=[],i=32*n.length,s="0123456789abcdef",a=0;a<i;a+=8){var u=n[a>>5]>>>a%32&255,u=parseInt(s.charAt(u>>>4&15)+s.charAt(15&u),16);o.push(u)}return o});function oe(e,t){return e<<t|e>>>32-t}var ie=W("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var o=0;o<n.length;++o)e.push(n.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,s=Math.ceil(i/16),a=new Array(s),u=0;u<s;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=e[64*u+4*l]<<24|e[64*u+4*l+1]<<16|e[64*u+4*l+2]<<8|e[64*u+4*l+3];a[u]=c}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<s;++f){for(var p=new Uint32Array(80),d=0;d<16;++d)p[d]=a[f][d];for(var h=16;h<80;++h)p[h]=oe(p[h-3]^p[h-8]^p[h-14]^p[h-16],1);for(var y=r[0],v=r[1],g=r[2],m=r[3],w=r[4],E=0;E<80;++E)var b=Math.floor(E/20),b=oe(y,5)+function(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:return t^r^n;case 2:return t&r^t&n^r&n;case 3:return t^r^n}}(b,v,g,m)+w+t[b]+p[E]>>>0,w=m,m=g,g=oe(v,30)>>>0,v=y,y=b;r[0]=r[0]+y>>>0,r[1]=r[1]+v>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+m>>>0,r[4]=r[4]+w>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]});var se,r=M(Object.freeze({__proto__:null,v1:function(e,t,r){var n=t&&r||0,o=t||new Array(16),i=(e=e||{}).node||K,r=void 0!==e.clockseq?e.clockseq:z,s=(null!=i&&null!=r||(s=e.random||(e.rng||F)(),null==i&&(i=K=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==r&&(r=z=16383&(s[6]<<8|s[7]))),void 0!==e.msecs?e.msecs:Date.now()),a=void 0!==e.nsecs?e.nsecs:X+1,u=s-$+(a-X)/1e4;if(u<0&&void 0===e.clockseq&&(r=r+1&16383),1e4<=(a=(u<0||$<s)&&void 0===e.nsecs?0:a))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");$=s,z=r,u=(1e4*(268435455&(s+=122192928e5))+(X=a))%4294967296,o[n++]=u>>>24&255,o[n++]=u>>>16&255,o[n++]=u>>>8&255,o[n++]=255&u,e=s/4294967296*1e4&268435455,o[n++]=e>>>8&255,o[n++]=255&e,o[n++]=e>>>24&15|16,o[n++]=e>>>16&255,o[n++]=r>>>8|128,o[n++]=255&r;for(var c=0;c<6;++c)o[n+c]=i[c];return t||q(o)},v3:r,v4:function(e,t,r){var n=(e=e||{}).random||(e.rng||F)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return q(n)},v5:ie,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(H(e))return parseInt(e.substr(14,1),16);throw TypeError("Invalid UUID")},validate:H,stringify:q,parse:Y})),ae=(l.setUserId=void 0,l.sanitizeUser=void 0,l.sanitizeProperties=void 0,l.sanitizeIdentifiers=void 0,l.sanitizeIdentifier=void 0,l.removeUserId=void 0,l.isValidPropertyValueType=void 0,l.isValidPropertyKeyType=void 0,l.isValidIdentifierType=void 0,l.getUserId=void 0,l.Version=void 0,l.Variation=void 0,l.TargetingType=void 0,l.TargetRule=void 0,l.TargetMatch=void 0,l.TargetKey=void 0,l.TargetCondition=void 0,l.TargetAction=void 0,l.Target=void 0,l.TARGET_KEY_TYPES=void 0,l.TARGET_ACTION_TYPES=void 0,l.Slot=void 0,l.Segment=void 0,l.SEGMENT_TYPES=void 0,l.RemoteConfigTargetRule=void 0,l.RemoteConfigParameterValue=void 0,l.RemoteConfigParameter=void 0,l.RemoteConfigDecision=void 0,l.ParameterConfiguration=void 0,l.MetaVersion=void 0,l.MATCH_VALUE_TYPES=void 0,l.MATCH_TYPES=void 0,l.MATCH_OPERATORS=void 0,l.Logger=void 0,l.IdentifiersBuilder=void 0,l.IdentifierType=void 0,l.FeatureFlagDecision=void 0,l.Experiment=void 0,l.EventType=void 0,l.EmptyParameterConfig=void 0,l.EmptyHackleRemoteConfig=void 0,l.DecisionReason=void 0,l.Decision=void 0,l.CoreVersion=void 0,l.ContainerGroup=void 0,l.Container=void 0,l.Bucket=void 0,Object.defineProperty(t,"__esModule",{value:!0}),r),ue=function(e,t){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function ce(e,t){function r(){this.constructor=e}ue(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var d=function(){return(d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function le(e,s,a,u){return new(a=a||Promise)(function(r,t){function n(e){try{i(u.next(e))}catch(e){t(e)}}function o(e){try{i(u.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((u=u.apply(e,s||[])).next())})}function fe(n,o){var i,s,a,u={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,s&&(a=2&t[0]?s.return:t[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,t[1])).done)return a;switch(s=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,s=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!((a=0<(a=u.trys).length&&a[a.length-1])||6!==t[0]&&2!==t[0])){u=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){u.label=t[1];break}if(6===t[0]&&u.label<a[1]){u.label=a[1],a=t;break}if(a&&u.label<a[2]){u.label=a[2],u.ops.push(t);break}a[2]&&u.ops.pop(),u.trys.pop();continue}t=o.call(n,u)}catch(e){t=[6,e],s=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}ge.setLogLevel=function(e){this.logLevel=e=void 0===e?3:e},ge._log=function(e,t){var r;switch(e){case"WARN":r="orange";break;case"ERROR":r="red";break;default:r="#AAAAAA"}if(t instanceof Error)de.log(e,r,t.message,t);else try{de.log(e,r,t)}catch(e){}},ge.logLevel=3,ge.log={error:function(e){1<=ge.logLevel&&ge._log("ERROR",e)},warn:function(e){2<=ge.logLevel&&ge._log("WARN",e)},info:function(e){3<=ge.logLevel&&ge._log("INFO",e)},debug:function(e){4<=ge.logLevel&&ge._log("DEBUG",e)}};var pe=ge,de=(ve.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},ve),he=[0,8,16,32,64,128,256,512],ye=pe.log;function ve(){}function ge(){}function me(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}function we(e,t,r,n){this.id=e,this.key=t,this.isDropped=r,this.parameterConfigurationId=n}function Ee(e,t,r){this.seed=e,this.slotSize=t,this.slots=r}function be(e,t){this.id=e,this.key=t}function Te(e){var t,r={};return r.id=null!=(t=Ye(e.id))?t:void 0,r.userId=null!=(t=Ye(e.userId))?t:void 0,r.deviceId=null!=(t=Ye(e.deviceId))?t:void 0,"object"==typeof e.properties&&(r.properties=_e(e.properties)),"object"==typeof e.identifiers&&(r.identifiers=Re(e.identifiers)),Boolean(r.id||r.userId||r.deviceId||r.identifiers&&0<Object.keys(r.identifiers).length)?r:null}function _e(e){var r={};return Object.entries(e).forEach(function(e){var t=e[0],e=e[1];$e(t)&&qe(e)?r[t]=e:Le.debug("Invalid property. Property key must be 'string' type and value must be 'string' or 'number' or 'boolean' type. [key=".concat(t,", value=").concat(e,"]"))}),r}function Re(e){var n={};return Object.entries(e).forEach(function(e){var t=e[0],e=e[1],r=Ye(e);Xe(t)&&r?n[t]=r:Le.debug("Invalid identifier. Identifier type must be 'string' type and value must be 'string' type. [type=".concat(t,", value=").concat(e,"]"))}),n}function Ie(e){this.conditions=e}function Oe(e,t){this.key=e,this.match=t}function Se(e,t){this.type=e,this.name=t}function Ce(e,t,r,n){this.type=e,this.operator=t,this.valueType=r,this.values=n}function Ne(e,t,r){this.type=e,this.variationId=t,this.bucketId=r}function Ae(e,t){this.target=e,this.action=t}function ke(e,t,r,n){this.id=e,this.key=t,this.type=r,this.targets=n}function xe(e,t){this.id=e,this.experiments=t}function Pe(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 Ue(e,t,r,n,o){this.key=e,this.name=t,this.target=r,this.bucketId=n,this.value=o}function De(e,t){this.id=e,this.rawValue=t}var Me={getRequest:function(n,o){return{abort:function(){},responsePromise:new Promise(function(e,t){var r=new XMLHttpRequest;r.open("GET",n),r.onreadystatechange=function(){r.readyState===r.DONE&&(0===r.status?t(new Error("Request error")):e({statusCode:r.status,body:r.responseText}))},r.onerror=function(){t()},r.setRequestHeader("content-type","application/json"),me(r,o),r.send()})}},postRequest:function(e,t,r,n,o){var t=JSON.stringify(t),i=new XMLHttpRequest;i.open("POST",e),i.onreadystatechange=function(){i.readyState===i.DONE&&(200<=i.status&&i.status<400?n({statusCode:i.status}):o&&o({statusCode:i.status}))},i.setRequestHeader("content-type","application/json"),me(i,r),i.send(t)},sendBeacon:function(e,t,r,n,o){var i=!1;(i="undefined"!=typeof window?window&&window.navigator&&window.navigator.sendBeacon&&!0:i)?(i=JSON.stringify(t),(t=new URLSearchParams).append("sdkName",r["X-HACKLE-SDK-NAME"]),t.append("sdkVersion",r["X-HACKLE-SDK-VERSION"]),t.append("data",i),window.navigator.sendBeacon(e,t),n()):(ye.error("Does not support sendBeacon"),o())}},a=(ct.isNotNullOrUndefined=function(e){return null!=e},ct.isNullOrUndefined=function(e){return null==e},ct.requiredNotNullOrUndefined=function(e,t){if(void 0===t&&(t=function(){return"Required value is null or undefined"}),this.isNullOrUndefined(e))throw new Error(t());return e},ct),Le=pe.log,je=(ut.of=function(e,t){return new ut(e,t)},ut),Fe=(at.of=function(e,t,r){return new at(e,t,r=void 0===r?new He:r)},at.prototype.get=function(e,t){return this.config.get(e,t)},at),Ve=(st.on=function(e,t){return new st(!0,e,t=void 0===t?new He:t)},st.off=function(e,t){return new st(!1,e,t=void 0===t?new He:t)},st.prototype.get=function(e,t){return this.config.get(e,t)},st),ie=(it.prototype.get=function(e,t){return t},it),He=(ot.prototype.get=function(e,t){return t},ot),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),Ke=(nt.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},nt.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},nt.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},nt),ze=(rt.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},rt),Ge=(tt.ID="$id",tt.USER="$userId",tt.DEVICE="$deviceId",tt.SESSION="$sessionId",tt.HACKLE_DEVICE="$hackleDeviceId",tt),Be=(et.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},et.prototype.add=function(e,t){var r=Ye(t);return Xe(e)&&r?this.identifiers[e]=t:Le.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},et.prototype.build=function(){return this.identifiers},et),qe=function(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e},$e=function(e){return"string"==typeof e},Xe=function(e){return"string"==typeof e&&e.length<=128&&""!==e.trim()},Ye=function(e){return"string"==typeof e&&e.length<=512&&""!==e.trim()?e:"number"==typeof e?e.toString():null},We=(Ze.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},Ze),Je=(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 Ze(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function et(){this.identifiers={}}function tt(){}function rt(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function nt(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 ot(){}function it(){}function st(e,t,r){this.isOn=e,this.reason=t,this.config=r}function at(e,t,r){this.variation=e,this.reason=t,this.config=r}function ut(e,t){this.value=e,this.reason=t}function ct(){}Ht.tryParse=function(e){var t,r,n,o,e=Ht.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 Ht(new ht(parseInt(t,10),parseInt(r,10),parseInt(n,10)),yt.parse(o),yt.parse(e))},Ht.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},Ht.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},Ht.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},Ht.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},Ht.prototype.isLessThan=function(e){return this.compareTo(e)<0},Ht.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},Ht.regExp=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*))?(?:\.(0|[1-9]\d*))?(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;var lt,ft,pt,dt=Ht,ht=(Vt.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},Vt),yt=(Ft.parse=function(e){return e?new Ft(e.split(".")):Ft.EMPTY},Ft.prototype.isEmpty=function(){return 0===this.identifiers.length},Ft.prototype.isNotEmpty=function(){return!this.isEmpty()},Ft.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},Ft.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=Ft.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},Ft.compareIdentifiers=function(e,t){return Ft.numericIdentifierRegExp.test(e)&&Ft.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},Ft.EMPTY=new Ft([]),Ft.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,Ft),vt=["MATCH","NOT_MATCH"],gt=["STRING","NUMBER","BOOLEAN","VERSION","JSON","NULL","UNKNOWN"],mt=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],wt=["VARIATION","BUCKET"],Et=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT"],bt=["USER_ID","USER_PROPERTY"],Tt=(jt.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},jt.IDENTIFIER=new jt("SEGMENT"),jt.PROPERTY=new jt("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY"),jt.SEGMENT=new jt("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),jt),_t=pe.log,Rt=(Lt.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}},Lt.prototype._get=function(e,t,r){try{if(a.isNullOrUndefined(e))return je.of(r,u.INVALID_INPUT);var n=this.hackleUserResolver.resolveCurrentUser();return this.client._remoteConfig(e,n,t,r)}catch(t){return _t.error("Unexpected exception while deciding remote config parameter[".concat(e,"]. Returning default value. : ").concat(t)),je.of(r,u.EXCEPTION)}},Lt),i=pe.log,It=(Mt.prototype.getSessionId=function(){return this.sessionManager.sessionId},Mt.prototype.getUser=function(){return this.userManager.currentUser},Mt.prototype.setUser=function(e){try{var t=Te(e);if(!t)return void i.warn("invalid user");this.userManager.setUser(t)}catch(e){i.error("Unexpected exception while set user: ".concat(e))}},Mt.prototype.setUserId=function(e){try{void 0===e&&this.userManager.setUserId(void 0);var t=Ye(e);if(!t)return void i.warn("Invalid userId. [userId=".concat(e,"]"));this.userManager.setUserId(t)}catch(e){i.error("Unexpected exception while set userId: ".concat(e))}},Mt.prototype.setDeviceId=function(e){try{if(!Ye(e))return void i.warn("Invalid deviceId. [deviceId=".concat(e,"]"));this.userManager.setDeviceId(e)}catch(e){i.error("Unexpected exception while set deviceId: ".concat(e))}},Mt.prototype.setUserProperty=function(e,t){try{if(!$e(e))return void i.warn("Invalid property key. [key=".concat(e,"]"));if(!qe(t))return void i.warn("Invalid property value. [key=".concat(t,"]"));this.userManager.setUserProperty(e,t)}catch(e){i.error("Unexpected exception while set userProperty: ".concat(e))}},Mt.prototype.setUserProperties=function(e){try{var t=_e(e);this.userManager.setUserProperties(t)}catch(e){i.error("Unexpected exception while set userProperties: ".concat(e))}},Mt.prototype.resetUser=function(){try{this.userManager.resetUser()}catch(e){i.error("Unexpected exception while reset user: ".concat(e))}},Mt.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},Mt.prototype.variationDetail=function(e,t,r){r=r||"A";try{var n=this.userManager.resolveCurrentOrNull(t);if(!n)return i.warn("invalid user"),Fe.of(r,u.INVALID_INPUT);var o=this.hackleUserResolver.resolve(n);return this.hackleInternalClient._experiment(e,o,r)}catch(t){return i.error("Unexpected exception while deciding variation for experiment[".concat(e,"]. Returning default variation[").concat(r,"] : ").concat(t)),Fe.of(r,u.EXCEPTION)}},Mt.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},Mt.prototype.featureFlagDetail=function(e,t){try{var r=this.userManager.resolveCurrentOrNull(t);if(!r)return i.warn("invalid user"),Ve.off(u.INVALID_INPUT);var n=this.hackleUserResolver.resolve(r);return this.hackleInternalClient._featureFlag(e,n)}catch(t){return i.error("Unexpected exception while deciding feature flag[".concat(e,"]. Returning default value[false] : ").concat(t)),Ve.off(u.EXCEPTION)}},Mt.prototype.track=function(e,t){try{i.debug("track event : ".concat(JSON.stringify(e)));var r=this._convertEvent(e),n=this.userManager.resolveCurrentOrNull(t);if(!n)return void i.warn("invalid user");var o=this.hackleUserResolver.resolve(n);this.hackleInternalClient._track(r,o)}catch(e){i.error("Unexpected exception while tracking event: $t")}},Mt.prototype.trackPageView=function(e){i.debug("tracking page view");var t=this.hackleUserResolver.resolve(this.userManager.currentUser);this.hackleInternalClient._track({key:"$page_view"},t)},Mt.prototype.remoteConfig=function(e){return new Rt(this.hackleInternalClient,this.userManager,this.hackleUserResolver,e)},Mt.prototype.onReady=function(e,t){this.hackleInternalClient._onReady(e,t=void 0===t?3e3:t)},Mt.prototype.onInitialized=function(e){return this.hackleInternalClient._onInitialized({timeout:null==e?void 0:e.timeout})},Mt.prototype.close=function(){i.debug("Hackle Client is closing"),this.hackleInternalClient._close()},Mt.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},Mt),Ot=(Dt.filteredProperties=function(r){var n=this;return Object.keys(r).filter(function(e){return n.validProperty(e,r[e])}).reduce(function(e,t){return d(d({},e),((e={})[t]=n.filteredPropertiesValue(t,r[t]),e))},{})},Dt.filteredPropertiesValue=function(e,t){return!e.startsWith(Dt.SYSTEM_PROPERTY_KEY_PREFIX)&&"string"==typeof t&&1024<t.length?t.slice(0,1024):t},Dt.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))},Dt.SYSTEM_PROPERTY_KEY_PREFIX="$",Dt),St=(Ut.exposure=function(e,t,r){return new Ct((new Date).getTime(),t,e,r.variationId,r.variationKey,r.reason,this.exposureProperties(r))},Ut.exposureProperties=function(e){return a.isNotNullOrUndefined(e.config)?{$parameterConfigurationId:e.config.id}:{}},Ut.track=function(e,t,r,n){return new Nt(n,r,e,t)},Ut.remoteConfig=function(e,t,r){return new At((new Date).getTime(),t,e,r)},Ut.isExposure=function(e){return void 0!==e.experiment},Ut.isTrack=function(e){return void 0!==e.eventType},Ut.isRemoteConfig=function(e){return void 0!==e.remoteConfigParameter},Ut.isExposureDto=function(e){return"experimentId"in e&&void 0!==e.experimentId},Ut.isTrackDto=function(e){return"eventTypeId"in e&&void 0!==e.eventTypeId},Ut.isRemoteConfigDto=function(e){return"parameterId"in e&&void 0!==e.parameterId},Ut.prototype.toDto=function(){return{insertId:this.insertId,timestamp:this.timestamp,userId:this.user.identifiers[Ge.ID],identifiers:this.user.identifiers,userProperties:Ot.filteredProperties(this.user.properties),hackleProperties:Ot.filteredProperties(this.user.hackleProperties)}},Ut),Ct=(ce(Pt,pt=St),Pt.prototype.copyWithUser=function(e){return new Pt(this.timestamp,e,this.experiment,this.variationId,this.variationKey,this.decisionReason,this.properties,this.insertId)},Pt.prototype.toDto=function(){return d(d({},pt.prototype.toDto.call(this)),{experimentId:this.experiment.id,experimentKey:this.experiment.key,experimentType:this.experiment.type,experimentVersion:this.experiment.version,variationId:this.variationId,variationKey:this.variationKey,decisionReason:this.decisionReason.toString(),properties:this.properties})},Pt),Nt=(ce(xt,ft=St),xt.prototype.copyWithUser=function(e){return new xt(this.timestamp,e,this.eventType,this.event,this.insertId)},xt.prototype.toDto=function(){return d(d({},ft.prototype.toDto.call(this)),{eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:Ot.filteredProperties(this.event.properties||{})})},xt),At=(ce(kt,lt=St),kt.prototype.copyWithUser=function(e){return new kt(this.timestamp,e,this.remoteConfigParameter,this.evaluation,this.insertId)},kt.prototype.toDto=function(){return d(d({},lt.prototype.toDto.call(this)),{parameterId:this.remoteConfigParameter.id,parameterKey:this.remoteConfigParameter.key,parameterType:this.remoteConfigParameter.type,valueId:this.evaluation.valueId,decisionReason:this.evaluation.reason.toString(),properties:Ot.filteredProperties(this.evaluation.properties)})},kt);function kt(e,t,r,n,o){e=lt.call(this,e,t,o)||this;return e.remoteConfigParameter=r,e.evaluation=n,e}function xt(e,t,r,n,o){e=ft.call(this,e,t,o)||this;return e.eventType=r,e.event=n,e}function Pt(e,t,r,n,o,i,s,a){e=pt.call(this,e,t,a)||this;return e.experiment=r,e.variationId=n,e.variationKey=o,e.decisionReason=i,e.properties=s,e}function Ut(e,t,r){void 0===r&&(r=ae.v4()),this.timestamp=e,this.user=t,this.insertId=r}function Dt(){}function Mt(e,t,r,n){this.hackleInternalClient=e,this.hackleUserResolver=t,this.sessionManager=r,this.userManager=n}function Lt(e,t,r,n){this.client=e,this.userManager=t,this.hackleUserResolver=r,this.user=n}function jt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function Ft(e){this.identifiers=e}function Vt(e,t,r){this.major=e,this.minor=t,this.patch=r}function Ht(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}function Kt(e){var t=new Array,r=new Array,n=new Array;return e.forEach(function(e){e instanceof St?St.isExposure(e)?t.push(e.toDto()):St.isTrack(e)?r.push(e.toDto()):St.isRemoteConfig(e)&&n.push(e.toDto()):St.isExposureDto(e)?t.push(e):St.isTrackDto(e)?r.push(e):St.isRemoteConfigDto(e)&&n.push(e)}),{exposureEvents:t,trackEvents:r,remoteConfigEvents:n}}cr.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(),Kt(e));this.httpRequest.postRequest(this.dispatchUrl,e,n,t,r)},cr.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=Kt(e),this.httpRequest.sendBeacon(this.beaconDispatchUrl,o,n,t,r)):this.dispatch(e,t,r)};var zt=cr,Gt=(ur.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},ur.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},ur.associate=function(e,t){return this.associateTo(e,new Map,t)},ur.associateBy=function(e,t){return this.associate(e,function(e){return[t(e),e]})},ur),Bt=pe.log,qt=(v.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},v.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},v.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},v.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},v.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},v.prototype.getContainerOrNull=function(e){return this.containers.get(e)},v.prototype.getParameterConfigurationOrNull=function(e){return this.parameterConfigurations.get(e)},v.prototype.getRemoteConfigParameterOrNull=function(e){return this.remoteConfigParameters.get(e)},v.from=function(e){var t=this,r=Gt.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]});return new v(Gt.associateBy(Gt.mapNotNullOrUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),Gt.associateBy(Gt.mapNotNullOrUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),r,Gt.associate(e.events,function(e){return[e.key,new be(e.id,e.key)]}),Gt.associateBy(Gt.mapNotNullOrUndefined(e.segments,function(e){return t.toSegmentOrNull(e)}),function(e){return e.key}),Gt.associate(e.containers,function(e){return[e.id,t.toContainer(e)]}),Gt.associate(e.parameterConfigurations,function(e){return[e.id,t.toParameterConfiguration(e)]}),Gt.associateBy(Gt.mapNotNullOrUndefined(e.remoteConfigParameters,function(e){return t.toRemoteConfigParameterOrNull(e)}),function(e){return e.key}))},v.toBucket=function(e){return new Ee(e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new ze(t,r,e)}))},v.toExperimentOrNull=function(e,t){var r=this,n=this.experimentStatusOrNull(t.execution.status),o=t.variations.map(function(e){return new we(e.id,e.key,"DROPPED"===e.status,e.parameterConfigurationId)}),i=Gt.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),s=Gt.mapNotNullOrUndefined(t.execution.segmentOverrides,function(e){return r.toTargetRuleOrNull(e,Tt.IDENTIFIER)}),a=Gt.mapNotNullOrUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e,Tt.PROPERTY)}),u=Gt.mapNotNullOrUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e,Tt.PROPERTY)}),c=this.toTargetActionOrNull(t.execution.defaultRule);return n&&c&&new Ke(t.id,t.key,e,t.identifierType,n,t.version,o,i,s,a,u,c,t.containerId,t.winnerVariationId)},v.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void Bt.debug("Unsupported status [".concat(e,"]"))}},v.toTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t),e=this.toTargetActionOrNull(e.action);return t&&e&&new Ae(t,e)},v.toTargetActionOrNull=function(e){var t=this.parseOrNull(wt,e.type);return t&&new Ne(t,e.variationId,e.bucketId)},v.toTargetOrNull=function(e,t){var r=this,e=Gt.mapNotNullOrUndefined(e.conditions,function(e){return r.toConditionOrNull(e,t)});return new Ie(e)},v.toConditionOrNull=function(e,t){var r=this.toTargetKeyOrNull(e.key);if(r&&t.supports(r.type))return(t=this.toTargetMatchOrNull(e.match))&&new Oe(r,t)},v.toTargetKeyOrNull=function(e){var t=this.parseOrNull(Et,e.type);return t&&new Se(t,e.name)},v.toTargetMatchOrNull=function(e){var t=this.parseOrNull(vt,e.type),r=this.parseOrNull(mt,e.operator),n=this.parseOrNull(gt,e.valueType);return t&&r&&n&&new Ce(t,r,n,e.values)},v.toSegmentOrNull=function(e){var t=this,r=this.parseOrNull(bt,e.type);return r&&new ke(e.id,e.key,r,Gt.mapNotNullOrUndefined(e.targets,function(e){return t.toTargetOrNull(e,Tt.SEGMENT)}))},v.toContainer=function(e){var t=this;return new We(e.id,e.bucketId,e.groups.map(function(e){return t.toContainerGroup(e)}))},v.toContainerGroup=function(e){return new xe(e.id,e.experiments)},v.toParameterConfiguration=function(e){return new Je(e.id,Gt.associate(e.parameters,function(e){return[e.key,e.value]}))},v.toRemoteConfigParameterOrNull=function(e){var t=this,r=this.parseOrNull(gt,e.type),n=Gt.mapNotNullOrUndefined(e.targetRules,function(e){return t.toRemoteConfigTargetRuleOrNull(e,Tt.PROPERTY)}),o=this.toRemoteConfigParameterValueOrNull(e.defaultValue);return r&&new Pe(e.id,e.key,r,e.identifierType,n,o)},v.toRemoteConfigTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t);return t&&new Ue(e.key,e.name,t,e.bucketId,this.toRemoteConfigParameterValueOrNull(e.value))},v.toRemoteConfigParameterValueOrNull=function(e){return new De(e.id,e.value)},v.parseOrNull=function(e,t){e=e.find(function(e){return e===t});return e||Bt.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e},v),$t=(ar.prototype.onReady=function(){return this.readyPromise},ar.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},ar.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()},ar.prototype.get=function(){return this.workspace},ar.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)},ar.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()},ar.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},ar.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=qt.from(e),this.readyPromiseResolver())}},ar.prototype.onRequestRejected=function(e){this.isStarted&&(this.errorRetryController.countError(),console.error("Error fetching data",e))},ar.prototype.close=function(){this.stop()},ar),Xt=(sr.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*he[Math.min(he.length-1,this.errorCount)]+Math.round(1e3*Math.random())},sr.prototype.countError=function(){this.errorCount<he.length-1&&this.errorCount++},sr.prototype.reset=function(){this.errorCount=0},sr),r="model",o="name",s="type",c="vendor",f="version",p="mobile",h="tablet",Yt=(y.parse=function(e){return{browser:y.getBrowser(e),cpu:y.getCPU(e),device:y.getDevice(e),engine:y.getEngine(e),os:y.getOS(e)}},y.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return y.mapper.rgx.call(t,e,y.regexes.browser),t.major=y.util.major(t.version),t},y.getCPU=function(e){var t={architecture:void 0};return y.mapper.rgx.call(t,e,y.regexes.cpu),t},y.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return y.mapper.rgx.call(t,e,y.regexes.device),t},y.getEngine=function(e){var t={name:void 0,version:void 0};return y.mapper.rgx.call(t,e,y.regexes.os),t},y.getOS=function(e){var t={name:void 0,version:void 0};return y.mapper.rgx.call(t,e,y.regexes.os),t},y.util={extend:function(e,t){var r,n={};for(r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},y.regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[o,f],[/(opios)[\/\s]+([\w\.]+)/i],[[o,"Opera Mini"],f],[/\s(opr)\/([\w\.]+)/i],[[o,"Opera"],f],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[o,f],[/(konqueror)\/([\w\.]+)/i],[[o,"Konqueror"],f],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[o,"IE"],f],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[o,"Edge"],f],[/(yabrowser)\/([\w\.]+)/i],[[o,"Yandex"],f],[/(Avast)\/([\w\.]+)/i],[[o,"Avast Secure Browser"],f],[/(AVG)\/([\w\.]+)/i],[[o,"AVG Secure Browser"],f],[/(puffin)\/([\w\.]+)/i],[[o,"Puffin"],f],[/(focus)\/([\w\.]+)/i],[[o,"Firefox Focus"],f],[/(opt)\/([\w\.]+)/i],[[o,"Opera Touch"],f],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[o,"UCBrowser"],f],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],f],[/(windowswechat qbcore)\/([\w\.]+)/i],[[o,"WeChat(Win) Desktop"],f],[/(micromessenger)\/([\w\.]+)/i],[[o,"WeChat"],f],[/(brave)\/([\w\.]+)/i],[[o,"Brave"],f],[/(whale)\/([\w\.]+)/i],[[o,"Whale"],f],[/(qqbrowserlite)\/([\w\.]+)/i],[o,f],[/(QQ)\/([\d\.]+)/i],[o,f],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[o,f],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[o,f],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[o,f],[/(MetaSr)[\/\s]?([\w\.]+)/i],[o],[/(LBBROWSER)/i],[o],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[f,[o,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[f,[o,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[o,f],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[f,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,/(.+)/,"$1 WebView"],f],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[o,/(.+(?:g|us))(.+)/,"$1 $2"],f],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[o,"Chrome Mobile"],f],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[f,[o,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[o,"Sailfish Browser"],f],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,f],[/(dolfin)\/([\w\.]+)/i],[[o,"Dolphin"],f],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[o,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[o,"Opera Coast"],f],[/fxios\/([\w\.-]+)/i],[f,[o,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[f,[o,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[f,o],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[o,"GSA"],f],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[f,(y.mapper={rgx:function(e,t){for(var r,n,o,i,s,a=0;a<t.length&&!i;){for(var u=t[a],c=t[a+1],l=r=0;l<u.length&&!i;)if(i=u[l++].exec(e))for(n=0;n<c.length;n++)s=i[++r],"object"==typeof(o=c[n])&&0<o.length?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=s?s.replace(o[1],o[2]):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0:4==o.length&&(this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0):this[o]=s||void 0;a+=2}},str:function(e,t){for(var r in t)if("object"==typeof t[r]&&0<t[r].length){for(var n=0;n<t[r].length;n++)if(y.util.has(t[r][n],e))return"?"===r?void 0:r}else if(y.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(y.maps={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}}).browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[o,f],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],f],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[o,f]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",y.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",y.util.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",y.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[r,c,[s,h]],[/applecoremedia\/[\w\.]+ \((ipad)/],[r,[c,"Apple"],[s,h]],[/(apple\s{0,1}tv)/i],[[r,"Apple TV"],[c,"Apple"],[s,"smarttv"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[c,r,[s,h]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[r,[c,"Amazon"],[s,h]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[r,y.mapper.str,y.maps.device.amazon.model],[c,"Amazon"],[s,p]],[/android.+aft([bms])\sbuild/i],[r,[c,"Amazon"],[s,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[r,c,[s,p]],[/\((ip[honed|\s\w*]+);/i],[r,[c,"Apple"],[s,p]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[c,r,[s,p]],[/\(bb10;\s(\w+)/i],[r,[c,"BlackBerry"],[s,p]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[r,[c,"Asus"],[s,h]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[c,"Sony"],[r,"Xperia Tablet"],[s,h]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[c,"Sony"],[s,p]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[c,r,[s,"console"]],[/android.+;\s(shield)\sbuild/i],[r,[c,"Nvidia"],[s,"console"]],[/(playstation\s[34portablevi]+)/i],[r,[c,"Sony"],[s,"console"]],[/(sprint\s(\w+))/i],[[c,y.mapper.str,y.maps.device.sprint.vendor],[r,y.mapper.str,y.maps.device.sprint.model],[s,p]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[c,[r,/_/g," "],[s,p]],[/(nexus\s9)/i],[r,[c,"HTC"],[s,h]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[r,[c,"Huawei"],[s,p]],[/android.+(bah2?-a?[lw]\d{2})/i],[r,[c,"Huawei"],[s,h]],[/(microsoft);\s(lumia[\s\w]+)/i],[c,r,[s,p]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[r,[c,"Microsoft"],[s,"console"]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[c,"Microsoft"],[s,p]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[r,[c,"Motorola"],[s,p]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[r,[c,"Motorola"],[s,h]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[c,y.util.trim],[r,y.util.trim],[s,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[c,"Samsung"],[s,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[r,[c,"Sharp"],[s,"smarttv"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[c,"Samsung"],r,[s,h]],[/smart-tv.+(samsung)/i],[c,[s,"smarttv"],r],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[c,"Samsung"],r,[s,p]],[/sie-(\w*)/i],[r,[c,"Siemens"],[s,p]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[c,"Nokia"],r,[s,p]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[r,[c,"Acer"],[s,h]],[/android.+([vl]k\-?\d{3})\s+build/i],[r,[c,"LG"],[s,h]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[c,"LG"],r,[s,h]],[/(lg) netcast\.tv/i],[c,r,[s,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[r,[c,"LG"],[s,p]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[c,r,[s,h]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[r,[c,"Lenovo"],[s,h]],[/(lenovo)[_\s-]?([\w-]+)/i],[c,r,[s,p]],[/linux;.+((jolla));/i],[c,r,[s,p]],[/((pebble))app\/[\d\.]+\s/i],[c,r,[s,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[c,r,[s,p]],[/crkey/i],[[r,"Chromecast"],[c,"Google"],[s,"smarttv"]],[/android.+;\s(glass)\s\d/i],[r,[c,"Google"],[s,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[r,[c,"Google"],[s,h]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[r,[c,"Google"],[s,p]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[c,"Xiaomi"],[s,p]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[c,"Xiaomi"],[s,h]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[r,[c,"Meizu"],[s,p]],[/(mz)-([\w-]{2,})/i],[[c,"Meizu"],r,[s,p]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[r,[c,"OnePlus"],[s,p]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[r,[c,"RCA"],[s,h]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[r,[c,"Dell"],[s,h]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[r,[c,"Verizon"],[s,h]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[c,"Barnes & Noble"],r,[s,h]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[r,[c,"NuVision"],[s,h]],[/android.+;\s(k88)\sbuild/i],[r,[c,"ZTE"],[s,h]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[r,[c,"Swiss"],[s,p]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[r,[c,"Swiss"],[s,h]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[r,[c,"Zeki"],[s,h]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[c,"Dragon Touch"],r,[s,h]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[r,[c,"Insignia"],[s,h]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[r,[c,"NextBook"],[s,h]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[c,"Voice"],r,[s,p]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[c,"LvTel"],r,[s,p]],[/android.+;\s(PH-1)\s/i],[r,[c,"Essential"],[s,p]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[r,[c,"Envizen"],[s,h]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[c,r,[s,h]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[r,[c,"MachSpeed"],[s,h]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[c,r,[s,h]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[r,[c,"Rotor"],[s,h]],[/android.+(KS(.+))\s+build/i],[r,[c,"Amazon"],[s,h]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[c,r,[s,h]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[s,y.util.lowerize],c,r],[/[\s\/\(](smart-?tv)[;\)]/i],[[s,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[r,[c,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[f,[o,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[o,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[o,f],[/rv\:([\w\.]{1,9}).+(gecko)/i],[f,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,f],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[[o,y.mapper.str,y.maps.os.windows],[f,y.mapper.str,y.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[f,y.mapper.str,y.maps.os.windows.version]],[/\((bb)(10);/i],[[o,"BlackBerry"],f],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[o,f],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[o,"Symbian"],f],[/\((series40);/i],[o],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"],f],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[[o,"Linux"],f],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],f],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],f],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[o,"Linux"],f],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPhone"],[f,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPad"],[f,/_/g,"."]],[/(haiku)\s(\w+)/i],[o,f],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[f,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[o,"Mac"],[f,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[o,f]]},y),Wt=(ir.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=Yt.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||""}},ir),Jt=(or.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]:""},or.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},or.prototype.setItem=function(e,t,r){var r=d(d({},this.options),r),n=r.isSecure,o="",i="",s="",a=(r.isCrossSubdomain&&(o=(a=or.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},or.prototype.removeItem=function(e,t){this.setItem(e,"",d(d({},t),{days:-1}))},new or({days:3650,isCrossSubdomain:!0})),Qt=(nr.prototype.getQueryParam=function(e){return this.getQueryParams(function(){return!0})[e]||""},nr.prototype.getQueryParams=function(e){for(var t={},r=0,n=this.search.substring(1).split("&");r<n.length;r++){var o=n[r].split("="),i=o[0],o=o[1];e(i,o)&&(t[i]=decodeURIComponent(o))}return t},nr),Zt=(rr.prototype.resolve=function(e){var t=lr(),t=(new Be).addIdentifiers(e.identifiers||{}).add(Ge.ID,e.id||t).add(Ge.DEVICE,e.deviceId||t).add(Ge.HACKLE_DEVICE,t);return a.isNotNullOrUndefined(e.userId)&&t.add(Ge.USER,e.userId),{identifiers:t.build(),properties:this._userProperties(e.properties),hackleProperties:this._getHackleProperties()}},rr.prototype.resolveCurrentUser=function(){return this.resolve(this.userManager.currentUser)},rr.prototype._userProperties=function(e){void 0===e&&(e={});var t,r={};return"undefined"!=typeof window&&(t=new Qt(window.location.search),r=d(d({},t.getQueryParams(function(e){return e.startsWith("utm_")})),{gclid:t.getQueryParam("gclid"),fbclid:t.getQueryParam("fbclid")})),d(d({},r),e)},rr.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?Wt.generate(window):e)||{}},rr),er=(tr.initialize=function(){Jt.getItem("_hackle_hid")||dr()},tr.reInitialize=function(){dr()},tr);function tr(){}function rr(e){this.userManager=e,er.initialize()}function nr(e){this.search=e}function or(e){this.options=e=void 0===e?{days:0,isCrossSubdomain:!1,isSecure:!1,isCrossSite:!1}:e}function ir(){}function y(){}function sr(){this.errorCount=0}function ar(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 Xt,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function v(e,t,r,n,o,i,s,a){this.experiments=e,this.featureFlags=t,this.buckets=r,this.eventTypes=n,this.segments=o,this.containers=i,this.parameterConfigurations=s,this.remoteConfigParameters=a}function ur(){}function cr(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 lr(){var e=Jt.getItem("_hackle_id");return e||Jt.getItem("_hackle_hid")||dr()}function fr(e){Jt.setItem("_hackle_id",e)}function pr(){Jt.removeItem("_hackle_id")}function dr(){var e=ae.v4();return Jt.setItem("_hackle_hid",e),e}function hr(e){return e&&e.Math==Math&&e}function g(e){try{return!!e()}catch(e){return!0}}var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},h=hr("object"==typeof globalThis&&globalThis)||hr("object"==typeof window&&window)||hr("object"==typeof self&&self)||hr("object"==typeof p&&p)||function(){return this}()||Function("return this")(),s={},r=!g(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),c=!g(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),yr=Function.prototype.call,o=c?yr.bind(yr):function(){return yr.apply(yr,arguments)},f={},e={}.propertyIsEnumerable,vr=Object.getOwnPropertyDescriptor,p=vr&&!e.call({1:2},1);f.f=p?function(e){e=vr(this,e);return!!e&&e.enumerable}:e;function gr(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function mr(e){return Dr(Ur(e),8,-1)}function wr(e){if(null==e)throw Fr("Can't call method on "+e);return e}function Er(e){return Vr(Hr(e))}function m(e){return"function"==typeof e}function br(e){return"object"==typeof e?null!==e:Kr(e)}function Tr(e,t){return arguments.length<2?(r=zr[e],Gr(r)?r:void 0):zr[e]&&zr[e][t];var r}function _r(e){try{return Zr(e)}catch(e){return"Object"}}function Rr(e){if(en(e))return e;throw rn(tn(e)+" is not a function")}function Ir(e,t){return null==(e=e[t])?void 0:nn(e)}function Or(t,r){try{ln(cn,t,{value:r,configurable:!0,writable:!0})}catch(e){cn[t]=r}return r}function w(e){return hn(dn(e))}function Sr(e){return"Symbol("+(void 0===e?"":e)+")_"+bn(++wn+En,36)}function E(e){var t;return Tn(On,e)&&(Rn||"string"==typeof On[e])||(t="Symbol."+e,Rn&&Tn(Sn,e)?On[e]=Sn[e]:On[e]=(In&&Cn?Cn:Nn)(t)),On[e]}function Cr(e){return e=function(e,t){if(!kn(e)||xn(e))return e;var r=Pn(e,Mn);if(r){if(r=An(r,e,t=void 0===t?"default":t),!kn(r)||xn(r))return r;throw Dn("Can't convert object to primitive value")}return Un(e,t=void 0===t?"number":t)}(e,"string"),Ln(e)?e:e+""}function Nr(e){return Fn?jn.createElement(e):{}}function Ar(e){if(Yn(e))return e;throw Jn(Wn(e)+" is not an object")}var p=c,e=Function.prototype,kr=e.bind,xr=e.call,Pr=p&&kr.bind(xr,xr),e=p?function(e){return e&&Pr(e)}:function(e){return e&&function(){return xr.apply(e,arguments)}},kr=e,Ur=kr({}.toString),Dr=kr("".slice),p=g,Mr=mr,Lr=Object,jr=e("".split),kr=p(function(){return!Lr("z").propertyIsEnumerable(0)})?function(e){return"String"==Mr(e)?jr(e,""):Lr(e)}:Lr,Fr=TypeError,Vr=kr,Hr=wr,Kr=m,zr=h,Gr=m,p=e({}.isPrototypeOf),Br=Tr("navigator","userAgent")||"",b=Br,qr=h.process,T=h.Deno,qr=qr&&qr.versions||T&&T.version,T=qr&&qr.v8,qr=Qr=!(Qr=T?0<(_=T.split("."))[0]&&_[0]<4?1:+(_[0]+_[1]):Qr)&&b&&(!(_=b.match(/Edge\/(\d+)/))||74<=_[1])&&(_=b.match(/Chrome\/(\d+)/))?+_[1]:Qr,$r=qr,T=g,b=!!Object.getOwnPropertySymbols&&!T(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&$r&&$r<41}),_=b&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Xr=Tr,Yr=m,Wr=p,Jr=Object,Qr=_?function(e){return"symbol"==typeof e}:function(e){var t=Xr("Symbol");return Yr(t)&&Wr(t.prototype,Jr(e))},Zr=String,en=m,tn=_r,rn=TypeError,nn=Rr,on=o,sn=m,an=br,un=TypeError,T={exports:{}},cn=h,ln=Object.defineProperty,fn=Or,fn=h["__core-js_shared__"]||fn("__core-js_shared__",{}),pn=fn,dn=((T.exports=function(e,t){return pn[e]||(pn[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"}),wr),hn=Object,yn=w,vn=e({}.hasOwnProperty),gn=Object.hasOwn||function(e,t){return vn(yn(e),t)},mn=e,wn=0,En=Math.random(),bn=mn(1..toString),mn=h,R=T.exports,Tn=gn,_n=Sr,Rn=b,In=_,On=R("wks"),Sn=mn.Symbol,Cn=Sn&&Sn.for,Nn=In?Sn:Sn&&Sn.withoutSetter||_n,An=o,kn=br,xn=Qr,Pn=Ir,Un=function(e,t){var r,n;if("string"===t&&sn(r=e.toString)&&!an(n=on(r,e)))return n;if(sn(r=e.valueOf)&&!an(n=on(r,e)))return n;if("string"!==t&&sn(r=e.toString)&&!an(n=on(r,e)))return n;throw un("Can't convert object to primitive value")},Dn=TypeError,Mn=E("toPrimitive"),Ln=Qr,b=br,jn=h.document,Fn=b(jn)&&b(jn.createElement),Vn=Nr,_=!r&&!g(function(){return 7!=Object.defineProperty(Vn("div"),"a",{get:function(){return 7}}).a}),Hn=o,Kn=f,zn=gr,Gn=Er,Bn=Cr,qn=gn,$n=_,Xn=Object.getOwnPropertyDescriptor,R=(s.f=r?Xn:function(e,t){if(e=Gn(e),t=Bn(t),$n)try{return Xn(e,t)}catch(e){}if(qn(e,t))return zn(!Hn(Kn.f,e,t),e[t])},{}),mn=r&&g(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Yn=br,Wn=String,Jn=TypeError,Qn=_,Zn=Ar,eo=Cr,to=TypeError,ro=Object.defineProperty,no=Object.getOwnPropertyDescriptor,oo=(R.f=r?mn?function(e,t,r){var n;return Zn(e),t=eo(t),Zn(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=no(e,t))&&n.writable&&(e[t]=r.value,r={configurable:("configurable"in r?r:n).configurable,enumerable:("enumerable"in r?r:n).enumerable,writable:!1}),ro(e,t,r)}:ro:function(e,t,r){if(Zn(e),t=eo(t),Zn(r),Qn)try{return ro(e,t,r)}catch(e){}if("get"in r||"set"in r)throw to("Accessors not supported");return"value"in r&&(e[t]=r.value),e},R),io=gr,_n=r?function(e,t,r){return oo.f(e,t,io(1,r))}:function(e,t,r){return e[t]=r,e},Qr={exports:{}},b=r,f=gn,_=Function.prototype,so=b&&Object.getOwnPropertyDescriptor,f=f(_,"name"),f={EXISTS:f,PROPER:f&&"something"===function(){}.name,CONFIGURABLE:f&&(!b||so(_,"name").configurable)},b=m,so=fn,ao=e(Function.toString);b(so.inspectSource)||(so.inspectSource=function(e){return ao(e)});function uo(e){return So[e]||(So[e]=Oo(e))}function co(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(Go(r)&&qo(r,i,n),n.global)o?e[t]=r:$o(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:Bo.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function lo(e){return(e=+e)!=e||0==e?0:Wo(e)}function fo(e,t){return(e=Jo(e))<0?Qo(e+t,0):Zo(e,t)}function I(e){return 0<(e=e.length)?ti(ei(e),9007199254740991):0}function po(a){return function(e,t,r){var n,o=ri(e),i=oi(o),s=ni(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 ho(e,t){var r,n=si(e),o=0,i=[];for(r in n)!ii(ui,r)&&ii(n,r)&&ci(i,r);for(;t.length>o;)!ii(n,r=t[o++])||~ai(i,r)||ci(i,r);return i}function yo(e,t,r){for(var n=gi(t),o=wi.f,i=mi.f,s=0;s<n.length;s++){var a=n[s];vi(e,a)||r&&vi(r,a)||o(e,a,i(t,a))}}function vo(e,t){return(e=Ri[_i(e)])==Oi||e!=Ii&&(bi(t)?Ei(t):!!t)}function O(e,t){var r,n,o,i,s=e.target,a=e.global,u=e.stat;if(r=a?Si:u?Si[s]||ki(s,{}):(Si[s]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(i=Ci(r,n))&&i.value:r[n],!Pi(a?n:s+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;xi(o,i)}(e.sham||i&&i.sham)&&Ni(o,"sham",!0),Ai(r,n,o,e)}}var go,mo,wo,Eo,bo,To,_o,Ro,_=so.inspectSource,b=m,so=_,Io=h.WeakMap,b=b(Io)&&/native code/.test(so(Io)),so=T.exports,Oo=Sr,So=so("keys"),Io={},T=e,Co=br,No=_n,Ao=gn,so=fn,S=uo,ko=Io,xo=h.TypeError,Po=h.WeakMap,b=(_o=b||so.state?(go=so.state||(so.state=new Po),mo=T(go.get),wo=T(go.has),Eo=T(go.set),bo=function(e,t){if(wo(go,e))throw new xo("Object already initialized");return t.facade=e,Eo(go,e,t),t},To=function(e){return mo(go,e)||{}},function(e){return wo(go,e)}):(ko[Ro=S("state")]=!0,bo=function(e,t){if(Ao(e,Ro))throw new xo("Object already initialized");return t.facade=e,No(e,Ro,t),t},To=function(e){return Ao(e,Ro)?e[Ro]:{}},function(e){return Ao(e,Ro)}),{set:bo,get:To,has:_o,enforce:function(e){return _o(e)?To(e):bo(e,{})},getterFor:function(t){return function(e){if(Co(e)&&(e=To(e)).type===t)return e;throw xo("Incompatible receiver, "+t+" required")}}}),so=g,Uo=m,Do=gn,Mo=r,Lo=f.CONFIGURABLE,jo=_,Fo=b.enforce,Vo=b.get,Ho=Object.defineProperty,Ko=Mo&&!so(function(){return 8!==Ho(function(){},"length",{value:8}).length}),zo=String(String).split("String"),Po=Qr.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),(!Do(e,"name")||Lo&&e.name!==t)&&(Mo?Ho(e,"name",{value:t,configurable:!0}):e.name=t),Ko&&r&&Do(r,"arity")&&e.length!==r.arity&&Ho(e,"length",{value:r.arity});try{r&&Do(r,"constructor")&&r.constructor?Mo&&Ho(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=Fo(e);return Do(r,"source")||(r.source=zo.join("string"==typeof t?t:"")),e},Go=(Function.prototype.toString=Po(function(){return Uo(this)&&Vo(this).source||jo(this)},"toString"),m),Bo=R,qo=Qr.exports,$o=Or,T={},Xo=Math.ceil,Yo=Math.floor,Wo=Math.trunc||function(e){e=+e;return(0<e?Yo:Xo)(e)},Jo=lo,Qo=Math.max,Zo=Math.min,ei=lo,ti=Math.min,ri=Er,ni=fo,oi=I,ko={includes:po(!0),indexOf:po(!1)},ii=gn,si=Er,ai=ko.indexOf,ui=Io,ci=e([].push),S=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],li=ho,fi=S.concat("length","prototype"),so=(T.f=Object.getOwnPropertyNames||function(e){return li(e,fi)},{}),Po=(so.f=Object.getOwnPropertySymbols,Tr),pi=T,di=so,hi=Ar,yi=e([].concat),so=Po("Reflect","ownKeys")||function(e){var t=pi.f(hi(e)),r=di.f;return r?yi(t,r(e)):t},vi=gn,gi=so,mi=s,wi=R,Ei=g,bi=m,Ti=/#|\.prototype\./,_i=vo.normalize=function(e){return String(e).replace(Ti,".").toLowerCase()},Ri=vo.data={},Ii=vo.NATIVE="N",Oi=vo.POLYFILL="P",Po=vo,Si=h,Ci=s.f,Ni=_n,Ai=co,ki=Or,xi=yo,Pi=Po,so=!g(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Ui=gn,Di=m,Mi=w,Li=uo("IE_PROTO"),ji=Object,Fi=ji.prototype,so=so?ji.getPrototypeOf:function(e){e=Mi(e);if(Ui(e,Li))return e[Li];var t=e.constructor;return Di(t)&&e instanceof t?t.prototype:e instanceof ji?Fi:null},Vi=m,Hi=String,Ki=TypeError,zi=e,Gi=Ar,Bi=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=zi(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return Gi(e),function(e){if("object"==typeof e||Vi(e))return;throw Ki("Can't set "+Hi(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),qi={},$i=ho,Xi=S,C=Object.keys||function(e){return $i(e,Xi)},Yi=R,Wi=Ar,Ji=Er,Qi=C;qi.f=r&&!mn?Object.defineProperties:function(e,t){Wi(e);for(var r,n=Ji(t),o=Qi(t),i=o.length,s=0;s<i;)Yi.f(e,r=o[s++],n[r]);return e};function Zi(){}function es(e){e.write(gs("")),e.close();var t=e.parentWindow.Object;return e=null,t}function ts(e,t){return Is(e),void 0===t?e:Os?Ss(e,t):function(){return e.apply(t,arguments)}}function rs(e){return void 0!==e&&(Cs.Array===e||As[Ns]===e)}function ns(e){if(null!=e)return Ls(e,Fs)||Ls(e,"@@iterator")||js[Ms(e)]}function os(e,t){if(t=arguments.length<2?Gs(e):t,Hs(t))return Ks(Vs(t,e));throw Bs(zs(e)+" is not iterable")}function is(e,t,r){var n,o;$s(e);try{if(!(n=Xs(e,"return"))){if("throw"===t)throw r;return r}n=qs(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return $s(n),r}function ss(e,t){this.stopped=e,this.result=t}function as(e,t,r){function n(e){return i&&oa(i,"normal",e),new ss(!0,e)}function o(e){return p?(Js(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=Ys(t,f);if(d)i=e.iterator;else if(h)i=e;else{if(!(r=na(e)))throw ia(Qs(e)+" is not iterable");if(Zs(r)){for(s=0,a=ea(e);s<a;s++)if((u=o(e[s]))&&ta(sa,u))return u;return new ss(!1)}i=ra(e,r)}for(c=(d?e:i).next;!(l=Ws(c,i)).done;){try{u=o(l.value)}catch(e){oa(i,"throw",e)}if("object"==typeof u&&u&&ta(sa,u))return u}return new ss(!1)}function us(e){if("Symbol"===aa(e))throw TypeError("Cannot convert a Symbol value to a string");return ua(e)}function cs(e,t){var r,n=2<arguments.length?arguments[2]:void 0,o=pa(Ra,this);return ha?r=ha(new Ta,o?da(this):Ra):(r=o?this:va(Ra),ga(r,ba,"Error")),void 0!==t&&ga(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:ca(e)}(t)),Ea&&ga(r,"stack",function(e,t){if(Ts&&"string"==typeof e&&!ws.prepareStackTrace)for(;t--;)e=Es(e,bs,"");return e}(r.stack,1)),o=r,_s(t=n)&&"cause"in t&&Rs(o,"cause",t.cause),wa(e,_a,{that:n=[]}),ga(r,"errors",n),r}var ls,C=Tr("document","documentElement"),fs=Ar,ps=qi,ds=S,mn=Io,hs=C,ys=Nr,vs=uo("IE_PROTO"),gs=function(e){return"<script>"+e+"<\/script>"},ms=function(){try{ls=new ActiveXObject("htmlfile")}catch(e){}var e,t;ms="undefined"==typeof document||document.domain&&ls?es(ls):((t=ys("iframe")).style.display="none",hs.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(gs("document.F=Object")),e.close(),e.F);for(var r=ds.length;r--;)delete ms.prototype[ds[r]];return ms()},qi=(mn[vs]=!0,Object.create||function(e,t){var r;return null!==e?(Zi.prototype=fs(e),r=new Zi,Zi.prototype=null,r[vs]=e):r=ms(),void 0===t?r:ps.f(r,t)}),ws=Error,Es=e("".replace),S=String(ws("zxcasd").stack),bs=/\n\s*at [^:]*:[^\n]*/,Ts=bs.test(S),_s=br,Rs=_n,Is=Rr,Os=c,Ss=e(e.bind),mn={},Cs=mn,Ns=E("iterator"),As=Array.prototype,S={},S=(S[E("toStringTag")]="z","[object z]"===String(S)),N=S,ks=m,xs=mr,Ps=E("toStringTag"),Us=Object,Ds="Arguments"==xs(function(){return arguments}()),N=N?xs: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=Us(e),Ps))?t:Ds?xs(e):"Object"==(t=xs(e))&&ks(e.callee)?"Arguments":t},Ms=N,Ls=Ir,js=mn,Fs=E("iterator"),Vs=o,Hs=Rr,Ks=Ar,zs=_r,Gs=ns,Bs=TypeError,qs=o,$s=Ar,Xs=Ir,Ys=ts,Ws=o,Js=Ar,Qs=_r,Zs=rs,ea=I,ta=p,ra=os,na=ns,oa=is,ia=TypeError,sa=ss.prototype,aa=N,ua=String,ca=us,la=gr,A=!g(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",la(1,7)),7!==e.stack)}),fa=O,pa=p,da=so,ha=Bi,ya=yo,va=qi,ga=_n,ma=gr,wa=as,Ea=A,ba=E("toStringTag"),Ta=Error,_a=[].push,Ra=(ha?ha(cs,Ta):ya(cs,Ta,{name:!0}),cs.prototype=va(Ta.prototype,{constructor:ma(1,cs),message:ma(1,""),name:ma(1,"AggregateError")})),A=(fa({global:!0,constructor:!0,arity:2},{AggregateError:cs}),E),ya=qi,ma=R.f,Ia=A("unscopables"),Oa=Array.prototype;null==Oa[Ia]&&ma(Oa,Ia,{configurable:!0,value:ya(null)});function k(e){Oa[Ia][e]=!0}var Sa,fa=g,A=m,ma=so,ya=co,Ca=E("iterator"),x=!1;[].keys&&("next"in(xa=[].keys())?(ma=ma(ma(xa)))!==Object.prototype&&(Sa=ma):x=!0);function Na(e,t,r){(e=e&&!r?e.prototype:e)&&!Ua(e,Da)&&Pa(e,Da,{configurable:!0,value:t})}function Aa(){return this}function ka(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(!eu&&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=La(Ma,{next:ja(+!c,n)}),Fa(a,u,!1),Va[u]=Ha;var f,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[tu]||h["@@iterator"]||o&&h[o],v=!eu&&y||l(o);if((n="Array"==t&&h.entries||y)&&(a=Ba(n.call(new e)))!==Object.prototype&&a.next&&(Ba(a)!==Za&&(qa?qa(a,Za):Ga(a[tu])||Ya(a,tu,Aa)),$a(a,c,!0)),Ja&&"values"==o&&y&&"values"!==y.name&&(Qa?Xa(h,"name","values"):(d=!0,v=function(){return za(y,this)})),o)if(f={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},s)for(p in f)!eu&&!d&&p in h||Ya(h,p,f[p]);else Ka({target:t,proto:!0,forced:eu||d},f);return h[tu]!==v&&Ya(h,tu,v,{name:o}),Wa[t]=v,f}A((Sa=null==Sa||fa(function(){var e={};return Sa[Ca].call(e)!==e})?{}:Sa)[Ca])||ya(Sa,Ca,function(){return this});var xa={IteratorPrototype:Sa,BUGGY_SAFARI_ITERATORS:x},Pa=R.f,Ua=gn,Da=E("toStringTag"),Ma=xa.IteratorPrototype,La=qi,ja=gr,Fa=Na,Va=mn,Ha=function(){return this},Ka=O,za=o,Ga=m,Ba=so,qa=Bi,$a=Na,Xa=_n,Ya=co,Wa=mn,Ja=f.PROPER,Qa=f.CONFIGURABLE,Za=xa.IteratorPrototype,eu=xa.BUGGY_SAFARI_ITERATORS,tu=E("iterator"),ru=Er,ma=k,A=mn,fa=b,ya=R.f,x=ka,f=r,nu=fa.set,ou=fa.getterFor("Array Iterator"),xa=x(Array,"Array",function(e,t){nu(this,{type:"Array Iterator",target:ru(e),index:0,kind:t})},function(){var e=ou(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"),mn=A.Arguments=A.Array;if(ma("keys"),ma("values"),ma("entries"),f&&"values"!==mn.name)try{ya(mn,"name",{value:"values"})}catch(ae){}function iu(e){var e=fu(e),t=pu.f;du&&e&&!e[hu]&&t(e,hu,{configurable:!0,get:function(){return this}})}function su(e,t){if(yu(t,e))return e;throw vu("Incorrect invocation")}function au(){}function uu(e){if(!gu(e))return!1;try{return bu(au,Eu,e),!0}catch(e){return!1}}function cu(e){if(!gu(e))return!1;switch(mu(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ru||!!_u(Tu,wu(e))}catch(e){return!0}}var lu=N,fa=(S||co(Object.prototype,"toString",S?{}.toString:function(){return"[object "+lu(this)+"]"},{unsafe:!0}),"process"==mr(h.process)),fu=Tr,pu=R,du=r,hu=E("species"),yu=p,vu=TypeError,x=e,A=g,gu=m,mu=N,wu=_,Eu=[],bu=Tr("Reflect","construct"),Tu=/^\s*(?:class|function)\b/,_u=x(Tu.exec),Ru=!Tu.exec(au);cu.sham=!0;function Iu(e,t){var r,e=ku(e).constructor;if(void 0===e||null==(r=ku(e)[xu]))return t;if(Cu(e=r))return e;throw Au(Nu(e)+" is not a constructor")}var Ou,Su,ma=!bu||A(function(){var e;return uu(uu.call)||!uu(Object)||!uu(function(){e=!0})||e})?cu:uu,Cu=ma,Nu=_r,Au=TypeError,ku=Ar,xu=E("species"),f=Function.prototype,Pu=f.apply,Uu=f.call,ya="object"==typeof Reflect&&Reflect.apply||(c?Uu.bind(Pu):function(){return Uu.apply(Pu,arguments)}),mn=e([].slice),Du=TypeError,S=/(?:ipad|iphone|ipod).*applewebkit/i.test(Br),Mu=h,Lu=ya,p=ts,ju=m,Fu=gn,N=g,Vu=C,Hu=mn,Ku=Nr,x=S,A=fa,f=Mu.setImmediate,c=Mu.clearImmediate,zu=Mu.process,Gu=Mu.Dispatch,Bu=Mu.Function,C=Mu.MessageChannel,qu=Mu.String,$u=0,Xu={};try{Ou=Mu.location}catch(ae){}function Yu(e){return function(){Qu(e)}}function Wu(e){Qu(e.data)}function Ju(e){Mu.postMessage(qu(e),Ou.protocol+"//"+Ou.host)}var Qu=function(e){var t;Fu(Xu,e)&&(t=Xu[e],delete Xu[e],t())};f&&c||(f=function(e){var t=arguments.length,r=1;if(t<r)throw Du("Not enough arguments");var n=ju(e)?e:Bu(e),o=Hu(arguments,1);return Xu[++$u]=function(){Lu(n,void 0,o)},Su($u),$u},c=function(e){delete Xu[e]},A?Su=function(e){zu.nextTick(Yu(e))}:Gu&&Gu.now?Su=function(e){Gu.now(Yu(e))}:C&&!x?(x=(A=new C).port2,A.port1.onmessage=Wu,Su=p(x.postMessage,x)):Mu.addEventListener&&ju(Mu.postMessage)&&!Mu.importScripts&&Ou&&"file:"!==Ou.protocol&&!N(Ju)?(Su=Ju,Mu.addEventListener("message",Wu,!1)):Su="onreadystatechange"in Ku("script")?function(e){Vu.appendChild(Ku("script")).onreadystatechange=function(){Vu.removeChild(this),Qu(e)}}:function(e){setTimeout(Yu(e),0)});function Zu(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function ec(){this.head=null,this.tail=null}function tc(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=Tc(r),this.reject=Tc(n)}var rc,nc,oc,ic,sc,ac,uc,C={set:f,clear:c},A=h,p=/ipad|iphone|ipod/i.test(Br)&&void 0!==A.Pebble,x=/web0s(?!.*chrome)/i.test(Br),N=h,f=ts,c=s.f,cc=C.set,A=S,s=p,S=x,lc=fa,p=N.MutationObserver||N.WebKitMutationObserver,x=N.document,fc=N.process,pc=N.Promise,c=c(N,"queueMicrotask"),c=c&&c.value,S=(c||(rc=function(){var e,t;for(lc&&(e=fc.domain)&&e.exit();nc;){t=nc.fn,nc=nc.next;try{t()}catch(e){throw nc?ic():oc=void 0,e}}oc=void 0,e&&e.enter()},ic=A||lc||S||!p||!x?!s&&pc&&pc.resolve?((A=pc.resolve(void 0)).constructor=pc,uc=f(A.then,A),function(){uc(rc)}):lc?function(){fc.nextTick(rc)}:(cc=f(cc,N),function(){cc(rc)}):(sc=!0,ac=x.createTextNode(""),new p(rc).observe(ac,{characterData:!0}),function(){ac.data=sc=!sc})),c||function(e){e={fn:e,next:void 0};oc&&(oc.next=e),nc||(nc=e,ic()),oc=e}),dc=h,s=(ec.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}},ec),pc=h.Promise,A="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,f=!A&&!fa&&"object"==typeof window&&"object"==typeof document,N=h,hc=pc,x=m,p=Po,yc=_,c=E,vc=f,gc=A,mc=qr,wc=(hc&&hc.prototype,c("species")),Ec=!1,bc=x(N.PromiseRejectionEvent),_={CONSTRUCTOR:p("Promise",function(){var e=yc(hc),t=e!==String(hc);if(!t&&66===mc)return!0;if(!mc||mc<51||!/native code/.test(e)){var e=new hc(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[wc]=r,!(Ec=e.then(function(){})instanceof r))return!0}return!t&&(vc||gc)&&!bc}),REJECTION_EVENT:bc,SUBCLASSING:Ec},f={},Tc=Rr;f.f=function(e){return new tc(e)};function _c(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,Nc(Dc,Cc,function(){var e=i.facade;Sc?$c.emit("rejectionHandled",e):Zc("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(Bc("Promise-chain cycle")):(n=Jc(r))?Nc(n,r,c,l):c(r)):l(s)}catch(e){f&&!o&&f.exit(),l(e)}}var Rc,Ic,Oc,A=O,Sc=fa,Cc=h,Nc=o,c=co,x=Bi,N=Na,p=iu,Ac=Rr,kc=m,xc=br,Pc=su,Uc=Iu,Dc=C.set,Mc=S,Lc=Zu,jc=s,C=b,S=pc,s=f,P=_.CONSTRUCTOR,Fc=_.REJECTION_EVENT,Vc=_.SUBCLASSING,Hc=C.getterFor("Promise"),Kc=C.set,C=S&&S.prototype,zc=S,Gc=C,Bc=Cc.TypeError,qc=Cc.document,$c=Cc.process,Xc=s.f,Yc=Xc,Wc=!!(qc&&qc.createEvent&&Cc.dispatchEvent),Jc=function(e){var t;return!(!xc(e)||!kc(t=e.then))&&t},Qc=function(r,o){r.notified||(r.notified=!0,Mc(function(){for(var e,n,t=r.reactions;e=t.get();)_c(e,r);r.notified=!1,o&&!r.rejection&&(n=r,Nc(Dc,Cc,function(){var e,t=n.facade,r=n.value;if(el(n)&&(e=Lc(function(){Sc?$c.emit("unhandledRejection",r,t):Zc("unhandledrejection",t,r)}),n.rejection=Sc||el(n)?2:1,e.error))throw e.value}))}))},Zc=function(e,t,r){var n;Wc?((n=qc.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Cc.dispatchEvent(n)):n={promise:t,reason:r},!Fc&&(t=Cc["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=dc.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},el=function(e){return 1!==e.rejection&&!e.parent},tl=function(t,r,n){return function(e){t(r,e,n)}},rl=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,Qc(e,!0))},nl=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw Bc("Promise can't be resolved itself");var n=Jc(e);n?Mc(function(){var t={done:!1};try{Nc(n,e,tl(nl,t,r),tl(rl,t,r))}catch(e){rl(t,e,r)}}):(r.value=e,r.state=1,Qc(r,!1))}catch(e){rl({done:!1},e,r)}}};if(P&&(Gc=(zc=function(e){Pc(this,Gc),Ac(e),Nc(Rc,this);var t=Hc(this);try{e(tl(nl,t),tl(rl,t))}catch(e){rl(t,e)}}).prototype,(Rc=function(e){Kc(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new jc,rejection:!1,state:0,value:void 0})}).prototype=c(Gc,"then",function(e,t){var r=Hc(this),n=Xc(Uc(this,zc));return r.parent=!0,n.ok=!kc(e)||e,n.fail=kc(t)&&t,n.domain=Sc?$c.domain:void 0,0==r.state?r.reactions.add(n):Mc(function(){_c(n,r)}),n.promise}),Ic=function(){var e=new Rc,t=Hc(e);this.promise=e,this.resolve=tl(nl,t),this.reject=tl(rl,t)},s.f=Xc=function(e){return e===zc||void 0===e?new Ic:Yc(e)},kc(S)&&C!==Object.prototype)){Oc=C.then,Vc||c(C,"then",function(e,t){var r=this;return new zc(function(e,t){Nc(Oc,r,e,t)}).then(e,t)},{unsafe:!0});try{delete C.constructor}catch(ae){}x&&x(C,Gc)}A({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:zc}),N(zc,"Promise",!1),p("Promise");var ol=E("iterator"),il=!1;try{var sl=0,al={next:function(){return{done:!!sl++}},return:function(){il=!0}};al[ol]=function(){return this},Array.from(al,function(){throw 2})}catch(ae){}function ul(e,t){if(!t&&!il)return!1;var r=!1;try{var n={};n[ol]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function cl(e,t){return Ol(e),Sl(t)&&t.constructor===e?t:((0,(e=Cl.f(e)).resolve)(t),e.promise)}function ll(o){return function(e,t){var r,e=$l(Xl(e)),t=ql(t),n=e.length;return t<0||n<=t?o?"":void 0:(r=Wl(e,t))<55296||56319<r||t+1===n||(n=Wl(e,t+1))<56320||57343<n?o?Yl(e,t):r:o?Jl(e,t,t+2):n-56320+(r-55296<<10)+65536}}function fl(e,t){if(e){if(e[af]!==cf)try{sf(e,af,cf)}catch(t){e[af]=cf}if(e[uf]||sf(e,uf,t),nf[t])for(var r in of)if(e[r]!==of[r])try{sf(e,r,of[r])}catch(t){e[r]=of[r]}}}var pl,dl=pc,s=_.CONSTRUCTOR||!ul(function(e){dl.all(e).then(void 0,function(){})}),hl=o,yl=Rr,vl=f,gl=Zu,ml=as,S=(O({target:"Promise",stat:!0,forced:s},{all:function(e){var a=this,t=vl.f(a),u=t.resolve,c=t.reject,r=gl(function(){var n=yl(a.resolve),o=[],i=0,s=1;ml(e,function(e){var t=i++,r=!1;s++,hl(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}}),O),Vc=pc,c=Tr,x=m,C=co,A=Vc&&Vc.prototype,wl=(S({target:"Promise",proto:!0,forced:_.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),x(Vc)&&(P=c("Promise").prototype.catch,A.catch!==P&&C(A,"catch",P,{unsafe:!0})),o),El=Rr,bl=f,Tl=Zu,_l=as,Rl=(O({target:"Promise",stat:!0,forced:s},{race:function(e){var r=this,n=bl.f(r),o=n.reject,t=Tl(function(){var t=El(r.resolve);_l(e,function(e){wl(t,r,e).then(n.resolve,o)})});return t.error&&o(t.value),n.promise}}),o),Il=f,Ol=(O({target:"Promise",stat:!0,forced:_.CONSTRUCTOR},{reject:function(e){var t=Il.f(this);return Rl(t.reject,void 0,e),t.promise}}),Ar),Sl=br,Cl=f,N=O,p=_.CONSTRUCTOR,Nl=cl,Al=(Tr("Promise"),N({target:"Promise",stat:!0,forced:p},{resolve:function(e){return Nl(this,e)}}),o),kl=Rr,xl=f,Pl=Zu,Ul=as,Dl=(O({target:"Promise",stat:!0},{allSettled:function(e){var a=this,t=xl.f(a),u=t.resolve,r=t.reject,n=Pl(function(){var n=kl(a.resolve),o=[],i=0,s=1;Ul(e,function(e){var t=i++,r=!1;s++,Al(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),Ml=Rr,Ll=Tr,jl=f,Fl=Zu,Vl=as,al=(O({target:"Promise",stat:!0},{any:function(e){var u=this,c=Ll("AggregateError"),t=jl.f(u),l=t.resolve,f=t.reject,r=Fl(function(){var n=Ml(u.resolve),o=[],i=0,s=1,a=!1;Vl(e,function(e){var t=i++,r=!1;s++,Dl(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}}),O),S=pc,x=g,Hl=Tr,Kl=m,zl=Iu,Gl=cl,Vc=co,Bl=S&&S.prototype,C=(al({target:"Promise",proto:!0,real:!0,forced:!!S&&x(function(){Bl.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=zl(this,Hl("Promise")),e=Kl(t);return this.then(e?function(e){return Gl(r,t()).then(function(){return e})}:t,e?function(e){return Gl(r,t()).then(function(){throw e})}:t)}}),Kl(S)&&(c=Hl("Promise").prototype.finally,Bl.finally!==c&&Vc(Bl,"finally",c,{unsafe:!0})),e),ql=lo,$l=us,Xl=wr,Yl=C("".charAt),Wl=C("".charCodeAt),Jl=C("".slice),Ql=(ll(!1),ll(!0)),Zl=us,A=b,P=ka,ef=A.set,tf=A.getterFor("String Iterator"),s=(P(String,"String",function(e){ef(this,{type:"String Iterator",string:Zl(e),index:0})},function(){var e=tf(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=Ql(t,r),e.index+=t.length,{value:t,done:!1})}),h),_=(s.Promise,Nr("span").classList),N=_&&_.constructor&&_.constructor.prototype,p=N===Object.prototype?void 0:N,rf=h,nf={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},pc=p,of=xa,sf=_n,al=E,af=al("iterator"),uf=al("toStringTag"),cf=of.values;for(pl in nf)fl(rf[pl]&&rf[pl].prototype,pl);fl(pc,"DOMTokenList");function lf(e,t,r){(t=Df(t))in e?Mf.f(e,t,Lf(0,r)):e[t]=r}function ff(e){if(9007199254740991<e)throw tp("Maximum allowed index exceeded");return e}function pf(e,t){return rp(e=e)&&(r=e.constructor,(np(r)&&(r===sp||rp(r.prototype))||op(r)&&null===(r=r[ip]))&&(r=void 0)),new(void 0===r?sp:r)(0===t?0:t);var r}function df(t){return 51<=up||!ap(function(){var e=[];return(e.constructor={})[cp]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function hf(e,t){if(!delete e[t])throw wp("Cannot delete property "+mp(t)+" of "+mp(e))}function yf(p){var d=1==p,h=2==p,y=3==p,v=4==p,g=6==p,m=7==p,w=5==p||g;return function(e,t,r,n){for(var o,i,s=Sp(e),a=Op(s),u=Ip(t,r),c=Cp(a),l=0,t=n||Np,f=d?t(e,c):h||m?t(e,0):void 0;l<c;l++)if((w||l in a)&&(i=u(o=a[l],l,s),p))if(d)f[l]=i;else if(i)switch(p){case 3:return!0;case 5:return o;case 6:return l;case 2:Ap(f,o)}else switch(p){case 4:return!1;case 7:Ap(f,o)}return g?-1:y||v?v:f}}function vf(e,t){var r=[][e];return!!r&&kp(function(){r.call(null,t||function(){return 1},1)})}function gf(u){var c=1==u;return function(e,t,r){for(var n,o=zp(e),i=Kp(o),s=Hp(t,r),a=Gp(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 mf(e,t,r,n,o,i,s,a){for(var u,c,l=o,f=0,p=!!s&&Wp(s,a);f<n;)f in r&&(u=p?p(r[f],f,t):r[f],0<i&&$p(u)?(c=Xp(u),l=mf(e,t,u,c,l,i-1)-1):(Yp(l+1),e[l]=u),l++),f++;return l}function wf(c){return function(e,t,r,n){Id(t);var o=Od(e),i=Sd(o),s=Cd(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 Nd("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 Ef(e,t,r){for(var n=$d(e),o=qd(t,n),i=qd(void 0===r?n:r,n),s=Yd(Wd(i-o,0)),a=0;o<i;o++,a++)Xd(s,a,e[o]);return s.length=a,s}function bf(e,t){var r=e.length,n=Qd(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=bf(Jd(e,0,n),t),p=bf(Jd(e,n),t),d=t,h=f.length,y=p.length,v=0,g=0;v<h||g<y;)l[v+g]=v<h&&g<y?d(f[v],p[g])<=0?f[v++]:p[g++]:v<h?f[v++]:p[g++];return l}function Tf(e){Vh(e,qh,{value:{objectID:"O"+$h++,weakData:{}}})}function _f(e,t,r){for(var n in t)ny(e,n,t[n],r);return e}var Rf,If,Of,Sf,Cf,Nf,Af,kf=f,xf=Zu,Pf=(O({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=kf.f(this),e=xf(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),Ar),Uf=is,Df=Cr,Mf=R,Lf=gr,jf=ts,Ff=o,Vf=w,Hf=rs,Kf=ma,zf=I,Gf=lf,Bf=os,qf=ns,$f=Array,Xf=(O({target:"Array",stat:!0,forced:!ul(function(e){Array.from(e)})},{from:function(e){var t=Vf(e),e=Kf(this),r=arguments.length,n=1<r?arguments[1]:void 0,o=void 0!==n;o&&(n=jf(n,2<r?arguments[2]:void 0));var i,s,a,u,c,l,r=qf(t),f=0;if(!r||this===$f&&Hf(r))for(i=zf(t),s=e?new this(i):$f(i);f<i;f++)l=o?n(t[f],f):t[f],Gf(s,f,l);else for(c=(u=Bf(t,r)).next,s=e?new this:[];!(a=Ff(c,u)).done;f++)l=o?function(e,t,r,n){try{return n?t(Pf(r)[0],r[1]):t(r)}catch(t){Uf(e,"throw",t)}}(u,n,[a.value,f],!0):a.value,Gf(s,f,l);return s.length=f,s}}),mr),x=Array.isArray||function(e){return"Array"==Xf(e)},Yf=(O({target:"Array",stat:!0},{isArray:x}),ma),Wf=lf,Jf=Array,Qf=(O({target:"Array",stat:!0,forced:g(function(){function e(){}return!(Jf.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(Yf(this)?this:Jf)(t);e<t;)Wf(r,e,arguments[e++]);return r.length=t,r}}),w),Zf=I,ep=lo,S=k,tp=(O({target:"Array",proto:!0},{at:function(e){var t=Qf(this),r=Zf(t),e=ep(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),S("at"),TypeError),rp=x,np=ma,op=br,ip=E("species"),sp=Array,ap=g,up=qr,cp=E("species"),Vc=O,c=g,lp=x,fp=br,pp=w,dp=I,hp=ff,yp=lf,vp=pf,C=df,A=qr,gp=E("isConcatSpreadable"),P=51<=A||!c(function(){var e=[];return e[gp]=!1,e.concat()[0]!==e}),_=C("concat"),mp=(Vc({target:"Array",proto:!0,arity:1,forced:!P||!_},{concat:function(e){for(var t,r,n,o=pp(this),i=vp(o,0),s=0,a=-1,u=arguments.length;a<u;a++)if(function(e){if(!fp(e))return!1;var t=e[gp];return void 0!==t?!!t:lp(e)}(n=-1===a?o:arguments[a]))for(r=dp(n),hp(s+r),t=0;t<r;t++,s++)t in n&&yp(i,s,n[t]);else hp(s+1),yp(i,s++,n);return i.length=s,i}}),_r),wp=TypeError,Ep=w,bp=fo,Tp=I,_p=hf,Rp=Math.min,N=k,Ip=(O({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=Ep(this),n=Tp(r),o=bp(e,n),i=bp(t,n),e=2<arguments.length?arguments[2]:void 0,s=Rp((void 0===e?n:bp(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]:_p(r,o),o+=a,i+=a;return r}}),N("copyWithin"),ts),Op=kr,Sp=w,Cp=I,Np=pf,Ap=e([].push),p={forEach:yf(0),map:yf(1),filter:yf(2),some:yf(3),every:yf(4),find:yf(5),findIndex:yf(6),filterReject:yf(7)},kp=g,xp=p.every,Pp=(O({target:"Array",proto:!0,forced:!vf("every")},{every:function(e){return xp(this,e,1<arguments.length?arguments[1]:void 0)}}),w),Up=fo,Dp=I,xa=k,Mp=(O({target:"Array",proto:!0},{fill:function(e){for(var t=Pp(this),r=Dp(t),n=arguments.length,o=Up(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,i=void 0===n?r:Up(n,r);o<i;)t[o++]=e;return t}}),xa("fill"),p.filter),_n=(O({target:"Array",proto:!0,forced:!df("filter")},{filter:function(e){return Mp(this,e,1<arguments.length?arguments[1]:void 0)}}),O),Lp=p.find,al=k,jp=!0,pc=("find"in[]&&Array(1).find(function(){jp=!1}),_n({target:"Array",proto:!0,forced:jp},{find:function(e){return Lp(this,e,1<arguments.length?arguments[1]:void 0)}}),al("find"),O),Fp=p.findIndex,f=k,Vp=!0,Hp=("findIndex"in[]&&Array(1).findIndex(function(){Vp=!1}),pc({target:"Array",proto:!0,forced:Vp},{findIndex:function(e){return Fp(this,e,1<arguments.length?arguments[1]:void 0)}}),f("findIndex"),ts),Kp=kr,zp=w,Gp=I,S={findLast:gf(0),findLastIndex:gf(1)},Bp=S.findLast,A=k,qp=(O({target:"Array",proto:!0},{findLast:function(e){return Bp(this,e,1<arguments.length?arguments[1]:void 0)}}),A("findLast"),S.findLastIndex),c=k,$p=(O({target:"Array",proto:!0},{findLastIndex:function(e){return qp(this,e,1<arguments.length?arguments[1]:void 0)}}),c("findLastIndex"),x),Xp=I,Yp=ff,Wp=ts,C=mf,Jp=C,Qp=w,Zp=I,ed=lo,td=pf,rd=(O({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Qp(this),r=Zp(t),n=td(t,0);return n.length=Jp(n,t,t,r,0,void 0===e?1:ed(e)),n}}),C),nd=Rr,od=w,id=I,sd=pf,ad=(O({target:"Array",proto:!0},{flatMap:function(e){var t,r=od(this),n=id(r);return nd(e),(t=sd(r,0)).length=rd(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),p.forEach),Vc=vf("forEach")?[].forEach:function(e){return ad(this,e,1<arguments.length?arguments[1]:void 0)},ud=(O({target:"Array",proto:!0,forced:[].forEach!=Vc},{forEach:Vc}),ko.includes),P=k,_=(O({target:"Array",proto:!0,forced:g(function(){return!Array(1).includes()})},{includes:function(e){return ud(this,e,1<arguments.length?arguments[1]:void 0)}}),P("includes"),O),cd=ko.indexOf,N=vf,ld=e([].indexOf),fd=!!ld&&1/ld([1],1,-0)<0,xa=N("indexOf"),_n=(_({target:"Array",proto:!0,forced:fd||!xa},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return fd?ld(this,e,t)||0:cd(this,e,t)}}),O),al=kr,pd=Er,pc=vf,dd=e([].join),f=al!=Object,A=pc("join",","),hd=(_n({target:"Array",proto:!0,forced:f||!A},{join:function(e){return dd(pd(this),void 0===e?",":e)}}),ya),yd=Er,vd=lo,gd=I,S=vf,md=Math.min,wd=[].lastIndexOf,Ed=!!wd&&1/[1].lastIndexOf(1,-0)<0,c=S("lastIndexOf"),C=Ed||!c?function(e){if(Ed)return hd(wd,this,arguments)||0;var t=yd(this),r=gd(t),n=r-1;for((n=1<arguments.length?md(n,vd(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:wd,bd=(O({target:"Array",proto:!0,forced:C!==[].lastIndexOf},{lastIndexOf:C}),p.map),Vc=(O({target:"Array",proto:!0,forced:!df("map")},{map:function(e){return bd(this,e,1<arguments.length?arguments[1]:void 0)}}),O),Td=w,_d=I,Rd=ff,P=g(function(){return 4294967297!==[].push.call({length:4294967296},1)}),ko=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),Id=(Vc({target:"Array",proto:!0,arity:1,forced:P||ko},{push:function(e){var t=Td(this),r=_d(t),n=arguments.length;Rd(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return t.length=r}}),Rr),Od=w,Sd=kr,Cd=I,Nd=TypeError,N={left:wf(!1),right:wf(!0)},Ad=N.left,_=qr,xa=fa,kd=(O({target:"Array",proto:!0,forced:!vf("reduce")||!xa&&79<_&&_<83},{reduce:function(e){var t=arguments.length;return Ad(this,e,t,1<t?arguments[1]:void 0)}}),N.right),al=qr,pc=fa,_n=(O({target:"Array",proto:!0,forced:!vf("reduceRight")||!pc&&79<al&&al<83},{reduceRight:function(e){return kd(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),O),xd=x,Pd=e([].reverse),f=[1,2],A=(_n({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){return xd(this)&&(this.length=this.length),Pd(this)}}),O),Ud=x,Dd=ma,Md=br,Ld=fo,jd=I,Fd=Er,Vd=lf,ya=E,Hd=mn,S=df("slice"),Kd=ya("species"),zd=Array,Gd=Math.max,Bd=(A({target:"Array",proto:!0,forced:!S},{slice:function(e,t){var r,n,o,i=Fd(this),s=jd(i),a=Ld(e,s),u=Ld(void 0===t?s:t,s);if(Ud(i)&&(r=i.constructor,(r=Dd(r)&&(r===zd||Ud(r.prototype))||Md(r)&&null===(r=r[Kd])?void 0:r)===zd||void 0===r))return Hd(i,a,u);for(n=new(void 0===r?zd:r)(Gd(u-a,0)),o=0;a<u;a++,o++)a in i&&Vd(n,o,i[a]);return n.length=o,n}}),p.some),qd=(O({target:"Array",proto:!0,forced:!vf("some")},{some:function(e){return Bd(this,e,1<arguments.length?arguments[1]:void 0)}}),fo),$d=I,Xd=lf,Yd=Array,Wd=Math.max,Jd=Ef,Qd=Math.floor,c=bf,C=Br.match(/firefox\/(\d+)/i),Vc=!!C&&+C[1],P=/MSIE|Trident/.test(Br),ko=Br.match(/AppleWebKit\/(\d+)\./),xa=!!ko&&+ko[1],_=O,N=e,Zd=Rr,eh=w,th=I,rh=hf,nh=us,fa=g,oh=c,pc=vf,ih=Vc,sh=P,ah=qr,uh=xa,ch=[],lh=N(ch.sort),fh=N(ch.push),al=fa(function(){ch.sort(void 0)}),_n=fa(function(){ch.sort(null)}),f=pc("sort"),ph=!fa(function(){if(ah)return ah<70;if(!(ih&&3<ih)){if(sh)return!0;if(uh)return uh<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++)ch.push({k:e+r,v:t})}for(ch.sort(function(e,t){return t.v-e.v}),r=0;r<ch.length;r++)e=ch[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),mn=(_({target:"Array",proto:!0,forced:al||!_n||!f||!ph},{sort:function(e){void 0!==e&&Zd(e);var t=eh(this);if(ph)return void 0===e?lh(t):lh(t,e);for(var r,n,o=[],i=th(t),s=0;s<i;s++)s in t&&fh(o,t[s]);for(oh(o,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:nh(e)>nh(t)?1:-1})),r=o.length,s=0;s<r;)t[s]=o[s++];for(;s<i;)rh(t,s++);return t}}),iu("Array"),O),dh=w,hh=fo,yh=lo,vh=I,gh=ff,mh=pf,wh=lf,Eh=hf,ya=df("splice"),bh=Math.max,Th=Math.min,A=(mn({target:"Array",proto:!0,forced:!ya},{splice:function(e,t){var r,n,o,i,s,a,u=dh(this),c=vh(u),l=hh(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-l):(r=e-2,Th(bh(yh(t),0),c-l)),gh(c+r-n),o=mh(u,n),i=0;i<n;i++)(s=l+i)in u&&wh(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]:Eh(u,a);for(i=c;c-n+r<i;i--)Eh(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]:Eh(u,a);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return u.length=c-n+r,o}}),k("flat"),k("flatMap"),O),_h=w,Rh=I,Ih=hf,Oh=ff,S=1!==[].unshift(0),C=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),Br=(A({target:"Array",proto:!0,arity:1,forced:S||C},{unshift:function(e){var t=_h(this),r=Rh(t),n=arguments.length;if(n){Oh(r+n);for(var o=r;o--;){var i=o+n;o in t?t[i]=t[o]:Ih(t,i)}for(var s=0;s<n;s++)t[s]=arguments[s]}return t.length=r+n}}),s.Array,{exports:{}}),ko={},Sh=mr,Ch=Er,Nh=T.f,Ah=Ef,kh="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=(ko.f=function(e){if(!kh||"Window"!=Sh(e))return Nh(Ch(e));var t=e;try{return Nh(t)}catch(t){return Ah(kh)}},g(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),Vc=g,xh=br,Ph=mr,Uh=c,Dh=Object.isExtensible,P=Vc(function(){Dh(1)})||Uh?function(e){return!!xh(e)&&(!Uh||"ArrayBuffer"!=Ph(e))&&(!Dh||Dh(e))}:Dh,qr=!g(function(){return Object.isExtensible(Object.preventExtensions({}))}),Mh=O,Lh=e,xa=Io,jh=br,Fh=gn,Vh=R.f,Hh=T,Kh=ko,zh=P,Gh=qr,Bh=!1,qh=Sr("meta"),$h=0,Xh=Br.exports={enable:function(){Xh.enable=function(){},Bh=!0;var o=Hh.f,i=Lh([].splice),e={};e[qh]=1,o(e).length&&(Hh.f=function(e){for(var t=o(e),r=0,n=t.length;r<n;r++)if(t[r]===qh){i(t,r,1);break}return t},Mh({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Kh.f}))},fastKey:function(e,t){if(!jh(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Fh(e,qh)){if(!zh(e))return"F";if(!t)return"E";Tf(e)}return e[qh].objectID},getWeakData:function(e,t){if(!Fh(e,qh)){if(!zh(e))return!0;if(!t)return!1;Tf(e)}return e[qh].weakData},onFreeze:function(e){return Gh&&Bh&&zh(e)&&!Fh(e,qh)&&Tf(e),e}},Yh=(xa[qh]=!0,m),Wh=br,Jh=Bi,N=O,pc=h,Qh=e,fa=Po,Zh=co,_=Br.exports,ey=as,ty=su,al=m,ry=br,_n=g,f=ul,mn=Na,ny=co,oy=R.f,iy=qi,sy=_f,ay=ts,uy=su,cy=as,ly=ka,fy=iu,py=r,dy=Br.exports.fastKey,hy=b.set,yy=b.getterFor;function vy(e){var r=Qh(Nf[e]);Zh(Nf,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(Of&&!ry(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return Of&&!ry(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(Of&&!ry(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}ya=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=dy(t,!0),key:t,value:r,previous:t=o.last,next:void 0,removed:!1},o.first||(o.first=i),t&&(t.next=i),py?o.size++:e.size++,"F"!==n&&(o.index[n]=i)),e}function s(e,t){var r,e=u(e),n=dy(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){uy(e,a),hy(e,{type:r,index:iy(null),first:void 0,last:void 0,size:0}),py||(e.size=0),null!=t&&cy(t,e[o],{that:e,AS_ENTRIES:n})}),a=e.prototype,u=yy(r);return sy(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,py?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),py?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=ay(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)}}),sy(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)}}),py&&oy(a,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",o=yy(t),i=yy(n);ly(e,t,function(e,t){hy(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),fy(t)}},If=-1!==(S="Map").indexOf("Map"),Of=-1!==S.indexOf("Weak"),Sf=If?"set":"add",Cf=pc.Map,Nf=Cf&&Cf.prototype,C={},fa(S,!al(Af=Cf)||!(Of||Nf.forEach&&!_n(function(){(new Cf).entries().next()})))?(Af=A.getConstructor(ya,S,If,Sf),_.enable()):fa(S,!0)&&(s=(Rf=new Af)[Sf](Of?{}:-0,1)!=Rf,c=_n(function(){Rf.has(1)}),Vc=f(function(e){new Cf(e)}),Io=!Of&&_n(function(){for(var e=new Cf,t=5;t--;)e[Sf](t,t);return!e.has(-0)}),Vc||(((Af=ya(function(e,t){ty(e,Nf);r=new Cf,e=e,n=Af,Jh&&Yh(e=e.constructor)&&e!==n&&Wh(e=e.prototype)&&e!==n.prototype&&Jh(r,e);var r,n=r;return null!=t&&ey(t,n[Sf],{that:n,AS_ENTRIES:If}),n})).prototype=Nf).constructor=Af),(c||Io)&&(vy("delete"),vy("has"),If&&vy("get")),(Io||s)&&vy(Sf),Of&&Nf.clear&&delete Nf.clear),C.Map=Af,N({global:!0,constructor:!0,forced:Af!=Cf},C),mn(Af,S),Of||A.setStrong(Af,S,If);function gy(e,t){for(var r=0,n=by(t),o=new e(n);r<n;)o[r]=t[r++];return o}function my(e,t,r,n){for(var o,i,s,a=Ry(e),u=_y(a),c=Ty(t,r),l=Sy(null),f=Oy(u),p=0;p<f;p++)s=u[p],(i=Iy(c(s,p,a)))in l?Ay(l[i],s):l[i]=[s];if(n&&(o=n(a))!==Ny)for(i in l)l[i]=Cy(o,l[i]);return l}function wy(e){for(var t,r,n=Dy(this),o=Uy(n),i=Py(e,1<arguments.length?arguments[1]:void 0),s=new Ly,a=My(o),u=0;u<a;u++)t=i(r=o[u],u,n),Fy(s,t)?Hy(jy(s,t),r):Vy(s,t,[r]);return s}function Ey(e){return By[e].prototype}var by=I,Ty=ts,_y=kr,Ry=w,Iy=Cr,Oy=I,Sy=qi,Cy=gy,Ny=Array,Ay=e([].push),ky=my,gn=k,xy=(O({target:"Array",proto:!0},{group:function(e){return ky(this,e,1<arguments.length?arguments[1]:void 0)}}),gn("group"),my),T=k,Py=(O({target:"Array",proto:!0,forced:!vf("groupBy")},{groupBy:function(e){return xy(this,e,1<arguments.length?arguments[1]:void 0)}}),T("groupBy"),ts),ko=e,Uy=kr,Dy=w,My=I,Ly=Tr("Map"),P=Ly.prototype,jy=ko(P.get),Fy=ko(P.has),Vy=ko(P.set),Hy=ko([].push),qr=k,xa=wy,Bi=(O({target:"Array",proto:!0,name:"groupToMap",forced:!vf("groupByToMap")},{groupByToMap:xa}),qr("groupByToMap"),k),Ky=(O({target:"Array",proto:!0},{groupToMap:wy}),Bi("groupToMap"),I),zy=Er,Po=k,Gy=Array,By=(O({target:"Array",proto:!0},{toReversed:function(){for(var e=zy(this),t=Gy,r=Ky(e),n=new t(r),o=0;o<r;o++)n[o]=e[r-o-1];return n}}),Po("toReversed"),h),Br=O,qy=Rr,$y=Er,Xy=gy,pc=k,Yy=Array,Wy=e(Ey("Array").sort),fa=(Br({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&qy(e);var t=$y(this),t=Xy(Yy,t);return Wy(t,e)}}),pc("toSorted"),O),f=k,Jy=ff,Qy=I,Zy=fo,ev=Er,tv=lo,rv=Array,nv=Math.max,ov=Math.min,iv=(fa({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,o,i,s=ev(this),a=Qy(s),u=Zy(e,a),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,a-u):(r=e-2,ov(nv(tv(t),0),a-u)),o=Jy(a+r-n),i=rv(o);c<u;c++)i[c]=s[c];for(;c<u+r;c++)i[c]=arguments[c-u+2];for(;c<o;c++)i[c]=s[c+n-r];return i}}),f("toSpliced"),I),sv=lo,av=RangeError,uv=Er,cv=Array;O({target:"Array",proto:!0},{with:function(e,t){var r=uv(this),n=cv,o=t,i=iv(r),s=(e=sv(e))<0?i+e:e;if(i<=s||s<0)throw av("Incorrect index");for(var a=new n(i),u=0;u<i;u++)a[u]=u===s?o:r[u];return a}});_n=h,Vc=fn,ya=m,c=so,Io=co,s=E("asyncIterator"),N=_n.AsyncIterator,C=Vc.AsyncIteratorPrototype;if(C)kg=C;else if(ya(N))kg=N.prototype;else if(Vc.USE_FUNCTION_CONSTRUCTOR||_n.USE_FUNCTION_CONSTRUCTOR)try{Ag=c(c(c(Function("return async function*(){}()")()))),c(Ag)===Object.prototype&&(kg=Ag)}catch(ae){}ya((kg=kg||{})[s])||Io(kg,s,function(){return this});function lv(e,t,r){var n=e.done;wv.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function fv(e){Ev(this,{type:"AsyncFromSyncIterator",iterator:gv(e),next:e.next})}function pv(e,t,r,n){try{var o=xv(e,"return");if(o)return kv("Promise").resolve(Av(o,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function dv(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,s,a){var e={iterator:e,next:Cv(Nv(e).next)},u=Lv("Promise"),c=e.iterator,t=e.next,l=0,f=void 0!==s;return!f&&p||Uv(s),new u(function(r,n){var o=function(e){pv(c,n,e,n)},i=function(){try{if(p&&f)try{Mv(l)}catch(e){o(e)}u.resolve(Dv(Pv(t,c))).then(function(e){try{if(Dv(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():pv(c,r,!1,n);else if(p)try{a[l++]=e,i()}catch(e){o(e)}else e?pv(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 hv(e,t){if(!Qv||!Jv(e)||!Qv(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 yv(e,t,r){r.get&&Zv(r.get,t,{getter:!0}),r.set&&Zv(r.set,t,{setter:!0}),eg.f(e,t,r)}var vv=o,gv=Ar,mn=qi,mv=Ir,A=_f,S=b,gn=kg,wv=Tr("Promise"),Ev=S.set,bv=S.getterFor("AsyncFromSyncIterator"),T=(fv.prototype=A(mn(gn),{next:function(){var n=bv(this);return new wv(function(e,t){var r=gv(vv(n.next,n.iterator));lv(r,e,t)})},return:function(){var n=bv(this).iterator;return new wv(function(e,t){var r=mv(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=gv(vv(r,n));lv(r,e,t)})}}),fv),Tv=o,_v=T,Rv=Ar,Iv=os,Ov=Ir,Sv=E("asyncIterator"),Cv=Rr,Nv=Ar,Av=o,kv=Tr,xv=Ir,Pv=o,Uv=Rr,Dv=Ar,Mv=ff,Lv=Tr,kr={toArray:dv(0),forEach:dv(1),every:dv(2),some:dv(3),find:dv(4)},jv=ts,Fv=w,Vv=ma,Hv=os,Kv=ns,zv=Ir,P=Ey,Gv=Tr,Bv=T,qv=kr.toArray,$v=E("asyncIterator"),Xv=P("Array").values,Yv=(O({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(Gv("Promise"))(function(e){var t=Fv(i),r=(void 0!==a&&(a=jv(a,u)),zv(t,$v)),n=r?void 0:Kv(t)||Xv,o=Vv(s)?new s:[],r=r?function(e,t){t=arguments.length<2?Ov(e,Sv):t;return t?Rv(Tv(t,e)):new _v(Iv(e))}(t,r):new Bv(Hv(t,n));e(qv(r,a,o))})}}),p.filterReject),ko=k,Wv=(O({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return Yv(this,e,1<arguments.length?arguments[1]:void 0)}}),ko("filterOut"),p.filterReject),xa=k,qr=(O({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return Wv(this,e,1<arguments.length?arguments[1]:void 0)}}),xa("filterReject"),O),Jv=x,Qv=Object.isFrozen,Zv=(qr({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!hv(e,!0))return!1;var t=e.raw;return t.length===e.length&&hv(t,!1)}}),Qr.exports),eg=R,Bi=k,tg=w,rg=I,Po=(r&&(yv(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=tg(this),t=rg(e);return 0==t?void 0:e[t-1]},set:function(e){var t=tg(this),r=rg(t);return t[0==r?0:r-1]=e}}),Bi("lastItem")),k),ng=w,og=I,Br=(r&&(yv(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=ng(this),e=og(e);return 0==e?0:e-1}}),Po("lastIndex")),e),ig=Rr,sg=I,ag=w,ug=pf,cg=Tr("Map"),pc=cg.prototype,lg=Br(pc.forEach),fg=Br(pc.has),pg=Br(pc.set),dg=Br([].push),fa=k;O({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=ag(this),o=sg(n),i=ug(n,0),s=new cg,a=null!=e?ig(e):function(e){return e},u=0;u<o;u++)r=a(t=n[u]),fg(s,r)||pg(s,r,t);return lg(s,function(e){dg(i,e)}),i}}),fa("uniqueBy");function hg(e,t,r,n){this.valueId=e,this.value=t,this.reason=r,this.properties=n}e0.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},e0.prototype.refresh=function(){this.stop(),this.start()},e0.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)};var yg,vg=e0,gg=(Zm.prototype.start=function(){this.started=!0},Zm.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},Zm.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},Zm.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},Zm.prototype.close=function(){this.stop()},Zm),mg=(Qm.prototype.isClientError=function(e){return!!(e&&400<=e.statusCode&&e.statusCode<500)},Qm.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]}})})})},Qm.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]})})})},Qm.prototype.process=function(e){this.queue.enqueue(e)},Qm.prototype.start=function(){return le(this,void 0,void 0,function(){return fe(this,function(e){return this.queue.start(),[2]})})},Qm.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},Qm.prototype.flush=function(){this.queue.flush()},Qm.prototype.close=function(){this.stop()},Qm),wg=(Jm.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]})},Jm),Eg=(Wm.isSessionEvent=function(e){return!!St.isTrack(e)&&(e.event.key===Wm.SESSION_START_EVENT_NAME||e.event.key===Wm.SESSION_END_EVENT_NAME)},Wm.prototype.onSessionStarted=function(e,t,r){this.track(Wm.SESSION_START_EVENT_NAME,e,t,r)},Wm.prototype.onSessionEnded=function(e,t,r){this.track(Wm.SESSION_END_EVENT_NAME,e,t,r)},Wm.prototype.track=function(e,t,r,n){e={key:e,properties:{sessionId:t}},r=this.hackleUserResolver.resolve(r),r=this.decorateSession(r,t);this.hackleInternalClient._track(e,r,n)},Wm.prototype.decorateSession=function(e,t){t=(new Be).add(Ge.SESSION,t).addIdentifiers(e.identifiers).build();return d(d({},e),{identifiers:t})},Wm.SESSION_START_EVENT_NAME="$session_start",Wm.SESSION_END_EVENT_NAME="$session_end",Wm),bg=(Ym.prototype.process=function(e){var t;Eg.isSessionEvent(e)||this.sessionManager.startNewSessionIfNeeded(this.userManager.currentUser,e.timestamp),this.exposureEventDedupDeterminer.isDedupTarget(e)||(e=e,t=null===(t=this.sessionManager).currentSessionId||e.user.identifiers[Ge.SESSION]?e:e.copyWithUser(d(d({},e.user),{identifiers:d(d({},e.user.identifiers),((e={})[Ge.SESSION]=t.sessionId,e))})),this.delegate.process(t))},Ym.prototype.close=function(){this.delegate.close()},Ym.prototype.flush=function(){this.delegate.flush()},Ym.prototype.start=function(){return this.delegate.start()},Ym),Tg=(Xm.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!St.isExposure(e))return!1;wg.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)},Xm),_g=($m.toEvent=function(e){var t;return{key:$m.EVENT_KEY,properties:{level:$m.LEVEL_ERROR,type:e.name,message:null!=(t=e.message)?t:"",$stacktrace:$m._stacktrace(e)}}},$m._stacktrace=function(e){return a.isNullOrUndefined(e.stack)?"":e.stack.split("\n").slice(0,$m.STACK_TRACK_LIMIT).join("\n")},$m.EVENT_KEY="$trace",$m.LEVEL_ERROR="error",$m.STACK_TRACK_LIMIT=30,$m),Rg=pe.log,Ig=(qm.prototype._experiment=function(e,t,r){if(!e)return Rg.error("experimentKey must not be empty"),Fe.of(r,u.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return Rg.warn("SDK not ready."),Fe.of(r,u.SDK_NOT_READY);e=n.getExperimentOrNull(e);if(!e)return Rg.warn("Experiment does not exist."),Fe.of(r,u.EXPERIMENT_NOT_FOUND);n=this.evaluator.evaluate(n,e,t,r),this.eventProcessor.process(St.exposure(e,t,n)),e=null!=(r=n.config)?r:new He;return Fe.of(n.variationKey,n.reason,e)},qm.prototype._featureFlag=function(e,t){if(!e)return Rg.error("featureKey must not be empty"),Ve.off(u.INVALID_INPUT);var r=this.workspaceFetcher.get();if(!r)return Rg.warn("SDK not ready."),Ve.off(u.SDK_NOT_READY);var e=r.getFeatureFlagOrNull(e);if(!e)return Rg.warn("FeatureFlag does not exist."),Ve.off(u.FEATURE_FLAG_NOT_FOUND);r=this.evaluator.evaluate(r,e,t,"A"),this.eventProcessor.process(St.exposure(e,t,r)),t=null!=(e=r.config)?e:new He;return"A"===r.variationKey?Ve.off(r.reason,t):Ve.on(r.reason,t)},qm.prototype._track=function(e,t,r){var n;void 0===r&&(r=(new Date).getTime()),e?"object"==typeof e?"object"!=typeof e||e.key&&"string"==typeof e.key?(n=(null==(n=this.workspaceFetcher.get())?void 0:n.getEventTypeOrNull(e.key))||new be(0,e.key),this.eventProcessor.process(St.track(n,e,t,r))):Rg.warn("Event key must be not null. or event key must be string type."):Rg.warn("Event must be event type."):Rg.warn("event must not be null.")},qm.prototype._trackException=function(e,t){this.errorDedupDeterminer.isDedupTarget(e)||(e=_g.toEvent(e),this._flush(),this._track(e,t),this._flush())},qm.prototype._flush=function(){this.eventProcessor.flush()},qm.prototype._remoteConfig=function(e,t,r,n){var o=this.workspaceFetcher.get();if(a.isNullOrUndefined(o))return Rg.warn("SDK not ready."),je.of(n,u.SDK_NOT_READY);e=o.getRemoteConfigParameterOrNull(e);if(a.isNullOrUndefined(e))return Rg.warn("Remote config parameter does not exist."),je.of(n,u.REMOTE_CONFIG_PARAMETER_NOT_FOUND);o=this.evaluator.remoteConfigEvaluate(o,e,t,r,n);return this.eventProcessor.process(St.remoteConfig(e,t,o)),je.of(o.value,o.reason)},qm.prototype._onReady=function(e,t){this._onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},qm.prototype._onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(Rg.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?Rg.debug("HackleClient onInitialized Success"):e.error instanceof Error?Rg.error("HackleClient onInitialized Failed. ".concat(e.error.message)):Rg.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},qm.prototype._close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},qm),Og=(Bm.prototype.isDedupTarget=function(e){return!!this._isSameError(e,this.previous)||(this.previous=e,!1)},Bm.prototype._isSameError=function(e,t){return!a.isNullOrUndefined(t)&&e.name===t.name&&e.message===t.message&&e.stack===t.stack},Bm),Sg=(Gm.of=function(e,t,r,n){t=t._getVariationByKeyOrNull(r);return a.isNotNullOrUndefined(t)?Gm.withVariation(e,t,n):new Gm(void 0,r,n,void 0)},Gm.withVariation=function(e,t,r){e=this.config(e,t);return new Gm(t.id,t.key,r,e)},Gm.config=function(e,t){if(!a.isNullOrUndefined(t.parameterConfigurationId))return a.requiredNotNullOrUndefined(e.getParameterConfigurationOrNull(t.parameterConfigurationId),function(){return"ParameterConfiguration[".concat(t.parameterConfigurationId,"]")})},Gm),Cg=(zm.prototype.evaluate=function(e,t,r,n){return this.evaluationFlowFactory.getFlow(t.type).evaluate(e,t,r,n)},zm.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 hg(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)},zm.prototype.getRemoteConfigEvaluationWithTypeCheck=function(e,t,r,n,o){return"UNKNOWN"===r||"NULL"!==r&&typeof n!=typeof e.rawValue?(o.returnValue=n,new hg(void 0,n,u.TYPE_MISMATCH,o)):(o.returnValue=e.rawValue,new hg(e.id,e.rawValue,t,o))},zm),Ng=(Km.prototype.matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n._matches(e,t,r)})},Km.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(e.key.type).matches(e,t,r)},Km),f=(Hm.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)},Hm.prototype._matches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},Hm),h=(Vm.prototype.booleanMatches=function(e,t){return e===t},Vm.prototype.numberMatches=function(e,t){return e===t},Vm.prototype.stringMatches=function(e,t){return e===t},Vm.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},Vm),fn=(Fm.prototype.booleanMatches=function(e,t){return!1},Fm.prototype.numberMatches=function(e,t){return!1},Fm.prototype.stringMatches=function(e,t){return e.includes(t)},Fm.prototype.versionMatches=function(e,t){return!1},Fm),so=(jm.prototype.booleanMatches=function(e,t){return!1},jm.prototype.numberMatches=function(e,t){return!1},jm.prototype.stringMatches=function(e,t){return e.startsWith(t)},jm.prototype.versionMatches=function(e,t){return!1},jm),C=(Lm.prototype.booleanMatches=function(e,t){return!1},Lm.prototype.numberMatches=function(e,t){return!1},Lm.prototype.stringMatches=function(e,t){return e.endsWith(t)},Lm.prototype.versionMatches=function(e,t){return!1},Lm),N=(Mm.prototype.booleanMatches=function(e,t){return!1},Mm.prototype.numberMatches=function(e,t){return t<e},Mm.prototype.stringMatches=function(e,t){return!1},Mm.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},Mm),Vc=(Dm.prototype.booleanMatches=function(e,t){return!1},Dm.prototype.numberMatches=function(e,t){return t<=e},Dm.prototype.stringMatches=function(e,t){return!1},Dm.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},Dm),_n=(Um.prototype.booleanMatches=function(e,t){return!1},Um.prototype.numberMatches=function(e,t){return e<t},Um.prototype.stringMatches=function(e,t){return!1},Um.prototype.versionMatches=function(e,t){return e.isLessThan(t)},Um),c=(Pm.prototype.booleanMatches=function(e,t){return!1},Pm.prototype.numberMatches=function(e,t){return e<=t},Pm.prototype.stringMatches=function(e,t){return!1},Pm.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},Pm),Ag=(xm.prototype.getMatcher=function(e){switch(e){case"IN":return xm.IN_MATCHER;case"CONTAINS":return xm.CONTAINS_MATCHER;case"STARTS_WITH":return xm.STARTS_WITH_MATCHER;case"ENDS_WITH":return xm.ENDS_WITH_MATCHER;case"GT":return xm.GT_MATCHER;case"GTE":return xm.GTE_MATCHER;case"LT":return xm.LT_MATCHER;case"LTE":return xm.LTE_MATCHER}},xm.IN_MATCHER=new h,xm.CONTAINS_MATCHER=new fn,xm.STARTS_WITH_MATCHER=new so,xm.ENDS_WITH_MATCHER=new C,xm.GT_MATCHER=new N,xm.GTE_MATCHER=new Vc,xm.LT_MATCHER=new _n,xm.LTE_MATCHER=new c,xm),ya=(km.prototype.matches=function(e,t,r){return"string"==typeof t&&"string"==typeof r&&e.stringMatches(t,r)},km),Io=(Am.prototype.matches=function(e,t,r){return"number"==typeof t&&"number"==typeof r&&e.numberMatches(t,r)},Am),s=(Nm.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},Nm),qi=(Cm.prototype.matches=function(e,t,r){t=dt.tryParse(t),r=dt.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},Cm),b=(Sm.prototype.matches=function(e,t,r){return!1},Sm),kg=(Om.prototype.getMatcher=function(e){switch(e){case"STRING":case"JSON":return Om.STRING_MATCHER;case"NUMBER":return Om.NUMBER_MATCHER;case"BOOLEAN":return Om.BOOLEAN_MATCHER;case"VERSION":return Om.VERSION_MATCHER;case"NULL":case"UNKNOWN":return Om.NULL_MATCHER}},Om.STRING_MATCHER=new ya,Om.NUMBER_MATCHER=new Io,Om.BOOLEAN_MATCHER=new s,Om.VERSION_MATCHER=new qi,Om.NULL_MATCHER=new b,Om),S=(Im.prototype.matches=function(e,t,r){r=this.userValueResolver.resolveOrNull(r,e.key);return!a.isNullOrUndefined(r)&&this.valueOperatorMatcher.matches(r,e.match)},Im),A=(Rm.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,"]"))}},Rm),mn=(_m.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}},_m.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,"]"))},_m),gn=(Tm.prototype.matches=function(e,t,r){var n=this;return e.targets.some(function(e){return n._matches(e,t,r)})},Tm.prototype._matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(e,t,r)})},Tm),xg=(bm.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return bm.USER_CONDITION_MATCHER;case"SEGMENT":return bm.SEGMENT_CONDITION_MATCHER}},bm.USER_CONDITION_MATCHER=new S(new A,new f(new kg,new Ag)),bm.SEGMENT_CONDITION_MATCHER=new mn(new gn(bm.USER_CONDITION_MATCHER)),bm),Pg=(Em.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)}},Em.prototype._resolveVariation=function(e,t){return t._getVariationByIdOrNull(e.variationId)},Em.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)}},Em),Ug={murmurhash3_x86_32:function(e,t,r,n){for(var o,i=-4&(n=void 0===n?e.length:n),s=t,a=0;a<i;a+=4)o=255&e.charCodeAt(a)|(255&e.charCodeAt(a+1))<<8|(255&e.charCodeAt(a+2))<<16|(255&e.charCodeAt(a+3))<<24,o=(131071&(o=this.mul32(o,3432918353)))<<15|o>>>17,s=5*((524287&(s^=o=this.mul32(o,461845907)))<<13|s>>>19)+3864292196|0;switch(o=0,n%4){case 3:o=(255&e.charCodeAt(2+i))<<16;case 2:o|=(255&e.charCodeAt(1+i))<<8;case 1:o|=255&e.charCodeAt(i),o=(131071&(o=this.mul32(o,3432918353)))<<15|o>>>17,s^=o=this.mul32(o,461845907)}return s=this.mul32(s=(s^=n)^s>>>16,2246822507),(s=this.mul32(s^=s>>>13,3266489909))^s>>>16},mul32:function(e,t){var r=65535&t;return((t-r)*e|0)+(r*e|0)|0}},Dg=(wm.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},wm.prototype.calculateSlotNumber=function(e,t,r){r=Ug.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},wm),Mg=(mm.prototype.evaluate=function(e,t,r,n){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,r,n,this.nextFlow):Sg.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},mm.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new mm,n=0,o=e.reverse();n<o.length;n++)r=new mm(o[n],r);return r},mm),Lg=(gm.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 Sg.withVariation(e,i,u.OVERRIDDEN);case"FEATURE_FLAG":return Sg.withVariation(e,i,u.INDIVIDUAL_TARGET_MATCH)}},gm),jg=(vm.prototype.evaluate=function(e,t,r,n,o){return"DRAFT"===t.status?Sg.of(e,t,n,u.EXPERIMENT_DRAFT):o.evaluate(e,t,r,n)},vm),Fg=(ym.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 Sg.of(e,t,n,u.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return Sg.of(e,t,n,u.FEATURE_FLAG_INACTIVE)}},ym),Vg=(hm.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 Sg.withVariation(e,o,u.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(t.id,"]"))},hm),Hg=(dm.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):Sg.of(e,t,n,u.NOT_IN_EXPERIMENT_TARGET)},dm),Kg=(pm.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?Sg.of(e,t,n,u.VARIATION_DROPPED):Sg.withVariation(e,r,u.TRAFFIC_ALLOCATED):Sg.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},pm),zg=(fm.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 Sg.withVariation(e,o,u.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},fm),Gg=(lm.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 Sg.of(e,t,n,u.DEFAULT_RULE);n=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);if(n)return Sg.withVariation(e,n,u.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},lm),Bg=(cm.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):Sg.of(e,t,n,u.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("bucket[".concat(s.bucketId,"]"))},cm),qg=(um.prototype.evaluate=function(e,t,r,n,o){return r.identifiers[t.identifierType]?o.evaluate(e,t,r,n):Sg.of(e,t,n,u.IDENTIFIER_NOT_FOUND)},um),$g=(am.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)})},am),Xg=(sm.prototype.determineTargetRuleOrNull=function(t,e,r){var n=this;return e.targetRules.find(function(e){return n.targetMatcher.matches(e.target,t,r)})},sm),Yg=(im.prototype.resolveOrNull=function(e,t,r){return this._resolveUserOverride(t,r)||this._resolveSegmentOverride(e,t,r)},im.prototype._resolveUserOverride=function(e,t){t=t.identifiers[e.identifierType];if(t){t=e.userOverrides.get(t);if(t)return e._getVariationByIdOrNull(t)}},im.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)},im),Wg=(om.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,"]"))},om),Jg=(nm.prototype.determineTargetRuleOrNull=function(t,r,n){var o=this;return r.targetRules.find(function(e){return o.matches(e,t,r,n)})},nm.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))},nm),Qg=(rm.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},rm.prototype.getRemoteConfigParameterTargetRuleDeterminer=function(){return this.remoteConfigParameterTargetRuleDeterminer},rm),Zg=(tm.prototype.install=function(e,t){this._install("onerror",e,t),this._install("onunhandledrejection",e,t)},tm.prototype._install=function(e,t,r){e in this._installed||((0,this._installations[e])(t,r),this._installed.push(e))},tm),em=null;function tm(){this._installed=[],this._installations={onerror:t0,onunhandledrejection:r0}}function rm(){var e=new Dg,t=new Ng(new xg),r=new Pg(e),n=new Yg(t,r),o=new Wg(e);this.abTestFlow=Mg.of(new Lg(n),new qg,new Bg(o),new Hg(new $g(t)),new jg,new Fg,new Vg,new Kg(r)),this.featureFlagFlow=Mg.of(new jg,new Fg,new Vg,new Lg(n),new qg,new zg(new Xg(t),r),new Gg(r)),this.remoteConfigParameterTargetRuleDeterminer=new Jg(t,e)}function nm(e,t){this.targetMatcher=e,this.bucketer=t}function om(e){this.bucketer=e}function im(e,t){this.targetMatcher=e,this.actionResolver=t}function sm(e){this.targetMatcher=e}function am(e){this.targetMatcher=e}function um(){}function cm(e){this.containerResolver=e}function lm(e){this.actionResolver=e}function fm(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function pm(e){this.actionResolver=e}function dm(e){this.experimentTargetDeterminer=e}function hm(){}function ym(){}function vm(){}function gm(e){this.overrideResolver=e}function mm(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function wm(){}function Em(e){this.bucketer=e}function bm(){}function Tm(e){this.userConditionMatcher=e}function _m(e){this.segmentMatcher=e}function Rm(){}function Im(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function Om(){}function Sm(){}function Cm(){}function Nm(){}function Am(){}function km(){}function xm(){}function Pm(){}function Um(){}function Dm(){}function Mm(){}function Lm(){}function jm(){}function Fm(){}function Vm(){}function Hm(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function Km(e){this.conditionMatcherFactory=e}function zm(e){this.evaluationFlowFactory=e}function Gm(e,t,r,n){this.variationId=e,this.variationKey=t,this.reason=r,this.config=n}function Bm(){}function qm(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 $m(){}function Xm(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function Ym(e,t,r,n){this.delegate=e,this.exposureEventDedupDeterminer=t,this.sessionManager=r,this.userManager=n}function Wm(e,t){this.hackleUserResolver=e,this.hackleInternalClient=t}function Jm(){}function Qm(e,t,r,n){void 0===n&&(n=null),this.eventDispatcher=e,this.flushInterval=r,this.queue=new gg(this.drainQueue.bind(this),t,r),this.repository=n}function Zm(e,t,r){this.buffer=[],this.sink=e,this.maxQueueSize=t,this.timer=new vg({callback:this.flush.bind(this),timeout:r}),this.started=!1}function e0(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function t0(i,s){em=window.onerror,window.onerror=function(e,t,r,n,o){a.isNotNullOrUndefined(o)&&i._trackException(o,s.resolveCurrentUser()),em&&em.apply(this,arguments)}}function r0(r,n){yg=window.onunhandledrejection,window.onunhandledrejection=function(e){var t;try{"reason"in e?t=e.reason:"detail"in e&&"reason"in e.detail&&(t=e.detail.reason)}catch(e){}t instanceof Error&&r._trackException(t,n.resolveCurrentUser()),yg&&yg.apply(this,arguments)}}function n0(e,t){return e.userId===t.userId&&e.deviceId===t.deviceId}h0.prototype.read=function(){var r=this;return new Promise(function(e){var t=r.storage.getItem(r.storageKey);t&&e(JSON.parse(t)),e([])})},h0.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()})},h0.prototype.add=function(t){var r=this;return this.read().then(function(e){return r.save(e.concat(t).slice(-r.maxSize))})},h0.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)})},h0.prototype.clear=function(){var t=this;return new Promise(function(e){localStorage.removeItem(t.storageKey),e()})};var o0=h0,i0=(d0.prototype.addListener=function(e){this.userListeners.push(e)},d0.prototype.initialize=function(){var e=this.storage.getItem("_hackle_did")||this.hackleDeviceId,t=this.storage.getItem("_hackle_uid")||void 0;this._currentUser={deviceId:e,userId:t}},Object.defineProperty(d0.prototype,"currentUser",{get:function(){return this._currentUser},enumerable:!1,configurable:!0}),d0.prototype.resolveCurrentOrNull=function(e){if(void 0===e)return this.currentUser;if("string"==typeof e)return this.setUser({id:e});e=Te(e);return e?this.setUser(e):null},d0.prototype.setUser=function(e){var t=this._currentUser,r=n0(r=t,e=e)?d(d({},e),{properties:d(d({},r.properties),e.properties)}):e;return this._currentUser=r,n0(t,r)||(this.changeUser(t,r,(new Date).getTime()),this.saveUser(r)),r},d0.prototype.setUserId=function(e){e=d(d({},this._currentUser),{userId:e});return this.setUser(e)},d0.prototype.setDeviceId=function(e){e=d(d({},this._currentUser),{deviceId:e});return this.setUser(e)},d0.prototype.setUserProperty=function(e,t){var r,e=d(d({},this._currentUser),{properties:d(d({},this._currentUser.properties),((r={})[e]=t,r))});return this.setUser(e)},d0.prototype.setUserProperties=function(e){e=d(d({},this._currentUser),{properties:d(d({},this._currentUser.properties),e)});return this.setUser(e)},d0.prototype.resetUser=function(){return this.setUser(this.defaultUser)},d0.prototype.changeUser=function(t,r,n){this.userListeners.forEach(function(e){e.onUserUpdated(t,r,n)})},d0.prototype.saveUser=function(e){a.isNotNullOrUndefined(e.deviceId)?this.storage.setItem("_hackle_did",e.deviceId):this.storage.removeItem("_hackle_did"),a.isNotNullOrUndefined(e.userId)?this.storage.setItem("_hackle_uid",e.userId):this.storage.removeItem("_hackle_uid")},d0),s0=(Object.defineProperty(p0.prototype,"currentSessionId",{get:function(){return this._currentSessionId},enumerable:!1,configurable:!0}),Object.defineProperty(p0.prototype,"sessionId",{get:function(){var e;return null!=(e=this._currentSessionId)?e:p0.EMPTY_SESSION_ID},enumerable:!1,configurable:!0}),Object.defineProperty(p0.prototype,"lastEventTime",{get:function(){return this._lastEventTime},enumerable:!1,configurable:!0}),p0.prototype.addListener=function(e){this.sessionListeners.push(e)},p0.prototype.startNewSession=function(e,t){return this.endSession(e),this.newSession(e,t)},p0.prototype.startNewSessionIfNeeded=function(e,t){var r=this._lastEventTime;return null!==r&&null!==this._currentSessionId&&t-r<this.sessionTimeoutMillis?(this.updateLastEventTime(t),this._currentSessionId):this.startNewSession(e,t)},p0.prototype.updateLastEventTime=function(e){this._lastEventTime=e,this.storage.setItem("_hackle_last_event_ts","".concat(e))},p0.prototype.endSession=function(t){var r=this._currentSessionId,n=this._lastEventTime;null!==r&&null!==n&&this.sessionListeners.forEach(function(e){return e.onSessionEnded(r,t,n)})},p0.prototype.newSession=function(t,r){var n="".concat(r,".").concat(ae.v4().slice(0,8));return this.saveSession(n),this.updateLastEventTime(r),this.sessionListeners.forEach(function(e){e.onSessionStarted(n,t,r)}),n},p0.prototype.saveSession=function(e){this._currentSessionId=e,this.storage.setItem("_hackle_session_id",e)},p0.prototype.loadSession=function(){this._currentSessionId=this.storage.getItem("_hackle_session_id")},p0.prototype.loadLastEventTime=function(){var e=this.storage.getItem("_hackle_last_event_ts");null!==e&&0<(e=Number.parseFloat(e))&&(this._lastEventTime=e)},p0.prototype.onUserUpdated=function(e,t,r){this.endSession(e),this.newSession(t,r)},p0.EMPTY_SESSION_ID="0.ffffffff",p0),a0=(f0.postfix=function(e,t){return new f0(e,function(e){return"".concat(e).concat(t)})},f0.prototype.getItem=function(e){return this.delegate.getItem(this.transform(e))},f0.prototype.removeItem=function(e){this.delegate.removeItem(this.transform(e))},f0.prototype.setItem=function(e,t){this.delegate.setItem(this.transform(e),t)},f0),u0=pe.log,c0=null,l0={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.10.1"};function f0(e,t){this.delegate=e,this.transform=t}function p0(e,t){this.sessionTimeoutMillis=e,this.storage=t,this.sessionListeners=[],this._currentSessionId=null,this._lastEventTime=null,this.loadSession(),this.loadLastEventTime()}function d0(e,t){this.storage=e,this.hackleDeviceId=t,this.userListeners=[],this.defaultUser={deviceId:this.hackleDeviceId},this._currentUser=this.defaultUser,this.initialize()}function h0(e,t,r){this.storage=e,this.storageKey=t,this.maxSize=r}function y0(e,t){t=d(d({},l0),t);if(t.log_disabled?pe.setLogLevel(0):t.debug&&pe.setLogLevel(4),u0.debug("sdkKey : "+e),e||u0.error("SDK Key must not be null"),c0)return u0.debug("use already exists hackleClient"),c0;var r=!1,r=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&u0.debug("support sendBeacon API"),new zt(e,Me,{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 $t(e,Me,{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?(u0.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):t.exposureEventDedupIntervalMillis),new o0(window.localStorage,"".concat("hackle-repository-storage","_").concat(e),100)),s=new i0(a0.postfix(Jt,"_".concat(e)),lr()),a=new s0(t.sessionTimeoutMillis,a0.postfix(Jt,"_".concat(e.slice(8))));s.addListener(a);function u(){f.drainRepository()}var c,l,f=new mg(r,100,500,i),e=new Tg(o),r=new bg(f,e,a,s),i=new Ig(n,r,new Cg(new Qg),new Og),o=new Zt(s),p=new It(i,o,a,s),e=new Eg(o,i);a.addListener(e),c0=p,t.auto_track_page_view&&(l=function(){return c.trackPageView({user:{id:lr()}})},(c=p).onReady(function(){function t(e){if("function"==typeof window.Event)return new Event(e);var t=!1,r=!1,n=void 0,o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t,r,n),o}l();try{history.pushState=(n=history.pushState,function(){try{var e=n.apply(this,arguments);return window.dispatchEvent(t("locationchange")),e}catch(e){if(e instanceof Error)u0.error(e);else try{u0.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)u0.error(e);else try{u0.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(t("locationchange"))}catch(e){if(e instanceof Error)u0.error(e);else try{u0.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{l()}catch(e){if(e instanceof Error)u0.error(e);else try{u0.error(e)}catch(e){}}})}catch(t){if(t instanceof Error)u0.error(t);else try{u0.error(t)}catch(t){}}var r,n})),(new Zg).install(i,o);return document.addEventListener("visibilitychange",function(){document.hidden||u()}),window.addEventListener("pageshow",u),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){pr(),a.updateLastEventTime((new Date).getTime()),p.close()}),p.onReady(function(){a.startNewSessionIfNeeded(s.currentUser,(new Date).getTime())}),p}var o={createInstance:y0,getUserId:lr,setUserId:fr,removeUserId:pr,Logger:pe},v0=(l.Bucket=t.Bucket=Ee,l.Container=t.Container=We,l.ContainerGroup=t.ContainerGroup=xe,l.CoreVersion=t.CoreVersion=ht,l.Decision=t.Decision=Fe,l.DecisionReason=t.DecisionReason=u,l.EmptyHackleRemoteConfig=t.EmptyHackleRemoteConfig=ie,l.EmptyParameterConfig=t.EmptyParameterConfig=He,l.EventType=t.EventType=be,l.Experiment=t.Experiment=Ke,l.FeatureFlagDecision=t.FeatureFlagDecision=Ve,l.IdentifierType=t.IdentifierType=Ge,l.IdentifiersBuilder=t.IdentifiersBuilder=Be,l.Logger=t.Logger=pe,l.MATCH_OPERATORS=t.MATCH_OPERATORS=mt,l.MATCH_TYPES=t.MATCH_TYPES=vt,l.MATCH_VALUE_TYPES=t.MATCH_VALUE_TYPES=gt,l.MetaVersion=t.MetaVersion=yt,l.ParameterConfiguration=t.ParameterConfiguration=Je,l.RemoteConfigDecision=t.RemoteConfigDecision=je,l.RemoteConfigParameter=t.RemoteConfigParameter=Pe,l.RemoteConfigParameterValue=t.RemoteConfigParameterValue=De,l.RemoteConfigTargetRule=t.RemoteConfigTargetRule=Ue,l.SEGMENT_TYPES=t.SEGMENT_TYPES=bt,l.Segment=t.Segment=ke,l.Slot=t.Slot=ze,l.TARGET_ACTION_TYPES=t.TARGET_ACTION_TYPES=wt,l.TARGET_KEY_TYPES=t.TARGET_KEY_TYPES=Et,l.Target=t.Target=Ie,l.TargetAction=t.TargetAction=Ne,l.TargetCondition=t.TargetCondition=Oe,l.TargetKey=t.TargetKey=Se,l.TargetMatch=t.TargetMatch=Ce,l.TargetRule=t.TargetRule=Ae,l.TargetingType=t.TargetingType=Tt,l.Variation=t.Variation=we,l.Version=t.Version=dt,se=t.createInstance=y0,t.default=o,l.getUserId=t.getUserId=lr,l.isValidIdentifierType=t.isValidIdentifierType=Xe,l.isValidPropertyKeyType=t.isValidPropertyKeyType=$e,l.isValidPropertyValueType=t.isValidPropertyValueType=qe,l.removeUserId=t.removeUserId=pr,l.sanitizeIdentifier=t.sanitizeIdentifier=Ye,l.sanitizeIdentifiers=t.sanitizeIdentifiers=Re,l.sanitizeProperties=t.sanitizeProperties=_e,l.sanitizeUser=t.sanitizeUser=Te,l.setUserId=t.setUserId=fr,function(e,t){return(v0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)});var g0=function(){return(g0=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 m0(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}w0.prototype.on=function(e,t){this.listeners[e]=(this.listeners[e]||[]).concat(t)},w0.prototype.off=function(e,t){this.listeners[e]=(this.listeners[e]||[]).filter(function(e){return e!==t})},w0.prototype.emit=function(e,t){(this.listeners[e]||[]).forEach(function(e){e(t)})};ma=w0;function w0(){this.listeners={}}b0.arePropertiesEqual=function(e,t){var r=b0.coerceUnknownToProperties(e),n=b0.coerceUnknownToProperties(t),e=Object.keys(r),t=Object.keys(n);return e.length===t.length&&e.every(function(e){return e in n&&r[e]===n[e]})},b0.coerceUnknownToProperties=function(e){return"object"==typeof e&&null!==e?e:{}};var E0=b0;function b0(){}_0.isUserEqual=function(e,t){return(null==e?void 0:e.id)===(null==t?void 0:t.id)&&(null==e?void 0:e.deviceId)===(null==t?void 0:t.deviceId)&&(null==e?void 0:e.userId)===(null==t?void 0:t.userId)&&E0.arePropertiesEqual(null==e?void 0:e.properties,null==t?void 0:t.properties)&&E0.arePropertiesEqual(null==e?void 0:e.identifiers,null==t?void 0:t.identifiers)};var T0=_0;function _0(){}var R0=function(n){var e=o,t=n;if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}function o(e,t){var r=n.call(this)||this;return r._currentUser=null,r.client=se(e,g0(g0({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.10.2"})),r}return v0(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r),o.prototype.getUser=function(){return this.client.getUser()},o.prototype.setUser=function(e){this.client.setUser(e),this.emitUpdatedUser(this.getUser())},o.prototype.setUserId=function(e){this.client.setUserId(e),this.emitUpdatedUser(this.getUser())},o.prototype.setDeviceId=function(e){this.client.setDeviceId(e),this.emitUpdatedUser(this.getUser())},o.prototype.setUserProperty=function(e,t){this.client.setUserProperty(e,t),this.emitUpdatedUser(this.getUser())},o.prototype.resetUser=function(){this.client.resetUser(),this.emitUpdatedUser(this.getUser())},o.prototype.variation=function(e,t,r){return this.client.variation(e,t||void 0,r)},o.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t||void 0,r)},o.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t||void 0)},o.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t||void 0)},o.prototype.track=function(e,t){this.client.track(e,t||void 0)},o.prototype.trackPageView=function(e){this.client.trackPageView(g0(g0({},e),{user:(null==e?void 0:e.user)||void 0}))},o.prototype.remoteConfig=function(e){return this.client.remoteConfig(e||void 0)},o.prototype.onReady=function(e,t){this.client.onReady(e,t)},o.prototype.onInitialized=function(e){return this.client.onInitialized(e)},o.prototype.emitUpdatedUser=function(e){T0.isUserEqual(this._currentUser,e)||this.emit("user-updated",e),this._currentUser=e},o}(ma);var U={exports:{}},T={},I0=Object.getOwnPropertySymbols,O0=Object.prototype.hasOwnProperty,S0=Object.prototype.propertyIsEnumerable;var kr=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]))O0.call(r,i)&&(n[i]=r[i]);if(I0)for(var s=I0(r),a=0;a<s.length;a++)S0.call(r,s[a])&&(n[s[a]]=r[s[a]])}return n},C0=kr,P="function"==typeof Symbol&&Symbol.for,N0=P?Symbol.for("react.element"):60103,A0=P?Symbol.for("react.portal"):60106,ko=P?Symbol.for("react.fragment"):60107,p=P?Symbol.for("react.strict_mode"):60108,xa=P?Symbol.for("react.profiler"):60114,k0=P?Symbol.for("react.provider"):60109,x0=P?Symbol.for("react.context"):60110,P0=P?Symbol.for("react.forward_ref"):60112,x=P?Symbol.for("react.suspense"):60113,U0=P?Symbol.for("react.memo"):60115,D0=P?Symbol.for("react.lazy"):60116,M0="function"==typeof Symbol&&Symbol.iterator;function L0(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 j0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F0={};function V0(e,t,r){this.props=e,this.context=t,this.refs=F0,this.updater=r||j0}function H0(){}function K0(e,t,r){this.props=e,this.context=t,this.refs=F0,this.updater=r||j0}V0.prototype.isReactComponent={},V0.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(L0(85));this.updater.enqueueSetState(this,e,t,"setState")},V0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},H0.prototype=V0.prototype;var qr=K0.prototype=new H0,z0=(qr.constructor=K0,C0(qr,V0.prototype),qr.isPureReactComponent=!0,{current:null}),G0=Object.prototype.hasOwnProperty,B0={key:!0,ref:!0,__self:!0,__source:!0};function q0(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)G0.call(t,n)&&!B0.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:N0,type:e,key:i,ref:s,props:o,_owner:z0.current}}function $0(e){return"object"==typeof e&&null!==e&&e.$$typeof===N0}var X0=/\/+/g,Y0=[];function W0(e,t,r,n){var o;return Y0.length?((o=Y0.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 J0(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,Y0.length<10&&Y0.push(e)}function Q0(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 N0:case A0:i=!0}}if(i)return n(o,t,""===r?"."+Z0(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+Z0(a=t[s],s);i+=e(a,u,n,o)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=M0&&t[M0]||t["@@iterator"])?u:null))for(t=u.call(t),s=0;!(a=t.next()).done;)i+=e(a=a.value,u=r+Z0(a,s++),n,o);else if("object"===a)throw n=""+t,Error(L0(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return i}(e,"",t,r)}function Z0(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 ew(e,t){e.func.call(e.context,t,e.count++)}function tw(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?rw(e,n,r,function(e){return e}):null!=e&&($0(e)&&(t=o+(!(o=e).key||t&&t.key===e.key?"":(""+e.key).replace(X0,"$&/")+"/")+r,e={$$typeof:N0,type:o.type,key:t,ref:o.ref,props:o.props,_owner:o._owner}),n.push(e))}function rw(e,t,r,n,o){var i="";Q0(e,tw,t=W0(t,i=null!=r?(""+r).replace(X0,"$&/")+"/":i,n,o)),J0(t)}var nw={current:null};function ow(){var e=nw.current;if(null===e)throw Error(L0(321));return e}var iw,sw,aw,Qr={ReactCurrentDispatcher:nw,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:z0,IsSomeRendererActing:{current:!1},assign:C0},R=(T.Children={map:function(e,t,r){if(null==e)return e;var n=[];return rw(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;Q0(e,ew,t=W0(null,null,t,r)),J0(t)},count:function(e){return Q0(e,function(){return null},null)},toArray:function(e){var t=[];return rw(e,t,null,function(e){return e}),t},only:function(e){if($0(e))return e;throw Error(L0(143))}},T.Component=V0,T.Fragment=ko,T.Profiler=xa,T.PureComponent=K0,T.StrictMode=p,T.Suspense=x,T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qr,T.cloneElement=function(e,t,r){if(null==e)throw Error(L0(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=z0.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)G0.call(t,a)&&!B0.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:N0,type:e.type,key:o,ref:i,props:n,_owner:s}},T.createContext=function(e,t){return(e={$$typeof:x0,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:k0,_context:e},e.Consumer=e},T.createElement=q0,T.createFactory=function(e){var t=q0.bind(null,e);return t.type=e,t},T.createRef=function(){return{current:null}},T.forwardRef=function(e){return{$$typeof:P0,render:e}},T.isValidElement=$0,T.lazy=function(e){return{$$typeof:D0,_ctor:e,_status:-1,_result:null}},T.memo=function(e,t){return{$$typeof:U0,type:e,compare:void 0===t?null:t}},T.useCallback=function(e,t){return ow().useCallback(e,t)},T.useContext=function(e,t){return ow().useContext(e,t)},T.useDebugValue=function(){},T.useEffect=function(e,t){return ow().useEffect(e,t)},T.useImperativeHandle=function(e,t,r){return ow().useImperativeHandle(e,t,r)},T.useLayoutEffect=function(e,t){return ow().useLayoutEffect(e,t)},T.useMemo=function(e,t){return ow().useMemo(e,t)},T.useReducer=function(e,t,r){return ow().useReducer(e,t,r)},T.useRef=function(e){return ow().useRef(e)},T.useState=function(e){return ow().useState(e)},T.version="16.14.0",{}),Bi=Function.call.bind(Object.prototype.hasOwnProperty),uw=function(){};function cw(e,t,r,n,o){if("production"!==production)for(var i in e)if(aw(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,iw)}catch(e){s=e}!s||s instanceof Error||uw((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 sw)&&(sw[s.message]=!0,i=o?o():"",uw("Failed "+r+" type: "+s.message+(null!=i?i:"")))}}if("production"!==production&&(iw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",sw={},aw=Bi,uw=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),cw.resetWarningCache=function(){"production"!==production&&(sw={})},"production"!==production){var lw=kr,fw=cw,r="function"==typeof Symbol&&Symbol.for,pw=r?Symbol.for("react.element"):60103,dw=r?Symbol.for("react.portal"):60106,hw=r?Symbol.for("react.fragment"):60107,yw=r?Symbol.for("react.strict_mode"):60108,vw=r?Symbol.for("react.profiler"):60114,gw=r?Symbol.for("react.provider"):60109,mw=r?Symbol.for("react.context"):60110,ww=r?Symbol.for("react.concurrent_mode"):60111,Ew=r?Symbol.for("react.forward_ref"):60112,bw=r?Symbol.for("react.suspense"):60113,Tw=r?Symbol.for("react.suspense_list"):60120,_w=r?Symbol.for("react.memo"):60115,Rw=r?Symbol.for("react.lazy"):60116,Iw=r?Symbol.for("react.block"):60121,Ow=r?Symbol.for("react.fundamental"):60117,Sw=r?Symbol.for("react.responder"):60118,Cw=r?Symbol.for("react.scope"):60119,Nw="function"==typeof Symbol&&Symbol.iterator,Aw="@@iterator";function kw(e){if(null===e||"object"!=typeof e)return null;e=Nw&&e[Nw]||e[Aw];return"function"==typeof e?e:null}var xw={current:null},Pw={current:null},Uw=/^(.*)[\\\/]/,Dw=1;function Mw(e){if(null==e)return null;if("number"==typeof e.tag&&D("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 hw:return"Fragment";case dw:return"Portal";case vw:return"Profiler";case yw:return"StrictMode";case bw:return"Suspense";case Tw:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case mw:return"Context.Consumer";case gw:return"Context.Provider";case Ew:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case _w:return Mw(e.type);case Iw:return Mw(e.render);case Rw:r=(t=e)._status===Dw?t._result:null;if(r)return Mw(r)}var t,r;return null}var Lw={},jw=null;function Fw(e){jw=e}Lw.getCurrentStack=null,Lw.getStackAddendum=function(){var e,t,r,n,o,i="",s=(jw&&(e=Mw(jw.type),r=jw._owner,i+=(e=e,t=jw._source,r=r&&Mw(r.type),o="",t?(n=(s=t.fileName).replace(Uw,""),o=" (at "+(n=/^index\./.test(n)&&(s=s.match(Uw))&&(s=s[1])?s.replace(Uw,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(o=" (created by "+r+")"),"\n in "+(e||"Unknown")+o)),Lw.getCurrentStack);return s&&(i+=s()||""),i};var Vw={ReactCurrentDispatcher:xw,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Pw,IsSomeRendererActing:{current:!1},assign:lw};function Hw(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];Kw("warn",e,r)}function D(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];Kw("error",e,r)}function Kw(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=Vw.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){}}lw(Vw,{ReactDebugCurrentFrame:Lw,ReactComponentTreeHook:{}});var zw={};function Gw(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;zw[r]||(D("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),zw[r]=!0)}var Bw={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){Gw(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){Gw(e,"replaceState")},enqueueSetState:function(e,t,r,n){Gw(e,"setState")}},qw={};function $w(e,t,r){this.props=e,this.context=t,this.refs=qw,this.updater=r||Bw}Object.freeze(qw),$w.prototype.isReactComponent={},$w.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")},$w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var Xw,Yw={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 Yw)Yw.hasOwnProperty(Xw)&&!function(e,t){Object.defineProperty($w.prototype,e,{get:function(){Hw("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(Xw,Yw[Xw]);function Ww(){}function Jw(e,t,r){this.props=e,this.context=t,this.refs=qw,this.updater=r||Bw}Ww.prototype=$w.prototype,(r=Jw.prototype=new Ww).constructor=Jw,lw(r,$w.prototype),r.isPureReactComponent=!0;var Qw,Zw,eE=Object.prototype.hasOwnProperty,tE={key:!0,ref:!0,__self:!0,__source:!0};function rE(e){if(eE.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function nE(e){if(eE.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var oE={},iE=function(e,t,r,n,o,i,s){e={$$typeof:pw,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 sE(e,t,r){var n,o={},i=null,s=null,a=null,u=null;if(null!=t)for(n in rE(t)&&(s=t.ref,"string"==typeof(c=t).ref&&Pw.current&&c.__self&&Pw.current.stateNode!==c.__self&&(f=Mw(Pw.current.type),oE[f]||(D('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',Mw(Pw.current.type),c.ref),oE[f]=!0))),nE(t)&&(i=""+t.key),a=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)eE.call(t,n)&&!tE.hasOwnProperty(n)&&(o[n]=t[n]);var c,l,f,p,d=arguments.length-2;if(1==d)o.children=r;else if(1<d){for(var h=Array(d),y=0;y<d;y++)h[y]=arguments[y+2];Object.freeze&&Object.freeze(h),o.children=h}if(e&&e.defaultProps){var v=e.defaultProps;for(n in v)void 0===o[n]&&(o[n]=v[n])}function g(){Zw||(Zw=!0,D("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",l))}function m(){Qw||(Qw=!0,D("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",p))}return(i||s)&&(c="function"==typeof e?e.displayName||e.name||"Unknown":e,i&&(f=o,p=c,m.isReactWarning=!0,Object.defineProperty(f,"key",{get:m,configurable:!0})),s&&(r=o,l=c,g.isReactWarning=!0,Object.defineProperty(r,"ref",{get:g,configurable:!0}))),iE(e,i,s,a,u,Pw.current,o)}function aE(e){return"object"==typeof e&&null!==e&&e.$$typeof===pw}var uE=".",cE=":",lE=!1,fE=/\/+/g;function pE(e){return(""+e).replace(fE,"$&/")}var dE=10,hE=[];function yE(e,t,r,n){var o;return hE.length?((o=hE.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 vE(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,hE.length<dE&&hE.push(e)}function gE(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 pw:case dw:a=!0}}if(a)return n(o,t,""===r?uE+mE(t,0):r),1;var u=0,c=""===r?uE:r+cE;if(Array.isArray(t))for(var l=0;l<t.length;l++)u+=e(i=t[l],c+mE(i,l),n,o);else if("function"==typeof(r=kw(t))){r===t.entries&&(lE||Hw("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."),lE=!0);for(var f,p=r.call(t),d=0;!(f=p.next()).done;)u+=e(i=f.value,c+mE(i,d++),n,o)}else if("object"==s)throw r="",r=" If you meant to render a collection of children, use an array instead."+Lw.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 mE(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 wE(e,t,r){var n=e.func,o=e.context;n.call(o,t,e.count++)}function EE(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)?bE(i,n,r,function(e){return e}):null!=i&&(aE(i)&&(e=o+(!(s=i).key||t&&t.key===i.key?"":pE(i.key)+"/")+r,i=iE(s.type,e,s.ref,s._self,s._source,s._owner,s.props)),n.push(i))}function bE(e,t,r,n,o){var i="",t=yE(t,i=null!=r?pE(r)+"/":i,n,o);gE(e,EE,t),vE(t)}function TE(e){return"string"==typeof e||"function"==typeof e||e===hw||e===ww||e===vw||e===yw||e===bw||e===Tw||"object"==typeof e&&null!==e&&(e.$$typeof===Rw||e.$$typeof===_w||e.$$typeof===gw||e.$$typeof===mw||e.$$typeof===Ew||e.$$typeof===Ow||e.$$typeof===Sw||e.$$typeof===Cw||e.$$typeof===Iw)}function _E(){var e=xw.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 RE(){if(Pw.current){var e=Mw(Pw.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var IE=!1,OE={};function SE(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=RE())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),OE[t=r]||(OE[t]=!0,r="",e&&e._owner&&e._owner!==Pw.current&&(r=" It was passed a child from "+Mw(e._owner.type)+"."),Fw(e),D('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),Fw(null)))}function CE(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];aE(n)&&SE(n,t)}else if(aE(e))e._store&&(e._store.validated=!0);else if(e){var o=kw(e);if("function"==typeof o&&o!==e.entries)for(var i,s=o.call(e);!(i=s.next()).done;)aE(i.value)&&SE(i.value,t)}}function NE(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=Mw(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==Ew&&t.$$typeof!==_w)return;r=t.propTypes}r?(Fw(e),fw(r,e.props,"prop",n,Lw.getStackAddendum),Fw(null)):void 0===t.PropTypes||IE||(IE=!0,D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function AE(e,t,r){var n,o=TE(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+".":"")||RE(),null===e?s="null":Array.isArray(e)?s="array":void 0!==e&&e.$$typeof===pw?(s="<"+(Mw(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,D("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)),sE.apply(this,arguments));if(null==t)return t;if(o)for(var i=2;i<arguments.length;i++)CE(arguments[i],e);if(e===hw){var s=t;Fw(s);for(var a=Object.keys(s.props),u=0;u<a.length;u++){var c=a[u];if("children"!==c&&"key"!==c){D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c);break}}null!==s.ref&&D("Invalid attribute `ref` supplied to `React.Fragment`."),Fw(null)}else NE(t);return t}var kE=!1;try{var xE=Object.freeze({}),PE=new Map([[xE,null]]),UE=new Set([xE]);PE.set(0,0),UE.add(0)}catch(e){}function DE(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=lw({},e.props),s=e.key,a=e.ref,u=e._self,c=e._source,l=e._owner;if(null!=t)for(n in rE(t)&&(a=t.ref,l=Pw.current),nE(t)&&(s=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)eE.call(t,n)&&!tE.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 iE(e.type,s,a,u,c,l,i)}.apply(this,arguments),o=2;o<arguments.length;o++)CE(arguments[o],n.type);return NE(n),n}function ME(e){var t=AE.bind(null,e);return t.type=e,kE||(kE=!0,Hw("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 Hw("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}r=AE,R.Children={map:function(e,t,r){if(null==e)return e;var n=[];return bE(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=yE(null,null,t,r),gE(e,wE,t),vE(t)},count:function(e){return gE(e,function(){return null},null)},toArray:function(e){var t=[];return bE(e,t,null,function(e){return e}),t},only:function(e){if(aE(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},R.Component=$w,R.Fragment=hw,R.Profiler=vw,R.PureComponent=Jw,R.StrictMode=yw,R.Suspense=bw,R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vw,R.cloneElement=DE,R.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&D("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:mw,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:gw,_context:r}),o=!1,t={$$typeof:mw,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return o||(o=!0,D("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,D("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}}}),r.Consumer=t,r._currentRenderer=null,r._currentRenderer2=null,r},R.createElement=r,R.createFactory=ME,R.createRef=function(){var e={current:null};return Object.seal(e),e},R.forwardRef=function(e){return null!=e&&e.$$typeof===_w?D("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?D("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&D("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||D("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:Ew,render:e}},R.isValidElement=aE,R.lazy=function(e){var t,r,n={$$typeof:Rw,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){D("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){D("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},R.memo=function(e,t){return TE(e)||D("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:_w,type:e,compare:void 0===t?null:t}},R.useCallback=function(e,t){return _E().useCallback(e,t)},R.useContext=function(e,t){var r,n=_E();return void 0!==t&&D("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?D("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&&D("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},R.useDebugValue=function(e,t){return _E().useDebugValue(e,t)},R.useEffect=function(e,t){return _E().useEffect(e,t)},R.useImperativeHandle=function(e,t,r){return _E().useImperativeHandle(e,t,r)},R.useLayoutEffect=function(e,t){return _E().useLayoutEffect(e,t)},R.useMemo=function(e,t){return _E().useMemo(e,t)},R.useReducer=function(e,t,r){return _E().useReducer(e,t,r)},R.useRef=function(e){return _E().useRef(e)},R.useState=function(e){return _E().useState(e)},R.version="16.14.0"}"production"===production?U.exports=T:U.exports=R;var LE=U.exports,jE=U.exports.createContext({hackle:void 0,userVersion:0,initialized:!1}),Po=jE.Consumer,FE=jE.Provider;var VE=l.Logger.log;function HE(e,t){e=KE(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function KE(e,t){void 0===t&&(t="A");var r=U.exports.useContext(jE),n=r.hackle,o=r.userVersion,i=r.initialized,s=U.exports.useCallback(function(){return i?(null==n?void 0:n.variationDetail(e))||l.Decision.of(t,l.DecisionReason.EXCEPTION):l.Decision.of(t,l.DecisionReason.SDK_NOT_READY)},[t,e,n,i]),r=m0(U.exports.useState(function(){return n?s():(VE.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2),a=r[0],r=r[1],o={key:e,userVersion:o,initialized:i},u=m0(U.exports.useState(o),2),c=u[0],u=u[1];return BE(c,o)||(u(o),r(s())),{isLoading:!i,decision:a}}function zE(e){e=GE(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function GE(e){var t=U.exports.useContext(jE),r=t.hackle,n=t.userVersion,o=t.initialized,i=U.exports.useCallback(function(){return o?(null==r?void 0:r.featureFlagDetail(e))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION):l.FeatureFlagDecision.off(l.DecisionReason.SDK_NOT_READY)},[e,r,o]),t=m0(U.exports.useState(function(){return r?i():(VE.error("HackleClient is not existed"),l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION))}),2),s=t[0],t=t[1],n={key:e,userVersion:n,initialized:o},a=m0(U.exports.useState(n),2),u=a[0],a=a[1];return BE(u,n)||(a(n),t(i())),{isLoading:!o,decision:s}}function BE(e,t){return e.initialized===t.initialized&&e.key===t.key&&e.userVersion===t.userVersion}function qE(e){var t,r=e.experimentKey,e=e.children,n=(r=HE(r)).isLoading,o=r.variation;return n?null:e&&"function"==typeof e?e(o):(U.exports.Children.forEach(e,function(e){U.exports.isValidElement(e)&&(e.props.variation?o===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?U.exports.cloneElement(t,{variation:o}):null)}function $E(e){return e.variation,e=e.children,U.exports.createElement(U.exports.Fragment,null,e)}function XE(e){var t=(r=zE(e.featureKey)).isLoading,r=r.isOn;return t?null:LE.createElement(LE.Fragment,null,e.children(r))}l.HackleContext=jE,l.HackleContextConsumer=Po,l.HackleContextProvider=FE,l.HackleExperiment=qE,l.HackleFeature=XE,l.HackleProvider=function(e){var t=e.hackleClient,r=e.user,n=void 0===(o=e.timeout)?3e3:o,o=void 0!==(o=e.supportSSR)&&o,e=e.children,i=m0(U.exports.useState({hackle:t,initialized:!1,userVersion:0}),2),s=i[0],a=i[1];return U.exports.useEffect(function(){null!=r&&t.setUser(r)},[r]),U.exports.useEffect(function(){function e(){a(function(e){return g0(g0({},e),{userVersion:e.userVersion+1})})}return t.on("user-updated",e),function(){t.off("user-updated",e)}},[t]),U.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){a(function(e){return g0(g0({},e),{initialized:!0})})},function(){a(function(e){return g0(g0({},e),{initialized:!0})})}).catch(function(){a(function(e){return g0(g0({},e),{initialized:!0})})})},[t]),o||s.initialized?LE.createElement(FE,{value:s},e):null},l.HackleVariation=$E,l.createInstance=function(e,t){return new R0(e,t)},l.useFeature=function(e){var t=(n=U.exports.useContext(jE)).hackle,r=n.userVersion,n=n.initialized,o=U.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e))||!1},[e,t,n]),i=(s=m0(U.exports.useState(function(){return t?o():("undefined"!=typeof window&&VE.error("HackleClient is not existed"),!1)}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=m0(U.exports.useState(r),2))[0],n=n[1];return BE(a,r)||(n(r),s(o())),i},l.useFeatureFlagDetail=function(e){var t=(n=U.exports.useContext(jE)).hackle,r=n.userVersion,n=n.initialized,o=U.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION)},[e,t,n]),i=(s=m0(U.exports.useState(function(){return t?o():("undefined"!=typeof window&&VE.error("HackleClient is not existed"),l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION))}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=m0(U.exports.useState(r),2))[0],n=n[1];return BE(a,r)||(n(r),s(o())),i},l.useLoadableFeature=zE,l.useLoadableFeatureDetail=GE,l.useLoadableRemoteConfig=function(){var e=(i=U.exports.useContext(jE)).hackle,t=i.userVersion,r=i.initialized,n=U.exports.useCallback(function(){return r&&(null==e?void 0:e.remoteConfig())||new l.EmptyHackleRemoteConfig},[e,r]),o=(i=m0(U.exports.useState(function(){return e||VE.error("HackleClient is not existed"),n()}),2))[0],i=i[1],t={userVersion:t,initialized:r},s=(a=m0(U.exports.useState(t),2))[0],a=a[1];return BE(s,t)||(a(t),i(n())),{isLoading:!r,remoteConfig:o}},l.useLoadableVariation=HE,l.useLoadableVariationDetail=KE,l.useRemoteConfig=function(){var e=(r=U.exports.useContext(jE)).hackle,t=r.userVersion,r=r.initialized,n=U.exports.useCallback(function(){return(null==e?void 0:e.remoteConfig())||new l.EmptyHackleRemoteConfig},[e,r]),o=(i=m0(U.exports.useState(function(){return e||VE.error("HackleClient is not existed"),n()}),2))[0],i=i[1],t={userVersion:t,initialized:r},s=(r=m0(U.exports.useState(t),2))[0],r=r[1];return BE(s,t)||(r(t),i(n())),o},l.useTrack=function(){var t=U.exports.useContext(jE).hackle;return t?function(e){return null==t?void 0:t.track(e)}:(VE.error("HackleClient is not existed"),function(){})},l.useVariation=function(e,t){void 0===t&&(t="A");var r=(a=U.exports.useContext(jE)).hackle,n=a.userVersion,o=a.initialized,i=U.exports.useCallback(function(){return o&&(null==r?void 0:r.variation(e))||t},[t,e,r,o]),s=(a=m0(U.exports.useState(function(){return r?i():("undefined"!=typeof window&&VE.error("HackleClient is not existed"),t)}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:o},u=(c=m0(U.exports.useState(n),2))[0],c=c[1];return BE(u,n)||(c(n),a(i())),s},l.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(o=U.exports.useContext(jE)).hackle,n=o.userVersion,o=o.initialized,i=U.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e))||l.Decision.of(t,l.DecisionReason.EXCEPTION)},[t,e,r,o]),s=(a=m0(U.exports.useState(function(){return r?i():("undefined"!=typeof window&&VE.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:o},u=(o=m0(U.exports.useState(n),2))[0],o=o[1];return BE(u,n)||(o(n),a(i())),s},Object.defineProperty(l,"__esModule",{value:!0})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hackler/react-sdk",
|
|
3
|
-
"version": "11.10.
|
|
3
|
+
"version": "11.10.2",
|
|
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.10.
|
|
42
|
+
"@hackler/javascript-sdk": "11.10.2"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.8.0"
|