(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[1145],{841145(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$:()=>c,A:()=>i});var t=__webpack_require__(67659);var e=__webpack_require__(833081);var r=__webpack_require__(298166);var a=__webpack_require__.n(r);var n=__webpack_require__(440869);var l=__webpack_require__(204680);function c(){let r=(0,e.wA)();let[c,i]=(0,t.useState)(!1);let[s,u]=(0,t.useState)(null);let o=(0,e.d4)(l.Zi);return{enableMetametrics:(0,t.useCallback)(async()=>{i(!0),r((0,n.gG)()),u(null);try{await r((0,n.crU)(!0)),o===!1&&await r((0,n.VKK)(!0))}catch(t){throw u(t instanceof Error?t.message:"An unexpected error occurred"),a().error(t),t}finally{i(!1),r((0,n.R_M)())}r((0,n.R_M)())},[r,o]),loading:c,error:s}}function i(){let r=(0,e.wA)();let[a,l]=(0,t.useState)(!1);let[c,i]=(0,t.useState)(null);return{disableMetametrics:(0,t.useCallback)(async()=>{l(!0),r((0,n.gG)()),i(null);try{await r((0,n.crU)(!1))}catch(t){throw i(t instanceof Error?t.message:"An unexpected error occurred"),t}finally{l(!1),r((0,n.R_M)())}r((0,n.R_M)())},[r]),loading:a,error:c}}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()}}]);