1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`3dcc281a8e79fff17adf3e75579634b27b7debb6`}}catch{}})();try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`9bc7745b-4154-4b3f-99bd-3f38da7fd811`,e._sentryDebugIdIdentifier=`sentry-dbid-9bc7745b-4154-4b3f-99bd-3f38da7fd811`)})()}catch{}import{i as e,s as t}from"./rolldown-runtime-Dm_dodAQ.js";import{A as a,k as o,n as s}from"./dist-kP4lwCLB.js";import{$n as c,Bl as m,Co as h,Dl as _,Do as w,E as T,Fl as D,Fo as O,Hr as k,Ja as A,Jo as ee,Ka as j,Ki as M,Ko as te,Mn as F,Mo as ne,Mu as re,Nl as ie,Nn as ae,Nr as I,Nt as oe,Ol as se,Ou as ce,Qt as le,Ri as ue,Rn as de,Rr as fe,Sa as pe,So as me,Sr as he,Ta as ge,Uo as _e,Ur as ve,Wi as ye,Xi as be,Xo as xe,Xu as Se,Yi as Ce,Yl as we,Yo as Te,Zl as Ee,Zu as De,_o as Oe,ad as ke,ai as Ae,as as R,cc as je,cu as Me,di as Ne,dn as Pe,ds as Fe,ed as Ie,eo as Le,er as Re,es as ze,eu as Be,gc as Ve,gu as He,hc as Ue,hi as We,ho as Ge,is as Ke,jn as qe,jo as Je,lc as Ye,ln as Xe,m as Ze,ma as Qe,n as $e,os as et,pa as it,pc as ot,pn as st,qo as ct,r as lt,rd as ut,rs as dt,si as ft,so as St,t as Tt,td as Dt,to as Ot,tr as kt,ts as jt,vc as Ft,vd as Rt,vi as zt,vo as Bt,wa as Ht,xa as Ut,xo as Kt,xr as Jt,zi as Yt,zr as Xt}from"./formatInstrumentName-BdL2ER9e.js";import{t as Zt}from"./toPropertyKey-DNtqID5a.js";var $t=`[object Map]`,en=`[object Set]`,tn=Object.prototype.hasOwnProperty;function isEmpty$2(e){if(e==null)return!0;if(ke(e)&&(Rt(e)||typeof e==`string`||typeof e.splice==`function`||Ie(e)||De(e)||Dt(e)))return!e.length;var t=ce(e);if(t==$t||t==en)return!e.size;if(ut(e))return!Se(e).length;for(var a in e)if(tn.call(e,a))return!1;return!0}e(isEmpty$2,`isEmpty`);var nn=He(function(e,t,a){e[+!a].push(t)},function(){return[[],[]]});function parseScope(e){let t=e.split(` `).reduce((e,t)=>{let[a,o]=t.split(`:`);return{...e,[a]:o}},{}),a=[`account`,`block_trade`,`trade`,`wallet`,`block_rfq`].reduce((e,a)=>({...e,[a]:{read:t[a]?t[a].includes(`read`):!1,write:t[a]?t[a].includes(`write`):!1}}),{});return a.mainaccount=`mainaccount`in t,a.impersonated=`impersonated`in t,a}var rn=[`announcements`,`book`,`chart`,`deribit_price_index`,`deribit_price_ranking`,`deribit_price_statistics`,`deribit_volatility_index`,`estimated_expiration_price`,`incremental_ticker`,`instrument`,`markprice`,`perpetual`,`platform_state`,`quote`,`rfq`,`ticker`,`trades`,`volume`],an=[{shortName:`custody_account`,requiredScope:`account`},{shortName:`user.portfolio`,requiredScope:`account`},{shortName:`user.isolated.portfolio`,requiredScope:`account`},{shortName:`user.max_buying_power`,requiredScope:`trade`},{shortName:`user.margin_loans`,requiredScope:`account`},{shortName:`user.trailing_orders.trigger_price`,requiredScope:`trade`},{shortName:`user.orders`,requiredScope:`trade`},{shortName:`user.trades`,requiredScope:`trade`},{shortName:`user.changes`,requiredScope:`trade`},{shortName:`user.isolated.orders`,requiredScope:`trade`},{shortName:`user.isolated.trades`,requiredScope:`trade`},{shortName:`user.isolated.changes`,requiredScope:`trade`},{shortName:`user.isolated.trailing_orders.trigger_price`,requiredScope:`trade`},{shortName:`user.access_log`,requiredScope:`account`},{shortName:`user.account_balance_review`,requiredScope:`account`},{shortName:`address_book`,requiredScope:`wallet`},{shortName:`deposit`,requiredScope:`wallet`},{shortName:`withdrawal`,requiredScope:`wallet`},{shortName:`transfer`,requiredScope:`wallet`},{shortName:`block_trade_confirmations`,requiredScope:`block_trade`},{shortName:`block_rfq`,requiredScope:`block_rfq`}];function isPublicSubscription(e){return rn.indexOf(e.split(`.`)[0])!==-1}function isPrivateSubscription(e){return!isPublicSubscription(e)}function isChannelForbidden(e,t){let a=an.find(t=>e.includes(t.shortName))?.requiredScope;return a?parseScope(t?.scope||``)[a].read===!1:!1}function isDeribitError(e){return!!(e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`message`)&&Object.prototype.hasOwnProperty.call(e,`code`))}function isNotImplementedError(e){return isDeribitError(e)&&e.code===-32601}function isAmountInContracts({instrument:e}){let{isLinear:t,isLinearOption:a,isOptionCombo:o}=Ft.splitInstrument(e)||{};return a||t&&o}function resolveInstrumentData(e){return Ft.getInstrumentData(e)??Ft.getSyntheticInstrumentData(e)}function getAmountInContracts(e,t){let a=resolveInstrumentData(e)?.contract_size||1;return D(t,a)}
1function getContractsStep(e){let{contract_size:t=1,min_trade_amount:a}=resolveInstrumentData(e)||{};return D(a,t)}function normalizeStarbaseOpenOrder(e){let t=getAmountInContracts(e.instrument_name,e.amount);return{kind:`starbase`,order_id:String(e.starbase_order_id),starbase_order_id:e.starbase_order_id,instrument_name:e.instrument_name,direction:e.direction,amount:e.amount,price:e.price,order_state:e.order_state,order_type:`limit`,filled_amount:0,contracts:t,time_in_force:`good_til_cancelled`,reduce_only:!1,profit_loss:0,post_only:!1,max_show:e.amount,last_update_timestamp:e.creation_timestamp,label:``,creation_timestamp:e.creation_timestamp,commission:0,average_price:0,api:!1,web:!1,replaced:!1,mmp:!1,risk_reducing:!1}}function getDeribitStarbaseOrderIds(e){let t=new Set;for(let a of Object.values(e))for(let e of Object.values(a))e.starbase_order_id!=null&&!Ue(e)&&t.add(e.starbase_order_id);return t}function removePureStarbaseOrders(e){for(let t of Object.keys(e)){let a=e[t];for(let[e,t]of Object.entries(a))Ue(t)&&delete a[e];Object.keys(a).length===0&&delete e[t]}}function removePureStarbaseOrderByStarbaseId(e,t){for(let a of Object.keys(e)){let o=e[a];for(let[e,a]of Object.entries(o))Ue(a)&&a.starbase_order_id===t&&delete o[e];Object.keys(o).length===0&&delete e[a]}}function preserveUnmatchedPureStarbaseOrders(e,t){let a=getDeribitStarbaseOrderIds(t);for(let[o,s]of Object.entries(e))for(let[e,c]of Object.entries(s))Ue(c)&&!a.has(c.starbase_order_id)&&(t[o]||(t[o]={}),t[o][e]=c)}function mergeStarbaseOrdersIntoOpenOrders(e,t){removePureStarbaseOrders(e);let a=getDeribitStarbaseOrderIds(e);for(let o of t){if(a.has(o.starbase_order_id))continue;let t=normalizeStarbaseOpenOrder(o),{instrument_name:s,order_id:c}=t;e[s]||(e[s]={}),e[s][c]=t}}var getBlockTradeId=e=>`${e.timestamp}-${e.nonce}`,removeFromTriggerOrders=(e,t,a)=>{let o=e.triggerOrders[t];o&&(delete o[a],Object.keys(o).length===0&&delete e.triggerOrders[t])},removeFromOpenOrders=(e,t,a)=>{let o=e.openOrders[t];o&&(delete o[a],Object.keys(o).length===0&&delete e.openOrders[t])},shouldRemoveOrder=e=>{let t=e.order_state.split(`:`)[0];return t===Be.cancelled||e.amount===e.filled_amount||!ot(e)&&[`rejected`,`triggered`].includes(t)},shouldIgnoreOrderEvent=e=>{if(e.is_secondary_oto){let[t,a]=e.order_state.split(`:`);return t===Be.rejected&&a===`amount_too_small`}return!1},findFormerPrimaryOrderOfSecondary=(e,t)=>{let a=Object.values(e||{}).find(e=>e.oto_order_ids?.includes(t.order_id));if(a?.oto_order_ids?.every(t=>!e?.[t]))return a},isBlockTradePending=({state:e,counterparty_state:t})=>e.value===`initial`||t?.value!==`rejected`,isNotExpired=({expires_at:e})=>e>Date.now(),findExistingTradeIndex=(e,t)=>e.findIndex(e=>getBlockTradeId(e)===getBlockTradeId(t)),updateTradeList=(e,t)=>{let a=findExistingTradeIndex(e,t),o=[...e];return a>-1?o[a]=t:isBlockTradePending(t)&&(o=[t,...e]),o},on=3e5;function setExpiryTimestamp(e){return{...e,expires_at:e.expires_at??e.timestamp+3e5}}var flipLegDirection=e=>({...e,direction:e.direction===`buy`?`sell`:`buy`});function getTransformedBrokerTrade(e){let t=`role`in e&&e.role===`taker`?e.trades.map(flipLegDirection):e.trades,[a,o]=nn(t,e=>Ft.isFutureInstrument(e.instrument_name)),s=`combo_id`in e?e?.combo_id:e?.trades[0]?.combo_id,c=e.trades.length===1?e.trades[0].instrument_name:``,m=setExpiryTimestamp(e),h={...Me(m,`trades`),combo_id:s||c};return a.length===1&&o.length?{...h,legs:o,hedgeLeg:a[0]}:{...h,legs:t,hedgeLeg:void 0}}var isBrokerTrade=e=>`broker_code`in e,sn=Ye(),userLocksSelector=e=>e.user.userLocks;(0,sn.createCachedSelector)(userLocksSelector,(e,t)=>t,(e,t)=>e[t]||{locked:!1})((e,t)=>t);var cn={systemName:``,username:``,email:``,coinbaseEmail:``,id:0,countryCode:``,allowBackend:!1,directAccessEnabled:!1,disableKycVerification:!1,securityKeysEnabled:!1,type:``,showWelcomeMessage:!1,showSecurityMessage:!1,showVerificationMessage:!1,openOrders:{},triggerOrders:{},accountSummaries:{},positions:{},portfolio:null,marginBuffer:null,estimatedLiquidationRatioMap:{},scope:{},enabledFeatures:[],userLocks:{},riskProfile:{max_leverage:null,portfolio_margining_allowed:!0,short_option_allowed:!0},isPositionLocked:!1,walletType:{},mmpTriggers:{},custody:{},depositAddress:{BTC:{address:``},ETH:{address:``},USDC:{address:``}},accountSettings:{emailLanguage:Ee.EN,emailMarginCall:!0,emailAutoliquidation:!0,emailRebalance:!0,activateSafeSessionDuration:!1,ipPinning:!1,emailSettingsChanged:!1,googleLogin:!0,appleLogin:!0},lastLoginInfo:{timestamp:0,ip:``,city:``,country:``},limits:{limits_per_currency:!1,matching_engine:{cancel_all:{burst:0,rate:0},spot:{burst:0,rate:0},trading:{total:{burst:0,rate:0}}},non_matching_engine:{burst:0,rate:0}},pendingBlockTrades:[],brokerTradeRequests:[],brokerTrades:[],blockRfq:{open:{block_rfqs:[],continuation:null},quotes:{}},portfolioMarginingEnabled:!1,interuserTransfersEnabled:!1,loginEnabled:!1,creationTimestamp:Date.now(),componentsSett
1ings:{},isGettingAllOpenOrders:!1,isGettingAccountSummary:!1,isGettingPositions:!1,isGettingDepositAddress:!1,isGettingEmailLanguage:!1,isGettingAccountSettings:!1,isBlockRfqMaker:!1,withdrawalDelay:0,mandatoryTfa:!1,securityKeys:[],linkedBrokers:[],brokerMainAccountClients:[],brokerSubaccountsClients:[],hasBrokerHistory:!1,subaccounts:[],userLegalInfo:void 0,availableCurrencies:void 0},ln=_(`user/fetchOrders`,(e,t)=>{let{deribitClient:a}=t.extra;return a.getOpenOrders()}),un=_(`user/fetchStarbaseOpenOrders`,(e,t)=>{let{deribitClient:a}=t.extra;return a.getStarbaseOpenOrders()}),dn=_(`user/fetchAccountSummary`,(e,t)=>{let{deribitClient:a}=t.extra;return a.getAccountSummaries({extended:!0})}),fn=_(`user/fetchPositions`,(e,t)=>{let{deribitClient:a}=t.extra;try{return a.getPositionsByCurrency({currency:`any`})}catch(e){throw console.debug(e,a.getErrorLogs()),e}}),pn=_(`user/fetchCustody`,async(e,t)=>{let{deribitClient:a}=t.extra;return await a.getListCustodyAccounts({currency:e})}),mn=_(`user/fetchLastLoginInfo`,async(e,t)=>{let{deribitClient:a}=t.extra;return(await a.getAccessLog()).data}),hn=_(`user/changeSubaccountName`,async(e,t)=>{let{deribitClient:a}=t.extra;return{requestParams:e,response:await a.changeSubaccountName(e)}}),gn=_(`users/fetchAccountSettings`,async(e,t)=>{let{deribitClient:a}=t.extra;return await a.getAccountSettings()}),_n=_(`users/setAccountSettings`,async(e,t)=>{let{deribitClient:a}=t.extra;return await a.setAccountSettings(e)}),vn=_(`users/fetchEmailLanguage`,async(e,t)=>{let{deribitClient:a}=t.extra;return await a.getEmailLanguage()}),yn=_(`users/setEmailLanguage`,async(e,t)=>{let{deribitClient:a}=t.extra;return await a.setEmailLanguage(e),e}),bn=_(`users/setSelfTradingRejectMode`,async(e,t)=>{let{deribitClient:a}=t.extra;return await a.setSelfTradingRejectMode(e),e}),xn=_(`user/fetchScope`,async(e,t)=>{let{deribitClient:a}=t.extra;return a.getScopeStringFromAuthData()||``}),Sn=_(`user/fetchEnabledFeatures`,async(e,t)=>{let{deribitClient:a}=t.extra;return a.getEnabledFeaturesFromAuthData()||[]}),Cn=_(`user/togglePortfolioMargining`,async(e,t)=>{let{deribitClient:a}=t.extra;return{requestParams:e,response:await a.togglePortfolioMargining(e)}}),wn=_(`user/changeMarginModel`,async(e,t)=>{let{deribitClient:a}=t.extra;return{requestParams:e,response:await a.changeMarginModel(e)}}),Tn=_(`user/fetchUserLocks`,async(e,t)=>{let{deribitClient:a}=t.extra;return await a.getUserLocks()}),En=_(`user/prepareUserLockedData`,async({currency:e,locked:t},a)=>{let o=je(a.getState()),s=userLocksSelector(a.getState()),c=e===`ALL`?o:[e],m=!1,h=!1;t?c.some(e=>!s[e]?.locked)&&(m=!0):c.some(e=>s[e]?.locked)&&(h=!0),m&&a.dispatch(Tn()),h&&a.dispatch(Gn.removeLock(c))}),Dn=_(`user/fetchRiskProfile`,(e,t)=>{let{deribitClient:a}=t.extra;return a.getRiskProfile()}),On=_(`user/getWithdrawalDelay`,async(e,t)=>{let{deribitClient:a}=t.extra;return await a.getWithdrawalDelay()}),kn=_(`user/getPendingBlockTrades`,async(e,t)=>{let{deribitClient:a}=t.extra;try{return await a.getPendingBlockTrades()}catch(e){if(isNotImplementedError(e)||isDeribitError(e)&&e.data.reason===`required scope block_trade:read`)return[];throw e}}),An=_(`user/getBlockRfqUserInfo`,async(e,t)=>{let{deribitClient:a}=t.extra;return await a.getBlockRfqUserInfo()}),jn=_(`user/getBlockRfqs`,async(e,t)=>{let{deribitClient:a}=t.extra;try{return{open:await a.getBlockRfqs({state:`open`,count:100}),quotes:(await async function(){try{return await a.getBlockRfqQuotes()}catch(e){return(!isDeribitError(e)||e.code!==13009)&&console.log(e),[]}}()).reduce((e,t)=>({...e,[t.block_rfq_id]:[...e[t.block_rfq_id]||[],t]}),{})}}catch(e){if(isNotImplementedError(e))return{open:{block_rfqs:[],continuation:null},quotes:{}};throw e}}),Mn=_(`user/getSecurityKeys`,async(e,t)=>{let{deribitClient:a}=t.extra;return(await a.listSecurityKeys()).sort((e,t)=>t.timestamp-e.timestamp)}),Nn=_(`user/getBrokerProfile`,(e,t)=>{let{deribitClient:a}=t.extra;return a.getBrokerProfile()}),Pn=_(`user/getLinkedBrokers`,(e,t)=>{let{deribitClient:a}=t.extra;return a.getLinkedBrokers()}),Fn=_(`user/getBrokerClients`,(e,t)=>{let{deribitClient:a}=t.extra;return a.getBrokerClients({include_subaccounts:!0})}),In=_(`user/editBrokerLink`,(e,t)=>{let{deribitClient:a}=t.extra;return a.editLinkedBroker(e)}),Ln=_(`user/toggleBrokerCorporateIdentityVisibility`,async(e,t)=>{let{deribitClient:a}=t.extra;await a.toggleBrokerCorporateIdentityVisibility(e)}),Rn=_(`user/getBrokerHistory`,(e,t)=>{let{deribitClient:a}=t.extra;return a.getBrokerHistory({count:1})}),zn=_(`user/getBrokerTradeRequests`,(e,t)=>{let{deribitClient:a}=t.extra;return a.getBrokerTradeRequests()}),Bn=_(`user/fetchSubaccounts`,(e,t)=>{let{deribitClient:a}=t.extra;return a.getSubaccounts()}),Vn=_(`user/fetchUserLegalInfo`,(e,t)=>{let{deribitClient:a}=t.extra;return a.getUserLegalInfo()}),Hn=_(`user/setEligibilityBlocker`,async({entity:e,reason:t},a)=>{let{deribitClient:o}=a.extra;return o.setEligibilityBlocker({entity:e,reason:t})}),Un=_(`users/fetchAvailableCurrencies`,(e,t)=>{let{deribitClient:a}=t.extra;return a.getAvailableCurrencies()}),Wn=se({name:`user`,initialState:cn,reducers:{getScope:(e,t)=>{e.scope=t.payload},updatePositions:(e,t)=>{let a=t.payload;a!==void 0&&a.forEach(t=>{t.size===0?e.positions[t.instrument_name]&&delete e.positions[t.instrument_name]:e.positions[t.instrument_name]=t})},updateOrders:(e,t)=>{let a=t.payload;a!==void 0&&a.forEach(t=>{let a=t.instrument_name;if(!shouldIgnoreOrderEvent(t)){if(shouldRemoveOrder(t)){if(removeFromTriggerOrders(e,a,t.order_id),removeFromOpenOrders(e,a,t.order_id),t.is_secondary_oto){let o=findFormerPrimaryOrderOfSecondary({...e.openOrders[a],...e.triggerOrders[a]},t);o&&(delete o.oto_order_ids,delete o.is_primary_otoco)}}else Ve(t)?(removeFromOpenOrders(e,a,t.order_id),e.triggerOrders[a]||
1(e.triggerOrders[a]={}),e.triggerOrders[a][t.order_id]=t):(removeFromTriggerOrders(e,a,t.order_id),t.starbase_order_id!=null&&removePureStarbaseOrderByStarbaseId(e.openOrders,t.starbase_order_id),e.openOrders[a]||(e.openOrders[a]={}),e.openOrders[a][t.order_id]=t)}})},updatePortfolio:(e,t)=>{let a=t.payload;e.portfolio??={},e.portfolio[a.currency]=a,a.cross_collateral_enabled&&(e.portfolio.CROSS=a),a.available_withdrawal_funds<0&&(e.portfolio[a.currency].available_withdrawal_funds=0),e.estimatedLiquidationRatioMap={...e.estimatedLiquidationRatioMap,...a.estimated_liquidation_ratio_map}},updateMarginBuffer:(e,t)=>{t.payload.margin_buffer_calculations===`disabled`?e.marginBuffer=null:(e.marginBuffer={},e.marginBuffer.CROSS=t.payload)},updateIsPositionLocked:(e,t)=>{e.isPositionLocked=t.payload},setWalletType:(e,t)=>{e.walletType=t.payload},addMmpTrigger:(e,t)=>{let{index_name:a,frozen_until:o,block_rfq:s,mmp_group:c=`Default`}=t.payload;e.mmpTriggers[c]??={},e.mmpTriggers[c][a]={frozenUntil:o,block_rfq:s}},removeMmpTrigger:(e,t)=>{let{mmp_group:a,index_name:o}=t.payload;e.mmpTriggers[a]&&(delete e.mmpTriggers[a][o],isEmpty$2(e.mmpTriggers[a])&&delete e.mmpTriggers[a])},updateCustody:(e,t)=>{let a={},o=t.payload;if(o.name===we.COPPER){let t=o;a={...e.custody,copper:t}}else if(o.name===we.COBO){let t=o;a={...e.custody,cobo:t}}e.custody=a},updatePendingBlockTrades:(e,t)=>{let a=t.payload;isBrokerTrade(a)?e.brokerTrades=updateTradeList(e.brokerTrades,a):e.pendingBlockTrades=updateTradeList(e.pendingBlockTrades,a)},updateBrokerTradeRequests:(e,t)=>{let a=t.payload,o=e.brokerTradeRequests.findIndex(e=>getBlockTradeId(e)===getBlockTradeId(a));o>-1?e.brokerTradeRequests[o]=a:e.brokerTradeRequests=[a,...e.brokerTradeRequests]},updateBlockRfqs:(e,t)=>{let a=t.payload;if(a.state===`open`){let t=e.blockRfq.open.block_rfqs.findIndex(e=>e.block_rfq_id===a.block_rfq_id);t>-1?(e.blockRfq.open.block_rfqs[t].role!==`taker`||a.role===`taker`)&&(e.blockRfq.open.block_rfqs[t]=a):e.blockRfq.open.block_rfqs=[a,...e.blockRfq.open.block_rfqs]}else e.blockRfq.open.block_rfqs=e.blockRfq.open.block_rfqs.filter(e=>e.block_rfq_id!==a.block_rfq_id)},updateBlockRfqQuotes:(e,t)=>{t.payload.forEach(t=>{if(t.quote_state===`cancelled`)e.blockRfq.quotes[t.block_rfq_id]=e.blockRfq.quotes[t.block_rfq_id].filter(e=>e.block_rfq_quote_id!==t.block_rfq_quote_id);else if(t.quote_state===`open`){let a=e.blockRfq.quotes?.[t.block_rfq_id]?.findIndex(e=>e.block_rfq_quote_id===t.block_rfq_quote_id);a>-1?e.blockRfq.quotes[t.block_rfq_id][a]=t:e.blockRfq.quotes[t.block_rfq_id]=[...e.blockRfq.quotes[t.block_rfq_id]||[],t]}})},clearUserData:()=>cn,setExpiredBrokerTradeRequestsById:(e,t)=>{e.brokerTradeRequests=e.brokerTradeRequests.map(e=>t.payload.includes(getBlockTradeId(e))?{...e,request_state:`expired`}:e)},setExpiredBrokerTradesById:(e,t)=>{e.brokerTrades=e.brokerTrades.map(e=>t.payload.includes(getBlockTradeId(e))?{...e,request_state:`expired`}:e)},setShowWelcomeMessage:(e,t)=>{e.showWelcomeMessage=t.payload},setShowVerificationMessage:(e,t)=>{e.showVerificationMessage=t.payload},setShowSecurityMessage:(e,t)=>{e.showSecurityMessage=t.payload},setCountryCode:(e,t)=>{e.countryCode=t.payload},removeLock:(e,t)=>{t.payload.forEach(t=>{e.userLocks[t]={locked:!1,message:``,currency:t}})},setSubaccounts:(e,t)=>{e.subaccounts=t.payload.map(({portfolio:e,...t})=>t)}},extraReducers:e=>{e.addCase(Tn.fulfilled,(e,t)=>{e.userLocks=t.payload.reduce((e,t)=>(e[t.currency]={...t,message:t.message||``},e),{})}).addCase(ln.fulfilled,(e,t)=>{let a=t.payload.reduce((e,t)=>(e[t.order_id]=t,e),{}),o={},s={};Object.keys(a).forEach(e=>{let t=a[e],c=t.instrument_name;Ve(t)?(o[c]||(o[c]={}),o[c][e]=t):(s[c]||(s[c]={}),s[c][e]=t)}),preserveUnmatchedPureStarbaseOrders(e.openOrders,s),e.openOrders=s,e.triggerOrders=o}).addCase(ln.rejected,e=>{e.openOrders={},e.triggerOrders={}}).addCase(un.fulfilled,(e,t)=>{mergeStarbaseOrdersIntoOpenOrders(e.openOrders,t.payload.orders)}).addCase(un.rejected,e=>{removePureStarbaseOrders(e.openOrders)}).addCase(dn.fulfilled,(e,t)=>{e.username=t.payload.username,e.systemName=t.payload.system_name,e.email=t.payload.email,e.coinbaseEmail=t.payload.coinbase_email??``,e.id=t.payload.id,e.type=t.payload.type,e.limits=t.payload.summaries[0].limits,e.portfolioMarginingEnabled=t.payload.summaries[0].portfolio_margining_enabled,e.creationTimestamp=t.payload.creation_timestamp,e.interuserTransfersEnabled=t.payload.interuser_transfers_enabled,e.loginEnabled=t.payload.type===`main`||!!t.payload.login_enabled,e.allowBacken
1d=!!t.payload.allow_backend,e.directAccessEnabled=!!t.payload.is_direct_access_allowed,e.disableKycVerification=!!t.payload.disable_kyc_verification,e.selfTradingRejectMode=t.payload.self_trading_reject_mode,e.blockRfqSelfMatchPrevention=t.payload.block_rfq_self_match_prevention,e.selfTradingExtendedToSubaccounts=t.payload.self_trading_extended_to_subaccounts,e.changeMarginModelApiLimit=t.payload.change_margin_model_api_limit,e.securityKeysEnabled=t.payload.security_keys_enabled,e.mandatoryTfa=t.payload.mandatory_tfa;let a=!!t.payload.retail_broker_uid;e.isRetailBroker=t.payload.is_retail_broker||a,e.retailBrokerUid=t.payload.retail_broker_uid;let o=t.payload.summaries.map(e=>[e.currency,e]);e.accountSummaries=Object.fromEntries(o),t.payload.summaries.forEach(({account_balance_review:t})=>{t&&(e.marginBuffer={...e.marginBuffer,CROSS:t})})}).addCase(fn.fulfilled,(e,t)=>{e.positions=t.payload.reduce((e,t)=>(t.size!==0&&(e[t.instrument_name]=t),e),{})}).addCase(fn.rejected,e=>{e.positions={}}).addCase(xn.fulfilled,(e,t)=>{e.scope=parseScope(t.payload)}).addCase(Sn.fulfilled,(e,t)=>{e.enabledFeatures=t.payload}).addCase(gn.fulfilled,(e,t)=>{e.accountSettings.emailMarginCall=t.payload.email_margin_call,e.accountSettings.emailAutoliquidation=t.payload.email_autoliquidation,e.accountSettings.emailRebalance=t.payload.email_rebalance,e.accountSettings.activateSafeSessionDuration=t.payload.activate_safe_session_duration,e.accountSettings.ipPinning=t.payload.ip_pinning,e.accountSettings.emailSettingsChanged=t.payload.email_settings_changed,e.accountSettings.googleLogin=t.payload.google_login,e.accountSettings.appleLogin=t.payload.apple_login}).addCase(gn.rejected,e=>{e.accountSettings=cn.accountSettings}).addCase(_n.fulfilled,(e,t)=>{e.accountSettings.emailMarginCall=t.payload.email_margin_call,e.accountSettings.emailAutoliquidation=t.payload.email_autoliquidation,e.accountSettings.emailRebalance=t.payload.email_rebalance,e.accountSettings.activateSafeSessionDuration=t.payload.activate_safe_session_duration,e.accountSettings.ipPinning=t.payload.ip_pinning,e.accountSettings.emailSettingsChanged=t.payload.email_settings_changed,e.accountSettings.googleLogin=t.payload.google_login,e.accountSettings.appleLogin=t.payload.apple_login}).addCase(Dn.fulfilled,(e,t)=>{e.riskProfile=t.payload}).addCase(vn.fulfilled,(e,t)=>{e.accountSettings.emailLanguage=t.payload}).addCase(vn.rejected,e=>{e.accountSettings.emailLanguage=cn.accountSettings.emailLanguage}).addCase(yn.fulfilled,(e,t)=>{e.accountSettings.emailLanguage=t.payload.language}).addCase(bn.fulfilled,(e,t)=>{e.selfTradingRejectMode=t.payload.mode,e.selfTradingExtendedToSubaccounts=t.payload.extended_to_subaccounts,e.blockRfqSelfMatchPrevention=t.payload.block_rfq_self_match_prevention}).addCase(pn.fulfilled,(e,t)=>{let a=t.payload;Array.isArray(a)&&(e.custody=a.reduce((e,t)=>t?.name?{...e,[t.name]:t}:e,{}))}).addCase(mn.fulfilled,(e,t)=>{let a=t.payload.filter(e=>e.log===`success`)[1];if(a){let{timestamp:t,ip:o,city:s,country:c}=a;e.lastLoginInfo.timestamp=t,e.lastLoginInfo.ip=o,e.lastLoginInfo.city=s,e.lastLoginInfo.country=c}}).addCase(mn.rejected,e=>{e.lastLoginInfo=cn.lastLoginInfo}).addCase(hn.fulfilled,(e,t)=>{let{response:a,requestParams:o}=t.payload;if(a!==`ok`){console.log(`Change subaccount name error`);return}e.id===o.sid&&(e.username=o.name)}).addCase(Cn.fulfilled,(e,t)=>{let{response:a,requestParams:o}=t.payload;Array.isArray(a)&&(e.portfolioMarginingEnabled=o.enabled)}).addCase(wn.fulfilled,(e,t)=>{let{response:a,requestParams:o}=t.payload;if(Array.isArray(a)&&e.portfolio){let t=o.margin_model.includes(`_pm`);for(let a of Object.keys(e.portfolio))e.portfolio[a].margin_model=o.margin_model,e.portfolio[a].portfolio_margining_enabled=t;e.portfolioMarginingEnabled=t}}).addCase(On.fulfilled,(e,t)=>{e.withdrawalDelay=t.payload.value}).addCase(kn.fulfilled,(e,t)=>{let a=t.payload,o=[],s=[];a.forEach(e=>{let t=setExpiryTimestamp(e);isBlockTradePending(t)&&(isBrokerTrade(t)?isNotExpired(t)&&s.push(t):o.push(t))}),e.pendingBlockTrades=o,e.brokerTrades=s}).addCase(jn.fulfilled,(e,t)=>{e.blockRfq={open:t.payload.open,quotes:t.payload.quotes}}).addCase(An.fulfilled,(e,t)=>{let a=e.id,o=t.payload,s=o.users.find(e=>e.user_id===a),c=!!o.parent?.is_maker,m=!!s?.is_maker;e.blockRfqUserInfo=o,e.isBlockRfqMaker=m||c}).addCase(Nn.fulfilled,(e,t)=>{t.payload.state&&(e.brokerProfile=t.payload)}).addCase(In.fulfilled,(e,t)=>{if(t.payload.state===`pending`)e.linkedBrokers.push(t.payload);else{let a=e.linkedBrokers.findIndex(e=>e.broker_code===t.payload.broker_code);a!==-1&&(e.linkedBrokers[a]=t.payload)}}).addCase(Ln.fulfilled,(e,t)=>{let{broker_code:a,lei_visible:o,brn_visible:s}=t.meta.arg,c=e.linkedBrokers.findIndex(e=>e.broker_code===a);c!==-1&&(e.linkedBrokers[c].lei_visible=o,e.linkedBrokers[c].brn_visible=s)}).addCase(Pn.fulfilled,(e,t)=>{e.linkedBrokers=t.payload.links}).addCase(Rn.fulfilled,(e,t)=>{e.hasBrokerHistory=!!t.payload.history.length}).addCase(Mn.fulfilled,(e,t)=>{e.securityKeys=t.payload}).addCase(zn.fulfilled,(e,t)=>{e.brokerTradeRequests=t.payload.requests.map(setExpiryTimestamp).filter(e=>isNotExpired(e))}).addCase(Fn.fulfilled,(e,t)=>{let[a,o]=nn(t.payload,e=>e.broker_sub_user_id===void 0);e.brokerMainAccountClients=a,e.brokerSubaccountsClients=o}).addCase(Bn.fulfilled,(e,t)=>{e.subaccounts=t.payload}).addCase(Vn.fulfilled,(e,t)=>{e.userLegalInfo=t.payload}).addCase(Hn.fulfilled,(e,t)=>{e.userLegalInfo=t.payload}).addCase(Un.fulfilled,(e,t)=>{e.availableCurrencies=t.payload})}}),Gn=Wn.actions,Kn={fetchAccountSettings:gn,fetchAccountSummary:dn,fetchCustody:pn,fetchEmailLanguage:vn,setEmailLanguage:yn,setSelfTradingRejectMode:bn,fetchLastLoginInfo:mn,fetchOrders:ln,fetchStarbaseOpenOrders:un,fetchPositions:fn,changeSubaccountName:hn,setAccountSettings:_n,fetchScope:xn,fetchEnabledFeatures:Sn,togglePortfolioMargining:Cn,changeMarginModel:wn,prepareUserLockedData:En,fetchUserLocks:Tn,fetchRiskProfile:Dn,fetchWithdrawalDelay:On,fetchPendingBlockTrades:kn,fetchBlockRfqs:jn,fetchBlockRfqUserInfo:An,fetchSecurityKeys:Mn,fetchBrokerProfile:Nn,editLinkedBroker:In,toggleBrokerCorporateIdentityVisibility:Ln,fetchLinkedBrokers:Pn,fetchBrokerHistory:Rn,fetchBrokerTradeRequests:zn,fetchBrokerClients:Fn,fetchSubaccounts:Bn,fetchUserLegalInfo:Vn,setEligibilityBlocker:Hn,fetchAvailableCurrencies:Un},qn=Wn.reducer;et(),Ke(),ct(),_e(),Je(),w();var Jn=[`ownerState`],Yn=[`variants`],Xn=[`name`,`slot`,`skipVariantsResolver`,`skipSx`,`overridesResolver`];function isEmpty$1(e){return Object.keys(e).length===0}e(isEmpty$1,`isEmpty`);function isStringTag(e){return typeof e==`string`&&e.charCodeAt(0)>96}function shouldForwardProp(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function shallowLayer(e,t){return t&&e&&typeof e==`object`&&e.styles&&
1!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}var Zn=ne(),lowercaseFirstLetter=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function resolveTheme({defaultTheme:e,theme:t,themeId:a}){return isEmpty$1(t)?e:t[a]||t}function defaultOverridesResolver(e){return e?(t,a)=>a[e]:null}function processStyleArg(e,t,a){let{ownerState:o}=t,s=dt(t,Jn),c=typeof e==`function`?e(R({ownerState:o},s)):e;if(Array.isArray(c))return c.flatMap(e=>processStyleArg(e,R({ownerState:o},s),a));if(c&&typeof c==`object`&&Array.isArray(c.variants)){let{variants:e=[]}=c,t=dt(c,Yn);return e.forEach(e=>{let c=!0;if(typeof e.props==`function`?c=e.props(R({ownerState:o},s,o)):Object.keys(e.props).forEach(t=>{o?.[t]!==e.props[t]&&s[t]!==e.props[t]&&(c=!1)}),c){Array.isArray(t)||(t=[t]);let c=typeof e.style==`function`?e.style(R({ownerState:o},s,o)):e.style;t.push(a?shallowLayer(Te(c),a):c)}}),t}return a?shallowLayer(Te(c),a):c}function createStyled(e={}){let{themeId:t,defaultTheme:a=Zn,rootShouldForwardProp:o=shouldForwardProp,slotShouldForwardProp:s=shouldForwardProp}=e,systemSx=e=>O(R({},e,{theme:resolveTheme(R({},e,{defaultTheme:a,themeId:t}))}));return systemSx.__mui_systemSx=!0,(e,c={})=>{ee(e,e=>e.filter(e=>!(e!=null&&e.__mui_systemSx)));let{name:m,slot:h,skipVariantsResolver:_,skipSx:w,overridesResolver:T=defaultOverridesResolver(lowercaseFirstLetter(h))}=c,D=dt(c,Xn),O=m&&m.startsWith(`Mui`)||h?`components`:`custom`,k=_===void 0?h&&h!==`Root`&&h!==`root`||!1:_,A=w||!1,j,M=shouldForwardProp;h===`Root`||h===`root`?M=o:h?M=s:isStringTag(e)&&(M=void 0);let F=xe(e,R({shouldForwardProp:M,label:j},D)),transformStyleArg=e=>typeof e==`function`&&e.__emotion_real!==e||te(e)?o=>{let s=resolveTheme({theme:o.theme,defaultTheme:a,themeId:t});return processStyleArg(e,R({},o,{theme:s}),s.modularCssLayers?O:void 0)}:e,muiStyledResolver=(o,...s)=>{let c=transformStyleArg(o),h=s?s.map(transformStyleArg):[];m&&T&&h.push(e=>{let o=resolveTheme(R({},e,{defaultTheme:a,themeId:t}));if(!o.components||!o.components[m]||!o.components[m].styleOverrides)return null;let s=o.components[m].styleOverrides,c={};return Object.entries(s).forEach(([t,a])=>{c[t]=processStyleArg(a,R({},e,{theme:o}),o.modularCssLayers?`theme`:void 0)}),T(e,c)}),m&&!k&&h.push(e=>{var o;let s=resolveTheme(R({},e,{defaultTheme:a,themeId:t}));return processStyleArg({variants:s==null||(o=s.components)==null||(o=o[m])==null?void 0:o.variants},R({},e,{theme:s}),s.modularCssLayers?`theme`:void 0)}),A||h.push(systemSx);let _=h.length-s.length;if(Array.isArray(o)&&_>0){let e=Array(_).fill(``);c=[...o,...e],c.raw=[...o.raw,...e]}let w=F(c,...h);return e.muiName&&(w.muiName=e.muiName),w};return F.withConfig&&(muiStyledResolver.withConfig=F.withConfig),muiStyledResolver}}var Qn=createStyled(),H=t(o());Yt();var W=a(),$n=ue((0,W.jsx)(`path`,{d:`M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Close`);Le(),j(),Ht(),Qe(),be(),ye(),Ut(),Oe();function getDialogUtilityClass(e){return Bt(`MuiDialog`,e)}var er=pe(`MuiDialog`,[`root`,`scrollPaper`,`scrollBody`,`container`,`paper`,`paperScrollPaper`,`paperScrollBody`,`paperWidthFalse`,`paperWidthXs`,`paperWidthSm`,`paperWidthMd`,`paperWidthLg`,`paperWidthXl`,`paperFullWidth`,`paperFullScreen`]),tr=H.createContext({});Ke(),et();var nr=[`aria-describedby`,`aria-labelledby`,`BackdropComponent`,`BackdropProps`,`children`,`className`,`disableEscapeKeyDown`,`fullScreen`,`fullWidth`,`maxWidth`,`onBackdropClick`,`onClick`,`onClose`,`open`,`PaperComponent`,`PaperProps`,`scroll`,`TransitionComponent`,`transitionDuration`,`TransitionProps`],rr=Ot(k,{name:`MuiDialog`,slot:`Backdrop`,overrides:(e,t)=>t.backdrop})({zIndex:-1}),ir=e(e=>{let{classes:t,scroll:a,maxWidth:o,fullWidth:s,fullScreen:c}=e,m={root:[`root`],container:[`container`,`scroll${Ce(a)}`],paper:[`paper`,`paperScroll${Ce(a)}`,`paperWidth${Ce(String(o))}`,s&&`paperFullWidth`,c&&`paperFullScreen`]};return ge(m,getDialogUtilityClass,t)},`useUtilityClasses`),ar=Ot(I,{name:`MuiDialog`,slot:`Root`,overridesResolver:(e,t)=>t.root})({"@media print":{position:`absolute !important`}}),or=Ot(`div`,{name:`MuiDialog`,slot:`Container`,overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.container,t[`scroll${Ce(a.scroll)}`]]}})(({ownerState:e})=>R({height:`100%`,"@media print":{height:`auto`},outline:0},e.scroll===`paper`&&{display:`flex`,justifyContent:`center`,alignItems:`center`},e.scroll===`body`&&{overflowY:`auto`,overflowX:`hidden`,textAlign:`center`,"&::after":{content:`""`,display:`inline-block`,verticalAlign:`middle`,height:`100%`,width:`0`}})),sr=Ot(Ne,{name:`MuiDialog`,slot:`Paper`,overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.paper,t[`scrollPaper${Ce(a.scroll)}`],t[`paperWidth${Ce(String(a.maxWidth))}`],a.fullWidth&&t.paperFullWidth,a.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>R({margin:32,position:`relative`,overflowY:`auto`,"@media print":{overflowY:`visible`,boxShadow:`none`}},t.scroll===`paper`&&{display:`flex`,flexDirection:`column`,maxHeight:`calc(100% - 64px)`},t.scroll===`body`&&{display:`inline-block`,verticalAlign:`middle`,textAlign:`left`},!t.maxWidth&&{maxWidth:`calc(100% - 64px)`},t.maxWidth===`xs`&&{maxWidth:e.breakpoints.unit===`px`?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${er.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:`calc(100% - 64px)`}}},t.maxWidth&&t.maxWidth!==`xs`&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${er.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:`calc(100% - 64px)`}}},t.fullWidth&&{width:`calc(100% - 64px)`},t.fullScreen&&{margin:0,width:`100%`,maxWidth:`100%`,height:`100%`,maxHeight:`none`,borderRadius:0,[`&.${er.paperScrollBody}`]:{margin:0,maxWidth:`100%`}})),cr=H.forwardRef(function Dialog(e,t){let a=M({props:e,name:`MuiDialog`}),o=St(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":c,"aria-labelledby":m,BackdropComponent:h,BackdropProps:_,children:w,className:T,disableEscapeKeyDown:D=!1,fullScreen:O=!1,fullWidth:k=!1,maxWidth:ee=`sm`,onBackdropClick:j,onClick:te,onClose:F,open:ne,PaperComponent:re=Ne,PaperProps:ie={},scroll:ae=`paper`,TransitionComponent:I=ve,transitionDuration:oe=s,TransitionProps:se}=a,ce=dt(a,nr),le=R({},a,{disableEscapeKeyDown:D,fullScreen:O,fullWidth:k,maxWidth:ee,scroll:ae}),ue=ir(le),de=H.useRef(),handleMouseDown=e=>{de.current=e.target===e.currentTarget},handleBackdropClick=e=>{te&&te(e),de.current&&(de.current=null,j&&j(e),F&&F(e,`backdropClick`))},fe=A(m),pe=H.useMemo(()=>({titleId:fe}),[fe]);return(0,W.jsx)(ar,R({className:it(ue.root,T),closeAfterTransition:!0,components:{Backdrop:rr},componentsProps:{backdrop:R({transitionDuration:oe,as:h},_)},disableEscapeKeyDown:D,onClose:F,open:ne,ref:t,onClick:handleBackdropClick,ownerState:le},ce,{children:(0,W.jsx)(I,R({appear:!0,in:ne,timeout:oe,role:`presentation`},se,{children:(0,W.jsx)(or,{className:it(ue.container),onMouseDown:handleMouseDown,ownerState:le,children:(0,W.jsx)(sr,R({as:re,elevation:24,role:`dialog`,"aria-describedby":c,"aria-labelledby":fe},ie,{className:it(ue.paper,ie.className),ownerState:le,children:(0,W.jsx)(tr.Provider,{value:pe,children:w})}))})}))}))});Ut(),Oe();function getDialogActionsUtilityClass(e){return Bt(`MuiDialogActions`,e)}pe(`MuiDialogActions`,[`root`,`spacing`]),Ke(),et(),Qe(),Ht(),Le(),ye();var lr=[`className`,`disableSpacing`],ur=e(e=>{let{classes:t,disableSpacing:a}=e;return ge({root:[`root`,!a&&`spacing`]},getDialogActionsUtilityClass,t)},`useUtilityClasses`),dr=Ot(`div`,{name:`MuiDialogActions`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,!a.disableSpacing&&t.spacing]}})(({ownerState:e})=>R({display:`flex`,alignItems:`center`,padding:8,justifyContent:`flex-end`,flex:`0 0 auto`},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),fr=H.forwardRef(function DialogActions(e,t){let a=M({props:e,name:`MuiDialogActions`}),{className:o,disableSpacing:s=!1}=a,c=dt(a,lr),m=R({},a,{disableSpacing:s}),h=ur(m);return(0,W.jsx)(dr,R({className:it(h.root,o),ownerState:m,ref:t},c))});Ut(),Oe();function getDialogContentUtilityClass(e){return Bt(`MuiDialogContent`,e)}var pr=pe(`MuiDialogContent`,[`root`,`dividers`]);Ut(),Oe();function getDialogTitleUtilityClass(e){return Bt(`MuiDialogTitle`,e)}var mr=pe(`MuiDialogTitle`,[`root`]);Ke(),et(),Qe(),Ht(),Le(),ye();var hr=[`className`,`dividers`],gr=e(e=>{let{classes:t,dividers:a}=e;return ge({root:[`root`,a&&`dividers`]},getDialogContentUtilityClass,t)},`useUtilityClasses`),_r=Ot(`div`,{name:`MuiDialogContent`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,a.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>R({flex:`1 1 auto`,WebkitOverflowScrolling:`touch`,overflowY:`auto`,padding:`20px 24px`},t.dividers?{padding:`16px 24px`,borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${mr.root} + &`]:{paddingTop:0}})),vr=H.forwardRef(function DialogContent(e,t){let a=M({props:e,name:`MuiDialogContent`}),{className:o,dividers:s=!1}=a,c=dt(a,hr),m=R({},a,{dividers:s}),h=gr(m);return(0,W.jsx)(_r,R({className:it(h.root,o),ownerState:m,ref:t},c))});et(),Ke(),Qe(),Ht(),Le(),ye();var yr=[`className`,`id`],br=e(e=>{let{classes:t}=e;return ge({root:[`root`]},getDialogTitleUtilityClass,t)},`useUtilityClasses`),xr=Ot(Ae,{name:`MuiDialogTitle`,slot:`Root`,overridesResolver:(e,t)=>t.root})({padding:`16px 24px`,flex:`0 0 auto`}),Sr=H.forwardRef(function DialogTitle(e,t){let a=M({props:e,name:`MuiDialogTitle`}),{className:o,id:s}=a,c=dt(a,yr),m=a,h=br(m),{titleId:_=s}=H.useContext(tr);return(0,W.jsx)(xr,R({component:`h2`,className:it(h.root,o),ownerState:m,ref:t,variant:`h6`,id:s??_},c))});
1Ke(),et(),Qe(),Ht();var Cr=Ge();be(),Le(),ye();var wr=[`className`,`color`,`edge`,`size`,`sx`],useUtilityClasses=e=>{let{classes:t,edge:a,size:o,color:s,checked:m,disabled:h}=e,_={root:[`root`,a&&`edge${Ce(a)}`,`size${Ce(o)}`],switchBase:[`switchBase`,`color${Ce(s)}`,m&&`checked`,h&&`disabled`],thumb:[`thumb`],track:[`track`],input:[`input`]},w=ge(_,c,t);return R({},t,w)},Tr=Ot(`span`,{name:`MuiSwitch`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,a.edge&&t[`edge${Ce(a.edge)}`],t[`size${Ce(a.size)}`]]}})({display:`inline-flex`,width:58,height:38,overflow:`hidden`,padding:12,boxSizing:`border-box`,position:`relative`,flexShrink:0,zIndex:0,verticalAlign:`middle`,"@media print":{colorAdjust:`exact`},variants:[{props:{edge:`start`},style:{marginLeft:-8}},{props:{edge:`end`},style:{marginRight:-8}},{props:{size:`small`},style:{width:40,height:24,padding:7,[`& .${Re.thumb}`]:{width:16,height:16},[`& .${Re.switchBase}`]:{padding:4,[`&.${Re.checked}`]:{transform:`translateX(16px)`}}}}]}),Er=Ot(fe,{name:`MuiSwitch`,slot:`SwitchBase`,overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.switchBase,{[`& .${Re.input}`]:t.input},a.color!=="default"&&t[`color${Ce(a.color)}`]]}})(({theme:e})=>({position:`absolute`,top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode===`light`?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create([`left`,`transform`],{duration:e.transitions.duration.shortest}),[`&.${Re.checked}`]:{transform:`translateX(20px)`},[`&.${Re.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode===`light`?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Re.checked} + .${Re.track}`]:{opacity:.5},[`&.${Re.disabled} + .${Re.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode===`light`?.12:.2}`},[`& .${Re.input}`]:{left:`-100%`,width:`300%`}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Cr.alpha)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:`transparent`}},variants:[...Object.entries(e.palette).filter(([,e])=>e.main&&e.light).map(([t])=>({props:{color:t},style:{[`&.${Re.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Cr.alpha)(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${Re.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode===`light`?(0,Cr.lighten)(e.palette[t].main,.62):(0,Cr.darken)(e.palette[t].main,.55)}`}},[`&.${Re.checked} + .${Re.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),Dr=Ot(`span`,{name:`MuiSwitch`,slot:`Track`,overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:`100%`,width:`100%`,borderRadius:7,zIndex:-1,transition:e.transitions.create([`opacity`,`background-color`],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode===`light`?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode===`light`?.38:.3}`})),Or=Ot(`span`,{name:`MuiSwitch`,slot:`Thumb`,overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:`currentColor`,width:20,height:20,borderRadius:`50%`})),kr=H.forwardRef(function Switch(e,t){let a=M({props:e,name:`MuiSwitch`}),{className:o,color:s=`primary`,edge:c=!1,size:m=`medium`,sx:h}=a,_=dt(a,wr),w=R({},a,{color:s,edge:c,size:m}),T=useUtilityClasses(w),D=(0,W.jsx)(Or,{className:T.thumb,ownerState:w});return(0,W.jsxs)(Tr,{className:it(T.root,o),sx:h,ownerState:w,children:[(0,W.jsx)(Er,R({type:`checkbox`,icon:D,checkedIcon:D,ref:t,ownerState:w},_,{classes:R({},T,{root:T.switchBase})})),(0,W.jsx)(Dr,{className:T.track,ownerState:w})]})});Yt();var Ar=ue((0,W.jsx)(`path`,{d:`M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z`}),`KeyboardArrowDown`);Yt();
1var jr=ue((0,W.jsx)(`path`,{d:`M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z`}),`KeyboardArrowUp`);Yt();var Mr=ue((0,W.jsx)(`path`,{d:`M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z`}),`Sync`),Nr=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Pr=(typeof window>`u`?`undefined`:Nr(window))===`object`&&(typeof document>`u`?`undefined`:Nr(document))===`object`&&document.nodeType===9;function _defineProperties(e,t){for(var a=0;a<t.length;a++){var o=t[a];o.enumerable=o.enumerable||!1,o.configurable=!0,`value`in o&&(o.writable=!0),Object.defineProperty(e,Zt(o.key),o)}}function _createClass(e,t,a){return t&&_defineProperties(e.prototype,t),a&&_defineProperties(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}et(),Ke();var Fr={}.constructor;function cloneStyle(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(cloneStyle);if(e.constructor!==Fr)return e;var t={};for(var a in e)t[a]=cloneStyle(e[a]);return t}function createRule(e,t,a){e===void 0&&(e=`unnamed`);var o=a.jss,s=cloneStyle(t);return o.plugins.onCreateRule(e,s,a)||(e[0],null)}var Ir=function join(e,t){for(var a=``,o=0;o<e.length&&e[o]!==`!important`;o++)a&&(a+=t),a+=e[o];return a},Lr=function toCssValue(e){if(!Array.isArray(e))return e;var t=``;if(Array.isArray(e[0]))for(var a=0;a<e.length&&e[a]!==`!important`;a++)t&&(t+=`, `),t+=Ir(e[a],` `);else t=Ir(e,`, `);
1return e[e.length-1]===`!important`&&(t+=` !important`),t};function getWhitespaceSymbols(e){return e&&e.format===!1?{linebreak:``,space:``}:{linebreak:` 2`,space:` `}}function indentStr(e,t){for(var a=``,o=0;o<t;o++)a+=` `;return a+e}function toCss(e,t,a){a===void 0&&(a={});var o=``;if(!t)return o;var s=a.indent,c=s===void 0?0:s,m=t.fallbacks;a.format===!1&&(c=-1/0);var h=getWhitespaceSymbols(a),_=h.linebreak,w=h.space;if(e&&c++,m){if(Array.isArray(m))for(var T=0;T<m.length;T++){var D=m[T];for(var O in D){var k=D[O];k!=null&&(o&&(o+=_),o+=indentStr(O+`:`+w+Lr(k)+`;`,c))}}else for(var A in m){var ee=m[A];ee!=null&&(o&&(o+=_),o+=indentStr(A+`:`+w+Lr(ee)+`;`,c))}}for(var j in t){var M=t[j];M!=null&&j!==`fallbacks`&&(o&&(o+=_),o+=indentStr(j+`:`+w+Lr(M)+`;`,c))}return!o&&!a.allowEmpty||!e?o:(c--,o&&=``+_+o+_,indentStr(``+e+w+`{`+o,c)+indentStr(`}`,c))}var Rr=/([[\].#*$><+~=|^:(),"'`\s])/g,zr=typeof CSS<`u`&&CSS.escape,escape=(function(e){return zr?zr(e):e.replace(Rr,`\\$1`)}),Br=function(){function BaseStyleRule(e,t,a){this.type=`style`,this.isProcessed=!1;var o=a.sheet,s=a.Renderer;this.key=e,this.options=a,this.style=t,o?this.renderer=o.renderer:s&&(this.renderer=new s)}var e=BaseStyleRule.prototype;return e.prop=function prop(e,t,a){if(t===void 0)return this.style[e];var o=a?a.force:!1;if(!o&&this.style[e]===t)return this;var s=t;(!a||a.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(t,e,this));var c=s==null||s===!1,m=e in this.style;if(c&&!m&&!o)return this;var h=c&&m;if(h?delete this.style[e]:this.style[e]=s,this.renderable&&this.renderer)return h?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,s),this;var _=this.options.sheet;return _&&_.attached,this},BaseStyleRule}(),Vr=function(e){zt(StyleRule,e);function StyleRule(t,a,o){var s=e.call(this,t,a,o)||this,c=o.selector,m=o.scoped,h=o.sheet,_=o.generateId;return c?s.selectorText=c:m!==!1&&(s.id=_(We(We(s)),h),s.selectorText=`.`+escape(s.id)),s}var t=StyleRule.prototype;return t.applyTo=function applyTo(e){var t=this.renderer;if(t){var a=this.toJSON();for(var o in a)t.setProperty(e,o,a[o])}return this},t.toJSON=function toJSON(){var e={};for(var t in this.style){var a=this.style[t];typeof a==`object`?Array.isArray(a)&&(e[t]=Lr(a)):e[t]=a}return e},t.toString=function toString(e){var t=this.options.sheet,a=t&&t.options.link?R({},e,{allowEmpty:!0}):e;return toCss(this.selectorText,this.style,a)},_createClass(StyleRule,[{key:`selector`,set:function set(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,a=this.renderable;!a||!t||t.setSelector(a,e)||t.replaceRule(a,this)}},get:function get(){return this.selectorText}}]),StyleRule}(Br),Hr={onCreateRule:function onCreateRule(e,t,a){return e[0]===`@`||a.parent&&a.parent.type===`keyframes`?null:new Vr(e,t,a)}},Ur={indent:1,children:!0},Wr=/@([\w-]+)/,Gr=function(){function ConditionalRule(e,t,a){this.type=`conditional`,this.isProcessed=!1,this.key=e;var o=e.match(Wr);for(var s in this.at=o?o[1]:`unknown`,this.query=a.name||`@`+this.at,this.options=a,this.rules=new mi(R({},a,{parent:this})),t)this.rules.add(s,t[s]);this.rules.process()}var e=ConditionalRule.prototype;return e.getRule=function getRule(e){return this.rules.get(e)},e.indexOf=function indexOf(e){return this.rules.indexOf(e)},e.addRule=function addRule(e,t,a){var o=this.rules.add(e,t,a);return o?(this.options.jss.plugins.onProcessRule(o),o):null},e.replaceRule=function replaceRule(e,t,a){var o=this.rules.replace(e,t,a);return o&&this.options.jss.plugins.onProcessRule(o),o},e.toString=function toString(e){e===void 0&&(e=Ur);var t=getWhitespaceSymbols(e).linebreak;if(e.indent??(e.indent=Ur.indent),e.children??(e.children=Ur.children),e.children===!1)return this.query+` {}`;var a=this.rules.toString(e);return a?this.query+` {`+t+a+t+`}`:``},ConditionalRule}(),Kr=/@container|@media|@supports\s+/,qr={onCreateRule:function onCreateRule(e,t,a){return Kr.test(e)?new Gr(e,t,a):null}},Jr={indent:1,children:!0},Yr=/@keyframes\s+([\w-]+)/,Xr=function(){function KeyframesRule(e,t,a){this.type=`keyframes`,this.at=`@keyframes`,this.isProcessed=!1;var o=e.match(Yr);this.name=o&&o[1]?o[1]:`noname`,this.key=this.type+`-`+this.name,this.options=a;var s=a.scoped,c=a.sheet,m=a.generateId;for(var h in this.id=s===!1?this.name:escape(m(this,c)),this.rules=new mi(R({},a,{parent:this})),t)this.rules.add(h,t[h],R({},a,{parent:this}));this.rules.process()}var e=KeyframesRule.prototype;return e.toString=function toString(e){e===void 0&&(e=Jr);var t=getWhitespaceSymbols(e).linebreak;if(e.indent??(e.indent=Jr.indent),e.children??(e.children=Jr.children),e.children===!1)return this.at+` `+this.id+` {}`;var a=this.rules.toString(e);return a&&=``+t+a+t,this.at+` `+this.id+` {`+a+`}`},KeyframesRule}(),Zr=/@keyframes\s+/,Qr=/\$([\w-]+)/g,$r=function findReferencedKeyframe(e,t){return typeof e==`string`?e.replace(Qr,function(e,a){return a in t?t[a]:e}):e},ei=function replaceRef(e,t,a){var o=e[t],s=$r(o,a);s!==o&&(e[t]=s)},ti={onCreateRule:function onCreateRule(e,t,a){return typeof e==`string`&&Zr.test(e)?new Xr(e,t,a):null},onProcessStyle:function onProcessStyle(e,t,a){return t.type!==`style`||!a?e:(`animation-name`in e&&ei(e,`animation-name`,a.keyframes),`animation`in e&&ei(e,`animation`,a.keyframes),e)},onChangeValue:function onChangeValue(e,t,a){var o=a.options.sheet;if(!o)return e;switch(t){case`animation`:return $r(e,o.keyframes);case`animation-name`:return $r(e,o.keyframes);default:return e}}},ni=function(e){zt(KeyframeRule,e);function KeyframeRule(){return e.apply(this,arguments)||this}var t=KeyframeRule.prototype;return t.toString=function toString(e){var t=this.options.sheet,a=t&&t.options.link?R({},e,{allowEmpty:!0}):e;return toCss(this.key,this.style,a)},KeyframeRule}(Br),ri={onCreateRule:function onCreateRule(e,t,a){return a.parent&&a.parent.type===`keyframes`?new ni(e,t,a):null}},ii=function(){function FontFaceRule(e,t,a){this.type=`font-face`,this.at=`@font-face`,this.isProcessed=!1,this.key=e,this.style=t,this.options=a}var e=FontFaceRule.prototype;return e.toString=function toString(e){var t=getWhitespaceSymbols(e).linebreak;if(Array.isArray(this.style)){for(var a=``,o=0;o<this.style.length;o++)a+=toCss(this.at,this.style[o]),this.style[o+1]&&(a+=t);return a}return toCss(this.at,this.style,e)},FontFaceRule}(),ai=/@font-face/,oi={onCreateRule:function onCreateRule(e,t,a){return ai.test(e)?new ii(e,t,a):null}},si=function(){function ViewportRule(e,t,a){this.type=`viewport`,this.at=`@viewport`,this.isProcessed=!1,this.key=e,this.style=t,this.options=a}var e=ViewportRule.prototype;return e.toString=function toString(e){return toCss(this.key,this.style,e)},ViewportRule}(),ci={onCreateRule:function onCreateRule(e,t,a){return e===`@viewport`||e===`@-ms-viewport`?new si(e,t,a):null}},li=function(){function SimpleRule(e,t,a){this.type=`simple`,this.isProcessed=!1,this.key=e,this.value=t,this.options=a}var e=SimpleRule.prototype;return e.toString=function toString(e){if(Array.isArray(this.value)){for(var t=``,a=0;a<this.value.length;a++)t+=this.key+` `+this.value[a]+`;`,this.value[a+1]&&(t+=` 3`);return t}return this.key+` `+this.value+`;`},SimpleRule}(),ui={"@charset":!0,"@import":!0,"@namespace":!0},di=[Hr,qr,ti,ri,oi,ci,{onCreateRule:function onCreateRule(e,t,a){return e in ui?new li(e,t,a):null}}],fi={process:!0},pi={force:!0,process:!0},mi=function(){function RuleList(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var e=RuleList.prototype;return e.add=function add(e,t,a){var o=this.options,s=o.parent,c=o.sheet,m=o.jss,h=o.Renderer,_=o.generateId,w=o.scoped,T=R({classes:this.classes,parent:s,sheet:c,jss:m,Renderer:h,generateId:_,scoped:w,name:e,keyframes:this.keyframes,selector:void 0},a),D=e;e in this.raw&&(D=e+`-d`+this.counter++),this.raw[D]=t,D in this.classes&&(T.selector=`.`+escape(this.classes[D]));var O=createRule(D,t,T);if(!O)return null;this.register(O);var k=T.index===void 0?this.index.length:T.index;return this.index.splice(k,0,O),O},e.replace=function replace(e,t,a){var o=this.get(e),s=this.index.indexOf(o);o&&this.remove(o);var c=a;return s!==-1&&(c=R({},a,{index:s})),this.add(e,t,c)},e.get=function get(e){return this.map[e]},e.remove=function remove(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},e.indexOf=function indexOf(e){return this.index.indexOf(e)},e.process=function process(){var e=this.options.jss.plugins;
3this.index.slice(0).forEach(e.onProcessRule,e)},e.register=function register(e){this.map[e.key]=e,e instanceof Vr?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Xr&&this.keyframes&&(this.keyframes[e.name]=e.id)},e.unregister=function unregister(e){delete this.map[e.key],e instanceof Vr?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Xr&&delete this.keyframes[e.name]},e.update=function update(){var e,t,a;if(typeof(arguments.length<=0?void 0:arguments[0])==`string`?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],a=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],a=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,a);else for(var o=0;o<this.index.length;o++)this.updateOne(this.index[o],t,a)},e.updateOne=function updateOne(e,t,a){a===void 0&&(a=fi);var o=this.options,s=o.jss.plugins,c=o.sheet;if(e.rules instanceof RuleList){e.rules.update(t,a);return}var m=e.style;if(s.onUpdate(t,e,c,a),a.process&&m&&m!==e.style){for(var h in s.onProcessStyle(e.style,e,c),e.style){var _=e.style[h];_!==m[h]&&e.prop(h,_,pi)}for(var w in m){var T=e.style[w],D=m[w];T==null&&T!==D&&e.prop(w,null,pi)}}},e.toString=function toString(e){for(var t=``,a=this.options.sheet,o=a?a.options.link:!1,s=getWhitespaceSymbols(e).linebreak,c=0;c<this.index.length;c++){var m=this.index[c].toString(e);!m&&!o||(t&&(t+=s),t+=m)}return t},RuleList}(),hi=function(){function StyleSheet(e,t){for(var a in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=R({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new mi(this.options),e)this.rules.add(a,e[a]);this.rules.process()}var e=StyleSheet.prototype;return e.attach=function attach(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},e.detach=function detach(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},e.addRule=function addRule(e,t,a){var o=this.queue;this.attached&&!o&&(this.queue=[]);var s=this.rules.add(e,t,a);return s?(this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&(o?o.push(s):(this.insertRule(s),this.queue&&=(this.queue.forEach(this.insertRule,this),void 0))),s):(this.deployed=!1,s)):null},e.replaceRule=function replaceRule(e,t,a){var o=this.rules.get(e);if(!o)return this.addRule(e,t,a);var s=this.rules.replace(e,t,a);return s&&this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&this.renderer&&(s?o.renderable&&this.renderer.replaceRule(o.renderable,s):this.renderer.deleteRule(o)),s):(this.deployed=!1,s)},e.insertRule=function insertRule(e){this.renderer&&this.renderer.insertRule(e)},e.addRules=function addRules(e,t){var a=[];for(var o in e){var s=this.addRule(o,e[o],t);s&&a.push(s)}return a},e.getRule=function getRule(e){return this.rules.get(e)},e.deleteRule=function deleteRule(e){var t=typeof e==`object`?e:this.rules.get(e);return!t||this.attached&&!t.renderable?!1:(this.rules.remove(t),this.attached&&t.renderable&&this.renderer?this.renderer.deleteRule(t.renderable):!0)},e.indexOf=function indexOf(e){return this.rules.indexOf(e)},e.deploy=function deploy(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},e.update=function update(){var e;return(e=this.rules).update.apply(e,arguments),this},e.updateOne=function updateOne(e,t,a){return this.rules.updateOne(e,t,a),this},e.toString=function toString(e){return this.rules.toString(e)},StyleSheet}(),gi=function(){function PluginsRegistry(){this.plugins={internal:[],external:[]},this.registry={}}var e=PluginsRegistry.prototype;return e.onCreateRule=function onCreateRule(e,t,a){for(var o=0;o<this.registry.onCreateRule.length;o++){var s=this.registry.onCreateRule[o](e,t,a);if(s)return s}return null},e.onProcessRule=function onProcessRule(e){if(!e.isProcessed){for(var t=e.options.sheet,a=0;a<this.registry.onProcessRule.length;a++)this.registry.onProcessRule[a](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},e.onProcessStyle=function onProcessStyle(e,t,a){for(var o=0;o<this.registry.onProcessStyle.length;o++)t.style=this.registry.onProcessStyle[o](t.style,t,a)},e.onProcessSheet=function onProcessSheet(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},e.onUpdate=function onUpdate(e,t,a,o){for(var s=0;s<this.registry.onUpdate.length;s++)this.registry.onUpdate[s](e,t,a,o)},e.onChangeValue=function onChangeValue(e,t,a){for(var o=e,s=0;s<this.registry.onChangeValue.length;s++)o=this.registry.onChangeValue[s](o,t,a);return o},e.use=function use(e,t){t===void 0&&(t={queue:`external`});var a=this.plugins[t.queue];a.indexOf(e)===-1&&(a.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var a in t)a in e&&e[a].push(t[a]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},PluginsRegistry}(),_i=new(function(){function SheetsRegistry(){this.registry=[]}var e=SheetsRegistry.prototype;return e.add=function add(e){var t=this.registry,a=e.options.index;if(t.indexOf(e)===-1){if(t.length===0||a>=this.index){t.push(e);return}for(var o=0;o<t.length;o++)if(t[o].options.index>a){t.splice(o,0,e);return}}},e.reset=function reset(){this.registry=[]},e.remove=function remove(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},e.toString=function toString(e){for(var t=e===void 0?{}:e,a=t.attached,o=dt(t,[`attached`]),s=getWhitespaceSymbols(o).linebreak,c=``,m=0;m<this.registry.length;m++){var h=this.registry[m];(a==null||h.attached===a)&&(c&&(c+=s),c+=h.toString(o))}return c},_createClass(SheetsRegistry,[{key:`index`,get:function get(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),SheetsRegistry}()),vi=typeof globalThis<`u`?globalThis:typeof window<`u`&&window.Math===Math?window:typeof self<`u`&&self.Math===Math?self:Function(`return this`)(),yi=`2f1acc6c3a606b082e5eef5e54414ffb`;vi[yi]??(vi[yi]=0);var bi=vi[yi]++,xi=function createGenerateId(e){e===void 0&&(e={});var t=0;return function generateId(a,o){t+=1;var s=``,c=``;return o&&(o.options.classNamePrefix&&(c=o.options.classNamePrefix),o.options.jss.id!=null&&(s=String(o.options.jss.id))),e.minify?``+(c||`c`)+bi+s+t:c+a.key+`-`+bi+(s?`-`+s:``)+`-`+t}},Si=function memoize(e){var t;return function(){return t||=e(),t}},Ci=function getPropertyValue(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch{return``}},wi=function setProperty(e,t,a){try{var o=a;
3if(Array.isArray(a)&&(o=Lr(a)),e.attributeStyleMap)e.attributeStyleMap.set(t,o);else{var s=o?o.indexOf(`!important`):-1,c=s>-1?o.substr(0,s-1):o;e.style.setProperty(t,c,s>-1?`important`:``)}}catch{return!1}return!0},Ti=function removeProperty(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch{}},Ei=function setSelector(e,t){return e.selectorText=t,e.selectorText===t},Di=Si(function(){return document.querySelector(`head`)});function findHigherSheet(e,t){for(var a=0;a<e.length;a++){var o=e[a];if(o.attached&&o.options.index>t.index&&o.options.insertionPoint===t.insertionPoint)return o}return null}function findHighestSheet(e,t){for(var a=e.length-1;a>=0;a--){var o=e[a];if(o.attached&&o.options.insertionPoint===t.insertionPoint)return o}return null}function findCommentNode(e){for(var t=Di(),a=0;a<t.childNodes.length;a++){var o=t.childNodes[a];if(o.nodeType===8&&o.nodeValue.trim()===e)return o}return null}function findPrevNode(e){var t=_i.registry;if(t.length>0){var a=findHigherSheet(t,e);if(a&&a.renderer)return{parent:a.renderer.element.parentNode,node:a.renderer.element};if(a=findHighestSheet(t,e),a&&a.renderer)return{parent:a.renderer.element.parentNode,node:a.renderer.element.nextSibling}}var o=e.insertionPoint;if(o&&typeof o==`string`){var s=findCommentNode(o);if(s)return{parent:s.parentNode,node:s.nextSibling}}return!1}function insertStyle(e,t){var a=t.insertionPoint,o=findPrevNode(t);if(o!==!1&&o.parent){o.parent.insertBefore(e,o.node);return}if(a&&typeof a.nodeType==`number`){var s=a,c=s.parentNode;c&&c.insertBefore(e,s.nextSibling);return}Di().appendChild(e)}var Oi=Si(function(){var e=document.querySelector(`meta[property="csp-nonce"]`);return e?e.getAttribute(`content`):null}),ki=function insertRule(e,t,a){try{`insertRule`in e?e.insertRule(t,a):`appendRule`in e&&e.appendRule(t)}catch{return!1}return e.cssRules[a]},Ai=function getValidRuleInsertionIndex(e,t){var a=e.cssRules.length;return t===void 0||t>a?a:t},ji=function createStyle(){var e=document.createElement(`style`);return e.textContent=` 4`,e},Mi=function(){function DomRenderer(e){this.getPropertyValue=Ci,this.setProperty=wi,this.removeProperty=Ti,this.setSelector=Ei,this.hasInsertedRules=!1,this.cssRules=[],e&&_i.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},a=t.media,o=t.meta,s=t.element;this.element=s||ji(),this.element.setAttribute(`data-jss`,``),a&&this.element.setAttribute(`media`,a),o&&this.element.setAttribute(`data-meta`,o);var c=Oi();c&&this.element.setAttribute(`nonce`,c)}var e=DomRenderer.prototype;return e.attach=function attach(){if(!(this.element.parentNode||!this.sheet)){insertStyle(this.element,this.sheet.options);var e=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},e.detach=function detach(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=` 5`)}},e.deploy=function deploy(){var e=this.sheet;if(e){if(e.options.link){this.insertRules(e.rules);return}this.element.textContent=` 6`+e.toString()+` 7`}},e.insertRules=function insertRules(e,t){for(var a=0;a<e.index.length;a++)this.insertRule(e.index[a],a,t)},e.insertRule=function insertRule(e,t,a){if(a===void 0&&(a=this.element.sheet),e.rules){var o=e,s=a;if(e.type===`conditional`||e.type===`keyframes`){var c=Ai(a,t);if(s=ki(a,o.toString({children:!1}),c),s===!1)return!1;this.refCssRule(e,c,s)}return this.insertRules(o.rules,s),s}var m=e.toString();if(!m)return!1;var h=Ai(a,t),_=ki(a,m,h);return _!==!1&&(this.hasInsertedRules=!0,this.refCssRule(e,h,_),_)},e.refCssRule=function refCssRule(e,t,a){e.renderable=a,e.options.parent instanceof hi&&this.cssRules.splice(t,0,a)},e.deleteRule=function deleteRule(e){var t=this.element.sheet,a=this.indexOf(e);return a!==-1&&(t.deleteRule(a),this.cssRules.splice(a,1),!0)},e.indexOf=function indexOf(e){return this.cssRules.indexOf(e)},e.replaceRule=function replaceRule(e,t){var a=this.indexOf(e);return a!==-1&&(this.element.sheet.deleteRule(a),this.cssRules.splice(a,1),this.insertRule(t,a))},e.getRules=function getRules(){return this.element.sheet.cssRules},DomRenderer}(),Ni=0,Pi=function(){function Jss(e){this.id=Ni++,this.version=`10.10.0`,this.plugins=new gi,this.options={id:{minify:!1},createGenerateId:xi,Renderer:Pr?Mi:null,plugins:[]},this.generateId=xi({minify:!1});for(var t=0;t<di.length;t++)this.plugins.use(di[t],{queue:`internal`});this.setup(e)}var e=Jss.prototype;return e.setup=function setup(e){return e===void 0&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=R({}
7,this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),e.insertionPoint!=null&&(this.options.insertionPoint=e.insertionPoint),`Renderer`in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},e.createStyleSheet=function createStyleSheet(e,t){t===void 0&&(t={});var a=t.index;typeof a!=`number`&&(a=_i.index===0?0:_i.index+1);var o=new hi(e,R({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(o),o},e.removeStyleSheet=function removeStyleSheet(e){return e.detach(),_i.remove(e),this},e.createRule=function createRule$1(e,t,a){if(t===void 0&&(t={}),a===void 0&&(a={}),typeof e==`object`)return this.createRule(void 0,e,t);var o=R({},a,{name:e,jss:this,Renderer:this.options.Renderer});o.generateId||=this.generateId,o.classes||={},o.keyframes||={};var s=createRule(e,t,o);return s&&this.plugins.onProcessRule(s),s},e.use=function use(){var e=this;
7return[...arguments].forEach(function(t){e.plugins.use(t)}),this},Jss}(),Fi=function createJss(e){return new Pi(e)},Ii=typeof CSS==`object`&&CSS!=null&&`number`in CSS;function getDynamicStyles(e){var t=null;for(var a in e){var o=e[a],s=typeof o;if(s===`function`)t||={},t[a]=o;else if(s===`object`&&o!==null&&!Array.isArray(o)){var c=getDynamicStyles(o);c&&(t||={},t[a]=c)}}return t}Fi(),et();function isPlainObject(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function deepClone(e){if(H.isValidElement(e)||!isPlainObject(e))return e;let t={};return Object.keys(e).forEach(a=>{t[a]=deepClone(e[a])}),t}function deepmerge(e,t,a={clone:!0}){let o=a.clone?R({},e):e;return isPlainObject(e)&&isPlainObject(t)&&Object.keys(t).forEach(s=>{H.isValidElement(t[s])?o[s]=t[s]:isPlainObject(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&isPlainObject(e[s])?o[s]=deepmerge(e[s],t[s],a):a.clone?o[s]=isPlainObject(t[s])?deepClone(t[s]):t[s]:o[s]=t[s]}),o}function formatMuiErrorMessage(e){let t=`https://mui.com/production-error/?code=`+e;for(let e=1;e<arguments.length;e+=1)t+=`&args[]=`+encodeURIComponent(arguments[e]);return`Minified MUI error #`+e+`; visit `+t+` for the full message.`}function capitalize(e){if(typeof e!=`string`)throw Error(formatMuiErrorMessage(7));return e.charAt(0).toUpperCase()+e.slice(1)}et();function mergeClasses(e={}){let{baseClasses:t,newClasses:a,Component:o}=e;if(!a)return t;let s=R({},t);return Object.keys(a).forEach(e=>{a[e]&&(s[e]=`${t[e]} ${a[e]}`)}),s}var Li={set:(e,t,a,o)=>{let s=e.get(t);s||(s=new Map,e.set(t,s)),s.set(a,o)},get:(e,t,a)=>{let o=e.get(t);return o?o.get(a):void 0},delete:(e,t,a)=>{e.get(t).delete(a)}};function useTheme(){let e=me();return e?.$$material??e}var Ri=[`checked`,`disabled`,`error`,`focused`,`focusVisible`,`required`,`expanded`,`selected`];function createGenerateClassName(e={}){let{disableGlobal:t=!1,productionPrefix:a=`jss`,seed:o=``}=e,s=o===``?``:`${o}-`,c=0,getNextCounterId=()=>(c+=1,c);return(e,c)=>{let m=c.options.name;if(m&&m.indexOf(`Mui`)===0&&!c.options.link&&!t){if(Ri.indexOf(e.key)!==-1)return`Mui-${e.key}`;let t=`${s}${m}-${e.key}`;return!c.options.theme[Kt]||o!==``?t:`${t}-${getNextCounterId()}`}return`${s}${a}${getNextCounterId()}`}}var zi=Date.now(),Bi=`fnValues`+zi,Vi=`fnStyle`+ ++zi,Hi=function functionPlugin(){return{onCreateRule:function onCreateRule(e,t,a){if(typeof t!=`function`)return null;var o=createRule(e,{},a);return o[Vi]=t,o},onProcessStyle:function onProcessStyle(e,t){if(Bi in t||Vi in t)return e;var a={};for(var o in e){var s=e[o];typeof s==`function`&&(delete e[o],a[o]=s)}return t[Bi]=a,e},onUpdate:function onUpdate(e,t,a,o){var s=t,c=s[Vi];c&&(s.style=c(e)||{});var m=s[Bi];if(m)for(var h in m)s.prop(h,m[h](e),o)}}};et();var Ui=`@global`,Wi=`@global `,Gi=function(){function GlobalContainerRule(e,t,a){for(var o in this.type=`global`,this.at=Ui,this.isProcessed=!1,this.key=e,this.options=a,this.rules=new mi(R({},a,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var e=GlobalContainerRule.prototype;return e.getRule=function getRule(e){return this.rules.get(e)},e.addRule=function addRule(e,t,a){var o=this.rules.add(e,t,a);return o&&this.options.jss.plugins.onProcessRule(o),o},e.replaceRule=function replaceRule(e,t,a){var o=this.rules.replace(e,t,a);return o&&this.options.jss.plugins.onProcessRule(o),o},e.indexOf=function indexOf(e){return this.rules.indexOf(e)},e.toString=function toString(e){return this.rules.toString(e)},GlobalContainerRule}(),Ki=function(){function GlobalPrefixedRule(e,t,a){this.type=`global`,this.at=Ui,this.isProcessed=!1,this.key=e,this.options=a;var o=e.substr(Wi.length);this.rule=a.jss.createRule(o,t,R({},a,{parent:this}))}var e=GlobalPrefixedRule.prototype;return e.toString=function toString(e){return this.rule?this.rule.toString(e):``},GlobalPrefixedRule}(),qi=/\s*,\s*/g;function addScope(e,t){for(var a=e.split(qi),o=``,s=0;s<a.length;s++)o+=t+` `+a[s].trim(),a[s+1]&&(o+=`, `);return o}function handleNestedGlobalContainerRule(e,t){var a=e.options,o=e.style,s=o?o[Ui]:null;if(s){for(var c in s)t.addRule(c,s[c],R({},a,{selector:addScope(c,e.selector)}));delete o[Ui]}}function handlePrefixedGlobalRule(e,t){var a=e.options,o=e.style;for(var s in o)if(s[0]===`@`&&s.substr(0,Ui.length)===Ui){var c=addScope(s.substr(Ui.length),e.selector);t.addRule(c,o[s],R({},a,{selector:c}
7)),delete o[s]}}function jssGlobal(){function onCreateRule(e,t,a){if(!e)return null;if(e===Ui)return new Gi(e,t,a);if(e[0]===`@`&&e.substr(0,Wi.length)===Wi)return new Ki(e,t,a);var o=a.parent;return o&&(o.type===`global`||o.options.parent&&o.options.parent.type===`global`)&&(a.scoped=!1),!a.selector&&a.scoped===!1&&(a.selector=e),null}function onProcessRule(e,t){e.type!==`style`||!t||(handleNestedGlobalContainerRule(e,t),handlePrefixedGlobalRule(e,t))}return{onCreateRule,onProcessRule}}et();var Ji=/\s*,\s*/g,Yi=/&/g,Xi=/\$([\w-]+)/g;function jssNested(){function getReplaceRef(e,t){return function(a,o){var s=e.getRule(o)||t&&t.getRule(o);return s?s.selector:o}}function replaceParentRefs(e,t){for(var a=t.split(Ji),o=e.split(Ji),s=``,c=0;c<a.length;c++)for(var m=a[c],h=0;h<o.length;h++){var _=o[h];s&&(s+=`, `),s+=_.indexOf(`&`)===-1?m+` `+_:_.replace(Yi,m)}return s}function getOptions(e,t,a){if(a)return R({},a,{index:a.index+1});var o=e.options.nestingLevel;o=o===void 0?1:o+1;var s=R({},e.options,{nestingLevel:o,index:t.indexOf(e)+1});return delete s.name,s}function onProcessStyle(e,t,a){if(t.type!==`style`)return e;var o=t,s=o.options.parent,c,m;for(var h in e){var _=h.indexOf(`&`)!==-1,w=h[0]===`@`;if(!(!_&&!w)){if(c=getOptions(o,s,c),_){var T=replaceParentRefs(h,o.selector);m||=getReplaceRef(s,a),T=T.replace(Xi,m);var D=o.key+`-`+h;`replaceRule`in s?s.replaceRule(D,e[h],R({},c,{selector:T})):s.addRule(D,e[h],R({},c,{selector:T}))}else w&&s.addRule(h,{},c).addRule(o.key,e[h],{selector:o.selector});delete e[h]}}return e}return{onProcessStyle}}var Zi=/[A-Z]/g,Qi=/^ms-/,$i={};function toHyphenLower(e){return`-`+e.toLowerCase()}function hyphenateStyleName(e){if($i.hasOwnProperty(e))return $i[e];var t=e.replace(Zi,toHyphenLower);return $i[e]=Qi.test(t)?`-`+t:t}function convertCase(e){var t={};for(var a in e){var o=a.indexOf(`--`)===0?a:hyphenateStyleName(a);t[o]=e[a]}return e.fallbacks&&(t.fallbacks=Array.isArray(e.fallbacks)?e.fallbacks.map(convertCase):convertCase(e.fallbacks)),t}function camelCase(){function onProcessStyle(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=convertCase(e[t]);return e}return convertCase(e)}function onChangeValue(e,t,a){if(t.indexOf(`--`)===0)return e;var o=hyphenateStyleName(t);return t===o?e:(a.prop(o,e),null)}return{onProcessStyle,onChangeValue}}var q=Ii&&CSS?CSS.px:`px`,ea=Ii&&CSS?CSS.ms:`ms`,ta=Ii&&CSS?CSS.percent:`%`,na={"animation-delay":ea,"animation-duration":ea,"background-position":q,"background-position-x":q,"background-position-y":q,"background-size":q,border:q,"border-bottom":q,"border-bottom-left-radius":q,"border-bottom-right-radius":q,"border-bottom-width":q,"border-left":q,"border-left-width":q,"border-radius":q,"border-right":q,"border-right-width":q,"border-top":q,"border-top-left-radius":q,"border-top-right-radius":q,"border-top-width":q,"border-width":q,"border-block":q,"border-block-end":q,"border-block-end-width":q,"border-block-start":q,"border-block-start-width":q,"border-block-width":q,"border-inline":q,"border-inline-end":q,"border-inline-end-width":q,"border-inline-start":q,"border-inline-start-width":q,"border-inline-width":q,"border-start-start-radius":q,"border-start-end-radius":q,"border-end-start-radius":q,"border-end-end-radius":q,margin:q,"margin-bottom":q,"margin-left":q,"margin-right":q,"margin-top":q,"margin-block":q,"margin-block-end":q,"margin-block-start":q,"margin-inline":q,"margin-inline-end":q,"margin-inline-start":q,padding:q,"padding-bottom":q,"padding-left":q,"padding-right":q,"padding-top":q,"padding-block":q,"padding-block-end":q,"padding-block-start":q,"padding-inline":q,"padding-inline-end":q,"padding-inline-start":q,"mask-position-x":q,"mask-position-y":q,"mask-size":q,height:q,width:q,"min-height":q,"max-height":q,"min-width":q,"max-width":q,bottom:q,left:q,top:q,right:q,inset:q,"inset-block":q,"inset-block-end":q,"inset-block-start":q,"inset-inline":q,"inset-inline-end":q,"inset-inline-start":q,"box-shadow":q,"text-shadow":q,"column-gap":q,"column-rule":q,"column-rule-width":q,"column-width":q,"font-size":q,"font-size-delta":q,"letter-spacing":q,"text-decoration-thickness":q,"text-indent":q,"text-stroke":q,"text-stroke-width":q,"word-spacing":q,motion:q,"motion-offset":q,outline:q,"outline-offset":q,"outline-width":q,perspective:q,"perspective-origin-x":ta,"perspective-origin-y":ta,"transform-origin":ta,"transform-origin-x":ta,"transform-origin-y":ta,"transform-origin-z":ta,"transition-delay":ea,"transition-duration":ea,"vertical-align":q,"flex-basis":q,"shape-margin":q,size:q,ga
7p:q,grid:q,"grid-gap":q,"row-gap":q,"grid-row-gap":q,"grid-column-gap":q,"grid-template-rows":q,"grid-template-columns":q,"grid-auto-rows":q,"grid-auto-columns":q,"box-shadow-x":q,"box-shadow-y":q,"box-shadow-blur":q,"box-shadow-spread":q,"font-line-height":q,"text-shadow-x":q,"text-shadow-y":q,"text-shadow-blur":q};function addCamelCasedVersion(e){var t=/(-[a-z])/g,a=function replace(e){return e[1].toUpperCase()},o={};for(var s in e)o[s]=e[s],o[s.replace(t,a)]=e[s];return o}var ra=addCamelCasedVersion(na);function iterate(e,t,a){if(t==null)return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)t[o]=iterate(e,t[o],a);else if(typeof t==`object`){if(e===`fallbacks`)for(var s in t)t[s]=iterate(s,t[s],a);else for(var c in t)t[c]=iterate(e+`-`+c,t[c],a)}else if(typeof t==`number`&&isNaN(t)===!1){var m=a[e]||ra[e];return m&&(t!==0||m!==q)?typeof m==`function`?m(t).toString():``+t+m:t.toString()}return t}function defaultUnit(e){e===void 0&&(e={});var t=addCamelCasedVersion(e);function onProcessStyle(e,a){if(a.type!==`style`)return e;for(var o in e)e[o]=iterate(o,e[o],t);return e}function onChangeValue(e,a){return iterate(a,e,t)}return{onProcessStyle,onChangeValue}}function _arrayLikeToArray(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,o=Array(t);a<t;a++)o[a]=e[a];return o}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _iterableToArray(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function _unsupportedIterableToArray(e,t){if(e){if(typeof e==`string`)return _arrayLikeToArray(e,t);var a={}.toString.call(e).slice(8,-1);return a===`Object`&&e.constructor&&(a=e.constructor.name),a===`Map`||a===`Set`?Array.from(e):a===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(e,t):void 0}}function _nonIterableSpread(){throw TypeError(`Invalid attempt to spread non-iterable instance. 8In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}var ia=``,aa=``,oa=``,sa=``,ca=Pr&&`ontouchstart`in document.documentElement;if(Pr){var la={Moz:`-moz-`,ms:`-ms-`,O:`-o-`,Webkit:`-webkit-`},ua=document.createElement(`p`).style,da=`Transform`;for(var fa in la)if(fa+da in ua){ia=fa,aa=la[fa];break}ia===`Webkit`&&`msHyphens`in ua&&(ia=`ms`,aa=la.ms,sa=`edge`),ia===`Webkit`&&`-apple-trailing-word`in ua&&(oa=`apple`)}var Y={js:ia,css:aa,vendor:oa,browser:sa,isTouch:ca};function supportedKeyframes(e){return e[1]===`-`||Y.js===`ms`?e:`@`+Y.css+`keyframes`+e.substr(10)}var pa={noPrefill:[`appearance`],supportedProperty:function supportedProperty(e){return e===`appearance`?Y.js===`ms`?`-webkit-`+e:Y.css+e:!1}},ma={noPrefill:[`color-adjust`],supportedProperty:function supportedProperty(e){return e===`color-adjust`?Y.js===`Webkit`?Y.css+`print-`+e:e:!1}},ha=/[-\s]+(.)?/g;function toUpper(e,t){return t?t.toUpperCase():``}function camelize(e){return e.replace(ha,toUpper)}function pascalize(e){return camelize(`-`+e)}var ga={noPrefill:[`mask`],supportedProperty:function supportedProperty(e,t){if(!/^mask/.test(e))return!1;if(Y.js===`Webkit`){var a=`mask-image`;if(camelize(a)in t)return e;if(Y.js+pascalize(a)in t)return Y.css+e}return e}},_a={noPrefill:[`text-orientation`],supportedProperty:function supportedProperty(e){return e===`text-orientation`?Y.vendor===`apple`&&!Y.isTouch?Y.css+e:e:!1}},va={noPrefill:[`transform`],supportedProperty:function supportedProperty(e,t,a){return e===`transform`?a.transform?e:Y.css+e:!1}},ya={noPrefill:[`transition`],supportedProperty:function supportedProperty(e,t,a){return e===`transition`?a.transition?e:Y.css+e:!1}},ba={noPrefill:[`writing-mode`],supportedProperty:function supportedProperty(e){return e===`writing-mode`?Y.js===`Webkit`||Y.js===`ms`&&Y.browser!==`edge`?Y.css+e:e:!1}},xa={noPrefill:[`user-select`],supportedProperty:function supportedProperty(e){return e===`user-select`?Y.js===`Moz`||Y.js===`ms`||Y.vendor===`apple`?Y.css+e:e:!1}},Sa={supportedProperty:function supportedProperty(e,t){return/^break-/.test(e)?Y.js===`Webkit`?`WebkitColumn`+pascalize(e)in t&&Y.css+`column-`+e:Y.js===`Moz`&&`page`+pascalize(e)in t&&`page-`+e:!1}},Ca={supportedProperty:function supportedProperty(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if(Y.js===`Moz`)return e;var a=e.replace(`-inline`,``);return Y.js+pascalize(a)in t&&Y.css+a}},wa={supportedProperty:function supportedProperty(e,t){return camelize(e)in t&&e}},Ta={supportedProperty:function supportedProperty(e,t){var a=pascalize(e);return e[0]===`-`||e[0]===`-`&&e[1]===`-`?e:Y.js+a in t?Y.css+e:Y.js!==`Webkit`&&`Webkit`+a in t&&`-webkit-`+e}},Ea={supportedProperty:function supportedProperty(e){return e.substring(0,11)===`scroll-snap`?Y.js===`ms`?``+Y.css+e:e:!1}},Da={supportedProperty:function supportedProperty(e){return e===`overscroll-behavior`?Y.js===`ms`?Y.css+`scroll-chaining`:e:!1}},Oa={"flex-grow":`flex-positive`,"flex-shrink":`flex-negative`,"flex-basis":`flex-preferred-size`,"justify-content":`flex-pack`,order:`flex-order`,"align-items":`flex-align`,"align-content":`flex-line-pack`},ka={supportedProperty:function supportedProperty(e,t){var a=Oa[e];return a?Y.js+pascalize(a)in t&&Y.css+a:!1}},Aa={flex:`box-flex`,"flex-grow":`box-flex`,"flex-direction":[`box-orient`,`box-direction`],order:`box-ordinal-group`,"align-items":`box-align`,"flex-flow":[`box-orient`,`box-direction`],"justify-content":`box-pack`},ja=Object.keys(Aa),Ma=function prefixCss(e){return Y.css+e},Na=[pa,ma,ga,_a,va,ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,ka,{supportedProperty:function supportedProperty(e,t,a){var o=a.multiple;if(ja.indexOf(e)>-1){var s=Aa[e];if(!Array.isArray(s))return Y.js+pascalize(s)in t&&Y.css+s;if(!o)return!1;for(var c=0;c<s.length;c++)if(!(Y.js+pascalize(s[0])in t))return!1;return s.map(Ma)}return!1}}
8],Pa=Na.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),Fa=Na.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,_toConsumableArray(t.noPrefill)),e},[]),Ia,La={};if(Pr){Ia=document.createElement(`p`);var Ra=window.getComputedStyle(document.documentElement,``);for(var za in Ra)isNaN(za)||(La[Ra[za]]=Ra[za]);Fa.forEach(function(e){return delete La[e]})}function supportedProperty(e,t){if(t===void 0&&(t={}),!Ia)return e;if(La[e]!=null)return La[e];(e===`transition`||e===`transform`)&&(t[e]=e in Ia.style);for(var a=0;a<Pa.length&&(La[e]=Pa[a](e,Ia.style,t),!La[e]);a++);try{Ia.style[e]=``}catch{return!1}return La[e]}var Ba={},Va={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Ha=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,Ua;function prefixTransitionCallback(e,t,a){return t===`var`?`var`:t===`all`?`all`:a===`all`?`, all`:(t?supportedProperty(t):`, `+supportedProperty(a))||t||a}Pr&&(Ua=document.createElement(`p`));function supportedValue(e,t){var a=t;if(!Ua||e===`content`)return t;if(typeof a!=`string`||!isNaN(parseInt(a,10)))return a;var o=e+a;if(Ba[o]!=null)return Ba[o];try{Ua.style[e]=a}catch{return Ba[o]=!1,!1}if(Va[e])a=a.replace(Ha,prefixTransitionCallback);else if(Ua.style[e]===``&&(a=Y.css+a,a===`-ms-flex`&&(Ua.style[e]=`-ms-flexbox`),Ua.style[e]=a,Ua.style[e]===``))return Ba[o]=!1,!1;return Ua.style[e]=``,Ba[o]=a,Ba[o]}function jssVendorPrefixer(){function onProcessRule(e){if(e.type===`keyframes`){var t=e;t.at=supportedKeyframes(t.at)}}function prefixStyle(e){for(var t in e){var a=e[t];if(t===`fallbacks`&&Array.isArray(a)){e[t]=a.map(prefixStyle);continue}var o=!1,s=supportedProperty(t);s&&s!==t&&(o=!0);var c=!1,m=supportedValue(s,Lr(a));m&&m!==a&&(c=!0),(o||c)&&(o&&delete e[t],e[s||t]=m||a)}return e}function onProcessStyle(e,t){return t.type===`style`?prefixStyle(e):e}function onChangeValue(e,t){return supportedValue(t,Lr(e))||e}return{onProcessRule,onProcessStyle,onChangeValue}}function jssPropsSort(){var e=function sort(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function onProcessStyle(t,a){if(a.type!==`style`)return t;for(var o={},s=Object.keys(t).sort(e),c=0;c<s.length;c++)o[s[c]]=t[s[c]];return o}}}function jssPreset(){return{plugins:[Hi(),jssGlobal(),jssNested(),camelCase(),defaultUnit(),typeof window>`u`?null:jssVendorPrefixer(),jssPropsSort()]}}et(),Ke();var Wa=[`children`,`injectFirst`,`disableGeneration`],Ga=Fi(jssPreset()),Ka={disableGeneration:!1,generateClassName:createGenerateClassName(),jss:Ga,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},qa=H.createContext(Ka),Ja;function StylesProvider(e){let{children:t,injectFirst:a=!1,disableGeneration:o=!1}=e,s=dt(e,Wa),c=H.useContext(qa),{generateClassName:m,jss:h,serverGenerateClassName:_,sheetsCache:w,sheetsManager:T,sheetsRegistry:D}=R({},c,s),O=H.useMemo(()=>{let e={disableGeneration:o,generateClassName:m,jss:h,serverGenerateClassName:_,sheetsCache:w,sheetsManager:T,sheetsRegistry:D};if(!e.jss.options.insertionPoint&&a&&typeof window<`u`){if(!Ja){let e=document.head;Ja=document.createComment(`mui-inject-first`),e.insertBefore(Ja,e.firstChild)}e.jss=Fi({plugins:jssPreset().plugins,insertionPoint:Ja})}return e},[a,o,m,h,_,w,T,D]);return(0,W.jsx)(qa.Provider,{value:O,children:t})}var Ya=-1e9;function increment(){return Ya+=1,Ya}Ke();var Xa=[`variant`];function isEmpty(e){return e.length===0}function propsToClassKey(e){let{variant:t}=e,a=dt(e,Xa),o=t||``;return Object.keys(a).sort().forEach(t=>{o+=t===`color`?isEmpty(o)?e[t]:capitalize(e[t]):`${isEmpty(o)?t:capitalize(t)}${capitalize(e[t].toString())}`}),o}var Za={};et();function getStylesCreator(e){let t=typeof e==`function`;return{create:(a,o)=>{let s;try{s=t?e(a):e}catch(e){throw e}if(!o||!a.components||!a.components[o]||!a.components[o].styleOverrides&&!a.components[o].variants)return s;let c=a.components[o].styleOverrides||{},m=a.components[o].variants||[],h=R({},s);return Object.keys(c).forEach(e=>{h[e]=deepmerge(h[e]||{},c[e])}
8),m.forEach(e=>{let t=propsToClassKey(e.props);h[t]=deepmerge(h[t]||{},e.style)}),h},options:{}}}Ke(),et();var Qa=[`name`,`classNamePrefix`,`Component`,`defaultTheme`];function getClasses({state:e,stylesOptions:t},a,o){if(t.disableGeneration)return a||{};e.cacheClasses||={value:null,lastProp:null,lastJSS:{}};let s=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,s=!0),a!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=a,s=!0),s&&(e.cacheClasses.value=mergeClasses({baseClasses:e.cacheClasses.lastJSS,newClasses:a,Component:o})),e.cacheClasses.value}function attach({state:e,theme:t,stylesOptions:a,stylesCreator:o,name:s},c){if(a.disableGeneration)return;let m=Li.get(a.sheetsManager,o,t);m||(m={refs:0,staticSheet:null,dynamicStyles:null},Li.set(a.sheetsManager,o,t,m));let h=R({},o.options,a,{theme:t,flip:typeof a.flip==`boolean`?a.flip:t.direction===`rtl`});h.generateId=h.serverGenerateClassName||h.generateClassName;let _=a.sheetsRegistry;if(m.refs===0){let e;a.sheetsCache&&(e=Li.get(a.sheetsCache,o,t));let c=o.create(t,s);e||(e=a.jss.createStyleSheet(c,R({link:!1},h)),e.attach(),a.sheetsCache&&Li.set(a.sheetsCache,o,t,e)),_&&_.add(e),m.staticSheet=e,m.dynamicStyles=getDynamicStyles(c)}if(m.dynamicStyles){let t=a.jss.createStyleSheet(m.dynamicStyles,R({link:!0},h));t.update(c),t.attach(),e.dynamicSheet=t,e.classes=mergeClasses({baseClasses:m.staticSheet.classes,newClasses:t.classes}),_&&_.add(t)}else e.classes=m.staticSheet.classes;m.refs+=1}function update({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}function detach({state:e,theme:t,stylesOptions:a,stylesCreator:o}){if(a.disableGeneration)return;let s=Li.get(a.sheetsManager,o,t);--s.refs;let c=a.sheetsRegistry;s.refs===0&&(Li.delete(a.sheetsManager,o,t),a.jss.removeStyleSheet(s.staticSheet),c&&c.remove(s.staticSheet)),e.dynamicSheet&&(a.jss.removeStyleSheet(e.dynamicSheet),c&&c.remove(e.dynamicSheet))}function useSynchronousEffect(e,t){let a=H.useRef([]),o,s=H.useMemo(()=>({}),t);a.current!==s&&(a.current=s,o=e()),H.useEffect(()=>()=>{o&&o()},[s])}function makeStyles(e,t={}){let{name:a,classNamePrefix:o,Component:s,defaultTheme:c=Za}=t,m=dt(t,Qa),h=getStylesCreator(e),_=a||o||`makeStyles`;h.options={index:increment(),name:a,meta:_,classNamePrefix:_};let useStyles=(e={})=>{let t=useTheme()||c,o=R({},H.useContext(qa),m),_=H.useRef(),w=H.useRef();return useSynchronousEffect(()=>{let s={name:a,state:{},stylesCreator:h,stylesOptions:o,theme:t};return attach(s,e),w.current=!1,_.current=s,()=>{detach(s)}},[t,h]),H.useEffect(()=>{w.current&&update(_.current,e),w.current=!0}),getClasses(_.current,e.classes,s)};return useStyles}var $a={small:`12px`,normal:`13px`,large:`16px`},eo=makeStyles(e=>({root:{height:({height:e})=>e||`40px`,borderRadius:`8px`,textTransform:`none`,boxShadow:`none`,fontWeight:600},containedPrimary:{color:e.palette.type===`dark`?`#0A0B0D`:`white`},outlinedPrimary:{color:e.palette.primary.main}})),Button=({height:e,...t})=>{let a=eo({height:e});return(0,W.jsx)(Xt,{...t,classes:a})};function __rest(e,t){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var s=0,o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(a[o[s]]=e[o[s]]);return a}var to;(function(e){e.event=`event`,e.props=`prop`})(to||={});function noop(){}function memoizeOnce(e){var t,a=void 0;return function(){for(var o=[],s=arguments.length;s--;)o[s]=arguments[s];return t&&o.length===t.length&&o.every(function(e,a){return e===t[a]})?a:(t=o,a=e.apply(void 0,o),a)}}function charIsNumber(e){return!!(e||``).match(/\d/)}function isNil(e){return e==null}function isNanValue(e){return typeof e==`number`&&isNaN(e)}function isNotValidValue(e){return isNil(e)||isNanValue(e)||typeof e==`number`&&!isFinite(e)}function escapeRegExp(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,`\\$&`)}function getThousandsGroupRegex(e){switch(e){case`lakh`:return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case`wan`:return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function applyThousandSeparator(e,t,a){var o=getThousandsGroupRegex(a),s=e.search(/[1-9]/);return s=s===-1?e.length:s,e.substring(0,s)+e.substring(s,e.length).replace(o,`$1`+t)}function usePersistentCallback(e){var t=(0,H.useRef)(e);return t.current=e,(0,H.useRef)(function(){for(var e=[],a=arguments.length;a--;)e[a]=arguments[a];return t.current.apply(t,e)}).current}function splitDecimal(e,t){t===void 0&&(t=!0);var a=e[0]===`-`,o=a&&t;e=e.replace(`-`,``);var s=e.split(`.`);
vendor: 14,445 bytes, lines 8-16
8return{beforeDecimal:s[0],afterDecimal:s[1]||``,hasNegation:a,addNegation:o}}function fixLeadingZero(e){if(!e)return e;var t=e[0]===`-`;t&&(e=e.substring(1,e.length));var a=e.split(`.`),o=a[0].replace(/^0+/,``)||`0`,s=a[1]||``;return(t?`-`:``)+o+(s?`.`+s:``)}function limitToScale(e,t,a){for(var o=``,s=a?`0`:``,c=0;c<=t-1;c++)o+=e[c]||s;return o}function repeat(e,t){return Array(t+1).join(e)}function toNumericString(e){var t=e+``,a=t[0]===`-`?`-`:``;a&&(t=t.substring(1));var o=t.split(/[eE]/g),s=o[0],c=o[1];if(c=Number(c),!c)return a+s;s=s.replace(`.`,``);var m=1+c,h=s.length;return m<0?s=`0.`+repeat(`0`,Math.abs(m))+s:m>=h?s+=repeat(`0`,m-h):s=(s.substring(0,m)||`0`)+`.`+s.substring(m),a+s}function roundToPrecision(e,t,a){if([``,`-`].indexOf(e)!==-1)return e;var o=(e.indexOf(`.`)!==-1||a)&&t,s=splitDecimal(e),c=s.beforeDecimal,m=s.afterDecimal,h=s.hasNegation,_=parseFloat(`0.`+(m||`0`)),w=(m.length<=t?`0.`+m:_.toFixed(t)).split(`.`),T=c;c&&Number(w[0])&&(T=c.split(``).reverse().reduce(function(e,t,a){return e.length>a?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},w[0]));var D=limitToScale(w[1]||``,t,a),O=h?`-`:``,k=o?`.`:``;return``+O+T+k+D}function setCaretPosition(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var a=e.createTextRange();return a.move(`character`,t),a.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var oo=memoizeOnce(function(e,t){for(var a=0,o=0,s=e.length,c=t.length;e[a]===t[a]&&a<s;)a++;for(;e[s-1-o]===t[c-1-o]&&c-o>a&&s-o>a;)o++;return{from:{start:a,end:s-o},to:{start:a,end:c-o}}}),findChangedRangeFromCaretPositions=function(e,t){var a=Math.min(e.selectionStart,t);return{from:{start:a,end:e.selectionEnd},to:{start:a,end:t}}};function clamp(e,t,a){return Math.min(Math.max(e,t),a)}function geInputCaretPosition(e){return Math.max(e.selectionStart,e.selectionEnd)}function addInputMode(){return typeof navigator<`u`&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function getDefaultChangeMeta(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:``}}function defaultIsCharacterSame(e){var t=e.currentValue,a=e.formattedValue,o=e.currentValueIndex,s=e.formattedValueIndex;return t[o]===a[s]}function getCaretPosition(e,t,a,o,s,c,m){m===void 0&&(m=defaultIsCharacterSame);var h=s.findIndex(function(e){return e}),_=e.slice(0,h);!t&&!a.startsWith(_)&&(t=_,a=_+a,o+=_.length);for(var w=a.length,T=e.length,D={},O=Array(w),k=0;k<w;k++){O[k]=-1;for(var A=0,ee=T;A<ee;A++)if(m({currentValue:a,lastValue:t,formattedValue:e,currentValueIndex:k,formattedValueIndex:A})&&D[A]!==!0){O[k]=A,D[A]=!0;break}}for(var j=o;j<w&&(O[j]===-1||!c(a[j]));)j++;var M=j===w||O[j]===-1?T:O[j];for(j=o-1;j>0&&O[j]===-1;)j--;var te=j===-1||O[j]===-1?0:O[j]+1;return te>M?M:o-te<M-o?te:M}function getCaretPosInBoundary(e,t,a,o){var s=e.length;if(t=clamp(t,0,s),o===`left`){for(;t>=0&&!a[t];)t--;t===-1&&(t=a.indexOf(!0))}else{for(;t<=s&&!a[t];)t++;t>s&&(t=a.lastIndexOf(!0))}return t===-1&&(t=s),t}function caretUnknownFormatBoundary(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),a=0,o=t.length;a<o;a++)t[a]=!!(charIsNumber(e[a])||charIsNumber(e[a-1]));return t}function useInternalValues(e,t,a,o,s,c){c===void 0&&(c=noop);var m=usePersistentCallback(function(e,t){var a,c;return isNotValidValue(e)?(c=``,a=``):typeof e==`number`||t?(c=typeof e==`number`?toNumericString(e):e,a=o(c)):(c=s(e,void 0),a=o(c)),{formattedValue:a,numAsString:c}}),h=(0,H.useState)(function(){return m(isNil(e)?t:e,a)}),_=h[0],w=h[1],T=usePersistentCallback(function(e,t){e.formattedValue!==_.formattedValue&&w({formattedValue:e.formattedValue,numAsString:e.value}),c(e,t)}),D=e,O=a;isNil(e)&&(D=_.numAsString,O=!0);var k=m(D,O);return(0,H.useMemo)(function(){w(k)},[k.formattedValue]),(0,H.useEffect)(function(){if(!isNil(t)&&isNil(e)&&_.formattedValue!==``){var a=parseFloat(_.numAsString);T({formattedValue:_.formattedValue,value:_.numAsString,floatValue:isNaN(a)?void 0:a},{event:void 0,source:to.props})}},[]),[_,T]}function defaultRemoveFormatting(e){return e.replace(/[^0-9]/g,``)}function defaultFormat(e){return e}function NumberFormatBase(e){var t=e.type;t===void 0&&(t=`text`);var a=e.displayType;a===void 0&&(a=`input`);var o=e.customInput,s=e.renderText,c=e.getInputRef,m=e.format;m===void 0&&(m=defaultFormat);var h=e.removeFormatting;h===void 0&&(h=defaultRemoveFormatting);var _=e.defaultValue,w=e.valueIsNumericString,T=e.onValueChange,D=e.isAllowed,O=e.onChange;O===void 0&&(O=noop);var k=e.onKeyDown;k===void 0&&(k=noop);var A=e.onMouseUp;A===void 0&&(A=noop);var ee=e.onFocus;ee===void 0&&(ee=noop);var j=e.onBlur;j===void 0&&(j=noop);var M=e.value,te=e.getCaretBoundary;te===void 0&&(te=caretUnknownFormatBoundary);var F=e.isValidInputCharacter;F===void 0&&(F=charIsNumber);var ne=e.isCharacterSame,re=__rest(e,[`type`,`displayType`,`customInput`,`renderText`,`getInputRef`,`format`,`removeFormatting`,`defaultValue`,`valueIsNumericString`,`onValueChange`,`isAllowed`,`onChange`,`onKeyDown`,`onMouseUp`,`onFocus`,`onBlur`,`value`,`getCaretBoundary`,`isValidInputCharacter`,`isCharacterSame`]),ie=useInternalValues(M,_,!!w,m,h,T),ae=ie[0],I=ae.formattedValue,oe=ae.numAsString,se=ie[1],ce=(0,H.useRef)(),le=(0,H.useRef)({formattedValue:I,numAsString:oe}),_onValueChange=function(e,t){le.current={formattedValue:e.formattedValue,numAsString:e.value},se(e,t)},ue=(0,H.useState)(!1),de=ue[0],fe=ue[1],pe=(0,H.useRef)(null),me=(0,H.useRef)({setCaretTimeout:null,focusTimeout:null});(0,H.useEffect)(function(){return fe(!0),function(){clearTimeout(me.current.setCaretTimeout),clearTimeout(me.current.focusTimeout)}},[]);var he=m,getValueObject=function(e,t){var a=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(a)?void 0:a}},setPatchedCaretPosition=function(e,t,a){(e.selectionStart!==0||e.selectionEnd!==e.value.length)&&(setCaretPosition(e,t),me.current.setCaretTimeout=setTimeout(function(){e.value===a&&e.selectionStart!==t&&setCaretPosition(e,t)},0))},correctCaretPosition=function(e,t,a){return getCaretPosInBoundary(e,t,te(e),a)},getNewCaretPosition=function(e,t,a){var o=te(t),s=getCaretPosition(t,I,e,a,o,F,ne);return s=getCaretPosInBoundary(t,s,o),s},updateValueAndCaretPosition=function(e){var t=e.formattedValue;t===void 0&&(t=``);var a=e.input,o=e.source,s=e.event,c=e.numAsString,m;if(a){var h=e.inputValue||a.value,_=geInputCaretPosition(a);a.value=t,m=getNewCaretPosition(h,t,_),m!==void 0&&setPatchedCaretPosition(a,m,t)}t!==I&&_onValueChange(getValueObject(t,c),{event:s,source:o})};(0,H.useEffect)(function(){var e=le.current,t=e.formattedValue,a=e.numAsString;(I!==t||oe!==a)&&_onValueChange(getValueObject(I,oe),{event:void 0,source:to.props})},[I,oe]);var ge=pe.current?geInputCaretPosition(pe.current):void 0;(typeof window<`u`?H.useLayoutEffect:H.useEffect)(function(){var e=pe.current;if(I!==le.current.formattedValue&&e){var t=getNewCaretPosition(le.current.formattedValue,I,ge);e.value=I,setPatchedCaretPosition(e,t,I)}},[I]);var formatInputValue=function(e,t,a){var o=t.target,s=ce.current?findChangedRangeFromCaretPositions(ce.current,o.selectionEnd):oo(I,e),c=Object.assign(Object.assign({},s),{lastValue:I}),m=h(e,c),_=he(m);if(m=h(_,void 0),D&&!D(getValueObject(_,m))){var w=t.target,T=getNewCaretPosition(e,I,geInputCaretPosition(w));return w.value=I,setPatchedCaretPosition(w,T,I),!1}return updateValueAndCaretPosition({formattedValue:_,numAsString:m,inputValue:e,event:t,source:a,input:t.target}),!0},setCaretPositionInfoBeforeChange=function(e,t){t===void 0&&(t=0),ce.current={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd+t}},_onChange=function(e){var t=e.target.value;formatInputValue(t,e,to.event)&&O(e),ce.current=void 0},_onKeyDown=function(e){var t=e.target,a=e.key,o=t.selectionStart,s=t.selectionEnd,c=t.value;c===void 0&&(c=``);var m;a===`ArrowLeft`||a===`Backspace`?m=Math.max(o-1,0):a===`ArrowRight`?m=Math.min(o+1,c.length):a===`Delete`&&(m=o);var h=0;a===`Delete`&&o===s&&(h=1);var _=a===`ArrowLeft`||a===`ArrowRight`;if(m===void 0||o!==s&&!_){k(e),setCaretPositionInfoBeforeChange(t,h);return}var w=m;_?(w=correctCaretPosition(c,m,a===`ArrowLeft`?`left`:`right`),w!==m&&e.preventDefault()):a===`Delete`&&!F(c[m])?w=correctCaretPosition(c,m,`right`):a===`Backspace`&&!F(c[m])&&(w=correctCaretPosition(c,m,`left`)),w!==m&&setPatchedCaretPosition(t,w,c),k(e),setCaretPositionInfoBeforeChange(t,h)},_onMouseUp=function(e){var t=e.target,correctCaretPositionIfRequired=function(){var e=t.selectionStart,a=t.selectionEnd,o=t.value;if(o===void 0&&(o=``),e===a){var s=correctCaretPosition(o,e);s!==e&&setPatchedCaretPosition(t,s,o)}};correctCaretPositionIfRequired(),requestAnimationFrame(function(){correctCaretPositionIfRequired()}),A(e),setCaretPositionInfoBeforeChange(t)},_onFocus=function(e){e.persist&&e.persist();var t=e.target,a=e.currentTarget;pe.current=t,me.current.focusTimeout=setTimeout(function(){var o=t.selectionStart,s=t.selectionEnd,c=t.value;c===void 0&&(c=``);var m=correctCaretPosition(c,o);m!==o&&(o!==0||s!==c.length)&&setPatchedCaretPosition(t,m,c),ee(Object.assign(Object.assign({},e),{currentTarget:a}))},0)},_onBlur=function(e){pe.current=null,clearTimeout(me.current.focusTimeout),clearTimeout(me.current.setCaretTimeout),j(e)},_e=de&&addInputMode()?`numeric`:void 0,ve=Object.assign({inputMode:_e},re,{type:t,value:I,onChange:_onChange,onKeyDown:_onKeyDown,onMouseUp:_onMouseUp,onFocus:_onFocus,onBlur:_onBlur});if(a===`text`)return s?H.createElement(H.Fragment,null,s(I,re)||null):H.createElement(`span`,Object.assign({},re,{ref:c}),I);if(o){var ye=o;return H.createElement(ye,Object.assign({},ve,{ref:c}))}return H.createElement(`input`,Object.assign({},ve,{ref:c}))}function format(e,t){var a=t.decimalScale,o=t.fixedDecimalScale,s=t.prefix;s===void 0&&(s=``);var c=t.suffix;c===void 0&&(c=``);var m=t.allowNegative,h=t.thousandsGroupStyle;if(h===void 0&&(h=`thousand`),e===``||e===`-`)return e;var _=getSeparators(t),w=_.thousandSeparator,T=_.decimalSeparator,D=a!==0&&e.indexOf(`.`)!==-1||a&&o,O=splitDecimal(e,m),k=O.beforeDecimal,A=O.afterDecimal,ee=O.addNegation;return a!==void 0&&(A=limitToScale(A,a,!!o)),w&&(k=applyThousandSeparator(k,w,h)),s&&(k=s+k),c&&(A+=c),ee&&(k=`-`+k),e=k+(D&&T||``)+A,e}function getSeparators(e){var t=e.decimalSeparator;t===void 0&&(t=`.`);var a=e.thousandSeparator,o=e.allowedDecimalSeparators;return a===!0&&(a=`,`),o||=[t,`.`],{decimalSeparator:t,thousandSeparator:a,allowedDecimalSeparators:o}}function handleNegation(e,t){e===void 0&&(e=``);var a=RegExp(`(-)`),o=RegExp(`(-)(.)*(-)`),s=a.test(e),c=o.test(e);return e=e.replace(/-/g,``),s&&!c&&t&&(e=`-`+e),e}function getNumberRegex(e,t){return RegExp(`(^-)|[0-9]|`+escapeRegExp(e),t?`g`:void 0)}function isNumericString(e,t,a){return e===``||!t?.match(/\d/)&&!a?.match(/\d/)&&typeof e==`string`&&!isNaN(Number(e))}function removeFormatting(e,t,a){var o;t===void 0&&(t=getDefaultChangeMeta(e));var s=a.allowNegative,c=a.prefix;c===void 0&&(c=``);var m=a.suffix;m===void 0&&(m=``);var h=a.decimalScale,_=t.from,w=t.to,T=w.start,D=w.end,O=getSeparators(a),k=O.allowedDecimalSeparators,A=O.decimalSeparator,ee=e[D]===A;if(charIsNumber(e)&&(e===c||e===m)&&t.lastValue===``)return e;if(D-T===1&&k.indexOf(e[T])!==-1){var j=h===0?``:A;e=e.substring(0,T)+j+e.substring(T+1,e.length)}var stripNegation=function(e,t,a){var o=!1,s=!1;c.startsWith(`-`)?o=!1:e.startsWith(`--`)?(o=!1,s=!0):m.startsWith(`-`)&&e.length===m.length?o=!1:e[0]===`-`&&(o=!0);var h=+!!o;return s&&(h=2),h&&(e=e.substring(h),t-=h,a-=h),{value:e,start:t,end:a,hasNegation:o}},M=stripNegation(e,T,D),te=M.hasNegation;o=M,e=o.value,T=o.start,D=o.end;var F=stripNegation(t.lastValue,_.start,_.end),ne=F.start,re=F.end,ie=F.value,ae=e.substring(T,D);e.length&&ie.length&&(ne>ie.length-m.length||re<c.length)&&!(ae&&m.startsWith(ae))&&(e=ie);var I=0;e.startsWith(c)?I+=c.length:T<c.length&&(I=T),e=e.substring(I),D-=I;var oe=e.length,se=e.length-m.length;e.endsWith(m)?oe=se:(D>se||D>e.length-m.length)&&(oe=D),e=e.substring(0,oe),e=handleNegation(te?`-`+e:e,s),e=(e.match(getNumberRegex(A,!0))||[]).join(``);var ce=e.indexOf(A);e=e.replace(new RegExp(escapeRegExp(A),`g`),function(e,t){return t===ce?`.`:``});var le=splitDecimal(e,s),ue=le.beforeDecimal,de=le.afterDecimal,fe=le.addNegation;return w.end-w.start<_.end-_.start&&ue===``&&ee&&!parseFloat(de)&&(e=fe?`-`:``),e}function getCaretBoundary(e,t){var a=t.prefix;a===void 0&&(a=``);var o=t.suffix;o===void 0&&(o=``);var s=Array.from({length:e.length+1}).map(function(){return!0}),c=e[0]===`-`;s.fill(!1,0,Math.min(a.length+ +!!c,e.length));var m=e.length;return s.fill(!1,m-o.length+1,m+1),s}function validateAndUpdateProps(e){var t=getSeparators(e),a=t.thousandSeparator,o=t.decimalSeparator,s=e.prefix;s===void 0&&(s=``);var c=e.allowNegative;if(c===void 0&&(c=!0),a===o)throw Error(` 9 Decimal separator can't be same as thousand separator. 10 thousandSeparator: `+a+` (thousandSeparator = {true} is same as thousandSeparator = ",") 11 decimalSeparator: `+o+` (default value for decimalSeparator is .) 12 `);return s.startsWith(`-`)&&c&&(console.error(` 13 Prefix can't start with '-' when allowNegative is true. 14 prefix: `+s+` 15 allowNegative: `+c+` 16 `),c=!1),Object.assign(Object.assign({},e),{allowNegative:c})}function useNumericFormat(e){e=validateAndUpdateProps(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,a=e.allowNegative,o=e.allowLeadingZeros,s=e.onKeyDown;s===void 0&&(s=noop);var c=e.onBlur;c===void 0&&(c=noop);var m=e.thousandSeparator,h=e.decimalScale,_=e.fixedDecimalScale,w=e.prefix;w===void 0&&(w=``);var T=e.defaultValue,D=e.value,O=e.valueIsNumericString,k=e.onValueChange,A=__rest(e,[`decimalSeparator`,`allowedDecimalSeparators`,`thousandsGroupStyle`,`suffix`,`allowNegative`,`allowLeadingZeros`,`onKeyDown`,`onBlur`,`thousandSeparator`,`decimalScale`,`fixedDecimalScale`,`prefix`,`defaultValue`,`value`,`valueIsNumericString`,`onValueChange`]),ee=getSeparators(e),j=ee.decimalSeparator,M=ee.allowedDecimalSeparators,_format=function(t){return format(t,e)},_removeFormatting=function(t,a){return removeFormatting(t,a,e)},te=isNil(D)?T:D,F=O??isNumericString(te,w,t);isNil(D)?isNil(T)||(F||=typeof T==`number`):F||=typeof D==`number`;var roundIncomingValueToPrecision=function(e){return isNotValidValue(e)?e:(typeof e==`number`&&(e=toNumericString(e)),F&&typeof h==`number`?roun
16dToPrecision(e,h,!!_):e)},ne=useInternalValues(roundIncomingValueToPrecision(D),roundIncomingValueToPrecision(T),!!F,_format,_removeFormatting,k),re=ne[0],ie=re.numAsString,ae=re.formattedValue,I=ne[1],_onKeyDown=function(e){var t=e.target,o=e.key,c=t.selectionStart,T=t.selectionEnd,D=t.value;if(D===void 0&&(D=``),(o===`Backspace`||o===`Delete`)&&T<w.length&&D!==`-`){e.preventDefault();return}if(c!==T){s(e);return}o===`Backspace`&&D[0]===`-`&&c===w.length+1&&a&&setCaretPosition(t,1),h&&_&&(o===`Backspace`&&D[c-1]===j?(setCaretPosition(t,c-1),e.preventDefault()):o===`Delete`&&D[c]===j&&e.preventDefault()),M?.includes(o)&&D[c]===j&&setCaretPosition(t,c+1);var O=m===!0?`,`:m;o===`Backspace`&&D[c-1]===O&&setCaretPosition(t,c-1),o===`Delete`&&D[c]===O&&setCaretPosition(t,c+1),s(e)},_onBlur=function(t){var a=ie;a.match(/\d/g)||(a=``),o||(a=fixLeadingZero(a)),_&&h&&(a=roundToPrecision(a,h,_)),a!==ie&&I({formattedValue:format(a,e),value:a,floatValue:parseFloat(a)},{event:t,source:to.event}),c(t)},isValidInputCharacter=function(e){return e===j||charIsNumber(e)},isCharacterSame=function(e){var t=e.currentValue,a=e.lastValue,o=e.formattedValue,s=e.currentValueIndex,c=e.formattedValueIndex,m=t[s],T=o[c],O=oo(a,t).to,getDecimalSeparatorIndex=function(e){return _removeFormatting(e).indexOf(`.`)+w.length};return D===0&&_&&h&&t[O.start]===j&&getDecimalSeparatorIndex(t)<s&&getDecimalSeparatorIndex(o)>c?!1:s>=O.start&&s<O.end&&M&&M.includes(m)&&T===j?!0:m===T};return Object.assign(Object.assign({},A),{value:ae,valueIsNumericString:!1,isValidInputCharacter,isCharacterSame,onValueChange:I,format:_format,removeFormatting:_removeFormatting,getCaretBoundary:function(t){return getCaretBoundary(t,e)},onKeyDown:_onKeyDown,onBlur:_onBlur})}function NumericFormat(e){var t=useNumericFormat(e);return H.createElement(NumberFormatBase,Object.assign({},t))}var co=makeStyles(({palette:e})=>({tooltip:{color:e.common.contrastText,fontSize:`13px`,fontWeight:400,padding:`12px`,backgroundColor:e.background.dialog,border:`1px solid ${e.background.highlight}`,maxWidth:`300px`},arrow:{color:e.background.dialog,"&:before":{border:`1px solid ${e.background.highlight}`}},noMaxWidth:{maxWidth:`none`}})),Tooltip=({header:e,title:t,noMaxWidth:a,disabled:o,children:s,...c})=>{let m=co();return(0,W.jsx)(kt,{...c,disableFocusListener:!0,disableHoverListener:o,disableTouchListener:o,classes:{tooltip:Xe(m.tooltip,a&&m.noMaxWidth),arrow:m.arrow},title:(0,W.jsxs)(W.Fragment,{children:[e&&(0,W.jsx)(`div`,{style:{fontWeight:700},children:e}),t&&(0,W.jsx)(`div`,{children:t})]}),enterTouchDelay:0,children:s})},uo=makeStyles(e=>({plusMinusArrows:{height:`30px`,width:`10px`,flex:`0 0 15px`,color:e.palette.input.textColor,position:`relative`,opacity:1,"& svg":{position:`absolute`,height:`10px`,width:`10px`,cursor:`pointer`,"&:hover":{color:e.palette.text.primary},"&:first-of-type":{top:`4px`,left:`0px`},"&:last-of-type":{bottom:`4px`,left:`0px`}}}})),fo=H.memo(({onPlus:e,disabled:t,onMinus:a})=>{let o=uo();return(0,W.jsxs)(`div`,{className:o.plusMinusArrows,children:[(0,W.jsx)(jr,{viewBox:`6 6 12 12`,"data-id":`PlusBtn`,onClick:t?void 0:e}),(0,W.jsx)(Ar,{viewBox:`6 6 12 12`,"data-id":`MinusBtn`,onClick:t?void 0:a})]})}),po=H.memo(e=>{let t=e.onReloadTooltipProps||{};return(e.disabled||!e.onReloadTooltipProps)&&(t.disabled=!0),(0,W.jsx)(Tooltip,{...t,children:(0,W.jsx)(`div`,{onMouseEnter:e.onReloadMouseEnter,onMouseLeave:e.onReloadMouseLeave,children:(0,W.jsx)(Button,{variant:`text`,"data-id":e[`data-id`]&&`${e[`data-id`]}ReloadBtn`,tabIndex:-1,onClick:e.onReload,style:{minWidth:`25px`,width:`25px`},disabled:e.disabled,children:(0,W.jsx)(Mr,{fontSize:`small`})})})})}),mo=H.memo(function NumberFormatCustom({ref:e,...t}){let{inputRef:a,onChange:o,...s}=t;return(0,W.jsx)(NumericFormat,{...s,getInputRef:e,onValueChange:e=>{o({name:t.name,...e})},allowedDecimalSeparators:[`,`,`.`]})}),ho=makeStyles(e=>({root:{boxSizing:`border-box`,borderRadius:`8px`,padding:`5px`,overflow:`hidden`,minHeight:e=>`${e.height||`40px`} !important`,border:t=>t.error&&t.helperText||t.showRequiredError&&!t.value?`1px solid ${e.palette.error.main}`:`none`},input:{height:`100%`,fontSize:e=>e.size&&$a[e.size]?$a[e.size]:`14px`,flex:1,lineHeight:`initial`,"&:focus":{boxSizing:`content-box`},"& .MuiInputBase-input-MuiInput-input .Mui-disabled":{"-webkit-text-fill-color":`red`}},inputAdornmentRoot:{color:e.palette.common.contrastText},label:{whiteSpace:`inherit`,fontSize:`14px`}})),go=makeStyles(e=>({root:e.typography.body1})),_o=[`height`,`size`,`roundStep`,`numberInput`,`plusMinusButtons`,`onPlus`,`onMinus`,`reloadButton`,`onReload`,`onReloadMouseEnter`,`onReloadMouseLeave`,`onReloadTooltipProps`,`numberFormatProps`,`borderLess`,`transparent`,`inputPrefix`,`inputSuffix`,`label`,`endAdornment`,`disableInput`,`showRequiredError`],TextField=e=>{let{id:t,size:a,height:o,onChange:c,roundStep:h,numberInput:_,plusMinusButtons:w,onPlus:T,onMinus:D,reloadButton:O,onReload:k,onReloadMouseEnter:A,onReloadMouseLeave:ee,onReloadTooltipProps:j,numberFormatProps:M,endAdornment:te,inputPrefix:F,inputSuffix:ne,startAdornment:re,borderLess:ie,transparent:ae,disabled:I,name:oe,InputProps:se,inputProps:ce,onBlur:le,label:ue,variant:fe,disableInput:pe,error:me,showRequiredError:ge,value:_e,helperText:ve}=e,ye=ho({size:a,borderLess:ie,transparent:ae,height:o,error:me,showRequiredError:ge,value:_e,helperText:ve}),be=go(),xe=(0,H.useRef)(null),Se=(0,H.useCallback)(e=>{let{floatValue:t,formattedValue:a}=e,o=h?h>
161?1:h:null,s=o?m(t,o,Math.round):t;xe.current=s,_&&c&&c(t?s:a,oe)},[c,h,oe,_]),Ce=(0,H.useCallback)(e=>{le&&le(e,xe.current??void 0)},[le]),we=Me(e,_o);return(0,W.jsxs)(W.Fragment,{children:[ue&&(0,W.jsx)(Jt,{className:ye.label,htmlFor:t,children:ue}),(0,W.jsx)(de,{...we,variant:fe||`standard`,onBlur:Ce,color:`primary`,id:t,onChange:_?Se:c,inputProps:{..._&&{...M},...ce,...pe&&{disabled:!0}},FormHelperTextProps:{classes:be},InputProps:{classes:ye,disableUnderline:!0,inputComponent:_?mo:`input`,startAdornment:re||F&&(0,W.jsx)(he,{position:`start`,children:F}),endAdornment:te&&!w&&!ne&&!O?te:(0,W.jsxs)(he,{position:`end`,classes:{root:ye.inputAdornmentRoot},children:[ne,w&&T&&D&&(0,W.jsx)(fo,{onPlus:T,onMinus:D,disabled:I}),O&&k&&(0,W.jsx)(po,{onReload:k,onReloadMouseEnter:A,onReloadMouseLeave:ee,onReloadTooltipProps:j,disabled:I,"data-id":t})]}),...se},autoComplete:`off`,...ge&&!_e&&{error:!0,helperText:(0,W.jsx)(s,{id:`commonScreen.form.error.required`})}})]})};function r(e){var t,a,o=``;if(typeof e==`string`||typeof e==`number`)o+=e;else if(typeof e==`object`){if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(a=r(e[t]))&&(o&&(o+=` `),o+=a)}else for(a in e)e[a]&&(o&&(o+=` `),o+=a)}return o}function clsx(){for(var e,t,a=0,o=``,s=arguments.length;a<s;a++)(e=arguments[a])&&(t=r(e))&&(o&&(o+=` `),o+=t);return o}function Mt(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],a=document.createElement(`style`);a.type=`text/css`,t.firstChild?t.insertBefore(a,t.firstChild):t.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}Mt(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}
16.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}
16}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}} 17`);var L=e=>typeof e==`number`&&!isNaN(e),N=e=>typeof e==`string`,P=e=>typeof e==`function`,mt=e=>N(e)||L(e),B=e=>N(e)||P(e)?e:null,pt=(e,t)=>
17e===!1||L(e)&&e>0?e:t,z=e=>(0,H.isValidElement)(e)||N(e)||P(e)||L(e);function Z(e,t,a=300){let{scrollHeight:o,style:s}=e;requestAnimationFrame(()=>{s.minHeight=`initial`,s.height=o+`px`,s.transition=`all ${a}ms`,requestAnimationFrame(()=>{s.height=`0`,s.padding=`0`,s.margin=`0`,setTimeout(t,a)})})}function $({enter:e,exit:t,appendPosition:a=!1,collapse:o=!0,collapseDuration:s=300}){return function({children:c,position:m,preventExitTransition:h,done:_,nodeRef:w,isIn:T,playToast:D}){let O=a?`${e}--${m}`:e,k=a?`${t}--${m}`:t,A=(0,H.useRef)(0);return(0,H.useLayoutEffect)(()=>{let e=w.current,t=O.split(` `),b=a=>{a.target===w.current&&(D(),e.removeEventListener(`animationend`,b),e.removeEventListener(`animationcancel`,b),A.current===0&&a.type!==`animationcancel`&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener(`animationend`,b),e.addEventListener(`animationcancel`,b)},[]),(0,H.useEffect)(()=>{let e=w.current,p=()=>{e.removeEventListener(`animationend`,p),o?Z(e,_,s):_()};T||(h?p():(A.current=1,e.className+=` ${k}`,e.addEventListener(`animationend`,p)))},[T]),H.createElement(H.Fragment,null,c)}}function J(e,t){return{content:tt(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function tt(e,t,a=!1){return(0,H.isValidElement)(e)&&!N(e.type)?(0,H.cloneElement)(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:a}):P(e)?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:a}):e}function yt({closeToast:e,theme:t,ariaLabel:a=`close`}){return H.createElement(`button`,{className:`Toastify__close-button Toastify__close-button--${t}`,type:`button`,onClick:t=>{t.stopPropagation(),e(!0)},"aria-label":a},H.createElement(`svg`,{"aria-hidden":`true`,viewBox:`0 0 14 16`},H.createElement(`path`,{fillRule:`evenodd`,d:`M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z`})))}function gt({delay:e,isRunning:t,closeToast:a,type:o=`default`,hide:s,className:c,controlledProgress:m,progress:h,rtl:_,isIn:w,theme:T}){let D=s||m&&h===0,O={animationDuration:`${e}ms`,animationPlayState:t?`running`:`paused`};m&&(O.transform=`scaleX(${h})`);let k=clsx(`Toastify__progress-bar`,m?`Toastify__progress-bar--controlled`:`Toastify__progress-bar--animated`,`Toastify__progress-bar-theme--${T}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":_}),A=P(c)?c({rtl:_,type:o,defaultClassName:k}):clsx(k,c),ee={[m&&h>=1?`onTransitionEnd`:`onAnimationEnd`]:m&&h<1?null:()=>{w&&a()}};return H.createElement(`div`,{className:`Toastify__progress-bar--wrp`,"data-hidden":D},H.createElement(`div`,{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${T} Toastify__progress-bar--${o}`}),H.createElement(`div`,{role:`progressbar`,"aria-hidden":D?`true`:`false`,"aria-label":`notification timer`,className:A,style:O,...ee}))}var vo=1,at=()=>`${vo++}`;function _t(e,t,a){let o=1,s=0,c=[],m=[],h=t,_=new Map,w=new Set,g=e=>(w.add(e),()=>w.delete(e)),v=()=>
17{m=Array.from(_.values()),w.forEach(e=>e())},x=({containerId:t,toastId:a,updateId:o})=>{let s=t?t!==e:e!==1,c=_.has(a)&&o==null;return s||c},C=(e,t)=>{_.forEach(a=>{var o;(t==null||t===a.props.toastId)&&((o=a.toggle)==null||o.call(a,e))})},S=e=>{var t,a;(a=(t=e.props)?.onClose)==null||a.call(t,e.removalReason),e.isActive=!1},E=e=>{if(e==null)_.forEach(S);else{let t=_.get(e);t&&S(t)}v()},f=()=>{s-=c.length,c=[]},p=e=>{var t,o;let{toastId:s,updateId:c}=e.props,m=c==null;e.staleId&&_.delete(e.staleId),e.isActive=!0,_.set(s,e),v(),a(J(e,m?`added`:`updated`)),m&&((o=(t=e.props).onOpen)==null||o.call(t))};return{id:e,props:h,observe:g,toggle:C,removeToast:E,toasts:_,clearQueue:f,buildToast:(e,t)=>{if(x(t))return;let{toastId:m,updateId:w,data:T,staleId:D,delay:O}=t,k=w==null;k&&s++;let A={...h,style:h.toastStyle,key:o++,...Object.fromEntries(Object.entries(t).filter(([e,t])=>t!=null)),toastId:m,updateId:w,data:T,isIn:!1,className:B(t.className||h.toastClassName),progressClassName:B(t.progressClassName||h.progressClassName),autoClose:!t.isLoading&&pt(t.autoClose,h.autoClose),closeToast(e){_.get(m).removalReason=e,E(m)},deleteToast(){let e=_.get(m);
17if(e!=null){if(a(J(e,`removed`)),_.delete(m),s--,s<0&&(s=0),c.length>0){p(c.shift());return}v()}}};A.closeButton=h.closeButton,t.closeButton===!1||z(t.closeButton)?A.closeButton=t.closeButton:t.closeButton===!0&&(A.closeButton=!z(h.closeButton)||h.closeButton);let ee={content:e,props:A,staleId:D};h.limit&&h.limit>0&&s>h.limit&&k?c.push(ee):L(O)?setTimeout(()=>{p(ee)},O):p(ee)},setProps(e){h=e},setToggle:(e,t)=>{let a=_.get(e);a&&(a.toggle=t)},isToastActive:e=>_.get(e)?.isActive,getSnapshot:()=>m}}var yo=new Map,bo=[],xo=new Set,Vt=e=>xo.forEach(t=>t(e)),bt=()=>yo.size>0;function Qt(){bo.forEach(e=>nt(e.content,e.options)),bo=[]}var vt=(e,{containerId:t})=>yo.get(t||1)?.toasts.get(e);function X(e,t){var a;if(t)return!!((a=yo.get(t))!=null&&a.isToastActive(e));let o=!1;return yo.forEach(t=>{t.isToastActive(e)&&(o=!0)}),o}function ht(e){if(!bt()){bo=bo.filter(t=>e!=null&&t.options.toastId!==e);return}if(e==null||mt(e))yo.forEach(t=>{t.removeToast(e)});else if(e&&(`containerId`in e||`id`in e)){let t=yo.get(e.containerId);t?t.removeToast(e.id):yo.forEach(t=>{t.removeToast(e.id)})}}var Ct=(e={})=>{yo.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})};function nt(e,t){z(e)&&(bt()||bo.push({content:e,options:t}),yo.forEach(a=>{a.buildToast(e,t)}))}function xt(e){var t;(t=yo.get(e.containerId||1))==null||t.setToggle(e.id,e.fn)}function rt(e,t){yo.forEach(a=>{(t==null||!(t!=null&&t.containerId)||t?.containerId===a.id)&&a.toggle(e,t?.id)})}function Et(e){let t=e.containerId||1;return{subscribe(a){let o=_t(t,e,Vt);yo.set(t,o);let s=o.observe(a);return Qt(),()=>{s(),yo.delete(t)}},setProps(e){var a;(a=yo.get(t))==null||a.setProps(e)},getSnapshot(){return yo.get(t)?.getSnapshot()}}}function Pt(e){return xo.add(e),()=>{xo.delete(e)}}function Wt(e){return e&&(N(e.toastId)||L(e.toastId))?e.toastId:at()}function U(e,t){return nt(e,t),t.toastId}function V(e,t){return{...t,type:t&&t.type||e,toastId:Wt(t)}}function Q(e){return(t,a)=>U(t,V(e,a))}function y(e,t){return U(e,V(`default`,t))}y.loading=(e,t)=>
17U(e,V(`default`,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t}));function Gt(e,{pending:t,error:a,success:o},s){let c;t&&(c=N(t)?y.loading(t,s):y.loading(t.render,{...s,...t}));let m={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(e,t,a)=>{if(t==null){y.dismiss(c);return}let o={type:e,...m,...s,data:a},h=N(t)?{render:t}:t;return c?y.update(c,{...o,...h}):y(h.render,{...o,...h}),a},h=P(e)?e():e;return h.then(e=>d(`success`,o,e)).catch(e=>d(`error`,a,e)),h}y.promise=Gt,y.success=Q(`success`),y.info=Q(`info`),y.error=Q(`error`),y.warning=Q(`warning`),y.warn=y.warning,y.dark=(e,t)=>U(e,V(`default`,{theme:`dark`,...t}));function qt(e){ht(e)}y.dismiss=qt,y.clearWaitingQueue=Ct,y.isActive=X,y.update=(e,t={})=>{let a=vt(e,t);if(a){let{props:o,content:s}=a,c={delay:100,...o,...t,toastId:t.toastId||e,updateId:at()};c.toastId!==e&&(c.staleId=e);let m=c.render||s;delete c.render,U(m,c)}},y.done=e=>{y.update(e,{progress:1})},y.onChange=Pt,y.play=e=>rt(!0,e),y.pause=e=>rt(!1,e);function It(e){let{subscribe:t,getSnapshot:a,setProps:o}=(0,H.useRef)(Et(e)).current;o(e);let s=(0,H.useSyncExternalStore)(t,a,a)?.slice();function l(t){if(!s)return[];let a=new Map;return e.newestOnTop&&s.reverse(),s.forEach(e=>{let{position:t}=e.props;a.has(t)||a.set(t,[]),a.get(t).push(e)}),Array.from(a,e=>t(e[0],e[1]))}return{getToastToRender:l,isToastActive:X,count:s?.length}}function At(e){let[t,a]=(0,H.useState)(!1),[o,s]=(0,H.useState)(!1),c=(0,H.useRef)(null),m=(0,H.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:h,pauseOnHover:_,closeToast:w,onClick:T,closeOnClick:D}=e;xt({id:e.toastId,containerId:e.containerId,fn:a}),(0,H.useEffect)(()=>{if(e.pauseOnFocusLoss)return x(),()=>{C()}},[e.pauseOnFocusLoss]);function x(){document.hasFocus()||p(),window.addEventListener(`focus`,f),window.addEventListener(`blur`,p)}function C(){window.removeEventListener(`focus`,f),window.removeEventListener(`blur`,p)}function S(t){if(e.draggable===!0||e.draggable===t.pointerType){b();let a=c.current;m.canCloseOnClick=!0,m.canDrag=!0,a.style.transition=`none`,e.draggableDirection===`x`?(m.start=t.clientX,m.removalDistance=a.offsetWidth*(e.draggablePercent/100)):(m.start=t.clientY,m.removalDistance=a.offsetHeight*(e.draggablePercent===80?e.draggablePercent*1.5:e.draggablePercent)/100)}}function E(t){let{top:a,bottom:o,left:s,right:m}=c.current.getBoundingClientRect();t.nativeEvent.type!==`touchend`&&e.pauseOnHover&&t.clientX>=s&&t.clientX<=m&&t.clientY>=a&&t.clientY<=o?p():f()}function f(){a(!0)}function p(){a(!1)}function b(){m.didMove=!1,document.addEventListener(`pointermove`,n),document.addEventListener(`pointerup`,u)}function i(){document.removeEventListener(`pointermove`,n),document.removeEventListener(`pointerup`,u)}function n(a){let o=c.current;if(m.canDrag&&o){m.didMove=!0,t&&p(),e.draggableDirection===`x`?m.delta=a.clientX-m.start:m.delta=a.clientY-m.start,m.start!==a.clientX&&(m.canCloseOnClick=!1);let s=e.draggableDirection===`x`?`${m.delta}px, var(--y)`:`0, calc(${m.delta}px + var(--y))`;o.style.transform=`translate3d(${s},0)`,o.style.opacity=`${1-Math.abs(m.delta/m.removalDistance)}`}}function u(){i();let t=c.current;if(m.canDrag&&m.didMove&&t){if(m.canDrag=!1,Math.abs(m.delta)>m.removalDistance){s(!0),e.closeToast(!0),e.collapseAll();return}t.style.transition=`transform 0.2s, opacity 0.2s`,t.style.removeProperty(`transform`),t.style.removeProperty(`opacity`)}}let O={onPointerDown:S,onPointerUp:E};return h&&_&&(O.onMouseEnter=p,e.stacked||(O.onMouseLeave=f)),D&&(O.onClick=e=>{T&&T(e),m.canCloseOnClick&&w(!0)}),{playToast:f,pauseToast:p,isRunning:t,preventExitTransition:o,toastRef:c,eventHandlers:O}}var So=typeof window<`u`?H.useLayoutEffect:H.useEffect,G=({theme:e,type:t,isLoading:a,...o})=>H.createElement(`svg`,{viewBox:`0 0 24 24`,width:`100%`,height:`100%`,fill:e===`colored`?`currentColor`:`var(--toastify-icon-color-${t})`,...o});function ao(e){return H.createElement(G,{...e},H.createElement(`path`,{d:`M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z`}))}function so(e){return H.createElement(G,{...e},H.createElement(`path`,{d:`M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z`}))}function no(e){return H.createElement(G,{...e},H.createElement(`path`,{d:`M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z`}))}function ro(e){return H.createElement(G,{...e},H.createElement(`path`,{d:`M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z`}))}function io(){return H.createElement(`div`,{className:`Toastify__spinner`})}var Co={info:so,warning:ao,success:no,error:ro,spinner:io},lo=e=>e in Co;function Nt({theme:e,type:t,isLoading:a,icon:o}){let s=null,c={theme:e,type:t};return o===!1||(P(o)?s=o({...c,isLoading:a}):(0,H.isValidElement)(o)?s=(0,H.cloneElement)(o,c):a?s=Co.spinner():lo(t)&&(s=Co[t](c))),s}var wt=e=>{let{isRunning:t,preventExitTransition:a,toastRef:o,eventHandlers:s,playToast:c}=At(e),{closeButton:m,children:h,autoClose:_,onClick:w,type:T,hideProgressBar:D,closeToast:O,transition:k,position:A,className:ee,style:j,progressClassName:M,updateId:te,role:F,progress:ne,rtl:re,toastId:ie,deleteToast:ae,isIn:I,isLoading:oe,closeOnClick:se,theme:ce,ariaLabel:le}=e,ue=clsx(`Toastify__toast`,`Toastify__toast-theme--${ce}`,`Toastify__toast--${T}`,{"Toastify__toast--rtl":re},{"Toastify__toast--close-on-click":se}),de=P(ee)?ee({rtl:re,position:A,type:T,defaultClassName:ue}):clsx(ue,ee),fe=Nt(e),pe=!!ne||!_,me={closeToast:O,type:T,theme:ce},he=null;return m===!1||(he=P(m)?m(me):(0,H.isValidElement)(m)?(0,H.cloneElement)(m,me):yt(me)),H.createElement(k,{isIn:I,done:ae,position:A,preventExitTransition:a,nodeRef:o,playToast:c},H.createElement(`div`,{id:ie,tabIndex:0,onClick:w,"data-in":I,className:de,...s,style:j,ref:o,...I&&{role:F,"aria-label":le}},fe!=null&&H.createElement(`div`,{className:clsx(`Toastify__toast-icon`,{"Toastify--animate-icon Toastify__zoom-enter"
17:!oe})},fe),tt(h,e,!t),he,!e.customProgressBar&&H.createElement(gt,{...te&&!pe?{key:`p-${te}`}:{},rtl:re,theme:ce,delay:_,isRunning:t,isIn:I,closeToast:O,hide:D,type:T,className:M,controlledProgress:pe,progress:ne||0})))},K=(e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}),wo=$(K(`bounce`,!0));$(K(`slide`,!0)),$(K(`zoom`)),$(K(`flip`));var To={position:`top-right`,transition:wo,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:`touch`,draggablePercent:80,draggableDirection:`x`,role:`alert`,theme:`light`,"aria-label":`Notifications Alt+T`,hotKeys:e=>e.altKey&&e.code===`KeyT`};function Lt(e){let t={...To,...e},a=e.stacked,[o,s]=(0,H.useState)(!0),c=(0,H.useRef)(null),{getToastToRender:m,isToastActive:h,count:_}=It(t),{className:w,style:T,rtl:D,containerId:O,hotKeys:k}=t;function S(e){let t=clsx(`Toastify__toast-container`,`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":D});return P(w)?w({position:e,rtl:D,defaultClassName:t}):clsx(t,B(w))}function E(){a&&(s(!0),y.play())}return So(()=>
17{if(a){let e=c.current.querySelectorAll(`[data-in="true"]`),a=t.position?.includes(`top`),s=0,m=0;Array.from(e).reverse().forEach((e,t)=>{let c=e;c.classList.add(`Toastify__toast--stacked`),t>0&&(c.dataset.collapsed=`${o}`),c.dataset.pos||(c.dataset.pos=a?`top`:`bot`);let h=s*(o?.2:1)+(o?0:12*t);c.style.setProperty(`--y`,`${a?h:h*-1}px`),c.style.setProperty(`--g`,`12`),c.style.setProperty(`--s`,`${1-(o?m:0)}`),s+=c.offsetHeight,m+=.025})}},[o,_,a]),(0,H.useEffect)(()=>{function f(e){var t;let a=c.current;k(e)&&((t=a.querySelector(`[tabIndex="0"]`))==null||t.focus(),s(!1),y.pause()),e.key===`Escape`&&(document.activeElement===a||a!=null&&a.contains(document.activeElement))&&(s(!0),y.play())}return document.addEventListener(`keydown`,f),()=>{document.removeEventListener(`keydown`,f)}},[k]),H.createElement(`section`,{ref:c,className:`Toastify`,id:O,onMouseEnter:()=>{a&&(s(!1),y.pause())},onMouseLeave:E,"aria-live":`polite`,"aria-atomic":`false`,"aria-relevant":`additions text`,"aria-label":t[`aria-label`]},m((e,t)=>{let o=t.length?{...T}:{...T,pointerEvents:`none`};return H.createElement(`div`,{tabIndex:-1,className:S(e),"data-stacked":a,style:o,key:`c-${e}`},t.map(({content:e,props:t})=>H.createElement(wt,{...t,stacked:a,collapseAll:E,isIn:h(t.toastId,t.containerId),key:`t-${t.key}`},e)))}))}function NotificationTag({variant:e}){let t=ae();switch(e){case`buy`:return(0,W.jsx)(oe,{label:Fe._({id:`commonScreen.notificationTags.buy`}),size:`small`,color:t.palette.dsComponents.tag.notificationTags.buy.color,backgroundColor:t.palette.dsComponents.tag.notificationTags.buy.backgroundColor,hasShadow:!0});case`sell`:return(0,W.jsx)(oe,{label:Fe._({id:`commonScreen.notificationTags.sell`}),size:`small`,color:t.palette.dsComponents.tag.notificationTags.sell.color,backgroundColor:t.palette.dsComponents.tag.notificationTags.sell.backgroundColor,hasShadow:!0});default:return(0,W.jsx)(W.Fragment,{})}}function useNotificationTheme(){let e=ae(),t=e.palette.dsColors.success[200],a=e.palette.common.white,o=e.palette.dsColors.error[200],s=e.palette.common.white;return e.palette.mode===`dark`?{info:{background:e.palette.dsColors.darkGray[10],color:e.palette.common.white,opacity:.4},success:{background:t,color:a,opacity:.7},error:{background:o,color:s,opacity:.7},tradeBuy:{background:t,color:e.palette.common.white,opacity:.3},tradeSell:{background:o,color:e.palette.common.white,opacity:.3},orderFilled:{sell:{background:e.palette.dsColors.error[80]},buy:{background:e.palette.dsColors.success[80]}},badge:{background:e.palette.dsColors.darkGray[10],sell:{background:e.palette.dsColors.error[200]},buy:{background:e.palette.dsColors.success[100]}},title:{color:e.palette.dsColors.lightGray[100]},borderColor:e.palette.dsColors.lightGray[100]}:{info:{background:e.palette.dsColors.lightGray[60],color:e.palette.dsColors.darkGray[80],opacity:.7},success:{background:t,color:a,opacity:.8},error:{background:e.palette.dsColors.error[100],color:s,opacity:.8},tradeBuy:{background:e.palette.dsColors.success[40],color:e.palette.dsColors.darkGray[80],opacity:.4},tradeSell:{background:e.palette.dsColors.error[40],color:e.palette.dsColors.darkGray[80],opacity:.4},orderFilled:{sell:{background:e.palette.dsColors.error[100]},buy:{background:e.palette.dsColors.success[100]}},badge:{background:e.palette.dsColors.darkGray[40],sell:{background:e.palette.dsColors.error[100]},buy:{background:e.palette.dsColors.success[200]}},title:{color:e.palette.dsColors.darkGray[80]},borderColor:e.palette.dsColors.darkGray[10]}}jt();var Eo=F(`span`,{shouldForwardProp:e=>e!==`direction`})(({theme:e,direction:t})=>{let{background:a}=useNotificationTheme().orderFilled[t===`buy`?`buy`:`sell`];return ze` 18 position: absolute; 19 top: 0; 20 right: 0; 21 border-radius: 0 ${e.spacing(1.5)}; 22 background-color: ${a}; 23 color: ${e.palette.common.white}; 24 font-size: ${e.typography.helperText.fontSize}; 25 font-weight: 600; 26 padding: ${e.spacing(.25,2)}; 27 `}),Do=function(e){return e[e.ORDER=0]=`ORDER`,e[e.ORDER_CANCELLED=1]=`ORDER_CANCELLED`,e[e.ORDERS_CANCELLED=2]=`ORDERS_CANCELLED`,e[e.TRADES=3]=`TRADES`,e}({}),getPriceSpanForOrderNotification=({price:e,instrument_name:t})=>(0,W.jsx)(`span`,{"data-id":`price`,style:{textTransform:`lowercase`},children:e===`market_price`?(0,W.jsx)(s,{id:`commonScreen.common.marketPrice`}):lt(e,Ze(t).priceDecimals,Ft.isReversedFutureInstrument(t))}),TradeNotification=({trade:e})=>{let{instrument_name:t,direction:a,amount:o,contracts:c,price:m,state:h}=e,{sizeDecimals:_,priceDecimals:w}=Ze(t);return(0,W.jsxs)(W.Fragment,{children:[re(a),h===`filled`&&(0,W.jsx)(Eo,{"data-id":`filled`,direction:a,children:(0,W.jsx)(s,{id:`commonScreen.notificationTags.orderFilled`})}),(0,W.jsxs)(`span`,{"data-id":`amount`,children:[` `,isAmountInContracts({instrument:t})?lt(c,ie(c)):lt(o,_)]}),(0,W.jsx)(`span`,{children:`@`}),Ft.isLinearInstrument(t)&&(0,W.jsx)(`span`,{className:`deribit-icon-${Ft.splitInstrument(t)?.currency?.toLowerCase()}`}),(0,W.jsx)(`span`,{"data-id":`price`,children:lt(m,w,Ft.isReversedFutureInstrument(t))})]})}
27,OrderGeneralNotification=({order:e,fullyFilled:t})=>{let{amount:a,contracts:o,direction:c,instrument_name:m}=e,h=Ve(e)?void 0:e.filled_amount,_=Ze(m).sizeDecimals,w=Ft.getInstrumentData(m)?.contract_size||1,T=ie(o),O=isAmountInContracts({instrument:m}),k;return k=t?(0,W.jsx)(s,{id:`notification.orderCancelled.fullyFilled`}):h&&a!==h?O?lt(D(a-h,w),T):lt(a-h,_):O?lt(o,T):lt(a,_),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(NotificationTag,{"data-id":`direction`,variant:c}),(0,W.jsxs)(`span`,{"data-id":`amount`,children:[` `,k]}),(0,W.jsx)(`span`,{children:`@`}),Ft.isLinearInstrument(m)&&(0,W.jsx)(`span`,{className:`deribit-icon-${Ft.splitInstrument(m)?.currency?.toLowerCase()}`}),getPriceSpanForOrderNotification(e)]})};jt();var Oo=F(`div`,qe([`notificationStyle`]))(({theme:e,notificationStyle:t})=>{let{background:a,color:o,opacity:s}=useNotificationTheme()[t];return ze` 28 display: flex; 29 background-color: ${h(a,s)}; 30 backdrop-filter: blur(15px); 31 border-radius: ${e.shape.borderRadius*1.5}px; 32 padding: ${e.spacing(1,2)}; 33 color: ${o}; 34 font-size: ${e.typography.body3.fontSize}; 35 font-weight: ${e.typography.fontWeightBold}; 36 font-family: ${e.typography.fontFamily}; 37 line-height: ${e.typography.body3.lineHeight}; 38 z-index: 1; 39 `}),ko=F(`div`,qe([`stroke`,`fill`,`notificationStyle`]))(({theme:e,notificationStyle:t,stroke:a,fill:o})=>{let{color:s}=useNotificationTheme()[t];return ze` 40 display: flex; 41 align-items: center; 42 padding-right: ${e.spacing(2)}; 43 44 svg { 45 fill: ${o&&s}; 46 stroke: ${a&&s}; 47 } 48 `}),Ao=F(`div`)(({theme:e})=>ze` 49 display: flex; 50 flex-direction: column; 51 justify-content: center; 52 gap: ${e.spacing(.5)}; 53 `),jo=F(`div`)(({theme:e})=>{let t=useNotificationTheme();return ze` 54 font-size: ${e.typography.helperText.fontSize}; 55 line-height: ${e.typography.helperText.lineHeight}; 56 color: ${t.title.color}; 57 `}),Mo=F(`div`)(({theme:e})=>ze` 58 font-size: ${e.typography.body3.fontSize}; 59 font-weight: ${e.typography.fontWeightBold}; 60 line-height: ${e.typography.body3.lineHeight}; 61 `),No=F(`div`)(({theme:e})=>ze` 62 display: flex; 63 align-items: center; 64 gap: ${e.spacing(.5)}; 65 `),getCancelReasonMessage=e=>{switch(e){case`order_overlap`:return(0,W.jsx)(s,{id:`notification.orderCancelled.orderOverlap`});case`price_bound`:return(0,W.jsx)(s,{id:`notification.orderCancelled.priceBound`});case`time_in_force`:return(0,W.jsx)(s,{id:`notification.orderCancelled.timeInForce`});case`self_trade_prevention`:return(0,W.jsx)(s,{id:`notification.orderCancelled.selfTradePrevention`});case`admin`:return(0,W.jsx)(s,{id:`notification.orderCancelled.admin`});case`insufficient_funds`:return(0,W.jsx)(s,{id:`notification.orderCancelled.insufficientFunds`});case`insufficient_liquidity`:return(0,W.jsx)(s,{id:`notification.orderCancelled.insufficientLiquidity`});case`broker_cancel`:return(0,W.jsx)(s,{id:`notification.orderCancelled.brokerCancel`});case`high_bid_limit`:return(0,W.jsx)(s,{id:`notification.orderCancelled.highBidLimit`});case`modify_order`:return(0,W.jsx)(s,{id:`notification.orderCancelled.modifyOrder`});case`user`:return(0,W.jsx)(s,{id:`notification.orderCancelled.user`})}},NotificationContent=e=>{let t,a,o,c,m,h,_=`info`,w,T;switch(e.type){case Do.ORDER:t=Tt(e.order.instrument_name),w=Ve(e.order)?`stop_order`:`order`,e.order.replaced?(a=(0,W.jsx)(Pe,{name:st.orderEdited}),m=(0,W.jsx)(s,{id:`notification.order.orderEdited`})):(a=(0,W.jsx)(Pe,{name:st.orderSubmitted}),m=(0,W.jsx)(s,{id:`notification.order.orderSubmitted`})),h=(0,W.jsx)(OrderGeneralNotification,{...e});break;case Do.ORDER_CANCELLED:{t=Tt(e.order.instrument_name),a=(0,W.jsx)(Pe,{name:st.orderCancelled}),o=!0;let c=getCancelReasonMessage(e.order.cancel_reason);m=(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(s,{id:`notification.order.orderCancelled`}),c&&(0,W.jsx)(`div`,{children:c})]}),h=(0,W.jsx)(OrderGeneralNotification,{...e});break}case Do.ORDERS_CANCELLED:t=Tt(e.ordersInstrument),a=(0,W.jsx)(Pe,{name:st.orderCancelled}),o=!0,m=e.ordersNum>1?(0,W.jsx)(s,{id:`notification.order.ordersCancelled`}):(0,W.jsx)(s,{id:`notification.order.orderCancelled`}),h=(0,W.jsx)(s,{values:{0:e.ordersNum},id:`notification.order.cancelledOrders`});break;case Do.TRADES:{_=e.trade.direction===`buy`?`tradeBuy`:`tradeSell`,a=(0,W.jsx)(Pe,{name:st.trade}),w=`trade`;let o=e.trade.liquidity===`T`?(0,W.jsx)(s,{id:`notification.trade.taker`}):(0,W.jsx)(s,{id:`notification.trade.maker`});t=(0,W.jsxs)(W.Fragment,{children:[Tt(e.trade.instrument_name),` (`,o,`)`]}),m=(0,W.jsx)(s,{id:`notification.trade.tradeConfirmation`}),h=(0,W.jsx)(TradeNotification,{...e});break}default:h=e.message,e.isInfo?(c=!0,m=e.title??(0,W.jsx)(s,{id:`notification.systemNotification`}),a=(0,W.jsx)(Pe,{name:e.iconName??st.settingsOutline}),T=`infoMsg`):e.isError?(_=`error`,a=(0,W.jsx)(Pe,{name:st.warning}),T=`errorMsg`):(_=`success`,a=(0,W.jsx)(Pe,{name:st.checkmarkCircle}),T=`successMsg`)}return(0,W.jsxs)(Oo,{notificationStyle:_,"data-id":`notification`,children:[(0,W.jsx)(ko,{stroke:o,fill:c,notificationStyle:_,children:a}),(0,W.jsxs)(Ao,{children:[m&&(0,W.jsx)(jo,{"data-id":w,children:m}),t&&(0,W.jsx)(Mo,{"data-id":`instrumentName`,children:t}),(0,W.jsx)(No,{"data-id":T,children:h})]})]})},Po=$e(NotificationContent),Notification=class{static types={STANDARD:`standard`,ORDER:`order`,ORDER_CANCELLED:`order_cancelled`,ORDERS_CANCELLED:`orders_cancelled`,TRADES:`trades`};notificationBuffer;maxVisibleNotification;constructor(){this.notificationBuffer=[],this.maxVisibleNotification=4}notify=(e,t)=>{let a=y((0,W.jsx)(Po,{...e}),{className:`custom_toastify`,...t});if(this.notificationBuffer.push(a),this.notificationBuffer.length>this.maxVisibleNotification){let e=this.notificationBuffer.shift();
65y.dismiss(e)}};notifyLoginRequired=()=>{this.notify({isError:!0,message:Fe._({id:`tradeScreen.common.loginRequired`})})}},Fo=new Notification,Io=t(le()),PaperComponent=e=>{let t=(0,H.useRef)(null);return(0,W.jsx)(Io.default,{nodeRef:t,handle:`.dialogDraggHandler`,cancel:`.dialogCancelDragg`,children:(0,W.jsx)(Ne,{ref:t,...e})})},getBackgroundColor=(e,t)=>t?e.palette.background.fullScreenDialog:e.palette.background.dialog,Lo=makeStyles(e=>({paper:{backgroundColor:({fullScreen:t}={})=>getBackgroundColor(e,t),borderRadius:`8px`,outline:0,"@media (max-width:600px)":{margin:`0px 6px`}}})),Ro=makeStyles(()=>({root:{cursor:({isDraggable:e})=>e?`move`:`default`,fontWeight:700,fontSize:`14px`},closeButton:{position:`absolute`,right:`8px`,top:`4px`,padding:`4px`,zIndex:999},onlyCloseIcon:{padding:`4px`}})),zo=makeStyles(()=>({root:{padding:({noPadding:e})=>e?`0`:``,"& > div":{outline:0},"@media (max-width:600px)":{"&::-webkit-scrollbar":{display:`none`}}}})),Bo=makeStyles(e=>({root:{backgroundColor:({fullScreen:t})=>getBackgroundColor(e,t),padding:`40px 20px 20px 20px`}})),DialogExtended=({title:e,children:t,actions:a,noPadding:o,onClose:s,disableBackdropClick:c,suppressCloseIconButton:m,fullScreen:h,dialogTitleStyle:_,isDraggable:w,open:D,...O})=>{let k=T(),A=Lo(),ee=Ro({fullScreen:h,isDraggable:w}),j=zo({noPadding:o,fullScreen:h}),M=Bo({fullScreen:h});return(0,W.jsxs)(cr,{classes:A,PaperComponent,maxWidth:k?void 0:!1,...O,PaperProps:{tabIndex:0,...O.PaperProps},onClose:s,fullScreen:h,open:D,transitionDuration:0,disableEnforceFocus:!0,children:[(e||c)&&(0,W.jsxs)(Sr,{className:Xe(ee.root,`MuiTypograpgy-h5`,{dialogDraggHandler:k||w}),style:_,children:[(0,W.jsx)(`span`,{"data-id":`dialogTitle`,children:e}),c&&!m&&(0,W.jsx)(ft,{"aria-label":`close`,className:Xe(ee.closeButton,`dialogCancelDragg`),onClick:s,size:`large`,children:(0,W.jsx)(Pe,{name:`closeSmall`})})]}),(0,W.jsx)(vr,{className:j.root,children:D&&t}),a&&(0,W.jsx)(fr,{className:M.root,children:a})]})};export{Gn as A,getContractsStep as B,pr as C,$n as D,er as E,getTransformedBrokerTrade as F,isPrivateSubscription as G,isChannelForbidden as H,on as I,nn as J,isPublicSubscription as K,isNotExpired as L,qn as M,userLocksSelector as N,Qn as O,flipLegDirection as P,getBlockTradeId as R,mr as S,cr as T,isDeribitError as U,isAmountInContracts as V,isNotImplementedError as W,isEmpty$2 as Y,Mr as _,$ as a,kr as b,Tooltip as c,$a as d,makeStyles as f,useTheme as g,createGenerateClassName as h,NotificationTag as i,Kn as j,shouldForwardProp as k,NumericFormat as l,_unsupportedIterableToArray as m,Fo as n,Lt as o,StylesProvider as p,parseScope as q,Do as r,TextField as s,DialogExtended as t,Button as u,jr as v,fr as w,vr as x,Ar as y,getAmountInContracts as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.