@hackler/react-sdk 11.3.1 → 11.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +0 -6
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(f){"use strict";var j,e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t={},L=(f.setUserId=void 0,f.removeUserId=void 0,f.getUserId=void 0,f.Version=void 0,f.Variation=void 0,f.TargetingType=void 0,f.TargetRule=void 0,f.TargetMatch=void 0,f.TargetKey=void 0,f.TargetCondition=void 0,f.TargetAction=void 0,f.Target=void 0,f.TARGET_KEY_TYPES=void 0,f.TARGET_ACTION_TYPES=void 0,f.Slot=void 0,f.Segment=void 0,f.SEGMENT_TYPES=void 0,f.ParameterConfiguration=void 0,f.MetaVersion=void 0,f.MATCH_VALUE_TYPES=void 0,f.MATCH_TYPES=void 0,f.MATCH_OPERATORS=void 0,f.Logger=void 0,f.IdentifiersBuilder=void 0,f.IdentifierType=void 0,f.FeatureFlagDecision=void 0,f.Experiment=void 0,f.EventType=void 0,f.EmptyParameterConfig=void 0,f.DecisionReason=void 0,f.Decision=void 0,f.CoreVersion=void 0,f.ContainerGroup=void 0,f.Container=void 0,f.Bucket=void 0,Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){return(L=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 F(e,t){function r(){this.constructor=e}L(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var U=function(){return(U=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 V(n,o){var i,a,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[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,a&&(s=2&t[0]?a.return:t[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,a=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!((s=0<(s=u.trys).length&&s[s.length-1])||6!==t[0]&&2!==t[0])){u=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3])){u.label=t[1];break}if(6===t[0]&&u.label<s[1]){u.label=s[1],s=t;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(t);break}s[2]&&u.ops.pop(),u.trys.pop();continue}t=o.call(n,u)}catch(e){t=[6,e],a=0}finally{i=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}q.setLogLevel=function(e){this.logLevel=e=void 0===e?3:e},q._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)K.log(e,r,t.message,t);else try{K.log(e,r,t)}catch(e){}},q.logLevel=3,q.log={error:function(e){1<=q.logLevel&&q._log("ERROR",e)},warn:function(e){2<=q.logLevel&&q._log("WARN",e)},info:function(e){3<=q.logLevel&&q._log("INFO",e)},debug:function(e){4<=q.logLevel&&q._log("DEBUG",e)}};var H=q,K=(B.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},B),z=[0,8,16,32,64,128,256,512],G=H.log;function B(){}function q(){}function $(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}function X(e,t,r,n){this.id=e,this.key=t,this.isDropped=r,this.parameterConfigurationId=n}function Y(e,t,r){this.seed=e,this.slotSize=t,this.slots=r}function W(e,t){this.id=e,this.key=t}function Z(e){this.conditions=e}function J(e,t){this.key=e,this.match=t}function Q(e,t){this.type=e,this.name=t}function ee(e,t,r,n){this.type=e,this.operator=t,this.valueType=r,this.values=n}function te(e,t,r){this.type=e,this.variationId=t,this.bucketId=r}function re(e,t){this.target=e,this.action=t}function ne(e,t,r,n){this.id=e,this.key=t,this.type=r,this.targets=n}function oe(e,t){this.id=e,this.experiments=t}var ie={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"),r.withCredentials=!0,$(r,o),r.send()})}},postRequest:function(e,t,r,n){var t=JSON.stringify(t),o=new XMLHttpRequest;o.open("POST",e),o.onreadystatechange=function(){o.readyState===o.DONE&&200<=o.status&&o.status<400&&n(o)},o.setRequestHeader("content-type","application/json"),o.withCredentials=!0,$(o,r),o.send(t)},sendBeacon:function(e,t,r,n){var o=!1;(o="undefined"!=typeof window?window&&window.navigator&&window.navigator.sendBeacon&&!0:o)?(o=JSON.stringify(t),(t=new URLSearchParams).append("sdkName",r["X-HACKLE-SDK-NAME"]),t.append("sdkVersion",r["X-HACKLE-SDK-VERSION"]),t.append("data",o),window.navigator.sendBeacon(e,t)):G.error("Does not support sendBeacon"),n()}},ae=(Se.isNotNullOrUndefined=function(e){return null!=e},Se.isNullOrUndefined=function(e){return null==e},Se.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},Se),se=H.log,ue=(_e.of=function(e,t,r){return new _e(e,t,r=void 0===r?new le:r)},_e.prototype.get=function(e,t){switch(typeof t){case"string":case"number":case"boolean":return this.config.get(e,t);default:return t}},_e),ce=(Re.on=function(e,t){return new Re(!0,e,t=void 0===t?new le:t)},Re.off=function(e,t){return new Re(!1,e,t=void 0===t?new le:t)},Re.prototype.get=function(e,t){switch(typeof t){case"string":case"number":case"boolean":return this.config.get(e,t);default:return t}},Re),le=(Oe.prototype.get=function(e,t){return t},Oe),s=(r.SDK_NOT_READY="SDK_NOT_READY",r.EXCEPTION="EXCEPTION",r.INVALID_INPUT="INVALID_INPUT",r.EXPERIMENT_NOT_FOUND="EXPERIMENT_NOT_FOUND",r.EXPERIMENT_DRAFT="EXPERIMENT_DRAFT",r.EXPERIMENT_PAUSED="EXPERIMENT_PAUSED",r.EXPERIMENT_COMPLETED="EXPERIMENT_COMPLETED",r.OVERRIDDEN="OVERRIDDEN",r.TRAFFIC_NOT_ALLOCATED="TRAFFIC_NOT_ALLOCATED",r.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT="NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT",r.IDENTIFIER_NOT_FOUND="IDENTIFIER_NOT_FOUND",r.VARIATION_DROPPED="VARIATION_DROPPED",r.TRAFFIC_ALLOCATED="TRAFFIC_ALLOCATED",r.NOT_IN_EXPERIMENT_TARGET="NOT_IN_EXPERIMENT_TARGET",r.FEATURE_FLAG_NOT_FOUND="FEATURE_FLAG_NOT_FOUND",r.FEATURE_FLAG_INACTIVE="FEATURE_FLAG_INACTIVE",r.INDIVIDUAL_TARGET_MATCH="INDIVIDUAL_TARGET_MATCH",r.TARGET_RULE_MATCH="TARGET_RULE_MATCH",r.DEFAULT_RULE="DEFAULT_RULE",r),fe=(Te.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},Te.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},Te.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},Te),pe=(be.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},be),de=(Ee.ID="$id",Ee.USER="$userId",Ee.DEVICE="$deviceId",Ee),he=(we.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},we.prototype.add=function(e,t){return t&&this._isValid(e,t)?this.identifiers[e]=t:se.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},we.prototype._isValid=function(e,t){return!(!e||"string"!=typeof e||128<e.length||!t||"string"!=typeof t||512<t.length)},we.prototype.build=function(){return this.identifiers},we),ye=(me.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},me),ve=(ge.prototype.get=function(e,t){e=this.parameters.get(e);return!ae.isNullOrUndefined(e)&&(ae.isNullOrUndefined(t)||typeof e==typeof t)?e:t},ge);function ge(e,t){this.id=e,this.parameters=t}function me(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function we(){this.identifiers={}}function Ee(){}function be(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function Te(e,t,r,n,o,i,a,s,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=a,this.userOverrides=s,this.segmentOverrides=u,this.targetAudiences=c,this.targetRules=l,this.defaultRule=f,this.containerId=p,this._winnerVariationId=d}function r(){}function Oe(){}function Re(e,t,r){this.isOn=e,this.reason=t,this.config=r}function _e(e,t,r){this.variation=e,this.reason=t,this.config=r}function Se(){}Qe.tryParse=function(e){var t,r,n,o,e=Qe.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 Qe(new Ie(parseInt(t,10),parseInt(r,10),parseInt(n,10)),ke.parse(o),ke.parse(e))},Qe.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},Qe.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},Qe.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},Qe.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},Qe.prototype.isLessThan=function(e){return this.compareTo(e)<0},Qe.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},Qe.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 Ae,Ce,Ne=Qe,Ie=(Je.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},Je),ke=(Ze.parse=function(e){return e?new Ze(e.split(".")):Ze.EMPTY},Ze.prototype.isEmpty=function(){return 0===this.identifiers.length},Ze.prototype.isNotEmpty=function(){return!this.isEmpty()},Ze.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},Ze.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=Ze.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},Ze.compareIdentifiers=function(e,t){return Ze.numericIdentifierRegExp.test(e)&&Ze.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},Ze.EMPTY=new Ze([]),Ze.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,Ze),xe=["MATCH","NOT_MATCH"],Pe=["STRING","NUMBER","BOOLEAN","VERSION"],De=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],Me=["VARIATION","BUCKET"],je=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT"],Le=["USER_ID","USER_PROPERTY"],Fe=(We.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},We.IDENTIFIER=new We("SEGMENT"),We.PROPERTY=new We("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY"),We.SEGMENT=new We("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),We),Ue=H.log,Ve=(Ye.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},Ye.prototype.variationDetail=function(e,t,r){r=r||"A";try{var n=this.hackleUserResolver.resolveOrNull(t);return n?this.hackleInternalClient._experiment(e,n,r):ue.of(r,s.INVALID_INPUT)}catch(t){return Ue.error("Unexpected exception while deciding variation for experiment[".concat(e,"]. Returning default variation[").concat(r,"] : ").concat(t)),ue.of(r,s.EXCEPTION)}},Ye.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},Ye.prototype.featureFlagDetail=function(e,t){try{var r=this.hackleUserResolver.resolveOrNull(t);return r?this.hackleInternalClient._featureFlag(e,r):ce.off(s.INVALID_INPUT)}catch(t){return Ue.error('"Unexpected exception while deciding feature flag['.concat(e,"]. Returning default value[false] : ").concat(t)),ce.off(s.EXCEPTION)}},Ye.prototype.track=function(e,t){Ue.debug("track event : ".concat(JSON.stringify(e)));e=this._convertEvent(e),t=this.hackleUserResolver.resolveOrNull(t);t&&this.hackleInternalClient._track(e,t)},Ye.prototype.trackPageView=function(e){Ue.debug("tracking page view");e=this.hackleUserResolver.resolveOrNull(null==e?void 0:e.user);e&&this.hackleInternalClient._track({key:"$page_view"},e)},Ye.prototype.onReady=function(e,t){this.hackleInternalClient._onReady(e,t=void 0===t?3e3:t)},Ye.prototype.onInitialized=function(e){return this.hackleInternalClient._onInitialized({timeout:null==e?void 0:e.timeout})},Ye.prototype.close=function(){Ue.debug("Hackle Client is closing"),this.hackleInternalClient._close()},Ye.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},Ye),He=(Xe.filteredProperties=function(r){var n=this;return Object.keys(r).filter(function(e){return n.validProperty(e,r[e])}).reduce(function(e,t){return U(U({},e),((e={})[t]=n.filteredPropertiesValue(r[t]),e))},{})},Xe.filteredPropertiesValue=function(e){return"string"==typeof e&&1024<e.length?e.slice(0,1024):e},Xe.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))},Xe),Ke=($e.exposure=function(e,t,r){return new ze((new Date).getTime(),t,e,r.variationId,r.variationKey,r.reason,this.exposureProperties(r))},$e.exposureProperties=function(e){return ae.isNotNullOrUndefined(e.config)?{$parameterConfigurationId:e.config.id}:{}},$e.track=function(e,t,r){return new Ge((new Date).getTime(),r,e,t)},$e.isExposure=function(e){return void 0!==e.experiment},$e.isTrack=function(e){return void 0!==e.eventType},$e),ze=(F(qe,Ce=Ke),qe.prototype.toDto=function(){return{timestamp:this.timestamp,userId:this.user.identifiers[de.ID],identifiers:this.user.identifiers,userProperties:He.filteredProperties(this.user.properties),hackleProperties:He.filteredProperties(this.user.hackleProperties),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}},qe),Ge=(F(Be,Ae=Ke),Be.prototype.toDto=function(){return{timestamp:this.timestamp,userId:this.user.identifiers[de.ID],identifiers:this.user.identifiers,userProperties:He.filteredProperties(this.user.properties),hackleProperties:He.filteredProperties(this.user.hackleProperties),eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:He.filteredProperties(this.event.properties||{})}},Be);function Be(e,t,r,n){e=Ae.call(this,e,t)||this;return e.eventType=r,e.event=n,e}function qe(e,t,r,n,o,i,a){e=Ce.call(this,e,t)||this;return e.experiment=r,e.variationId=n,e.variationKey=o,e.decisionReason=i,e.properties=a,e}function $e(e,t){this.timestamp=e,this.user=t}function Xe(){}function Ye(e,t){this.hackleInternalClient=e,this.hackleUserResolver=t}function We(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function Ze(e){this.identifiers=e}function Je(e,t,r){this.major=e,this.minor=t,this.patch=r}function Qe(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}function et(e){var t=new Array,r=new Array;return e.forEach(function(e){Ke.isExposure(e)?t.push(e.toDto()):Ke.isTrack(e)&&r.push(e.toDto())}),{exposureEvents:t,trackEvents:r}}yt.prototype.dispatch=function(e,t){var r={},e=(r["X-HACKLE-SDK-KEY"]=this.sdkKey,r["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],r["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],r["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),et(e));this.httpRequest.postRequest(this.dispatchUrl,e,r,t)},yt.prototype.dispatchXhrOrBeacon=function(e,t){var r,n;this.useBeacon?((r={})["X-HACKLE-SDK-KEY"]=this.sdkKey,r["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],r["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],r["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),n=et(e),this.httpRequest.sendBeacon(this.beaconDispatchUrl,n,r,t)):this.dispatch(e,t)};var tt,rt=yt,nt=(ht.mapNotNullOrUndefined=function(e,t){for(var r=Array(),n=0,o=e;n<o.length;n++){var i=t(o[n]);ae.isNotNullOrUndefined(i)&&r.push(i)}return r},ht.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},ht.associate=function(e,t){return this.associateTo(e,new Map,t)},ht.associateBy=function(e,t){return this.associate(e,function(e){return[t(e),e]})},ht),ot=H.log,it=(d.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},d.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},d.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},d.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},d.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},d.prototype.getContainerOrNull=function(e){return this.containers.get(e)},d.prototype.getParameterConfigurationOrNull=function(e){return this.parameterConfigurations.get(e)},d.from=function(e){var t=this,r=nt.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]});return new d(nt.associateBy(nt.mapNotNullOrUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),nt.associateBy(nt.mapNotNullOrUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),r,nt.associate(e.events,function(e){return[e.key,new W(e.id,e.key)]}),nt.associateBy(nt.mapNotNullOrUndefined(e.segments,function(e){return t.toSegmentOrNull(e)}),function(e){return e.key}),nt.associate(e.containers,function(e){return[e.id,t.toContainer(e)]}),nt.associate(e.parameterConfigurations,function(e){return[e.id,t.toParameterConfiguration(e)]}))},d.toBucket=function(e){return new Y(e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new pe(t,r,e)}))},d.toExperimentOrNull=function(e,t){var r=this,n=this.experimentStatusOrNull(t.execution.status),o=t.variations.map(function(e){return new X(e.id,e.key,"DROPPED"===e.status,e.parameterConfigurationId)}),i=nt.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),a=nt.mapNotNullOrUndefined(t.execution.segmentOverrides,function(e){return r.toTargetRuleOrNull(e,Fe.IDENTIFIER)}),s=nt.mapNotNullOrUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e,Fe.PROPERTY)}),u=nt.mapNotNullOrUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e,Fe.PROPERTY)}),c=this.toTargetActionOrNull(t.execution.defaultRule);return n&&c&&new fe(t.id,t.key,e,t.identifierType,n,t.version,o,i,a,s,u,c,t.containerId,t.winnerVariationId)},d.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void ot.debug("Unsupported status [".concat(e,"]"))}},d.toTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t),e=this.toTargetActionOrNull(e.action);return t&&e&&new re(t,e)},d.toTargetActionOrNull=function(e){var t=this.parseOrNull(Me,e.type);return t&&new te(t,e.variationId,e.bucketId)},d.toTargetOrNull=function(e,t){var r=this,e=nt.mapNotNullOrUndefined(e.conditions,function(e){return r.toConditionOrNull(e,t)});return new Z(e)},d.toConditionOrNull=function(e,t){var r=this.toTargetKeyOrNull(e.key);if(r&&t.supports(r.type))return(t=this.toTargetMatchOrNull(e.match))&&new J(r,t)},d.toTargetKeyOrNull=function(e){var t=this.parseOrNull(je,e.type);return t&&new Q(t,e.name)},d.toTargetMatchOrNull=function(e){var t=this.parseOrNull(xe,e.type),r=this.parseOrNull(De,e.operator),n=this.parseOrNull(Pe,e.valueType);return t&&r&&n&&new ee(t,r,n,e.values)},d.toSegmentOrNull=function(e){var t=this,r=this.parseOrNull(Le,e.type);return r&&new ne(e.id,e.key,r,nt.mapNotNullOrUndefined(e.targets,function(e){return t.toTargetOrNull(e,Fe.SEGMENT)}))},d.toContainer=function(e){var t=this;return new ye(e.id,e.bucketId,e.groups.map(function(e){return t.toContainerGroup(e)}))},d.toContainerGroup=function(e){return new oe(e.id,e.experiments)},d.toParameterConfiguration=function(e){return new ve(e.id,nt.associate(e.parameters,function(e){return[e.key,e.value]}))},d.parseOrNull=function(e,t){e=e.find(function(e){return e===t});return e||ot.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e},d),at=(dt.prototype.onReady=function(){return this.readyPromise},dt.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},dt.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()},dt.prototype.get=function(){return this.workspace},dt.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)},dt.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);this.currentRequest.responsePromise.then(function(e){t.onRequestResolved(e)},function(e){t.onRequestRejected(e)}).then(r,r),0<this.updateInterval&&this.scheduleNextUpdate()},dt.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},dt.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=it.from(e),this.readyPromiseResolver())}},dt.prototype.onRequestRejected=function(e){this.isStarted&&(this.errorRetryController.countError(),console.error("Error fetching data",e))},dt.prototype.close=function(){this.stop()},dt),st=(pt.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*z[Math.min(z.length-1,this.errorCount)]+Math.round(1e3*Math.random())},pt.prototype.countError=function(){this.errorCount<z.length-1&&this.errorCount++},pt.prototype.reset=function(){this.errorCount=0},pt),n="model",o="name",i="type",a="vendor",u="version",c="mobile",l="tablet",ut=(p.parse=function(e){return{browser:p.getBrowser(e),cpu:p.getCPU(e),device:p.getDevice(e),engine:p.getEngine(e),os:p.getOS(e)}},p.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return p.mapper.rgx.call(t,e,p.regexes.browser),t.major=p.util.major(t.version),t},p.getCPU=function(e){var t={architecture:void 0};return p.mapper.rgx.call(t,e,p.regexes.cpu),t},p.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return p.mapper.rgx.call(t,e,p.regexes.device),t},p.getEngine=function(e){var t={name:void 0,version:void 0};return p.mapper.rgx.call(t,e,p.regexes.os),t},p.getOS=function(e){var t={name:void 0,version:void 0};return p.mapper.rgx.call(t,e,p.regexes.os),t},p.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,"")}},p.regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[o,u],[/(opios)[\/\s]+([\w\.]+)/i],[[o,"Opera Mini"],u],[/\s(opr)\/([\w\.]+)/i],[[o,"Opera"],u],[/(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,u],[/(konqueror)\/([\w\.]+)/i],[[o,"Konqueror"],u],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[o,"IE"],u],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[o,"Edge"],u],[/(yabrowser)\/([\w\.]+)/i],[[o,"Yandex"],u],[/(Avast)\/([\w\.]+)/i],[[o,"Avast Secure Browser"],u],[/(AVG)\/([\w\.]+)/i],[[o,"AVG Secure Browser"],u],[/(puffin)\/([\w\.]+)/i],[[o,"Puffin"],u],[/(focus)\/([\w\.]+)/i],[[o,"Firefox Focus"],u],[/(opt)\/([\w\.]+)/i],[[o,"Opera Touch"],u],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[o,"UCBrowser"],u],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],u],[/(windowswechat qbcore)\/([\w\.]+)/i],[[o,"WeChat(Win) Desktop"],u],[/(micromessenger)\/([\w\.]+)/i],[[o,"WeChat"],u],[/(brave)\/([\w\.]+)/i],[[o,"Brave"],u],[/(whale)\/([\w\.]+)/i],[[o,"Whale"],u],[/(qqbrowserlite)\/([\w\.]+)/i],[o,u],[/(QQ)\/([\d\.]+)/i],[o,u],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[o,u],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[o,u],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[o,u],[/(MetaSr)[\/\s]?([\w\.]+)/i],[o],[/(LBBROWSER)/i],[o],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[u,[o,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[u,[o,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[o,u],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[u,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,/(.+)/,"$1 WebView"],u],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[o,/(.+(?:g|us))(.+)/,"$1 $2"],u],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[o,"Chrome Mobile"],u],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[u,[o,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[o,"Sailfish Browser"],u],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,u],[/(dolfin)\/([\w\.]+)/i],[[o,"Dolphin"],u],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[o,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[o,"Opera Coast"],u],[/fxios\/([\w\.-]+)/i],[u,[o,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[u,[o,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[u,o],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[o,"GSA"],u],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[u,(p.mapper={rgx:function(e,t){for(var r,n,o,i,a,s=0;s<t.length&&!i;){for(var u=t[s],c=t[s+1],l=r=0;l<u.length&&!i;)if(i=u[l++].exec(e))for(n=0;n<c.length;n++)a=i[++r],"object"==typeof(o=c[n])&&0<o.length?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,a):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=a?a.replace(o[1],o[2]):void 0:this[o[0]]=a?o[1].call(this,a,o[2]):void 0:4==o.length&&(this[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):void 0):this[o]=a||void 0;s+=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(p.util.has(t[r][n],e))return"?"===r?void 0:r}else if(p.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(p.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,u],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],u],[/(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,u]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",p.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",p.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",p.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[n,a,[i,l]],[/applecoremedia\/[\w\.]+ \((ipad)/],[n,[a,"Apple"],[i,l]],[/(apple\s{0,1}tv)/i],[[n,"Apple TV"],[a,"Apple"],[i,"smarttv"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[a,n,[i,l]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[n,[a,"Amazon"],[i,l]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[n,p.mapper.str,p.maps.device.amazon.model],[a,"Amazon"],[i,c]],[/android.+aft([bms])\sbuild/i],[n,[a,"Amazon"],[i,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[n,a,[i,c]],[/\((ip[honed|\s\w*]+);/i],[n,[a,"Apple"],[i,c]],[/(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],[a,n,[i,c]],[/\(bb10;\s(\w+)/i],[n,[a,"BlackBerry"],[i,c]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[n,[a,"Asus"],[i,l]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[a,"Sony"],[n,"Xperia Tablet"],[i,l]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[n,[a,"Sony"],[i,c]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[a,n,[i,"console"]],[/android.+;\s(shield)\sbuild/i],[n,[a,"Nvidia"],[i,"console"]],[/(playstation\s[34portablevi]+)/i],[n,[a,"Sony"],[i,"console"]],[/(sprint\s(\w+))/i],[[a,p.mapper.str,p.maps.device.sprint.vendor],[n,p.mapper.str,p.maps.device.sprint.model],[i,c]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[a,[n,/_/g," "],[i,c]],[/(nexus\s9)/i],[n,[a,"HTC"],[i,l]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[n,[a,"Huawei"],[i,c]],[/android.+(bah2?-a?[lw]\d{2})/i],[n,[a,"Huawei"],[i,l]],[/(microsoft);\s(lumia[\s\w]+)/i],[a,n,[i,c]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[n,[a,"Microsoft"],[i,"console"]],[/(kin\.[onetw]{3})/i],[[n,/\./g," "],[a,"Microsoft"],[i,c]],[/\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],[n,[a,"Motorola"],[i,c]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[n,[a,"Motorola"],[i,l]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[a,p.util.trim],[n,p.util.trim],[i,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[n,/^/,"SmartTV"],[a,"Samsung"],[i,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[n,[a,"Sharp"],[i,"smarttv"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[a,"Samsung"],n,[i,l]],[/smart-tv.+(samsung)/i],[a,[i,"smarttv"],n],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[a,"Samsung"],n,[i,c]],[/sie-(\w*)/i],[n,[a,"Siemens"],[i,c]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[a,"Nokia"],n,[i,c]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[n,[a,"Acer"],[i,l]],[/android.+([vl]k\-?\d{3})\s+build/i],[n,[a,"LG"],[i,l]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[a,"LG"],n,[i,l]],[/(lg) netcast\.tv/i],[a,n,[i,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[n,[a,"LG"],[i,c]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[a,n,[i,l]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[n,[a,"Lenovo"],[i,l]],[/(lenovo)[_\s-]?([\w-]+)/i],[a,n,[i,c]],[/linux;.+((jolla));/i],[a,n,[i,c]],[/((pebble))app\/[\d\.]+\s/i],[a,n,[i,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[a,n,[i,c]],[/crkey/i],[[n,"Chromecast"],[a,"Google"],[i,"smarttv"]],[/android.+;\s(glass)\s\d/i],[n,[a,"Google"],[i,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[n,[a,"Google"],[i,l]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[n,[a,"Google"],[i,c]],[/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],[[n,/_/g," "],[a,"Xiaomi"],[i,c]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[n,/_/g," "],[a,"Xiaomi"],[i,l]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[n,[a,"Meizu"],[i,c]],[/(mz)-([\w-]{2,})/i],[[a,"Meizu"],n,[i,c]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[n,[a,"OnePlus"],[i,c]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[n,[a,"RCA"],[i,l]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[n,[a,"Dell"],[i,l]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[n,[a,"Verizon"],[i,l]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[a,"Barnes & Noble"],n,[i,l]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[n,[a,"NuVision"],[i,l]],[/android.+;\s(k88)\sbuild/i],[n,[a,"ZTE"],[i,l]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[n,[a,"Swiss"],[i,c]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[n,[a,"Swiss"],[i,l]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[n,[a,"Zeki"],[i,l]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[a,"Dragon Touch"],n,[i,l]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[n,[a,"Insignia"],[i,l]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[n,[a,"NextBook"],[i,l]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[a,"Voice"],n,[i,c]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[a,"LvTel"],n,[i,c]],[/android.+;\s(PH-1)\s/i],[n,[a,"Essential"],[i,c]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[n,[a,"Envizen"],[i,l]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[a,n,[i,l]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[n,[a,"MachSpeed"],[i,l]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[a,n,[i,l]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[n,[a,"Rotor"],[i,l]],[/android.+(KS(.+))\s+build/i],[n,[a,"Amazon"],[i,l]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[a,n,[i,l]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[i,p.util.lowerize],a,n],[/[\s\/\(](smart-?tv)[;\)]/i],[[i,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[n,[a,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[u,[o,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[u,[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,u],[/rv\:([\w\.]{1,9}).+(gecko)/i],[u,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,u],[/(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,p.mapper.str,p.maps.os.windows],[u,p.mapper.str,p.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[u,p.mapper.str,p.maps.os.windows.version]],[/\((bb)(10);/i],[[o,"BlackBerry"],u],[/(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,u],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[o,"Symbian"],u],[/\((series40);/i],[o],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"],u],[/(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"],u],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],u],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],u],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[o,"Linux"],u],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPhone"],[u,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPad"],[u,/_/g,"."]],[/(haiku)\s(\w+)/i],[o,u],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[u,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[o,"Mac"],[u,/_/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,u]]},p),ct=(ft.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=ut.parse(t.navigator.userAgent),n=r.browser,o=r.os,r=r.device,i=r.type?"mobile"===r.type?"Mobile":"ETC":"Web",a=(t.location.protocol||"").replace(":",""),s=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:a,referrer:t.document.referrer||"",queryParameter:t.location.search||"",screenWidth:s.width||"",screenHeight:s.height||"",timeZone:u||""}},ft),lt=new Uint8Array(16);function ft(){}function p(){}function pt(){this.errorCount=0}function dt(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 st,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function d(e,t,r,n,o,i,a){this.experiments=e,this.featureFlags=t,this.buckets=r,this.eventTypes=n,this.segments=o,this.containers=i,this.parameterConfigurations=a}function ht(){}function yt(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 vt(){if(tt=tt||"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto))return tt(lt);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}var gt=/^(?:[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 mt(e){return"string"==typeof e&>.test(e)}for(var wt=[],Et=0;Et<256;++Et)wt.push((Et+256).toString(16).substr(1));function bt(e,t){t=1<arguments.length&&void 0!==t?t:0,e=(wt[e[t+0]]+wt[e[t+1]]+wt[e[t+2]]+wt[e[t+3]]+"-"+wt[e[t+4]]+wt[e[t+5]]+"-"+wt[e[t+6]]+wt[e[t+7]]+"-"+wt[e[t+8]]+wt[e[t+9]]+"-"+wt[e[t+10]]+wt[e[t+11]]+wt[e[t+12]]+wt[e[t+13]]+wt[e[t+14]]+wt[e[t+15]]).toLowerCase();if(mt(e))return e;throw TypeError("Stringified UUID is invalid")}function Tt(){try{0}catch(e){}}Tt(),Tt();St.prototype.resolveOrNull=function(e){e=this._resolveUser(e);return this._resolveHackleUserOrNull(e)},St.prototype._resolveUser=function(e){return e?"string"==typeof e?{id:e}:e:{id:At()}},St.prototype._resolveHackleUserOrNull=function(e){var t=new he,t=(t.addIdentifiers(e.identifiers||{}),e.id&&t.add(de.ID,e.id),e.userId&&t.add(de.USER,e.userId),t.add(de.DEVICE,e.deviceId||At()),t.build());if(0!==Object.keys(t).length)return{identifiers:t,properties:e.properties||{},hackleProperties:this._getHackleProperties()}},St.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?ct.generate(window):e)||{}};var Ot=St,Rt=(_t.initialize=function(){xt.get("_hackle_hid")||It()},_t.reInitialize=function(){It()},_t);function _t(){}function St(){Rt.initialize()}function At(){var e=xt.get("_hackle_id");return e||xt.get("_hackle_hid")||It()}function Ct(e){xt.set("_hackle_id",e,3650,!0)}function Nt(){xt.remove("_hackle_id",!0)}function It(){var e=function(e,t,r){var n=(e=e||{}).random||(e.rng||vt)();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 bt(n)}();return xt.set("_hackle_hid",e,3650,!0),e}function kt(e){return e&&e.Math==Math&&e}function h(e){try{return!!e()}catch(e){return!0}}Mt.get=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},Mt.set=function(e,t,r,n,o,i){var a="",s="",u="",r=(n&&(a=(n=Mt.extractDomain(document.location.hostname))?"; domain=."+n:""),r&&((n=new Date).setTime(n.getTime()+24*r*60*60*1e3),s="; expires="+n.toUTCString()),i&&(o=!0,u="; SameSite=None"),o&&(u+="; secure"),e+"="+encodeURIComponent(t)+s+"; path=/"+a+u);return document.cookie=r},Mt.remove=function(e,t){Mt.set(e,"",-1,t,!1,!1)},Mt.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]:""};var xt=Mt,c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},l=kt("object"==typeof globalThis&&globalThis)||kt("object"==typeof window&&window)||kt("object"==typeof self&&self)||kt("object"==typeof c&&c)||function(){return this}()||Function("return this")(),i={},n=!h(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),a=!h(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Pt=Function.prototype.call,o=a?Pt.bind(Pt):function(){return Pt.apply(Pt,arguments)},u={},e={}.propertyIsEnumerable,Dt=Object.getOwnPropertyDescriptor,c=Dt&&!e.call({1:2},1);function Mt(){}u.f=c?function(e){e=Dt(this,e);return!!e&&e.enumerable}:e;function jt(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function Lt(e){return er(Qt(e),8,-1)}function Ft(e){if(null==e)throw or("Can't call method on "+e);return e}function Ut(e){return ir(ar(e))}function y(e){return"function"==typeof e}function Vt(e){return"object"==typeof e?null!==e:sr(e)}function Ht(e,t){return arguments.length<2?(r=ur[e],cr(r)?r:void 0):ur[e]&&ur[e][t];var r}function Kt(e){try{return gr(e)}catch(e){return"Object"}}function zt(e){if(mr(e))return e;throw Er(wr(e)+" is not a function")}function Gt(e,t){return null==(e=e[t])?void 0:br(e)}function Bt(t,r){try{Ar(Sr,t,{value:r,configurable:!0,writable:!0})}catch(e){Sr[t]=r}return r}function v(e){return kr(Ir(e))}function qt(e){return"Symbol("+(void 0===e?"":e)+")_"+Lr(++Mr+jr,36)}function g(e){var t;return Ur(zr,e)&&(Hr||"string"==typeof zr[e])||(t="Symbol."+e,Hr&&Ur(Gr,e)?zr[e]=Gr[e]:zr[e]=(Kr&&Br?Br:qr)(t)),zr[e]}function $t(e){return e=function(e,t){if(!Xr(e)||Yr(e))return e;var r=Wr(e,Qr);if(r){if(r=$r(r,e,t=void 0===t?"default":t),!Xr(r)||Yr(r))return r;throw Jr("Can't convert object to primitive value")}return Zr(e,t=void 0===t?"number":t)}(e,"string"),en(e)?e:e+""}function Xt(e){return rn?tn.createElement(e):{}}function Yt(e){if(dn(e))return e;throw yn(hn(e)+" is not an object")}var c=a,e=Function.prototype,Wt=e.bind,Zt=e.call,Jt=c&&Wt.bind(Zt,Zt),e=c?function(e){return e&&Jt(e)}:function(e){return e&&function(){return Zt.apply(e,arguments)}},Wt=e,Qt=Wt({}.toString),er=Wt("".slice),c=h,tr=Lt,rr=Object,nr=e("".split),Wt=c(function(){return!rr("z").propertyIsEnumerable(0)})?function(e){return"String"==tr(e)?nr(e,""):rr(e)}:rr,or=TypeError,ir=Wt,ar=Ft,sr=y,ur=l,cr=y,c=e({}.isPrototypeOf),lr=Ht("navigator","userAgent")||"",m=lr,fr=l.process,w=l.Deno,fr=fr&&fr.versions||w&&w.version,w=fr&&fr.v8,fr=b=!(b=w?0<(E=w.split("."))[0]&&E[0]<4?1:+(E[0]+E[1]):b)&&m&&(!(E=m.match(/Edge\/(\d+)/))||74<=E[1])&&(E=m.match(/Chrome\/(\d+)/))?+E[1]:b,pr=fr,w=h,m=!!Object.getOwnPropertySymbols&&!w(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pr&&pr<41}),E=m&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,dr=Ht,hr=y,yr=c,vr=Object,b=E?function(e){return"symbol"==typeof e}:function(e){var t=dr("Symbol");return hr(t)&&yr(t.prototype,vr(e))},gr=String,mr=y,wr=Kt,Er=TypeError,br=zt,Tr=o,Or=y,Rr=Vt,_r=TypeError,w={exports:{}},Sr=l,Ar=Object.defineProperty,Cr=Bt,Cr=l["__core-js_shared__"]||Cr("__core-js_shared__",{}),Nr=Cr,Ir=((w.exports=function(e,t){return Nr[e]||(Nr[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"}),Ft),kr=Object,xr=v,Pr=e({}.hasOwnProperty),Dr=Object.hasOwn||function(e,t){return Pr(xr(e),t)},T=e,Mr=0,jr=Math.random(),Lr=T(1..toString),T=l,Fr=w.exports,Ur=Dr,Vr=qt,Hr=m,Kr=E,zr=Fr("wks"),Gr=T.Symbol,Br=Gr&&Gr.for,qr=Kr?Gr:Gr&&Gr.withoutSetter||Vr,$r=o,Xr=Vt,Yr=b,Wr=Gt,Zr=function(e,t){var r,n;if("string"===t&&Or(r=e.toString)&&!Rr(n=Tr(r,e)))return n;if(Or(r=e.valueOf)&&!Rr(n=Tr(r,e)))return n;if("string"!==t&&Or(r=e.toString)&&!Rr(n=Tr(r,e)))return n;throw _r("Can't convert object to primitive value")},Jr=TypeError,Qr=g("toPrimitive"),en=b,m=Vt,tn=l.document,rn=m(tn)&&m(tn.createElement),nn=Xt,E=!n&&!h(function(){return 7!=Object.defineProperty(nn("div"),"a",{get:function(){return 7}}).a}),on=o,an=u,sn=jt,un=Ut,cn=$t,ln=Dr,fn=E,pn=Object.getOwnPropertyDescriptor,Fr=(i.f=n?pn:function(e,t){if(e=un(e),t=cn(t),fn)try{return pn(e,t)}catch(e){}if(ln(e,t))return sn(!on(an.f,e,t),e[t])},{}),T=n&&h(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),dn=Vt,hn=String,yn=TypeError,vn=E,gn=Yt,mn=$t,wn=TypeError,En=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,Tn=(Fr.f=n?T?function(e,t,r){var n;return gn(e),t=mn(t),gn(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=bn(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}),En(e,t,r)}:En:function(e,t,r){if(gn(e),t=mn(t),gn(r),vn)try{return En(e,t,r)}catch(e){}if("get"in r||"set"in r)throw wn("Accessors not supported");return"value"in r&&(e[t]=r.value),e},Fr),On=jt,Vr=n?function(e,t,r){return Tn.f(e,t,On(1,r))}:function(e,t,r){return e[t]=r,e},b={exports:{}},m=n,u=Dr,E=Function.prototype,O=m&&Object.getOwnPropertyDescriptor,u=u(E,"name"),u={EXISTS:u,PROPER:u&&"something"===function(){}.name,CONFIGURABLE:u&&(!m||O(E,"name").configurable)},m=y,O=Cr,Rn=e(Function.toString);m(O.inspectSource)||(O.inspectSource=function(e){return Rn(e)});function _n(e){return zn[e]||(zn[e]=Kn(e))}function Sn(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(ao(r)&&uo(r,i,n),n.global)o?e[t]=r:co(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:so.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function An(e){return(e=+e)!=e||0==e?0:po(e)}function Cn(e,t){return(e=ho(e))<0?yo(e+t,0):vo(e,t)}function R(e){return 0<(e=e.length)?mo(go(e),9007199254740991):0}function Nn(s){return function(e,t,r){var n,o=wo(e),i=bo(o),a=Eo(r,i);if(s&&t!=t){for(;a<i;)if((n=o[a++])!=n)return!0}else for(;a<i;a++)if((s||a in o)&&o[a]===t)return s||a||0;return!s&&-1}}function In(e,t){var r,n=Oo(e),o=0,i=[];for(r in n)!To(_o,r)&&To(n,r)&&So(i,r);for(;t.length>o;)!To(n,r=t[o++])||~Ro(i,r)||So(i,r);return i}function kn(e,t,r){for(var n=Do(t),o=jo.f,i=Mo.f,a=0;a<n.length;a++){var s=n[a];Po(e,s)||r&&Po(r,s)||o(e,s,i(t,s))}}function xn(e,t){return(e=Ho[Vo(e)])==zo||e!=Ko&&(Fo(t)?Lo(t):!!t)}function _(e,t){var r,n,o,i,a=e.target,s=e.global,u=e.stat;if(r=s?Go:u?Go[a]||Xo(a,{}):(Go[a]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(i=Bo(r,n))&&i.value:r[n],!Wo(s?n:a+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;Yo(o,i)}(e.sham||i&&i.sham)&&qo(o,"sham",!0),$o(r,n,o,e)}}var Pn,Dn,Mn,jn,Ln,Fn,Un,Vn,E=O.inspectSource,m=y,O=E,Hn=l.WeakMap,m=m(Hn)&&/native code/.test(O(Hn)),O=w.exports,Kn=qt,zn=O("keys"),Hn={},w=e,Gn=Vt,Bn=Vr,qn=Dr,O=Cr,S=_n,$n=Hn,Xn=l.TypeError,Yn=l.WeakMap,m=(Un=m||O.state?(Pn=O.state||(O.state=new Yn),Dn=w(Pn.get),Mn=w(Pn.has),jn=w(Pn.set),Ln=function(e,t){if(Mn(Pn,e))throw new Xn("Object already initialized");return t.facade=e,jn(Pn,e,t),t},Fn=function(e){return Dn(Pn,e)||{}},function(e){return Mn(Pn,e)}):($n[Vn=S("state")]=!0,Ln=function(e,t){if(qn(e,Vn))throw new Xn("Object already initialized");return t.facade=e,Bn(e,Vn,t),t},Fn=function(e){return qn(e,Vn)?e[Vn]:{}},function(e){return qn(e,Vn)}),{set:Ln,get:Fn,has:Un,enforce:function(e){return Un(e)?Fn(e):Ln(e,{})},getterFor:function(t){return function(e){if(Gn(e)&&(e=Fn(e)).type===t)return e;throw Xn("Incompatible receiver, "+t+" required")}}}),O=h,Wn=y,Zn=Dr,Jn=n,Qn=u.CONFIGURABLE,eo=E,to=m.enforce,ro=m.get,no=Object.defineProperty,oo=Jn&&!O(function(){return 8!==no(function(){},"length",{value:8}).length}),io=String(String).split("String"),Yn=b.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),(!Zn(e,"name")||Qn&&e.name!==t)&&(Jn?no(e,"name",{value:t,configurable:!0}):e.name=t),oo&&r&&Zn(r,"arity")&&e.length!==r.arity&&no(e,"length",{value:r.arity});try{r&&Zn(r,"constructor")&&r.constructor?Jn&&no(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=to(e);return Zn(r,"source")||(r.source=io.join("string"==typeof t?t:"")),e},ao=(Function.prototype.toString=Yn(function(){return Wn(this)&&ro(this).source||eo(this)},"toString"),y),so=Fr,uo=b.exports,co=Bt,w={},lo=Math.ceil,fo=Math.floor,po=Math.trunc||function(e){e=+e;return(0<e?fo:lo)(e)},ho=An,yo=Math.max,vo=Math.min,go=An,mo=Math.min,wo=Ut,Eo=Cn,bo=R,$n={includes:Nn(!0),indexOf:Nn(!1)},To=Dr,Oo=Ut,Ro=$n.indexOf,_o=Hn,So=e([].push),S=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ao=In,Co=S.concat("length","prototype"),O=(w.f=Object.getOwnPropertyNames||function(e){return Ao(e,Co)},{}),Yn=(O.f=Object.getOwnPropertySymbols,Ht),No=w,Io=O,ko=Yt,xo=e([].concat),O=Yn("Reflect","ownKeys")||function(e){var t=No.f(ko(e)),r=Io.f;return r?xo(t,r(e)):t},Po=Dr,Do=O,Mo=i,jo=Fr,Lo=h,Fo=y,Uo=/#|\.prototype\./,Vo=xn.normalize=function(e){return String(e).replace(Uo,".").toLowerCase()},Ho=xn.data={},Ko=xn.NATIVE="N",zo=xn.POLYFILL="P",Yn=xn,Go=l,Bo=i.f,qo=Vr,$o=Sn,Xo=Bt,Yo=kn,Wo=Yn,O=!h(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Zo=Dr,Jo=y,Qo=v,ei=_n("IE_PROTO"),ti=Object,ri=ti.prototype,O=O?ti.getPrototypeOf:function(e){e=Qo(e);if(Zo(e,ei))return e[ei];var t=e.constructor;return Jo(t)&&e instanceof t?t.prototype:e instanceof ti?ri:null},ni=y,oi=String,ii=TypeError,ai=e,si=Yt,ui=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=ai(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return si(e),function(e){if("object"==typeof e||ni(e))return;throw ii("Can't set "+oi(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),ci={},li=In,fi=S,A=Object.keys||function(e){return li(e,fi)},pi=Fr,di=Yt,hi=Ut,yi=A;ci.f=n&&!T?Object.defineProperties:function(e,t){di(e);for(var r,n=hi(t),o=yi(t),i=o.length,a=0;a<i;)pi.f(e,r=o[a++],n[r]);return e};function vi(){}function gi(e){e.write(Di("")),e.close();var t=e.parentWindow.Object;return e=null,t}function mi(e,t){return Ki(e),void 0===t?e:zi?Gi(e,t):function(){return e.apply(t,arguments)}}function wi(e){return void 0!==e&&(Bi.Array===e||$i[qi]===e)}function Ei(e){if(null!=e)return ea(e,ra)||ea(e,"@@iterator")||ta[Qi(e)]}function bi(e,t){if(t=arguments.length<2?sa(e):t,oa(t))return ia(na(t,e));throw ua(aa(e)+" is not iterable")}function Ti(e,t,r){var n,o;la(e);try{if(!(n=fa(e,"return"))){if("throw"===t)throw r;return r}n=ca(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return la(n),r}function Oi(e,t){this.stopped=e,this.result=t}function Ri(e,t,r){function n(e){return i&&ba(i,"normal",e),new Oi(!0,e)}function o(e){return p?(ha(e),y?v(e[0],e[1],n):v(e[0],e[1])):y?v(e,n):v(e)}var i,a,s,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=pa(t,f);if(d)i=e.iterator;else if(h)i=e;else{if(!(r=Ea(e)))throw Ta(ya(e)+" is not iterable");if(va(r)){for(a=0,s=ga(e);a<s;a++)if((u=o(e[a]))&&ma(Oa,u))return u;return new Oi(!1)}i=wa(e,r)}for(c=(d?e:i).next;!(l=da(c,i)).done;){try{u=o(l.value)}catch(e){ba(i,"throw",e)}if("object"==typeof u&&u&&ma(Oa,u))return u}return new Oi(!1)}function _i(e){if("Symbol"===Ra(e))throw TypeError("Cannot convert a Symbol value to a string");return _a(e)}function Si(e,t){var r,n=2<arguments.length?arguments[2]:void 0,o=Na(Va,this);return ka?r=ka(new Fa,o?Ia(this):Va):(r=o?this:Pa(Va),Da(r,La,"Error")),void 0!==t&&Da(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:Sa(e)}(t)),ja&&Da(r,"stack",function(e,t){if(Ui&&"string"==typeof e&&!ji.prepareStackTrace)for(;t--;)e=Li(e,Fi,"");return e}(r.stack,1)),o=r,Vi(t=n)&&"cause"in t&&Hi(o,"cause",t.cause),Ma(e,Ua,{that:n=[]}),Da(r,"errors",n),r}var Ai,A=Ht("document","documentElement"),Ci=Yt,Ni=ci,Ii=S,T=Hn,ki=A,xi=Xt,Pi=_n("IE_PROTO"),Di=function(e){return"<script>"+e+"<\/script>"},Mi=function(){try{Ai=new ActiveXObject("htmlfile")}catch(e){}var e,t;Mi="undefined"==typeof document||document.domain&&Ai?gi(Ai):((t=xi("iframe")).style.display="none",ki.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Di("document.F=Object")),e.close(),e.F);for(var r=Ii.length;r--;)delete Mi.prototype[Ii[r]];return Mi()},ci=(T[Pi]=!0,Object.create||function(e,t){var r;return null!==e?(vi.prototype=Ci(e),r=new vi,vi.prototype=null,r[Pi]=e):r=Mi(),void 0===t?r:Ni.f(r,t)}),ji=Error,Li=e("".replace),S=String(ji("zxcasd").stack),Fi=/\n\s*at [^:]*:[^\n]*/,Ui=Fi.test(S),Vi=Vt,Hi=Vr,Ki=zt,zi=a,Gi=e(e.bind),T={},Bi=T,qi=g("iterator"),$i=Array.prototype,S={},S=(S[g("toStringTag")]="z","[object z]"===String(S)),C=S,Xi=y,Yi=Lt,Wi=g("toStringTag"),Zi=Object,Ji="Arguments"==Yi(function(){return arguments}()),C=C?Yi: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=Zi(e),Wi))?t:Ji?Yi(e):"Object"==(t=Yi(e))&&Xi(e.callee)?"Arguments":t},Qi=C,ea=Gt,ta=T,ra=g("iterator"),na=o,oa=zt,ia=Yt,aa=Kt,sa=Ei,ua=TypeError,ca=o,la=Yt,fa=Gt,pa=mi,da=o,ha=Yt,ya=Kt,va=wi,ga=R,ma=c,wa=bi,Ea=Ei,ba=Ti,Ta=TypeError,Oa=Oi.prototype,Ra=C,_a=String,Sa=_i,Aa=jt,N=!h(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Aa(1,7)),7!==e.stack)}),Ca=_,Na=c,Ia=O,ka=ui,xa=kn,Pa=ci,Da=Vr,I=jt,Ma=Ri,ja=N,La=g("toStringTag"),Fa=Error,Ua=[].push,Va=(ka?ka(Si,Fa):xa(Si,Fa,{name:!0}),Si.prototype=Pa(Fa.prototype,{constructor:I(1,Si),message:I(1,""),name:I(1,"AggregateError")})),N=(Ca({global:!0,constructor:!0,arity:2},{AggregateError:Si}),g),xa=ci,I=Fr.f,Ha=N("unscopables"),Ka=Array.prototype;null==Ka[Ha]&&I(Ka,Ha,{configurable:!0,value:xa(null)});function k(e){Ka[Ha][e]=!0}var za,Ca=h,N=y,I=O,xa=Sn,Ga=g("iterator"),x=!1;[].keys&&("next"in(Xa=[].keys())?(I=I(I(Xa)))!==Object.prototype&&(za=I):x=!0);function Ba(e,t,r){(e=e&&!r?e.prototype:e)&&!Wa(e,Za)&&Ya(e,Za,{configurable:!0,value:t})}function qa(){return this}function $a(e,t,r,n,o,i,a){var s=r,u=t,c=void 0;function l(e){if(e===o&&v)return v;if(!vs&&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",s.prototype=Qa(Ja,{next:es(+!c,n)}),ts(s,u,!1),rs[u]=ns;var f,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[gs]||h["@@iterator"]||o&&h[o],v=!vs&&y||l(o);if((n="Array"==t&&h.entries||y)&&(s=ss(n.call(new e)))!==Object.prototype&&s.next&&(ss(s)!==ys&&(us?us(s,ys):as(s[gs])||fs(s,gs,qa)),cs(s,c,!0)),ds&&"values"==o&&y&&"values"!==y.name&&(hs?ls(h,"name","values"):(d=!0,v=function(){return is(y,this)})),o)if(f={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(p in f)!vs&&!d&&p in h||fs(h,p,f[p]);else os({target:t,proto:!0,forced:vs||d},f);return h[gs]!==v&&fs(h,gs,v,{name:o}),ps[t]=v,f}N((za=null==za||Ca(function(){var e={};return za[Ga].call(e)!==e})?{}:za)[Ga])||xa(za,Ga,function(){return this});var Xa={IteratorPrototype:za,BUGGY_SAFARI_ITERATORS:x},Ya=Fr.f,Wa=Dr,Za=g("toStringTag"),Ja=Xa.IteratorPrototype,Qa=ci,es=jt,ts=Ba,rs=T,ns=function(){return this},os=_,is=o,as=y,ss=O,us=ui,cs=Ba,ls=Vr,fs=Sn,ps=T,ds=u.PROPER,hs=u.CONFIGURABLE,ys=Xa.IteratorPrototype,vs=Xa.BUGGY_SAFARI_ITERATORS,gs=g("iterator"),ms=Ut,I=k,N=T,Ca=m,xa=Fr.f,x=$a,u=n,ws=Ca.set,Es=Ca.getterFor("Array Iterator"),Xa=x(Array,"Array",function(e,t){ws(this,{type:"Array Iterator",target:ms(e),index:0,kind:t})},function(){var e=Es(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"),T=N.Arguments=N.Array;if(I("keys"),I("values"),I("entries"),u&&"values"!==T.name)try{xa(T,"name",{value:"values"})}catch(gm){}function bs(e){var e=As(e),t=Cs.f;Ns&&e&&!e[Is]&&t(e,Is,{configurable:!0,get:function(){return this}})}function Ts(e,t){if(ks(t,e))return e;throw xs("Incorrect invocation")}function Os(){}function Rs(e){if(!Ps(e))return!1;try{return Ls(Os,js,e),!0}catch(e){return!1}}function _s(e){if(!Ps(e))return!1;switch(Ds(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Vs||!!Us(Fs,Ms(e))}catch(e){return!0}}var Ss=C,Ca=(S||Sn(Object.prototype,"toString",S?{}.toString:function(){return"[object "+Ss(this)+"]"},{unsafe:!0}),"process"==Lt(l.process)),As=Ht,Cs=Fr,Ns=n,Is=g("species"),ks=c,xs=TypeError,x=e,N=h,Ps=y,Ds=C,Ms=E,js=[],Ls=Ht("Reflect","construct"),Fs=/^\s*(?:class|function)\b/,Us=x(Fs.exec),Vs=!Fs.exec(Os);_s.sham=!0;function Hs(e,t){var r,e=$s(e).constructor;if(void 0===e||null==(r=$s(e)[Xs]))return t;if(Gs(e=r))return e;throw qs(Bs(e)+" is not a constructor")}var Ks,zs,I=!Ls||N(function(){var e;return Rs(Rs.call)||!Rs(Object)||!Rs(function(){e=!0})||e})?_s:Rs,Gs=I,Bs=Kt,qs=TypeError,$s=Yt,Xs=g("species"),u=Function.prototype,Ys=u.apply,Ws=u.call,xa="object"==typeof Reflect&&Reflect.apply||(a?Ws.bind(Ys):function(){return Ws.apply(Ys,arguments)}),T=e([].slice),Zs=TypeError,S=/(?:ipad|iphone|ipod).*applewebkit/i.test(lr),Js=l,Qs=xa,c=mi,eu=y,tu=Dr,C=h,ru=A,nu=T,ou=Xt,x=S,N=Ca,u=Js.setImmediate,a=Js.clearImmediate,iu=Js.process,au=Js.Dispatch,su=Js.Function,A=Js.MessageChannel,uu=Js.String,cu=0,lu={};try{Ks=Js.location}catch(gm){}function fu(e){return function(){hu(e)}}function pu(e){hu(e.data)}function du(e){Js.postMessage(uu(e),Ks.protocol+"//"+Ks.host)}var hu=function(e){var t;tu(lu,e)&&(t=lu[e],delete lu[e],t())};u&&a||(u=function(e){var t=arguments.length,r=1;if(t<r)throw Zs("Not enough arguments");var n=eu(e)?e:su(e),o=nu(arguments,1);return lu[++cu]=function(){Qs(n,void 0,o)},zs(cu),cu},a=function(e){delete lu[e]},N?zs=function(e){iu.nextTick(fu(e))}:au&&au.now?zs=function(e){au.now(fu(e))}:A&&!x?(x=(N=new A).port2,N.port1.onmessage=pu,zs=c(x.postMessage,x)):Js.addEventListener&&eu(Js.postMessage)&&!Js.importScripts&&Ks&&"file:"!==Ks.protocol&&!C(du)?(zs=du,Js.addEventListener("message",pu,!1)):zs="onreadystatechange"in ou("script")?function(e){ru.appendChild(ou("script")).onreadystatechange=function(){ru.removeChild(this),hu(e)}}:function(e){setTimeout(fu(e),0)});function yu(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function vu(){this.head=null,this.tail=null}function gu(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=Lu(r),this.reject=Lu(n)}var mu,wu,Eu,bu,Tu,Ou,Ru,A={set:u,clear:a},N=l,c=/ipad|iphone|ipod/i.test(lr)&&void 0!==N.Pebble,x=/web0s(?!.*chrome)/i.test(lr),C=l,u=mi,a=i.f,_u=A.set,N=S,i=c,S=x,Su=Ca,c=C.MutationObserver||C.WebKitMutationObserver,x=C.document,Au=C.process,P=C.Promise,a=a(C,"queueMicrotask"),a=a&&a.value,S=(a||(mu=function(){var e,t;for(Su&&(e=Au.domain)&&e.exit();wu;){t=wu.fn,wu=wu.next;try{t()}catch(e){throw wu?bu():Eu=void 0,e}}Eu=void 0,e&&e.enter()},bu=N||Su||S||!c||!x?!i&&P&&P.resolve?((N=P.resolve(void 0)).constructor=P,Ru=u(N.then,N),function(){Ru(mu)}):Su?function(){Au.nextTick(mu)}:(_u=u(_u,C),function(){_u(mu)}):(Tu=!0,Ou=x.createTextNode(""),new c(mu).observe(Ou,{characterData:!0}),function(){Ou.data=Tu=!Tu})),a||function(e){e={fn:e,next:void 0};Eu&&(Eu.next=e),wu||(wu=e,bu()),Eu=e}),Cu=l,i=(vu.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}},vu),P=l.Promise,N="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,u=!N&&!Ca&&"object"==typeof window&&"object"==typeof document,C=l,Nu=P,x=y,c=Yn,Iu=E,a=g,ku=u,xu=N,Pu=fr,Du=(Nu&&Nu.prototype,a("species")),Mu=!1,ju=x(C.PromiseRejectionEvent),E={CONSTRUCTOR:c("Promise",function(){var e=Iu(Nu),t=e!==String(Nu);if(!t&&66===Pu)return!0;if(!Pu||Pu<51||!/native code/.test(e)){var e=new Nu(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[Du]=r,!(Mu=e.then(function(){})instanceof r))return!0}return!t&&(ku||xu)&&!ju}),REJECTION_EVENT:ju,SUBCLASSING:Mu},u={},Lu=zt;u.f=function(e){return new gu(e)};function Fu(e,t){var r,n,o,i,a=t.value,s=1==t.state,u=s?e.ok:e.fail,c=e.resolve,l=e.reject,f=e.domain;try{u?(s||(2===t.rejection&&(i=t,Gu(Wu,zu,function(){var e=i.facade;Ku?cc.emit("rejectionHandled",e):yc("rejectionhandled",e,i.value)})),t.rejection=1),!0===u?r=a:(f&&f.enter(),r=u(a),f&&(f.exit(),o=!0)),r===e.promise?l(sc("Promise-chain cycle")):(n=dc(r))?Gu(n,r,c,l):c(r)):l(a)}catch(e){f&&!o&&f.exit(),l(e)}}var Uu,Vu,Hu,N=_,Ku=Ca,zu=l,Gu=o,a=Sn,x=ui,C=Ba,c=bs,Bu=zt,qu=y,$u=Vt,Xu=Ts,Yu=Hs,Wu=A.set,Zu=S,Ju=yu,Qu=i,A=m,S=P,i=u,ec=E.CONSTRUCTOR,tc=E.REJECTION_EVENT,rc=E.SUBCLASSING,nc=A.getterFor("Promise"),oc=A.set,A=S&&S.prototype,ic=S,ac=A,sc=zu.TypeError,uc=zu.document,cc=zu.process,lc=i.f,fc=lc,pc=!!(uc&&uc.createEvent&&zu.dispatchEvent),dc=function(e){var t;return!(!$u(e)||!qu(t=e.then))&&t},hc=function(r,o){r.notified||(r.notified=!0,Zu(function(){for(var e,n,t=r.reactions;e=t.get();)Fu(e,r);r.notified=!1,o&&!r.rejection&&(n=r,Gu(Wu,zu,function(){var e,t=n.facade,r=n.value;if(vc(n)&&(e=Ju(function(){Ku?cc.emit("unhandledRejection",r,t):yc("unhandledrejection",t,r)}),n.rejection=Ku||vc(n)?2:1,e.error))throw e.value}))}))},yc=function(e,t,r){var n;pc?((n=uc.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),zu.dispatchEvent(n)):n={promise:t,reason:r},!tc&&(t=zu["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=Cu.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},vc=function(e){return 1!==e.rejection&&!e.parent},gc=function(t,r,n){return function(e){t(r,e,n)}},mc=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,hc(e,!0))},wc=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw sc("Promise can't be resolved itself");var n=dc(e);n?Zu(function(){var t={done:!1};try{Gu(n,e,gc(wc,t,r),gc(mc,t,r))}catch(e){mc(t,e,r)}}):(r.value=e,r.state=1,hc(r,!1))}catch(e){mc({done:!1},e,r)}}};if(ec&&(ac=(ic=function(e){Xu(this,ac),Bu(e),Gu(Uu,this);var t=nc(this);try{e(gc(wc,t),gc(mc,t))}catch(e){mc(t,e)}}).prototype,(Uu=function(e){oc(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new Qu,rejection:!1,state:0,value:void 0})}).prototype=a(ac,"then",function(e,t){var r=nc(this),n=lc(Yu(this,ic));return r.parent=!0,n.ok=!qu(e)||e,n.fail=qu(t)&&t,n.domain=Ku?cc.domain:void 0,0==r.state?r.reactions.add(n):Zu(function(){Fu(n,r)}),n.promise}),Vu=function(){var e=new Uu,t=nc(e);this.promise=e,this.resolve=gc(wc,t),this.reject=gc(mc,t)},i.f=lc=function(e){return e===ic||void 0===e?new Vu:fc(e)},qu(S)&&A!==Object.prototype)){Hu=A.then,rc||a(A,"then",function(e,t){var r=this;return new ic(function(e,t){Gu(Hu,r,e,t)}).then(e,t)},{unsafe:!0});try{delete A.constructor}catch(gm){}x&&x(A,ac)}N({global:!0,constructor:!0,wrap:!0,forced:ec},{Promise:ic}),C(ic,"Promise",!1),c("Promise");var Ec=g("iterator"),bc=!1;try{var Tc=0,Oc={next:function(){return{done:!!Tc++}},return:function(){bc=!0}};Oc[Ec]=function(){return this},Array.from(Oc,function(){throw 2})}catch(gm){}function Rc(e,t){if(!t&&!bc)return!1;var r=!1;try{var n={};n[Ec]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function _c(e,t){return Kc(e),zc(t)&&t.constructor===e?t:((0,(e=Gc.f(e)).resolve)(t),e.promise)}function Sc(o){return function(e,t){var r,e=cl(ll(e)),t=ul(t),n=e.length;return t<0||n<=t?o?"":void 0:(r=pl(e,t))<55296||56319<r||t+1===n||(n=pl(e,t+1))<56320||57343<n?o?fl(e,t):r:o?dl(e,t,t+2):n-56320+(r-55296<<10)+65536}}function Ac(e,t){if(e){if(e[Tl]!==Rl)try{bl(e,Tl,Rl)}catch(t){e[Tl]=Rl}if(e[Ol]||bl(e,Ol,t),wl[t])for(var r in El)if(e[r]!==El[r])try{bl(e,r,El[r])}catch(t){e[r]=El[r]}}}var Cc,Nc=P,i=E.CONSTRUCTOR||!Rc(function(e){Nc.all(e).then(void 0,function(){})}),Ic=o,kc=zt,xc=u,Pc=yu,Dc=Ri,S=(_({target:"Promise",stat:!0,forced:i},{all:function(e){var s=this,t=xc.f(s),u=t.resolve,c=t.reject,r=Pc(function(){var n=kc(s.resolve),o=[],i=0,a=1;Dc(e,function(e){var t=i++,r=!1;a++,Ic(n,s,e).then(function(e){r||(r=!0,o[t]=e,--a||u(o))},c)}),--a||u(o)});return r.error&&c(r.value),t.promise}}),_),rc=P,a=Ht,x=y,A=Sn,N=rc&&rc.prototype,Mc=(S({target:"Promise",proto:!0,forced:E.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),x(rc)&&(ec=a("Promise").prototype.catch,N.catch!==ec&&A(N,"catch",ec,{unsafe:!0})),o),jc=zt,Lc=u,Fc=yu,Uc=Ri,Vc=(_({target:"Promise",stat:!0,forced:i},{race:function(e){var r=this,n=Lc.f(r),o=n.reject,t=Fc(function(){var t=jc(r.resolve);Uc(e,function(e){Mc(t,r,e).then(n.resolve,o)})});return t.error&&o(t.value),n.promise}}),o),Hc=u,Kc=(_({target:"Promise",stat:!0,forced:E.CONSTRUCTOR},{reject:function(e){var t=Hc.f(this);return Vc(t.reject,void 0,e),t.promise}}),Yt),zc=Vt,Gc=u,C=_,c=E.CONSTRUCTOR,Bc=_c,qc=(Ht("Promise"),C({target:"Promise",stat:!0,forced:c},{resolve:function(e){return Bc(this,e)}}),o),$c=zt,Xc=u,Yc=yu,Wc=Ri,Zc=(_({target:"Promise",stat:!0},{allSettled:function(e){var s=this,t=Xc.f(s),u=t.resolve,r=t.reject,n=Yc(function(){var n=$c(s.resolve),o=[],i=0,a=1;Wc(e,function(e){var t=i++,r=!1;a++,qc(n,s,e).then(function(e){r||(r=!0,o[t]={status:"fulfilled",value:e},--a||u(o))},function(e){r||(r=!0,o[t]={status:"rejected",reason:e},--a||u(o))})}),--a||u(o)});return n.error&&r(n.value),t.promise}}),o),Jc=zt,Qc=Ht,el=u,tl=yu,rl=Ri,Oc=(_({target:"Promise",stat:!0},{any:function(e){var u=this,c=Qc("AggregateError"),t=el.f(u),l=t.resolve,f=t.reject,r=tl(function(){var n=Jc(u.resolve),o=[],i=0,a=1,s=!1;rl(e,function(e){var t=i++,r=!1;a++,Zc(n,u,e).then(function(e){r||s||(s=!0,l(e))},function(e){r||s||(r=!0,o[t]=e,--a||f(new c(o,"No one promise resolved")))})}),--a||f(new c(o,"No one promise resolved"))});return r.error&&f(r.value),t.promise}}),_),S=P,x=h,nl=Ht,ol=y,il=Hs,al=_c,rc=Sn,sl=S&&S.prototype,A=(Oc({target:"Promise",proto:!0,real:!0,forced:!!S&&x(function(){sl.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=il(this,nl("Promise")),e=ol(t);return this.then(e?function(e){return al(r,t()).then(function(){return e})}:t,e?function(e){return al(r,t()).then(function(){throw e})}:t)}}),ol(S)&&(a=nl("Promise").prototype.finally,sl.finally!==a&&rc(sl,"finally",a,{unsafe:!0})),e),ul=An,cl=_i,ll=Ft,fl=A("".charAt),pl=A("".charCodeAt),dl=A("".slice),hl=(Sc(!1),Sc(!0)),yl=_i,N=m,ec=$a,vl=N.set,gl=N.getterFor("String Iterator"),i=(ec(String,"String",function(e){vl(this,{type:"String Iterator",string:yl(e),index:0})},function(){var e=gl(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=hl(t,r),e.index+=t.length,{value:t,done:!1})}),l),E=(i.Promise,Xt("span").classList),C=E&&E.constructor&&E.constructor.prototype,c=C===Object.prototype?void 0:C,ml=l,wl={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},P=c,El=Xa,bl=Vr,Oc=g,Tl=Oc("iterator"),Ol=Oc("toStringTag"),Rl=El.values;for(Cc in wl)Ac(ml[Cc]&&ml[Cc].prototype,Cc);Ac(P,"DOMTokenList");function _l(e,t,r){(t=Wl(t))in e?Zl.f(e,t,Jl(0,r)):e[t]=r}function Sl(e){if(9007199254740991<e)throw gf("Maximum allowed index exceeded");return e}function Al(e,t){return mf(e=e)&&(r=e.constructor,(wf(r)&&(r===Tf||mf(r.prototype))||Ef(r)&&null===(r=r[bf]))&&(r=void 0)),new(void 0===r?Tf:r)(0===t?0:t);var r}function Cl(t){return 51<=Rf||!Of(function(){var e=[];return(e.constructor={})[_f]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function Nl(e,t){if(!delete e[t])throw Mf("Cannot delete property "+Df(t)+" of "+Df(e))}function Il(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,a=zf(e),s=Kf(a),u=Hf(t,r),c=Gf(s),l=0,t=n||Bf,f=d?t(e,c):h||m?t(e,0):void 0;l<c;l++)if((w||l in s)&&(i=u(o=s[l],l,a),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:qf(f,o)}else switch(p){case 4:return!1;case 7:qf(f,o)}return g?-1:y||v?v:f}}function kl(e,t){var r=[][e];return!!r&&$f(function(){r.call(null,t||function(){return 1},1)})}function xl(u){var c=1==u;return function(e,t,r){for(var n,o=ip(e),i=op(o),a=np(t,r),s=ap(i);0<s--;)if(a(n=i[s],s,o))switch(u){case 0:return n;case 1:return s}return c?-1:void 0}}function Pl(e,t,r,n,o,i,a,s){for(var u,c,l=o,f=0,p=!!a&&pp(a,s);f<n;)f in r&&(u=p?p(r[f],f,t):r[f],0<i&&cp(u)?(c=lp(u),l=Pl(e,t,u,c,l,i-1)-1):(fp(l+1),e[l]=u),l++),f++;return l}function Dl(c){return function(e,t,r,n){Hp(t);var o=Kp(e),i=zp(o),a=Gp(o),s=c?a-1:0,u=c?-1:1;if(r<2)for(;;){if(s in i){n=i[s],s+=u;break}if(s+=u,c?s<0:a<=s)throw Bp("Reduce of empty array with no initial value")}for(;c?0<=s:s<a;s+=u)s in i&&(n=t(n,i[s],s,o));return n}}function Ml(e,t,r){for(var n=cd(e),o=ud(t,n),i=ud(void 0===r?n:r,n),a=fd(pd(i-o,0)),s=0;o<i;o++,s++)ld(a,s,e[o]);return a.length=s,a}function jl(e,t){var r=e.length,n=hd(r/2);if(r<8){for(var o,i,a=e,s=t,u=a.length,c=1;c<u;){for(o=a[i=c];i&&0<s(a[i-1],o);)a[i]=a[--i];i!==c++&&(a[i]=o)}return a}for(var l=e,f=jl(dd(e,0,n),t),p=jl(dd(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 Ll(e){rh(e,uh,{value:{objectID:"O"+ch++,weakData:{}}})}function Fl(e,t,r){for(var n in t)wh(e,n,t[n],r);return e}var Ul,Vl,Hl,Kl,zl,Gl,Bl,ql=u,$l=yu,Xl=(_({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=ql.f(this),e=$l(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),Yt),Yl=Ti,Wl=$t,Zl=Fr,Jl=jt,Ql=mi,ef=o,tf=v,rf=wi,nf=I,of=R,af=_l,sf=bi,uf=Ei,cf=Array,lf=(_({target:"Array",stat:!0,forced:!Rc(function(e){Array.from(e)})},{from:function(e){var t=tf(e),e=nf(this),r=arguments.length,n=1<r?arguments[1]:void 0,o=void 0!==n;o&&(n=Ql(n,2<r?arguments[2]:void 0));var i,a,s,u,c,l,r=uf(t),f=0;if(!r||this===cf&&rf(r))for(i=of(t),a=e?new this(i):cf(i);f<i;f++)l=o?n(t[f],f):t[f],af(a,f,l);else for(c=(u=sf(t,r)).next,a=e?new this:[];!(s=ef(c,u)).done;f++)l=o?function(e,t,r,n){try{return n?t(Xl(r)[0],r[1]):t(r)}catch(t){Yl(e,"throw",t)}}(u,n,[s.value,f],!0):s.value,af(a,f,l);return a.length=f,a}}),Lt),x=Array.isArray||function(e){return"Array"==lf(e)},ff=(_({target:"Array",stat:!0},{isArray:x}),I),pf=_l,df=Array,hf=(_({target:"Array",stat:!0,forced:h(function(){function e(){}return!(df.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(ff(this)?this:df)(t);e<t;)pf(r,e,arguments[e++]);return r.length=t,r}}),v),yf=R,vf=An,S=k,gf=(_({target:"Array",proto:!0},{at:function(e){var t=hf(this),r=yf(t),e=vf(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),S("at"),TypeError),mf=x,wf=I,Ef=Vt,bf=g("species"),Tf=Array,Of=h,Rf=fr,_f=g("species"),rc=_,a=h,Sf=x,Af=Vt,Cf=v,Nf=R,If=Sl,kf=_l,xf=Al,A=Cl,N=fr,Pf=g("isConcatSpreadable"),ec=51<=N||!a(function(){var e=[];return e[Pf]=!1,e.concat()[0]!==e}),E=A("concat"),Df=(rc({target:"Array",proto:!0,arity:1,forced:!ec||!E},{concat:function(e){for(var t,r,n,o=Cf(this),i=xf(o,0),a=0,s=-1,u=arguments.length;s<u;s++)if(function(e){if(!Af(e))return!1;var t=e[Pf];return void 0!==t?!!t:Sf(e)}(n=-1===s?o:arguments[s]))for(r=Nf(n),If(a+r),t=0;t<r;t++,a++)t in n&&kf(i,a,n[t]);else If(a+1),kf(i,a++,n);return i.length=a,i}}),Kt),Mf=TypeError,jf=v,Lf=Cn,Ff=R,Uf=Nl,Vf=Math.min,C=k,Hf=(_({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=jf(this),n=Ff(r),o=Lf(e,n),i=Lf(t,n),e=2<arguments.length?arguments[2]:void 0,a=Vf((void 0===e?n:Lf(e,n))-i,n-o),s=1;for(i<o&&o<i+a&&(s=-1,i+=a-1,o+=a-1);0<a--;)i in r?r[o]=r[i]:Uf(r,o),o+=s,i+=s;return r}}),C("copyWithin"),mi),Kf=Wt,zf=v,Gf=R,Bf=Al,qf=e([].push),c={forEach:Il(0),map:Il(1),filter:Il(2),some:Il(3),every:Il(4),find:Il(5),findIndex:Il(6),filterReject:Il(7)},$f=h,Xf=c.every,Yf=(_({target:"Array",proto:!0,forced:!kl("every")},{every:function(e){return Xf(this,e,1<arguments.length?arguments[1]:void 0)}}),v),Wf=Cn,Zf=R,Xa=k,Jf=(_({target:"Array",proto:!0},{fill:function(e){for(var t=Yf(this),r=Zf(t),n=arguments.length,o=Wf(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,i=void 0===n?r:Wf(n,r);o<i;)t[o++]=e;return t}}),Xa("fill"),c.filter),Vr=(_({target:"Array",proto:!0,forced:!Cl("filter")},{filter:function(e){return Jf(this,e,1<arguments.length?arguments[1]:void 0)}}),_),Qf=c.find,Oc=k,ep=!0,P=("find"in[]&&Array(1).find(function(){ep=!1}),Vr({target:"Array",proto:!0,forced:ep},{find:function(e){return Qf(this,e,1<arguments.length?arguments[1]:void 0)}}),Oc("find"),_),tp=c.findIndex,u=k,rp=!0,np=("findIndex"in[]&&Array(1).findIndex(function(){rp=!1}),P({target:"Array",proto:!0,forced:rp},{findIndex:function(e){return tp(this,e,1<arguments.length?arguments[1]:void 0)}}),u("findIndex"),mi),op=Wt,ip=v,ap=R,S={findLast:xl(0),findLastIndex:xl(1)},sp=S.findLast,N=k,up=(_({target:"Array",proto:!0},{findLast:function(e){return sp(this,e,1<arguments.length?arguments[1]:void 0)}}),N("findLast"),S.findLastIndex),a=k,cp=(_({target:"Array",proto:!0},{findLastIndex:function(e){return up(this,e,1<arguments.length?arguments[1]:void 0)}}),a("findLastIndex"),x),lp=R,fp=Sl,pp=mi,A=Pl,dp=A,hp=v,yp=R,vp=An,gp=Al,mp=(_({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=hp(this),r=yp(t),n=gp(t,0);return n.length=dp(n,t,t,r,0,void 0===e?1:vp(e)),n}}),A),wp=zt,Ep=v,bp=R,Tp=Al,Op=(_({target:"Array",proto:!0},{flatMap:function(e){var t,r=Ep(this),n=bp(r);return wp(e),(t=Tp(r,0)).length=mp(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),c.forEach),rc=kl("forEach")?[].forEach:function(e){return Op(this,e,1<arguments.length?arguments[1]:void 0)},Rp=(_({target:"Array",proto:!0,forced:[].forEach!=rc},{forEach:rc}),$n.includes),ec=k,E=(_({target:"Array",proto:!0,forced:h(function(){return!Array(1).includes()})},{includes:function(e){return Rp(this,e,1<arguments.length?arguments[1]:void 0)}}),ec("includes"),_),_p=$n.indexOf,C=kl,Sp=e([].indexOf),Ap=!!Sp&&1/Sp([1],1,-0)<0,Xa=C("indexOf"),Vr=(E({target:"Array",proto:!0,forced:Ap||!Xa},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return Ap?Sp(this,e,t)||0:_p(this,e,t)}}),_),Oc=Wt,Cp=Ut,P=kl,Np=e([].join),u=Oc!=Object,N=P("join",","),Ip=(Vr({target:"Array",proto:!0,forced:u||!N},{join:function(e){return Np(Cp(this),void 0===e?",":e)}}),xa),kp=Ut,xp=An,Pp=R,S=kl,Dp=Math.min,Mp=[].lastIndexOf,jp=!!Mp&&1/[1].lastIndexOf(1,-0)<0,a=S("lastIndexOf"),A=jp||!a?function(e){if(jp)return Ip(Mp,this,arguments)||0;var t=kp(this),r=Pp(t),n=r-1;for((n=1<arguments.length?Dp(n,xp(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:Mp,Lp=(_({target:"Array",proto:!0,forced:A!==[].lastIndexOf},{lastIndexOf:A}),c.map),rc=(_({target:"Array",proto:!0,forced:!Cl("map")},{map:function(e){return Lp(this,e,1<arguments.length?arguments[1]:void 0)}}),_),Fp=v,Up=R,Vp=Sl,ec=h(function(){return 4294967297!==[].push.call({length:4294967296},1)}),$n=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),Hp=(rc({target:"Array",proto:!0,arity:1,forced:ec||$n},{push:function(e){var t=Fp(this),r=Up(t),n=arguments.length;Vp(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return t.length=r}}),zt),Kp=v,zp=Wt,Gp=R,Bp=TypeError,C={left:Dl(!1),right:Dl(!0)},qp=C.left,E=fr,Xa=Ca,$p=(_({target:"Array",proto:!0,forced:!kl("reduce")||!Xa&&79<E&&E<83},{reduce:function(e){var t=arguments.length;return qp(this,e,t,1<t?arguments[1]:void 0)}}),C.right),Oc=fr,P=Ca,Vr=(_({target:"Array",proto:!0,forced:!kl("reduceRight")||!P&&79<Oc&&Oc<83},{reduceRight:function(e){return $p(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),_),Xp=x,Yp=e([].reverse),u=[1,2],N=(Vr({target:"Array",proto:!0,forced:String(u)===String(u.reverse())},{reverse:function(){return Xp(this)&&(this.length=this.length),Yp(this)}}),_),Wp=x,Zp=I,Jp=Vt,Qp=Cn,ed=R,td=Ut,rd=_l,xa=g,nd=T,S=Cl("slice"),od=xa("species"),id=Array,ad=Math.max,sd=(N({target:"Array",proto:!0,forced:!S},{slice:function(e,t){var r,n,o,i=td(this),a=ed(i),s=Qp(e,a),u=Qp(void 0===t?a:t,a);if(Wp(i)&&(r=i.constructor,(r=Zp(r)&&(r===id||Wp(r.prototype))||Jp(r)&&null===(r=r[od])?void 0:r)===id||void 0===r))return nd(i,s,u);for(n=new(void 0===r?id:r)(ad(u-s,0)),o=0;s<u;s++,o++)s in i&&rd(n,o,i[s]);return n.length=o,n}}),c.some),ud=(_({target:"Array",proto:!0,forced:!kl("some")},{some:function(e){return sd(this,e,1<arguments.length?arguments[1]:void 0)}}),Cn),cd=R,ld=_l,fd=Array,pd=Math.max,dd=Ml,hd=Math.floor,a=jl,A=lr.match(/firefox\/(\d+)/i),rc=!!A&&+A[1],ec=/MSIE|Trident/.test(lr),$n=lr.match(/AppleWebKit\/(\d+)\./),Xa=!!$n&&+$n[1],E=_,C=e,yd=zt,vd=v,gd=R,md=Nl,wd=_i,Ca=h,Ed=a,P=kl,bd=rc,Td=ec,Od=fr,Rd=Xa,_d=[],Sd=C(_d.sort),Ad=C(_d.push),Oc=Ca(function(){_d.sort(void 0)}),Vr=Ca(function(){_d.sort(null)}),u=P("sort"),Cd=!Ca(function(){if(Od)return Od<70;if(!(bd&&3<bd)){if(Td)return!0;if(Rd)return Rd<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++)_d.push({k:e+r,v:t})}for(_d.sort(function(e,t){return t.v-e.v}),r=0;r<_d.length;r++)e=_d[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),T=(E({target:"Array",proto:!0,forced:Oc||!Vr||!u||!Cd},{sort:function(e){void 0!==e&&yd(e);var t=vd(this);if(Cd)return void 0===e?Sd(t):Sd(t,e);for(var r,n,o=[],i=gd(t),a=0;a<i;a++)a in t&&Ad(o,t[a]);for(Ed(o,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:wd(e)>wd(t)?1:-1})),r=o.length,a=0;a<r;)t[a]=o[a++];for(;a<i;)md(t,a++);return t}}),bs("Array"),_),Nd=v,Id=Cn,kd=An,xd=R,Pd=Sl,Dd=Al,Md=_l,jd=Nl,xa=Cl("splice"),Ld=Math.max,Fd=Math.min,N=(T({target:"Array",proto:!0,forced:!xa},{splice:function(e,t){var r,n,o,i,a,s,u=Nd(this),c=xd(u),l=Id(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-l):(r=e-2,Fd(Ld(kd(t),0),c-l)),Pd(c+r-n),o=Dd(u,n),i=0;i<n;i++)(a=l+i)in u&&Md(o,i,u[a]);if(r<(o.length=n)){for(i=l;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:jd(u,s);for(i=c;c-n+r<i;i--)jd(u,i-1)}else if(n<r)for(i=c-n;l<i;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:jd(u,s);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return u.length=c-n+r,o}}),k("flat"),k("flatMap"),_),Ud=v,Vd=R,Hd=Nl,Kd=Sl,S=1!==[].unshift(0),A=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),lr=(N({target:"Array",proto:!0,arity:1,forced:S||A},{unshift:function(e){var t=Ud(this),r=Vd(t),n=arguments.length;if(n){Kd(r+n);for(var o=r;o--;){var i=o+n;o in t?t[i]=t[o]:Hd(t,i)}for(var a=0;a<n;a++)t[a]=arguments[a]}return t.length=r+n}}),i.Array,{exports:{}}),$n={},zd=Lt,Gd=Ut,Bd=w.f,qd=Ml,$d="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=($n.f=function(e){if(!$d||"Window"!=zd(e))return Bd(Gd(e));var t=e;try{return Bd(t)}catch(t){return qd($d)}},h(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),rc=h,Xd=Vt,Yd=Lt,Wd=a,Zd=Object.isExtensible,ec=rc(function(){Zd(1)})||Wd?function(e){return!!Xd(e)&&(!Wd||"ArrayBuffer"!=Yd(e))&&(!Zd||Zd(e))}:Zd,fr=!h(function(){return Object.isExtensible(Object.preventExtensions({}))}),Jd=_,Qd=e,Xa=Hn,eh=Vt,th=Dr,rh=Fr.f,nh=w,oh=$n,ih=ec,ah=fr,sh=!1,uh=qt("meta"),ch=0,lh=lr.exports={enable:function(){lh.enable=function(){},sh=!0;var o=nh.f,i=Qd([].splice),e={};e[uh]=1,o(e).length&&(nh.f=function(e){for(var t=o(e),r=0,n=t.length;r<n;r++)if(t[r]===uh){i(t,r,1);break}return t},Jd({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:oh.f}))},fastKey:function(e,t){if(!eh(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!th(e,uh)){if(!ih(e))return"F";if(!t)return"E";Ll(e)}return e[uh].objectID},getWeakData:function(e,t){if(!th(e,uh)){if(!ih(e))return!0;if(!t)return!1;Ll(e)}return e[uh].weakData},onFreeze:function(e){return ah&&sh&&ih(e)&&!th(e,uh)&&Ll(e),e}},fh=(Xa[uh]=!0,y),ph=Vt,dh=ui,C=_,P=l,hh=e,Ca=Yn,yh=Sn,E=lr.exports,vh=Ri,gh=Ts,Oc=y,mh=Vt,Vr=h,u=Rc,T=Ba,wh=Sn,Eh=Fr.f,bh=ci,Th=Fl,Oh=mi,Rh=Ts,_h=Ri,Sh=$a,Ah=bs,Ch=n,Nh=lr.exports.fastKey,Ih=m.set,kh=m.getterFor;function xh(e){var r=hh(Gl[e]);yh(Gl,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(Hl&&!mh(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return Hl&&!mh(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(Hl&&!mh(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}xa=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},N={getConstructor:function(e,r,n,o){function i(e,t,r){var n,o=u(e),i=a(e,t);return i?i.value=r:(o.last=i={index:n=Nh(t,!0),key:t,value:r,previous:t=o.last,next:void 0,removed:!1},o.first||(o.first=i),t&&(t.next=i),Ch?o.size++:e.size++,"F"!==n&&(o.index[n]=i)),e}function a(e,t){var r,e=u(e),n=Nh(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){Rh(e,s),Ih(e,{type:r,index:bh(null),first:void 0,last:void 0,size:0}),Ch||(e.size=0),null!=t&&_h(t,e[o],{that:e,AS_ENTRIES:n})}),s=e.prototype,u=kh(r);return Th(s,{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,Ch?e.size=0:this.size=0},delete:function(e){var t,r,n=u(this),e=a(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),Ch?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=Oh(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!!a(this,e)}}),Th(s,n?{get:function(e){e=a(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)}}),Ch&&Eh(s,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",o=kh(t),i=kh(n);Sh(e,t,function(e,t){Ih(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),Ah(t)}},Vl=-1!==(S="Map").indexOf("Map"),Hl=-1!==S.indexOf("Weak"),Kl=Vl?"set":"add",zl=P.Map,Gl=zl&&zl.prototype,A={},Ca(S,!Oc(Bl=zl)||!(Hl||Gl.forEach&&!Vr(function(){(new zl).entries().next()})))?(Bl=N.getConstructor(xa,S,Vl,Kl),E.enable()):Ca(S,!0)&&(i=(Ul=new Bl)[Kl](Hl?{}:-0,1)!=Ul,a=Vr(function(){Ul.has(1)}),rc=u(function(e){new zl(e)}),Hn=!Hl&&Vr(function(){for(var e=new zl,t=5;t--;)e[Kl](t,t);return!e.has(-0)}),rc||(((Bl=xa(function(e,t){gh(e,Gl);r=new zl,e=e,n=Bl,dh&&fh(e=e.constructor)&&e!==n&&ph(e=e.prototype)&&e!==n.prototype&&dh(r,e);var r,n=r;return null!=t&&vh(t,n[Kl],{that:n,AS_ENTRIES:Vl}),n})).prototype=Gl).constructor=Bl),(a||Hn)&&(xh("delete"),xh("has"),Vl&&xh("get")),(Hn||i)&&xh(Kl),Hl&&Gl.clear&&delete Gl.clear),A.Map=Bl,C({global:!0,constructor:!0,forced:Bl!=zl},A),T(Bl,S),Hl||N.setStrong(Bl,S,Vl);function Ph(e,t){for(var r=0,n=Lh(t),o=new e(n);r<n;)o[r]=t[r++];return o}function Dh(e,t,r,n){for(var o,i,a,s=Vh(e),u=Uh(s),c=Fh(t,r),l=zh(null),f=Kh(u),p=0;p<f;p++)a=u[p],(i=Hh(c(a,p,s)))in l?qh(l[i],a):l[i]=[a];if(n&&(o=n(s))!==Bh)for(i in l)l[i]=Gh(o,l[i]);return l}function Mh(e){for(var t,r,n=Zh(this),o=Wh(n),i=Yh(e,1<arguments.length?arguments[1]:void 0),a=new Qh,s=Jh(o),u=0;u<s;u++)t=i(r=o[u],u,n),ty(a,t)?ny(ey(a,t),r):ry(a,t,[r]);return a}function jh(e){return sy[e].prototype}var Lh=R,Fh=mi,Uh=Wt,Vh=v,Hh=$t,Kh=R,zh=ci,Gh=Ph,Bh=Array,qh=e([].push),$h=Dh,Dr=k,Xh=(_({target:"Array",proto:!0},{group:function(e){return $h(this,e,1<arguments.length?arguments[1]:void 0)}}),Dr("group"),Dh),w=k,Yh=(_({target:"Array",proto:!0,forced:!kl("groupBy")},{groupBy:function(e){return Xh(this,e,1<arguments.length?arguments[1]:void 0)}}),w("groupBy"),mi),$n=e,Wh=Wt,Zh=v,Jh=R,Qh=Ht("Map"),ec=Qh.prototype,ey=$n(ec.get),ty=$n(ec.has),ry=$n(ec.set),ny=$n([].push),fr=k,Xa=Mh,ui=(_({target:"Array",proto:!0,name:"groupToMap",forced:!kl("groupByToMap")},{groupByToMap:Xa}),fr("groupByToMap"),k),oy=(_({target:"Array",proto:!0},{groupToMap:Mh}),ui("groupToMap"),R),iy=Ut,Yn=k,ay=Array,sy=(_({target:"Array",proto:!0},{toReversed:function(){for(var e=iy(this),t=ay,r=oy(e),n=new t(r),o=0;o<r;o++)n[o]=e[r-o-1];return n}}),Yn("toReversed"),l),lr=_,uy=zt,cy=Ut,ly=Ph,P=k,fy=Array,py=e(jh("Array").sort),Ca=(lr({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&uy(e);var t=cy(this),t=ly(fy,t);return py(t,e)}}),P("toSorted"),_),u=k,dy=Sl,hy=R,yy=Cn,vy=Ut,gy=An,my=Array,wy=Math.max,Ey=Math.min,by=(Ca({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,o,i,a=vy(this),s=hy(a),u=yy(e,s),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,s-u):(r=e-2,Ey(wy(gy(t),0),s-u)),o=dy(s+r-n),i=my(o);c<u;c++)i[c]=a[c];for(;c<u+r;c++)i[c]=arguments[c-u+2];for(;c<o;c++)i[c]=a[c+n-r];return i}}),u("toSpliced"),R),Ty=An,Oy=RangeError,Ry=Ut,_y=Array;_({target:"Array",proto:!0},{with:function(e,t){var r=Ry(this),n=_y,o=t,i=by(r),a=(e=Ty(e))<0?i+e:e;if(i<=a||a<0)throw Oy("Incorrect index");for(var s=new n(i),u=0;u<i;u++)s[u]=u===a?o:r[u];return s}});Vr=l,rc=Cr,xa=y,a=O,Hn=Sn,i=g("asyncIterator"),C=Vr.AsyncIterator,A=rc.AsyncIteratorPrototype;if(A)Kv=A;else if(xa(C))Kv=C.prototype;else if(rc.USE_FUNCTION_CONSTRUCTOR||Vr.USE_FUNCTION_CONSTRUCTOR)try{Hv=a(a(a(Function("return async function*(){}()")()))),a(Hv)===Object.prototype&&(Kv=Hv)}catch(gm){}xa((Kv=Kv||{})[i])||Hn(Kv,i,function(){return this});function Sy(e,t,r){var n=e.done;My.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function Ay(e){jy(this,{type:"AsyncFromSyncIterator",iterator:Py(e),next:e.next})}function Cy(e,t,r,n){try{var o=Xy(e,"return");if(o)return $y("Promise").resolve(qy(o,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function Ny(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,a,s){var e={iterator:e,next:Gy(By(e).next)},u=Qy("Promise"),c=e.iterator,t=e.next,l=0,f=void 0!==a;return!f&&p||Wy(a),new u(function(r,n){var o=function(e){Cy(c,n,e,n)},i=function(){try{if(p&&f)try{Jy(l)}catch(e){o(e)}u.resolve(Zy(Yy(t,c))).then(function(e){try{if(Zy(e).done)p?(s.length=l,r(s)):r(!y&&(h||void 0));else{var t=e.value;try{f?u.resolve(p?a(t,l):a(t)).then(function(e){if(d)i();else if(h)e?i():Cy(c,r,!1,n);else if(p)try{s[l++]=e,i()}catch(e){o(e)}else e?Cy(c,r,y||t,n):i()},o):(s[l++]=t,i())}catch(e){o(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};i()})}}function Iy(e,t){if(!hv||!dv(e)||!hv(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 ky(e,t,r){r.get&&yv(r.get,t,{getter:!0}),r.set&&yv(r.set,t,{setter:!0}),vv.f(e,t,r)}var xy=o,Py=Yt,T=ci,Dy=Gt,N=Fl,S=m,Dr=Kv,My=Ht("Promise"),jy=S.set,Ly=S.getterFor("AsyncFromSyncIterator"),w=(Ay.prototype=N(T(Dr),{next:function(){var n=Ly(this);return new My(function(e,t){var r=Py(xy(n.next,n.iterator));Sy(r,e,t)})},return:function(){var n=Ly(this).iterator;return new My(function(e,t){var r=Dy(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=Py(xy(r,n));Sy(r,e,t)})}}),Ay),Fy=o,Uy=w,Vy=Yt,Hy=bi,Ky=Gt,zy=g("asyncIterator"),Gy=zt,By=Yt,qy=o,$y=Ht,Xy=Gt,Yy=o,Wy=zt,Zy=Yt,Jy=Sl,Qy=Ht,Wt={toArray:Ny(0),forEach:Ny(1),every:Ny(2),some:Ny(3),find:Ny(4)},ev=mi,tv=v,rv=I,nv=bi,ov=Ei,iv=Gt,ec=jh,av=Ht,sv=w,uv=Wt.toArray,cv=g("asyncIterator"),lv=ec("Array").values,fv=(_({target:"Array",stat:!0,forced:!0},{fromAsync:function(i){var a=this,e=arguments.length,s=1<e?arguments[1]:void 0,u=2<e?arguments[2]:void 0;return new(av("Promise"))(function(e){var t=tv(i),r=(void 0!==s&&(s=ev(s,u)),iv(t,cv)),n=r?void 0:ov(t)||lv,o=rv(a)?new a:[],r=r?function(e,t){t=arguments.length<2?Ky(e,zy):t;return t?Vy(Fy(t,e)):new Uy(Hy(e))}(t,r):new sv(nv(t,n));e(uv(r,s,o))})}}),c.filterReject),$n=k,pv=(_({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return fv(this,e,1<arguments.length?arguments[1]:void 0)}}),$n("filterOut"),c.filterReject),Xa=k,fr=(_({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return pv(this,e,1<arguments.length?arguments[1]:void 0)}}),Xa("filterReject"),_),dv=x,hv=Object.isFrozen,yv=(fr({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!Iy(e,!0))return!1;var t=e.raw;return t.length===e.length&&Iy(t,!1)}}),b.exports),vv=Fr,ui=k,gv=v,mv=R,Yn=(n&&(ky(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=gv(this),t=mv(e);return 0==t?void 0:e[t-1]},set:function(e){var t=gv(this),r=mv(t);return t[0==r?0:r-1]=e}}),ui("lastItem")),k),wv=v,Ev=R,lr=(n&&(ky(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=wv(this),e=Ev(e);return 0==e?0:e-1}}),Yn("lastIndex")),e),bv=zt,Tv=R,Ov=v,Rv=Al,_v=Ht("Map"),P=_v.prototype,Sv=lr(P.forEach),Av=lr(P.has),Cv=lr(P.set),Nv=lr([].push),Ca=k,Iv=(_({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=Ov(this),o=Tv(n),i=Rv(n,0),a=new _v,s=null!=e?bv(e):function(e){return e},u=0;u<o;u++)r=s(t=n[u]),Av(a,r)||Cv(a,r,t);return Sv(a,function(e){Nv(i,e)}),i}}),Ca("uniqueBy"),im.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},im.prototype.refresh=function(){this.stop(),this.start()},im.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)},im),kv=(om.prototype.start=function(){this.started=!0},om.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},om.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},om.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},om.prototype.close=function(){this.stop()},om),xv=(nm.prototype.drainQueue=function(t,r){var n=this;return new Promise(function(e){0!==t.length?r?n.eventDispatcher.dispatchXhrOrBeacon(t,function(){e()}):n.eventDispatcher.dispatch(t,function(){e()}):e()})},nm.prototype.process=function(e){this.queue.enqueue(e)},nm.prototype.start=function(){return e=this,u=function(){return V(this,function(e){return this.queue.start(),[2]})},new(s=(s=a=void 0)||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 s?t:new s(function(e){e(t)})).then(n,o)}i((u=u.apply(e,a||[])).next())});var e,a,s,u},nm.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},nm.prototype.close=function(){this.stop()},nm),Pv=(rm.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]})},rm),Dv=(tm.prototype.process=function(e){this.exposureEventDedupDeterminer.isDedupTarget(e)||this.delegate.process(e)},tm.prototype.close=function(){this.delegate.close()},tm.prototype.start=function(){return this.delegate.start()},tm),Mv=(em.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!Ke.isExposure(e))return!1;Pv.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)},em),jv=H.log,Lv=(Qg.prototype._experiment=function(e,t,r){if(!e)return jv.error("experimentKey must not be empty"),ue.of(r,s.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return jv.warn("SDK not ready."),ue.of(r,s.SDK_NOT_READY);e=n.getExperimentOrNull(e);if(!e)return jv.warn("Experiment does not exist."),ue.of(r,s.EXPERIMENT_NOT_FOUND);n=this.evaluator.evaluate(n,e,t,r),this.eventProcessor.process(Ke.exposure(e,t,n)),e=null!=(r=n.config)?r:new le;return ue.of(n.variationKey,n.reason,e)},Qg.prototype._featureFlag=function(e,t){if(!e)return jv.error("featureKey must not be empty"),ce.off(s.INVALID_INPUT);var r=this.workspaceFetcher.get();if(!r)return jv.warn("SDK not ready."),ce.off(s.SDK_NOT_READY);var e=r.getFeatureFlagOrNull(e);if(!e)return jv.warn("FeatureFlag does not exist."),ce.off(s.FEATURE_FLAG_NOT_FOUND);r=this.evaluator.evaluate(r,e,t,"A"),this.eventProcessor.process(Ke.exposure(e,t,r)),t=null!=(e=r.config)?e:new le;return"A"===r.variationKey?ce.off(r.reason,t):ce.on(r.reason,t)},Qg.prototype._track=function(e,t){var r;e?"object"==typeof e?"object"!=typeof e||e.key&&"string"==typeof e.key?(r=(null==(r=this.workspaceFetcher.get())?void 0:r.getEventTypeOrNull(e.key))||new W(0,e.key),this.eventProcessor.process(Ke.track(r,e,t))):jv.warn("Event key must be not null. or event key must be string type."):jv.warn("Event must be event type."):jv.warn("event must not be null.")},Qg.prototype._onReady=function(e,t){this._onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},Qg.prototype._onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(jv.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?jv.debug("HackleClient onInitialized Success"):e.error instanceof Error?jv.error("HackleClient onInitialized Failed. ".concat(e.error.message)):jv.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},Qg.prototype._close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},Qg),Fv=(Jg.of=function(e,t,r,n){t=t._getVariationByKeyOrNull(r);return ae.isNotNullOrUndefined(t)?Jg.withVariation(e,t,n):new Jg(void 0,r,n,void 0)},Jg.withVariation=function(e,t,r){e=this.config(e,t);return new Jg(t.id,t.key,r,e)},Jg.config=function(e,t){if(!ae.isNullOrUndefined(t.parameterConfigurationId))return ae.requiredNotNullOrUndefined(e.getParameterConfigurationOrNull(t.parameterConfigurationId),function(){return"ParameterConfiguration[".concat(t.parameterConfigurationId,"]")})},Jg),Uv=(Zg.prototype.evaluate=function(e,t,r,n){return this.evaluationFlowFactory.getFlow(t.type).evaluate(e,t,r,n)},Zg),Vv=(Wg.prototype.matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n._matches(e,t,r)})},Wg.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(e.key.type).matches(e,t,r)},Wg),u=(Yg.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)},Yg.prototype._matches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},Yg),l=(Xg.prototype.booleanMatches=function(e,t){return e===t},Xg.prototype.numberMatches=function(e,t){return e===t},Xg.prototype.stringMatches=function(e,t){return e===t},Xg.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},Xg),Cr=($g.prototype.booleanMatches=function(e,t){return!1},$g.prototype.numberMatches=function(e,t){return!1},$g.prototype.stringMatches=function(e,t){return e.includes(t)},$g.prototype.versionMatches=function(e,t){return!1},$g),O=(qg.prototype.booleanMatches=function(e,t){return!1},qg.prototype.numberMatches=function(e,t){return!1},qg.prototype.stringMatches=function(e,t){return e.startsWith(t)},qg.prototype.versionMatches=function(e,t){return!1},qg),A=(Bg.prototype.booleanMatches=function(e,t){return!1},Bg.prototype.numberMatches=function(e,t){return!1},Bg.prototype.stringMatches=function(e,t){return e.endsWith(t)},Bg.prototype.versionMatches=function(e,t){return!1},Bg),C=(Gg.prototype.booleanMatches=function(e,t){return!1},Gg.prototype.numberMatches=function(e,t){return t<e},Gg.prototype.stringMatches=function(e,t){return!1},Gg.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},Gg),rc=(zg.prototype.booleanMatches=function(e,t){return!1},zg.prototype.numberMatches=function(e,t){return t<=e},zg.prototype.stringMatches=function(e,t){return!1},zg.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},zg),Vr=(Kg.prototype.booleanMatches=function(e,t){return!1},Kg.prototype.numberMatches=function(e,t){return e<t},Kg.prototype.stringMatches=function(e,t){return!1},Kg.prototype.versionMatches=function(e,t){return e.isLessThan(t)},Kg),a=(Hg.prototype.booleanMatches=function(e,t){return!1},Hg.prototype.numberMatches=function(e,t){return e<=t},Hg.prototype.stringMatches=function(e,t){return!1},Hg.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},Hg),Hv=(Vg.prototype.getMatcher=function(e){switch(e){case"IN":return Vg.IN_MATCHER;case"CONTAINS":return Vg.CONTAINS_MATCHER;case"STARTS_WITH":return Vg.STARTS_WITH_MATCHER;case"ENDS_WITH":return Vg.ENDS_WITH_MATCHER;case"GT":return Vg.GT_MATCHER;case"GTE":return Vg.GTE_MATCHER;case"LT":return Vg.LT_MATCHER;case"LTE":return Vg.LTE_MATCHER}},Vg.IN_MATCHER=new l,Vg.CONTAINS_MATCHER=new Cr,Vg.STARTS_WITH_MATCHER=new O,Vg.ENDS_WITH_MATCHER=new A,Vg.GT_MATCHER=new C,Vg.GTE_MATCHER=new rc,Vg.LT_MATCHER=new Vr,Vg.LTE_MATCHER=new a,Vg),xa=(Ug.prototype.matches=function(e,t,r){return"string"==typeof t&&"string"==typeof r&&e.stringMatches(t,r)},Ug),Hn=(Fg.prototype.matches=function(e,t,r){return"number"==typeof t&&"number"==typeof r&&e.numberMatches(t,r)},Fg),i=(Lg.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},Lg),ci=(jg.prototype.matches=function(e,t,r){t=Ne.tryParse(t),r=Ne.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},jg),m=(Mg.prototype.getMatcher=function(e){switch(e){case"STRING":return Mg.STRING_MATCHER;case"NUMBER":return Mg.NUMBER_MATCHER;case"BOOLEAN":return Mg.BOOLEAN_MATCHER;case"VERSION":return Mg.VERSION_MATCHER}},Mg.STRING_MATCHER=new xa,Mg.NUMBER_MATCHER=new Hn,Mg.BOOLEAN_MATCHER=new i,Mg.VERSION_MATCHER=new ci,Mg),Kv=(Dg.prototype.matches=function(e,t,r){r=this.userValueResolver.resolveOrNull(r,e.key);return!ae.isNullOrUndefined(r)&&this.valueOperatorMatcher.matches(r,e.match)},Dg),S=(Pg.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,"]"))}},Pg),N=(xg.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}},xg.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,"]"))},xg),T=(kg.prototype.matches=function(e,t,r){var n=this;return e.targets.some(function(e){return n._matches(e,t,r)})},kg.prototype._matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(e,t,r)})},kg),zv=(Ig.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return Ig.USER_CONDITION_MATCHER;case"SEGMENT":return Ig.SEGMENT_CONDITION_MATCHER}},Ig.USER_CONDITION_MATCHER=new Kv(new S,new u(new m,new Hv)),Ig.SEGMENT_CONDITION_MATCHER=new N(new T(Ig.USER_CONDITION_MATCHER)),Ig),Gv=(Ng.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)}},Ng.prototype._resolveVariation=function(e,t){return t._getVariationByIdOrNull(e.variationId)},Ng.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)}},Ng),Bv={murmurhash3_x86_32:function(e,t,r,n){for(var o,i=3432918353,a=461845907,s=-4&(n=void 0===n?e.length:n),u=t,c=0;c<s;c+=4)o=255&e.charCodeAt(c)|(255&e.charCodeAt(c+1))<<8|(255&e.charCodeAt(c+2))<<16|(255&e.charCodeAt(c+3))<<24,o=(131071&(o=this.mul32(o,i)))<<15|o>>>17,u=5*((524287&(u^=o=this.mul32(o,a)))<<13|u>>>19)+3864292196|0;switch(o=0,n%4){case 3:o=(255&e.charCodeAt(2+s))<<16;case 2:o|=(255&e.charCodeAt(1+s))<<8;case 1:o|=255&e.charCodeAt(s),o=(131071&(o=this.mul32(o,i)))<<15|o>>>17,u^=o=this.mul32(o,a)}return u=this.mul32(u=(u^=n)^u>>>16,2246822507),(u=this.mul32(u^=u>>>13,3266489909))^u>>>16},mul32:function(e,t){var r=65535&t;return((t-r)*e|0)+(r*e|0)|0}},qv=(Cg.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},Cg.prototype.calculateSlotNumber=function(e,t,r){r=Bv.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},Cg),$v=(Ag.prototype.evaluate=function(e,t,r,n){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,r,n,this.nextFlow):Fv.of(e,t,n,s.TRAFFIC_NOT_ALLOCATED)},Ag.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new Ag,n=0,o=e.reverse();n<o.length;n++)r=new Ag(o[n],r);return r},Ag),Xv=(Sg.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 Fv.withVariation(e,i,s.OVERRIDDEN);case"FEATURE_FLAG":return Fv.withVariation(e,i,s.INDIVIDUAL_TARGET_MATCH)}},Sg),Yv=(_g.prototype.evaluate=function(e,t,r,n,o){return"DRAFT"===t.status?Fv.of(e,t,n,s.EXPERIMENT_DRAFT):o.evaluate(e,t,r,n)},_g),Wv=(Rg.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 Fv.of(e,t,n,s.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return Fv.of(e,t,n,s.FEATURE_FLAG_INACTIVE)}},Rg),Zv=(Og.prototype.evaluate=function(e,t,r,n,o){if("COMPLETED"!==t.status)return o.evaluate(e,t,r,n);o=t._winnerVariationOrNull();if(o)return Fv.withVariation(e,o,s.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(t.id,"]"))},Og),Jv=(Tg.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):Fv.of(e,t,n,s.NOT_IN_EXPERIMENT_TARGET)},Tg),Qv=(bg.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?Fv.of(e,t,n,s.VARIATION_DROPPED):Fv.withVariation(e,r,s.TRAFFIC_ALLOCATED):Fv.of(e,t,n,s.TRAFFIC_NOT_ALLOCATED)},bg),eg=(Eg.prototype.evaluate=function(e,t,r,n,o){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("FEATURE_FLAG"!==t.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(t.id,"]"));if(!r.identifiers[t.identifierType])return 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 Fv.withVariation(e,o,s.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},Eg),tg=(wg.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 Fv.of(e,t,n,s.DEFAULT_RULE);n=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);if(n)return Fv.withVariation(e,n,s.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},wg),rg=(mg.prototype.evaluate=function(e,t,r,n,o){var i=t.containerId;if(!i)return o.evaluate(e,t,r,n);var a=e.getContainerOrNull(i);if(!a)throw new Error("container[".concat(i,"]"));i=e.getBucketOrNull(a.bucketId);if(i)return this.containerResolver.isUserInContainerGroup(a,i,t,r)?o.evaluate(e,t,r,n):Fv.of(e,t,n,s.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("bucket[".concat(a.bucketId,"]"))},mg),ng=(gg.prototype.evaluate=function(e,t,r,n,o){return r.identifiers[t.identifierType]?o.evaluate(e,t,r,n):Fv.of(e,t,n,s.IDENTIFIER_NOT_FOUND)},gg),og=(vg.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)})},vg),ig=(yg.prototype.determineTargetRuleOrNull=function(t,e,r){var n=this;return e.targetRules.find(function(e){return n.targetMatcher.matches(e.target,t,r)})},yg),ag=(hg.prototype.resolveOrNull=function(e,t,r){return this._resolveUserOverride(t,r)||this._resolveSegmentOverride(e,t,r)},hg.prototype._resolveUserOverride=function(e,t){t=t.identifiers[e.identifierType];if(t){t=e.userOverrides.get(t);if(t)return e._getVariationByIdOrNull(t)}},hg.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)},hg),sg=(dg.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,"]"))},dg),ug=(pg.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},pg),cg=H.log,lg=null,fg={debug:!1,log_disabled:!1,auto_track_page_view:!1,pollingIntervalMillis:-1,exposureEventDedupIntervalMillis:-1,SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.3.1"};function pg(){var e=new qv,t=new Vv(new zv),r=new Gv(e),n=new ag(t,r),e=new sg(e);this.abTestFlow=$v.of(new Xv(n),new ng,new rg(e),new Jv(new og(t)),new Yv,new Wv,new Zv,new Qv(r)),this.featureFlagFlow=$v.of(new Yv,new Wv,new Zv,new Xv(n),new ng,new eg(new ig(t),r),new tg(r))}function dg(e){this.bucketer=e}function hg(e,t){this.targetMatcher=e,this.actionResolver=t}function yg(e){this.targetMatcher=e}function vg(e){this.targetMatcher=e}function gg(){}function mg(e){this.containerResolver=e}function wg(e){this.actionResolver=e}function Eg(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function bg(e){this.actionResolver=e}function Tg(e){this.experimentTargetDeterminer=e}function Og(){}function Rg(){}function _g(){}function Sg(e){this.overrideResolver=e}function Ag(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function Cg(){}function Ng(e){this.bucketer=e}function Ig(){}function kg(e){this.userConditionMatcher=e}function xg(e){this.segmentMatcher=e}function Pg(){}function Dg(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function Mg(){}function jg(){}function Lg(){}function Fg(){}function Ug(){}function Vg(){}function Hg(){}function Kg(){}function zg(){}function Gg(){}function Bg(){}function qg(){}function $g(){}function Xg(){}function Yg(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function Wg(e){this.conditionMatcherFactory=e}function Zg(e){this.evaluationFlowFactory=e}function Jg(e,t,r,n){this.variationId=e,this.variationKey=t,this.reason=r,this.config=n}function Qg(e,t,r){this.workspaceFetcher=e,this.eventProcessor=t,this.evaluator=r,this.workspaceFetcher.start(),this.eventProcessor.start(),this.readyPromise=this.workspaceFetcher.onReady().then(function(){return{success:!0}},function(e){return{success:!1,error:e}})}function em(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function tm(e,t){this.delegate=e,this.exposureEventDedupDeterminer=t}function rm(){}function nm(e,t,r){this.eventDispatcher=e,this.flushInterval=r,this.queue=new kv(this.drainQueue.bind(this),t,r)}function om(e,t,r){this.buffer=[],this.sink=e,this.maxQueueSize=t,this.timer=new Iv({callback:this.flush.bind(this),timeout:r}),this.started=!1}function im(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function am(e,t){t=U(U({},fg),t);if(t.log_disabled?H.setLogLevel(0):t.debug&&H.setLogLevel(4),cg.debug("sdkKey : "+e),e||cg.error("SDK Key must not be null"),lg)return cg.debug("use already exists hackleClient"),lg;var o,r=!1,r=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&cg.debug("support sendBeacon API"),new rt(e,ie,{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 at(e,ie,{fetchUrl:"".concat("https://sdk.hackle.io/api/v2/w/").concat(e).concat("/w"),updateInterval:n,headers:((e={})["X-HACKLE-SDK-NAME"]=t.SDK_NAME_HEADER,e["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,e)})),e=-1,r=(void 0!==t.exposureEventDedupIntervalMillis&&"number"==typeof t.exposureEventDedupIntervalMillis&&-1!==t.exposureEventDedupIntervalMillis&&(e=t.exposureEventDedupIntervalMillis<1e3||36e5<t.exposureEventDedupIntervalMillis?(cg.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):t.exposureEventDedupIntervalMillis),new xv(r,100,500)),e=new Mv(e),r=new Dv(r,e),e=new Lv(n,r,new Uv(new ug)),n=new Ot,i=new Ve(e,n);return lg=i,t.auto_track_page_view&&(o=function(){return i.trackPageView({user:{id:At()}})},i.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}o();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)cg.error(e);else try{cg.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)cg.error(e);else try{cg.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(t("locationchange"))}catch(e){if(e instanceof Error)cg.error(e);else try{cg.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{o()}catch(e){if(e instanceof Error)cg.error(e);else try{cg.error(e)}catch(e){}}})}catch(t){if(t instanceof Error)cg.error(t);else try{cg.error(t)}catch(t){}}var r,n})),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){Nt(),i.close()}),i}var Dr={createInstance:am,getUserId:At,setUserId:Ct,removeUserId:Nt,Logger:H},sm=(f.Bucket=t.Bucket=Y,f.Container=t.Container=ye,f.ContainerGroup=t.ContainerGroup=oe,f.CoreVersion=t.CoreVersion=Ie,f.Decision=t.Decision=ue,f.DecisionReason=t.DecisionReason=s,f.EmptyParameterConfig=t.EmptyParameterConfig=le,f.EventType=t.EventType=W,f.Experiment=t.Experiment=fe,f.FeatureFlagDecision=t.FeatureFlagDecision=ce,f.IdentifierType=t.IdentifierType=de,f.IdentifiersBuilder=t.IdentifiersBuilder=he,f.Logger=t.Logger=H,f.MATCH_OPERATORS=t.MATCH_OPERATORS=De,f.MATCH_TYPES=t.MATCH_TYPES=xe,f.MATCH_VALUE_TYPES=t.MATCH_VALUE_TYPES=Pe,f.MetaVersion=t.MetaVersion=ke,f.ParameterConfiguration=t.ParameterConfiguration=ve,f.SEGMENT_TYPES=t.SEGMENT_TYPES=Le,f.Segment=t.Segment=ne,f.Slot=t.Slot=pe,f.TARGET_ACTION_TYPES=t.TARGET_ACTION_TYPES=Me,f.TARGET_KEY_TYPES=t.TARGET_KEY_TYPES=je,f.Target=t.Target=Z,f.TargetAction=t.TargetAction=te,f.TargetCondition=t.TargetCondition=J,f.TargetKey=t.TargetKey=Q,f.TargetMatch=t.TargetMatch=ee,f.TargetRule=t.TargetRule=re,f.TargetingType=t.TargetingType=Fe,f.Variation=t.Variation=X,f.Version=t.Version=Ne,j=t.createInstance=am,t.default=Dr,f.getUserId=t.getUserId=At,f.removeUserId=t.removeUserId=Nt,f.setUserId=t.setUserId=Ct,function(){return(sm=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 um(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)a.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 a}lm.prototype.variation=function(e,t,r){return this.client.variation(e,t,r)},lm.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t,r)},lm.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t)},lm.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t)},lm.prototype.track=function(e,t){this.client.track(e,t)},lm.prototype.trackPageView=function(e){this.client.trackPageView(e)},lm.prototype.onReady=function(e,t){this.client.onReady(e,t)},lm.prototype.onInitialized=function(e){return this.client.onInitialized(e)};var cm=lm;function lm(e,t){this.client=j(e,sm(sm({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.3.1"}))}var D={exports:{}},o={},fm=Object.getOwnPropertySymbols,pm=Object.prototype.hasOwnProperty,dm=Object.prototype.propertyIsEnumerable;var I=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]))pm.call(r,i)&&(n[i]=r[i]);if(fm)for(var a=fm(r),s=0;s<a.length;s++)dm.call(r,a[s])&&(n[a[s]]=r[a[s]])}return n},hm=I,w="function"==typeof Symbol&&Symbol.for,ym=w?Symbol.for("react.element"):60103,vm=w?Symbol.for("react.portal"):60106,Wt=w?Symbol.for("react.fragment"):60107,gm=w?Symbol.for("react.strict_mode"):60108,ec=w?Symbol.for("react.profiler"):60114,mm=w?Symbol.for("react.provider"):60109,wm=w?Symbol.for("react.context"):60110,Em=w?Symbol.for("react.forward_ref"):60112,$n=w?Symbol.for("react.suspense"):60113,bm=w?Symbol.for("react.memo"):60115,Tm=w?Symbol.for("react.lazy"):60116,Om="function"==typeof Symbol&&Symbol.iterator;function Rm(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 _m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Sm={};function Am(e,t,r){this.props=e,this.context=t,this.refs=Sm,this.updater=r||_m}function Cm(){}function Nm(e,t,r){this.props=e,this.context=t,this.refs=Sm,this.updater=r||_m}Am.prototype.isReactComponent={},Am.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(Rm(85));this.updater.enqueueSetState(this,e,t,"setState")},Am.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Cm.prototype=Am.prototype;var c=Nm.prototype=new Cm,Im=(c.constructor=Nm,hm(c,Am.prototype),c.isPureReactComponent=!0,{current:null}),km=Object.prototype.hasOwnProperty,xm={key:!0,ref:!0,__self:!0,__source:!0};function Pm(e,t,r){var n,o={},i=null,a=null;if(null!=t)for(n in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)km.call(t,n)&&!xm.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===o[n]&&(o[n]=s[n]);return{$$typeof:ym,type:e,key:i,ref:a,props:o,_owner:Im.current}}function Dm(e){return"object"==typeof e&&null!==e&&e.$$typeof===ym}var Mm=/\/+/g,jm=[];function Lm(e,t,r,n){var o;return jm.length?((o=jm.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 Fm(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,jm.length<10&&jm.push(e)}function Um(e,t,r){return null==e?0:function e(t,r,n,o){var i=!1;if(null===(t="undefined"!=(s=typeof t)&&"boolean"!==s?t:null))i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case ym:case vm:i=!0}}if(i)return n(o,t,""===r?"."+Vm(t,0):r),1;if(i=0,r=""===r?".":r+":",Array.isArray(t))for(var a=0;a<t.length;a++){var s,u=r+Vm(s=t[a],a);i+=e(s,u,n,o)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=Om&&t[Om]||t["@@iterator"])?u:null))for(t=u.call(t),a=0;!(s=t.next()).done;)i+=e(s=s.value,u=r+Vm(s,a++),n,o);else if("object"===s)throw n=""+t,Error(Rm(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return i}(e,"",t,r)}function Vm(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 Hm(e,t){e.func.call(e.context,t,e.count++)}function Km(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?zm(e,n,r,function(e){return e}):null!=e&&(Dm(e)&&(t=o+(!(o=e).key||t&&t.key===e.key?"":(""+e.key).replace(Mm,"$&/")+"/")+r,e={$$typeof:ym,type:o.type,key:t,ref:o.ref,props:o.props,_owner:o._owner}),n.push(e))}function zm(e,t,r,n,o){var i="";Um(e,Km,t=Lm(t,i=null!=r?(""+r).replace(Mm,"$&/")+"/":i,n,o)),Fm(t)}var Gm={current:null};function Bm(){var e=Gm.current;if(null===e)throw Error(Rm(321));return e}var qm,$m,Xm,Xa={ReactCurrentDispatcher:Gm,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Im,IsSomeRendererActing:{current:!1},assign:hm},x=(o.Children={map:function(e,t,r){if(null==e)return e;var n=[];return zm(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;Um(e,Hm,t=Lm(null,null,t,r)),Fm(t)},count:function(e){return Um(e,function(){return null},null)},toArray:function(e){var t=[];return zm(e,t,null,function(e){return e}),t},only:function(e){if(Dm(e))return e;throw Error(Rm(143))}},o.Component=Am,o.Fragment=Wt,o.Profiler=ec,o.PureComponent=Nm,o.StrictMode=gm,o.Suspense=$n,o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xa,o.cloneElement=function(e,t,r){if(null==e)throw Error(Rm(267,e));var n=hm({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t)for(s in void 0!==t.ref&&(i=t.ref,a=Im.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)km.call(t,s)&&!xm.hasOwnProperty(s)&&(n[s]=(void 0===t[s]&&void 0!==u?u:t)[s]);var s=arguments.length-2;if(1===s)n.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];n.children=u}return{$$typeof:ym,type:e.type,key:o,ref:i,props:n,_owner:a}},o.createContext=function(e,t){return(e={$$typeof:wm,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:mm,_context:e},e.Consumer=e},o.createElement=Pm,o.createFactory=function(e){var t=Pm.bind(null,e);return t.type=e,t},o.createRef=function(){return{current:null}},o.forwardRef=function(e){return{$$typeof:Em,render:e}},o.isValidElement=Dm,o.lazy=function(e){return{$$typeof:Tm,_ctor:e,_status:-1,_result:null}},o.memo=function(e,t){return{$$typeof:bm,type:e,compare:void 0===t?null:t}},o.useCallback=function(e,t){return Bm().useCallback(e,t)},o.useContext=function(e,t){return Bm().useContext(e,t)},o.useDebugValue=function(){},o.useEffect=function(e,t){return Bm().useEffect(e,t)},o.useImperativeHandle=function(e,t,r){return Bm().useImperativeHandle(e,t,r)},o.useLayoutEffect=function(e,t){return Bm().useLayoutEffect(e,t)},o.useMemo=function(e,t){return Bm().useMemo(e,t)},o.useReducer=function(e,t,r){return Bm().useReducer(e,t,r)},o.useRef=function(e){return Bm().useRef(e)},o.useState=function(e){return Bm().useState(e)},o.version="16.14.0",{}),fr=Function.call.bind(Object.prototype.hasOwnProperty),Ym=function(){};function Wm(e,t,r,n,o){if("production"!==production)for(var i in e)if(Xm(e,i)){var a,s;try{if("function"!=typeof e[i])throw(s=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",s;a=e[i](t,i,n,r,null,qm)}catch(e){a=e}!a||a instanceof Error||Ym((n||"React class")+": type specification of "+r+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in $m)&&($m[a.message]=!0,i=o?o():"",Ym("Failed "+r+" type: "+a.message+(null!=i?i:"")))}}if("production"!==production&&(qm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",$m={},Xm=fr,Ym=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),Wm.resetWarningCache=function(){"production"!==production&&($m={})},"production"!==production){var Zm=I,Jm=Wm,b="function"==typeof Symbol&&Symbol.for,Qm=b?Symbol.for("react.element"):60103,e0=b?Symbol.for("react.portal"):60106,t0=b?Symbol.for("react.fragment"):60107,r0=b?Symbol.for("react.strict_mode"):60108,n0=b?Symbol.for("react.profiler"):60114,o0=b?Symbol.for("react.provider"):60109,i0=b?Symbol.for("react.context"):60110,a0=b?Symbol.for("react.concurrent_mode"):60111,s0=b?Symbol.for("react.forward_ref"):60112,u0=b?Symbol.for("react.suspense"):60113,c0=b?Symbol.for("react.suspense_list"):60120,l0=b?Symbol.for("react.memo"):60115,f0=b?Symbol.for("react.lazy"):60116,p0=b?Symbol.for("react.block"):60121,d0=b?Symbol.for("react.fundamental"):60117,h0=b?Symbol.for("react.responder"):60118,y0=b?Symbol.for("react.scope"):60119,v0="function"==typeof Symbol&&Symbol.iterator,g0="@@iterator";function m0(e){if(null===e||"object"!=typeof e)return null;e=v0&&e[v0]||e[g0];return"function"==typeof e?e:null}var w0={current:null},E0={current:null},b0=/^(.*)[\\\/]/,T0=1;function O0(e){if(null==e)return null;if("number"==typeof e.tag&&M("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case t0:return"Fragment";case e0:return"Portal";case n0:return"Profiler";case r0:return"StrictMode";case u0:return"Suspense";case c0:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case i0:return"Context.Consumer";case o0:return"Context.Provider";case s0:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case l0:return O0(e.type);case p0:return O0(e.render);case f0:r=(t=e)._status===T0?t._result:null;if(r)return O0(r)}var t,r;return null}var R0={},_0=null;function S0(e){_0=e}R0.getCurrentStack=null,R0.getStackAddendum=function(){var e,t,r,n,o,i="",a=(_0&&(e=O0(_0.type),r=_0._owner,i+=(e=e,t=_0._source,r=r&&O0(r.type),o="",t?(n=(a=t.fileName).replace(b0,""),o=" (at "+(n=/^index\./.test(n)&&(a=a.match(b0))&&(a=a[1])?a.replace(b0,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(o=" (created by "+r+")"),"\n in "+(e||"Unknown")+o)),R0.getCurrentStack);return a&&(i+=a()||""),i};var A0={ReactCurrentDispatcher:w0,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:E0,IsSomeRendererActing:{current:!1},assign:Zm};function C0(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];N0("warn",e,r)}function M(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];N0("error",e,r)}function N0(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=A0.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){}}Zm(A0,{ReactDebugCurrentFrame:R0,ReactComponentTreeHook:{}});var I0={};function k0(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;I0[r]||(M("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),I0[r]=!0)}var x0={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){k0(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){k0(e,"replaceState")},enqueueSetState:function(e,t,r,n){k0(e,"setState")}},P0={};function D0(e,t,r){this.props=e,this.context=t,this.refs=P0,this.updater=r||x0}Object.freeze(P0),D0.prototype.isReactComponent={},D0.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")},D0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var M0,j0={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(M0 in j0)j0.hasOwnProperty(M0)&&!function(e,t){Object.defineProperty(D0.prototype,e,{get:function(){C0("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(M0,j0[M0]);function L0(){}function F0(e,t,r){this.props=e,this.context=t,this.refs=P0,this.updater=r||x0}L0.prototype=D0.prototype,(b=F0.prototype=new L0).constructor=F0,Zm(b,D0.prototype),b.isPureReactComponent=!0;var U0,V0,H0=Object.prototype.hasOwnProperty,K0={key:!0,ref:!0,__self:!0,__source:!0};function z0(e){if(H0.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function G0(e){if(H0.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var B0={},q0=function(e,t,r,n,o,i,a){e={$$typeof:Qm,type:e,key:t,ref:r,props:a,_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 $0(e,t,r){var n,o={},i=null,a=null,s=null,u=null;if(null!=t)for(n in z0(t)&&(a=t.ref,"string"==typeof(c=t).ref&&E0.current&&c.__self&&E0.current.stateNode!==c.__self&&(f=O0(E0.current.type),B0[f]||(M('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',O0(E0.current.type),c.ref),B0[f]=!0))),G0(t)&&(i=""+t.key),s=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)H0.call(t,n)&&!K0.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(){V0||(V0=!0,M("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",l))}function m(){U0||(U0=!0,M("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",p))}return(i||a)&&(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})),a&&(r=o,l=c,g.isReactWarning=!0,Object.defineProperty(r,"ref",{get:g,configurable:!0}))),q0(e,i,a,s,u,E0.current,o)}function X0(e){return"object"==typeof e&&null!==e&&e.$$typeof===Qm}var Y0=".",W0=":",Z0=!1,J0=/\/+/g;function Q0(e){return(""+e).replace(J0,"$&/")}var ew=10,tw=[];function rw(e,t,r,n){var o;return tw.length?((o=tw.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 nw(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,tw.length<ew&&tw.push(e)}function ow(e,t,r){return null==e?0:function e(t,r,n,o){var i,a=typeof t,s=!1;if(null===(t="undefined"!=a&&"boolean"!=a?t:null))s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case Qm:case e0:s=!0}}if(s)return n(o,t,""===r?Y0+iw(t,0):r),1;var u=0,c=""===r?Y0:r+W0;if(Array.isArray(t))for(var l=0;l<t.length;l++)u+=e(i=t[l],c+iw(i,l),n,o);else if("function"==typeof(r=m0(t))){r===t.entries&&(Z0||C0("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."),Z0=!0);for(var f,p=r.call(t),d=0;!(f=p.next()).done;)u+=e(i=f.value,c+iw(i,d++),n,o)}else if("object"==a)throw r="",r=" If you meant to render a collection of children, use an array instead."+R0.getStackAddendum(),a=""+t,Error("Objects are not valid as a React child (found: "+("[object Object]"==a?"object with keys {"+Object.keys(t).join(", ")+"}":a)+")."+r);return u}(e,"",t,r)}function iw(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 aw(e,t,r){var n=e.func,o=e.context;n.call(o,t,e.count++)}function sw(e,t,r){var n=e.result,o=e.keyPrefix,i=e.func,a=e.context,i=i.call(a,t,e.count++);Array.isArray(i)?uw(i,n,r,function(e){return e}):null!=i&&(X0(i)&&(e=o+(!(a=i).key||t&&t.key===i.key?"":Q0(i.key)+"/")+r,i=q0(a.type,e,a.ref,a._self,a._source,a._owner,a.props)),n.push(i))}function uw(e,t,r,n,o){var i="",t=rw(t,i=null!=r?Q0(r)+"/":i,n,o);ow(e,sw,t),nw(t)}function cw(e){return"string"==typeof e||"function"==typeof e||e===t0||e===a0||e===n0||e===r0||e===u0||e===c0||"object"==typeof e&&null!==e&&(e.$$typeof===f0||e.$$typeof===l0||e.$$typeof===o0||e.$$typeof===i0||e.$$typeof===s0||e.$$typeof===d0||e.$$typeof===h0||e.$$typeof===y0||e.$$typeof===p0)}function lw(){var e=w0.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 fw(){if(E0.current){var e=O0(E0.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var pw=!1,dw={};function hw(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=fw())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),dw[t=r]||(dw[t]=!0,r="",e&&e._owner&&e._owner!==E0.current&&(r=" It was passed a child from "+O0(e._owner.type)+"."),S0(e),M('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',t,r),S0(null)))}function yw(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];X0(n)&&hw(n,t)}else if(X0(e))e._store&&(e._store.validated=!0);else if(e){var o=m0(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)X0(i.value)&&hw(i.value,t)}}function vw(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=O0(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==s0&&t.$$typeof!==l0)return;r=t.propTypes}r?(S0(e),Jm(r,e.props,"prop",n,R0.getStackAddendum),S0(null)):void 0===t.PropTypes||pw||(pw=!0,M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function gw(e,t,r){var n,o=cw(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+".":"")||fw(),null===e?a="null":Array.isArray(e)?a="array":void 0!==e&&e.$$typeof===Qm?(a="<"+(O0(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,M("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",a,n)),$0.apply(this,arguments));if(null==t)return t;if(o)for(var i=2;i<arguments.length;i++)yw(arguments[i],e);if(e===t0){var a=t;S0(a);for(var s=Object.keys(a.props),u=0;u<s.length;u++){var c=s[u];if("children"!==c&&"key"!==c){M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c);break}}null!==a.ref&&M("Invalid attribute `ref` supplied to `React.Fragment`."),S0(null)}else vw(t);return t}var mw=!1;try{var ww=Object.freeze({}),Ew=new Map([[ww,null]]),bw=new Set([ww]);Ew.set(0,0),bw.add(0)}catch(e){}function Tw(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=Zm({},e.props),a=e.key,s=e.ref,u=e._self,c=e._source,l=e._owner;if(null!=t)for(n in z0(t)&&(s=t.ref,l=E0.current),G0(t)&&(a=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)H0.call(t,n)&&!K0.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 q0(e.type,a,s,u,c,l,i)}.apply(this,arguments),o=2;o<arguments.length;o++)yw(arguments[o],n.type);return vw(n),n}function Ow(e){var t=gw.bind(null,e);return t.type=e,mw||(mw=!0,C0("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 C0("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}b=gw,x.Children={map:function(e,t,r){if(null==e)return e;var n=[];return uw(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=rw(null,null,t,r),ow(e,aw,t),nw(t)},count:function(e){return ow(e,function(){return null},null)},toArray:function(e){var t=[];return uw(e,t,null,function(e){return e}),t},only:function(e){if(X0(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},x.Component=D0,x.Fragment=t0,x.Profiler=n0,x.PureComponent=F0,x.StrictMode=r0,x.Suspense=u0,x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A0,x.cloneElement=Tw,x.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&M("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:i0,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:o0,_context:r}),o=!1,t={$$typeof:i0,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return o||(o=!0,M("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,M("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}}}),r.Consumer=t,r._currentRenderer=null,r._currentRenderer2=null,r},x.createElement=b,x.createFactory=Ow,x.createRef=function(){var e={current:null};return Object.seal(e),e},x.forwardRef=function(e){return null!=e&&e.$$typeof===l0?M("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?M("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&M("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null==e||null==e.defaultProps&&null==e.propTypes||M("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:s0,render:e}},x.isValidElement=X0,x.lazy=function(e){var t,r,n={$$typeof:f0,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){M("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){M("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},x.memo=function(e,t){return cw(e)||M("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:l0,type:e,compare:void 0===t?null:t}},x.useCallback=function(e,t){return lw().useCallback(e,t)},x.useContext=function(e,t){var r,n=lw();return void 0!==t&&M("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context&&((r=e._context).Consumer===e?M("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&M("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},x.useDebugValue=function(e,t){return lw().useDebugValue(e,t)},x.useEffect=function(e,t){return lw().useEffect(e,t)},x.useImperativeHandle=function(e,t,r){return lw().useImperativeHandle(e,t,r)},x.useLayoutEffect=function(e,t){return lw().useLayoutEffect(e,t)},x.useMemo=function(e,t){return lw().useMemo(e,t)},x.useReducer=function(e,t,r){return lw().useReducer(e,t,r)},x.useRef=function(e){return lw().useRef(e)},x.useState=function(e){return lw().useState(e)},x.version="16.14.0"}"production"===production?D.exports=o:D.exports=x;var Rw=D.exports,_w=D.exports.createContext({hackle:void 0,user:void 0,initialized:!1}),Fr=_w.Consumer,Sw=_w.Provider;var Aw=f.Logger.log;function Cw(e,t){e=Nw(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function Nw(e,t){void 0===t&&(t="A");var r=D.exports.useContext(_w),n=r.hackle,o=r.user,i=r.initialized,a=D.exports.useCallback(function(){return i?(null==n?void 0:n.variationDetail(e,o))||f.Decision.of(t,f.DecisionReason.EXCEPTION):f.Decision.of(t,f.DecisionReason.SDK_NOT_READY)},[t,e,o,n,i]),r=um(D.exports.useState(function(){return n?a():(Aw.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2),s=r[0],r=r[1],u={key:e,user:o,initialized:i},c=um(D.exports.useState(u),2),l=c[0],c=c[1];return xw(l,u)||(c(u),r(a())),{isLoading:!i,decision:s}}function Iw(e){e=kw(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function kw(e){var t=D.exports.useContext(_w),r=t.hackle,n=t.user,o=t.initialized,i=D.exports.useCallback(function(){return o?(null==r?void 0:r.featureFlagDetail(e,n))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION):f.FeatureFlagDecision.off(f.DecisionReason.SDK_NOT_READY)},[e,n,r,o]),t=um(D.exports.useState(function(){return r?i():(Aw.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2),a=t[0],t=t[1],s={key:e,user:n,initialized:o},u=um(D.exports.useState(s),2),c=u[0],u=u[1];return xw(c,s)||(u(s),t(i())),{isLoading:!o,decision:a}}function xw(e,t){var r,n,o;return e.initialized===t.initialized&&e.key===t.key&&(null==(r=e.user)?void 0:r.id)===(null==(r=t.user)?void 0:r.id)&&(e=null==(r=e.user)?void 0:r.properties,t=null==(r=t.user)?void 0:r.properties,n=Pw(e),o=Pw(t),e=Object.keys(n),t=Object.keys(o),e.length===t.length&&e.every(function(e){return e in o&&n[e]===o[e]}))}function Pw(e){return"object"==typeof e&&null!==e?e:{}}function Dw(e){var t,r=e.experimentKey,e=e.children,n=(r=Cw(r)).isLoading,o=r.variation;return n?null:e&&"function"==typeof e?e(o):(D.exports.Children.forEach(e,function(e){D.exports.isValidElement(e)&&(e.props.variation?o===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?D.exports.cloneElement(t,{variation:o}):null)}function Mw(e){return e.variation,e=e.children,D.exports.createElement(D.exports.Fragment,null,e)}function jw(e){var t=(r=Iw(e.featureKey)).isLoading,r=r.isOn;return t?null:Rw.createElement(Rw.Fragment,null,e.children(r))}f.HackleContext=_w,f.HackleContextConsumer=Fr,f.HackleContextProvider=Sw,f.HackleExperiment=Dw,f.HackleFeature=jw,f.HackleProvider=function(e){var t=e.hackleClient,r=e.user,n=void 0===(o=e.timeout)?3e3:o,o=void 0!==(o=e.supportSSR)&&o,e=e.children,i=um(D.exports.useState({hackle:t,user:r,initialized:!1}),2),a=i[0],s=i[1];return D.exports.useEffect(function(){s(function(e){return sm(sm({},e),{user:r})})},[r]),D.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){s(function(e){return sm(sm({},e),{initialized:!0})})},function(){s(function(e){return sm(sm({},e),{initialized:!0})})}).catch(function(){s(function(e){return sm(sm({},e),{initialized:!0})})})},[t]),o||a.initialized?Rw.createElement(Sw,{value:a},e):null},f.HackleVariation=Mw,f.createInstance=function(e,t){return new cm(e,t)},f.useFeature=function(e){var t=(n=D.exports.useContext(_w)).hackle,r=n.user,n=n.initialized,o=D.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e,r))||!1},[e,r,t,n]),i=(a=um(D.exports.useState(function(){return t?o():("undefined"!=typeof window&&Aw.error("HackleClient is not existed"),!1)}),2))[0],a=a[1],n={key:e,user:r,initialized:n},s=(u=um(D.exports.useState(n),2))[0],u=u[1];return xw(s,n)||(u(n),a(o())),i},f.useFeatureFlagDetail=function(e){var t=(n=D.exports.useContext(_w)).hackle,r=n.user,n=n.initialized,o=D.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e,r))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION)},[e,r,t,n]),i=(a=um(D.exports.useState(function(){return t?o():("undefined"!=typeof window&&Aw.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2))[0],a=a[1],n={key:e,user:r,initialized:n},s=(u=um(D.exports.useState(n),2))[0],u=u[1];return xw(s,n)||(u(n),a(o())),i},f.useLoadableFeature=Iw,f.useLoadableFeatureDetail=kw,f.useLoadableVariation=Cw,f.useLoadableVariationDetail=Nw,f.useTrack=function(){var e=D.exports.useContext(_w),t=e.hackle,r=e.user;return t?function(e){return null==t?void 0:t.track(e,r)}:(Aw.error("HackleClient is not existed"),function(){})},f.useVariation=function(e,t){void 0===t&&(t="A");var r=(s=D.exports.useContext(_w)).hackle,n=s.user,o=s.initialized,i=D.exports.useCallback(function(){return o&&(null==r?void 0:r.variation(e,n))||t},[t,e,n,r,o]),a=(s=um(D.exports.useState(function(){return r?i():("undefined"!=typeof window&&Aw.error("HackleClient is not existed"),t)}),2))[0],s=s[1],u={key:e,user:n,initialized:o},c=(l=um(D.exports.useState(u),2))[0],l=l[1];return xw(c,u)||(l(u),s(i())),a},f.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(o=D.exports.useContext(_w)).hackle,n=o.user,o=o.initialized,i=D.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e,n))||f.Decision.of(t,f.DecisionReason.EXCEPTION)},[t,e,n,r,o]),a=(s=um(D.exports.useState(function(){return r?i():("undefined"!=typeof window&&Aw.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2))[0],s=s[1],o={key:e,user:n,initialized:o},u=(c=um(D.exports.useState(o),2))[0],c=c[1];return xw(u,o)||(c(o),s(i())),a},Object.defineProperty(f,"__esModule",{value:!0})});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).hackleReactSDK={})}(this,function(f){"use strict";var j,e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t={},L=(f.setUserId=void 0,f.removeUserId=void 0,f.getUserId=void 0,f.Version=void 0,f.Variation=void 0,f.TargetingType=void 0,f.TargetRule=void 0,f.TargetMatch=void 0,f.TargetKey=void 0,f.TargetCondition=void 0,f.TargetAction=void 0,f.Target=void 0,f.TARGET_KEY_TYPES=void 0,f.TARGET_ACTION_TYPES=void 0,f.Slot=void 0,f.Segment=void 0,f.SEGMENT_TYPES=void 0,f.ParameterConfiguration=void 0,f.MetaVersion=void 0,f.MATCH_VALUE_TYPES=void 0,f.MATCH_TYPES=void 0,f.MATCH_OPERATORS=void 0,f.Logger=void 0,f.IdentifiersBuilder=void 0,f.IdentifierType=void 0,f.FeatureFlagDecision=void 0,f.Experiment=void 0,f.EventType=void 0,f.EmptyParameterConfig=void 0,f.DecisionReason=void 0,f.Decision=void 0,f.CoreVersion=void 0,f.ContainerGroup=void 0,f.Container=void 0,f.Bucket=void 0,Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){return(L=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 F(e,t){function r(){this.constructor=e}L(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var U=function(){return(U=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 V(n,o){var i,a,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[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,a&&(s=2&t[0]?a.return:t[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,a=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!((s=0<(s=u.trys).length&&s[s.length-1])||6!==t[0]&&2!==t[0])){u=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3])){u.label=t[1];break}if(6===t[0]&&u.label<s[1]){u.label=s[1],s=t;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(t);break}s[2]&&u.ops.pop(),u.trys.pop();continue}t=o.call(n,u)}catch(e){t=[6,e],a=0}finally{i=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}q.setLogLevel=function(e){this.logLevel=e=void 0===e?3:e},q._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)K.log(e,r,t.message,t);else try{K.log(e,r,t)}catch(e){}},q.logLevel=3,q.log={error:function(e){1<=q.logLevel&&q._log("ERROR",e)},warn:function(e){2<=q.logLevel&&q._log("WARN",e)},info:function(e){3<=q.logLevel&&q._log("INFO",e)},debug:function(e){4<=q.logLevel&&q._log("DEBUG",e)}};var H=q,K=(B.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},B),z=[0,8,16,32,64,128,256,512],G=H.log;function B(){}function q(){}function $(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}function X(e,t,r,n){this.id=e,this.key=t,this.isDropped=r,this.parameterConfigurationId=n}function Y(e,t,r){this.seed=e,this.slotSize=t,this.slots=r}function W(e,t){this.id=e,this.key=t}function Z(e){this.conditions=e}function J(e,t){this.key=e,this.match=t}function Q(e,t){this.type=e,this.name=t}function ee(e,t,r,n){this.type=e,this.operator=t,this.valueType=r,this.values=n}function te(e,t,r){this.type=e,this.variationId=t,this.bucketId=r}function re(e,t){this.target=e,this.action=t}function ne(e,t,r,n){this.id=e,this.key=t,this.type=r,this.targets=n}function oe(e,t){this.id=e,this.experiments=t}var ie={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"),r.withCredentials=!0,$(r,o),r.send()})}},postRequest:function(e,t,r,n){var t=JSON.stringify(t),o=new XMLHttpRequest;o.open("POST",e),o.onreadystatechange=function(){o.readyState===o.DONE&&200<=o.status&&o.status<400&&n(o)},o.setRequestHeader("content-type","application/json"),o.withCredentials=!0,$(o,r),o.send(t)},sendBeacon:function(e,t,r,n){var o=!1;(o="undefined"!=typeof window?window&&window.navigator&&window.navigator.sendBeacon&&!0:o)?(o=JSON.stringify(t),(t=new URLSearchParams).append("sdkName",r["X-HACKLE-SDK-NAME"]),t.append("sdkVersion",r["X-HACKLE-SDK-VERSION"]),t.append("data",o),window.navigator.sendBeacon(e,t)):G.error("Does not support sendBeacon"),n()}},ae=(Se.isNotNullOrUndefined=function(e){return null!=e},Se.isNullOrUndefined=function(e){return null==e},Se.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},Se),se=H.log,ue=(Re.of=function(e,t,r){return new Re(e,t,r=void 0===r?new le:r)},Re.prototype.get=function(e,t){switch(typeof t){case"string":case"number":case"boolean":return this.config.get(e,t);default:return t}},Re),ce=(Oe.on=function(e,t){return new Oe(!0,e,t=void 0===t?new le:t)},Oe.off=function(e,t){return new Oe(!1,e,t=void 0===t?new le:t)},Oe.prototype.get=function(e,t){switch(typeof t){case"string":case"number":case"boolean":return this.config.get(e,t);default:return t}},Oe),le=(_e.prototype.get=function(e,t){return t},_e),s=(r.SDK_NOT_READY="SDK_NOT_READY",r.EXCEPTION="EXCEPTION",r.INVALID_INPUT="INVALID_INPUT",r.EXPERIMENT_NOT_FOUND="EXPERIMENT_NOT_FOUND",r.EXPERIMENT_DRAFT="EXPERIMENT_DRAFT",r.EXPERIMENT_PAUSED="EXPERIMENT_PAUSED",r.EXPERIMENT_COMPLETED="EXPERIMENT_COMPLETED",r.OVERRIDDEN="OVERRIDDEN",r.TRAFFIC_NOT_ALLOCATED="TRAFFIC_NOT_ALLOCATED",r.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT="NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT",r.IDENTIFIER_NOT_FOUND="IDENTIFIER_NOT_FOUND",r.VARIATION_DROPPED="VARIATION_DROPPED",r.TRAFFIC_ALLOCATED="TRAFFIC_ALLOCATED",r.NOT_IN_EXPERIMENT_TARGET="NOT_IN_EXPERIMENT_TARGET",r.FEATURE_FLAG_NOT_FOUND="FEATURE_FLAG_NOT_FOUND",r.FEATURE_FLAG_INACTIVE="FEATURE_FLAG_INACTIVE",r.INDIVIDUAL_TARGET_MATCH="INDIVIDUAL_TARGET_MATCH",r.TARGET_RULE_MATCH="TARGET_RULE_MATCH",r.DEFAULT_RULE="DEFAULT_RULE",r),fe=(Te.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},Te.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},Te.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},Te),pe=(be.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},be),de=(Ee.ID="$id",Ee.USER="$userId",Ee.DEVICE="$deviceId",Ee),he=(we.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},we.prototype.add=function(e,t){return t&&this._isValid(e,t)?this.identifiers[e]=t:se.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},we.prototype._isValid=function(e,t){return!(!e||"string"!=typeof e||128<e.length||!t||"string"!=typeof t||512<t.length)},we.prototype.build=function(){return this.identifiers},we),ye=(me.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},me),ve=(ge.prototype.get=function(e,t){e=this.parameters.get(e);return!ae.isNullOrUndefined(e)&&(ae.isNullOrUndefined(t)||typeof e==typeof t)?e:t},ge);function ge(e,t){this.id=e,this.parameters=t}function me(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function we(){this.identifiers={}}function Ee(){}function be(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function Te(e,t,r,n,o,i,a,s,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=a,this.userOverrides=s,this.segmentOverrides=u,this.targetAudiences=c,this.targetRules=l,this.defaultRule=f,this.containerId=p,this._winnerVariationId=d}function r(){}function _e(){}function Oe(e,t,r){this.isOn=e,this.reason=t,this.config=r}function Re(e,t,r){this.variation=e,this.reason=t,this.config=r}function Se(){}Qe.tryParse=function(e){var t,r,n,o,e=Qe.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 Qe(new Ie(parseInt(t,10),parseInt(r,10),parseInt(n,10)),ke.parse(o),ke.parse(e))},Qe.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},Qe.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},Qe.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},Qe.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},Qe.prototype.isLessThan=function(e){return this.compareTo(e)<0},Qe.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},Qe.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 Ae,Ne,Ce=Qe,Ie=(Je.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},Je),ke=(Ze.parse=function(e){return e?new Ze(e.split(".")):Ze.EMPTY},Ze.prototype.isEmpty=function(){return 0===this.identifiers.length},Ze.prototype.isNotEmpty=function(){return!this.isEmpty()},Ze.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},Ze.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=Ze.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},Ze.compareIdentifiers=function(e,t){return Ze.numericIdentifierRegExp.test(e)&&Ze.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},Ze.EMPTY=new Ze([]),Ze.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,Ze),xe=["MATCH","NOT_MATCH"],Pe=["STRING","NUMBER","BOOLEAN","VERSION"],De=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],Me=["VARIATION","BUCKET"],je=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT"],Le=["USER_ID","USER_PROPERTY"],Fe=(We.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},We.IDENTIFIER=new We("SEGMENT"),We.PROPERTY=new We("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY"),We.SEGMENT=new We("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),We),Ue=H.log,Ve=(Ye.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},Ye.prototype.variationDetail=function(e,t,r){r=r||"A";try{var n=this.hackleUserResolver.resolveOrNull(t);return n?this.hackleInternalClient._experiment(e,n,r):ue.of(r,s.INVALID_INPUT)}catch(t){return Ue.error("Unexpected exception while deciding variation for experiment[".concat(e,"]. Returning default variation[").concat(r,"] : ").concat(t)),ue.of(r,s.EXCEPTION)}},Ye.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},Ye.prototype.featureFlagDetail=function(e,t){try{var r=this.hackleUserResolver.resolveOrNull(t);return r?this.hackleInternalClient._featureFlag(e,r):ce.off(s.INVALID_INPUT)}catch(t){return Ue.error('"Unexpected exception while deciding feature flag['.concat(e,"]. Returning default value[false] : ").concat(t)),ce.off(s.EXCEPTION)}},Ye.prototype.track=function(e,t){Ue.debug("track event : ".concat(JSON.stringify(e)));e=this._convertEvent(e),t=this.hackleUserResolver.resolveOrNull(t);t&&this.hackleInternalClient._track(e,t)},Ye.prototype.trackPageView=function(e){Ue.debug("tracking page view");e=this.hackleUserResolver.resolveOrNull(null==e?void 0:e.user);e&&this.hackleInternalClient._track({key:"$page_view"},e)},Ye.prototype.onReady=function(e,t){this.hackleInternalClient._onReady(e,t=void 0===t?3e3:t)},Ye.prototype.onInitialized=function(e){return this.hackleInternalClient._onInitialized({timeout:null==e?void 0:e.timeout})},Ye.prototype.close=function(){Ue.debug("Hackle Client is closing"),this.hackleInternalClient._close()},Ye.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},Ye),He=(Xe.filteredProperties=function(r){var n=this;return Object.keys(r).filter(function(e){return n.validProperty(e,r[e])}).reduce(function(e,t){return U(U({},e),((e={})[t]=n.filteredPropertiesValue(t,r[t]),e))},{})},Xe.filteredPropertiesValue=function(e,t){return!e.startsWith(Xe.SYSTEM_PROPERTY_KEY_PREFIX)&&"string"==typeof t&&1024<t.length?t.slice(0,1024):t},Xe.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))},Xe.SYSTEM_PROPERTY_KEY_PREFIX="$",Xe),Ke=($e.exposure=function(e,t,r){return new ze((new Date).getTime(),t,e,r.variationId,r.variationKey,r.reason,this.exposureProperties(r))},$e.exposureProperties=function(e){return ae.isNotNullOrUndefined(e.config)?{$parameterConfigurationId:e.config.id}:{}},$e.track=function(e,t,r){return new Ge((new Date).getTime(),r,e,t)},$e.isExposure=function(e){return void 0!==e.experiment},$e.isTrack=function(e){return void 0!==e.eventType},$e),ze=(F(qe,Ne=Ke),qe.prototype.toDto=function(){return{timestamp:this.timestamp,userId:this.user.identifiers[de.ID],identifiers:this.user.identifiers,userProperties:He.filteredProperties(this.user.properties),hackleProperties:He.filteredProperties(this.user.hackleProperties),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}},qe),Ge=(F(Be,Ae=Ke),Be.prototype.toDto=function(){return{timestamp:this.timestamp,userId:this.user.identifiers[de.ID],identifiers:this.user.identifiers,userProperties:He.filteredProperties(this.user.properties),hackleProperties:He.filteredProperties(this.user.hackleProperties),eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:He.filteredProperties(this.event.properties||{})}},Be);function Be(e,t,r,n){e=Ae.call(this,e,t)||this;return e.eventType=r,e.event=n,e}function qe(e,t,r,n,o,i,a){e=Ne.call(this,e,t)||this;return e.experiment=r,e.variationId=n,e.variationKey=o,e.decisionReason=i,e.properties=a,e}function $e(e,t){this.timestamp=e,this.user=t}function Xe(){}function Ye(e,t){this.hackleInternalClient=e,this.hackleUserResolver=t}function We(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function Ze(e){this.identifiers=e}function Je(e,t,r){this.major=e,this.minor=t,this.patch=r}function Qe(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}function et(e){var t=new Array,r=new Array;return e.forEach(function(e){Ke.isExposure(e)?t.push(e.toDto()):Ke.isTrack(e)&&r.push(e.toDto())}),{exposureEvents:t,trackEvents:r}}yt.prototype.dispatch=function(e,t){var r={},e=(r["X-HACKLE-SDK-KEY"]=this.sdkKey,r["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],r["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],r["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),et(e));this.httpRequest.postRequest(this.dispatchUrl,e,r,t)},yt.prototype.dispatchXhrOrBeacon=function(e,t){var r,n;this.useBeacon?((r={})["X-HACKLE-SDK-KEY"]=this.sdkKey,r["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],r["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],r["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),n=et(e),this.httpRequest.sendBeacon(this.beaconDispatchUrl,n,r,t)):this.dispatch(e,t)};var tt,rt=yt,nt=(ht.mapNotNullOrUndefined=function(e,t){for(var r=Array(),n=0,o=e;n<o.length;n++){var i=t(o[n]);ae.isNotNullOrUndefined(i)&&r.push(i)}return r},ht.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},ht.associate=function(e,t){return this.associateTo(e,new Map,t)},ht.associateBy=function(e,t){return this.associate(e,function(e){return[t(e),e]})},ht),ot=H.log,it=(d.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},d.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},d.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},d.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},d.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},d.prototype.getContainerOrNull=function(e){return this.containers.get(e)},d.prototype.getParameterConfigurationOrNull=function(e){return this.parameterConfigurations.get(e)},d.from=function(e){var t=this,r=nt.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]});return new d(nt.associateBy(nt.mapNotNullOrUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),nt.associateBy(nt.mapNotNullOrUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),r,nt.associate(e.events,function(e){return[e.key,new W(e.id,e.key)]}),nt.associateBy(nt.mapNotNullOrUndefined(e.segments,function(e){return t.toSegmentOrNull(e)}),function(e){return e.key}),nt.associate(e.containers,function(e){return[e.id,t.toContainer(e)]}),nt.associate(e.parameterConfigurations,function(e){return[e.id,t.toParameterConfiguration(e)]}))},d.toBucket=function(e){return new Y(e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new pe(t,r,e)}))},d.toExperimentOrNull=function(e,t){var r=this,n=this.experimentStatusOrNull(t.execution.status),o=t.variations.map(function(e){return new X(e.id,e.key,"DROPPED"===e.status,e.parameterConfigurationId)}),i=nt.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),a=nt.mapNotNullOrUndefined(t.execution.segmentOverrides,function(e){return r.toTargetRuleOrNull(e,Fe.IDENTIFIER)}),s=nt.mapNotNullOrUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e,Fe.PROPERTY)}),u=nt.mapNotNullOrUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e,Fe.PROPERTY)}),c=this.toTargetActionOrNull(t.execution.defaultRule);return n&&c&&new fe(t.id,t.key,e,t.identifierType,n,t.version,o,i,a,s,u,c,t.containerId,t.winnerVariationId)},d.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void ot.debug("Unsupported status [".concat(e,"]"))}},d.toTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t),e=this.toTargetActionOrNull(e.action);return t&&e&&new re(t,e)},d.toTargetActionOrNull=function(e){var t=this.parseOrNull(Me,e.type);return t&&new te(t,e.variationId,e.bucketId)},d.toTargetOrNull=function(e,t){var r=this,e=nt.mapNotNullOrUndefined(e.conditions,function(e){return r.toConditionOrNull(e,t)});return new Z(e)},d.toConditionOrNull=function(e,t){var r=this.toTargetKeyOrNull(e.key);if(r&&t.supports(r.type))return(t=this.toTargetMatchOrNull(e.match))&&new J(r,t)},d.toTargetKeyOrNull=function(e){var t=this.parseOrNull(je,e.type);return t&&new Q(t,e.name)},d.toTargetMatchOrNull=function(e){var t=this.parseOrNull(xe,e.type),r=this.parseOrNull(De,e.operator),n=this.parseOrNull(Pe,e.valueType);return t&&r&&n&&new ee(t,r,n,e.values)},d.toSegmentOrNull=function(e){var t=this,r=this.parseOrNull(Le,e.type);return r&&new ne(e.id,e.key,r,nt.mapNotNullOrUndefined(e.targets,function(e){return t.toTargetOrNull(e,Fe.SEGMENT)}))},d.toContainer=function(e){var t=this;return new ye(e.id,e.bucketId,e.groups.map(function(e){return t.toContainerGroup(e)}))},d.toContainerGroup=function(e){return new oe(e.id,e.experiments)},d.toParameterConfiguration=function(e){return new ve(e.id,nt.associate(e.parameters,function(e){return[e.key,e.value]}))},d.parseOrNull=function(e,t){e=e.find(function(e){return e===t});return e||ot.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e},d),at=(dt.prototype.onReady=function(){return this.readyPromise},dt.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},dt.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()},dt.prototype.get=function(){return this.workspace},dt.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)},dt.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);this.currentRequest.responsePromise.then(function(e){t.onRequestResolved(e)},function(e){t.onRequestRejected(e)}).then(r,r),0<this.updateInterval&&this.scheduleNextUpdate()},dt.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},dt.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=it.from(e),this.readyPromiseResolver())}},dt.prototype.onRequestRejected=function(e){this.isStarted&&(this.errorRetryController.countError(),console.error("Error fetching data",e))},dt.prototype.close=function(){this.stop()},dt),st=(pt.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*z[Math.min(z.length-1,this.errorCount)]+Math.round(1e3*Math.random())},pt.prototype.countError=function(){this.errorCount<z.length-1&&this.errorCount++},pt.prototype.reset=function(){this.errorCount=0},pt),n="model",o="name",i="type",a="vendor",u="version",c="mobile",l="tablet",ut=(p.parse=function(e){return{browser:p.getBrowser(e),cpu:p.getCPU(e),device:p.getDevice(e),engine:p.getEngine(e),os:p.getOS(e)}},p.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return p.mapper.rgx.call(t,e,p.regexes.browser),t.major=p.util.major(t.version),t},p.getCPU=function(e){var t={architecture:void 0};return p.mapper.rgx.call(t,e,p.regexes.cpu),t},p.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return p.mapper.rgx.call(t,e,p.regexes.device),t},p.getEngine=function(e){var t={name:void 0,version:void 0};return p.mapper.rgx.call(t,e,p.regexes.os),t},p.getOS=function(e){var t={name:void 0,version:void 0};return p.mapper.rgx.call(t,e,p.regexes.os),t},p.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,"")}},p.regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[o,u],[/(opios)[\/\s]+([\w\.]+)/i],[[o,"Opera Mini"],u],[/\s(opr)\/([\w\.]+)/i],[[o,"Opera"],u],[/(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,u],[/(konqueror)\/([\w\.]+)/i],[[o,"Konqueror"],u],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[o,"IE"],u],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[o,"Edge"],u],[/(yabrowser)\/([\w\.]+)/i],[[o,"Yandex"],u],[/(Avast)\/([\w\.]+)/i],[[o,"Avast Secure Browser"],u],[/(AVG)\/([\w\.]+)/i],[[o,"AVG Secure Browser"],u],[/(puffin)\/([\w\.]+)/i],[[o,"Puffin"],u],[/(focus)\/([\w\.]+)/i],[[o,"Firefox Focus"],u],[/(opt)\/([\w\.]+)/i],[[o,"Opera Touch"],u],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[o,"UCBrowser"],u],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],u],[/(windowswechat qbcore)\/([\w\.]+)/i],[[o,"WeChat(Win) Desktop"],u],[/(micromessenger)\/([\w\.]+)/i],[[o,"WeChat"],u],[/(brave)\/([\w\.]+)/i],[[o,"Brave"],u],[/(whale)\/([\w\.]+)/i],[[o,"Whale"],u],[/(qqbrowserlite)\/([\w\.]+)/i],[o,u],[/(QQ)\/([\d\.]+)/i],[o,u],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[o,u],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[o,u],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[o,u],[/(MetaSr)[\/\s]?([\w\.]+)/i],[o],[/(LBBROWSER)/i],[o],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[u,[o,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[u,[o,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[o,u],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[u,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,/(.+)/,"$1 WebView"],u],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[o,/(.+(?:g|us))(.+)/,"$1 $2"],u],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[o,"Chrome Mobile"],u],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[u,[o,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[o,"Sailfish Browser"],u],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,u],[/(dolfin)\/([\w\.]+)/i],[[o,"Dolphin"],u],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[o,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[o,"Opera Coast"],u],[/fxios\/([\w\.-]+)/i],[u,[o,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[u,[o,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[u,o],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[o,"GSA"],u],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[u,(p.mapper={rgx:function(e,t){for(var r,n,o,i,a,s=0;s<t.length&&!i;){for(var u=t[s],c=t[s+1],l=r=0;l<u.length&&!i;)if(i=u[l++].exec(e))for(n=0;n<c.length;n++)a=i[++r],"object"==typeof(o=c[n])&&0<o.length?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,a):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=a?a.replace(o[1],o[2]):void 0:this[o[0]]=a?o[1].call(this,a,o[2]):void 0:4==o.length&&(this[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):void 0):this[o]=a||void 0;s+=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(p.util.has(t[r][n],e))return"?"===r?void 0:r}else if(p.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(p.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,u],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],u],[/(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,u]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",p.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",p.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",p.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[n,a,[i,l]],[/applecoremedia\/[\w\.]+ \((ipad)/],[n,[a,"Apple"],[i,l]],[/(apple\s{0,1}tv)/i],[[n,"Apple TV"],[a,"Apple"],[i,"smarttv"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[a,n,[i,l]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[n,[a,"Amazon"],[i,l]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[n,p.mapper.str,p.maps.device.amazon.model],[a,"Amazon"],[i,c]],[/android.+aft([bms])\sbuild/i],[n,[a,"Amazon"],[i,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[n,a,[i,c]],[/\((ip[honed|\s\w*]+);/i],[n,[a,"Apple"],[i,c]],[/(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],[a,n,[i,c]],[/\(bb10;\s(\w+)/i],[n,[a,"BlackBerry"],[i,c]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[n,[a,"Asus"],[i,l]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[a,"Sony"],[n,"Xperia Tablet"],[i,l]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[n,[a,"Sony"],[i,c]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[a,n,[i,"console"]],[/android.+;\s(shield)\sbuild/i],[n,[a,"Nvidia"],[i,"console"]],[/(playstation\s[34portablevi]+)/i],[n,[a,"Sony"],[i,"console"]],[/(sprint\s(\w+))/i],[[a,p.mapper.str,p.maps.device.sprint.vendor],[n,p.mapper.str,p.maps.device.sprint.model],[i,c]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[a,[n,/_/g," "],[i,c]],[/(nexus\s9)/i],[n,[a,"HTC"],[i,l]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[n,[a,"Huawei"],[i,c]],[/android.+(bah2?-a?[lw]\d{2})/i],[n,[a,"Huawei"],[i,l]],[/(microsoft);\s(lumia[\s\w]+)/i],[a,n,[i,c]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[n,[a,"Microsoft"],[i,"console"]],[/(kin\.[onetw]{3})/i],[[n,/\./g," "],[a,"Microsoft"],[i,c]],[/\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],[n,[a,"Motorola"],[i,c]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[n,[a,"Motorola"],[i,l]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[a,p.util.trim],[n,p.util.trim],[i,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[n,/^/,"SmartTV"],[a,"Samsung"],[i,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[n,[a,"Sharp"],[i,"smarttv"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[a,"Samsung"],n,[i,l]],[/smart-tv.+(samsung)/i],[a,[i,"smarttv"],n],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[a,"Samsung"],n,[i,c]],[/sie-(\w*)/i],[n,[a,"Siemens"],[i,c]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[a,"Nokia"],n,[i,c]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[n,[a,"Acer"],[i,l]],[/android.+([vl]k\-?\d{3})\s+build/i],[n,[a,"LG"],[i,l]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[a,"LG"],n,[i,l]],[/(lg) netcast\.tv/i],[a,n,[i,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[n,[a,"LG"],[i,c]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[a,n,[i,l]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[n,[a,"Lenovo"],[i,l]],[/(lenovo)[_\s-]?([\w-]+)/i],[a,n,[i,c]],[/linux;.+((jolla));/i],[a,n,[i,c]],[/((pebble))app\/[\d\.]+\s/i],[a,n,[i,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[a,n,[i,c]],[/crkey/i],[[n,"Chromecast"],[a,"Google"],[i,"smarttv"]],[/android.+;\s(glass)\s\d/i],[n,[a,"Google"],[i,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[n,[a,"Google"],[i,l]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[n,[a,"Google"],[i,c]],[/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],[[n,/_/g," "],[a,"Xiaomi"],[i,c]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[n,/_/g," "],[a,"Xiaomi"],[i,l]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[n,[a,"Meizu"],[i,c]],[/(mz)-([\w-]{2,})/i],[[a,"Meizu"],n,[i,c]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[n,[a,"OnePlus"],[i,c]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[n,[a,"RCA"],[i,l]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[n,[a,"Dell"],[i,l]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[n,[a,"Verizon"],[i,l]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[a,"Barnes & Noble"],n,[i,l]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[n,[a,"NuVision"],[i,l]],[/android.+;\s(k88)\sbuild/i],[n,[a,"ZTE"],[i,l]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[n,[a,"Swiss"],[i,c]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[n,[a,"Swiss"],[i,l]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[n,[a,"Zeki"],[i,l]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[a,"Dragon Touch"],n,[i,l]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[n,[a,"Insignia"],[i,l]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[n,[a,"NextBook"],[i,l]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[a,"Voice"],n,[i,c]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[a,"LvTel"],n,[i,c]],[/android.+;\s(PH-1)\s/i],[n,[a,"Essential"],[i,c]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[n,[a,"Envizen"],[i,l]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[a,n,[i,l]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[n,[a,"MachSpeed"],[i,l]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[a,n,[i,l]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[n,[a,"Rotor"],[i,l]],[/android.+(KS(.+))\s+build/i],[n,[a,"Amazon"],[i,l]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[a,n,[i,l]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[i,p.util.lowerize],a,n],[/[\s\/\(](smart-?tv)[;\)]/i],[[i,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[n,[a,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[u,[o,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[u,[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,u],[/rv\:([\w\.]{1,9}).+(gecko)/i],[u,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,u],[/(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,p.mapper.str,p.maps.os.windows],[u,p.mapper.str,p.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[u,p.mapper.str,p.maps.os.windows.version]],[/\((bb)(10);/i],[[o,"BlackBerry"],u],[/(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,u],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[o,"Symbian"],u],[/\((series40);/i],[o],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"],u],[/(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"],u],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],u],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],u],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[o,"Linux"],u],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPhone"],[u,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPad"],[u,/_/g,"."]],[/(haiku)\s(\w+)/i],[o,u],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[u,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[o,"Mac"],[u,/_/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,u]]},p),ct=(ft.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=ut.parse(t.navigator.userAgent),n=r.browser,o=r.os,r=r.device,i=r.type?"mobile"===r.type?"Mobile":"ETC":"Web",a=(t.location.protocol||"").replace(":",""),s=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:a,referrer:t.document.referrer||"",queryParameter:t.location.search||"",screenWidth:s.width||"",screenHeight:s.height||"",timeZone:u||""}},ft),lt=new Uint8Array(16);function ft(){}function p(){}function pt(){this.errorCount=0}function dt(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 st,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function d(e,t,r,n,o,i,a){this.experiments=e,this.featureFlags=t,this.buckets=r,this.eventTypes=n,this.segments=o,this.containers=i,this.parameterConfigurations=a}function ht(){}function yt(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 vt(){if(tt=tt||"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto))return tt(lt);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}var gt=/^(?:[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 mt(e){return"string"==typeof e&>.test(e)}for(var wt=[],Et=0;Et<256;++Et)wt.push((Et+256).toString(16).substr(1));function bt(e,t){t=1<arguments.length&&void 0!==t?t:0,e=(wt[e[t+0]]+wt[e[t+1]]+wt[e[t+2]]+wt[e[t+3]]+"-"+wt[e[t+4]]+wt[e[t+5]]+"-"+wt[e[t+6]]+wt[e[t+7]]+"-"+wt[e[t+8]]+wt[e[t+9]]+"-"+wt[e[t+10]]+wt[e[t+11]]+wt[e[t+12]]+wt[e[t+13]]+wt[e[t+14]]+wt[e[t+15]]).toLowerCase();if(mt(e))return e;throw TypeError("Stringified UUID is invalid")}function Tt(){try{0}catch(e){}}Tt(),Tt();St.prototype.resolveOrNull=function(e){e=this._resolveUser(e);return this._resolveHackleUserOrNull(e)},St.prototype.resolveAnonymousUser=function(){return{identifiers:{},properties:{},hackleProperties:this._getHackleProperties()}},St.prototype._resolveUser=function(e){return e?"string"==typeof e?{id:e}:e:{id:At()}},St.prototype._resolveHackleUserOrNull=function(e){var t=new he,t=(t.addIdentifiers(e.identifiers||{}),e.id&&t.add(de.ID,e.id),e.userId&&t.add(de.USER,e.userId),t.add(de.DEVICE,e.deviceId||At()),t.build());if(0!==Object.keys(t).length)return{identifiers:t,properties:e.properties||{},hackleProperties:this._getHackleProperties()}},St.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?ct.generate(window):e)||{}};var _t=St,Ot=(Rt.initialize=function(){xt.get("_hackle_hid")||It()},Rt.reInitialize=function(){It()},Rt);function Rt(){}function St(){Ot.initialize()}function At(){var e=xt.get("_hackle_id");return e||xt.get("_hackle_hid")||It()}function Nt(e){xt.set("_hackle_id",e,3650,!0)}function Ct(){xt.remove("_hackle_id",!0)}function It(){var e=function(e,t,r){var n=(e=e||{}).random||(e.rng||vt)();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 bt(n)}();return xt.set("_hackle_hid",e,3650,!0),e}function kt(e){return e&&e.Math==Math&&e}function h(e){try{return!!e()}catch(e){return!0}}Mt.get=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},Mt.set=function(e,t,r,n,o,i){var a="",s="",u="",r=(n&&(a=(n=Mt.extractDomain(document.location.hostname))?"; domain=."+n:""),r&&((n=new Date).setTime(n.getTime()+24*r*60*60*1e3),s="; expires="+n.toUTCString()),i&&(o=!0,u="; SameSite=None"),o&&(u+="; secure"),e+"="+encodeURIComponent(t)+s+"; path=/"+a+u);return document.cookie=r},Mt.remove=function(e,t){Mt.set(e,"",-1,t,!1,!1)},Mt.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]:""};var xt=Mt,c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},l=kt("object"==typeof globalThis&&globalThis)||kt("object"==typeof window&&window)||kt("object"==typeof self&&self)||kt("object"==typeof c&&c)||function(){return this}()||Function("return this")(),i={},n=!h(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),a=!h(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Pt=Function.prototype.call,o=a?Pt.bind(Pt):function(){return Pt.apply(Pt,arguments)},u={},e={}.propertyIsEnumerable,Dt=Object.getOwnPropertyDescriptor,c=Dt&&!e.call({1:2},1);function Mt(){}u.f=c?function(e){e=Dt(this,e);return!!e&&e.enumerable}:e;function jt(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function Lt(e){return er(Qt(e),8,-1)}function Ft(e){if(null==e)throw or("Can't call method on "+e);return e}function Ut(e){return ir(ar(e))}function y(e){return"function"==typeof e}function Vt(e){return"object"==typeof e?null!==e:sr(e)}function Ht(e,t){return arguments.length<2?(r=ur[e],cr(r)?r:void 0):ur[e]&&ur[e][t];var r}function Kt(e){try{return gr(e)}catch(e){return"Object"}}function zt(e){if(mr(e))return e;throw Er(wr(e)+" is not a function")}function Gt(e,t){return null==(e=e[t])?void 0:br(e)}function Bt(t,r){try{Ar(Sr,t,{value:r,configurable:!0,writable:!0})}catch(e){Sr[t]=r}return r}function v(e){return kr(Ir(e))}function qt(e){return"Symbol("+(void 0===e?"":e)+")_"+Lr(++Mr+jr,36)}function g(e){var t;return Ur(zr,e)&&(Hr||"string"==typeof zr[e])||(t="Symbol."+e,Hr&&Ur(Gr,e)?zr[e]=Gr[e]:zr[e]=(Kr&&Br?Br:qr)(t)),zr[e]}function $t(e){return e=function(e,t){if(!Xr(e)||Yr(e))return e;var r=Wr(e,Qr);if(r){if(r=$r(r,e,t=void 0===t?"default":t),!Xr(r)||Yr(r))return r;throw Jr("Can't convert object to primitive value")}return Zr(e,t=void 0===t?"number":t)}(e,"string"),en(e)?e:e+""}function Xt(e){return rn?tn.createElement(e):{}}function Yt(e){if(dn(e))return e;throw yn(hn(e)+" is not an object")}var c=a,e=Function.prototype,Wt=e.bind,Zt=e.call,Jt=c&&Wt.bind(Zt,Zt),e=c?function(e){return e&&Jt(e)}:function(e){return e&&function(){return Zt.apply(e,arguments)}},Wt=e,Qt=Wt({}.toString),er=Wt("".slice),c=h,tr=Lt,rr=Object,nr=e("".split),Wt=c(function(){return!rr("z").propertyIsEnumerable(0)})?function(e){return"String"==tr(e)?nr(e,""):rr(e)}:rr,or=TypeError,ir=Wt,ar=Ft,sr=y,ur=l,cr=y,c=e({}.isPrototypeOf),lr=Ht("navigator","userAgent")||"",m=lr,fr=l.process,w=l.Deno,fr=fr&&fr.versions||w&&w.version,w=fr&&fr.v8,fr=b=!(b=w?0<(E=w.split("."))[0]&&E[0]<4?1:+(E[0]+E[1]):b)&&m&&(!(E=m.match(/Edge\/(\d+)/))||74<=E[1])&&(E=m.match(/Chrome\/(\d+)/))?+E[1]:b,pr=fr,w=h,m=!!Object.getOwnPropertySymbols&&!w(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pr&&pr<41}),E=m&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,dr=Ht,hr=y,yr=c,vr=Object,b=E?function(e){return"symbol"==typeof e}:function(e){var t=dr("Symbol");return hr(t)&&yr(t.prototype,vr(e))},gr=String,mr=y,wr=Kt,Er=TypeError,br=zt,Tr=o,_r=y,Or=Vt,Rr=TypeError,w={exports:{}},Sr=l,Ar=Object.defineProperty,Nr=Bt,Nr=l["__core-js_shared__"]||Nr("__core-js_shared__",{}),Cr=Nr,Ir=((w.exports=function(e,t){return Cr[e]||(Cr[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"}),Ft),kr=Object,xr=v,Pr=e({}.hasOwnProperty),Dr=Object.hasOwn||function(e,t){return Pr(xr(e),t)},T=e,Mr=0,jr=Math.random(),Lr=T(1..toString),T=l,Fr=w.exports,Ur=Dr,Vr=qt,Hr=m,Kr=E,zr=Fr("wks"),Gr=T.Symbol,Br=Gr&&Gr.for,qr=Kr?Gr:Gr&&Gr.withoutSetter||Vr,$r=o,Xr=Vt,Yr=b,Wr=Gt,Zr=function(e,t){var r,n;if("string"===t&&_r(r=e.toString)&&!Or(n=Tr(r,e)))return n;if(_r(r=e.valueOf)&&!Or(n=Tr(r,e)))return n;if("string"!==t&&_r(r=e.toString)&&!Or(n=Tr(r,e)))return n;throw Rr("Can't convert object to primitive value")},Jr=TypeError,Qr=g("toPrimitive"),en=b,m=Vt,tn=l.document,rn=m(tn)&&m(tn.createElement),nn=Xt,E=!n&&!h(function(){return 7!=Object.defineProperty(nn("div"),"a",{get:function(){return 7}}).a}),on=o,an=u,sn=jt,un=Ut,cn=$t,ln=Dr,fn=E,pn=Object.getOwnPropertyDescriptor,Fr=(i.f=n?pn:function(e,t){if(e=un(e),t=cn(t),fn)try{return pn(e,t)}catch(e){}if(ln(e,t))return sn(!on(an.f,e,t),e[t])},{}),T=n&&h(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),dn=Vt,hn=String,yn=TypeError,vn=E,gn=Yt,mn=$t,wn=TypeError,En=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,Tn=(Fr.f=n?T?function(e,t,r){var n;return gn(e),t=mn(t),gn(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=bn(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}),En(e,t,r)}:En:function(e,t,r){if(gn(e),t=mn(t),gn(r),vn)try{return En(e,t,r)}catch(e){}if("get"in r||"set"in r)throw wn("Accessors not supported");return"value"in r&&(e[t]=r.value),e},Fr),_n=jt,Vr=n?function(e,t,r){return Tn.f(e,t,_n(1,r))}:function(e,t,r){return e[t]=r,e},b={exports:{}},m=n,u=Dr,E=Function.prototype,_=m&&Object.getOwnPropertyDescriptor,u=u(E,"name"),u={EXISTS:u,PROPER:u&&"something"===function(){}.name,CONFIGURABLE:u&&(!m||_(E,"name").configurable)},m=y,_=Nr,On=e(Function.toString);m(_.inspectSource)||(_.inspectSource=function(e){return On(e)});function Rn(e){return zn[e]||(zn[e]=Kn(e))}function Sn(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(ao(r)&&uo(r,i,n),n.global)o?e[t]=r:co(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:so.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function An(e){return(e=+e)!=e||0==e?0:po(e)}function Nn(e,t){return(e=ho(e))<0?yo(e+t,0):vo(e,t)}function O(e){return 0<(e=e.length)?mo(go(e),9007199254740991):0}function Cn(s){return function(e,t,r){var n,o=wo(e),i=bo(o),a=Eo(r,i);if(s&&t!=t){for(;a<i;)if((n=o[a++])!=n)return!0}else for(;a<i;a++)if((s||a in o)&&o[a]===t)return s||a||0;return!s&&-1}}function In(e,t){var r,n=_o(e),o=0,i=[];for(r in n)!To(Ro,r)&&To(n,r)&&So(i,r);for(;t.length>o;)!To(n,r=t[o++])||~Oo(i,r)||So(i,r);return i}function kn(e,t,r){for(var n=Do(t),o=jo.f,i=Mo.f,a=0;a<n.length;a++){var s=n[a];Po(e,s)||r&&Po(r,s)||o(e,s,i(t,s))}}function xn(e,t){return(e=Ho[Vo(e)])==zo||e!=Ko&&(Fo(t)?Lo(t):!!t)}function R(e,t){var r,n,o,i,a=e.target,s=e.global,u=e.stat;if(r=s?Go:u?Go[a]||Xo(a,{}):(Go[a]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(i=Bo(r,n))&&i.value:r[n],!Wo(s?n:a+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;Yo(o,i)}(e.sham||i&&i.sham)&&qo(o,"sham",!0),$o(r,n,o,e)}}var Pn,Dn,Mn,jn,Ln,Fn,Un,Vn,E=_.inspectSource,m=y,_=E,Hn=l.WeakMap,m=m(Hn)&&/native code/.test(_(Hn)),_=w.exports,Kn=qt,zn=_("keys"),Hn={},w=e,Gn=Vt,Bn=Vr,qn=Dr,_=Nr,S=Rn,$n=Hn,Xn=l.TypeError,Yn=l.WeakMap,m=(Un=m||_.state?(Pn=_.state||(_.state=new Yn),Dn=w(Pn.get),Mn=w(Pn.has),jn=w(Pn.set),Ln=function(e,t){if(Mn(Pn,e))throw new Xn("Object already initialized");return t.facade=e,jn(Pn,e,t),t},Fn=function(e){return Dn(Pn,e)||{}},function(e){return Mn(Pn,e)}):($n[Vn=S("state")]=!0,Ln=function(e,t){if(qn(e,Vn))throw new Xn("Object already initialized");return t.facade=e,Bn(e,Vn,t),t},Fn=function(e){return qn(e,Vn)?e[Vn]:{}},function(e){return qn(e,Vn)}),{set:Ln,get:Fn,has:Un,enforce:function(e){return Un(e)?Fn(e):Ln(e,{})},getterFor:function(t){return function(e){if(Gn(e)&&(e=Fn(e)).type===t)return e;throw Xn("Incompatible receiver, "+t+" required")}}}),_=h,Wn=y,Zn=Dr,Jn=n,Qn=u.CONFIGURABLE,eo=E,to=m.enforce,ro=m.get,no=Object.defineProperty,oo=Jn&&!_(function(){return 8!==no(function(){},"length",{value:8}).length}),io=String(String).split("String"),Yn=b.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),(!Zn(e,"name")||Qn&&e.name!==t)&&(Jn?no(e,"name",{value:t,configurable:!0}):e.name=t),oo&&r&&Zn(r,"arity")&&e.length!==r.arity&&no(e,"length",{value:r.arity});try{r&&Zn(r,"constructor")&&r.constructor?Jn&&no(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=to(e);return Zn(r,"source")||(r.source=io.join("string"==typeof t?t:"")),e},ao=(Function.prototype.toString=Yn(function(){return Wn(this)&&ro(this).source||eo(this)},"toString"),y),so=Fr,uo=b.exports,co=Bt,w={},lo=Math.ceil,fo=Math.floor,po=Math.trunc||function(e){e=+e;return(0<e?fo:lo)(e)},ho=An,yo=Math.max,vo=Math.min,go=An,mo=Math.min,wo=Ut,Eo=Nn,bo=O,$n={includes:Cn(!0),indexOf:Cn(!1)},To=Dr,_o=Ut,Oo=$n.indexOf,Ro=Hn,So=e([].push),S=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ao=In,No=S.concat("length","prototype"),_=(w.f=Object.getOwnPropertyNames||function(e){return Ao(e,No)},{}),Yn=(_.f=Object.getOwnPropertySymbols,Ht),Co=w,Io=_,ko=Yt,xo=e([].concat),_=Yn("Reflect","ownKeys")||function(e){var t=Co.f(ko(e)),r=Io.f;return r?xo(t,r(e)):t},Po=Dr,Do=_,Mo=i,jo=Fr,Lo=h,Fo=y,Uo=/#|\.prototype\./,Vo=xn.normalize=function(e){return String(e).replace(Uo,".").toLowerCase()},Ho=xn.data={},Ko=xn.NATIVE="N",zo=xn.POLYFILL="P",Yn=xn,Go=l,Bo=i.f,qo=Vr,$o=Sn,Xo=Bt,Yo=kn,Wo=Yn,_=!h(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Zo=Dr,Jo=y,Qo=v,ei=Rn("IE_PROTO"),ti=Object,ri=ti.prototype,_=_?ti.getPrototypeOf:function(e){e=Qo(e);if(Zo(e,ei))return e[ei];var t=e.constructor;return Jo(t)&&e instanceof t?t.prototype:e instanceof ti?ri:null},ni=y,oi=String,ii=TypeError,ai=e,si=Yt,ui=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=ai(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return si(e),function(e){if("object"==typeof e||ni(e))return;throw ii("Can't set "+oi(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),ci={},li=In,fi=S,A=Object.keys||function(e){return li(e,fi)},pi=Fr,di=Yt,hi=Ut,yi=A;ci.f=n&&!T?Object.defineProperties:function(e,t){di(e);for(var r,n=hi(t),o=yi(t),i=o.length,a=0;a<i;)pi.f(e,r=o[a++],n[r]);return e};function vi(){}function gi(e){e.write(Di("")),e.close();var t=e.parentWindow.Object;return e=null,t}function mi(e,t){return Ki(e),void 0===t?e:zi?Gi(e,t):function(){return e.apply(t,arguments)}}function wi(e){return void 0!==e&&(Bi.Array===e||$i[qi]===e)}function Ei(e){if(null!=e)return ea(e,ra)||ea(e,"@@iterator")||ta[Qi(e)]}function bi(e,t){if(t=arguments.length<2?sa(e):t,oa(t))return ia(na(t,e));throw ua(aa(e)+" is not iterable")}function Ti(e,t,r){var n,o;la(e);try{if(!(n=fa(e,"return"))){if("throw"===t)throw r;return r}n=ca(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return la(n),r}function _i(e,t){this.stopped=e,this.result=t}function Oi(e,t,r){function n(e){return i&&ba(i,"normal",e),new _i(!0,e)}function o(e){return p?(ha(e),y?v(e[0],e[1],n):v(e[0],e[1])):y?v(e,n):v(e)}var i,a,s,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=pa(t,f);if(d)i=e.iterator;else if(h)i=e;else{if(!(r=Ea(e)))throw Ta(ya(e)+" is not iterable");if(va(r)){for(a=0,s=ga(e);a<s;a++)if((u=o(e[a]))&&ma(_a,u))return u;return new _i(!1)}i=wa(e,r)}for(c=(d?e:i).next;!(l=da(c,i)).done;){try{u=o(l.value)}catch(e){ba(i,"throw",e)}if("object"==typeof u&&u&&ma(_a,u))return u}return new _i(!1)}function Ri(e){if("Symbol"===Oa(e))throw TypeError("Cannot convert a Symbol value to a string");return Ra(e)}function Si(e,t){var r,n=2<arguments.length?arguments[2]:void 0,o=Ca(Va,this);return ka?r=ka(new Fa,o?Ia(this):Va):(r=o?this:Pa(Va),Da(r,La,"Error")),void 0!==t&&Da(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:Sa(e)}(t)),ja&&Da(r,"stack",function(e,t){if(Ui&&"string"==typeof e&&!ji.prepareStackTrace)for(;t--;)e=Li(e,Fi,"");return e}(r.stack,1)),o=r,Vi(t=n)&&"cause"in t&&Hi(o,"cause",t.cause),Ma(e,Ua,{that:n=[]}),Da(r,"errors",n),r}var Ai,A=Ht("document","documentElement"),Ni=Yt,Ci=ci,Ii=S,T=Hn,ki=A,xi=Xt,Pi=Rn("IE_PROTO"),Di=function(e){return"<script>"+e+"<\/script>"},Mi=function(){try{Ai=new ActiveXObject("htmlfile")}catch(e){}var e,t;Mi="undefined"==typeof document||document.domain&&Ai?gi(Ai):((t=xi("iframe")).style.display="none",ki.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Di("document.F=Object")),e.close(),e.F);for(var r=Ii.length;r--;)delete Mi.prototype[Ii[r]];return Mi()},ci=(T[Pi]=!0,Object.create||function(e,t){var r;return null!==e?(vi.prototype=Ni(e),r=new vi,vi.prototype=null,r[Pi]=e):r=Mi(),void 0===t?r:Ci.f(r,t)}),ji=Error,Li=e("".replace),S=String(ji("zxcasd").stack),Fi=/\n\s*at [^:]*:[^\n]*/,Ui=Fi.test(S),Vi=Vt,Hi=Vr,Ki=zt,zi=a,Gi=e(e.bind),T={},Bi=T,qi=g("iterator"),$i=Array.prototype,S={},S=(S[g("toStringTag")]="z","[object z]"===String(S)),N=S,Xi=y,Yi=Lt,Wi=g("toStringTag"),Zi=Object,Ji="Arguments"==Yi(function(){return arguments}()),N=N?Yi: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=Zi(e),Wi))?t:Ji?Yi(e):"Object"==(t=Yi(e))&&Xi(e.callee)?"Arguments":t},Qi=N,ea=Gt,ta=T,ra=g("iterator"),na=o,oa=zt,ia=Yt,aa=Kt,sa=Ei,ua=TypeError,ca=o,la=Yt,fa=Gt,pa=mi,da=o,ha=Yt,ya=Kt,va=wi,ga=O,ma=c,wa=bi,Ea=Ei,ba=Ti,Ta=TypeError,_a=_i.prototype,Oa=N,Ra=String,Sa=Ri,Aa=jt,C=!h(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Aa(1,7)),7!==e.stack)}),Na=R,Ca=c,Ia=_,ka=ui,xa=kn,Pa=ci,Da=Vr,I=jt,Ma=Oi,ja=C,La=g("toStringTag"),Fa=Error,Ua=[].push,Va=(ka?ka(Si,Fa):xa(Si,Fa,{name:!0}),Si.prototype=Pa(Fa.prototype,{constructor:I(1,Si),message:I(1,""),name:I(1,"AggregateError")})),C=(Na({global:!0,constructor:!0,arity:2},{AggregateError:Si}),g),xa=ci,I=Fr.f,Ha=C("unscopables"),Ka=Array.prototype;null==Ka[Ha]&&I(Ka,Ha,{configurable:!0,value:xa(null)});function k(e){Ka[Ha][e]=!0}var za,Na=h,C=y,I=_,xa=Sn,Ga=g("iterator"),x=!1;[].keys&&("next"in(Xa=[].keys())?(I=I(I(Xa)))!==Object.prototype&&(za=I):x=!0);function Ba(e,t,r){(e=e&&!r?e.prototype:e)&&!Wa(e,Za)&&Ya(e,Za,{configurable:!0,value:t})}function qa(){return this}function $a(e,t,r,n,o,i,a){var s=r,u=t,c=void 0;function l(e){if(e===o&&v)return v;if(!vs&&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",s.prototype=Qa(Ja,{next:es(+!c,n)}),ts(s,u,!1),rs[u]=ns;var f,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[gs]||h["@@iterator"]||o&&h[o],v=!vs&&y||l(o);if((n="Array"==t&&h.entries||y)&&(s=ss(n.call(new e)))!==Object.prototype&&s.next&&(ss(s)!==ys&&(us?us(s,ys):as(s[gs])||fs(s,gs,qa)),cs(s,c,!0)),ds&&"values"==o&&y&&"values"!==y.name&&(hs?ls(h,"name","values"):(d=!0,v=function(){return is(y,this)})),o)if(f={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(p in f)!vs&&!d&&p in h||fs(h,p,f[p]);else os({target:t,proto:!0,forced:vs||d},f);return h[gs]!==v&&fs(h,gs,v,{name:o}),ps[t]=v,f}C((za=null==za||Na(function(){var e={};return za[Ga].call(e)!==e})?{}:za)[Ga])||xa(za,Ga,function(){return this});var Xa={IteratorPrototype:za,BUGGY_SAFARI_ITERATORS:x},Ya=Fr.f,Wa=Dr,Za=g("toStringTag"),Ja=Xa.IteratorPrototype,Qa=ci,es=jt,ts=Ba,rs=T,ns=function(){return this},os=R,is=o,as=y,ss=_,us=ui,cs=Ba,ls=Vr,fs=Sn,ps=T,ds=u.PROPER,hs=u.CONFIGURABLE,ys=Xa.IteratorPrototype,vs=Xa.BUGGY_SAFARI_ITERATORS,gs=g("iterator"),ms=Ut,I=k,C=T,Na=m,xa=Fr.f,x=$a,u=n,ws=Na.set,Es=Na.getterFor("Array Iterator"),Xa=x(Array,"Array",function(e,t){ws(this,{type:"Array Iterator",target:ms(e),index:0,kind:t})},function(){var e=Es(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"),T=C.Arguments=C.Array;if(I("keys"),I("values"),I("entries"),u&&"values"!==T.name)try{xa(T,"name",{value:"values"})}catch(Am){}function bs(e){var e=As(e),t=Ns.f;Cs&&e&&!e[Is]&&t(e,Is,{configurable:!0,get:function(){return this}})}function Ts(e,t){if(ks(t,e))return e;throw xs("Incorrect invocation")}function _s(){}function Os(e){if(!Ps(e))return!1;try{return Ls(_s,js,e),!0}catch(e){return!1}}function Rs(e){if(!Ps(e))return!1;switch(Ds(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Vs||!!Us(Fs,Ms(e))}catch(e){return!0}}var Ss=N,Na=(S||Sn(Object.prototype,"toString",S?{}.toString:function(){return"[object "+Ss(this)+"]"},{unsafe:!0}),"process"==Lt(l.process)),As=Ht,Ns=Fr,Cs=n,Is=g("species"),ks=c,xs=TypeError,x=e,C=h,Ps=y,Ds=N,Ms=E,js=[],Ls=Ht("Reflect","construct"),Fs=/^\s*(?:class|function)\b/,Us=x(Fs.exec),Vs=!Fs.exec(_s);Rs.sham=!0;function Hs(e,t){var r,e=$s(e).constructor;if(void 0===e||null==(r=$s(e)[Xs]))return t;if(Gs(e=r))return e;throw qs(Bs(e)+" is not a constructor")}var Ks,zs,I=!Ls||C(function(){var e;return Os(Os.call)||!Os(Object)||!Os(function(){e=!0})||e})?Rs:Os,Gs=I,Bs=Kt,qs=TypeError,$s=Yt,Xs=g("species"),u=Function.prototype,Ys=u.apply,Ws=u.call,xa="object"==typeof Reflect&&Reflect.apply||(a?Ws.bind(Ys):function(){return Ws.apply(Ys,arguments)}),T=e([].slice),Zs=TypeError,S=/(?:ipad|iphone|ipod).*applewebkit/i.test(lr),Js=l,Qs=xa,c=mi,eu=y,tu=Dr,N=h,ru=A,nu=T,ou=Xt,x=S,C=Na,u=Js.setImmediate,a=Js.clearImmediate,iu=Js.process,au=Js.Dispatch,su=Js.Function,A=Js.MessageChannel,uu=Js.String,cu=0,lu={};try{Ks=Js.location}catch(Am){}function fu(e){return function(){hu(e)}}function pu(e){hu(e.data)}function du(e){Js.postMessage(uu(e),Ks.protocol+"//"+Ks.host)}var hu=function(e){var t;tu(lu,e)&&(t=lu[e],delete lu[e],t())};u&&a||(u=function(e){var t=arguments.length,r=1;if(t<r)throw Zs("Not enough arguments");var n=eu(e)?e:su(e),o=nu(arguments,1);return lu[++cu]=function(){Qs(n,void 0,o)},zs(cu),cu},a=function(e){delete lu[e]},C?zs=function(e){iu.nextTick(fu(e))}:au&&au.now?zs=function(e){au.now(fu(e))}:A&&!x?(x=(C=new A).port2,C.port1.onmessage=pu,zs=c(x.postMessage,x)):Js.addEventListener&&eu(Js.postMessage)&&!Js.importScripts&&Ks&&"file:"!==Ks.protocol&&!N(du)?(zs=du,Js.addEventListener("message",pu,!1)):zs="onreadystatechange"in ou("script")?function(e){ru.appendChild(ou("script")).onreadystatechange=function(){ru.removeChild(this),hu(e)}}:function(e){setTimeout(fu(e),0)});function yu(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function vu(){this.head=null,this.tail=null}function gu(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=Lu(r),this.reject=Lu(n)}var mu,wu,Eu,bu,Tu,_u,Ou,A={set:u,clear:a},C=l,c=/ipad|iphone|ipod/i.test(lr)&&void 0!==C.Pebble,x=/web0s(?!.*chrome)/i.test(lr),N=l,u=mi,a=i.f,Ru=A.set,C=S,i=c,S=x,Su=Na,c=N.MutationObserver||N.WebKitMutationObserver,x=N.document,Au=N.process,P=N.Promise,a=a(N,"queueMicrotask"),a=a&&a.value,S=(a||(mu=function(){var e,t;for(Su&&(e=Au.domain)&&e.exit();wu;){t=wu.fn,wu=wu.next;try{t()}catch(e){throw wu?bu():Eu=void 0,e}}Eu=void 0,e&&e.enter()},bu=C||Su||S||!c||!x?!i&&P&&P.resolve?((C=P.resolve(void 0)).constructor=P,Ou=u(C.then,C),function(){Ou(mu)}):Su?function(){Au.nextTick(mu)}:(Ru=u(Ru,N),function(){Ru(mu)}):(Tu=!0,_u=x.createTextNode(""),new c(mu).observe(_u,{characterData:!0}),function(){_u.data=Tu=!Tu})),a||function(e){e={fn:e,next:void 0};Eu&&(Eu.next=e),wu||(wu=e,bu()),Eu=e}),Nu=l,i=(vu.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}},vu),P=l.Promise,C="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,u=!C&&!Na&&"object"==typeof window&&"object"==typeof document,N=l,Cu=P,x=y,c=Yn,Iu=E,a=g,ku=u,xu=C,Pu=fr,Du=(Cu&&Cu.prototype,a("species")),Mu=!1,ju=x(N.PromiseRejectionEvent),E={CONSTRUCTOR:c("Promise",function(){var e=Iu(Cu),t=e!==String(Cu);if(!t&&66===Pu)return!0;if(!Pu||Pu<51||!/native code/.test(e)){var e=new Cu(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[Du]=r,!(Mu=e.then(function(){})instanceof r))return!0}return!t&&(ku||xu)&&!ju}),REJECTION_EVENT:ju,SUBCLASSING:Mu},u={},Lu=zt;u.f=function(e){return new gu(e)};function Fu(e,t){var r,n,o,i,a=t.value,s=1==t.state,u=s?e.ok:e.fail,c=e.resolve,l=e.reject,f=e.domain;try{u?(s||(2===t.rejection&&(i=t,Gu(Wu,zu,function(){var e=i.facade;Ku?cc.emit("rejectionHandled",e):yc("rejectionhandled",e,i.value)})),t.rejection=1),!0===u?r=a:(f&&f.enter(),r=u(a),f&&(f.exit(),o=!0)),r===e.promise?l(sc("Promise-chain cycle")):(n=dc(r))?Gu(n,r,c,l):c(r)):l(a)}catch(e){f&&!o&&f.exit(),l(e)}}var Uu,Vu,Hu,C=R,Ku=Na,zu=l,Gu=o,a=Sn,x=ui,N=Ba,c=bs,Bu=zt,qu=y,$u=Vt,Xu=Ts,Yu=Hs,Wu=A.set,Zu=S,Ju=yu,Qu=i,A=m,S=P,i=u,ec=E.CONSTRUCTOR,tc=E.REJECTION_EVENT,rc=E.SUBCLASSING,nc=A.getterFor("Promise"),oc=A.set,A=S&&S.prototype,ic=S,ac=A,sc=zu.TypeError,uc=zu.document,cc=zu.process,lc=i.f,fc=lc,pc=!!(uc&&uc.createEvent&&zu.dispatchEvent),dc=function(e){var t;return!(!$u(e)||!qu(t=e.then))&&t},hc=function(r,o){r.notified||(r.notified=!0,Zu(function(){for(var e,n,t=r.reactions;e=t.get();)Fu(e,r);r.notified=!1,o&&!r.rejection&&(n=r,Gu(Wu,zu,function(){var e,t=n.facade,r=n.value;if(vc(n)&&(e=Ju(function(){Ku?cc.emit("unhandledRejection",r,t):yc("unhandledrejection",t,r)}),n.rejection=Ku||vc(n)?2:1,e.error))throw e.value}))}))},yc=function(e,t,r){var n;pc?((n=uc.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),zu.dispatchEvent(n)):n={promise:t,reason:r},!tc&&(t=zu["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=Nu.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},vc=function(e){return 1!==e.rejection&&!e.parent},gc=function(t,r,n){return function(e){t(r,e,n)}},mc=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,hc(e,!0))},wc=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw sc("Promise can't be resolved itself");var n=dc(e);n?Zu(function(){var t={done:!1};try{Gu(n,e,gc(wc,t,r),gc(mc,t,r))}catch(e){mc(t,e,r)}}):(r.value=e,r.state=1,hc(r,!1))}catch(e){mc({done:!1},e,r)}}};if(ec&&(ac=(ic=function(e){Xu(this,ac),Bu(e),Gu(Uu,this);var t=nc(this);try{e(gc(wc,t),gc(mc,t))}catch(e){mc(t,e)}}).prototype,(Uu=function(e){oc(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new Qu,rejection:!1,state:0,value:void 0})}).prototype=a(ac,"then",function(e,t){var r=nc(this),n=lc(Yu(this,ic));return r.parent=!0,n.ok=!qu(e)||e,n.fail=qu(t)&&t,n.domain=Ku?cc.domain:void 0,0==r.state?r.reactions.add(n):Zu(function(){Fu(n,r)}),n.promise}),Vu=function(){var e=new Uu,t=nc(e);this.promise=e,this.resolve=gc(wc,t),this.reject=gc(mc,t)},i.f=lc=function(e){return e===ic||void 0===e?new Vu:fc(e)},qu(S)&&A!==Object.prototype)){Hu=A.then,rc||a(A,"then",function(e,t){var r=this;return new ic(function(e,t){Gu(Hu,r,e,t)}).then(e,t)},{unsafe:!0});try{delete A.constructor}catch(Am){}x&&x(A,ac)}C({global:!0,constructor:!0,wrap:!0,forced:ec},{Promise:ic}),N(ic,"Promise",!1),c("Promise");var Ec=g("iterator"),bc=!1;try{var Tc=0,_c={next:function(){return{done:!!Tc++}},return:function(){bc=!0}};_c[Ec]=function(){return this},Array.from(_c,function(){throw 2})}catch(Am){}function Oc(e,t){if(!t&&!bc)return!1;var r=!1;try{var n={};n[Ec]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function Rc(e,t){return Kc(e),zc(t)&&t.constructor===e?t:((0,(e=Gc.f(e)).resolve)(t),e.promise)}function Sc(o){return function(e,t){var r,e=cl(ll(e)),t=ul(t),n=e.length;return t<0||n<=t?o?"":void 0:(r=pl(e,t))<55296||56319<r||t+1===n||(n=pl(e,t+1))<56320||57343<n?o?fl(e,t):r:o?dl(e,t,t+2):n-56320+(r-55296<<10)+65536}}function Ac(e,t){if(e){if(e[Tl]!==Ol)try{bl(e,Tl,Ol)}catch(t){e[Tl]=Ol}if(e[_l]||bl(e,_l,t),wl[t])for(var r in El)if(e[r]!==El[r])try{bl(e,r,El[r])}catch(t){e[r]=El[r]}}}var Nc,Cc=P,i=E.CONSTRUCTOR||!Oc(function(e){Cc.all(e).then(void 0,function(){})}),Ic=o,kc=zt,xc=u,Pc=yu,Dc=Oi,S=(R({target:"Promise",stat:!0,forced:i},{all:function(e){var s=this,t=xc.f(s),u=t.resolve,c=t.reject,r=Pc(function(){var n=kc(s.resolve),o=[],i=0,a=1;Dc(e,function(e){var t=i++,r=!1;a++,Ic(n,s,e).then(function(e){r||(r=!0,o[t]=e,--a||u(o))},c)}),--a||u(o)});return r.error&&c(r.value),t.promise}}),R),rc=P,a=Ht,x=y,A=Sn,C=rc&&rc.prototype,Mc=(S({target:"Promise",proto:!0,forced:E.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),x(rc)&&(ec=a("Promise").prototype.catch,C.catch!==ec&&A(C,"catch",ec,{unsafe:!0})),o),jc=zt,Lc=u,Fc=yu,Uc=Oi,Vc=(R({target:"Promise",stat:!0,forced:i},{race:function(e){var r=this,n=Lc.f(r),o=n.reject,t=Fc(function(){var t=jc(r.resolve);Uc(e,function(e){Mc(t,r,e).then(n.resolve,o)})});return t.error&&o(t.value),n.promise}}),o),Hc=u,Kc=(R({target:"Promise",stat:!0,forced:E.CONSTRUCTOR},{reject:function(e){var t=Hc.f(this);return Vc(t.reject,void 0,e),t.promise}}),Yt),zc=Vt,Gc=u,N=R,c=E.CONSTRUCTOR,Bc=Rc,qc=(Ht("Promise"),N({target:"Promise",stat:!0,forced:c},{resolve:function(e){return Bc(this,e)}}),o),$c=zt,Xc=u,Yc=yu,Wc=Oi,Zc=(R({target:"Promise",stat:!0},{allSettled:function(e){var s=this,t=Xc.f(s),u=t.resolve,r=t.reject,n=Yc(function(){var n=$c(s.resolve),o=[],i=0,a=1;Wc(e,function(e){var t=i++,r=!1;a++,qc(n,s,e).then(function(e){r||(r=!0,o[t]={status:"fulfilled",value:e},--a||u(o))},function(e){r||(r=!0,o[t]={status:"rejected",reason:e},--a||u(o))})}),--a||u(o)});return n.error&&r(n.value),t.promise}}),o),Jc=zt,Qc=Ht,el=u,tl=yu,rl=Oi,_c=(R({target:"Promise",stat:!0},{any:function(e){var u=this,c=Qc("AggregateError"),t=el.f(u),l=t.resolve,f=t.reject,r=tl(function(){var n=Jc(u.resolve),o=[],i=0,a=1,s=!1;rl(e,function(e){var t=i++,r=!1;a++,Zc(n,u,e).then(function(e){r||s||(s=!0,l(e))},function(e){r||s||(r=!0,o[t]=e,--a||f(new c(o,"No one promise resolved")))})}),--a||f(new c(o,"No one promise resolved"))});return r.error&&f(r.value),t.promise}}),R),S=P,x=h,nl=Ht,ol=y,il=Hs,al=Rc,rc=Sn,sl=S&&S.prototype,A=(_c({target:"Promise",proto:!0,real:!0,forced:!!S&&x(function(){sl.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=il(this,nl("Promise")),e=ol(t);return this.then(e?function(e){return al(r,t()).then(function(){return e})}:t,e?function(e){return al(r,t()).then(function(){throw e})}:t)}}),ol(S)&&(a=nl("Promise").prototype.finally,sl.finally!==a&&rc(sl,"finally",a,{unsafe:!0})),e),ul=An,cl=Ri,ll=Ft,fl=A("".charAt),pl=A("".charCodeAt),dl=A("".slice),hl=(Sc(!1),Sc(!0)),yl=Ri,C=m,ec=$a,vl=C.set,gl=C.getterFor("String Iterator"),i=(ec(String,"String",function(e){vl(this,{type:"String Iterator",string:yl(e),index:0})},function(){var e=gl(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=hl(t,r),e.index+=t.length,{value:t,done:!1})}),l),E=(i.Promise,Xt("span").classList),N=E&&E.constructor&&E.constructor.prototype,c=N===Object.prototype?void 0:N,ml=l,wl={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},P=c,El=Xa,bl=Vr,_c=g,Tl=_c("iterator"),_l=_c("toStringTag"),Ol=El.values;for(Nc in wl)Ac(ml[Nc]&&ml[Nc].prototype,Nc);Ac(P,"DOMTokenList");function Rl(e,t,r){(t=Wl(t))in e?Zl.f(e,t,Jl(0,r)):e[t]=r}function Sl(e){if(9007199254740991<e)throw gf("Maximum allowed index exceeded");return e}function Al(e,t){return mf(e=e)&&(r=e.constructor,(wf(r)&&(r===Tf||mf(r.prototype))||Ef(r)&&null===(r=r[bf]))&&(r=void 0)),new(void 0===r?Tf:r)(0===t?0:t);var r}function Nl(t){return 51<=Of||!_f(function(){var e=[];return(e.constructor={})[Rf]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function Cl(e,t){if(!delete e[t])throw Mf("Cannot delete property "+Df(t)+" of "+Df(e))}function Il(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,a=zf(e),s=Kf(a),u=Hf(t,r),c=Gf(s),l=0,t=n||Bf,f=d?t(e,c):h||m?t(e,0):void 0;l<c;l++)if((w||l in s)&&(i=u(o=s[l],l,a),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:qf(f,o)}else switch(p){case 4:return!1;case 7:qf(f,o)}return g?-1:y||v?v:f}}function kl(e,t){var r=[][e];return!!r&&$f(function(){r.call(null,t||function(){return 1},1)})}function xl(u){var c=1==u;return function(e,t,r){for(var n,o=ip(e),i=op(o),a=np(t,r),s=ap(i);0<s--;)if(a(n=i[s],s,o))switch(u){case 0:return n;case 1:return s}return c?-1:void 0}}function Pl(e,t,r,n,o,i,a,s){for(var u,c,l=o,f=0,p=!!a&&pp(a,s);f<n;)f in r&&(u=p?p(r[f],f,t):r[f],0<i&&cp(u)?(c=lp(u),l=Pl(e,t,u,c,l,i-1)-1):(fp(l+1),e[l]=u),l++),f++;return l}function Dl(c){return function(e,t,r,n){Hp(t);var o=Kp(e),i=zp(o),a=Gp(o),s=c?a-1:0,u=c?-1:1;if(r<2)for(;;){if(s in i){n=i[s],s+=u;break}if(s+=u,c?s<0:a<=s)throw Bp("Reduce of empty array with no initial value")}for(;c?0<=s:s<a;s+=u)s in i&&(n=t(n,i[s],s,o));return n}}function Ml(e,t,r){for(var n=cd(e),o=ud(t,n),i=ud(void 0===r?n:r,n),a=fd(pd(i-o,0)),s=0;o<i;o++,s++)ld(a,s,e[o]);return a.length=s,a}function jl(e,t){var r=e.length,n=hd(r/2);if(r<8){for(var o,i,a=e,s=t,u=a.length,c=1;c<u;){for(o=a[i=c];i&&0<s(a[i-1],o);)a[i]=a[--i];i!==c++&&(a[i]=o)}return a}for(var l=e,f=jl(dd(e,0,n),t),p=jl(dd(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 Ll(e){rh(e,uh,{value:{objectID:"O"+ch++,weakData:{}}})}function Fl(e,t,r){for(var n in t)wh(e,n,t[n],r);return e}var Ul,Vl,Hl,Kl,zl,Gl,Bl,ql=u,$l=yu,Xl=(R({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=ql.f(this),e=$l(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),Yt),Yl=Ti,Wl=$t,Zl=Fr,Jl=jt,Ql=mi,ef=o,tf=v,rf=wi,nf=I,of=O,af=Rl,sf=bi,uf=Ei,cf=Array,lf=(R({target:"Array",stat:!0,forced:!Oc(function(e){Array.from(e)})},{from:function(e){var t=tf(e),e=nf(this),r=arguments.length,n=1<r?arguments[1]:void 0,o=void 0!==n;o&&(n=Ql(n,2<r?arguments[2]:void 0));var i,a,s,u,c,l,r=uf(t),f=0;if(!r||this===cf&&rf(r))for(i=of(t),a=e?new this(i):cf(i);f<i;f++)l=o?n(t[f],f):t[f],af(a,f,l);else for(c=(u=sf(t,r)).next,a=e?new this:[];!(s=ef(c,u)).done;f++)l=o?function(e,t,r,n){try{return n?t(Xl(r)[0],r[1]):t(r)}catch(t){Yl(e,"throw",t)}}(u,n,[s.value,f],!0):s.value,af(a,f,l);return a.length=f,a}}),Lt),x=Array.isArray||function(e){return"Array"==lf(e)},ff=(R({target:"Array",stat:!0},{isArray:x}),I),pf=Rl,df=Array,hf=(R({target:"Array",stat:!0,forced:h(function(){function e(){}return!(df.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(ff(this)?this:df)(t);e<t;)pf(r,e,arguments[e++]);return r.length=t,r}}),v),yf=O,vf=An,S=k,gf=(R({target:"Array",proto:!0},{at:function(e){var t=hf(this),r=yf(t),e=vf(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),S("at"),TypeError),mf=x,wf=I,Ef=Vt,bf=g("species"),Tf=Array,_f=h,Of=fr,Rf=g("species"),rc=R,a=h,Sf=x,Af=Vt,Nf=v,Cf=O,If=Sl,kf=Rl,xf=Al,A=Nl,C=fr,Pf=g("isConcatSpreadable"),ec=51<=C||!a(function(){var e=[];return e[Pf]=!1,e.concat()[0]!==e}),E=A("concat"),Df=(rc({target:"Array",proto:!0,arity:1,forced:!ec||!E},{concat:function(e){for(var t,r,n,o=Nf(this),i=xf(o,0),a=0,s=-1,u=arguments.length;s<u;s++)if(function(e){if(!Af(e))return!1;var t=e[Pf];return void 0!==t?!!t:Sf(e)}(n=-1===s?o:arguments[s]))for(r=Cf(n),If(a+r),t=0;t<r;t++,a++)t in n&&kf(i,a,n[t]);else If(a+1),kf(i,a++,n);return i.length=a,i}}),Kt),Mf=TypeError,jf=v,Lf=Nn,Ff=O,Uf=Cl,Vf=Math.min,N=k,Hf=(R({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=jf(this),n=Ff(r),o=Lf(e,n),i=Lf(t,n),e=2<arguments.length?arguments[2]:void 0,a=Vf((void 0===e?n:Lf(e,n))-i,n-o),s=1;for(i<o&&o<i+a&&(s=-1,i+=a-1,o+=a-1);0<a--;)i in r?r[o]=r[i]:Uf(r,o),o+=s,i+=s;return r}}),N("copyWithin"),mi),Kf=Wt,zf=v,Gf=O,Bf=Al,qf=e([].push),c={forEach:Il(0),map:Il(1),filter:Il(2),some:Il(3),every:Il(4),find:Il(5),findIndex:Il(6),filterReject:Il(7)},$f=h,Xf=c.every,Yf=(R({target:"Array",proto:!0,forced:!kl("every")},{every:function(e){return Xf(this,e,1<arguments.length?arguments[1]:void 0)}}),v),Wf=Nn,Zf=O,Xa=k,Jf=(R({target:"Array",proto:!0},{fill:function(e){for(var t=Yf(this),r=Zf(t),n=arguments.length,o=Wf(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,i=void 0===n?r:Wf(n,r);o<i;)t[o++]=e;return t}}),Xa("fill"),c.filter),Vr=(R({target:"Array",proto:!0,forced:!Nl("filter")},{filter:function(e){return Jf(this,e,1<arguments.length?arguments[1]:void 0)}}),R),Qf=c.find,_c=k,ep=!0,P=("find"in[]&&Array(1).find(function(){ep=!1}),Vr({target:"Array",proto:!0,forced:ep},{find:function(e){return Qf(this,e,1<arguments.length?arguments[1]:void 0)}}),_c("find"),R),tp=c.findIndex,u=k,rp=!0,np=("findIndex"in[]&&Array(1).findIndex(function(){rp=!1}),P({target:"Array",proto:!0,forced:rp},{findIndex:function(e){return tp(this,e,1<arguments.length?arguments[1]:void 0)}}),u("findIndex"),mi),op=Wt,ip=v,ap=O,S={findLast:xl(0),findLastIndex:xl(1)},sp=S.findLast,C=k,up=(R({target:"Array",proto:!0},{findLast:function(e){return sp(this,e,1<arguments.length?arguments[1]:void 0)}}),C("findLast"),S.findLastIndex),a=k,cp=(R({target:"Array",proto:!0},{findLastIndex:function(e){return up(this,e,1<arguments.length?arguments[1]:void 0)}}),a("findLastIndex"),x),lp=O,fp=Sl,pp=mi,A=Pl,dp=A,hp=v,yp=O,vp=An,gp=Al,mp=(R({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=hp(this),r=yp(t),n=gp(t,0);return n.length=dp(n,t,t,r,0,void 0===e?1:vp(e)),n}}),A),wp=zt,Ep=v,bp=O,Tp=Al,_p=(R({target:"Array",proto:!0},{flatMap:function(e){var t,r=Ep(this),n=bp(r);return wp(e),(t=Tp(r,0)).length=mp(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),c.forEach),rc=kl("forEach")?[].forEach:function(e){return _p(this,e,1<arguments.length?arguments[1]:void 0)},Op=(R({target:"Array",proto:!0,forced:[].forEach!=rc},{forEach:rc}),$n.includes),ec=k,E=(R({target:"Array",proto:!0,forced:h(function(){return!Array(1).includes()})},{includes:function(e){return Op(this,e,1<arguments.length?arguments[1]:void 0)}}),ec("includes"),R),Rp=$n.indexOf,N=kl,Sp=e([].indexOf),Ap=!!Sp&&1/Sp([1],1,-0)<0,Xa=N("indexOf"),Vr=(E({target:"Array",proto:!0,forced:Ap||!Xa},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return Ap?Sp(this,e,t)||0:Rp(this,e,t)}}),R),_c=Wt,Np=Ut,P=kl,Cp=e([].join),u=_c!=Object,C=P("join",","),Ip=(Vr({target:"Array",proto:!0,forced:u||!C},{join:function(e){return Cp(Np(this),void 0===e?",":e)}}),xa),kp=Ut,xp=An,Pp=O,S=kl,Dp=Math.min,Mp=[].lastIndexOf,jp=!!Mp&&1/[1].lastIndexOf(1,-0)<0,a=S("lastIndexOf"),A=jp||!a?function(e){if(jp)return Ip(Mp,this,arguments)||0;var t=kp(this),r=Pp(t),n=r-1;for((n=1<arguments.length?Dp(n,xp(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:Mp,Lp=(R({target:"Array",proto:!0,forced:A!==[].lastIndexOf},{lastIndexOf:A}),c.map),rc=(R({target:"Array",proto:!0,forced:!Nl("map")},{map:function(e){return Lp(this,e,1<arguments.length?arguments[1]:void 0)}}),R),Fp=v,Up=O,Vp=Sl,ec=h(function(){return 4294967297!==[].push.call({length:4294967296},1)}),$n=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),Hp=(rc({target:"Array",proto:!0,arity:1,forced:ec||$n},{push:function(e){var t=Fp(this),r=Up(t),n=arguments.length;Vp(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return t.length=r}}),zt),Kp=v,zp=Wt,Gp=O,Bp=TypeError,N={left:Dl(!1),right:Dl(!0)},qp=N.left,E=fr,Xa=Na,$p=(R({target:"Array",proto:!0,forced:!kl("reduce")||!Xa&&79<E&&E<83},{reduce:function(e){var t=arguments.length;return qp(this,e,t,1<t?arguments[1]:void 0)}}),N.right),_c=fr,P=Na,Vr=(R({target:"Array",proto:!0,forced:!kl("reduceRight")||!P&&79<_c&&_c<83},{reduceRight:function(e){return $p(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),R),Xp=x,Yp=e([].reverse),u=[1,2],C=(Vr({target:"Array",proto:!0,forced:String(u)===String(u.reverse())},{reverse:function(){return Xp(this)&&(this.length=this.length),Yp(this)}}),R),Wp=x,Zp=I,Jp=Vt,Qp=Nn,ed=O,td=Ut,rd=Rl,xa=g,nd=T,S=Nl("slice"),od=xa("species"),id=Array,ad=Math.max,sd=(C({target:"Array",proto:!0,forced:!S},{slice:function(e,t){var r,n,o,i=td(this),a=ed(i),s=Qp(e,a),u=Qp(void 0===t?a:t,a);if(Wp(i)&&(r=i.constructor,(r=Zp(r)&&(r===id||Wp(r.prototype))||Jp(r)&&null===(r=r[od])?void 0:r)===id||void 0===r))return nd(i,s,u);for(n=new(void 0===r?id:r)(ad(u-s,0)),o=0;s<u;s++,o++)s in i&&rd(n,o,i[s]);return n.length=o,n}}),c.some),ud=(R({target:"Array",proto:!0,forced:!kl("some")},{some:function(e){return sd(this,e,1<arguments.length?arguments[1]:void 0)}}),Nn),cd=O,ld=Rl,fd=Array,pd=Math.max,dd=Ml,hd=Math.floor,a=jl,A=lr.match(/firefox\/(\d+)/i),rc=!!A&&+A[1],ec=/MSIE|Trident/.test(lr),$n=lr.match(/AppleWebKit\/(\d+)\./),Xa=!!$n&&+$n[1],E=R,N=e,yd=zt,vd=v,gd=O,md=Cl,wd=Ri,Na=h,Ed=a,P=kl,bd=rc,Td=ec,_d=fr,Od=Xa,Rd=[],Sd=N(Rd.sort),Ad=N(Rd.push),_c=Na(function(){Rd.sort(void 0)}),Vr=Na(function(){Rd.sort(null)}),u=P("sort"),Nd=!Na(function(){if(_d)return _d<70;if(!(bd&&3<bd)){if(Td)return!0;if(Od)return Od<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++)Rd.push({k:e+r,v:t})}for(Rd.sort(function(e,t){return t.v-e.v}),r=0;r<Rd.length;r++)e=Rd[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),T=(E({target:"Array",proto:!0,forced:_c||!Vr||!u||!Nd},{sort:function(e){void 0!==e&&yd(e);var t=vd(this);if(Nd)return void 0===e?Sd(t):Sd(t,e);for(var r,n,o=[],i=gd(t),a=0;a<i;a++)a in t&&Ad(o,t[a]);for(Ed(o,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:wd(e)>wd(t)?1:-1})),r=o.length,a=0;a<r;)t[a]=o[a++];for(;a<i;)md(t,a++);return t}}),bs("Array"),R),Cd=v,Id=Nn,kd=An,xd=O,Pd=Sl,Dd=Al,Md=Rl,jd=Cl,xa=Nl("splice"),Ld=Math.max,Fd=Math.min,C=(T({target:"Array",proto:!0,forced:!xa},{splice:function(e,t){var r,n,o,i,a,s,u=Cd(this),c=xd(u),l=Id(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-l):(r=e-2,Fd(Ld(kd(t),0),c-l)),Pd(c+r-n),o=Dd(u,n),i=0;i<n;i++)(a=l+i)in u&&Md(o,i,u[a]);if(r<(o.length=n)){for(i=l;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:jd(u,s);for(i=c;c-n+r<i;i--)jd(u,i-1)}else if(n<r)for(i=c-n;l<i;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:jd(u,s);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return u.length=c-n+r,o}}),k("flat"),k("flatMap"),R),Ud=v,Vd=O,Hd=Cl,Kd=Sl,S=1!==[].unshift(0),A=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),lr=(C({target:"Array",proto:!0,arity:1,forced:S||A},{unshift:function(e){var t=Ud(this),r=Vd(t),n=arguments.length;if(n){Kd(r+n);for(var o=r;o--;){var i=o+n;o in t?t[i]=t[o]:Hd(t,i)}for(var a=0;a<n;a++)t[a]=arguments[a]}return t.length=r+n}}),i.Array,{exports:{}}),$n={},zd=Lt,Gd=Ut,Bd=w.f,qd=Ml,$d="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=($n.f=function(e){if(!$d||"Window"!=zd(e))return Bd(Gd(e));var t=e;try{return Bd(t)}catch(t){return qd($d)}},h(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),rc=h,Xd=Vt,Yd=Lt,Wd=a,Zd=Object.isExtensible,ec=rc(function(){Zd(1)})||Wd?function(e){return!!Xd(e)&&(!Wd||"ArrayBuffer"!=Yd(e))&&(!Zd||Zd(e))}:Zd,fr=!h(function(){return Object.isExtensible(Object.preventExtensions({}))}),Jd=R,Qd=e,Xa=Hn,eh=Vt,th=Dr,rh=Fr.f,nh=w,oh=$n,ih=ec,ah=fr,sh=!1,uh=qt("meta"),ch=0,lh=lr.exports={enable:function(){lh.enable=function(){},sh=!0;var o=nh.f,i=Qd([].splice),e={};e[uh]=1,o(e).length&&(nh.f=function(e){for(var t=o(e),r=0,n=t.length;r<n;r++)if(t[r]===uh){i(t,r,1);break}return t},Jd({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:oh.f}))},fastKey:function(e,t){if(!eh(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!th(e,uh)){if(!ih(e))return"F";if(!t)return"E";Ll(e)}return e[uh].objectID},getWeakData:function(e,t){if(!th(e,uh)){if(!ih(e))return!0;if(!t)return!1;Ll(e)}return e[uh].weakData},onFreeze:function(e){return ah&&sh&&ih(e)&&!th(e,uh)&&Ll(e),e}},fh=(Xa[uh]=!0,y),ph=Vt,dh=ui,N=R,P=l,hh=e,Na=Yn,yh=Sn,E=lr.exports,vh=Oi,gh=Ts,_c=y,mh=Vt,Vr=h,u=Oc,T=Ba,wh=Sn,Eh=Fr.f,bh=ci,Th=Fl,_h=mi,Oh=Ts,Rh=Oi,Sh=$a,Ah=bs,Nh=n,Ch=lr.exports.fastKey,Ih=m.set,kh=m.getterFor;function xh(e){var r=hh(Gl[e]);yh(Gl,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(Hl&&!mh(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return Hl&&!mh(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(Hl&&!mh(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}xa=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},C={getConstructor:function(e,r,n,o){function i(e,t,r){var n,o=u(e),i=a(e,t);return i?i.value=r:(o.last=i={index:n=Ch(t,!0),key:t,value:r,previous:t=o.last,next:void 0,removed:!1},o.first||(o.first=i),t&&(t.next=i),Nh?o.size++:e.size++,"F"!==n&&(o.index[n]=i)),e}function a(e,t){var r,e=u(e),n=Ch(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){Oh(e,s),Ih(e,{type:r,index:bh(null),first:void 0,last:void 0,size:0}),Nh||(e.size=0),null!=t&&Rh(t,e[o],{that:e,AS_ENTRIES:n})}),s=e.prototype,u=kh(r);return Th(s,{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,Nh?e.size=0:this.size=0},delete:function(e){var t,r,n=u(this),e=a(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),Nh?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=_h(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!!a(this,e)}}),Th(s,n?{get:function(e){e=a(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)}}),Nh&&Eh(s,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",o=kh(t),i=kh(n);Sh(e,t,function(e,t){Ih(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),Ah(t)}},Vl=-1!==(S="Map").indexOf("Map"),Hl=-1!==S.indexOf("Weak"),Kl=Vl?"set":"add",zl=P.Map,Gl=zl&&zl.prototype,A={},Na(S,!_c(Bl=zl)||!(Hl||Gl.forEach&&!Vr(function(){(new zl).entries().next()})))?(Bl=C.getConstructor(xa,S,Vl,Kl),E.enable()):Na(S,!0)&&(i=(Ul=new Bl)[Kl](Hl?{}:-0,1)!=Ul,a=Vr(function(){Ul.has(1)}),rc=u(function(e){new zl(e)}),Hn=!Hl&&Vr(function(){for(var e=new zl,t=5;t--;)e[Kl](t,t);return!e.has(-0)}),rc||(((Bl=xa(function(e,t){gh(e,Gl);r=new zl,e=e,n=Bl,dh&&fh(e=e.constructor)&&e!==n&&ph(e=e.prototype)&&e!==n.prototype&&dh(r,e);var r,n=r;return null!=t&&vh(t,n[Kl],{that:n,AS_ENTRIES:Vl}),n})).prototype=Gl).constructor=Bl),(a||Hn)&&(xh("delete"),xh("has"),Vl&&xh("get")),(Hn||i)&&xh(Kl),Hl&&Gl.clear&&delete Gl.clear),A.Map=Bl,N({global:!0,constructor:!0,forced:Bl!=zl},A),T(Bl,S),Hl||C.setStrong(Bl,S,Vl);function Ph(e,t){for(var r=0,n=Lh(t),o=new e(n);r<n;)o[r]=t[r++];return o}function Dh(e,t,r,n){for(var o,i,a,s=Vh(e),u=Uh(s),c=Fh(t,r),l=zh(null),f=Kh(u),p=0;p<f;p++)a=u[p],(i=Hh(c(a,p,s)))in l?qh(l[i],a):l[i]=[a];if(n&&(o=n(s))!==Bh)for(i in l)l[i]=Gh(o,l[i]);return l}function Mh(e){for(var t,r,n=Zh(this),o=Wh(n),i=Yh(e,1<arguments.length?arguments[1]:void 0),a=new Qh,s=Jh(o),u=0;u<s;u++)t=i(r=o[u],u,n),ty(a,t)?ny(ey(a,t),r):ry(a,t,[r]);return a}function jh(e){return sy[e].prototype}var Lh=O,Fh=mi,Uh=Wt,Vh=v,Hh=$t,Kh=O,zh=ci,Gh=Ph,Bh=Array,qh=e([].push),$h=Dh,Dr=k,Xh=(R({target:"Array",proto:!0},{group:function(e){return $h(this,e,1<arguments.length?arguments[1]:void 0)}}),Dr("group"),Dh),w=k,Yh=(R({target:"Array",proto:!0,forced:!kl("groupBy")},{groupBy:function(e){return Xh(this,e,1<arguments.length?arguments[1]:void 0)}}),w("groupBy"),mi),$n=e,Wh=Wt,Zh=v,Jh=O,Qh=Ht("Map"),ec=Qh.prototype,ey=$n(ec.get),ty=$n(ec.has),ry=$n(ec.set),ny=$n([].push),fr=k,Xa=Mh,ui=(R({target:"Array",proto:!0,name:"groupToMap",forced:!kl("groupByToMap")},{groupByToMap:Xa}),fr("groupByToMap"),k),oy=(R({target:"Array",proto:!0},{groupToMap:Mh}),ui("groupToMap"),O),iy=Ut,Yn=k,ay=Array,sy=(R({target:"Array",proto:!0},{toReversed:function(){for(var e=iy(this),t=ay,r=oy(e),n=new t(r),o=0;o<r;o++)n[o]=e[r-o-1];return n}}),Yn("toReversed"),l),lr=R,uy=zt,cy=Ut,ly=Ph,P=k,fy=Array,py=e(jh("Array").sort),Na=(lr({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&uy(e);var t=cy(this),t=ly(fy,t);return py(t,e)}}),P("toSorted"),R),u=k,dy=Sl,hy=O,yy=Nn,vy=Ut,gy=An,my=Array,wy=Math.max,Ey=Math.min,by=(Na({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,o,i,a=vy(this),s=hy(a),u=yy(e,s),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,s-u):(r=e-2,Ey(wy(gy(t),0),s-u)),o=dy(s+r-n),i=my(o);c<u;c++)i[c]=a[c];for(;c<u+r;c++)i[c]=arguments[c-u+2];for(;c<o;c++)i[c]=a[c+n-r];return i}}),u("toSpliced"),O),Ty=An,_y=RangeError,Oy=Ut,Ry=Array;R({target:"Array",proto:!0},{with:function(e,t){var r=Oy(this),n=Ry,o=t,i=by(r),a=(e=Ty(e))<0?i+e:e;if(i<=a||a<0)throw _y("Incorrect index");for(var s=new n(i),u=0;u<i;u++)s[u]=u===a?o:r[u];return s}});Vr=l,rc=Nr,xa=y,a=_,Hn=Sn,i=g("asyncIterator"),N=Vr.AsyncIterator,A=rc.AsyncIteratorPrototype;if(A)Bv=A;else if(xa(N))Bv=N.prototype;else if(rc.USE_FUNCTION_CONSTRUCTOR||Vr.USE_FUNCTION_CONSTRUCTOR)try{Gv=a(a(a(Function("return async function*(){}()")()))),a(Gv)===Object.prototype&&(Bv=Gv)}catch(Am){}xa((Bv=Bv||{})[i])||Hn(Bv,i,function(){return this});function Sy(e,t,r){var n=e.done;My.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function Ay(e){jy(this,{type:"AsyncFromSyncIterator",iterator:Py(e),next:e.next})}function Ny(e,t,r,n){try{var o=Xy(e,"return");if(o)return $y("Promise").resolve(qy(o,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function Cy(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,a,s){var e={iterator:e,next:Gy(By(e).next)},u=Qy("Promise"),c=e.iterator,t=e.next,l=0,f=void 0!==a;return!f&&p||Wy(a),new u(function(r,n){var o=function(e){Ny(c,n,e,n)},i=function(){try{if(p&&f)try{Jy(l)}catch(e){o(e)}u.resolve(Zy(Yy(t,c))).then(function(e){try{if(Zy(e).done)p?(s.length=l,r(s)):r(!y&&(h||void 0));else{var t=e.value;try{f?u.resolve(p?a(t,l):a(t)).then(function(e){if(d)i();else if(h)e?i():Ny(c,r,!1,n);else if(p)try{s[l++]=e,i()}catch(e){o(e)}else e?Ny(c,r,y||t,n):i()},o):(s[l++]=t,i())}catch(e){o(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};i()})}}function Iy(e,t){if(!hv||!dv(e)||!hv(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 ky(e,t,r){r.get&&yv(r.get,t,{getter:!0}),r.set&&yv(r.set,t,{setter:!0}),vv.f(e,t,r)}var xy=o,Py=Yt,T=ci,Dy=Gt,C=Fl,S=m,Dr=Bv,My=Ht("Promise"),jy=S.set,Ly=S.getterFor("AsyncFromSyncIterator"),w=(Ay.prototype=C(T(Dr),{next:function(){var n=Ly(this);return new My(function(e,t){var r=Py(xy(n.next,n.iterator));Sy(r,e,t)})},return:function(){var n=Ly(this).iterator;return new My(function(e,t){var r=Dy(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=Py(xy(r,n));Sy(r,e,t)})}}),Ay),Fy=o,Uy=w,Vy=Yt,Hy=bi,Ky=Gt,zy=g("asyncIterator"),Gy=zt,By=Yt,qy=o,$y=Ht,Xy=Gt,Yy=o,Wy=zt,Zy=Yt,Jy=Sl,Qy=Ht,Wt={toArray:Cy(0),forEach:Cy(1),every:Cy(2),some:Cy(3),find:Cy(4)},ev=mi,tv=v,rv=I,nv=bi,ov=Ei,iv=Gt,ec=jh,av=Ht,sv=w,uv=Wt.toArray,cv=g("asyncIterator"),lv=ec("Array").values,fv=(R({target:"Array",stat:!0,forced:!0},{fromAsync:function(i){var a=this,e=arguments.length,s=1<e?arguments[1]:void 0,u=2<e?arguments[2]:void 0;return new(av("Promise"))(function(e){var t=tv(i),r=(void 0!==s&&(s=ev(s,u)),iv(t,cv)),n=r?void 0:ov(t)||lv,o=rv(a)?new a:[],r=r?function(e,t){t=arguments.length<2?Ky(e,zy):t;return t?Vy(Fy(t,e)):new Uy(Hy(e))}(t,r):new sv(nv(t,n));e(uv(r,s,o))})}}),c.filterReject),$n=k,pv=(R({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return fv(this,e,1<arguments.length?arguments[1]:void 0)}}),$n("filterOut"),c.filterReject),Xa=k,fr=(R({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return pv(this,e,1<arguments.length?arguments[1]:void 0)}}),Xa("filterReject"),R),dv=x,hv=Object.isFrozen,yv=(fr({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!Iy(e,!0))return!1;var t=e.raw;return t.length===e.length&&Iy(t,!1)}}),b.exports),vv=Fr,ui=k,gv=v,mv=O,Yn=(n&&(ky(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=gv(this),t=mv(e);return 0==t?void 0:e[t-1]},set:function(e){var t=gv(this),r=mv(t);return t[0==r?0:r-1]=e}}),ui("lastItem")),k),wv=v,Ev=O,lr=(n&&(ky(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=wv(this),e=Ev(e);return 0==e?0:e-1}}),Yn("lastIndex")),e),bv=zt,Tv=O,_v=v,Ov=Al,Rv=Ht("Map"),P=Rv.prototype,Sv=lr(P.forEach),Av=lr(P.has),Nv=lr(P.set),Cv=lr([].push),Na=k;R({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=_v(this),o=Tv(n),i=Ov(n,0),a=new Rv,s=null!=e?bv(e):function(e){return e},u=0;u<o;u++)r=s(t=n[u]),Av(a,r)||Nv(a,r,t);return Sv(a,function(e){Cv(i,e)}),i}}),Na("uniqueBy");lm.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},lm.prototype.refresh=function(){this.stop(),this.start()},lm.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)};var Iv,kv=lm,xv=(cm.prototype.start=function(){this.started=!0},cm.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},cm.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},cm.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},cm.prototype.close=function(){this.stop()},cm),Pv=(um.prototype.drainQueue=function(t,r){var n=this;return new Promise(function(e){0!==t.length?r?n.eventDispatcher.dispatchXhrOrBeacon(t,function(){e()}):n.eventDispatcher.dispatch(t,function(){e()}):e()})},um.prototype.process=function(e){this.queue.enqueue(e)},um.prototype.start=function(){return e=this,u=function(){return V(this,function(e){return this.queue.start(),[2]})},new(s=(s=a=void 0)||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 s?t:new s(function(e){e(t)})).then(n,o)}i((u=u.apply(e,a||[])).next())});var e,a,s,u},um.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},um.prototype.flush=function(){this.queue.flush()},um.prototype.close=function(){this.stop()},um),Dv=(sm.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]})},sm),Mv=(am.prototype.process=function(e){this.exposureEventDedupDeterminer.isDedupTarget(e)||this.delegate.process(e)},am.prototype.close=function(){this.delegate.close()},am.prototype.flush=function(){this.delegate.flush()},am.prototype.start=function(){return this.delegate.start()},am),jv=(im.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!Ke.isExposure(e))return!1;Dv.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)},im),Lv=(om.toEvent=function(e){var t;return{key:om.EVENT_KEY,properties:{level:om.LEVEL_ERROR,type:e.name,message:null!=(t=e.message)?t:"",$stacktrace:om._stacktrace(e)}}},om._stacktrace=function(e){return ae.isNullOrUndefined(e.stack)?"":e.stack.split("\n").slice(0,om.STACK_TRACK_LIMIT).join("\n")},om.EVENT_KEY="$trace",om.LEVEL_ERROR="error",om.STACK_TRACK_LIMIT=30,om),Fv=H.log,Uv=(nm.prototype._experiment=function(e,t,r){if(!e)return Fv.error("experimentKey must not be empty"),ue.of(r,s.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return Fv.warn("SDK not ready."),ue.of(r,s.SDK_NOT_READY);e=n.getExperimentOrNull(e);if(!e)return Fv.warn("Experiment does not exist."),ue.of(r,s.EXPERIMENT_NOT_FOUND);n=this.evaluator.evaluate(n,e,t,r),this.eventProcessor.process(Ke.exposure(e,t,n)),e=null!=(r=n.config)?r:new le;return ue.of(n.variationKey,n.reason,e)},nm.prototype._featureFlag=function(e,t){if(!e)return Fv.error("featureKey must not be empty"),ce.off(s.INVALID_INPUT);var r=this.workspaceFetcher.get();if(!r)return Fv.warn("SDK not ready."),ce.off(s.SDK_NOT_READY);var e=r.getFeatureFlagOrNull(e);if(!e)return Fv.warn("FeatureFlag does not exist."),ce.off(s.FEATURE_FLAG_NOT_FOUND);r=this.evaluator.evaluate(r,e,t,"A"),this.eventProcessor.process(Ke.exposure(e,t,r)),t=null!=(e=r.config)?e:new le;return"A"===r.variationKey?ce.off(r.reason,t):ce.on(r.reason,t)},nm.prototype._track=function(e,t){var r;e?"object"==typeof e?"object"!=typeof e||e.key&&"string"==typeof e.key?(r=(null==(r=this.workspaceFetcher.get())?void 0:r.getEventTypeOrNull(e.key))||new W(0,e.key),this.eventProcessor.process(Ke.track(r,e,t))):Fv.warn("Event key must be not null. or event key must be string type."):Fv.warn("Event must be event type."):Fv.warn("event must not be null.")},nm.prototype._trackException=function(e,t){this.errorDedupDeterminer.isDedupTarget(e)||(e=Lv.toEvent(e),this._flush(),this._track(e,t),this._flush())},nm.prototype._flush=function(){this.eventProcessor.flush()},nm.prototype._onReady=function(e,t){this._onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},nm.prototype._onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(Fv.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?Fv.debug("HackleClient onInitialized Success"):e.error instanceof Error?Fv.error("HackleClient onInitialized Failed. ".concat(e.error.message)):Fv.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},nm.prototype._close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},nm),Vv=(rm.prototype.isDedupTarget=function(e){return!!this._isSameError(e,this.previous)||(this.previous=e,!1)},rm.prototype._isSameError=function(e,t){return!ae.isNullOrUndefined(t)&&e.name===t.name&&e.message===t.message&&e.stack===t.stack},rm),Hv=(tm.of=function(e,t,r,n){t=t._getVariationByKeyOrNull(r);return ae.isNotNullOrUndefined(t)?tm.withVariation(e,t,n):new tm(void 0,r,n,void 0)},tm.withVariation=function(e,t,r){e=this.config(e,t);return new tm(t.id,t.key,r,e)},tm.config=function(e,t){if(!ae.isNullOrUndefined(t.parameterConfigurationId))return ae.requiredNotNullOrUndefined(e.getParameterConfigurationOrNull(t.parameterConfigurationId),function(){return"ParameterConfiguration[".concat(t.parameterConfigurationId,"]")})},tm),Kv=(em.prototype.evaluate=function(e,t,r,n){return this.evaluationFlowFactory.getFlow(t.type).evaluate(e,t,r,n)},em),zv=(Qg.prototype.matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n._matches(e,t,r)})},Qg.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(e.key.type).matches(e,t,r)},Qg),u=(Jg.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)},Jg.prototype._matches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},Jg),l=(Zg.prototype.booleanMatches=function(e,t){return e===t},Zg.prototype.numberMatches=function(e,t){return e===t},Zg.prototype.stringMatches=function(e,t){return e===t},Zg.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},Zg),Nr=(Wg.prototype.booleanMatches=function(e,t){return!1},Wg.prototype.numberMatches=function(e,t){return!1},Wg.prototype.stringMatches=function(e,t){return e.includes(t)},Wg.prototype.versionMatches=function(e,t){return!1},Wg),_=(Yg.prototype.booleanMatches=function(e,t){return!1},Yg.prototype.numberMatches=function(e,t){return!1},Yg.prototype.stringMatches=function(e,t){return e.startsWith(t)},Yg.prototype.versionMatches=function(e,t){return!1},Yg),A=(Xg.prototype.booleanMatches=function(e,t){return!1},Xg.prototype.numberMatches=function(e,t){return!1},Xg.prototype.stringMatches=function(e,t){return e.endsWith(t)},Xg.prototype.versionMatches=function(e,t){return!1},Xg),N=($g.prototype.booleanMatches=function(e,t){return!1},$g.prototype.numberMatches=function(e,t){return t<e},$g.prototype.stringMatches=function(e,t){return!1},$g.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},$g),rc=(qg.prototype.booleanMatches=function(e,t){return!1},qg.prototype.numberMatches=function(e,t){return t<=e},qg.prototype.stringMatches=function(e,t){return!1},qg.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},qg),Vr=(Bg.prototype.booleanMatches=function(e,t){return!1},Bg.prototype.numberMatches=function(e,t){return e<t},Bg.prototype.stringMatches=function(e,t){return!1},Bg.prototype.versionMatches=function(e,t){return e.isLessThan(t)},Bg),a=(Gg.prototype.booleanMatches=function(e,t){return!1},Gg.prototype.numberMatches=function(e,t){return e<=t},Gg.prototype.stringMatches=function(e,t){return!1},Gg.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},Gg),Gv=(zg.prototype.getMatcher=function(e){switch(e){case"IN":return zg.IN_MATCHER;case"CONTAINS":return zg.CONTAINS_MATCHER;case"STARTS_WITH":return zg.STARTS_WITH_MATCHER;case"ENDS_WITH":return zg.ENDS_WITH_MATCHER;case"GT":return zg.GT_MATCHER;case"GTE":return zg.GTE_MATCHER;case"LT":return zg.LT_MATCHER;case"LTE":return zg.LTE_MATCHER}},zg.IN_MATCHER=new l,zg.CONTAINS_MATCHER=new Nr,zg.STARTS_WITH_MATCHER=new _,zg.ENDS_WITH_MATCHER=new A,zg.GT_MATCHER=new N,zg.GTE_MATCHER=new rc,zg.LT_MATCHER=new Vr,zg.LTE_MATCHER=new a,zg),xa=(Kg.prototype.matches=function(e,t,r){return"string"==typeof t&&"string"==typeof r&&e.stringMatches(t,r)},Kg),Hn=(Hg.prototype.matches=function(e,t,r){return"number"==typeof t&&"number"==typeof r&&e.numberMatches(t,r)},Hg),i=(Vg.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},Vg),ci=(Ug.prototype.matches=function(e,t,r){t=Ce.tryParse(t),r=Ce.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},Ug),m=(Fg.prototype.getMatcher=function(e){switch(e){case"STRING":return Fg.STRING_MATCHER;case"NUMBER":return Fg.NUMBER_MATCHER;case"BOOLEAN":return Fg.BOOLEAN_MATCHER;case"VERSION":return Fg.VERSION_MATCHER}},Fg.STRING_MATCHER=new xa,Fg.NUMBER_MATCHER=new Hn,Fg.BOOLEAN_MATCHER=new i,Fg.VERSION_MATCHER=new ci,Fg),Bv=(Lg.prototype.matches=function(e,t,r){r=this.userValueResolver.resolveOrNull(r,e.key);return!ae.isNullOrUndefined(r)&&this.valueOperatorMatcher.matches(r,e.match)},Lg),S=(jg.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,"]"))}},jg),C=(Mg.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}},Mg.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,"]"))},Mg),T=(Dg.prototype.matches=function(e,t,r){var n=this;return e.targets.some(function(e){return n._matches(e,t,r)})},Dg.prototype._matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(e,t,r)})},Dg),qv=(Pg.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return Pg.USER_CONDITION_MATCHER;case"SEGMENT":return Pg.SEGMENT_CONDITION_MATCHER}},Pg.USER_CONDITION_MATCHER=new Bv(new S,new u(new m,new Gv)),Pg.SEGMENT_CONDITION_MATCHER=new C(new T(Pg.USER_CONDITION_MATCHER)),Pg),$v=(xg.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)}},xg.prototype._resolveVariation=function(e,t){return t._getVariationByIdOrNull(e.variationId)},xg.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)}},xg),Xv={murmurhash3_x86_32:function(e,t,r,n){for(var o,i=3432918353,a=461845907,s=-4&(n=void 0===n?e.length:n),u=t,c=0;c<s;c+=4)o=255&e.charCodeAt(c)|(255&e.charCodeAt(c+1))<<8|(255&e.charCodeAt(c+2))<<16|(255&e.charCodeAt(c+3))<<24,o=(131071&(o=this.mul32(o,i)))<<15|o>>>17,u=5*((524287&(u^=o=this.mul32(o,a)))<<13|u>>>19)+3864292196|0;switch(o=0,n%4){case 3:o=(255&e.charCodeAt(2+s))<<16;case 2:o|=(255&e.charCodeAt(1+s))<<8;case 1:o|=255&e.charCodeAt(s),o=(131071&(o=this.mul32(o,i)))<<15|o>>>17,u^=o=this.mul32(o,a)}return u=this.mul32(u=(u^=n)^u>>>16,2246822507),(u=this.mul32(u^=u>>>13,3266489909))^u>>>16},mul32:function(e,t){var r=65535&t;return((t-r)*e|0)+(r*e|0)|0}},Yv=(kg.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},kg.prototype.calculateSlotNumber=function(e,t,r){r=Xv.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},kg),Wv=(Ig.prototype.evaluate=function(e,t,r,n){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,r,n,this.nextFlow):Hv.of(e,t,n,s.TRAFFIC_NOT_ALLOCATED)},Ig.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new Ig,n=0,o=e.reverse();n<o.length;n++)r=new Ig(o[n],r);return r},Ig),Zv=(Cg.prototype.evaluate=function(e,t,r,n,o){var i=this.overrideResolver.resolveOrNull(e,t,r);if(!i)return o.evaluate(e,t,r,n);switch(t.type){case"AB_TEST":return Hv.withVariation(e,i,s.OVERRIDDEN);case"FEATURE_FLAG":return Hv.withVariation(e,i,s.INDIVIDUAL_TARGET_MATCH)}},Cg),Jv=(Ng.prototype.evaluate=function(e,t,r,n,o){return"DRAFT"===t.status?Hv.of(e,t,n,s.EXPERIMENT_DRAFT):o.evaluate(e,t,r,n)},Ng),Qv=(Ag.prototype.evaluate=function(e,t,r,n,o){if("PAUSED"!==t.status)return o.evaluate(e,t,r,n);switch(t.type){case"AB_TEST":return Hv.of(e,t,n,s.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return Hv.of(e,t,n,s.FEATURE_FLAG_INACTIVE)}},Ag),eg=(Sg.prototype.evaluate=function(e,t,r,n,o){if("COMPLETED"!==t.status)return o.evaluate(e,t,r,n);o=t._winnerVariationOrNull();if(o)return Hv.withVariation(e,o,s.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(t.id,"]"))},Sg),tg=(Rg.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):Hv.of(e,t,n,s.NOT_IN_EXPERIMENT_TARGET)},Rg),rg=(Og.prototype.evaluate=function(e,t,r,n,o){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("AB_TEST"!==t.type)throw new Error("experiment type must be AB_TEST [".concat(t.id,"]"));r=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);return r?r.isDropped?Hv.of(e,t,n,s.VARIATION_DROPPED):Hv.withVariation(e,r,s.TRAFFIC_ALLOCATED):Hv.of(e,t,n,s.TRAFFIC_NOT_ALLOCATED)},Og),ng=(_g.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 Hv.withVariation(e,o,s.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},_g),og=(Tg.prototype.evaluate=function(e,t,r,n,o){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("FEATURE_FLAG"!==t.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(t.id,"]"));if(!r.identifiers[t.identifierType])return Hv.of(e,t,n,s.DEFAULT_RULE);n=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);if(n)return Hv.withVariation(e,n,s.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},Tg),ig=(bg.prototype.evaluate=function(e,t,r,n,o){var i=t.containerId;if(!i)return o.evaluate(e,t,r,n);var a=e.getContainerOrNull(i);if(!a)throw new Error("container[".concat(i,"]"));i=e.getBucketOrNull(a.bucketId);if(i)return this.containerResolver.isUserInContainerGroup(a,i,t,r)?o.evaluate(e,t,r,n):Hv.of(e,t,n,s.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("bucket[".concat(a.bucketId,"]"))},bg),ag=(Eg.prototype.evaluate=function(e,t,r,n,o){return r.identifiers[t.identifierType]?o.evaluate(e,t,r,n):Hv.of(e,t,n,s.IDENTIFIER_NOT_FOUND)},Eg),sg=(wg.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)})},wg),ug=(mg.prototype.determineTargetRuleOrNull=function(t,e,r){var n=this;return e.targetRules.find(function(e){return n.targetMatcher.matches(e.target,t,r)})},mg),cg=(gg.prototype.resolveOrNull=function(e,t,r){return this._resolveUserOverride(t,r)||this._resolveSegmentOverride(e,t,r)},gg.prototype._resolveUserOverride=function(e,t){t=t.identifiers[e.identifierType];if(t){t=e.userOverrides.get(t);if(t)return e._getVariationByIdOrNull(t)}},gg.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)},gg),lg=(vg.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,"]"))},vg),fg=(yg.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},yg),pg=(hg.prototype.install=function(e,t){this._install("onerror",e,t),this._install("onunhandledrejection",e,t)},hg.prototype._install=function(e,t,r){e in this._installed||((0,this._installations[e])(t,r),this._installed.push(e))},hg),dg=null;function hg(){this._installed=[],this._installations={onerror:fm,onunhandledrejection:pm}}function yg(){var e=new Yv,t=new zv(new qv),r=new $v(e),n=new cg(t,r),e=new lg(e);this.abTestFlow=Wv.of(new Zv(n),new ag,new ig(e),new tg(new sg(t)),new Jv,new Qv,new eg,new rg(r)),this.featureFlagFlow=Wv.of(new Jv,new Qv,new eg,new Zv(n),new ag,new ng(new ug(t),r),new og(r))}function vg(e){this.bucketer=e}function gg(e,t){this.targetMatcher=e,this.actionResolver=t}function mg(e){this.targetMatcher=e}function wg(e){this.targetMatcher=e}function Eg(){}function bg(e){this.containerResolver=e}function Tg(e){this.actionResolver=e}function _g(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function Og(e){this.actionResolver=e}function Rg(e){this.experimentTargetDeterminer=e}function Sg(){}function Ag(){}function Ng(){}function Cg(e){this.overrideResolver=e}function Ig(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function kg(){}function xg(e){this.bucketer=e}function Pg(){}function Dg(e){this.userConditionMatcher=e}function Mg(e){this.segmentMatcher=e}function jg(){}function Lg(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function Fg(){}function Ug(){}function Vg(){}function Hg(){}function Kg(){}function zg(){}function Gg(){}function Bg(){}function qg(){}function $g(){}function Xg(){}function Yg(){}function Wg(){}function Zg(){}function Jg(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function Qg(e){this.conditionMatcherFactory=e}function em(e){this.evaluationFlowFactory=e}function tm(e,t,r,n){this.variationId=e,this.variationKey=t,this.reason=r,this.config=n}function rm(){}function nm(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 om(){}function im(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function am(e,t){this.delegate=e,this.exposureEventDedupDeterminer=t}function sm(){}function um(e,t,r){this.eventDispatcher=e,this.flushInterval=r,this.queue=new xv(this.drainQueue.bind(this),t,r)}function cm(e,t,r){this.buffer=[],this.sink=e,this.maxQueueSize=t,this.timer=new kv({callback:this.flush.bind(this),timeout:r}),this.started=!1}function lm(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function fm(i,a){dg=window.onerror,window.onerror=function(e,t,r,n,o){ae.isNotNullOrUndefined(o)&&i._trackException(o,a.resolveAnonymousUser()),dg&&dg.apply(this,arguments)}}function pm(r,n){Iv=window.onunhandledrejection,window.onunhandledrejection=function(e){var t;try{"reason"in e?t=e.reason:"detail"in e&&"reason"in e.detail&&(t=e.detail.reason)}catch(e){}t instanceof Error&&r._trackException(t,n.resolveAnonymousUser())},Iv&&Iv.apply(this,arguments)}var dm=H.log,hm=null,ym={debug:!1,log_disabled:!1,auto_track_page_view:!1,pollingIntervalMillis:-1,exposureEventDedupIntervalMillis:-1,SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.4.0"};function vm(e,t){t=U(U({},ym),t);if(t.log_disabled?H.setLogLevel(0):t.debug&&H.setLogLevel(4),dm.debug("sdkKey : "+e),e||dm.error("SDK Key must not be null"),hm)return dm.debug("use already exists hackleClient"),hm;var r=!1,r=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&dm.debug("support sendBeacon API"),new rt(e,ie,{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 at(e,ie,{fetchUrl:"".concat("https://sdk.hackle.io/api/v2/w/").concat(e).concat("/w"),updateInterval:n,headers:((e={})["X-HACKLE-SDK-NAME"]=t.SDK_NAME_HEADER,e["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,e)})),e=-1;void 0!==t.exposureEventDedupIntervalMillis&&"number"==typeof t.exposureEventDedupIntervalMillis&&-1!==t.exposureEventDedupIntervalMillis&&(e=t.exposureEventDedupIntervalMillis<1e3||36e5<t.exposureEventDedupIntervalMillis?(dm.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):t.exposureEventDedupIntervalMillis);var o,i,r=new Pv(r,100,500),e=new jv(e),r=new Mv(r,e),e=new Uv(n,r,new Kv(new fg),new Vv),n=new _t,a=new Ve(e,n);return hm=a,t.auto_track_page_view&&(i=function(){return o.trackPageView({user:{id:At()}})},(o=a).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}i();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)dm.error(e);else try{dm.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)dm.error(e);else try{dm.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(t("locationchange"))}catch(e){if(e instanceof Error)dm.error(e);else try{dm.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{i()}catch(e){if(e instanceof Error)dm.error(e);else try{dm.error(e)}catch(e){}}})}catch(t){if(t instanceof Error)dm.error(t);else try{dm.error(t)}catch(t){}}var r,n})),(new pg).install(e,n),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){Ct(),a.close()}),a}var Dr={createInstance:vm,getUserId:At,setUserId:Nt,removeUserId:Ct,Logger:H},gm=(f.Bucket=t.Bucket=Y,f.Container=t.Container=ye,f.ContainerGroup=t.ContainerGroup=oe,f.CoreVersion=t.CoreVersion=Ie,f.Decision=t.Decision=ue,f.DecisionReason=t.DecisionReason=s,f.EmptyParameterConfig=t.EmptyParameterConfig=le,f.EventType=t.EventType=W,f.Experiment=t.Experiment=fe,f.FeatureFlagDecision=t.FeatureFlagDecision=ce,f.IdentifierType=t.IdentifierType=de,f.IdentifiersBuilder=t.IdentifiersBuilder=he,f.Logger=t.Logger=H,f.MATCH_OPERATORS=t.MATCH_OPERATORS=De,f.MATCH_TYPES=t.MATCH_TYPES=xe,f.MATCH_VALUE_TYPES=t.MATCH_VALUE_TYPES=Pe,f.MetaVersion=t.MetaVersion=ke,f.ParameterConfiguration=t.ParameterConfiguration=ve,f.SEGMENT_TYPES=t.SEGMENT_TYPES=Le,f.Segment=t.Segment=ne,f.Slot=t.Slot=pe,f.TARGET_ACTION_TYPES=t.TARGET_ACTION_TYPES=Me,f.TARGET_KEY_TYPES=t.TARGET_KEY_TYPES=je,f.Target=t.Target=Z,f.TargetAction=t.TargetAction=te,f.TargetCondition=t.TargetCondition=J,f.TargetKey=t.TargetKey=Q,f.TargetMatch=t.TargetMatch=ee,f.TargetRule=t.TargetRule=re,f.TargetingType=t.TargetingType=Fe,f.Variation=t.Variation=X,f.Version=t.Version=Ce,j=t.createInstance=vm,t.default=Dr,f.getUserId=t.getUserId=At,f.removeUserId=t.removeUserId=Ct,f.setUserId=t.setUserId=Nt,function(){return(gm=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 mm(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)a.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 a}Em.prototype.variation=function(e,t,r){return this.client.variation(e,t,r)},Em.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t,r)},Em.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t)},Em.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t)},Em.prototype.track=function(e,t){this.client.track(e,t)},Em.prototype.trackPageView=function(e){this.client.trackPageView(e)},Em.prototype.onReady=function(e,t){this.client.onReady(e,t)},Em.prototype.onInitialized=function(e){return this.client.onInitialized(e)};var wm=Em;function Em(e,t){this.client=j(e,gm(gm({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.4.0"}))}var D={exports:{}},o={},bm=Object.getOwnPropertySymbols,Tm=Object.prototype.hasOwnProperty,_m=Object.prototype.propertyIsEnumerable;var I=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]))Tm.call(r,i)&&(n[i]=r[i]);if(bm)for(var a=bm(r),s=0;s<a.length;s++)_m.call(r,a[s])&&(n[a[s]]=r[a[s]])}return n},Om=I,w="function"==typeof Symbol&&Symbol.for,Rm=w?Symbol.for("react.element"):60103,Sm=w?Symbol.for("react.portal"):60106,Wt=w?Symbol.for("react.fragment"):60107,Am=w?Symbol.for("react.strict_mode"):60108,ec=w?Symbol.for("react.profiler"):60114,Nm=w?Symbol.for("react.provider"):60109,Cm=w?Symbol.for("react.context"):60110,Im=w?Symbol.for("react.forward_ref"):60112,$n=w?Symbol.for("react.suspense"):60113,km=w?Symbol.for("react.memo"):60115,xm=w?Symbol.for("react.lazy"):60116,Pm="function"==typeof Symbol&&Symbol.iterator;function Dm(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 Mm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},jm={};function Lm(e,t,r){this.props=e,this.context=t,this.refs=jm,this.updater=r||Mm}function Fm(){}function Um(e,t,r){this.props=e,this.context=t,this.refs=jm,this.updater=r||Mm}Lm.prototype.isReactComponent={},Lm.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(Dm(85));this.updater.enqueueSetState(this,e,t,"setState")},Lm.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Fm.prototype=Lm.prototype;var c=Um.prototype=new Fm,Vm=(c.constructor=Um,Om(c,Lm.prototype),c.isPureReactComponent=!0,{current:null}),Hm=Object.prototype.hasOwnProperty,Km={key:!0,ref:!0,__self:!0,__source:!0};function zm(e,t,r){var n,o={},i=null,a=null;if(null!=t)for(n in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)Hm.call(t,n)&&!Km.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===o[n]&&(o[n]=s[n]);return{$$typeof:Rm,type:e,key:i,ref:a,props:o,_owner:Vm.current}}function Gm(e){return"object"==typeof e&&null!==e&&e.$$typeof===Rm}var Bm=/\/+/g,qm=[];function $m(e,t,r,n){var o;return qm.length?((o=qm.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 Xm(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,qm.length<10&&qm.push(e)}function Ym(e,t,r){return null==e?0:function e(t,r,n,o){var i=!1;if(null===(t="undefined"!=(s=typeof t)&&"boolean"!==s?t:null))i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case Rm:case Sm:i=!0}}if(i)return n(o,t,""===r?"."+Wm(t,0):r),1;if(i=0,r=""===r?".":r+":",Array.isArray(t))for(var a=0;a<t.length;a++){var s,u=r+Wm(s=t[a],a);i+=e(s,u,n,o)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=Pm&&t[Pm]||t["@@iterator"])?u:null))for(t=u.call(t),a=0;!(s=t.next()).done;)i+=e(s=s.value,u=r+Wm(s,a++),n,o);else if("object"===s)throw n=""+t,Error(Dm(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return i}(e,"",t,r)}function Wm(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 Zm(e,t){e.func.call(e.context,t,e.count++)}function Jm(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?Qm(e,n,r,function(e){return e}):null!=e&&(Gm(e)&&(t=o+(!(o=e).key||t&&t.key===e.key?"":(""+e.key).replace(Bm,"$&/")+"/")+r,e={$$typeof:Rm,type:o.type,key:t,ref:o.ref,props:o.props,_owner:o._owner}),n.push(e))}function Qm(e,t,r,n,o){var i="";Ym(e,Jm,t=$m(t,i=null!=r?(""+r).replace(Bm,"$&/")+"/":i,n,o)),Xm(t)}var e0={current:null};function t0(){var e=e0.current;if(null===e)throw Error(Dm(321));return e}var r0,n0,o0,Xa={ReactCurrentDispatcher:e0,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Vm,IsSomeRendererActing:{current:!1},assign:Om},x=(o.Children={map:function(e,t,r){if(null==e)return e;var n=[];return Qm(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;Ym(e,Zm,t=$m(null,null,t,r)),Xm(t)},count:function(e){return Ym(e,function(){return null},null)},toArray:function(e){var t=[];return Qm(e,t,null,function(e){return e}),t},only:function(e){if(Gm(e))return e;throw Error(Dm(143))}},o.Component=Lm,o.Fragment=Wt,o.Profiler=ec,o.PureComponent=Um,o.StrictMode=Am,o.Suspense=$n,o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xa,o.cloneElement=function(e,t,r){if(null==e)throw Error(Dm(267,e));var n=Om({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t)for(s in void 0!==t.ref&&(i=t.ref,a=Vm.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)Hm.call(t,s)&&!Km.hasOwnProperty(s)&&(n[s]=(void 0===t[s]&&void 0!==u?u:t)[s]);var s=arguments.length-2;if(1===s)n.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];n.children=u}return{$$typeof:Rm,type:e.type,key:o,ref:i,props:n,_owner:a}},o.createContext=function(e,t){return(e={$$typeof:Cm,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:Nm,_context:e},e.Consumer=e},o.createElement=zm,o.createFactory=function(e){var t=zm.bind(null,e);return t.type=e,t},o.createRef=function(){return{current:null}},o.forwardRef=function(e){return{$$typeof:Im,render:e}},o.isValidElement=Gm,o.lazy=function(e){return{$$typeof:xm,_ctor:e,_status:-1,_result:null}},o.memo=function(e,t){return{$$typeof:km,type:e,compare:void 0===t?null:t}},o.useCallback=function(e,t){return t0().useCallback(e,t)},o.useContext=function(e,t){return t0().useContext(e,t)},o.useDebugValue=function(){},o.useEffect=function(e,t){return t0().useEffect(e,t)},o.useImperativeHandle=function(e,t,r){return t0().useImperativeHandle(e,t,r)},o.useLayoutEffect=function(e,t){return t0().useLayoutEffect(e,t)},o.useMemo=function(e,t){return t0().useMemo(e,t)},o.useReducer=function(e,t,r){return t0().useReducer(e,t,r)},o.useRef=function(e){return t0().useRef(e)},o.useState=function(e){return t0().useState(e)},o.version="16.14.0",{}),fr=Function.call.bind(Object.prototype.hasOwnProperty),i0=function(){};function a0(e,t,r,n,o){if("production"!==production)for(var i in e)if(o0(e,i)){var a,s;try{if("function"!=typeof e[i])throw(s=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",s;a=e[i](t,i,n,r,null,r0)}catch(e){a=e}!a||a instanceof Error||i0((n||"React class")+": type specification of "+r+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in n0)&&(n0[a.message]=!0,i=o?o():"",i0("Failed "+r+" type: "+a.message+(null!=i?i:"")))}}if("production"!==production&&(r0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",n0={},o0=fr,i0=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),a0.resetWarningCache=function(){"production"!==production&&(n0={})},"production"!==production){var s0=I,u0=a0,b="function"==typeof Symbol&&Symbol.for,c0=b?Symbol.for("react.element"):60103,l0=b?Symbol.for("react.portal"):60106,f0=b?Symbol.for("react.fragment"):60107,p0=b?Symbol.for("react.strict_mode"):60108,d0=b?Symbol.for("react.profiler"):60114,h0=b?Symbol.for("react.provider"):60109,y0=b?Symbol.for("react.context"):60110,v0=b?Symbol.for("react.concurrent_mode"):60111,g0=b?Symbol.for("react.forward_ref"):60112,m0=b?Symbol.for("react.suspense"):60113,w0=b?Symbol.for("react.suspense_list"):60120,E0=b?Symbol.for("react.memo"):60115,b0=b?Symbol.for("react.lazy"):60116,T0=b?Symbol.for("react.block"):60121,_0=b?Symbol.for("react.fundamental"):60117,O0=b?Symbol.for("react.responder"):60118,R0=b?Symbol.for("react.scope"):60119,S0="function"==typeof Symbol&&Symbol.iterator,A0="@@iterator";function N0(e){if(null===e||"object"!=typeof e)return null;e=S0&&e[S0]||e[A0];return"function"==typeof e?e:null}var C0={current:null},I0={current:null},k0=/^(.*)[\\\/]/,x0=1;function P0(e){if(null==e)return null;if("number"==typeof e.tag&&M("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case f0:return"Fragment";case l0:return"Portal";case d0:return"Profiler";case p0:return"StrictMode";case m0:return"Suspense";case w0:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case y0:return"Context.Consumer";case h0:return"Context.Provider";case g0:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case E0:return P0(e.type);case T0:return P0(e.render);case b0:r=(t=e)._status===x0?t._result:null;if(r)return P0(r)}var t,r;return null}var D0={},M0=null;function j0(e){M0=e}D0.getCurrentStack=null,D0.getStackAddendum=function(){var e,t,r,n,o,i="",a=(M0&&(e=P0(M0.type),r=M0._owner,i+=(e=e,t=M0._source,r=r&&P0(r.type),o="",t?(n=(a=t.fileName).replace(k0,""),o=" (at "+(n=/^index\./.test(n)&&(a=a.match(k0))&&(a=a[1])?a.replace(k0,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(o=" (created by "+r+")"),"\n in "+(e||"Unknown")+o)),D0.getCurrentStack);return a&&(i+=a()||""),i};var L0={ReactCurrentDispatcher:C0,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:I0,IsSomeRendererActing:{current:!1},assign:s0};function F0(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];U0("warn",e,r)}function M(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];U0("error",e,r)}function U0(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=L0.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){}}s0(L0,{ReactDebugCurrentFrame:D0,ReactComponentTreeHook:{}});var V0={};function H0(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;V0[r]||(M("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),V0[r]=!0)}var K0={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){H0(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){H0(e,"replaceState")},enqueueSetState:function(e,t,r,n){H0(e,"setState")}},z0={};function G0(e,t,r){this.props=e,this.context=t,this.refs=z0,this.updater=r||K0}Object.freeze(z0),G0.prototype.isReactComponent={},G0.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")},G0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var B0,q0={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(B0 in q0)q0.hasOwnProperty(B0)&&!function(e,t){Object.defineProperty(G0.prototype,e,{get:function(){F0("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(B0,q0[B0]);function $0(){}function X0(e,t,r){this.props=e,this.context=t,this.refs=z0,this.updater=r||K0}$0.prototype=G0.prototype,(b=X0.prototype=new $0).constructor=X0,s0(b,G0.prototype),b.isPureReactComponent=!0;var Y0,W0,Z0=Object.prototype.hasOwnProperty,J0={key:!0,ref:!0,__self:!0,__source:!0};function Q0(e){if(Z0.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function ew(e){if(Z0.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var tw={},rw=function(e,t,r,n,o,i,a){e={$$typeof:c0,type:e,key:t,ref:r,props:a,_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 nw(e,t,r){var n,o={},i=null,a=null,s=null,u=null;if(null!=t)for(n in Q0(t)&&(a=t.ref,"string"==typeof(c=t).ref&&I0.current&&c.__self&&I0.current.stateNode!==c.__self&&(f=P0(I0.current.type),tw[f]||(M('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',P0(I0.current.type),c.ref),tw[f]=!0))),ew(t)&&(i=""+t.key),s=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)Z0.call(t,n)&&!J0.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(){W0||(W0=!0,M("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",l))}function m(){Y0||(Y0=!0,M("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",p))}return(i||a)&&(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})),a&&(r=o,l=c,g.isReactWarning=!0,Object.defineProperty(r,"ref",{get:g,configurable:!0}))),rw(e,i,a,s,u,I0.current,o)}function ow(e){return"object"==typeof e&&null!==e&&e.$$typeof===c0}var iw=".",aw=":",sw=!1,uw=/\/+/g;function cw(e){return(""+e).replace(uw,"$&/")}var lw=10,fw=[];function pw(e,t,r,n){var o;return fw.length?((o=fw.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 dw(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,fw.length<lw&&fw.push(e)}function hw(e,t,r){return null==e?0:function e(t,r,n,o){var i,a=typeof t,s=!1;if(null===(t="undefined"!=a&&"boolean"!=a?t:null))s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case c0:case l0:s=!0}}if(s)return n(o,t,""===r?iw+yw(t,0):r),1;var u=0,c=""===r?iw:r+aw;if(Array.isArray(t))for(var l=0;l<t.length;l++)u+=e(i=t[l],c+yw(i,l),n,o);else if("function"==typeof(r=N0(t))){r===t.entries&&(sw||F0("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."),sw=!0);for(var f,p=r.call(t),d=0;!(f=p.next()).done;)u+=e(i=f.value,c+yw(i,d++),n,o)}else if("object"==a)throw r="",r=" If you meant to render a collection of children, use an array instead."+D0.getStackAddendum(),a=""+t,Error("Objects are not valid as a React child (found: "+("[object Object]"==a?"object with keys {"+Object.keys(t).join(", ")+"}":a)+")."+r);return u}(e,"",t,r)}function yw(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 vw(e,t,r){var n=e.func,o=e.context;n.call(o,t,e.count++)}function gw(e,t,r){var n=e.result,o=e.keyPrefix,i=e.func,a=e.context,i=i.call(a,t,e.count++);Array.isArray(i)?mw(i,n,r,function(e){return e}):null!=i&&(ow(i)&&(e=o+(!(a=i).key||t&&t.key===i.key?"":cw(i.key)+"/")+r,i=rw(a.type,e,a.ref,a._self,a._source,a._owner,a.props)),n.push(i))}function mw(e,t,r,n,o){var i="",t=pw(t,i=null!=r?cw(r)+"/":i,n,o);hw(e,gw,t),dw(t)}function ww(e){return"string"==typeof e||"function"==typeof e||e===f0||e===v0||e===d0||e===p0||e===m0||e===w0||"object"==typeof e&&null!==e&&(e.$$typeof===b0||e.$$typeof===E0||e.$$typeof===h0||e.$$typeof===y0||e.$$typeof===g0||e.$$typeof===_0||e.$$typeof===O0||e.$$typeof===R0||e.$$typeof===T0)}function Ew(){var e=C0.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 bw(){if(I0.current){var e=P0(I0.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var Tw=!1,_w={};function Ow(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=bw())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),_w[t=r]||(_w[t]=!0,r="",e&&e._owner&&e._owner!==I0.current&&(r=" It was passed a child from "+P0(e._owner.type)+"."),j0(e),M('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',t,r),j0(null)))}function Rw(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];ow(n)&&Ow(n,t)}else if(ow(e))e._store&&(e._store.validated=!0);else if(e){var o=N0(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)ow(i.value)&&Ow(i.value,t)}}function Sw(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=P0(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==g0&&t.$$typeof!==E0)return;r=t.propTypes}r?(j0(e),u0(r,e.props,"prop",n,D0.getStackAddendum),j0(null)):void 0===t.PropTypes||Tw||(Tw=!0,M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Aw(e,t,r){var n,o=ww(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+".":"")||bw(),null===e?a="null":Array.isArray(e)?a="array":void 0!==e&&e.$$typeof===c0?(a="<"+(P0(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,M("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",a,n)),nw.apply(this,arguments));if(null==t)return t;if(o)for(var i=2;i<arguments.length;i++)Rw(arguments[i],e);if(e===f0){var a=t;j0(a);for(var s=Object.keys(a.props),u=0;u<s.length;u++){var c=s[u];if("children"!==c&&"key"!==c){M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c);break}}null!==a.ref&&M("Invalid attribute `ref` supplied to `React.Fragment`."),j0(null)}else Sw(t);return t}var Nw=!1;try{var Cw=Object.freeze({}),Iw=new Map([[Cw,null]]),kw=new Set([Cw]);Iw.set(0,0),kw.add(0)}catch(e){}function xw(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=s0({},e.props),a=e.key,s=e.ref,u=e._self,c=e._source,l=e._owner;if(null!=t)for(n in Q0(t)&&(s=t.ref,l=I0.current),ew(t)&&(a=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)Z0.call(t,n)&&!J0.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 rw(e.type,a,s,u,c,l,i)}.apply(this,arguments),o=2;o<arguments.length;o++)Rw(arguments[o],n.type);return Sw(n),n}function Pw(e){var t=Aw.bind(null,e);return t.type=e,Nw||(Nw=!0,F0("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 F0("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}b=Aw,x.Children={map:function(e,t,r){if(null==e)return e;var n=[];return mw(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=pw(null,null,t,r),hw(e,vw,t),dw(t)},count:function(e){return hw(e,function(){return null},null)},toArray:function(e){var t=[];return mw(e,t,null,function(e){return e}),t},only:function(e){if(ow(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},x.Component=G0,x.Fragment=f0,x.Profiler=d0,x.PureComponent=X0,x.StrictMode=p0,x.Suspense=m0,x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L0,x.cloneElement=xw,x.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&M("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:y0,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:h0,_context:r}),o=!1,t={$$typeof:y0,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return o||(o=!0,M("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,M("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}}}),r.Consumer=t,r._currentRenderer=null,r._currentRenderer2=null,r},x.createElement=b,x.createFactory=Pw,x.createRef=function(){var e={current:null};return Object.seal(e),e},x.forwardRef=function(e){return null!=e&&e.$$typeof===E0?M("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?M("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&M("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null==e||null==e.defaultProps&&null==e.propTypes||M("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:g0,render:e}},x.isValidElement=ow,x.lazy=function(e){var t,r,n={$$typeof:b0,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){M("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){M("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},x.memo=function(e,t){return ww(e)||M("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:E0,type:e,compare:void 0===t?null:t}},x.useCallback=function(e,t){return Ew().useCallback(e,t)},x.useContext=function(e,t){var r,n=Ew();return void 0!==t&&M("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context&&((r=e._context).Consumer===e?M("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&M("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},x.useDebugValue=function(e,t){return Ew().useDebugValue(e,t)},x.useEffect=function(e,t){return Ew().useEffect(e,t)},x.useImperativeHandle=function(e,t,r){return Ew().useImperativeHandle(e,t,r)},x.useLayoutEffect=function(e,t){return Ew().useLayoutEffect(e,t)},x.useMemo=function(e,t){return Ew().useMemo(e,t)},x.useReducer=function(e,t,r){return Ew().useReducer(e,t,r)},x.useRef=function(e){return Ew().useRef(e)},x.useState=function(e){return Ew().useState(e)},x.version="16.14.0"}"production"===production?D.exports=o:D.exports=x;var Dw=D.exports,Mw=D.exports.createContext({hackle:void 0,user:void 0,initialized:!1}),Fr=Mw.Consumer,jw=Mw.Provider;var Lw=f.Logger.log;function Fw(e,t){e=Uw(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function Uw(e,t){void 0===t&&(t="A");var r=D.exports.useContext(Mw),n=r.hackle,o=r.user,i=r.initialized,a=D.exports.useCallback(function(){return i?(null==n?void 0:n.variationDetail(e,o))||f.Decision.of(t,f.DecisionReason.EXCEPTION):f.Decision.of(t,f.DecisionReason.SDK_NOT_READY)},[t,e,o,n,i]),r=mm(D.exports.useState(function(){return n?a():(Lw.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2),s=r[0],r=r[1],u={key:e,user:o,initialized:i},c=mm(D.exports.useState(u),2),l=c[0],c=c[1];return Kw(l,u)||(c(u),r(a())),{isLoading:!i,decision:s}}function Vw(e){e=Hw(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function Hw(e){var t=D.exports.useContext(Mw),r=t.hackle,n=t.user,o=t.initialized,i=D.exports.useCallback(function(){return o?(null==r?void 0:r.featureFlagDetail(e,n))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION):f.FeatureFlagDecision.off(f.DecisionReason.SDK_NOT_READY)},[e,n,r,o]),t=mm(D.exports.useState(function(){return r?i():(Lw.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2),a=t[0],t=t[1],s={key:e,user:n,initialized:o},u=mm(D.exports.useState(s),2),c=u[0],u=u[1];return Kw(c,s)||(u(s),t(i())),{isLoading:!o,decision:a}}function Kw(e,t){var r,n,o;return e.initialized===t.initialized&&e.key===t.key&&(null==(r=e.user)?void 0:r.id)===(null==(r=t.user)?void 0:r.id)&&(e=null==(r=e.user)?void 0:r.properties,t=null==(r=t.user)?void 0:r.properties,n=zw(e),o=zw(t),e=Object.keys(n),t=Object.keys(o),e.length===t.length&&e.every(function(e){return e in o&&n[e]===o[e]}))}function zw(e){return"object"==typeof e&&null!==e?e:{}}function Gw(e){var t,r=e.experimentKey,e=e.children,n=(r=Fw(r)).isLoading,o=r.variation;return n?null:e&&"function"==typeof e?e(o):(D.exports.Children.forEach(e,function(e){D.exports.isValidElement(e)&&(e.props.variation?o===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?D.exports.cloneElement(t,{variation:o}):null)}function Bw(e){return e.variation,e=e.children,D.exports.createElement(D.exports.Fragment,null,e)}function qw(e){var t=(r=Vw(e.featureKey)).isLoading,r=r.isOn;return t?null:Dw.createElement(Dw.Fragment,null,e.children(r))}f.HackleContext=Mw,f.HackleContextConsumer=Fr,f.HackleContextProvider=jw,f.HackleExperiment=Gw,f.HackleFeature=qw,f.HackleProvider=function(e){var t=e.hackleClient,r=e.user,n=void 0===(o=e.timeout)?3e3:o,o=void 0!==(o=e.supportSSR)&&o,e=e.children,i=mm(D.exports.useState({hackle:t,user:r,initialized:!1}),2),a=i[0],s=i[1];return D.exports.useEffect(function(){s(function(e){return gm(gm({},e),{user:r})})},[r]),D.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){s(function(e){return gm(gm({},e),{initialized:!0})})},function(){s(function(e){return gm(gm({},e),{initialized:!0})})}).catch(function(){s(function(e){return gm(gm({},e),{initialized:!0})})})},[t]),o||a.initialized?Dw.createElement(jw,{value:a},e):null},f.HackleVariation=Bw,f.createInstance=function(e,t){return new wm(e,t)},f.useFeature=function(e){var t=(n=D.exports.useContext(Mw)).hackle,r=n.user,n=n.initialized,o=D.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e,r))||!1},[e,r,t,n]),i=(a=mm(D.exports.useState(function(){return t?o():("undefined"!=typeof window&&Lw.error("HackleClient is not existed"),!1)}),2))[0],a=a[1],n={key:e,user:r,initialized:n},s=(u=mm(D.exports.useState(n),2))[0],u=u[1];return Kw(s,n)||(u(n),a(o())),i},f.useFeatureFlagDetail=function(e){var t=(n=D.exports.useContext(Mw)).hackle,r=n.user,n=n.initialized,o=D.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e,r))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION)},[e,r,t,n]),i=(a=mm(D.exports.useState(function(){return t?o():("undefined"!=typeof window&&Lw.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2))[0],a=a[1],n={key:e,user:r,initialized:n},s=(u=mm(D.exports.useState(n),2))[0],u=u[1];return Kw(s,n)||(u(n),a(o())),i},f.useLoadableFeature=Vw,f.useLoadableFeatureDetail=Hw,f.useLoadableVariation=Fw,f.useLoadableVariationDetail=Uw,f.useTrack=function(){var e=D.exports.useContext(Mw),t=e.hackle,r=e.user;return t?function(e){return null==t?void 0:t.track(e,r)}:(Lw.error("HackleClient is not existed"),function(){})},f.useVariation=function(e,t){void 0===t&&(t="A");var r=(s=D.exports.useContext(Mw)).hackle,n=s.user,o=s.initialized,i=D.exports.useCallback(function(){return o&&(null==r?void 0:r.variation(e,n))||t},[t,e,n,r,o]),a=(s=mm(D.exports.useState(function(){return r?i():("undefined"!=typeof window&&Lw.error("HackleClient is not existed"),t)}),2))[0],s=s[1],u={key:e,user:n,initialized:o},c=(l=mm(D.exports.useState(u),2))[0],l=l[1];return Kw(c,u)||(l(u),s(i())),a},f.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(o=D.exports.useContext(Mw)).hackle,n=o.user,o=o.initialized,i=D.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e,n))||f.Decision.of(t,f.DecisionReason.EXCEPTION)},[t,e,n,r,o]),a=(s=mm(D.exports.useState(function(){return r?i():("undefined"!=typeof window&&Lw.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2))[0],s=s[1],o={key:e,user:n,initialized:o},u=(c=mm(D.exports.useState(o),2))[0],c=c[1];return Kw(u,o)||(c(o),s(i())),a},Object.defineProperty(f,"__esModule",{value:!0})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hackler/react-sdk",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.4.0",
|
|
4
4
|
"description": "React SDK for Hackle",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Hackle",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"url": "https://github.com/hackle-io/hackle-javascript-sdk/issues"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@hackler/javascript-sdk": "11.
|
|
42
|
+
"@hackler/javascript-sdk": "11.4.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.8.0"
|