@dcl/explore-site 0.0.1-24506067692.commit-7cbe267 → 0.0.1-24533810684.commit-08f2d1e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/HomePage-DPGatVCF.js +3 -0
- package/assets/{QueryClientProvider-S2cSmCUs.js → QueryClientProvider-diWVe5Kl.js} +1 -1
- package/assets/{SensorsRounded-TwgeIrvl.js → SensorsRounded-B5CYaxPg.js} +1 -1
- package/assets/Web3Inner-z-tSs8sf.js +1 -0
- package/assets/Web3SyncProvider-CypbX7iI.js +3 -0
- package/assets/__federation_expose_App-Bndnzp1U.js +1 -0
- package/assets/__federation_fn_import-BPa8h49G.js +1 -0
- package/assets/__federation_shared_@dcl/core-web3/lazy-BxXRMbjM.js +1 -0
- package/assets/__federation_shared_@dcl/core-web3-Bg69b_qh.js +2 -0
- package/assets/__federation_shared_@dcl/{hooks-DWUL36eR.js → hooks-mIJ2xjF0.js} +3 -3
- package/assets/__federation_shared_@emotion/react-CyrdJVjV.js +1 -0
- package/assets/__federation_shared_@emotion/{styled-CutIM4hd.js → styled--75jFTzr.js} +1 -1
- package/assets/{__federation_shared_decentraland-ui2-OcYWz3BJ.js → __federation_shared_decentraland-ui2-dJS9Vwj5.js} +6 -6
- package/assets/{__federation_shared_react-redux-BsRWKqZd.js → __federation_shared_react-redux-PotGTJzf.js} +1 -1
- package/assets/{__federation_shared_react-router-dom-D6fN_MPs.js → __federation_shared_react-router-dom-BOdQQ4Uh.js} +1 -1
- package/assets/__federation_shared_viem-DDBJYZTJ.js +2 -0
- package/assets/{__federation_shared_wagmi-V68qkOak.js → __federation_shared_wagmi-CgLPXn48.js} +1 -1
- package/assets/{add-DYSzlqDi.js → add-B6OUNwc7.js} +1 -1
- package/assets/{all-wallets-Cz1_BP21.js → all-wallets-BwSwHRpq.js} +1 -1
- package/assets/{app-store-DJD6if64.js → app-store-CF95uJ5u.js} +1 -1
- package/assets/{apple-ONzgQNZb.js → apple-D-T8pMcm.js} +1 -1
- package/assets/{arrow-bottom-CS4hUU5K.js → arrow-bottom-DdhQXQwO.js} +1 -1
- package/assets/{arrow-bottom-circle-tskAwsAe.js → arrow-bottom-circle-CFQGU7p7.js} +1 -1
- package/assets/{arrow-left-lVGPT4Ol.js → arrow-left-BD_NkLWm.js} +1 -1
- package/assets/{arrow-right-DCzkLJ85.js → arrow-right-DkGqRZiP.js} +1 -1
- package/assets/{arrow-top-BfoirqVJ.js → arrow-top-moQ8S34l.js} +1 -1
- package/assets/{auto-track-ylAeu8GC.js → auto-track-DWK83jm7.js} +1 -1
- package/assets/{bank-C3Dt70oH.js → bank-wlox9c4u.js} +1 -1
- package/assets/{basic-t1j5X-od.js → basic-FS2Z04Mz.js} +1 -1
- package/assets/{biconomy-BA_1W9dm.js → biconomy-BrXNiP4h.js} +1 -1
- package/assets/{browser-CJ0usHLI.js → browser-CUQ2zQTB.js} +1 -1
- package/assets/{card-Cz1gdgq-.js → card-NrYjwqUv.js} +1 -1
- package/assets/{ccip-D79frVW8.js → ccip-B5vuDNHH.js} +1 -1
- package/assets/{checkmark-C5jp9GGl.js → checkmark-566o88C-.js} +1 -1
- package/assets/{checkmark-bold-BTecpTuR.js → checkmark-bold-3uwTX7px.js} +1 -1
- package/assets/{chevron-bottom-BkF7oESa.js → chevron-bottom-CfzwLSb9.js} +1 -1
- package/assets/{chevron-left-D1L-jaav.js → chevron-left-ClLgeGWx.js} +1 -1
- package/assets/{chevron-right-D5rt8sAi.js → chevron-right-aRPuH5to.js} +1 -1
- package/assets/{chevron-top-hc8gcFpH.js → chevron-top-YRpl4M0m.js} +1 -1
- package/assets/{chrome-store-ChFX3FT3.js → chrome-store-DsmdHqVO.js} +1 -1
- package/assets/{clock-CzLodk_r.js → clock-CZ7NDF6g.js} +1 -1
- package/assets/{close-BuQlpuUL.js → close-B5lXMNNb.js} +1 -1
- package/assets/{coinPlaceholder-B2Z6-yue.js → coinPlaceholder-BjCnyfne.js} +1 -1
- package/assets/{compass-CZUlvUVM.js → compass-CS_Os52w.js} +1 -1
- package/assets/{controller-BtDVd_aq.js → controller-DvdeaE6y.js} +2 -2
- package/assets/{copy-DJv2Nr5v.js → copy-fG_5Fn5Z.js} +1 -1
- package/assets/{core-C4Q-G7Te.js → core-D1JqYuOS.js} +15 -15
- package/assets/{createBundlerClient-Br8fYUWc.js → createBundlerClient-CubtDgsV.js} +1 -1
- package/assets/{createClient-C3MOjVgY.js → createClient-CR8DDHzD.js} +1 -1
- package/assets/{cursor-K6zf8P8P.js → cursor-CxCHAFeZ.js} +1 -1
- package/assets/{cursor-transparent-BEmzJfXZ.js → cursor-transparent-Cv37G82O.js} +1 -1
- package/assets/{decimals-CfK2GdYT.js → decimals-CM2j75PQ.js} +1 -1
- package/assets/{decimals-BZqhR7BL.js → decimals-oozSYzUv.js} +1 -1
- package/assets/{desktop-CR4ncbsC.js → desktop-CQ5gYxno.js} +1 -1
- package/assets/{detectExtension-DQJnzr-F.js → detectExtension-Cd7CtJnn.js} +1 -1
- package/assets/{disconnect-Cxy_6Sd8.js → disconnect-BWSZMzR2.js} +1 -1
- package/assets/{discord-CJNZyUSm.js → discord-CUDtk8iW.js} +1 -1
- package/assets/{emotion-react.browser.esm-IRopa27p.js → emotion-react.browser.esm-C8ovg3zA.js} +1 -1
- package/assets/{emotion-use-insertion-effect-with-fallbacks.browser.esm-Dek7Kpe6.js → emotion-use-insertion-effect-with-fallbacks.browser.esm-ZrBNnPxm.js} +1 -1
- package/assets/{engine-mOtmwA6L.js → engine-BKFHNloO.js} +1 -1
- package/assets/{estimate-l1-fee-k8yGsKsO.js → estimate-l1-fee-CiVfMTJb.js} +1 -1
- package/assets/{eth_estimateGas-CmhCqkRZ.js → eth_estimateGas-DXVJK7bi.js} +1 -1
- package/assets/{eth_getStorageAt-CGBucoOx.js → eth_getStorageAt-BiqM4f8H.js} +1 -1
- package/assets/{eth_getTransactionCount-y2QsTvLw.js → eth_getTransactionCount-CWjm-hBg.js} +1 -1
- package/assets/{etherscan-b5mqHDR2.js → etherscan-C0HSXHEU.js} +1 -1
- package/assets/{exclamation-triangle-Bg5fRZpy.js → exclamation-triangle-cVJGZMmD.js} +1 -1
- package/assets/{extension-D1_3D1KE.js → extension-D5mTVlMf.js} +1 -1
- package/assets/{external-link-DUCz1m1z.js → external-link-nqqrcr3l.js} +1 -1
- package/assets/{extractIPFS-BeKSWGjo.js → extractIPFS-Q-wepBuj.js} +1 -1
- package/assets/{facebook-CvV-xdYv.js → facebook-BD0Z6bjG.js} +1 -1
- package/assets/{farcaster-DMlzK8Ar.js → farcaster-D5t_BpGY.js} +1 -1
- package/assets/{fetchTokenMetadata-C4NefnOo.js → fetchTokenMetadata-D7lU3SIa.js} +2 -2
- package/assets/{filters-DHyStwez.js → filters-DgOMNkF7.js} +1 -1
- package/assets/{get-ecosystem-wallet-info-CbWTwKG3.js → get-ecosystem-wallet-info-C7wEYhAI.js} +1 -1
- package/assets/{getBalance-D8M0DbBu.js → getBalance-D2STxyF1.js} +1 -1
- package/assets/{getInstalledModules-BurEvMNK.js → getInstalledModules-DCfjvoma.js} +1 -1
- package/assets/{getNFT-DQZppzzw.js → getNFT-9G3EvIo6.js} +2 -2
- package/assets/{getNFT-CH18R735.js → getNFT-C-zNHqto.js} +1 -1
- package/assets/{github-IilSsxgO.js → github-EgnJPOkx.js} +1 -1
- package/assets/{google-CCs_wu3I.js → google-ChAeFwWG.js} +1 -1
- package/assets/{help-circle-D_kmea0Q.js → help-circle-HHwusGfv.js} +1 -1
- package/assets/{id-CEDDxPyO.js → id-C3aQusJ1.js} +1 -1
- package/assets/{image-CacISnw5.js → image-DCBEX8iI.js} +1 -1
- package/assets/{in-app-wallet-calls-ZBHxiKkB.js → in-app-wallet-calls-BeM3jls_.js} +1 -1
- package/assets/{index-D0B01M8T.js → index-BNo5TVn1.js} +1 -1
- package/assets/{index-CeMOFIJl.js → index-BTcCF8pz.js} +1 -1
- package/assets/{index-C_nL-yLJ.js → index-C8369Kt3.js} +1 -1
- package/assets/{index-DSbNI5uF.js → index-CJxT02Ns.js} +1 -1
- package/assets/{index-BXOfMki0.js → index-CZsU5YW3.js} +1 -1
- package/assets/{index-BH6zTRml.js → index-CvY3anJm.js} +1 -1
- package/assets/index-Cxm_S31E.js +1 -0
- package/assets/{index-Bm1VTLe0.js → index-D1OpWHUo.js} +1 -1
- package/assets/index-DIcECrTc.js +2 -0
- package/assets/{index-BSdPSW5L.js → index-DRyfynLp.js} +2 -2
- package/assets/{index-DP4gqdTC.js → index-Dd7Rwv7H.js} +2 -2
- package/assets/index-Dy0yjznp.js +1 -1
- package/assets/index-VfkM29PH.js +1 -1
- package/assets/{index-DCzaGJ0h.js → index-nPgQlNn6.js} +3 -3
- package/assets/{index.es-f9VeuVCb.js → index.es-DNUnpMVo.js} +3 -3
- package/assets/{index.es-CvfHWDxQ.js → index.es-qiXhv63q.js} +1 -1
- package/assets/{info-DZvM_7Tg.js → info-Cg-tEK6c.js} +1 -1
- package/assets/{info-circle-CbTMexJv.js → info-circle-A5OoaMHb.js} +1 -1
- package/assets/jsx-runtime-B1l0k91v.js +1 -1
- package/assets/{lightbulb-yx2Mb3EV.js → lightbulb-DklKm46X.js} +1 -1
- package/assets/{mail-Dr3LWsa7.js → mail-BSh1g2Jd.js} +1 -1
- package/assets/{mobile-cqKuurbN.js → mobile-DY0gT7mE.js} +1 -1
- package/assets/{more-B2cKG2Cj.js → more-BMDmshJx.js} +1 -1
- package/assets/{network-placeholder-3q6GFkiF.js → network-placeholder-DU1RU4mB.js} +1 -1
- package/assets/{nftPlaceholder-PhYi3Gz0.js → nftPlaceholder-ZQBNuzRA.js} +1 -1
- package/assets/{off-DUI09dYV.js → off-DworvT8U.js} +1 -1
- package/assets/{openzeppelin-BX7BOYoL.js → openzeppelin-Cwt7PzKv.js} +1 -1
- package/assets/{ownerOf-BC019JN1.js → ownerOf-C-ehsDvS.js} +1 -1
- package/assets/{parseNft-B8R4kPQV.js → parseNft-CW2Wd1uX.js} +2 -2
- package/assets/{play-store-JeT38BY2.js → play-store-BUEXP4Ts.js} +1 -1
- package/assets/{plus--DWdZlCp.js → plus-BSLABLbR.js} +1 -1
- package/assets/preload-helper-rvnS1VMA.js +1 -0
- package/assets/{qr-code-BJDvJfO3.js → qr-code-Bhv4LYqU.js} +1 -1
- package/assets/{qr-overlay-ClttGQRf.js → qr-overlay-CEcTSSu9.js} +1 -1
- package/assets/{recycle-horizontal-Lkcjnn5n.js → recycle-horizontal-DKMdpTCz.js} +1 -1
- package/assets/{refresh-BT1jR4Dn.js → refresh-87LbOihu.js} +1 -1
- package/assets/remoteEntry.js +1 -1
- package/assets/{reown-logo-BS-2dm8x.js → reown-logo-BtZP1pGS.js} +1 -1
- package/assets/{resolveImplementation-DhbopK-R.js → resolveImplementation-Bq8n-Bjt.js} +1 -1
- package/assets/{search-BSl5mmgI.js → search-D5S6Hyhz.js} +1 -1
- package/assets/{send-CHeQ9oTi.js → send-DpgbB-mt.js} +1 -1
- package/assets/{send-batch-transaction-D1oj-0uI.js → send-batch-transaction-BALEJgO_.js} +1 -1
- package/assets/{send-eip712-transaction-RoGj1xEp.js → send-eip712-transaction-Dhph80lu.js} +2 -2
- package/assets/{send-gasless-transaction-BA1ne_Zw.js → send-gasless-transaction-BKHuNzKw.js} +2 -2
- package/assets/serializeAuthorizationList-thWU7FBF.js +1 -0
- package/assets/{session-proposal-D3Df17qP.js → session-proposal-HTjdwE7s.js} +1 -1
- package/assets/{session-request-FSnknvu5.js → session-request-BfWU2VwD.js} +2 -2
- package/assets/{signing-CJBbgcWH.js → signing-CPQmF9YX.js} +5 -5
- package/assets/slice-Dr1G42o6.js +1 -0
- package/assets/{swapHorizontal-cske8D4e.js → swapHorizontal-CQZjmlYk.js} +1 -1
- package/assets/{swapHorizontalBold-b6nHPenD.js → swapHorizontalBold-DYoOkH_7.js} +1 -1
- package/assets/{swapHorizontalMedium-DV93kJ8d.js → swapHorizontalMedium-GdF4wR0W.js} +1 -1
- package/assets/{swapHorizontalRoundedBold-B-tUcUDQ.js → swapHorizontalRoundedBold-CLPmazpV.js} +1 -1
- package/assets/{swapVertical-b60outJ9.js → swapVertical-Cz87s-yZ.js} +1 -1
- package/assets/{telegram-DYtfIm5p.js → telegram-DZICyDKX.js} +1 -1
- package/assets/{thirdweb-CSjGe06A.js → thirdweb-84h-CMUL.js} +3 -3
- package/assets/{three-dots-BEq0F5FJ.js → three-dots-BNuEs7h-.js} +1 -1
- package/assets/{totalSupply-CqPmrflK.js → totalSupply-Cf3-EivY.js} +1 -1
- package/assets/{twitch-VNmCX4fc.js → twitch-EZfFCvsb.js} +1 -1
- package/assets/{twitterIcon-DQdyBmm7.js → twitterIcon-D-EPzD6z.js} +1 -1
- package/assets/uid-Cg2-wLF5.js +44 -0
- package/assets/{verify-Ch-jj4sL.js → verify-C66JnFn0.js} +1 -1
- package/assets/{verify-filled-DAsUJrHR.js → verify-filled-CTRYZAWt.js} +1 -1
- package/assets/{w3m-modal-CwL-F657.js → w3m-modal-C_eW6nP7.js} +1 -1
- package/assets/{wait-for-tx-receipt-8QHIPUR1.js → wait-for-tx-receipt-D0woCUzS.js} +1 -1
- package/assets/{wallet-VPqOEzNs.js → wallet-CfN0W2cy.js} +1 -1
- package/assets/{wallet-placeholder-x8qRsSsI.js → wallet-placeholder-3kYYEaa5.js} +1 -1
- package/assets/{walletconnect-CQuMWn29.js → walletconnect-bmCQ7zYa.js} +1 -1
- package/assets/{wallets-DA1wJowE.js → wallets-DPgFGNNu.js} +5 -5
- package/assets/{warning-circle-BJ1YmKtQ.js → warning-circle-DTFLsDBk.js} +1 -1
- package/assets/{web-connector-C73Vanyj.js → web-connector-B-b80tlH.js} +3 -3
- package/assets/webSocket-CO2AWAe6.js +3 -0
- package/assets/{x-C855X9Jf.js → x-Btssr2Ai.js} +1 -1
- package/index.html +14 -16
- package/package.json +3 -3
- package/assets/HomePage-DuWKLuFD.js +0 -3
- package/assets/__federation_expose_App-B4QxDAu7.js +0 -1
- package/assets/__federation_fn_import-chtkoWq_.js +0 -1
- package/assets/__federation_shared_@dcl/core-web3-CqeOHBSV.js +0 -2
- package/assets/__federation_shared_@emotion/react-ClHMF0dJ.js +0 -1
- package/assets/__federation_shared_viem-CX1dsuPM.js +0 -2
- package/assets/index-Dr-PyceS.js +0 -2
- package/assets/index-qLRO6nWB.js +0 -1
- package/assets/preload-helper-B1n3wPb0.js +0 -1
- package/assets/serializeTransaction-gwTERWWq.js +0 -1
- package/assets/uid-BU7APsHa.js +0 -44
- package/assets/webSocket-G5Mbc2fm.js +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__fileDeps=["assets/index-
|
|
2
|
-
import{l as Cg}from"../index-DVftV2UM.js";import{_ as Rg}from"../preload-helper-
|
|
1
|
+
const __vite__fileDeps=["assets/index-Dd7Rwv7H.js","assets/preload-helper-rvnS1VMA.js","assets/tslib.es6-DbvBTznf.js","assets/_commonjsHelpers-C4iS2aBk.js","assets/inherits_browser-BlmhoU4v.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
|
2
|
+
import{l as Cg}from"../index-DVftV2UM.js";import{_ as Rg}from"../preload-helper-rvnS1VMA.js";import{importShared as Je}from"../__federation_fn_import-BPa8h49G.js";import{j as hf}from"../jsx-runtime-B1l0k91v.js";import{b as $,d as yt,e as Ag,c as Ot}from"../tslib.es6-DbvBTznf.js";const Mg=50,Ng=e=>({...e,timestamp:Number(e.timestamp)}),Og=(e,t)=>{const n=e,{url:r,limit:i=Mg}=t,s=Cg.signedFetchFactory();return{getNotifications:async()=>{const c=new URLSearchParams;c.append("limit",String(i));const u=`${r}/notifications?${c.toString()}`,d=await s(u,{identity:n,headers:{"Content-Type":"application/json"}});if(!d.ok)throw new Error(`Failed to fetch notifications: ${d.status}`);return((await d.json()).notifications??[]).map(Ng)},markNotificationsAsRead:async c=>{const u=`${r}/notifications/read`,d=await s(u,{method:"PUT",identity:n,body:JSON.stringify({notificationIds:c}),headers:{"Content-Type":"application/json"}});if(!d.ok)throw new Error(`Failed to mark notifications as read: ${d.status}`)}}};var Lg=" daum[ /]| deusu/|(?:^|[^g])news(?!sapphire)|(?<! (?:channel/|google/))google(?!(app|/google| pixel))|(?<! cu)bots?(?:\\b|_)|(?<!(?:lib))http|(?<![hg]m)score|(?<!cam)scan|24x7|@[a-z][\\w-]+\\.|\\(\\)|\\.com\\b|\\bperl\\b|\\btime/|\\||^[\\w \\.\\-\\(?:\\):%]+(?:/v?\\d+(?:\\.\\d+)?(?:\\.\\d{1,10})*?)?(?:,|$)|^[^ ]{50,}$|^\\d+\\b|^\\W|^\\w*search\\b|^\\w+/[\\w\\(\\)]*$|^active|^ad muncher|^amaya|^avsdevicesdk/|^azure|^biglotron|^bot|^bw/|^clamav[ /]|^client/|^cobweb/|^custom|^ddg[_-]android|^discourse|^dispatch/\\d|^downcast/|^duckduckgo|^email|^facebook|^getright/|^gozilla/|^hobbit|^hotzonu|^hwcdn/|^igetter/|^jeode/|^jetty/|^jigsaw|^microsoft bits|^movabletype|^mozilla/\\d\\.\\d\\s[\\w\\.-]+$|^mozilla/\\d\\.\\d\\s\\(compatible;?(?:\\s\\w+\\/\\d+\\.\\d+)?\\)$|^navermailapp|^netsurf|^offline|^openai/|^owler|^php|^postman|^python|^rank|^read|^reed|^rest|^rss|^snapchat|^space bison|^svn|^swcd |^taringa|^thumbor/|^track|^w3c|^webbandit/|^webcopier|^wget|^whatsapp|^wordpress|^xenu link sleuth|^yahoo|^yandex|^zdm/\\d|^zoom marketplace/|agent\\b|analyzer|archive|ask jeeves/teoma|audit|bit\\.ly/|bluecoat drtr|browsex|burpcollaborator|capture|catch|check\\b|checker|chrome-lighthouse|chromeframe|classifier|cloudflare|convertify|crawl|cypress/|dareboost|datanyze|dejaclick|detect|dmbrowser|download|evc-batch/|exaleadcloudview|feed|fetcher|firephp|functionize|grab|headless|httrack|hubspot marketing grader|hydra|ibisbrowser|infrawatch|insight|inspect|iplabel|java(?!;)|library|linkcheck|mail\\.ru/|manager|measure|neustar wpm|node\\b|nutch|offbyone|onetrust|optimize|pageburst|pagespeed|parser|phantomjs|pingdom|powermarks|preview|proxy|ptst[ /]\\d|retriever|rexx;|rigor|rss\\b|scrape|server|sogou|sparkler/|speedcurve|spider|splash|statuscake|supercleaner|synapse|synthetic|tools|torrent|transcoder|url|validator|virtuoso|wappalyzer|webglance|webkit2png|whatcms/|xtate/",Pg=/bot|crawl|http|lighthouse|scan|search|spider/i,Hr;function Dg(){if(Hr instanceof RegExp)return Hr;try{Hr=new RegExp(Lg,"i")}catch{Hr=Pg}return Hr}function Fg(e){return!!e&&Dg().test(e)}const D=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,q=globalThis,Dt="9.47.1";function Vt(){return li(q),q}function li(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Dt,t[Dt]=t[Dt]||{}}function di(e,t,n=q){const r=n.__SENTRY__=n.__SENTRY__||{},i=r[Dt]=r[Dt]||{};return i[e]||(i[e]=t())}const mc=["debug","info","warn","error","log","assert","trace"],Hg="Sentry Logger ",Is={};function un(e){if(!("console"in q))return e();const t=q.console,n={},r=Object.keys(Is);r.forEach(i=>{const s=Is[i];n[i]=t[i],t[i]=s});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function Bg(){_c().enabled=!0}function Ug(){_c().enabled=!1}function pf(){return _c().enabled}function $g(...e){gc("log",...e)}function Wg(...e){gc("warn",...e)}function Gg(...e){gc("error",...e)}function gc(e,...t){D&&pf()&&un(()=>{q.console[e](`${Hg}[${e}]:`,...t)})}function _c(){return D?di("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const y={enable:Bg,disable:Ug,isEnabled:pf,log:$g,warn:Wg,error:Gg},mf=50,kt="?",vu=/\(error: (.*)\)/,wu=/captureMessage|captureException/;function gf(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const s=[],o=n.split(`
|
|
3
3
|
`);for(let a=r;a<o.length;a++){const c=o[a];if(c.length>1024)continue;const u=vu.test(c)?c.replace(vu,"$1"):c;if(!u.match(/\S*Error: /)){for(const d of t){const l=d(u);if(l){s.push(l);break}}if(s.length>=mf+i)break}}return jg(s.slice(i))}}function zg(e){return Array.isArray(e)?gf(...e):e}function jg(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Ni(t).function||"")&&t.pop(),t.reverse(),wu.test(Ni(t).function||"")&&(t.pop(),wu.test(Ni(t).function||"")&&t.pop()),t.slice(0,mf).map(n=>({...n,filename:n.filename||Ni(t).filename,function:n.function||kt}))}function Ni(e){return e[e.length-1]||{}}const Co="<anonymous>";function Bt(e){try{return!e||typeof e!="function"?Co:e.name||Co}catch{return Co}}function ya(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const os={},Tu={};function ln(e,t){os[e]=os[e]||[],os[e].push(t)}function dn(e,t){if(!Tu[e]){Tu[e]=!0;try{t()}catch(n){D&&y.error(`Error while instrumenting ${e}`,n)}}}function it(e,t){const n=e&&os[e];if(n)for(const r of n)try{r(t)}catch(i){D&&y.error(`Error while triggering instrumentation handler.
|
|
4
4
|
Type: ${e}
|
|
5
5
|
Name: ${Bt(r)}
|
|
@@ -496,7 +496,7 @@ or you can use record.mirror to access the mirror instance during recording.`;le
|
|
|
496
496
|
`).reduce((n,r)=>{const[i,s]=r.split(": ");return s&&(n[i.toLowerCase()]=s),n},{}):{}}function Ux(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return $x(e.response,e.responseType)}catch(n){t.push(n)}return z&&j.warn("Failed to get xhr response body",...t),[void 0]}function $x(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return z&&j.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return z&&j.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Wx(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return vo(n)}catch{return}}function Gx(e){const t=H();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:o}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",(c,u)=>zx(a,c,u))}catch{}}function zx(e,t,n){if(t.data)try{jx(t)&&Vx(n)&&(Fx(t,n),Dx(t,n,e)),qx(t)&&Xx(n)&&(xx(t,n),Ix(t,n,e))}catch(r){z&&j.exception(r,"Error when enriching network breadcrumb")}}function jx(e){return e.category==="xhr"}function qx(e){return e.category==="fetch"}function Vx(e){return e?.xhr}function Xx(e){return e?.response}function Yx(e){const t=H();xp(T1(e)),go(Sx(e)),dx(e),Gx(e);const n=yx(e);ah(n),t&&(t.on("beforeSendEvent",ux(e)),t.on("afterSendEvent",ox(e)),t.on("createDsc",r=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=i)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,i)=>{const s=e.getSessionId();i?.includeReplay&&e.isEnabled()&&s&&r.contexts?.feedback&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=s)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function Jx(e){try{return Promise.all(Eo(e,[Kx(ge.performance.memory)]))}catch{return[]}}function Kx(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Zx(e,t,n){return kb(e,t,{...n,setTimeoutImpl:xi})}const Ji=q.navigator;function Qx(){return/iPhone|iPad|iPod/i.test(Ji?.userAgent??"")||/Macintosh/i.test(Ji?.userAgent??"")&&Ji?.maxTouchPoints&&Ji?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function ek(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){z&&j.warn("Received replay event after session expired.");return}const i=r||!t;t=!0,e.clickDetector&&b1(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),!lu(e,n,i))return!0;if(!i)return!1;const s=e.session;if(nk(e,i),e.recordingMode==="buffer"&&s&&e.eventBuffer){const o=e.eventBuffer.getEarliestTimestamp();o&&(z&&j.log(`Updating session start time to earliest event in buffer to ${new Date(o)}`),s.started=o,e.getOptions().stickySession&&uu(s))}return s?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function tk(e){const t=e.getOptions();return{type:ee.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function nk(e,t){!t||!e.session||e.session.segmentId!==0||lu(e,tk(e),!1)}function rk(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function ik(e,t,n,r){return Xt(Kf(e,Ic(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function sk({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
|
|
497
497
|
`;if(typeof e=="string")n=`${r}${e}`;else{const s=new TextEncoder().encode(r);n=new Uint8Array(s.length+e.length),n.set(s),n.set(e,s.length)}return n}async function ok({client:e,scope:t,replayId:n,event:r}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,s={event_id:n,integrations:i};e.emit("preprocessEvent",r,s);const o=await rh(e.getOptions(),r,s,t,e,Le());if(!o)return null;e.emit("postprocessEvent",o,s),o.platform=o.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:u}=a?.sdk||{};return o.sdk={...o.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},o}async function ak({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:s}){const o=sk({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:d}=r,l=H(),f=Q(),h=l?.getTransport(),p=l?.getDsn();if(!l||!h||!p||!s.sampled)return zt({});const m={type:DT,replay_start_timestamp:d/1e3,timestamp:i/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:s.sampled},g=await ok({scope:f,client:l,replayId:t,event:m});if(!g)return l.recordDroppedEvent("event_processor","replay"),z&&j.log("An event processor returned `null`, will not send event."),zt({});delete g.sdkProcessingMetadata;const _=ik(g,o,p,l.getOptions().tunnel);let v;try{v=await h.send(_)}catch(A){const O=new Error(Zc);try{O.cause=A}catch{}throw O}if(typeof v.statusCode=="number"&&(v.statusCode<200||v.statusCode>=300))throw new Om(v.statusCode);const L=Eh({},v);if(Sh(L,"replay"))throw new fu(L);return v}class Om extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class fu extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function Lm(e,t={count:0,interval:WT}){const{recordingData:n,onError:r}=e;if(n.length)try{return await ak(e),!0}catch(i){if(i instanceof Om||i instanceof fu)throw i;if(ih("Replays",{_retryCount:t.count}),r&&r(i),t.count>=GT){const s=new Error(`${Zc} - max retries exceeded`);try{s.cause=i}catch{}throw s}return t.interval*=++t.count,new Promise((s,o)=>{xi(async()=>{try{await Lm(e,t),s(!0)}catch(a){o(a)}},t.interval)})}}const Pm="__THROTTLED",ck="__SKIPPED";function uk(e,t,n){const r=new Map,i=a=>{const c=a-n;r.forEach((u,d)=>{d<c&&r.delete(d)})},s=()=>[...r.values()].reduce((a,c)=>a+c,0);let o=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(i(c),s()>=t){const d=o;return o=!0,d?ck:Pm}o=!1;const u=r.get(c)||0;return r.set(c,u+1),e(...a)}}class lk{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:FT,sessionIdleExpire:HT},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=Zx(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=uk((o,a)=>rx(this,o,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),s=r?{threshold:Math.min(zT,r),timeout:r,scrollTimeout:jT,ignoreSelector:i?i.join(","):""}:void 0;if(s&&(this.clickDetector=new m1(this,s)),z){const o=t._experiments;j.setConfig({captureExceptions:!!o.captureExceptions,traceInternals:!!o.traceInternals})}this._handleVisibilityChange=()=>{ge.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const o=It({category:"ui.blur"});this._doChangeToBackgroundTasks(o)},this._handleWindowFocus=()=>{const o=It({category:"ui.focus"});this._doChangeToForegroundTasks(o)},this._handleKeyboardEvent=o=>{C1(this,o)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){z&&j.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,i=n<=0&&r<=0;if(this._requiresManualStart=i,!i){if(this._initializeSessionForSampling(t),!this.session){z&&j.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",z&&j.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){z&&j.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){z&&j.log("Buffering is in progress, call `flush()` to save the replay");return}z&&j.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=Qo({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){z&&j.log("Buffering is in progress, call `flush()` to save the replay");return}z&&j.infoTick("Starting replay in buffer mode");const t=Qo({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=Ft({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:$T}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:ek(this),...Qx(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{z&&j.log(`Stopping Replay${n?` triggered by ${n}`:""}`),Cm(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,Z1(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),z&&j.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),z&&j.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();z&&j.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&Ka(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${ge.location.pathname}${ge.location.hash}${ge.location.search}`,n=`${ge.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===Pm){const i=It({category:"replay.throttled"});this.addUpdate(()=>!lu(this,{type:c1,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||Pe(),n=t&&Oe(t),i=(n&&Z(n).data||{})[tt];if(!(!n||!i||!["route","custom"].includes(i)))return Z(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Y1({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=Qo({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return Tm(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{ge.document.addEventListener("visibilitychange",this._handleVisibilityChange),ge.addEventListener("blur",this._handleWindowBlur),ge.addEventListener("focus",this._handleWindowFocus),ge.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Yx(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=W1(this)}_removeListeners(){try{ge.document.removeEventListener("visibilitychange",this._handleVisibilityChange),ge.removeEventListener("blur",this._handleWindowBlur),ge.removeEventListener("focus",this._handleWindowFocus),ge.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||wm(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){z&&j.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:ee.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=N1(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(Eo(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){z&&j.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await Jx(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await Lm({replayId:t,recordingData:s,segmentId:i,eventContext:r,session:this.session,timestamp:n,onError:o=>this.handleException(o)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=H();if(r){const i=n instanceof fu?"ratelimit_backoff":"send_error";r.recordDroppedEvent(i,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){z&&j.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,i=Date.now()-n;this._debouncedFlush.cancel();const s=i<this._options.minReplayDuration,o=i>this._options.maxReplayDuration+5e3;if(s||o){z&&j.log(`Session duration (${Math.floor(i/1e3)}s) is too ${s?"short":"long"}, not sending replay.`),s&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&z&&j.log("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&uu(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(a=>{const c=rk(a.target),u=n.join(",");return c?.matches(u)}))return!1;const r=t.length,i=this._options.mutationLimit,s=this._options.mutationBreadcrumbLimit,o=i&&r>i;if(r>s||o){const a=It({category:"replay.mutations",data:{count:r,limit:o}});this._createCustomBreadcrumb(a)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function Br(e,t){return[...e,...t].join(",")}function dk({mask:e,unmask:t,block:n,unblock:r,ignore:i}){const s=["base","iframe[srcdoc]:not([src])"],o=Br(e,[".sentry-mask","[data-sentry-mask]"]),a=Br(t,[]);return{maskTextSelector:o,unmaskTextSelector:a,blockSelector:Br(n,[".sentry-block","[data-sentry-block]",...s]),unblockSelector:Br(r,[]),ignoreSelector:Br(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function fk({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:s}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?s:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s}const ad='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',hk=["content-length","content-type","accept"];let cd=!1;const pk=e=>new mk(e);class mk{constructor({flushMinDelay:t=BT,flushMaxDelay:n=UT,minReplayDuration:r=qT,maxReplayDuration:i=Ul,stickySession:s=!0,useCompression:o=!0,workerUrl:a,_experiments:c={},maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:f=750,mutationLimit:h=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:_=[],networkCaptureBodies:v=!0,networkRequestHeaders:L=[],networkResponseHeaders:A=[],mask:O=[],maskAttributes:T=["title","placeholder","aria-label"],unmask:C=[],block:M=[],unblock:x=[],ignore:R=[],maskFn:P,beforeAddRecordingEvent:k,beforeErrorSampling:F,onError:X}={}){this.name="Replay";const U=dk({mask:O,unmask:C,block:M,unblock:x,ignore:R});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:P,maskInputFn:P,maskAttributeFn:(J,N,G)=>fk({maskAttributes:T,maskAllText:u,privacyOptions:U,key:J,value:N,el:G}),...U,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:J=>{try{J.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,VT),maxReplayDuration:Math.min(i,Ul),stickySession:s,useCompression:o,workerUrl:a,blockAllMedia:l,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:f,mutationLimit:h,slowClickTimeout:p,slowClickIgnoreSelectors:m,networkDetailAllowUrls:g,networkDetailDenyUrls:_,networkCaptureBodies:v,networkRequestHeaders:ud(L),networkResponseHeaders:ud(A),beforeAddRecordingEvent:k,beforeErrorSampling:F,onError:X,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${ad}`:ad),this._isInitialized&&La())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return cd}set _isInitialized(t){cd=t}afterAllSetup(t){!La()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=gk(this._initialOptions,t);this._replay=new lk({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function gk(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=An(n.replaysSessionSampleRate),s=An(n.replaysOnErrorSampleRate);return i==null&&s==null&&un(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),s!=null&&(r.errorSampleRate=s),r}function ud(e){return[...hk,...e.map(t=>t.toLowerCase())]}function _k(){return H()?.getIntegrationByName("Replay")}var yk=Object.defineProperty,bk=(e,t,n)=>t in e?yk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ld=(e,t,n)=>bk(e,typeof t!="symbol"?t+"":t,n);class Sk{constructor(){ld(this,"idNodeMap",new Map),ld(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Ek(){return new Sk}function vk(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function ec(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:ec(e.parentNode,t,n,r+1)}function dd(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(vk(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}const Qn=`Please stop import mirror directly. Instead of that,\r
|
|
498
498
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
499
|
-
or you can use record.mirror to access the mirror instance during recording.`;let fd={map:{},getId(){return console.error(Qn),-1},getNode(){return console.error(Qn),null},removeNodeFromMap(){console.error(Qn)},has(){return console.error(Qn),!1},reset(){console.error(Qn)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(fd=new Proxy(fd,{get(e,t,n){return t==="map"&&console.error(Qn),Reflect.get(e,t,n)}}));function hu(e,t,n,r,i=window){const s=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(o){Fm(()=>{n.set.call(this,o)},0),s&&s.set&&s.set.call(this,o)}}),()=>hu(e,t,s||{},!0)}function pu(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}Date.now().toString();function wk(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function wo(e,t,n,r,i){if(!e)return!1;const s=wk(e);if(!s)return!1;const o=dd(t,n),a=ec(s,o);let c=-1;return a<0?!1:(r&&(c=ec(s,dd(null,r))),a>-1&&c<0?!0:a<c)}const hd={};function Dm(e){const t=hd[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const s=i.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(i)}catch{}return hd[e]=r.bind(window)}function gn(...e){return Dm("requestAnimationFrame")(...e)}function Fm(...e){return Dm("setTimeout")(...e)}var Er=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Er||{});let bs;function Tk(e){bs=e}const ea=e=>bs?(...n)=>{try{return e(...n)}catch(r){if(bs&&bs(r)===!0)return()=>{};throw r}}:e;var ir="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ik=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ki=0;Ki<ir.length;Ki++)Ik[ir.charCodeAt(Ki)]=Ki;var xk=function(e){var t=new Uint8Array(e),n,r=t.length,i="";for(n=0;n<r;n+=3)i+=ir[t[n]>>2],i+=ir[(t[n]&3)<<4|t[n+1]>>4],i+=ir[(t[n+1]&15)<<2|t[n+2]>>6],i+=ir[t[n+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const pd=new Map;function kk(e,t){let n=pd.get(e);return n||(n=new Map,pd.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const Hm=(e,t,n)=>{if(!e||!(Um(e,t)||typeof e=="object"))return;const r=e.constructor.name,i=kk(n,r);let s=i.indexOf(e);return s===-1&&(s=i.length,i.push(e)),s};function Ss(e,t,n){if(e instanceof Array)return e.map(r=>Ss(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,i=xk(e);return{rr_type:r,base64:i}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Ss(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:i}=e;return{rr_type:r,src:i}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",i=e.toDataURL();return{rr_type:r,src:i}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Ss(e.data,t,n),e.width,e.height]};if(Um(e,t)||typeof e=="object"){const r=e.constructor.name,i=Hm(e,t,n);return{rr_type:r,index:i}}}}return e}const Bm=(e,t,n)=>e.map(r=>Ss(r,t,n)),Um=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof t[i]=="function").find(i=>e instanceof t[i]);function Ck(e,t,n,r,i){const s=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of o)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const c=pu(t.CanvasRenderingContext2D.prototype,a,function(u){return function(...d){return wo(this.canvas,n,r,i,!0)||Fm(()=>{const l=Bm(d,t,this);e(this.canvas,{type:Er["2D"],property:a,args:l})},0),u.apply(this,d)}});s.push(c)}catch{const c=hu(t.CanvasRenderingContext2D.prototype,a,{set(u){e(this.canvas,{type:Er["2D"],property:a,args:[u],setter:!0})}});s.push(c)}return()=>{s.forEach(a=>a())}}function Rk(e){return e==="experimental-webgl"?"webgl":e}function md(e,t,n,r,i){const s=[];try{const o=pu(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...u){if(!wo(this,t,n,r,!0)){const d=Rk(c);if("__context"in this||(this.__context=d),i&&["webgl","webgl2"].includes(d))if(u[0]&&typeof u[0]=="object"){const l=u[0];l.preserveDrawingBuffer||(l.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...u])}});s.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(o=>o())}}function gd(e,t,n,r,i,s,o,a){const c=[],u=Object.getOwnPropertyNames(e);for(const d of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))try{if(typeof e[d]!="function")continue;const l=pu(e,d,function(f){return function(...h){const p=f.apply(this,h);if(Hm(p,a,this),"tagName"in this.canvas&&!wo(this.canvas,r,i,s,!0)){const m=Bm(h,a,this),g={type:t,property:d,args:m};n(this.canvas,g)}return p}});c.push(l)}catch{const l=hu(e,d,{set(f){n(this.canvas,{type:t,property:d,args:[f],setter:!0})}});c.push(l)}return c}function Ak(e,t,n,r,i,s){const o=[];return o.push(...gd(t.WebGLRenderingContext.prototype,Er.WebGL,e,n,r,i,s,t)),typeof t.WebGL2RenderingContext<"u"&&o.push(...gd(t.WebGL2RenderingContext.prototype,Er.WebGL2,e,n,r,i,s,t)),()=>{o.forEach(a=>a())}}const Mk='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function Nk(){const e=new Blob([Mk]);return URL.createObjectURL(e)}class Ok{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(a,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(c)};const{enableManualSnapshot:n,sampling:r="all",win:i,recordCanvas:s,errorHandler:o}=t;t.sampling=r,this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,o&&Tk(o),(s&&typeof r=="number"||n)&&(this.worker=this.initFPSWorker()),this.addWindow(i),!n&&ea(()=>{s&&r==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),s&&typeof r=="number"&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(t){const{sampling:n="all",blockClass:r,blockSelector:i,unblockSelector:s,recordCanvas:o,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}ea(()=>{if(o&&n==="all"&&this.initCanvasMutationObserver(t,r,i,s),o&&typeof n=="number"){const c=md(t,r,i,s,!0);this.restoreHandlers.push(()=>{c()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(t,n){if(n?.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,t);return}gn(r=>this.takeSnapshot(r,!0,t))}initFPSWorker(){const t=new Worker(Nk());return t.onmessage=n=>{const r=n.data,{id:i}=r;if(this.snapshotInProgressMap.set(i,!1),!("base64"in r))return;const{base64:s,type:o,width:a,height:c}=r;this.mutationCb({id:i,type:Er["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:s}],type:o}]},0,0,a,c]}]})},t}initCanvasFPSObserver(){let t;if(!this.windows.length&&!this.shadowDoms.size)return;const n=r=>{this.takeSnapshot(r,!1),t=gn(n)};t=gn(n),this.restoreHandlers.push(()=>{t&&cancelAnimationFrame(t)})}initCanvasMutationObserver(t,n,r,i){const s=md(t,n,r,i,!1),o=Ck(this.processMutation.bind(this),t,n,r,i),a=Ak(this.processMutation.bind(this),t,n,r,i,this.mirror);this.restoreHandlers.push(()=>{s(),o(),a()})}getCanvasElements(t,n,r){const i=[],s=o=>{o.querySelectorAll("canvas").forEach(a=>{wo(a,t,n,r)||i.push(a)})};for(const o of this.windows){const a=o.deref();let c;try{c=a&&a.document}catch{}c&&s(c)}for(const o of this.shadowDoms){const a=o.deref();a&&s(a)}return i}takeSnapshot(t,n,r){const{sampling:i,blockClass:s,blockSelector:o,unblockSelector:a,dataURLOptions:c,maxCanvasSize:u}=this.options,l=1e3/(i==="all"?2:i||2);return this.lastSnapshotTime&&t-this.lastSnapshotTime<l?!1:(this.lastSnapshotTime=t,(r?[r]:this.getCanvasElements(s,o,a)).forEach(p=>{const m=this.mirror.getId(p);if(!(!this.mirror.hasNode(p)||!p.width||!p.height||this.snapshotInProgressMap.get(m))){if(this.snapshotInProgressMap.set(m,!0),!n&&["webgl","webgl2"].includes(p.__context)){const g=p.getContext(p.__context);g?.getContextAttributes()?.preserveDrawingBuffer===!1&&g.clear(g.COLOR_BUFFER_BIT)}createImageBitmap(p).then(g=>{this.worker?.postMessage({id:m,bitmap:g,width:p.width,height:p.height,dataURLOptions:c,maxCanvasSize:u},[g])}).catch(g=>{ea(()=>{throw this.snapshotInProgressMap.delete(m),g})()})}}),!0)}startPendingCanvasMutationFlusher(){gn(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,gn(t)};gn(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),gn(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const i=r.map(o=>{const{type:a,...c}=o;return c}),{type:s}=r[0];this.mutationCb({id:n,type:s,commands:i}),this.pendingCanvasMutations.delete(t)}}try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}Ek();var _d;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(_d||(_d={}));const yd={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},Lk="ReplayCanvas",Zi=1280,Pk=(e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Zi):Zi,n?Math.min(n,Zi):Zi]};let i;const s=new Promise(o=>i=o);return{name:Lk,getOptions(){const{quality:o,enableManualSnapshot:a,maxCanvasSize:c}=r;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:u=>{const d=new Ok({...u,enableManualSnapshot:a,maxCanvasSize:c,errorHandler:l=>{try{typeof l=="object"&&(l.__rrweb__=!0)}catch{}}});return i(d),d},...yd[o]||yd.medium}},async snapshot(o,a){(await s).snapshot(o,a)}}},Dk=Pk;function Et(e=0){return((Be()||performance.timeOrigin)+e)/1e3}function Fk(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:r}=wp(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return Be()?[...t,["http.request.redirect_start",Et(e.redirectStart)],["http.request.fetch_start",Et(e.fetchStart)],["http.request.domain_lookup_start",Et(e.domainLookupStart)],["http.request.domain_lookup_end",Et(e.domainLookupEnd)],["http.request.connect_start",Et(e.connectStart)],["http.request.secure_connection_start",Et(e.secureConnectionStart)],["http.request.connection_end",Et(e.connectEnd)],["http.request.request_start",Et(e.requestStart)],["http.request.response_start",Et(e.responseStart)],["http.request.response_end",Et(e.responseEnd)]]:t}const bd=new WeakMap,ta=new Map,mu={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function $m(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:s,enableHTTPTimings:o,tracePropagationTargets:a,onRequestSpanStart:c}={...mu,...t},u=typeof s=="function"?s:f=>!0,d=f=>Bk(f,a),l={};n&&(e.addEventProcessor(f=>(f.type==="transaction"&&f.spans&&f.spans.forEach(h=>{if(h.op==="http.client"){const p=ta.get(h.span_id);p&&(h.timestamp=p/1e3,ta.delete(h.span_id))}}),f)),i&&t0(f=>{if(f.response){const h=bd.get(f.response);h&&f.endTimestamp&&ta.set(h,f.endTimestamp)}}),Lc(f=>{const h=WS(f,u,d,l);if(f.response&&f.fetchData.__span&&bd.set(f.response,f.fetchData.__span),h){const p=Wm(f.fetchData.url),m=p?Cn(p).host:void 0;h.setAttributes({"http.url":p,"server.address":m}),o&&Sd(h),c?.(h,{headers:f.headers})}})),r&&Xc(f=>{const h=Uk(f,u,d,l);if(h){o&&Sd(h);let p;try{p=new Headers(f.xhr.__sentry_xhr_v3__?.request_headers)}catch{}c?.(h,{headers:p})}})}function Hk(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Sd(e){const{url:t}=Z(e).data;if(!t||typeof t!="string")return;const n=On("resource",({entries:r})=>{r.forEach(i=>{Hk(i)&&i.name.endsWith(t)&&(Fk(i).forEach(o=>e.setAttribute(...o)),setTimeout(n))})})}function Bk(e,t){const n=Pn();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const s=r.origin===i;return t?pt(r.toString(),t)||s&&pt(r.pathname,t):s}else{const r=!!e.match(/^\/(?!\/)/);return t?pt(e,t):r}}function Uk(e,t,n,r){const i=e.xhr,s=i?.[Lt];if(!i||i.__sentry_own_request__||!s)return;const{url:o,method:a}=s,c=on()&&t(o);if(e.endTimestamp&&c){const m=i.__sentry_xhr_span_id__;if(!m)return;const g=r[m];g&&s.status_code!==void 0&&(ni(g,s.status_code),g.end(),delete r[m]);return}const u=Wm(o),d=Cn(u||o),l=Bh(o),f=!!Pe(),h=c&&f?Bn({name:`${a} ${l}`,attributes:{url:o,type:"xhr","http.method":a,"http.url":u,"server.address":d?.host,[Se]:"auto.http.browser",[rt]:"http.client",...d?.search&&{"http.query":d?.search},...d?.hash&&{"http.fragment":d?.hash}}}):new Gt;i.__sentry_xhr_span_id__=h.spanContext().spanId,r[i.__sentry_xhr_span_id__]=h,n(o)&&$k(i,on()&&f?h:void 0);const p=H();return p&&p.emit("beforeOutgoingRequestSpan",h,e),h}function $k(e,t){const{"sentry-trace":n,baggage:r}=Mc({span:t});n&&Wk(e,n,r)}function Wk(e,t,n){const r=e.__sentry_xhr_v3__?.request_headers;if(!r?.["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),n){const i=r?.baggage;(!i||!Gk(i))&&e.setRequestHeader("baggage",n)}}catch{}}function Gk(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function Wm(e){try{return new URL(e,W.location.origin).href}catch{return}}function zk(){W.document?W.document.addEventListener("visibilitychange",()=>{const e=Pe();if(!e)return;const t=Oe(e);if(W.document.hidden&&t){const n="cancelled",{op:r,status:i}=Z(t);ne&&y.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||t.setStatus({code:we,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):ne&&y.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const jk=3600,Gm="sentry_previous_trace",qk="sentry.previous_trace";function Vk(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let i=r?Jk():void 0;e.on("spanStart",o=>{if(Oe(o)!==o)return;const a=Q().getPropagationContext();i=Xk(i,o,a),r&&Yk(i)});let s=!0;n&&e.on("beforeSampling",o=>{if(!i)return;const a=Q(),c=a.getPropagationContext();if(s&&c.parentSpanId){s=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(i.sampleRate),sampled:String(tc(i.spanContext))},sampleRand:i.sampleRand}),o.parentSampled=tc(i.spanContext),o.parentSampleRate=i.sampleRate,o.spanAttributes={...o.spanAttributes,[Rf]:i.sampleRate}})}function Xk(e,t,n){const r=Z(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[ro])}catch{return 0}}const s={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return s;const o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=jk&&(ne&&y.log(`Adding previous_trace ${o} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:o,attributes:{[S_]:"previous_trace"}}),t.setAttribute(qk,`${o.traceId}-${o.spanId}-${tc(o)?1:0}`)),s)}function Yk(e){try{W.sessionStorage.setItem(Gm,JSON.stringify(e))}catch(t){ne&&y.warn("Could not store previous trace in sessionStorage",t)}}function Jk(){try{const e=W.sessionStorage?.getItem(Gm);return JSON.parse(e)}catch{return}}function tc(e){return e.traceFlags===1}const Kk="BrowserTracing",Zk={...cs,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...mu},Qk=(e={})=>{const t={name:void 0,source:void 0},n=W.document,{enableInp:r,enableElementTiming:i,enableLongTask:s,enableLongAnimationFrame:o,_experiments:{enableInteractions:a,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:d,idleTimeout:l,finalTimeout:f,childSpanTimeout:h,markBackgroundSpan:p,traceFetch:m,traceXHR:g,trackFetchStreamPerformance:_,shouldCreateSpanForRequest:v,enableHTTPTimings:L,ignoreResourceSpans:A,ignorePerformanceApiSpans:O,instrumentPageLoad:T,instrumentNavigation:C,detectRedirects:M,linkPreviousTrace:x,consistentTraceSampling:R,onRequestSpanStart:P}={...Zk,...e};let k,F;function X(U,J,N=!0){const G=J.op==="pageload",B=d?d(J):J,re=B.attributes||{};if(J.name!==B.name&&(re[tt]="custom",B.attributes=re),!N){const Me=Dn();Bn({...B,startTime:Me}).end(Me);return}t.name=B.name,t.source=re[tt];const ce=th(B,{idleTimeout:l,finalTimeout:f,childSpanTimeout:h,disableAutoFinish:G,beforeSpanEnd:Me=>{k?.(),Nv(Me,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:A,ignorePerformanceApiSpans:O}),vd(U,void 0);const ke=Q(),Ke=ke.getPropagationContext();ke.setPropagationContext({...Ke,traceId:ce.spanContext().traceId,sampled:Fn(ce),dsc:gt(Me)})}});vd(U,ce);function Ae(){n&&["interactive","complete"].includes(n.readyState)&&U.emit("idleSpanEnableAutoFinish",ce)}G&&n&&(n.addEventListener("readystatechange",()=>{Ae()}),Ae())}return{name:Kk,setup(U){if(zf(),k=Tv({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:U}),r&&ew(),i&&Wv(),o&&q.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?xv():s&&Iv(),a&&kv(),M&&n){const N=()=>{F=xe()};addEventListener("click",N,{capture:!0}),addEventListener("keydown",N,{capture:!0,passive:!0})}function J(){const N=ci(U);N&&!Z(N).timestamp&&(ne&&y.log(`[Tracing] Finishing current active span with op: ${Z(N).op}`),N.setAttribute(ks,"cancelled"),N.end())}U.on("startNavigationSpan",(N,G)=>{if(H()!==U)return;if(G?.isRedirect){ne&&y.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),X(U,{op:"navigation.redirect",...N},!1);return}J(),Le().setPropagationContext({traceId:Wt(),sampleRand:Math.random()});const B=Q();B.setPropagationContext({traceId:Wt(),sampleRand:Math.random()}),B.setSDKProcessingMetadata({normalizedRequest:void 0}),X(U,{op:"navigation",...N})}),U.on("startPageLoadSpan",(N,G={})=>{if(H()!==U)return;J();const B=G.sentryTrace||Ed("sentry-trace"),re=G.baggage||Ed("baggage"),ce=Df(B,re),Ae=Q();Ae.setPropagationContext(ce),Ae.setSDKProcessingMetadata({normalizedRequest:Uc()}),X(U,{op:"pageload",...N})})},afterAllSetup(U){let J=Pn();if(x!=="off"&&Vk(U,{linkPreviousTrace:x,consistentTraceSampling:R}),W.location){if(T){const N=Be();zm(U,{name:W.location.pathname,startTime:N?N/1e3:void 0,attributes:{[tt]:"url",[Se]:"auto.pageload.browser"}})}C&&go(({to:N,from:G})=>{if(G===void 0&&J?.indexOf(N)!==-1){J=void 0;return}J=void 0;const B=Hh(N),re=ci(U),ce=re&&M&&tC(re,F);jm(U,{name:B?.pathname||W.location.pathname,attributes:{[tt]:"url",[Se]:"auto.navigation.browser"}},{url:N,isRedirect:ce})})}p&&zk(),a&&eC(U,l,f,h,t),r&&rw(),$m(U,{traceFetch:m,traceXHR:g,trackFetchStreamPerformance:_,tracePropagationTargets:U.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:v,enableHTTPTimings:L,onRequestSpanStart:P})}}};function zm(e,t,n){e.emit("startPageLoadSpan",t,n),Q().setTransactionName(t.name);const r=ci(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function jm(e,t,n){const{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});const s=Q();return s.setTransactionName(t.name),r&&!i&&s.setSDKProcessingMetadata({normalizedRequest:{...Uc(),url:r}}),ci(e)}function Ed(e){return W.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function eC(e,t,n,r,i){const s=W.document;let o;const a=()=>{const c="ui.action.click",u=ci(e);if(u){const d=Z(u).op;if(["navigation","pageload"].includes(d)){ne&&y.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(ks,"interactionInterrupted"),o.end(),o=void 0),!i.name){ne&&y.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}o=th({name:i.name,op:c,attributes:{[tt]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};s&&addEventListener("click",a,{capture:!0})}const qm="_sentry_idleSpan";function ci(e){return e[qm]}function vd(e,t){Ye(e,qm,t)}const wd=.3;function tC(e,t){const n=Z(e),r=Dn(),i=n.start_timestamp;return!(r-i>wd||t&&r-t<=wd)}function vr(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function nC(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=vr(n);return i=>r.then(s=>i(s.transaction(t,"readwrite").objectStore(t)))}function gu(e){return vr(e.getAllKeys())}function rC(e,t,n){return e(r=>gu(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.max(...i,0)+1),vr(r.transaction)}))}function iC(e,t,n){return e(r=>gu(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.min(...i,0)-1),vr(r.transaction)}))}function sC(e){return e(t=>gu(t).then(n=>{const r=n[0];if(r!=null)return vr(t.get(r)).then(i=>(t.delete(r),vr(t.transaction).then(()=>i)))}))}function oC(e){let t;function n(){return t==null&&(t=nC(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const i=await As(r);await rC(n(),i,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const i=await As(r);await iC(n(),i,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await sC(n());if(r)return X_(r)}catch{}}}}function aC(e){return t=>{const n=e({...t,createStore:oC});return W.addEventListener("online",async r=>{await n.flush()}),n}}function cC(e=Jc){return aC(gb(e))}const Td=1e6,Es=String(0),uC="main",Ks=W.navigator;let Vm="",Xm="",Ym="",nc=Ks?.userAgent||"",Jm="";const lC=Ks?.language||Ks?.languages?.[0]||"";function dC(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const Id=Ks?.userAgentData;dC(Id)&&Id.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(Vm=e.platform||"",Ym=e.architecture||"",Jm=e.model||"",Xm=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];nc=`${t.brand} ${t.version}`}}).catch(e=>{});function fC(e){return!("thread_metadata"in e)}function hC(e){return fC(e)?gC(e):e}function pC(e){const t=e.contexts?.trace?.trace_id;return typeof t=="string"&&t.length!==32&&ne&&y.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function mC(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const i=pC(r),s=hC(n),o=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:xe()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:xe()*1e3;return{event_id:e,timestamp:new Date(o).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||io,runtime:{name:"javascript",version:W.navigator.userAgent},os:{name:Vm,version:Xm,build_number:nc},device:{locale:lC,model:Jm,manufacturer:nc,architecture:Ym,is_emulator:!1},debug_meta:{images:bC(n.resources)},profile:s,transactions:[{name:r.transaction||"",id:r.event_id||je(),trace_id:i,active_thread_id:Es,relative_start_ns:"0",relative_end_ns:((a-o)*1e6).toFixed(0)}]}}function Km(e){return Z(e).op==="pageload"}function gC(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Es]:{name:uC}}},i=e.samples[0];if(!i)return r;const s=i.timestamp,o=Be(),a=typeof performance.timeOrigin=="number"?performance.timeOrigin:o||0,c=a-(o||a);return e.samples.forEach((u,d)=>{if(u.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[d]={elapsed_since_start_ns:((u.timestamp+c-s)*Td).toFixed(0),stack_id:t,thread_id:Es};return}let l=e.stacks[u.stackId];const f=[];for(;l;){f.push(l.frameId);const p=e.frames[l.frameId];p&&r.frames[l.frameId]===void 0&&(r.frames[l.frameId]={function:p.name,abs_path:typeof p.resourceId=="number"?e.resources[p.resourceId]:void 0,lineno:p.line,colno:p.column}),l=l.parentId===void 0?void 0:e.stacks[l.parentId]}const h={elapsed_since_start_ns:((u.timestamp+c-s)*Td).toFixed(0),stack_id:n,thread_id:Es};r.stacks[n]=f,r.samples[d]=h,n++}),r}function _C(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function yC(e){const t=[];return Mn(e,(n,r)=>{if(r==="transaction")for(let i=1;i<n.length;i++)n[i]?.contexts?.profile?.profile_id&&t.push(n[i])}),t}function bC(e){const r=H()?.getOptions()?.stackParser;return r?Ty(r,e):[]}function SC(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(ne&&y.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(ne&&y.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function EC(e){return e.samples.length<2?(ne&&y.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(ne&&y.log("[Profiling] Discarding profile because it contains no frames"),!1)}let Zm=!1;const Qm=3e4;function vC(e){return typeof e=="function"}function wC(){const e=W.Profiler;if(!vC(e)){ne&&y.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(Qm/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{ne&&(y.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),y.log("[Profiling] Disabling profiling for current user session.")),Zm=!0}}function xd(e){if(Zm)return ne&&y.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return ne&&y.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const n=H()?.getOptions();if(!n)return ne&&y.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return SC(r)?r?(r===!0?!0:Math.random()<r)?!0:(ne&&y.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(ne&&y.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(ne&&y.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function TC(e,t,n,r){return EC(n)?mC(e,t,n,r):null}const In=new Map;function IC(){return In.size}function xC(e){const t=In.get(e);return t&&In.delete(e),t}function kC(e,t){if(In.set(e,t),In.size>30){const n=In.keys().next().value;In.delete(n)}}function kd(e){let t;Km(e)&&(t=xe()*1e3);const n=wC();if(!n)return;ne&&y.log(`[Profiling] started profiling span: ${Z(e).description}`);const r=je();Q().setContext("profile",{profile_id:r,start_timestamp:t});async function i(){if(e&&n)return n.stop().then(c=>{if(s&&(W.clearTimeout(s),s=void 0),ne&&y.log(`[Profiling] stopped profiling of span: ${Z(e).description}`),!c){ne&&y.log(`[Profiling] profiler returned null profile for: ${Z(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}kC(r,c)}).catch(c=>{ne&&y.log("[Profiling] error while stopping profiler:",c)})}let s=W.setTimeout(()=>{ne&&y.log("[Profiling] max profile duration elapsed, stopping profiling for:",Z(e).description),i()},Qm);const o=e.end.bind(e);function a(){return e?(i().then(()=>{o()},()=>{o()}),e):o()}e.end=a}const CC="BrowserProfiling",RC=()=>({name:CC,setup(e){const t=Pe(),n=t&&Oe(t);n&&Km(n)&&xd(n)&&kd(n),e.on("spanStart",r=>{r===Oe(r)&&xd(r)&&kd(r)}),e.on("beforeEnvelope",r=>{if(!IC())return;const i=yC(r);if(!i.length)return;const s=[];for(const o of i){const a=o?.contexts,c=a?.profile?.profile_id,u=a?.profile?.start_timestamp;if(typeof c!="string"){ne&&y.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!c){ne&&y.log("[Profiling] cannot find profile for a span without a profile context");continue}a?.profile&&delete a.profile;const d=xC(c);if(!d){ne&&y.log(`[Profiling] Could not retrieve profile for span: ${c}`);continue}const l=TC(c,u,d,o);l&&s.push(l)}_C(r,s)})}}),AC=RC,MC="SpotlightBrowser",NC=(e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:MC,setup:()=>{ne&&y.log("Using Sidecar URL",t)},processEvent:n=>PC(n)?null:n,afterAllSetup:n=>{OC(n,t)}}};function OC(e,t){const n=Vc("fetch");let r=0;e.on("beforeEnvelope",i=>{if(r>3){y.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:As(i),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(s=>{s.status>=200&&s.status<400&&(r=0)},s=>{r++,y.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",s)})})}const LC=NC;function PC(e){return!!(e.type==="transaction"&&e.spans&&e.contexts?.trace&&e.contexts.trace.op==="ui.action.click"&&e.spans.some(({description:t})=>t?.includes("#sentry-spotlight")))}const DC=()=>({name:"LaunchDarkly",processEvent(e,t,n){return Si(e)}});function FC(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{lr(e,t.value),dr(e,t.value)}}}const HC=()=>({name:"OpenFeature",processEvent(e,t,n){return Si(e)}});class BC{after(t,n){lr(n.flagKey,n.value),dr(n.flagKey,n.value)}error(t,n,r){lr(t.flagKey,t.defaultValue),dr(t.flagKey,t.defaultValue)}}const UC=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;ze(t,"isEnabled",$C)},processEvent(t,n,r){return Si(t)}});function $C(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?(lr(n,r),dr(n,r)):ne&&y.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const WC=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",n=>{lr(n.gate.name,n.gate.value),dr(n.gate.name,n.gate.value)})},processEvent(t,n,r){return Si(t)}});async function GC(){const e=H();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";try{await fetch("https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7",{body:"{}",method:"POST",mode:"cors",credentials:"omit"})}catch{return"sentry-unreachable"}}const zC="WebWorker",jC=({worker:e})=>({name:zC,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(t=>Cd(t))},addWorker:t=>Cd(t)});function Cd(e){e.addEventListener("message",t=>{VC(t.data)&&(t.stopImmediatePropagation(),ne&&y.log("Sentry debugId web worker message received",t.data),W._sentryDebugIds={...t.data._sentryDebugIds,...W._sentryDebugIds})})}function qC({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0})}function VC(e){return Ut(e)&&e._sentryMessage===!0&&"_sentryDebugIds"in e&&(Ut(e._sentryDebugIds)||e._sentryDebugIds===void 0)}const XC=Object.freeze(Object.defineProperty({__proto__:null,BrowserClient:up,OpenFeatureIntegrationHook:BC,SDK_VERSION:Dt,SEMANTIC_ATTRIBUTE_SENTRY_OP:rt,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:Se,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:ro,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:tt,Scope:mt,WINDOW:W,addBreadcrumb:Ct,addEventProcessor:ah,addIntegration:Ca,breadcrumbsIntegration:Op,browserApiErrorsIntegration:Lp,browserProfilingIntegration:AC,browserSessionIntegration:Pp,browserTracingIntegration:Qk,buildLaunchDarklyFlagUsedHandler:FC,captureConsoleIntegration:Vb,captureEvent:bi,captureException:Nn,captureFeedback:Uh,captureMessage:Ls,captureSession:ka,chromeStackLineParser:Cp,close:$y,consoleLoggingIntegration:JS,contextLinesIntegration:kT,continueTrace:uy,createTransport:vh,createUserFeedbackEnvelope:Iw,dedupeIntegration:Nh,defaultRequestInstrumentationOptions:mu,defaultStackLineParsers:Ap,defaultStackParser:Mp,diagnoseSdkConnectivity:GC,endSession:Rc,eventFiltersIntegration:kh,eventFromException:ap,eventFromMessage:cp,exceptionFromError:lo,extraErrorDataIntegration:nS,featureFlagsIntegration:BS,feedbackAsyncIntegration:TE,feedbackIntegration:Rl,feedbackSyncIntegration:Rl,flush:Uy,forceLoad:iT,functionToStringIntegration:xh,geckoStackLineParser:Rp,getActiveSpan:Pe,getClient:H,getCurrentScope:Q,getDefaultIntegrations:Up,getFeedback:L0,getGlobalScope:no,getIsolationScope:Le,getReplay:_k,getRootSpan:Oe,getSpanDescendants:Yr,getSpanStatusFromHttpCode:Af,getTraceData:Mc,globalHandlersIntegration:Dp,graphqlClientIntegration:PT,httpClientIntegration:hT,httpContextIntegration:Hp,inboundFiltersIntegration:Ch,init:rT,instrumentOutgoingRequests:$m,instrumentSupabaseClient:Dh,isEnabled:oh,isInitialized:Wy,lastEventId:sh,launchDarklyIntegration:DC,lazyLoadIntegration:sp,linkedErrorsIntegration:Bp,logger:ME,makeBrowserOfflineTransport:cC,makeFetchTransport:Jc,makeMultiplexedTransport:bb,moduleMetadataIntegration:Gb,onLoad:sT,openFeatureIntegration:HC,opera10StackLineParser:Ew,opera11StackLineParser:Tw,parameterize:Ih,registerSpanErrorInstrumentation:zf,registerWebWorker:qC,replayCanvasIntegration:Dk,replayIntegration:pk,reportingObserverIntegration:lT,rewriteFramesIntegration:dS,sendFeedback:jh,setContext:ih,setCurrentClient:_h,setExtra:Dy,setExtras:Py,setHttpStatus:ni,setMeasurement:Zf,setTag:Hy,setTags:Fy,setUser:By,showReportDialog:oT,spanToBaggageHeader:B_,spanToJSON:Z,spanToTraceHeader:Uf,spotlightBrowserIntegration:LC,startBrowserTracingNavigationSpan:jm,startBrowserTracingPageLoadSpan:zm,startInactiveSpan:Bn,startNewTrace:dy,startSession:xa,startSpan:oo,startSpanManual:cy,statsigIntegration:WC,supabaseIntegration:TS,suppressTracing:ly,thirdPartyErrorFilterIntegration:LS,unleashIntegration:UC,updateSpanName:O_,webWorkerIntegration:jC,winjsStackLineParser:yw,withActiveSpan:_i,withIsolationScope:__,withScope:ot,zodErrorsIntegration:OS},Symbol.toStringTag,{value:"Module"})),To=e=>{typeof window<"u"&&window.Sentry&&e(XC)},{useEffect:YC}=await Je("react"),eg=(e,t)=>YC(()=>{const n=e().catch(r=>{console.error("AsyncEffect error: ",r),To(i=>i.captureException("AsyncEffect error: "+r.message,{extra:r}))});return function(){n.then(r=>{typeof r=="function"&&r()})}},t),{createContext:JC,useMemo:KC,useRef:ZC,useState:QC}=await Je("react"),tg=JC(null),lM=e=>{const{writeKey:t,userId:n,traits:r,children:i}=e,s=ZC(null),[o,a]=QC(!1);eg(async()=>{if(!t){console.log("[Analytics] No writeKey provided");return}const u=navigator.userAgent;if(Fg(u)){console.log("[Analytics] Skipping load: bot detected");return}try{const{AnalyticsBrowser:l}=await Rg(async()=>{const{AnalyticsBrowser:f}=await import("../index-DP4gqdTC.js").then(h=>h.q);return{AnalyticsBrowser:f}},__vite__mapDeps([0,1,2,3,4]));s.current=l.load({writeKey:t}),n&&s.current.identify(n,r),a(!0)}catch(l){console.error("[Analytics] Failed to initialize:",l),s.current=null}},[t,n,r]);const c=KC(()=>!s.current||!o?{isInitialized:!1,track:()=>{},identify:()=>{},page:()=>{}}:{isInitialized:!0,track:(u,d)=>{s.current?.track(u,d)},identify:(u,d)=>{s.current?.identify(u,d)},page:(u,d)=>{s.current?.page(u,d)}},[o]);return hf.jsx(tg.Provider,{value:c,children:i})},{createContext:eR}=await Je("react"),ng=eR(null);function wt(e,t){var n=t&&t.cache?t.cache:aR,r=t&&t.serializer?t.serializer:sR,i=t&&t.strategy?t.strategy:nR;return i(e,{cache:n,serializer:r})}function tR(e){return e==null||typeof e=="number"||typeof e=="boolean"}function rg(e,t,n,r){var i=tR(r)?r:n(r),s=t.get(i);return typeof s>"u"&&(s=e.call(this,r),t.set(i,s)),s}function ig(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),s=t.get(i);return typeof s>"u"&&(s=e.apply(this,r),t.set(i,s)),s}function _u(e,t,n,r,i){return n.bind(t,e,r,i)}function nR(e,t){var n=e.length===1?rg:ig;return _u(e,this,n,t.cache.create(),t.serializer)}function rR(e,t){return _u(e,this,ig,t.cache.create(),t.serializer)}function iR(e,t){return _u(e,this,rg,t.cache.create(),t.serializer)}var sR=function(){return JSON.stringify(arguments)},oR=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),aR={create:function(){return new oR}},Tt={variadic:rR,monadic:iR},se;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(se||(se={}));var _e;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(_e||(_e={}));var wr;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(wr||(wr={}));function Rd(e){return e.type===_e.literal}function cR(e){return e.type===_e.argument}function sg(e){return e.type===_e.number}function og(e){return e.type===_e.date}function ag(e){return e.type===_e.time}function cg(e){return e.type===_e.select}function ug(e){return e.type===_e.plural}function uR(e){return e.type===_e.pound}function lg(e){return e.type===_e.tag}function dg(e){return!!(e&&typeof e=="object"&&e.type===wr.number)}function rc(e){return!!(e&&typeof e=="object"&&e.type===wr.dateTime)}var fg=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,lR=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function dR(e){var t={};return e.replace(lR,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var fR=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function hR(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(fR).filter(function(f){return f.length>0}),n=[],r=0,i=t;r<i.length;r++){var s=i[r],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var a=o[0],c=o.slice(1),u=0,d=c;u<d.length;u++){var l=d[u];if(l.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:c})}return n}function pR(e){return e.replace(/^(.*?)-/,"")}var Ad=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,hg=/^(@+)?(\+|#+)?[rs]?$/g,mR=/(\*)(0+)|(#+)(0+)|(0+)/g,pg=/^(0+)$/;function Md(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(hg,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function mg(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function gR(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!pg.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Nd(e){var t={},n=mg(e);return n||t}function _R(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=pR(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=$($($({},t),{notation:"scientific"}),i.options.reduce(function(c,u){return $($({},c),Nd(u))},{}));continue;case"engineering":t=$($($({},t),{notation:"engineering"}),i.options.reduce(function(c,u){return $($({},c),Nd(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(mR,function(c,u,d,l,f,h){if(u)t.minimumIntegerDigits=d.length;else{if(l&&f)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(pg.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Ad.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ad,function(c,u,d,l,f,h){return d==="*"?t.minimumFractionDigits=u.length:l&&l[0]==="#"?t.maximumFractionDigits=l.length:f&&h?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+h.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var s=i.options[0];s==="w"?t=$($({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=$($({},t),Md(s)));continue}if(hg.test(i.stem)){t=$($({},t),Md(i.stem));continue}var o=mg(i.stem);o&&(t=$($({},t),o));var a=gR(i.stem);a&&(t=$($({},t),a))}return t}var Qi={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function yR(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var s=0;r+1<e.length&&e.charAt(r+1)===i;)s++,r++;var o=1+(s&1),a=s<2?1:3+(s>>1),c="a",u=bR(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=c;for(;o-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function bR(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Qi[r||""]||Qi[n||""]||Qi["".concat(n,"-001")]||Qi["001"];return i[0]}var na,SR=new RegExp("^".concat(fg.source,"*")),ER=new RegExp("".concat(fg.source,"*$"));function oe(e,t){return{start:e,end:t}}var vR=!!String.prototype.startsWith&&"_a".startsWith("a",1),wR=!!String.fromCodePoint,TR=!!Object.fromEntries,IR=!!String.prototype.codePointAt,xR=!!String.prototype.trimStart,kR=!!String.prototype.trimEnd,CR=!!Number.isSafeInteger,RR=CR?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ic=!0;try{var AR=_g("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ic=((na=AR.exec("a"))===null||na===void 0?void 0:na[0])==="a"}catch{ic=!1}var Od=vR?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},sc=wR?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,s=0,o;i>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r},Ld=TR?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var s=i[r],o=s[0],a=s[1];n[o]=a}return n},gg=IR?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),s;return i<55296||i>56319||n+1===r||(s=t.charCodeAt(n+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},MR=xR?function(t){return t.trimStart()}:function(t){return t.replace(SR,"")},NR=kR?function(t){return t.trimEnd()}:function(t){return t.replace(ER,"")};function _g(e,t){return new RegExp(e,t)}var oc;if(ic){var Pd=_g("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");oc=function(t,n){var r;Pd.lastIndex=n;var i=Pd.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else oc=function(t,n){for(var r=[];;){var i=gg(t,n);if(i===void 0||yg(i)||DR(i))break;r.push(i),n+=i>=65536?2:1}return sc.apply(void 0,r)};var OR=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,r);if(o.err)return o;i.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:_e.pound,location:oe(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(se.UNMATCHED_CLOSING_TAG,oe(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&ac(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:_e.literal,value:"<".concat(i,"/>"),location:oe(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,n,!0);if(s.err)return s;var o=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ac(this.char()))return this.error(se.INVALID_TAG,oe(a,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(se.UNMATCHED_CLOSING_TAG,oe(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:_e.tag,value:i,children:o,location:oe(r,this.clonePosition())},err:null}:this.error(se.INVALID_TAG,oe(a,this.clonePosition())))}else return this.error(se.UNCLOSED_TAG,oe(r,this.clonePosition()))}else return this.error(se.INVALID_TAG,oe(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&PR(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var s=this.tryParseQuote(n);if(s){i+=s;continue}var o=this.tryParseUnquoted(t,n);if(o){i+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var c=oe(r,this.clonePosition());return{val:{type:_e.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!LR(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return sc.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),sc(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(se.EXPECT_ARGUMENT_CLOSING_BRACE,oe(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(se.EMPTY_ARGUMENT,oe(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(se.MALFORMED_ARGUMENT,oe(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(se.EXPECT_ARGUMENT_CLOSING_BRACE,oe(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:_e.argument,value:i,location:oe(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(se.EXPECT_ARGUMENT_CLOSING_BRACE,oe(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(se.MALFORMED_ARGUMENT,oe(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=oc(this.message,n),i=n+r.length;this.bumpTo(i);var s=this.clonePosition(),o=oe(t,s);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,i){var s,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(a){case"":return this.error(se.EXPECT_ARGUMENT_TYPE,oe(o,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),l=this.parseSimpleArgStyleIfPossible();if(l.err)return l;var f=NR(l.val);if(f.length===0)return this.error(se.EXPECT_ARGUMENT_STYLE,oe(this.clonePosition(),this.clonePosition()));var h=oe(d,this.clonePosition());u={style:f,styleLocation:h}}var p=this.tryParseArgumentClose(i);if(p.err)return p;var m=oe(i,this.clonePosition());if(u&&Od(u?.style,"::",0)){var g=MR(u.style.slice(2));if(a==="number"){var l=this.parseNumberSkeletonFromString(g,u.styleLocation);return l.err?l:{val:{type:_e.number,value:r,location:m,style:l.val},err:null}}else{if(g.length===0)return this.error(se.EXPECT_DATE_TIME_SKELETON,m);var _=g;this.locale&&(_=yR(g,this.locale));var f={type:wr.dateTime,pattern:_,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?dR(_):{}},v=a==="date"?_e.date:_e.time;return{val:{type:v,value:r,location:m,style:f},err:null}}}return{val:{type:a==="number"?_e.number:a==="date"?_e.date:_e.time,value:r,location:m,style:(s=u?.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var L=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(se.EXPECT_SELECT_ARGUMENT_OPTIONS,oe(L,$({},L)));this.bumpSpace();var A=this.parseIdentifierIfPossible(),O=0;if(a!=="select"&&A.value==="offset"){if(!this.bumpIf(":"))return this.error(se.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,oe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var l=this.tryParseDecimalInteger(se.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,se.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(l.err)return l;this.bumpSpace(),A=this.parseIdentifierIfPossible(),O=l.val}var T=this.tryParsePluralOrSelectOptions(t,a,n,A);if(T.err)return T;var p=this.tryParseArgumentClose(i);if(p.err)return p;var C=oe(i,this.clonePosition());return a==="select"?{val:{type:_e.select,value:r,options:Ld(T.val),location:C},err:null}:{val:{type:_e.plural,value:r,options:Ld(T.val),offset:O,pluralType:a==="plural"?"cardinal":"ordinal",location:C},err:null}}default:return this.error(se.INVALID_ARGUMENT_TYPE,oe(o,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(se.EXPECT_ARGUMENT_CLOSING_BRACE,oe(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(se.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,oe(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=hR(t)}catch{return this.error(se.INVALID_NUMBER_SKELETON,n)}return{val:{type:wr.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?_R(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var s,o=!1,a=[],c=new Set,u=i.value,d=i.location;;){if(u.length===0){var l=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(se.EXPECT_PLURAL_ARGUMENT_SELECTOR,se.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;d=oe(l,this.clonePosition()),u=this.message.slice(l.offset,this.offset())}else break}if(c.has(u))return this.error(n==="select"?se.DUPLICATE_SELECT_ARGUMENT_SELECTOR:se.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?se.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:se.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,oe(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,n,r);if(p.err)return p;var m=this.tryParseArgumentClose(h);if(m.err)return m;a.push([u,{value:p.val,location:oe(h,this.clonePosition())}]),c.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,d=s.location}return a.length===0?this.error(n==="select"?se.EXPECT_SELECT_ARGUMENT_SELECTOR:se.EXPECT_PLURAL_ARGUMENT_SELECTOR,oe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(se.MISSING_OTHER_CLAUSE,oe(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var s=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,o=o*10+(a-48),this.bump();else break}var c=oe(i,this.clonePosition());return s?(o*=r,RR(o)?{val:o,err:null}:this.error(n,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=gg(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Od(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&yg(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function ac(e){return e>=97&&e<=122||e>=65&&e<=90}function LR(e){return ac(e)||e===47}function PR(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function yg(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function DR(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function cc(e){e.forEach(function(t){if(delete t.location,cg(t)||ug(t))for(var n in t.options)delete t.options[n].location,cc(t.options[n].value);else sg(t)&&dg(t.style)||(og(t)||ag(t))&&rc(t.style)?delete t.style.location:lg(t)&&cc(t.children)})}function FR(e,t){t===void 0&&(t={}),t=$({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new OR(e,t).parse();if(n.err){var r=SyntaxError(se[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||cc(n.val),n.val}var Rt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Rt||(Rt={}));var hn=function(e){yt(t,e);function t(n,r,i){var s=e.call(this,n)||this;return s.code=r,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Dd=function(e){yt(t,e);function t(n,r,i,s){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Rt.INVALID_VALUE,s)||this}return t}(hn),HR=function(e){yt(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Rt.INVALID_VALUE,i)||this}return t}(hn),BR=function(e){yt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Rt.MISSING_VALUE,r)||this}return t}(hn),$e;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})($e||($e={}));function UR(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==$e.literal||n.type!==$e.literal?t.push(n):r.value+=n.value,t},[])}function $R(e){return typeof e=="function"}function vs(e,t,n,r,i,s,o){if(e.length===1&&Rd(e[0]))return[{type:$e.literal,value:e[0].value}];for(var a=[],c=0,u=e;c<u.length;c++){var d=u[c];if(Rd(d)){a.push({type:$e.literal,value:d.value});continue}if(uR(d)){typeof s=="number"&&a.push({type:$e.literal,value:n.getNumberFormat(t).format(s)});continue}var l=d.value;if(!(i&&l in i))throw new BR(l,o);var f=i[l];if(cR(d)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),a.push({type:typeof f=="string"?$e.literal:$e.object,value:f});continue}if(og(d)){var h=typeof d.style=="string"?r.date[d.style]:rc(d.style)?d.style.parsedOptions:void 0;a.push({type:$e.literal,value:n.getDateTimeFormat(t,h).format(f)});continue}if(ag(d)){var h=typeof d.style=="string"?r.time[d.style]:rc(d.style)?d.style.parsedOptions:r.time.medium;a.push({type:$e.literal,value:n.getDateTimeFormat(t,h).format(f)});continue}if(sg(d)){var h=typeof d.style=="string"?r.number[d.style]:dg(d.style)?d.style.parsedOptions:void 0;h&&h.scale&&(f=f*(h.scale||1)),a.push({type:$e.literal,value:n.getNumberFormat(t,h).format(f)});continue}if(lg(d)){var p=d.children,m=d.value,g=i[m];if(!$R(g))throw new HR(m,"function",o);var _=vs(p,t,n,r,i,s),v=g(_.map(function(O){return O.value}));Array.isArray(v)||(v=[v]),a.push.apply(a,v.map(function(O){return{type:typeof O=="string"?$e.literal:$e.object,value:O}}))}if(cg(d)){var L=d.options[f]||d.options.other;if(!L)throw new Dd(d.value,f,Object.keys(d.options),o);a.push.apply(a,vs(L.value,t,n,r,i));continue}if(ug(d)){var L=d.options["=".concat(f)];if(!L){if(!Intl.PluralRules)throw new hn(`Intl.PluralRules is not available in this environment.
|
|
499
|
+
or you can use record.mirror to access the mirror instance during recording.`;let fd={map:{},getId(){return console.error(Qn),-1},getNode(){return console.error(Qn),null},removeNodeFromMap(){console.error(Qn)},has(){return console.error(Qn),!1},reset(){console.error(Qn)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(fd=new Proxy(fd,{get(e,t,n){return t==="map"&&console.error(Qn),Reflect.get(e,t,n)}}));function hu(e,t,n,r,i=window){const s=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(o){Fm(()=>{n.set.call(this,o)},0),s&&s.set&&s.set.call(this,o)}}),()=>hu(e,t,s||{},!0)}function pu(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}Date.now().toString();function wk(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function wo(e,t,n,r,i){if(!e)return!1;const s=wk(e);if(!s)return!1;const o=dd(t,n),a=ec(s,o);let c=-1;return a<0?!1:(r&&(c=ec(s,dd(null,r))),a>-1&&c<0?!0:a<c)}const hd={};function Dm(e){const t=hd[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const s=i.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(i)}catch{}return hd[e]=r.bind(window)}function gn(...e){return Dm("requestAnimationFrame")(...e)}function Fm(...e){return Dm("setTimeout")(...e)}var Er=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Er||{});let bs;function Tk(e){bs=e}const ea=e=>bs?(...n)=>{try{return e(...n)}catch(r){if(bs&&bs(r)===!0)return()=>{};throw r}}:e;var ir="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ik=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ki=0;Ki<ir.length;Ki++)Ik[ir.charCodeAt(Ki)]=Ki;var xk=function(e){var t=new Uint8Array(e),n,r=t.length,i="";for(n=0;n<r;n+=3)i+=ir[t[n]>>2],i+=ir[(t[n]&3)<<4|t[n+1]>>4],i+=ir[(t[n+1]&15)<<2|t[n+2]>>6],i+=ir[t[n+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const pd=new Map;function kk(e,t){let n=pd.get(e);return n||(n=new Map,pd.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const Hm=(e,t,n)=>{if(!e||!(Um(e,t)||typeof e=="object"))return;const r=e.constructor.name,i=kk(n,r);let s=i.indexOf(e);return s===-1&&(s=i.length,i.push(e)),s};function Ss(e,t,n){if(e instanceof Array)return e.map(r=>Ss(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,i=xk(e);return{rr_type:r,base64:i}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Ss(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:i}=e;return{rr_type:r,src:i}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",i=e.toDataURL();return{rr_type:r,src:i}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Ss(e.data,t,n),e.width,e.height]};if(Um(e,t)||typeof e=="object"){const r=e.constructor.name,i=Hm(e,t,n);return{rr_type:r,index:i}}}}return e}const Bm=(e,t,n)=>e.map(r=>Ss(r,t,n)),Um=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof t[i]=="function").find(i=>e instanceof t[i]);function Ck(e,t,n,r,i){const s=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of o)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const c=pu(t.CanvasRenderingContext2D.prototype,a,function(u){return function(...d){return wo(this.canvas,n,r,i,!0)||Fm(()=>{const l=Bm(d,t,this);e(this.canvas,{type:Er["2D"],property:a,args:l})},0),u.apply(this,d)}});s.push(c)}catch{const c=hu(t.CanvasRenderingContext2D.prototype,a,{set(u){e(this.canvas,{type:Er["2D"],property:a,args:[u],setter:!0})}});s.push(c)}return()=>{s.forEach(a=>a())}}function Rk(e){return e==="experimental-webgl"?"webgl":e}function md(e,t,n,r,i){const s=[];try{const o=pu(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...u){if(!wo(this,t,n,r,!0)){const d=Rk(c);if("__context"in this||(this.__context=d),i&&["webgl","webgl2"].includes(d))if(u[0]&&typeof u[0]=="object"){const l=u[0];l.preserveDrawingBuffer||(l.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...u])}});s.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(o=>o())}}function gd(e,t,n,r,i,s,o,a){const c=[],u=Object.getOwnPropertyNames(e);for(const d of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))try{if(typeof e[d]!="function")continue;const l=pu(e,d,function(f){return function(...h){const p=f.apply(this,h);if(Hm(p,a,this),"tagName"in this.canvas&&!wo(this.canvas,r,i,s,!0)){const m=Bm(h,a,this),g={type:t,property:d,args:m};n(this.canvas,g)}return p}});c.push(l)}catch{const l=hu(e,d,{set(f){n(this.canvas,{type:t,property:d,args:[f],setter:!0})}});c.push(l)}return c}function Ak(e,t,n,r,i,s){const o=[];return o.push(...gd(t.WebGLRenderingContext.prototype,Er.WebGL,e,n,r,i,s,t)),typeof t.WebGL2RenderingContext<"u"&&o.push(...gd(t.WebGL2RenderingContext.prototype,Er.WebGL2,e,n,r,i,s,t)),()=>{o.forEach(a=>a())}}const Mk='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function Nk(){const e=new Blob([Mk]);return URL.createObjectURL(e)}class Ok{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(a,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(c)};const{enableManualSnapshot:n,sampling:r="all",win:i,recordCanvas:s,errorHandler:o}=t;t.sampling=r,this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,o&&Tk(o),(s&&typeof r=="number"||n)&&(this.worker=this.initFPSWorker()),this.addWindow(i),!n&&ea(()=>{s&&r==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),s&&typeof r=="number"&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(t){const{sampling:n="all",blockClass:r,blockSelector:i,unblockSelector:s,recordCanvas:o,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}ea(()=>{if(o&&n==="all"&&this.initCanvasMutationObserver(t,r,i,s),o&&typeof n=="number"){const c=md(t,r,i,s,!0);this.restoreHandlers.push(()=>{c()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(t,n){if(n?.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,t);return}gn(r=>this.takeSnapshot(r,!0,t))}initFPSWorker(){const t=new Worker(Nk());return t.onmessage=n=>{const r=n.data,{id:i}=r;if(this.snapshotInProgressMap.set(i,!1),!("base64"in r))return;const{base64:s,type:o,width:a,height:c}=r;this.mutationCb({id:i,type:Er["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:s}],type:o}]},0,0,a,c]}]})},t}initCanvasFPSObserver(){let t;if(!this.windows.length&&!this.shadowDoms.size)return;const n=r=>{this.takeSnapshot(r,!1),t=gn(n)};t=gn(n),this.restoreHandlers.push(()=>{t&&cancelAnimationFrame(t)})}initCanvasMutationObserver(t,n,r,i){const s=md(t,n,r,i,!1),o=Ck(this.processMutation.bind(this),t,n,r,i),a=Ak(this.processMutation.bind(this),t,n,r,i,this.mirror);this.restoreHandlers.push(()=>{s(),o(),a()})}getCanvasElements(t,n,r){const i=[],s=o=>{o.querySelectorAll("canvas").forEach(a=>{wo(a,t,n,r)||i.push(a)})};for(const o of this.windows){const a=o.deref();let c;try{c=a&&a.document}catch{}c&&s(c)}for(const o of this.shadowDoms){const a=o.deref();a&&s(a)}return i}takeSnapshot(t,n,r){const{sampling:i,blockClass:s,blockSelector:o,unblockSelector:a,dataURLOptions:c,maxCanvasSize:u}=this.options,l=1e3/(i==="all"?2:i||2);return this.lastSnapshotTime&&t-this.lastSnapshotTime<l?!1:(this.lastSnapshotTime=t,(r?[r]:this.getCanvasElements(s,o,a)).forEach(p=>{const m=this.mirror.getId(p);if(!(!this.mirror.hasNode(p)||!p.width||!p.height||this.snapshotInProgressMap.get(m))){if(this.snapshotInProgressMap.set(m,!0),!n&&["webgl","webgl2"].includes(p.__context)){const g=p.getContext(p.__context);g?.getContextAttributes()?.preserveDrawingBuffer===!1&&g.clear(g.COLOR_BUFFER_BIT)}createImageBitmap(p).then(g=>{this.worker?.postMessage({id:m,bitmap:g,width:p.width,height:p.height,dataURLOptions:c,maxCanvasSize:u},[g])}).catch(g=>{ea(()=>{throw this.snapshotInProgressMap.delete(m),g})()})}}),!0)}startPendingCanvasMutationFlusher(){gn(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,gn(t)};gn(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),gn(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const i=r.map(o=>{const{type:a,...c}=o;return c}),{type:s}=r[0];this.mutationCb({id:n,type:s,commands:i}),this.pendingCanvasMutations.delete(t)}}try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}Ek();var _d;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(_d||(_d={}));const yd={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},Lk="ReplayCanvas",Zi=1280,Pk=(e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Zi):Zi,n?Math.min(n,Zi):Zi]};let i;const s=new Promise(o=>i=o);return{name:Lk,getOptions(){const{quality:o,enableManualSnapshot:a,maxCanvasSize:c}=r;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:u=>{const d=new Ok({...u,enableManualSnapshot:a,maxCanvasSize:c,errorHandler:l=>{try{typeof l=="object"&&(l.__rrweb__=!0)}catch{}}});return i(d),d},...yd[o]||yd.medium}},async snapshot(o,a){(await s).snapshot(o,a)}}},Dk=Pk;function Et(e=0){return((Be()||performance.timeOrigin)+e)/1e3}function Fk(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:r}=wp(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return Be()?[...t,["http.request.redirect_start",Et(e.redirectStart)],["http.request.fetch_start",Et(e.fetchStart)],["http.request.domain_lookup_start",Et(e.domainLookupStart)],["http.request.domain_lookup_end",Et(e.domainLookupEnd)],["http.request.connect_start",Et(e.connectStart)],["http.request.secure_connection_start",Et(e.secureConnectionStart)],["http.request.connection_end",Et(e.connectEnd)],["http.request.request_start",Et(e.requestStart)],["http.request.response_start",Et(e.responseStart)],["http.request.response_end",Et(e.responseEnd)]]:t}const bd=new WeakMap,ta=new Map,mu={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function $m(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:s,enableHTTPTimings:o,tracePropagationTargets:a,onRequestSpanStart:c}={...mu,...t},u=typeof s=="function"?s:f=>!0,d=f=>Bk(f,a),l={};n&&(e.addEventProcessor(f=>(f.type==="transaction"&&f.spans&&f.spans.forEach(h=>{if(h.op==="http.client"){const p=ta.get(h.span_id);p&&(h.timestamp=p/1e3,ta.delete(h.span_id))}}),f)),i&&t0(f=>{if(f.response){const h=bd.get(f.response);h&&f.endTimestamp&&ta.set(h,f.endTimestamp)}}),Lc(f=>{const h=WS(f,u,d,l);if(f.response&&f.fetchData.__span&&bd.set(f.response,f.fetchData.__span),h){const p=Wm(f.fetchData.url),m=p?Cn(p).host:void 0;h.setAttributes({"http.url":p,"server.address":m}),o&&Sd(h),c?.(h,{headers:f.headers})}})),r&&Xc(f=>{const h=Uk(f,u,d,l);if(h){o&&Sd(h);let p;try{p=new Headers(f.xhr.__sentry_xhr_v3__?.request_headers)}catch{}c?.(h,{headers:p})}})}function Hk(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Sd(e){const{url:t}=Z(e).data;if(!t||typeof t!="string")return;const n=On("resource",({entries:r})=>{r.forEach(i=>{Hk(i)&&i.name.endsWith(t)&&(Fk(i).forEach(o=>e.setAttribute(...o)),setTimeout(n))})})}function Bk(e,t){const n=Pn();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const s=r.origin===i;return t?pt(r.toString(),t)||s&&pt(r.pathname,t):s}else{const r=!!e.match(/^\/(?!\/)/);return t?pt(e,t):r}}function Uk(e,t,n,r){const i=e.xhr,s=i?.[Lt];if(!i||i.__sentry_own_request__||!s)return;const{url:o,method:a}=s,c=on()&&t(o);if(e.endTimestamp&&c){const m=i.__sentry_xhr_span_id__;if(!m)return;const g=r[m];g&&s.status_code!==void 0&&(ni(g,s.status_code),g.end(),delete r[m]);return}const u=Wm(o),d=Cn(u||o),l=Bh(o),f=!!Pe(),h=c&&f?Bn({name:`${a} ${l}`,attributes:{url:o,type:"xhr","http.method":a,"http.url":u,"server.address":d?.host,[Se]:"auto.http.browser",[rt]:"http.client",...d?.search&&{"http.query":d?.search},...d?.hash&&{"http.fragment":d?.hash}}}):new Gt;i.__sentry_xhr_span_id__=h.spanContext().spanId,r[i.__sentry_xhr_span_id__]=h,n(o)&&$k(i,on()&&f?h:void 0);const p=H();return p&&p.emit("beforeOutgoingRequestSpan",h,e),h}function $k(e,t){const{"sentry-trace":n,baggage:r}=Mc({span:t});n&&Wk(e,n,r)}function Wk(e,t,n){const r=e.__sentry_xhr_v3__?.request_headers;if(!r?.["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),n){const i=r?.baggage;(!i||!Gk(i))&&e.setRequestHeader("baggage",n)}}catch{}}function Gk(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function Wm(e){try{return new URL(e,W.location.origin).href}catch{return}}function zk(){W.document?W.document.addEventListener("visibilitychange",()=>{const e=Pe();if(!e)return;const t=Oe(e);if(W.document.hidden&&t){const n="cancelled",{op:r,status:i}=Z(t);ne&&y.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||t.setStatus({code:we,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):ne&&y.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const jk=3600,Gm="sentry_previous_trace",qk="sentry.previous_trace";function Vk(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let i=r?Jk():void 0;e.on("spanStart",o=>{if(Oe(o)!==o)return;const a=Q().getPropagationContext();i=Xk(i,o,a),r&&Yk(i)});let s=!0;n&&e.on("beforeSampling",o=>{if(!i)return;const a=Q(),c=a.getPropagationContext();if(s&&c.parentSpanId){s=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(i.sampleRate),sampled:String(tc(i.spanContext))},sampleRand:i.sampleRand}),o.parentSampled=tc(i.spanContext),o.parentSampleRate=i.sampleRate,o.spanAttributes={...o.spanAttributes,[Rf]:i.sampleRate}})}function Xk(e,t,n){const r=Z(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[ro])}catch{return 0}}const s={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return s;const o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=jk&&(ne&&y.log(`Adding previous_trace ${o} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:o,attributes:{[S_]:"previous_trace"}}),t.setAttribute(qk,`${o.traceId}-${o.spanId}-${tc(o)?1:0}`)),s)}function Yk(e){try{W.sessionStorage.setItem(Gm,JSON.stringify(e))}catch(t){ne&&y.warn("Could not store previous trace in sessionStorage",t)}}function Jk(){try{const e=W.sessionStorage?.getItem(Gm);return JSON.parse(e)}catch{return}}function tc(e){return e.traceFlags===1}const Kk="BrowserTracing",Zk={...cs,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...mu},Qk=(e={})=>{const t={name:void 0,source:void 0},n=W.document,{enableInp:r,enableElementTiming:i,enableLongTask:s,enableLongAnimationFrame:o,_experiments:{enableInteractions:a,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:d,idleTimeout:l,finalTimeout:f,childSpanTimeout:h,markBackgroundSpan:p,traceFetch:m,traceXHR:g,trackFetchStreamPerformance:_,shouldCreateSpanForRequest:v,enableHTTPTimings:L,ignoreResourceSpans:A,ignorePerformanceApiSpans:O,instrumentPageLoad:T,instrumentNavigation:C,detectRedirects:M,linkPreviousTrace:x,consistentTraceSampling:R,onRequestSpanStart:P}={...Zk,...e};let k,F;function X(U,J,N=!0){const G=J.op==="pageload",B=d?d(J):J,re=B.attributes||{};if(J.name!==B.name&&(re[tt]="custom",B.attributes=re),!N){const Me=Dn();Bn({...B,startTime:Me}).end(Me);return}t.name=B.name,t.source=re[tt];const ce=th(B,{idleTimeout:l,finalTimeout:f,childSpanTimeout:h,disableAutoFinish:G,beforeSpanEnd:Me=>{k?.(),Nv(Me,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:A,ignorePerformanceApiSpans:O}),vd(U,void 0);const ke=Q(),Ke=ke.getPropagationContext();ke.setPropagationContext({...Ke,traceId:ce.spanContext().traceId,sampled:Fn(ce),dsc:gt(Me)})}});vd(U,ce);function Ae(){n&&["interactive","complete"].includes(n.readyState)&&U.emit("idleSpanEnableAutoFinish",ce)}G&&n&&(n.addEventListener("readystatechange",()=>{Ae()}),Ae())}return{name:Kk,setup(U){if(zf(),k=Tv({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:U}),r&&ew(),i&&Wv(),o&&q.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?xv():s&&Iv(),a&&kv(),M&&n){const N=()=>{F=xe()};addEventListener("click",N,{capture:!0}),addEventListener("keydown",N,{capture:!0,passive:!0})}function J(){const N=ci(U);N&&!Z(N).timestamp&&(ne&&y.log(`[Tracing] Finishing current active span with op: ${Z(N).op}`),N.setAttribute(ks,"cancelled"),N.end())}U.on("startNavigationSpan",(N,G)=>{if(H()!==U)return;if(G?.isRedirect){ne&&y.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),X(U,{op:"navigation.redirect",...N},!1);return}J(),Le().setPropagationContext({traceId:Wt(),sampleRand:Math.random()});const B=Q();B.setPropagationContext({traceId:Wt(),sampleRand:Math.random()}),B.setSDKProcessingMetadata({normalizedRequest:void 0}),X(U,{op:"navigation",...N})}),U.on("startPageLoadSpan",(N,G={})=>{if(H()!==U)return;J();const B=G.sentryTrace||Ed("sentry-trace"),re=G.baggage||Ed("baggage"),ce=Df(B,re),Ae=Q();Ae.setPropagationContext(ce),Ae.setSDKProcessingMetadata({normalizedRequest:Uc()}),X(U,{op:"pageload",...N})})},afterAllSetup(U){let J=Pn();if(x!=="off"&&Vk(U,{linkPreviousTrace:x,consistentTraceSampling:R}),W.location){if(T){const N=Be();zm(U,{name:W.location.pathname,startTime:N?N/1e3:void 0,attributes:{[tt]:"url",[Se]:"auto.pageload.browser"}})}C&&go(({to:N,from:G})=>{if(G===void 0&&J?.indexOf(N)!==-1){J=void 0;return}J=void 0;const B=Hh(N),re=ci(U),ce=re&&M&&tC(re,F);jm(U,{name:B?.pathname||W.location.pathname,attributes:{[tt]:"url",[Se]:"auto.navigation.browser"}},{url:N,isRedirect:ce})})}p&&zk(),a&&eC(U,l,f,h,t),r&&rw(),$m(U,{traceFetch:m,traceXHR:g,trackFetchStreamPerformance:_,tracePropagationTargets:U.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:v,enableHTTPTimings:L,onRequestSpanStart:P})}}};function zm(e,t,n){e.emit("startPageLoadSpan",t,n),Q().setTransactionName(t.name);const r=ci(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function jm(e,t,n){const{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});const s=Q();return s.setTransactionName(t.name),r&&!i&&s.setSDKProcessingMetadata({normalizedRequest:{...Uc(),url:r}}),ci(e)}function Ed(e){return W.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function eC(e,t,n,r,i){const s=W.document;let o;const a=()=>{const c="ui.action.click",u=ci(e);if(u){const d=Z(u).op;if(["navigation","pageload"].includes(d)){ne&&y.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(ks,"interactionInterrupted"),o.end(),o=void 0),!i.name){ne&&y.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}o=th({name:i.name,op:c,attributes:{[tt]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};s&&addEventListener("click",a,{capture:!0})}const qm="_sentry_idleSpan";function ci(e){return e[qm]}function vd(e,t){Ye(e,qm,t)}const wd=.3;function tC(e,t){const n=Z(e),r=Dn(),i=n.start_timestamp;return!(r-i>wd||t&&r-t<=wd)}function vr(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function nC(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=vr(n);return i=>r.then(s=>i(s.transaction(t,"readwrite").objectStore(t)))}function gu(e){return vr(e.getAllKeys())}function rC(e,t,n){return e(r=>gu(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.max(...i,0)+1),vr(r.transaction)}))}function iC(e,t,n){return e(r=>gu(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.min(...i,0)-1),vr(r.transaction)}))}function sC(e){return e(t=>gu(t).then(n=>{const r=n[0];if(r!=null)return vr(t.get(r)).then(i=>(t.delete(r),vr(t.transaction).then(()=>i)))}))}function oC(e){let t;function n(){return t==null&&(t=nC(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const i=await As(r);await rC(n(),i,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const i=await As(r);await iC(n(),i,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await sC(n());if(r)return X_(r)}catch{}}}}function aC(e){return t=>{const n=e({...t,createStore:oC});return W.addEventListener("online",async r=>{await n.flush()}),n}}function cC(e=Jc){return aC(gb(e))}const Td=1e6,Es=String(0),uC="main",Ks=W.navigator;let Vm="",Xm="",Ym="",nc=Ks?.userAgent||"",Jm="";const lC=Ks?.language||Ks?.languages?.[0]||"";function dC(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const Id=Ks?.userAgentData;dC(Id)&&Id.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(Vm=e.platform||"",Ym=e.architecture||"",Jm=e.model||"",Xm=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];nc=`${t.brand} ${t.version}`}}).catch(e=>{});function fC(e){return!("thread_metadata"in e)}function hC(e){return fC(e)?gC(e):e}function pC(e){const t=e.contexts?.trace?.trace_id;return typeof t=="string"&&t.length!==32&&ne&&y.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function mC(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const i=pC(r),s=hC(n),o=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:xe()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:xe()*1e3;return{event_id:e,timestamp:new Date(o).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||io,runtime:{name:"javascript",version:W.navigator.userAgent},os:{name:Vm,version:Xm,build_number:nc},device:{locale:lC,model:Jm,manufacturer:nc,architecture:Ym,is_emulator:!1},debug_meta:{images:bC(n.resources)},profile:s,transactions:[{name:r.transaction||"",id:r.event_id||je(),trace_id:i,active_thread_id:Es,relative_start_ns:"0",relative_end_ns:((a-o)*1e6).toFixed(0)}]}}function Km(e){return Z(e).op==="pageload"}function gC(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Es]:{name:uC}}},i=e.samples[0];if(!i)return r;const s=i.timestamp,o=Be(),a=typeof performance.timeOrigin=="number"?performance.timeOrigin:o||0,c=a-(o||a);return e.samples.forEach((u,d)=>{if(u.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[d]={elapsed_since_start_ns:((u.timestamp+c-s)*Td).toFixed(0),stack_id:t,thread_id:Es};return}let l=e.stacks[u.stackId];const f=[];for(;l;){f.push(l.frameId);const p=e.frames[l.frameId];p&&r.frames[l.frameId]===void 0&&(r.frames[l.frameId]={function:p.name,abs_path:typeof p.resourceId=="number"?e.resources[p.resourceId]:void 0,lineno:p.line,colno:p.column}),l=l.parentId===void 0?void 0:e.stacks[l.parentId]}const h={elapsed_since_start_ns:((u.timestamp+c-s)*Td).toFixed(0),stack_id:n,thread_id:Es};r.stacks[n]=f,r.samples[d]=h,n++}),r}function _C(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function yC(e){const t=[];return Mn(e,(n,r)=>{if(r==="transaction")for(let i=1;i<n.length;i++)n[i]?.contexts?.profile?.profile_id&&t.push(n[i])}),t}function bC(e){const r=H()?.getOptions()?.stackParser;return r?Ty(r,e):[]}function SC(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(ne&&y.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(ne&&y.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function EC(e){return e.samples.length<2?(ne&&y.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(ne&&y.log("[Profiling] Discarding profile because it contains no frames"),!1)}let Zm=!1;const Qm=3e4;function vC(e){return typeof e=="function"}function wC(){const e=W.Profiler;if(!vC(e)){ne&&y.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(Qm/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{ne&&(y.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),y.log("[Profiling] Disabling profiling for current user session.")),Zm=!0}}function xd(e){if(Zm)return ne&&y.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return ne&&y.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const n=H()?.getOptions();if(!n)return ne&&y.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return SC(r)?r?(r===!0?!0:Math.random()<r)?!0:(ne&&y.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(ne&&y.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(ne&&y.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function TC(e,t,n,r){return EC(n)?mC(e,t,n,r):null}const In=new Map;function IC(){return In.size}function xC(e){const t=In.get(e);return t&&In.delete(e),t}function kC(e,t){if(In.set(e,t),In.size>30){const n=In.keys().next().value;In.delete(n)}}function kd(e){let t;Km(e)&&(t=xe()*1e3);const n=wC();if(!n)return;ne&&y.log(`[Profiling] started profiling span: ${Z(e).description}`);const r=je();Q().setContext("profile",{profile_id:r,start_timestamp:t});async function i(){if(e&&n)return n.stop().then(c=>{if(s&&(W.clearTimeout(s),s=void 0),ne&&y.log(`[Profiling] stopped profiling of span: ${Z(e).description}`),!c){ne&&y.log(`[Profiling] profiler returned null profile for: ${Z(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}kC(r,c)}).catch(c=>{ne&&y.log("[Profiling] error while stopping profiler:",c)})}let s=W.setTimeout(()=>{ne&&y.log("[Profiling] max profile duration elapsed, stopping profiling for:",Z(e).description),i()},Qm);const o=e.end.bind(e);function a(){return e?(i().then(()=>{o()},()=>{o()}),e):o()}e.end=a}const CC="BrowserProfiling",RC=()=>({name:CC,setup(e){const t=Pe(),n=t&&Oe(t);n&&Km(n)&&xd(n)&&kd(n),e.on("spanStart",r=>{r===Oe(r)&&xd(r)&&kd(r)}),e.on("beforeEnvelope",r=>{if(!IC())return;const i=yC(r);if(!i.length)return;const s=[];for(const o of i){const a=o?.contexts,c=a?.profile?.profile_id,u=a?.profile?.start_timestamp;if(typeof c!="string"){ne&&y.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!c){ne&&y.log("[Profiling] cannot find profile for a span without a profile context");continue}a?.profile&&delete a.profile;const d=xC(c);if(!d){ne&&y.log(`[Profiling] Could not retrieve profile for span: ${c}`);continue}const l=TC(c,u,d,o);l&&s.push(l)}_C(r,s)})}}),AC=RC,MC="SpotlightBrowser",NC=(e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:MC,setup:()=>{ne&&y.log("Using Sidecar URL",t)},processEvent:n=>PC(n)?null:n,afterAllSetup:n=>{OC(n,t)}}};function OC(e,t){const n=Vc("fetch");let r=0;e.on("beforeEnvelope",i=>{if(r>3){y.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:As(i),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(s=>{s.status>=200&&s.status<400&&(r=0)},s=>{r++,y.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",s)})})}const LC=NC;function PC(e){return!!(e.type==="transaction"&&e.spans&&e.contexts?.trace&&e.contexts.trace.op==="ui.action.click"&&e.spans.some(({description:t})=>t?.includes("#sentry-spotlight")))}const DC=()=>({name:"LaunchDarkly",processEvent(e,t,n){return Si(e)}});function FC(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{lr(e,t.value),dr(e,t.value)}}}const HC=()=>({name:"OpenFeature",processEvent(e,t,n){return Si(e)}});class BC{after(t,n){lr(n.flagKey,n.value),dr(n.flagKey,n.value)}error(t,n,r){lr(t.flagKey,t.defaultValue),dr(t.flagKey,t.defaultValue)}}const UC=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;ze(t,"isEnabled",$C)},processEvent(t,n,r){return Si(t)}});function $C(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?(lr(n,r),dr(n,r)):ne&&y.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const WC=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",n=>{lr(n.gate.name,n.gate.value),dr(n.gate.name,n.gate.value)})},processEvent(t,n,r){return Si(t)}});async function GC(){const e=H();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";try{await fetch("https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7",{body:"{}",method:"POST",mode:"cors",credentials:"omit"})}catch{return"sentry-unreachable"}}const zC="WebWorker",jC=({worker:e})=>({name:zC,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(t=>Cd(t))},addWorker:t=>Cd(t)});function Cd(e){e.addEventListener("message",t=>{VC(t.data)&&(t.stopImmediatePropagation(),ne&&y.log("Sentry debugId web worker message received",t.data),W._sentryDebugIds={...t.data._sentryDebugIds,...W._sentryDebugIds})})}function qC({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0})}function VC(e){return Ut(e)&&e._sentryMessage===!0&&"_sentryDebugIds"in e&&(Ut(e._sentryDebugIds)||e._sentryDebugIds===void 0)}const XC=Object.freeze(Object.defineProperty({__proto__:null,BrowserClient:up,OpenFeatureIntegrationHook:BC,SDK_VERSION:Dt,SEMANTIC_ATTRIBUTE_SENTRY_OP:rt,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:Se,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:ro,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:tt,Scope:mt,WINDOW:W,addBreadcrumb:Ct,addEventProcessor:ah,addIntegration:Ca,breadcrumbsIntegration:Op,browserApiErrorsIntegration:Lp,browserProfilingIntegration:AC,browserSessionIntegration:Pp,browserTracingIntegration:Qk,buildLaunchDarklyFlagUsedHandler:FC,captureConsoleIntegration:Vb,captureEvent:bi,captureException:Nn,captureFeedback:Uh,captureMessage:Ls,captureSession:ka,chromeStackLineParser:Cp,close:$y,consoleLoggingIntegration:JS,contextLinesIntegration:kT,continueTrace:uy,createTransport:vh,createUserFeedbackEnvelope:Iw,dedupeIntegration:Nh,defaultRequestInstrumentationOptions:mu,defaultStackLineParsers:Ap,defaultStackParser:Mp,diagnoseSdkConnectivity:GC,endSession:Rc,eventFiltersIntegration:kh,eventFromException:ap,eventFromMessage:cp,exceptionFromError:lo,extraErrorDataIntegration:nS,featureFlagsIntegration:BS,feedbackAsyncIntegration:TE,feedbackIntegration:Rl,feedbackSyncIntegration:Rl,flush:Uy,forceLoad:iT,functionToStringIntegration:xh,geckoStackLineParser:Rp,getActiveSpan:Pe,getClient:H,getCurrentScope:Q,getDefaultIntegrations:Up,getFeedback:L0,getGlobalScope:no,getIsolationScope:Le,getReplay:_k,getRootSpan:Oe,getSpanDescendants:Yr,getSpanStatusFromHttpCode:Af,getTraceData:Mc,globalHandlersIntegration:Dp,graphqlClientIntegration:PT,httpClientIntegration:hT,httpContextIntegration:Hp,inboundFiltersIntegration:Ch,init:rT,instrumentOutgoingRequests:$m,instrumentSupabaseClient:Dh,isEnabled:oh,isInitialized:Wy,lastEventId:sh,launchDarklyIntegration:DC,lazyLoadIntegration:sp,linkedErrorsIntegration:Bp,logger:ME,makeBrowserOfflineTransport:cC,makeFetchTransport:Jc,makeMultiplexedTransport:bb,moduleMetadataIntegration:Gb,onLoad:sT,openFeatureIntegration:HC,opera10StackLineParser:Ew,opera11StackLineParser:Tw,parameterize:Ih,registerSpanErrorInstrumentation:zf,registerWebWorker:qC,replayCanvasIntegration:Dk,replayIntegration:pk,reportingObserverIntegration:lT,rewriteFramesIntegration:dS,sendFeedback:jh,setContext:ih,setCurrentClient:_h,setExtra:Dy,setExtras:Py,setHttpStatus:ni,setMeasurement:Zf,setTag:Hy,setTags:Fy,setUser:By,showReportDialog:oT,spanToBaggageHeader:B_,spanToJSON:Z,spanToTraceHeader:Uf,spotlightBrowserIntegration:LC,startBrowserTracingNavigationSpan:jm,startBrowserTracingPageLoadSpan:zm,startInactiveSpan:Bn,startNewTrace:dy,startSession:xa,startSpan:oo,startSpanManual:cy,statsigIntegration:WC,supabaseIntegration:TS,suppressTracing:ly,thirdPartyErrorFilterIntegration:LS,unleashIntegration:UC,updateSpanName:O_,webWorkerIntegration:jC,winjsStackLineParser:yw,withActiveSpan:_i,withIsolationScope:__,withScope:ot,zodErrorsIntegration:OS},Symbol.toStringTag,{value:"Module"})),To=e=>{typeof window<"u"&&window.Sentry&&e(XC)},{useEffect:YC}=await Je("react"),eg=(e,t)=>YC(()=>{const n=e().catch(r=>{console.error("AsyncEffect error: ",r),To(i=>i.captureException("AsyncEffect error: "+r.message,{extra:r}))});return function(){n.then(r=>{typeof r=="function"&&r()})}},t),{createContext:JC,useMemo:KC,useRef:ZC,useState:QC}=await Je("react"),tg=JC(null),lM=e=>{const{writeKey:t,userId:n,traits:r,children:i}=e,s=ZC(null),[o,a]=QC(!1);eg(async()=>{if(!t){console.log("[Analytics] No writeKey provided");return}const u=navigator.userAgent;if(Fg(u)){console.log("[Analytics] Skipping load: bot detected");return}try{const{AnalyticsBrowser:l}=await Rg(async()=>{const{AnalyticsBrowser:f}=await import("../index-Dd7Rwv7H.js").then(h=>h.q);return{AnalyticsBrowser:f}},__vite__mapDeps([0,1,2,3,4]));s.current=l.load({writeKey:t}),n&&s.current.identify(n,r),a(!0)}catch(l){console.error("[Analytics] Failed to initialize:",l),s.current=null}},[t,n,r]);const c=KC(()=>!s.current||!o?{isInitialized:!1,track:()=>{},identify:()=>{},page:()=>{}}:{isInitialized:!0,track:(u,d)=>{s.current?.track(u,d)},identify:(u,d)=>{s.current?.identify(u,d)},page:(u,d)=>{s.current?.page(u,d)}},[o]);return hf.jsx(tg.Provider,{value:c,children:i})},{createContext:eR}=await Je("react"),ng=eR(null);function wt(e,t){var n=t&&t.cache?t.cache:aR,r=t&&t.serializer?t.serializer:sR,i=t&&t.strategy?t.strategy:nR;return i(e,{cache:n,serializer:r})}function tR(e){return e==null||typeof e=="number"||typeof e=="boolean"}function rg(e,t,n,r){var i=tR(r)?r:n(r),s=t.get(i);return typeof s>"u"&&(s=e.call(this,r),t.set(i,s)),s}function ig(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),s=t.get(i);return typeof s>"u"&&(s=e.apply(this,r),t.set(i,s)),s}function _u(e,t,n,r,i){return n.bind(t,e,r,i)}function nR(e,t){var n=e.length===1?rg:ig;return _u(e,this,n,t.cache.create(),t.serializer)}function rR(e,t){return _u(e,this,ig,t.cache.create(),t.serializer)}function iR(e,t){return _u(e,this,rg,t.cache.create(),t.serializer)}var sR=function(){return JSON.stringify(arguments)},oR=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),aR={create:function(){return new oR}},Tt={variadic:rR,monadic:iR},se;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(se||(se={}));var _e;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(_e||(_e={}));var wr;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(wr||(wr={}));function Rd(e){return e.type===_e.literal}function cR(e){return e.type===_e.argument}function sg(e){return e.type===_e.number}function og(e){return e.type===_e.date}function ag(e){return e.type===_e.time}function cg(e){return e.type===_e.select}function ug(e){return e.type===_e.plural}function uR(e){return e.type===_e.pound}function lg(e){return e.type===_e.tag}function dg(e){return!!(e&&typeof e=="object"&&e.type===wr.number)}function rc(e){return!!(e&&typeof e=="object"&&e.type===wr.dateTime)}var fg=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,lR=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function dR(e){var t={};return e.replace(lR,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var fR=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function hR(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(fR).filter(function(f){return f.length>0}),n=[],r=0,i=t;r<i.length;r++){var s=i[r],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var a=o[0],c=o.slice(1),u=0,d=c;u<d.length;u++){var l=d[u];if(l.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:c})}return n}function pR(e){return e.replace(/^(.*?)-/,"")}var Ad=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,hg=/^(@+)?(\+|#+)?[rs]?$/g,mR=/(\*)(0+)|(#+)(0+)|(0+)/g,pg=/^(0+)$/;function Md(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(hg,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function mg(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function gR(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!pg.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Nd(e){var t={},n=mg(e);return n||t}function _R(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=pR(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=$($($({},t),{notation:"scientific"}),i.options.reduce(function(c,u){return $($({},c),Nd(u))},{}));continue;case"engineering":t=$($($({},t),{notation:"engineering"}),i.options.reduce(function(c,u){return $($({},c),Nd(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(mR,function(c,u,d,l,f,h){if(u)t.minimumIntegerDigits=d.length;else{if(l&&f)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(pg.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Ad.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ad,function(c,u,d,l,f,h){return d==="*"?t.minimumFractionDigits=u.length:l&&l[0]==="#"?t.maximumFractionDigits=l.length:f&&h?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+h.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var s=i.options[0];s==="w"?t=$($({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=$($({},t),Md(s)));continue}if(hg.test(i.stem)){t=$($({},t),Md(i.stem));continue}var o=mg(i.stem);o&&(t=$($({},t),o));var a=gR(i.stem);a&&(t=$($({},t),a))}return t}var Qi={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function yR(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var s=0;r+1<e.length&&e.charAt(r+1)===i;)s++,r++;var o=1+(s&1),a=s<2?1:3+(s>>1),c="a",u=bR(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=c;for(;o-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function bR(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Qi[r||""]||Qi[n||""]||Qi["".concat(n,"-001")]||Qi["001"];return i[0]}var na,SR=new RegExp("^".concat(fg.source,"*")),ER=new RegExp("".concat(fg.source,"*$"));function oe(e,t){return{start:e,end:t}}var vR=!!String.prototype.startsWith&&"_a".startsWith("a",1),wR=!!String.fromCodePoint,TR=!!Object.fromEntries,IR=!!String.prototype.codePointAt,xR=!!String.prototype.trimStart,kR=!!String.prototype.trimEnd,CR=!!Number.isSafeInteger,RR=CR?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ic=!0;try{var AR=_g("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ic=((na=AR.exec("a"))===null||na===void 0?void 0:na[0])==="a"}catch{ic=!1}var Od=vR?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},sc=wR?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,s=0,o;i>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r},Ld=TR?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var s=i[r],o=s[0],a=s[1];n[o]=a}return n},gg=IR?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),s;return i<55296||i>56319||n+1===r||(s=t.charCodeAt(n+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},MR=xR?function(t){return t.trimStart()}:function(t){return t.replace(SR,"")},NR=kR?function(t){return t.trimEnd()}:function(t){return t.replace(ER,"")};function _g(e,t){return new RegExp(e,t)}var oc;if(ic){var Pd=_g("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");oc=function(t,n){var r;Pd.lastIndex=n;var i=Pd.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else oc=function(t,n){for(var r=[];;){var i=gg(t,n);if(i===void 0||yg(i)||DR(i))break;r.push(i),n+=i>=65536?2:1}return sc.apply(void 0,r)};var OR=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,r);if(o.err)return o;i.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:_e.pound,location:oe(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(se.UNMATCHED_CLOSING_TAG,oe(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&ac(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:_e.literal,value:"<".concat(i,"/>"),location:oe(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,n,!0);if(s.err)return s;var o=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ac(this.char()))return this.error(se.INVALID_TAG,oe(a,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(se.UNMATCHED_CLOSING_TAG,oe(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:_e.tag,value:i,children:o,location:oe(r,this.clonePosition())},err:null}:this.error(se.INVALID_TAG,oe(a,this.clonePosition())))}else return this.error(se.UNCLOSED_TAG,oe(r,this.clonePosition()))}else return this.error(se.INVALID_TAG,oe(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&PR(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var s=this.tryParseQuote(n);if(s){i+=s;continue}var o=this.tryParseUnquoted(t,n);if(o){i+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var c=oe(r,this.clonePosition());return{val:{type:_e.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!LR(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return sc.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),sc(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(se.EXPECT_ARGUMENT_CLOSING_BRACE,oe(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(se.EMPTY_ARGUMENT,oe(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(se.MALFORMED_ARGUMENT,oe(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(se.EXPECT_ARGUMENT_CLOSING_BRACE,oe(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:_e.argument,value:i,location:oe(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(se.EXPECT_ARGUMENT_CLOSING_BRACE,oe(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(se.MALFORMED_ARGUMENT,oe(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=oc(this.message,n),i=n+r.length;this.bumpTo(i);var s=this.clonePosition(),o=oe(t,s);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,i){var s,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(a){case"":return this.error(se.EXPECT_ARGUMENT_TYPE,oe(o,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),l=this.parseSimpleArgStyleIfPossible();if(l.err)return l;var f=NR(l.val);if(f.length===0)return this.error(se.EXPECT_ARGUMENT_STYLE,oe(this.clonePosition(),this.clonePosition()));var h=oe(d,this.clonePosition());u={style:f,styleLocation:h}}var p=this.tryParseArgumentClose(i);if(p.err)return p;var m=oe(i,this.clonePosition());if(u&&Od(u?.style,"::",0)){var g=MR(u.style.slice(2));if(a==="number"){var l=this.parseNumberSkeletonFromString(g,u.styleLocation);return l.err?l:{val:{type:_e.number,value:r,location:m,style:l.val},err:null}}else{if(g.length===0)return this.error(se.EXPECT_DATE_TIME_SKELETON,m);var _=g;this.locale&&(_=yR(g,this.locale));var f={type:wr.dateTime,pattern:_,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?dR(_):{}},v=a==="date"?_e.date:_e.time;return{val:{type:v,value:r,location:m,style:f},err:null}}}return{val:{type:a==="number"?_e.number:a==="date"?_e.date:_e.time,value:r,location:m,style:(s=u?.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var L=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(se.EXPECT_SELECT_ARGUMENT_OPTIONS,oe(L,$({},L)));this.bumpSpace();var A=this.parseIdentifierIfPossible(),O=0;if(a!=="select"&&A.value==="offset"){if(!this.bumpIf(":"))return this.error(se.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,oe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var l=this.tryParseDecimalInteger(se.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,se.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(l.err)return l;this.bumpSpace(),A=this.parseIdentifierIfPossible(),O=l.val}var T=this.tryParsePluralOrSelectOptions(t,a,n,A);if(T.err)return T;var p=this.tryParseArgumentClose(i);if(p.err)return p;var C=oe(i,this.clonePosition());return a==="select"?{val:{type:_e.select,value:r,options:Ld(T.val),location:C},err:null}:{val:{type:_e.plural,value:r,options:Ld(T.val),offset:O,pluralType:a==="plural"?"cardinal":"ordinal",location:C},err:null}}default:return this.error(se.INVALID_ARGUMENT_TYPE,oe(o,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(se.EXPECT_ARGUMENT_CLOSING_BRACE,oe(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(se.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,oe(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=hR(t)}catch{return this.error(se.INVALID_NUMBER_SKELETON,n)}return{val:{type:wr.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?_R(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var s,o=!1,a=[],c=new Set,u=i.value,d=i.location;;){if(u.length===0){var l=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(se.EXPECT_PLURAL_ARGUMENT_SELECTOR,se.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;d=oe(l,this.clonePosition()),u=this.message.slice(l.offset,this.offset())}else break}if(c.has(u))return this.error(n==="select"?se.DUPLICATE_SELECT_ARGUMENT_SELECTOR:se.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?se.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:se.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,oe(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,n,r);if(p.err)return p;var m=this.tryParseArgumentClose(h);if(m.err)return m;a.push([u,{value:p.val,location:oe(h,this.clonePosition())}]),c.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,d=s.location}return a.length===0?this.error(n==="select"?se.EXPECT_SELECT_ARGUMENT_SELECTOR:se.EXPECT_PLURAL_ARGUMENT_SELECTOR,oe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(se.MISSING_OTHER_CLAUSE,oe(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var s=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,o=o*10+(a-48),this.bump();else break}var c=oe(i,this.clonePosition());return s?(o*=r,RR(o)?{val:o,err:null}:this.error(n,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=gg(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Od(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&yg(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function ac(e){return e>=97&&e<=122||e>=65&&e<=90}function LR(e){return ac(e)||e===47}function PR(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function yg(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function DR(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function cc(e){e.forEach(function(t){if(delete t.location,cg(t)||ug(t))for(var n in t.options)delete t.options[n].location,cc(t.options[n].value);else sg(t)&&dg(t.style)||(og(t)||ag(t))&&rc(t.style)?delete t.style.location:lg(t)&&cc(t.children)})}function FR(e,t){t===void 0&&(t={}),t=$({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new OR(e,t).parse();if(n.err){var r=SyntaxError(se[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||cc(n.val),n.val}var Rt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Rt||(Rt={}));var hn=function(e){yt(t,e);function t(n,r,i){var s=e.call(this,n)||this;return s.code=r,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Dd=function(e){yt(t,e);function t(n,r,i,s){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Rt.INVALID_VALUE,s)||this}return t}(hn),HR=function(e){yt(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Rt.INVALID_VALUE,i)||this}return t}(hn),BR=function(e){yt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Rt.MISSING_VALUE,r)||this}return t}(hn),$e;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})($e||($e={}));function UR(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==$e.literal||n.type!==$e.literal?t.push(n):r.value+=n.value,t},[])}function $R(e){return typeof e=="function"}function vs(e,t,n,r,i,s,o){if(e.length===1&&Rd(e[0]))return[{type:$e.literal,value:e[0].value}];for(var a=[],c=0,u=e;c<u.length;c++){var d=u[c];if(Rd(d)){a.push({type:$e.literal,value:d.value});continue}if(uR(d)){typeof s=="number"&&a.push({type:$e.literal,value:n.getNumberFormat(t).format(s)});continue}var l=d.value;if(!(i&&l in i))throw new BR(l,o);var f=i[l];if(cR(d)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),a.push({type:typeof f=="string"?$e.literal:$e.object,value:f});continue}if(og(d)){var h=typeof d.style=="string"?r.date[d.style]:rc(d.style)?d.style.parsedOptions:void 0;a.push({type:$e.literal,value:n.getDateTimeFormat(t,h).format(f)});continue}if(ag(d)){var h=typeof d.style=="string"?r.time[d.style]:rc(d.style)?d.style.parsedOptions:r.time.medium;a.push({type:$e.literal,value:n.getDateTimeFormat(t,h).format(f)});continue}if(sg(d)){var h=typeof d.style=="string"?r.number[d.style]:dg(d.style)?d.style.parsedOptions:void 0;h&&h.scale&&(f=f*(h.scale||1)),a.push({type:$e.literal,value:n.getNumberFormat(t,h).format(f)});continue}if(lg(d)){var p=d.children,m=d.value,g=i[m];if(!$R(g))throw new HR(m,"function",o);var _=vs(p,t,n,r,i,s),v=g(_.map(function(O){return O.value}));Array.isArray(v)||(v=[v]),a.push.apply(a,v.map(function(O){return{type:typeof O=="string"?$e.literal:$e.object,value:O}}))}if(cg(d)){var L=d.options[f]||d.options.other;if(!L)throw new Dd(d.value,f,Object.keys(d.options),o);a.push.apply(a,vs(L.value,t,n,r,i));continue}if(ug(d)){var L=d.options["=".concat(f)];if(!L){if(!Intl.PluralRules)throw new hn(`Intl.PluralRules is not available in this environment.
|
|
500
500
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
501
501
|
`,Rt.MISSING_INTL_API,o);var A=n.getPluralRules(t,{type:d.pluralType}).select(f-(d.offset||0));L=d.options[A]||d.options.other}if(!L)throw new Dd(d.value,f,Object.keys(d.options),o);a.push.apply(a,vs(L.value,t,n,r,i,f-(d.offset||0)));continue}}return UR(a)}function WR(e,t){return t?$($($({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=$($({},e[r]),t[r]||{}),n},{})):e}function GR(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=WR(e[r],t[r]),n},$({},e)):e}function ra(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function zR(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:wt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Ot([void 0],n,!1)))},{cache:ra(e.number),strategy:Tt.variadic}),getDateTimeFormat:wt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Ot([void 0],n,!1)))},{cache:ra(e.dateTime),strategy:Tt.variadic}),getPluralRules:wt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Ot([void 0],n,!1)))},{cache:ra(e.pluralRules),strategy:Tt.variadic})}}var bg=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var u=s.formatToParts(c);if(u.length===1)return u[0].value;var d=u.reduce(function(l,f){return!l.length||f.type!==$e.literal||typeof l[l.length-1]!="string"?l.push(f.value):l[l.length-1]+=f.value,l},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(c){return vs(s.ast,s.locales,s.formatters,s.formats,c,void 0,s.message)},this.resolvedOptions=function(){var c;return{locale:((c=s.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var a=Ag(o,["formatters"]);this.ast=e.__parse(t,$($({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=GR(e.formats,r),this.formatters=i&&i.formatters||zR(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=FR,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Ln;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Ln||(Ln={}));var Ri=function(e){yt(t,e);function t(n,r,i){var s=this,o=i?i instanceof Error?i:new Error(String(i)):void 0;return s=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
|
|
502
502
|
`).concat(o?`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../__federation_fn_import-BPa8h49G.js";import{b as o,C as t,G as r,T as h,d as i,_ as C,j as c,a as n,j as T,k as l,u,w as _,e as d}from"../emotion-react.browser.esm-C8ovg3zA.js";import"../emotion-use-insertion-effect-with-fallbacks.browser.esm-ZrBNnPxm.js";export{o as CacheProvider,t as ClassNames,r as Global,h as ThemeContext,i as ThemeProvider,C as __unsafe_useEmotionCache,c as createElement,n as css,T as jsx,l as keyframes,u as useTheme,_ as withEmotionCache,d as withTheme};
|