@dcl/explore-site 0.0.1-24138829632.commit-0946e16 → 0.0.1-24139497769.commit-1069c81

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.
Files changed (116) hide show
  1. package/assets/{HomePage-CbNrtXMa.js → HomePage-CP3D4i9c.js} +3 -3
  2. package/assets/{QueryClientProvider-DUSjZ_J_.js → QueryClientProvider-wu2IqrXs.js} +1 -1
  3. package/assets/{SensorsRounded-Ci-z6t1A.js → SensorsRounded-WVFgO4_x.js} +1 -1
  4. package/assets/{__federation_expose_App-BckrSixU.js → __federation_expose_App-MOR1BmrN.js} +1 -1
  5. package/assets/{__federation_fn_import-WDa0gv1I.js → __federation_fn_import-DHP1HS9A.js} +1 -1
  6. package/assets/__federation_shared_@dcl/{hooks-BmGk-LAU.js → hooks-B6YLUjAN.js} +3 -3
  7. package/assets/__federation_shared_@emotion/react-BJqnrTYH.js +1 -0
  8. package/assets/__federation_shared_@emotion/{styled-YrTPT9q1.js → styled-DJxepagK.js} +1 -1
  9. package/assets/{__federation_shared_decentraland-ui2-D5N7yacO.js → __federation_shared_decentraland-ui2-ZuMMDuwr.js} +4 -4
  10. package/assets/{__federation_shared_react-redux-DMak3BVq.js → __federation_shared_react-redux-wunxthN_.js} +1 -1
  11. package/assets/{__federation_shared_react-router-dom-CSW28ZSI.js → __federation_shared_react-router-dom-W4djHvIn.js} +1 -1
  12. package/assets/{__federation_shared_viem-DsDw7lUr.js → __federation_shared_viem-DarmY_kb.js} +1 -1
  13. package/assets/{__federation_shared_wagmi-h3zhLZbR.js → __federation_shared_wagmi-DWvj6H_x.js} +1 -1
  14. package/assets/{add-Ccyt7YRh.js → add-BCakEKbt.js} +1 -1
  15. package/assets/{all-wallets-BIOtzF11.js → all-wallets-CXkjwEqF.js} +1 -1
  16. package/assets/{app-store-BqACXnTM.js → app-store-BFVxlsNN.js} +1 -1
  17. package/assets/{apple-zIEkvR7h.js → apple-DXjZC7E3.js} +1 -1
  18. package/assets/{arrow-bottom-circle-BjCA11Rn.js → arrow-bottom-circle-DFJJmWcQ.js} +1 -1
  19. package/assets/{arrow-bottom-CxQ54WH1.js → arrow-bottom-pJS57nib.js} +1 -1
  20. package/assets/{arrow-left-CsFQBdFD.js → arrow-left-Cynzu9ZW.js} +1 -1
  21. package/assets/{arrow-right-jT5LSgqq.js → arrow-right-CGX20nmV.js} +1 -1
  22. package/assets/{arrow-top-CA_1oaHw.js → arrow-top-jzt266yO.js} +1 -1
  23. package/assets/{auto-track-UOggKKzv.js → auto-track-O_BrBwhe.js} +1 -1
  24. package/assets/{bank-81NjtLlm.js → bank-BMGgPrPK.js} +1 -1
  25. package/assets/{basic-CvR9b359.js → basic-CM6UVWAr.js} +1 -1
  26. package/assets/{browser-BjIqaPVu.js → browser-DnoUbi8M.js} +1 -1
  27. package/assets/{card-BJomEEgV.js → card-CPfzdBrQ.js} +1 -1
  28. package/assets/{ccip-DotuofV0.js → ccip-BIrr4QNJ.js} +1 -1
  29. package/assets/{checkmark-Cz0VZAkr.js → checkmark-8BBVS9mV.js} +1 -1
  30. package/assets/{checkmark-bold-blkVLUov.js → checkmark-bold-B-hOv8nD.js} +1 -1
  31. package/assets/{chevron-bottom-ClawczSo.js → chevron-bottom-B_y3oaup.js} +1 -1
  32. package/assets/{chevron-left-DfJ9r4mv.js → chevron-left-CjhHB4PY.js} +1 -1
  33. package/assets/{chevron-right-CrxmyW0K.js → chevron-right-DSPiRdQp.js} +1 -1
  34. package/assets/{chevron-top-BVIfb-H3.js → chevron-top-DzuxMZzU.js} +1 -1
  35. package/assets/{chrome-store-Cb5xVI0B.js → chrome-store-BxqIkfMp.js} +1 -1
  36. package/assets/{clock-Bx-Kyhh-.js → clock-DANY2jZR.js} +1 -1
  37. package/assets/{close-DOjpWTZi.js → close-CQGRZC4E.js} +1 -1
  38. package/assets/{coinPlaceholder-BqONZM6Q.js → coinPlaceholder-Bj_cgZAp.js} +1 -1
  39. package/assets/{compass-ByyIpxD6.js → compass-C6LtdRSt.js} +1 -1
  40. package/assets/{copy-BOu2-Xgv.js → copy-DcH6gZ_z.js} +1 -1
  41. package/assets/{core-BGxUaCGc.js → core-CzvI5AHq.js} +3 -3
  42. package/assets/{createClient-CSnZgvsb.js → createClient-CCWiffBP.js} +1 -1
  43. package/assets/{cursor-BqYz2L6D.js → cursor-UwkCsJ2a.js} +1 -1
  44. package/assets/{cursor-transparent-CWCRGDtx.js → cursor-transparent-BwBcOE8i.js} +1 -1
  45. package/assets/{desktop-Cd_vx0kT.js → desktop-D-Y36QoS.js} +1 -1
  46. package/assets/{disconnect-D5AICJhj.js → disconnect-Rv8z66NN.js} +1 -1
  47. package/assets/{discord-26Vqbq7c.js → discord-CCWSVMiz.js} +1 -1
  48. package/assets/{emotion-react.browser.esm-5OnyV0Sh.js → emotion-react.browser.esm-CVN2FXZ4.js} +1 -1
  49. package/assets/{emotion-use-insertion-effect-with-fallbacks.browser.esm-B75LdcJS.js → emotion-use-insertion-effect-with-fallbacks.browser.esm-CmaUBdeL.js} +1 -1
  50. package/assets/{etherscan--DKVcYrP.js → etherscan-DbjOsyUL.js} +1 -1
  51. package/assets/{exclamation-triangle-DOsYf3fQ.js → exclamation-triangle-CpUr7g91.js} +1 -1
  52. package/assets/{extension-DEaO3Zvk.js → extension-BfEjbpkB.js} +1 -1
  53. package/assets/{external-link-DcpG6wpM.js → external-link-DkrVV6h_.js} +1 -1
  54. package/assets/{facebook-ByV0OclL.js → facebook-C_vFokNe.js} +1 -1
  55. package/assets/{farcaster-DI6fsEyh.js → farcaster-N_SOvjsu.js} +1 -1
  56. package/assets/{filters-Djn1aDVs.js → filters-CriWZ1X8.js} +1 -1
  57. package/assets/{github-B3p0LLP5.js → github-Pf6KfVkt.js} +1 -1
  58. package/assets/{google-ae7qga4R.js → google-CX5egUeg.js} +1 -1
  59. package/assets/{help-circle-BmzUA_Be.js → help-circle-Bg9wySiB.js} +1 -1
  60. package/assets/{id-2hYEZqNH.js → id-CT3sHstQ.js} +1 -1
  61. package/assets/{image-mDqi4ffo.js → image-BeRTCwCL.js} +1 -1
  62. package/assets/{index-BzXoRVC1.js → index-BJlYfD1T.js} +1 -1
  63. package/assets/{index-D_fJMF1A.js → index-BwGE7VFa.js} +1 -1
  64. package/assets/{index-DGVKdsht.js → index-C5uwZBLu.js} +1 -1
  65. package/assets/{index-9zCVakoE.js → index-CEXIX8YP.js} +1 -1
  66. package/assets/{index-OQ3TYt4p.js → index-DOSLaa4d.js} +1 -1
  67. package/assets/{index-BKLT1eit.js → index-DSdP4T4T.js} +1 -1
  68. package/assets/index-Dy0yjznp.js +1 -1
  69. package/assets/{index-Ctl4brHr.js → index-NxahoDGS.js} +2 -2
  70. package/assets/index-VfkM29PH.js +1 -1
  71. package/assets/{index-CdOcIHYV.js → index-kumR_dwu.js} +3 -3
  72. package/assets/{index.es-D_4_VpXc.js → index.es-3vuqm7DP.js} +3 -3
  73. package/assets/{info-Bhf5PLdi.js → info-CqJ_nQxF.js} +1 -1
  74. package/assets/{info-circle-CZ5iih32.js → info-circle-IwWDU6qu.js} +1 -1
  75. package/assets/jsx-runtime-B1l0k91v.js +1 -1
  76. package/assets/{lightbulb-CA3e26a0.js → lightbulb-DTyI7zwy.js} +1 -1
  77. package/assets/{localBatchGatewayRequest-vExM5jac.js → localBatchGatewayRequest-CVa1PSOH.js} +1 -1
  78. package/assets/{mail-BktjMbEk.js → mail-CoON8_yY.js} +1 -1
  79. package/assets/{mobile-zfEM0JzU.js → mobile-hiVL2smK.js} +1 -1
  80. package/assets/{more-Dg45xuT9.js → more-CEWjr51n.js} +1 -1
  81. package/assets/{network-placeholder-duQhExzj.js → network-placeholder-B93dK-Wv.js} +1 -1
  82. package/assets/{nftPlaceholder-C3kMYu-p.js → nftPlaceholder-Cv1W78Cm.js} +1 -1
  83. package/assets/{off-Cz636L92.js → off-CfBcNJQq.js} +1 -1
  84. package/assets/{play-store-Cch0eiCp.js → play-store-baeJ6QUq.js} +1 -1
  85. package/assets/{plus-orAhHwVf.js → plus-Cm_DeSMx.js} +1 -1
  86. package/assets/{preload-helper-BrYcp76J.js → preload-helper-CIxxV7Wp.js} +1 -1
  87. package/assets/{qr-code-7plug-hj.js → qr-code-BgEAZWNl.js} +1 -1
  88. package/assets/{recycle-horizontal-B6ivY9Sz.js → recycle-horizontal-JBLMwMyk.js} +1 -1
  89. package/assets/{refresh-CqfvjhXq.js → refresh-D8wfv--n.js} +1 -1
  90. package/assets/remoteEntry.js +1 -1
  91. package/assets/{reown-logo-DGoAljI9.js → reown-logo-DMTh3d1z.js} +1 -1
  92. package/assets/{search-nNK2K8mD.js → search-BTDiU-Z-.js} +1 -1
  93. package/assets/{secp256k1-D6s48BOl.js → secp256k1-D3oIaUVU.js} +1 -1
  94. package/assets/{send-BPz2SBvc.js → send-CnQaiEuX.js} +1 -1
  95. package/assets/{swapHorizontal-TvVHlgjl.js → swapHorizontal-Dv0Bg9L0.js} +1 -1
  96. package/assets/{swapHorizontalBold-BTw_LG1-.js → swapHorizontalBold-CQPcpjgH.js} +1 -1
  97. package/assets/{swapHorizontalMedium-C3jJnFs_.js → swapHorizontalMedium-DV4uRJLw.js} +1 -1
  98. package/assets/{swapHorizontalRoundedBold-nTFwdVeT.js → swapHorizontalRoundedBold-Dx468EVm.js} +1 -1
  99. package/assets/{swapVertical-CHKvPR_7.js → swapVertical-LooYJDwN.js} +1 -1
  100. package/assets/{telegram-C552IoSr.js → telegram-JgoU7_hj.js} +1 -1
  101. package/assets/{three-dots-Nyfa4nYF.js → three-dots-BRI9-Dly.js} +1 -1
  102. package/assets/{twitch-7SJKGXSa.js → twitch-D4ap364K.js} +1 -1
  103. package/assets/{twitterIcon-BBg9ypIU.js → twitterIcon-Cf2xFTkU.js} +1 -1
  104. package/assets/{uid-CX4a_w4r.js → uid-CuZf7FK0.js} +3 -3
  105. package/assets/{verify-filled-BAdDAZxZ.js → verify-filled-BT2Xhbin.js} +1 -1
  106. package/assets/{verify-BwQ9FKM1.js → verify-qGEcCbo_.js} +1 -1
  107. package/assets/{w3m-modal-BqXXR9rX.js → w3m-modal-73pLXDms.js} +1 -1
  108. package/assets/{wallet-DJsa1d3M.js → wallet-CpcVYmnb.js} +1 -1
  109. package/assets/{wallet-placeholder-DPIkQ5vM.js → wallet-placeholder-CEkTf9LX.js} +1 -1
  110. package/assets/{walletconnect-osdnzzVU.js → walletconnect-BSErawNo.js} +1 -1
  111. package/assets/{warning-circle-BQ9uHGTL.js → warning-circle-BOABXvvE.js} +1 -1
  112. package/assets/{webSocket-CIn5Ftst.js → webSocket-BvPqYrD7.js} +1 -1
  113. package/assets/{x-5oycQ-0v.js → x-BRQsrMF4.js} +1 -1
  114. package/index.html +14 -14
  115. package/package.json +3 -3
  116. package/assets/__federation_shared_@emotion/react-oi_M7gMJ.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__fileDeps=["assets/index-Ctl4brHr.js","assets/preload-helper-BrYcp76J.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{c as le}from"../_commonjsHelpers-C4iS2aBk.js";import{a as aw,d as cw,b as uw}from"../index-pEp_vRda.js";import{r as lw}from"../___vite-browser-external_commonjs-proxy-BqV5D26a.js";import{_ as dw}from"../preload-helper-BrYcp76J.js";import{importShared as kn}from"../__federation_fn_import-WDa0gv1I.js";import{j as Zy}from"../jsx-runtime-B1l0k91v.js";import{b as Be,d as dr,e as fw,c as Br}from"../tslib.es6-DbvBTznf.js";var Qy={},$f={};Object.defineProperty($f,"__esModule",{value:!0});var e_={},Du={},Bu={},t_={},Hd={exports:{}};/*! eth-connect {
1
+ const __vite__fileDeps=["assets/index-NxahoDGS.js","assets/preload-helper-CIxxV7Wp.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{c as le}from"../_commonjsHelpers-C4iS2aBk.js";import{a as aw,d as cw,b as uw}from"../index-pEp_vRda.js";import{r as lw}from"../___vite-browser-external_commonjs-proxy-BqV5D26a.js";import{_ as dw}from"../preload-helper-CIxxV7Wp.js";import{importShared as kn}from"../__federation_fn_import-DHP1HS9A.js";import{j as Zy}from"../jsx-runtime-B1l0k91v.js";import{b as Be,d as dr,e as fw,c as Br}from"../tslib.es6-DbvBTznf.js";var Qy={},$f={};Object.defineProperty($f,"__esModule",{value:!0});var e_={},Du={},Bu={},t_={},Hd={exports:{}};/*! eth-connect {
3
3
  "date": "2024-01-01T15:10:57.542Z",
4
4
  "commit": "b2fa64415d297ccce86d2a5d59d8705388f77db9",
5
5
  "ref": "refs/tags/6.2.4"
@@ -511,7 +511,7 @@ or you can use record.mirror to access the mirror instance during recording.`;le
511
511
  `).reduce((n,r)=>{const[i,o]=r.split(": ");return o&&(n[i.toLowerCase()]=o),n},{}):{}}function sB(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return aB(e.response,e.responseType)}catch(n){t.push(n)}return je&&$e.warn("Failed to get xhr response body",...t),[void 0]}function aB(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 je&&$e.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return je&&$e.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function cB(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return El(n)}catch{return}}function uB(e){const t=Re();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(c,u)=>lB(a,c,u))}catch{}}function lB(e,t,n){if(t.data)try{dB(t)&&hB(n)&&(rB(t,n),nB(t,n,e)),fB(t)&&pB(n)&&(VD(t,n),GD(t,n,e))}catch(r){je&&$e.exception(r,"Error when enriching network breadcrumb")}}function dB(e){return e.category==="xhr"}function fB(e){return e.category==="fetch"}function hB(e){return e?.xhr}function pB(e){return e?.response}function mB(e){const t=Re();tE(zL(e)),ml(UD(e)),ND(e),uB(e);const n=FD(e);D0(n),t&&(t.on("beforeSendEvent",RD(e)),t.on("afterSendEvent",AD(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 o=e.getSessionId();i?.includeReplay&&e.isEnabled()&&o&&r.contexts?.feedback&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=o)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function gB(e){try{return Promise.all(vl(e,[yB(Nt.performance.memory)]))}catch{return[]}}function yB(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 _B(e,t,n){return qC(e,t,{...n,setTimeoutImpl:ga})}const Cc=We.navigator;function bB(){return/iPhone|iPad|iPod/i.test(Cc?.userAgent??"")||/Macintosh/i.test(Cc?.userAgent??"")&&Cc?.maxTouchPoints&&Cc?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function vB(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){je&&$e.warn("Received replay event after session expired.");return}const i=r||!t;t=!0,e.clickDetector&&HL(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),!up(e,n,i))return!0;if(!i)return!1;const o=e.session;if(SB(e,i),e.recordingMode==="buffer"&&o&&e.eventBuffer){const s=e.eventBuffer.getEarliestTimestamp();s&&(je&&$e.log(`Updating session start time to earliest event in buffer to ${new Date(s)}`),o.started=s,e.getOptions().stickySession&&cp(o))}return o?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function EB(e){const t=e.getOptions();return{type:it.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 SB(e,t){!t||!e.session||e.session.segmentId!==0||up(e,EB(e),!1)}function wB(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function TB(e,t,n,r){return Qr(A0(e,Th(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function IB({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
512
512
  `;if(typeof e=="string")n=`${r}${e}`;else{const o=new TextEncoder().encode(r);n=new Uint8Array(o.length+e.length),n.set(o),n.set(e,o.length)}return n}async function AB({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,o={event_id:n,integrations:i};e.emit("preprocessEvent",r,o);const s=await k0(e.getOptions(),r,o,t,e,Qt());if(!s)return null;e.emit("postprocessEvent",s,o),s.platform=s.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:u}=a?.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},s}async function OB({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:o}){const s=IB({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:h}=r,d=Re(),m=tt(),g=d?.getTransport(),E=d?.getDsn();if(!d||!g||!E||!o.sampled)return Xr({});const T={type:nx,replay_start_timestamp:h/1e3,timestamp:i/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:o.sampled},L=await AB({scope:m,client:d,replayId:t,event:T});if(!L)return d.recordDroppedEvent("event_processor","replay"),je&&$e.log("An event processor returned `null`, will not send event."),Xr({});delete L.sdkProcessingMetadata;const H=TB(L,s,E,d.getOptions().tunnel);let K;try{K=await g.send(H)}catch(F){const J=new Error(Jh);try{J.cause=F}catch{}throw J}if(typeof K.statusCode=="number"&&(K.statusCode<200||K.statusCode>=300))throw new cS(K.statusCode);const V=K0({},K);if(X0(V,"replay"))throw new dp(V);return K}class cS extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class dp extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function uS(e,t={count:0,interval:cx}){const{recordingData:n,onError:r}=e;if(n.length)try{return await OB(e),!0}catch(i){if(i instanceof cS||i instanceof dp)throw i;if(P0("Replays",{_retryCount:t.count}),r&&r(i),t.count>=ux){const o=new Error(`${Jh} - max retries exceeded`);try{o.cause=i}catch{}throw o}return t.interval*=++t.count,new Promise((o,s)=>{ga(async()=>{try{await uS(e,t),o(!0)}catch(a){s(a)}},t.interval)})}}const lS="__THROTTLED",CB="__SKIPPED";function RB(e,t,n){const r=new Map,i=a=>{const c=a-n;r.forEach((u,h)=>{h<c&&r.delete(h)})},o=()=>[...r.values()].reduce((a,c)=>a+c,0);let s=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(i(c),o()>=t){const h=s;return s=!0,h?CB:lS}s=!1;const u=r.get(c)||0;return r.set(c,u+1),e(...a)}}class MB{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:rx,sessionIdleExpire:ix},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=_B(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=RB((s,a)=>wD(this,s,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),o=r?{threshold:Math.min(lx,r),timeout:r,scrollTimeout:dx,ignoreSelector:i?i.join(","):""}:void 0;if(o&&(this.clickDetector=new LL(this,o)),je){const s=t._experiments;$e.setConfig({captureExceptions:!!s.captureExceptions,traceInternals:!!s.traceInternals})}this._handleVisibilityChange=()=>{Nt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const s=wr({category:"ui.blur"});this._doChangeToBackgroundTasks(s)},this._handleWindowFocus=()=>{const s=wr({category:"ui.focus"});this._doChangeToForegroundTasks(s)},this._handleKeyboardEvent=s=>{YL(this,s)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){je&&$e.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){je&&$e.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",je&&$e.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){je&&$e.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){je&&$e.log("Buffering is in progress, call `flush()` to save the replay");return}je&&$e.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=Sd({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){je&&$e.log("Buffering is in progress, call `flush()` to save the replay");return}je&&$e.infoTick("Starting replay in buffer mode");const t=Sd({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=$r({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:ax}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:vB(this),...bB(),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{je&&$e.log(`Stopping Replay${n?` triggered by ${n}`:""}`),rS(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,_D(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),je&&$e.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),je&&$e.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();je&&$e.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&&Tf(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${Nt.location.pathname}${Nt.location.hash}${Nt.location.search}`,n=`${Nt.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===lS){const i=wr({category:"replay.throttled"});this.addUpdate(()=>!up(this,{type:CL,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||en(),n=t&&Zt(t),i=(n&&Qe(n).data||{})[Hn];if(!(!n||!i||!["route","custom"].includes(i)))return Qe(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=mD({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=Sd({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 QE(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{Nt.document.addEventListener("visibilitychange",this._handleVisibilityChange),Nt.addEventListener("blur",this._handleWindowBlur),Nt.addEventListener("focus",this._handleWindowFocus),Nt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(mB(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=cD(this)}_removeListeners(){try{Nt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Nt.removeEventListener("blur",this._handleWindowBlur),Nt.removeEventListener("focus",this._handleWindowFocus),Nt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||ZE(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()){je&&$e.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:it.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=ZL(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(vl(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){je&&$e.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await gB(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 o=await this.eventBuffer.finish();await uS({replayId:t,recordingData:o,segmentId:i,eventContext:r,session:this.session,timestamp:n,onError:s=>this.handleException(s)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=Re();if(r){const i=n instanceof dp?"ratelimit_backoff":"send_error";r.recordDroppedEvent(i,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){je&&$e.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 o=i<this._options.minReplayDuration,s=i>this._options.maxReplayDuration+5e3;if(o||s){je&&$e.log(`Session duration (${Math.floor(i/1e3)}s) is too ${o?"short":"long"}, not sending replay.`),o&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&je&&$e.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&&cp(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(a=>{const c=wB(a.target),u=n.join(",");return c?.matches(u)}))return!1;const r=t.length,i=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,s=i&&r>i;if(r>o||s){const a=wr({category:"replay.mutations",data:{count:r,limit:s}});this._createCustomBreadcrumb(a)}return s?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function ws(e,t){return[...e,...t].join(",")}function NB({mask:e,unmask:t,block:n,unblock:r,ignore:i}){const o=["base","iframe[srcdoc]:not([src])"],s=ws(e,[".sentry-mask","[data-sentry-mask]"]),a=ws(t,[]);return{maskTextSelector:s,unmaskTextSelector:a,blockSelector:ws(n,[".sentry-block","[data-sentry-block]",...o]),unblockSelector:ws(r,[]),ignoreSelector:ws(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function kB({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:o}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?o:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const qg='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',PB=["content-length","content-type","accept"];let Yg=!1;const xB=e=>new LB(e);class LB{constructor({flushMinDelay:t=ox,flushMaxDelay:n=sx,minReplayDuration:r=fx,maxReplayDuration:i=Ag,stickySession:o=!0,useCompression:s=!0,workerUrl:a,_experiments:c={},maskAllText:u=!0,maskAllInputs:h=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:m=750,mutationLimit:g=1e4,slowClickTimeout:E=7e3,slowClickIgnoreSelectors:T=[],networkDetailAllowUrls:L=[],networkDetailDenyUrls:H=[],networkCaptureBodies:K=!0,networkRequestHeaders:V=[],networkResponseHeaders:F=[],mask:J=[],maskAttributes:D=["title","placeholder","aria-label"],unmask:W=[],block:ue=[],unblock:P=[],ignore:$=[],maskFn:G,beforeAddRecordingEvent:q,beforeErrorSampling:ie,onError:fe}={}){this.name="Replay";const ce=NB({mask:J,unmask:W,block:ue,unblock:P,ignore:$});if(this._recordingOptions={maskAllInputs:h,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:G,maskInputFn:G,maskAttributeFn:(re,X,_e)=>kB({maskAttributes:D,maskAllText:u,privacyOptions:ce,key:re,value:X,el:_e}),...ce,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:re=>{try{re.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,hx),maxReplayDuration:Math.min(i,Ag),stickySession:o,useCompression:s,workerUrl:a,blockAllMedia:d,maskAllInputs:h,maskAllText:u,mutationBreadcrumbLimit:m,mutationLimit:g,slowClickTimeout:E,slowClickIgnoreSelectors:T,networkDetailAllowUrls:L,networkDetailDenyUrls:H,networkCaptureBodies:K,networkRequestHeaders:Xg(V),networkResponseHeaders:Xg(F),beforeAddRecordingEvent:q,beforeErrorSampling:ie,onError:fe,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${qg}`:qg),this._isInitialized&&af())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Yg}set _isInitialized(t){Yg=t}afterAllSetup(t){!af()||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=DB(this._initialOptions,t);this._replay=new MB({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function DB(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=qi(n.replaysSessionSampleRate),o=qi(n.replaysOnErrorSampleRate);return i==null&&o==null&&Ti(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),o!=null&&(r.errorSampleRate=o),r}function Xg(e){return[...PB,...e.map(t=>t.toLowerCase())]}function BB(){return Re()?.getIntegrationByName("Replay")}var FB=Object.defineProperty,HB=(e,t,n)=>t in e?FB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kg=(e,t,n)=>HB(e,typeof t!="symbol"?t+"":t,n);class UB{constructor(){Kg(this,"idNodeMap",new Map),Kg(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 jB(){return new UB}function $B(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Of(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Of(e.parentNode,t,n,r+1)}function Jg(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($B(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}const Io=`Please stop import mirror directly. Instead of that,\r
513
513
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
514
- or you can use record.mirror to access the mirror instance during recording.`;let Zg={map:{},getId(){return console.error(Io),-1},getNode(){return console.error(Io),null},removeNodeFromMap(){console.error(Io)},has(){return console.error(Io),!1},reset(){console.error(Io)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Zg=new Proxy(Zg,{get(e,t,n){return t==="map"&&console.error(Io),Reflect.get(e,t,n)}}));function fp(e,t,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(s){fS(()=>{n.set.call(this,s)},0),o&&o.set&&o.set.call(this,s)}}),()=>fp(e,t,o||{},!0)}function hp(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 WB(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Sl(e,t,n,r,i){if(!e)return!1;const o=WB(e);if(!o)return!1;const s=Jg(t,n),a=Of(o,s);let c=-1;return a<0?!1:(r&&(c=Of(o,Jg(null,r))),a>-1&&c<0?!0:a<c)}const Qg={};function dS(e){const t=Qg[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 o=i.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(i)}catch{}return Qg[e]=r.bind(window)}function ki(...e){return dS("requestAnimationFrame")(...e)}function fS(...e){return dS("setTimeout")(...e)}var Xo=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Xo||{});let Jc;function zB(e){Jc=e}const wd=e=>Jc?(...n)=>{try{return e(...n)}catch(r){if(Jc&&Jc(r)===!0)return()=>{};throw r}}:e;var No="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",GB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Rc=0;Rc<No.length;Rc++)GB[No.charCodeAt(Rc)]=Rc;var VB=function(e){var t=new Uint8Array(e),n,r=t.length,i="";for(n=0;n<r;n+=3)i+=No[t[n]>>2],i+=No[(t[n]&3)<<4|t[n+1]>>4],i+=No[(t[n+1]&15)<<2|t[n+2]>>6],i+=No[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 ey=new Map;function qB(e,t){let n=ey.get(e);return n||(n=new Map,ey.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const hS=(e,t,n)=>{if(!e||!(mS(e,t)||typeof e=="object"))return;const r=e.constructor.name,i=qB(n,r);let o=i.indexOf(e);return o===-1&&(o=i.length,i.push(e)),o};function Zc(e,t,n){if(e instanceof Array)return e.map(r=>Zc(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=VB(e);return{rr_type:r,base64:i}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Zc(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:[Zc(e.data,t,n),e.width,e.height]};if(mS(e,t)||typeof e=="object"){const r=e.constructor.name,i=hS(e,t,n);return{rr_type:r,index:i}}}}return e}const pS=(e,t,n)=>e.map(r=>Zc(r,t,n)),mS=(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 YB(e,t,n,r,i){const o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of s)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const c=hp(t.CanvasRenderingContext2D.prototype,a,function(u){return function(...h){return Sl(this.canvas,n,r,i,!0)||fS(()=>{const d=pS(h,t,this);e(this.canvas,{type:Xo["2D"],property:a,args:d})},0),u.apply(this,h)}});o.push(c)}catch{const c=fp(t.CanvasRenderingContext2D.prototype,a,{set(u){e(this.canvas,{type:Xo["2D"],property:a,args:[u],setter:!0})}});o.push(c)}return()=>{o.forEach(a=>a())}}function XB(e){return e==="experimental-webgl"?"webgl":e}function ty(e,t,n,r,i){const o=[];try{const s=hp(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...u){if(!Sl(this,t,n,r,!0)){const h=XB(c);if("__context"in this||(this.__context=h),i&&["webgl","webgl2"].includes(h))if(u[0]&&typeof u[0]=="object"){const d=u[0];d.preserveDrawingBuffer||(d.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...u])}});o.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(s=>s())}}function ny(e,t,n,r,i,o,s,a){const c=[],u=Object.getOwnPropertyNames(e);for(const h of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(h))try{if(typeof e[h]!="function")continue;const d=hp(e,h,function(m){return function(...g){const E=m.apply(this,g);if(hS(E,a,this),"tagName"in this.canvas&&!Sl(this.canvas,r,i,o,!0)){const T=pS(g,a,this),L={type:t,property:h,args:T};n(this.canvas,L)}return E}});c.push(d)}catch{const d=fp(e,h,{set(m){n(this.canvas,{type:t,property:h,args:[m],setter:!0})}});c.push(d)}return c}function KB(e,t,n,r,i,o){const s=[];return s.push(...ny(t.WebGLRenderingContext.prototype,Xo.WebGL,e,n,r,i,o,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...ny(t.WebGL2RenderingContext.prototype,Xo.WebGL2,e,n,r,i,o,t)),()=>{s.forEach(a=>a())}}const JB='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 ZB(){const e=new Blob([JB]);return URL.createObjectURL(e)}class QB{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:o,errorHandler:s}=t;t.sampling=r,this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,s&&zB(s),(o&&typeof r=="number"||n)&&(this.worker=this.initFPSWorker()),this.addWindow(i),!n&&wd(()=>{o&&r==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),o&&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:o,recordCanvas:s,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}wd(()=>{if(s&&n==="all"&&this.initCanvasMutationObserver(t,r,i,o),s&&typeof n=="number"){const c=ty(t,r,i,o,!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}ki(r=>this.takeSnapshot(r,!0,t))}initFPSWorker(){const t=new Worker(ZB());return t.onmessage=n=>{const r=n.data,{id:i}=r;if(this.snapshotInProgressMap.set(i,!1),!("base64"in r))return;const{base64:o,type:s,width:a,height:c}=r;this.mutationCb({id:i,type:Xo["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:s}]},0,0,a,c]}]})},t}initCanvasFPSObserver(){let t;if(!this.windows.length&&!this.shadowDoms.size)return;const n=r=>{this.takeSnapshot(r,!1),t=ki(n)};t=ki(n),this.restoreHandlers.push(()=>{t&&cancelAnimationFrame(t)})}initCanvasMutationObserver(t,n,r,i){const o=ty(t,n,r,i,!1),s=YB(this.processMutation.bind(this),t,n,r,i),a=KB(this.processMutation.bind(this),t,n,r,i,this.mirror);this.restoreHandlers.push(()=>{o(),s(),a()})}getCanvasElements(t,n,r){const i=[],o=s=>{s.querySelectorAll("canvas").forEach(a=>{Sl(a,t,n,r)||i.push(a)})};for(const s of this.windows){const a=s.deref();let c;try{c=a&&a.document}catch{}c&&o(c)}for(const s of this.shadowDoms){const a=s.deref();a&&o(a)}return i}takeSnapshot(t,n,r){const{sampling:i,blockClass:o,blockSelector:s,unblockSelector:a,dataURLOptions:c,maxCanvasSize:u}=this.options,d=1e3/(i==="all"?2:i||2);return this.lastSnapshotTime&&t-this.lastSnapshotTime<d?!1:(this.lastSnapshotTime=t,(r?[r]:this.getCanvasElements(o,s,a)).forEach(E=>{const T=this.mirror.getId(E);if(!(!this.mirror.hasNode(E)||!E.width||!E.height||this.snapshotInProgressMap.get(T))){if(this.snapshotInProgressMap.set(T,!0),!n&&["webgl","webgl2"].includes(E.__context)){const L=E.getContext(E.__context);L?.getContextAttributes()?.preserveDrawingBuffer===!1&&L.clear(L.COLOR_BUFFER_BIT)}createImageBitmap(E).then(L=>{this.worker?.postMessage({id:T,bitmap:L,width:E.width,height:E.height,dataURLOptions:c,maxCanvasSize:u},[L])}).catch(L=>{wd(()=>{throw this.snapshotInProgressMap.delete(T),L})()})}}),!0)}startPendingCanvasMutationFlusher(){ki(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,ki(t)};ki(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),ki(()=>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(s=>{const{type:a,...c}=s;return c}),{type:o}=r[0];this.mutationCb({id:n,type:o,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)}jB();var ry;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(ry||(ry={}));const iy={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}}},eF="ReplayCanvas",Mc=1280,tF=(e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Mc):Mc,n?Math.min(n,Mc):Mc]};let i;const o=new Promise(s=>i=s);return{name:eF,getOptions(){const{quality:s,enableManualSnapshot:a,maxCanvasSize:c}=r;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:u=>{const h=new QB({...u,enableManualSnapshot:a,maxCanvasSize:c,errorHandler:d=>{try{typeof d=="object"&&(d.__rrweb__=!0)}catch{}}});return i(h),h},...iy[s]||iy.medium}},async snapshot(s,a){(await o).snapshot(s,a)}}},nF=tF;function br(e=0){return((mn()||performance.timeOrigin)+e)/1e3}function rF(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:r}=Zv(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return mn()?[...t,["http.request.redirect_start",br(e.redirectStart)],["http.request.fetch_start",br(e.fetchStart)],["http.request.domain_lookup_start",br(e.domainLookupStart)],["http.request.domain_lookup_end",br(e.domainLookupEnd)],["http.request.connect_start",br(e.connectStart)],["http.request.secure_connection_start",br(e.secureConnectionStart)],["http.request.connection_end",br(e.connectEnd)],["http.request.request_start",br(e.requestStart)],["http.request.response_start",br(e.responseStart)],["http.request.response_end",br(e.responseEnd)]]:t}const oy=new WeakMap,Td=new Map,pp={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function gS(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:o,enableHTTPTimings:s,tracePropagationTargets:a,onRequestSpanStart:c}={...pp,...t},u=typeof o=="function"?o:m=>!0,h=m=>oF(m,a),d={};n&&(e.addEventProcessor(m=>(m.type==="transaction"&&m.spans&&m.spans.forEach(g=>{if(g.op==="http.client"){const E=Td.get(g.span_id);E&&(g.timestamp=E/1e3,Td.delete(g.span_id))}}),m)),i&&EM(m=>{if(m.response){const g=oy.get(m.response);g&&m.endTimestamp&&Td.set(g,m.endTimestamp)}}),Ph(m=>{const g=cM(m,u,h,d);if(m.response&&m.fetchData.__span&&oy.set(m.response,m.fetchData.__span),g){const E=yS(m.fetchData.url),T=E?zi(E).host:void 0;g.setAttributes({"http.url":E,"server.address":T}),s&&sy(g),c?.(g,{headers:m.headers})}})),r&&qh(m=>{const g=sF(m,u,h,d);if(g){s&&sy(g);let E;try{E=new Headers(m.xhr.__sentry_xhr_v3__?.request_headers)}catch{}c?.(g,{headers:E})}})}function iF(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function sy(e){const{url:t}=Qe(e).data;if(!t||typeof t!="string")return;const n=Ki("resource",({entries:r})=>{r.forEach(i=>{iF(i)&&i.name.endsWith(t)&&(rF(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function oF(e,t){const n=to();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const o=r.origin===i;return t?ar(r.toString(),t)||o&&ar(r.pathname,t):o}else{const r=!!e.match(/^\/(?!\/)/);return t?ar(e,t):r}}function sF(e,t,n,r){const i=e.xhr,o=i?.[Fr];if(!i||i.__sentry_own_request__||!o)return;const{url:s,method:a}=o,c=vi()&&t(s);if(e.endTimestamp&&c){const T=i.__sentry_xhr_span_id__;if(!T)return;const L=r[T];L&&o.status_code!==void 0&&(js(L,o.status_code),L.end(),delete r[T]);return}const u=yS(s),h=zi(u||s),d=pv(s),m=!!en(),g=c&&m?oo({name:`${a} ${d}`,attributes:{url:s,type:"xhr","http.method":a,"http.url":u,"server.address":h?.host,[Ft]:"auto.http.browser",[jn]:"http.client",...h?.search&&{"http.query":h?.search},...h?.hash&&{"http.fragment":h?.hash}}}):new Yr;i.__sentry_xhr_span_id__=g.spanContext().spanId,r[i.__sentry_xhr_span_id__]=g,n(s)&&aF(i,vi()&&m?g:void 0);const E=Re();return E&&E.emit("beforeOutgoingRequestSpan",g,e),g}function aF(e,t){const{"sentry-trace":n,baggage:r}=Mh({span:t});n&&cF(e,n,r)}function cF(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||!uF(i))&&e.setRequestHeader("baggage",n)}}catch{}}function uF(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function yS(e){try{return new URL(e,Fe.location.origin).href}catch{return}}function lF(){Fe.document?Fe.document.addEventListener("visibilitychange",()=>{const e=en();if(!e)return;const t=Zt(e);if(Fe.document.hidden&&t){const n="cancelled",{op:r,status:i}=Qe(t);st&&Y.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||t.setStatus({code:zt,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):st&&Y.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const dF=3600,_S="sentry_previous_trace",fF="sentry.previous_trace";function hF(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let i=r?gF():void 0;e.on("spanStart",s=>{if(Zt(s)!==s)return;const a=tt().getPropagationContext();i=pF(i,s,a),r&&mF(i)});let o=!0;n&&e.on("beforeSampling",s=>{if(!i)return;const a=tt(),c=a.getPropagationContext();if(o&&c.parentSpanId){o=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(i.sampleRate),sampled:String(Cf(i.spanContext))},sampleRand:i.sampleRand}),s.parentSampled=Cf(i.spanContext),s.parentSampleRate=i.sampleRate,s.spanAttributes={...s.spanAttributes,[i0]:i.sampleRate}})}function pF(e,t,n){const r=Qe(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[rl])}catch{return 0}}const o={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return o;const s=e.spanContext;return s.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=dF&&(st&&Y.log(`Adding previous_trace ${s} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:s,attributes:{[UA]:"previous_trace"}}),t.setAttribute(fF,`${s.traceId}-${s.spanId}-${Cf(s)?1:0}`)),o)}function mF(e){try{Fe.sessionStorage.setItem(_S,JSON.stringify(e))}catch(t){st&&Y.warn("Could not store previous trace in sessionStorage",t)}}function gF(){try{const e=Fe.sessionStorage?.getItem(_S);return JSON.parse(e)}catch{return}}function Cf(e){return e.traceFlags===1}const yF="BrowserTracing",_F={...Uc,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...pp},bF=(e={})=>{const t={name:void 0,source:void 0},n=Fe.document,{enableInp:r,enableElementTiming:i,enableLongTask:o,enableLongAnimationFrame:s,_experiments:{enableInteractions:a,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:h,idleTimeout:d,finalTimeout:m,childSpanTimeout:g,markBackgroundSpan:E,traceFetch:T,traceXHR:L,trackFetchStreamPerformance:H,shouldCreateSpanForRequest:K,enableHTTPTimings:V,ignoreResourceSpans:F,ignorePerformanceApiSpans:J,instrumentPageLoad:D,instrumentNavigation:W,detectRedirects:ue,linkPreviousTrace:P,consistentTraceSampling:$,onRequestSpanStart:G}={..._F,...e};let q,ie;function fe(ce,re,X=!0){const _e=re.op==="pageload",ge=h?h(re):re,he=ge.attributes||{};if(re.name!==ge.name&&(he[Hn]="custom",ge.attributes=he),!X){const se=no();oo({...ge,startTime:se}).end(se);return}t.name=ge.name,t.source=he[Hn];const Se=M0(ge,{idleTimeout:d,finalTimeout:m,childSpanTimeout:g,disableAutoFinish:_e,beforeSpanEnd:se=>{q?.(),Zk(se,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:F,ignorePerformanceApiSpans:J}),cy(ce,void 0);const He=tt(),vt=He.getPropagationContext();He.setPropagationContext({...vt,traceId:Se.spanContext().traceId,sampled:ro(Se),dsc:ur(se)})}});cy(ce,Se);function Xe(){n&&["interactive","complete"].includes(n.readyState)&&ce.emit("idleSpanEnableAutoFinish",Se)}_e&&n&&(n.addEventListener("readystatechange",()=>{Xe()}),Xe())}return{name:yF,setup(ce){if(b0(),q=zk({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:ce}),r&&vP(),i&&cP(),s&&We.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?Vk():o&&Gk(),a&&qk(),ue&&n){const X=()=>{ie=Yt()};addEventListener("click",X,{capture:!0}),addEventListener("keydown",X,{capture:!0,passive:!0})}function re(){const X=qs(ce);X&&!Qe(X).timestamp&&(st&&Y.log(`[Tracing] Finishing current active span with op: ${Qe(X).op}`),X.setAttribute(uu,"cancelled"),X.end())}ce.on("startNavigationSpan",(X,_e)=>{if(Re()!==ce)return;if(_e?.isRedirect){st&&Y.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),fe(ce,{op:"navigation.redirect",...X},!1);return}re(),Qt().setPropagationContext({traceId:qr(),sampleRand:Math.random()});const ge=tt();ge.setPropagationContext({traceId:qr(),sampleRand:Math.random()}),ge.setSDKProcessingMetadata({normalizedRequest:void 0}),fe(ce,{op:"navigation",...X})}),ce.on("startPageLoadSpan",(X,_e={})=>{if(Re()!==ce)return;re();const ge=_e.sentryTrace||ay("sentry-trace"),he=_e.baggage||ay("baggage"),Se=d0(ge,he),Xe=tt();Xe.setPropagationContext(Se),Xe.setSDKProcessingMetadata({normalizedRequest:Hh()}),fe(ce,{op:"pageload",...X})})},afterAllSetup(ce){let re=to();if(P!=="off"&&hF(ce,{linkPreviousTrace:P,consistentTraceSampling:$}),Fe.location){if(D){const X=mn();bS(ce,{name:Fe.location.pathname,startTime:X?X/1e3:void 0,attributes:{[Hn]:"url",[Ft]:"auto.pageload.browser"}})}W&&ml(({to:X,from:_e})=>{if(_e===void 0&&re?.indexOf(X)!==-1){re=void 0;return}re=void 0;const ge=hv(X),he=qs(ce),Se=he&&ue&&EF(he,ie);vS(ce,{name:ge?.pathname||Fe.location.pathname,attributes:{[Hn]:"url",[Ft]:"auto.navigation.browser"}},{url:X,isRedirect:Se})})}E&&lF(),a&&vF(ce,d,m,g,t),r&&wP(),gS(ce,{traceFetch:T,traceXHR:L,trackFetchStreamPerformance:H,tracePropagationTargets:ce.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:K,enableHTTPTimings:V,onRequestSpanStart:G})}}};function bS(e,t,n){e.emit("startPageLoadSpan",t,n),tt().setTransactionName(t.name);const r=qs(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function vS(e,t,n){const{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});const o=tt();return o.setTransactionName(t.name),r&&!i&&o.setSDKProcessingMetadata({normalizedRequest:{...Hh(),url:r}}),qs(e)}function ay(e){return Fe.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function vF(e,t,n,r,i){const o=Fe.document;let s;const a=()=>{const c="ui.action.click",u=qs(e);if(u){const h=Qe(u).op;if(["navigation","pageload"].includes(h)){st&&Y.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(uu,"interactionInterrupted"),s.end(),s=void 0),!i.name){st&&Y.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}s=M0({name:i.name,op:c,attributes:{[Hn]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};o&&addEventListener("click",a,{capture:!0})}const ES="_sentry_idleSpan";function qs(e){return e[ES]}function cy(e,t){Nn(e,ES,t)}const uy=.3;function EF(e,t){const n=Qe(e),r=no(),i=n.start_timestamp;return!(r-i>uy||t&&r-t<=uy)}function Ko(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function SF(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=Ko(n);return i=>r.then(o=>i(o.transaction(t,"readwrite").objectStore(t)))}function mp(e){return Ko(e.getAllKeys())}function wF(e,t,n){return e(r=>mp(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.max(...i,0)+1),Ko(r.transaction)}))}function TF(e,t,n){return e(r=>mp(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.min(...i,0)-1),Ko(r.transaction)}))}function IF(e){return e(t=>mp(t).then(n=>{const r=n[0];if(r!=null)return Ko(t.get(r)).then(i=>(t.delete(r),Ko(t.transaction).then(()=>i)))}))}function AF(e){let t;function n(){return t==null&&(t=SF(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const i=await fu(r);await wF(n(),i,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const i=await fu(r);await TF(n(),i,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await IF(n());if(r)return pO(r)}catch{}}}}function OF(e){return t=>{const n=e({...t,createStore:AF});return Fe.addEventListener("online",async r=>{await n.flush()}),n}}function CF(e=Xh){return OF(DC(e))}const ly=1e6,Qc=String(0),RF="main",Pu=Fe.navigator;let SS="",wS="",TS="",Rf=Pu?.userAgent||"",IS="";const MF=Pu?.language||Pu?.languages?.[0]||"";function NF(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const dy=Pu?.userAgentData;NF(dy)&&dy.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(SS=e.platform||"",TS=e.architecture||"",IS=e.model||"",wS=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];Rf=`${t.brand} ${t.version}`}}).catch(e=>{});function kF(e){return!("thread_metadata"in e)}function PF(e){return kF(e)?DF(e):e}function xF(e){const t=e.contexts?.trace?.trace_id;return typeof t=="string"&&t.length!==32&&st&&Y.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function LF(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=xF(r),o=PF(n),s=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:Yt()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:Yt()*1e3;return{event_id:e,timestamp:new Date(s).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||il,runtime:{name:"javascript",version:Fe.navigator.userAgent},os:{name:SS,version:wS,build_number:Rf},device:{locale:MF,model:IS,manufacturer:Rf,architecture:TS,is_emulator:!1},debug_meta:{images:HF(n.resources)},profile:o,transactions:[{name:r.transaction||"",id:r.event_id||Tn(),trace_id:i,active_thread_id:Qc,relative_start_ns:"0",relative_end_ns:((a-s)*1e6).toFixed(0)}]}}function AS(e){return Qe(e).op==="pageload"}function DF(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Qc]:{name:RF}}},i=e.samples[0];if(!i)return r;const o=i.timestamp,s=mn(),a=typeof performance.timeOrigin=="number"?performance.timeOrigin:s||0,c=a-(s||a);return e.samples.forEach((u,h)=>{if(u.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[h]={elapsed_since_start_ns:((u.timestamp+c-o)*ly).toFixed(0),stack_id:t,thread_id:Qc};return}let d=e.stacks[u.stackId];const m=[];for(;d;){m.push(d.frameId);const E=e.frames[d.frameId];E&&r.frames[d.frameId]===void 0&&(r.frames[d.frameId]={function:E.name,abs_path:typeof E.resourceId=="number"?e.resources[E.resourceId]:void 0,lineno:E.line,colno:E.column}),d=d.parentId===void 0?void 0:e.stacks[d.parentId]}const g={elapsed_since_start_ns:((u.timestamp+c-o)*ly).toFixed(0),stack_id:n,thread_id:Qc};r.stacks[n]=m,r.samples[h]=g,n++}),r}function BF(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function FF(e){const t=[];return Yi(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 HF(e){const r=Re()?.getOptions()?.stackParser;return r?zO(r,e):[]}function UF(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(st&&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?(st&&Y.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function jF(e){return e.samples.length<2?(st&&Y.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(st&&Y.log("[Profiling] Discarding profile because it contains no frames"),!1)}let OS=!1;const CS=3e4;function $F(e){return typeof e=="function"}function WF(){const e=Fe.Profiler;if(!$F(e)){st&&Y.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(CS/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{st&&(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.")),OS=!0}}function fy(e){if(OS)return st&&Y.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return st&&Y.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const n=Re()?.getOptions();if(!n)return st&&Y.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return UF(r)?r?(r===!0?!0:Math.random()<r)?!0:(st&&Y.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(st&&Y.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(st&&Y.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function zF(e,t,n,r){return jF(n)?LF(e,t,n,r):null}const ji=new Map;function GF(){return ji.size}function VF(e){const t=ji.get(e);return t&&ji.delete(e),t}function qF(e,t){if(ji.set(e,t),ji.size>30){const n=ji.keys().next().value;ji.delete(n)}}function hy(e){let t;AS(e)&&(t=Yt()*1e3);const n=WF();if(!n)return;st&&Y.log(`[Profiling] started profiling span: ${Qe(e).description}`);const r=Tn();tt().setContext("profile",{profile_id:r,start_timestamp:t});async function i(){if(e&&n)return n.stop().then(c=>{if(o&&(Fe.clearTimeout(o),o=void 0),st&&Y.log(`[Profiling] stopped profiling of span: ${Qe(e).description}`),!c){st&&Y.log(`[Profiling] profiler returned null profile for: ${Qe(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}qF(r,c)}).catch(c=>{st&&Y.log("[Profiling] error while stopping profiler:",c)})}let o=Fe.setTimeout(()=>{st&&Y.log("[Profiling] max profile duration elapsed, stopping profiling for:",Qe(e).description),i()},CS);const s=e.end.bind(e);function a(){return e?(i().then(()=>{s()},()=>{s()}),e):s()}e.end=a}const YF="BrowserProfiling",XF=()=>({name:YF,setup(e){const t=en(),n=t&&Zt(t);n&&AS(n)&&fy(n)&&hy(n),e.on("spanStart",r=>{r===Zt(r)&&fy(r)&&hy(r)}),e.on("beforeEnvelope",r=>{if(!GF())return;const i=FF(r);if(!i.length)return;const o=[];for(const s of i){const a=s?.contexts,c=a?.profile?.profile_id,u=a?.profile?.start_timestamp;if(typeof c!="string"){st&&Y.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!c){st&&Y.log("[Profiling] cannot find profile for a span without a profile context");continue}a?.profile&&delete a.profile;const h=VF(c);if(!h){st&&Y.log(`[Profiling] Could not retrieve profile for span: ${c}`);continue}const d=zF(c,u,h,s);d&&o.push(d)}BF(r,o)})}}),KF=XF,JF="SpotlightBrowser",ZF=(e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:JF,setup:()=>{st&&Y.log("Using Sidecar URL",t)},processEvent:n=>t3(n)?null:n,afterAllSetup:n=>{QF(n,t)}}};function QF(e,t){const n=Vh("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:fu(i),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(o=>{o.status>=200&&o.status<400&&(r=0)},o=>{r++,Y.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",o)})})}const e3=ZF;function t3(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 n3=()=>({name:"LaunchDarkly",processEvent(e,t,n){return la(e)}});function r3(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{Fo(e,t.value),Ho(e,t.value)}}}const i3=()=>({name:"OpenFeature",processEvent(e,t,n){return la(e)}});class o3{after(t,n){Fo(n.flagKey,n.value),Ho(n.flagKey,n.value)}error(t,n,r){Fo(t.flagKey,t.defaultValue),Ho(t.flagKey,t.defaultValue)}}const s3=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;wn(t,"isEnabled",a3)},processEvent(t,n,r){return la(t)}});function a3(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?(Fo(n,r),Ho(n,r)):st&&Y.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const c3=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",n=>{Fo(n.gate.name,n.gate.value),Ho(n.gate.name,n.gate.value)})},processEvent(t,n,r){return la(t)}});async function u3(){const e=Re();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 l3="WebWorker",d3=({worker:e})=>({name:l3,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(t=>py(t))},addWorker:t=>py(t)});function py(e){e.addEventListener("message",t=>{h3(t.data)&&(t.stopImmediatePropagation(),st&&Y.log("Sentry debugId web worker message received",t.data),Fe._sentryDebugIds={...t.data._sentryDebugIds,...Fe._sentryDebugIds})})}function f3({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0})}function h3(e){return Gr(e)&&e._sentryMessage===!0&&"_sentryDebugIds"in e&&(Gr(e._sentryDebugIds)||e._sentryDebugIds===void 0)}const p3=Object.freeze(Object.defineProperty({__proto__:null,BrowserClient:Fv,OpenFeatureIntegrationHook:o3,SDK_VERSION:jr,SEMANTIC_ATTRIBUTE_SENTRY_OP:jn,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:Ft,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:rl,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:Hn,Scope:cr,WINDOW:Fe,addBreadcrumb:Ar,addEventProcessor:D0,addIntegration:ef,breadcrumbsIntegration:cE,browserApiErrorsIntegration:uE,browserProfilingIntegration:KF,browserSessionIntegration:lE,browserTracingIntegration:bF,buildLaunchDarklyFlagUsedHandler:r3,captureConsoleIntegration:hR,captureEvent:ua,captureException:Xi,captureFeedback:mv,captureMessage:gu,captureSession:Qd,chromeStackLineParser:rE,close:aC,consoleLoggingIntegration:gM,contextLinesIntegration:q2,continueTrace:RO,createTransport:J0,createUserFeedbackEnvelope:GP,dedupeIntegration:av,defaultRequestInstrumentationOptions:pp,defaultStackLineParsers:oE,defaultStackParser:sE,diagnoseSdkConnectivity:u3,endSession:Ch,eventFiltersIntegration:nv,eventFromException:Dv,eventFromMessage:Bv,exceptionFromError:ll,extraErrorDataIntegration:SR,featureFlagsIntegration:oM,feedbackAsyncIntegration:zN,feedbackIntegration:mg,feedbackSyncIntegration:mg,flush:sC,forceLoad:T2,functionToStringIntegration:tv,geckoStackLineParser:iE,getActiveSpan:en,getClient:Re,getCurrentScope:tt,getDefaultIntegrations:mE,getFeedback:eN,getGlobalScope:nl,getIsolationScope:Qt,getReplay:BB,getRootSpan:Zt,getSpanDescendants:Ps,getSpanStatusFromHttpCode:o0,getTraceData:Mh,globalHandlersIntegration:dE,graphqlClientIntegration:tx,httpClientIntegration:P2,httpContextIntegration:hE,inboundFiltersIntegration:rv,init:w2,instrumentOutgoingRequests:gS,instrumentSupabaseClient:dv,isEnabled:L0,isInitialized:cC,lastEventId:x0,launchDarklyIntegration:n3,lazyLoadIntegration:xv,linkedErrorsIntegration:pE,logger:JN,makeBrowserOfflineTransport:CF,makeFetchTransport:Xh,makeMultiplexedTransport:HC,moduleMetadataIntegration:uR,onLoad:I2,openFeatureIntegration:i3,opera10StackLineParser:jP,opera11StackLineParser:zP,parameterize:ev,registerSpanErrorInstrumentation:b0,registerWebWorker:f3,replayCanvasIntegration:nF,replayIntegration:xB,reportingObserverIntegration:M2,rewriteFramesIntegration:NR,sendFeedback:vv,setContext:P0,setCurrentClient:V0,setExtra:nC,setExtras:tC,setHttpStatus:js,setMeasurement:O0,setTag:iC,setTags:rC,setUser:oC,showReportDialog:A2,spanToBaggageHeader:oO,spanToJSON:Qe,spanToTraceHeader:m0,spotlightBrowserIntegration:e3,startBrowserTracingNavigationSpan:vS,startBrowserTracingPageLoadSpan:bS,startInactiveSpan:oo,startNewTrace:NO,startSession:Zd,startSpan:sl,startSpanManual:CO,statsigIntegration:c3,supabaseIntegration:zR,suppressTracing:MO,thirdPartyErrorFilterIntegration:eM,unleashIntegration:s3,updateSpanName:QA,webWorkerIntegration:d3,winjsStackLineParser:FP,withActiveSpan:aa,withIsolationScope:BA,withScope:Jn,zodErrorsIntegration:QR},Symbol.toStringTag,{value:"Module"})),wl=e=>{typeof window<"u"&&window.Sentry&&e(p3)},{useEffect:m3}=await kn("react"),RS=(e,t)=>m3(()=>{const n=e().catch(r=>{console.error("AsyncEffect error: ",r),wl(i=>i.captureException("AsyncEffect error: "+r.message,{extra:r}))});return function(){n.then(r=>{typeof r=="function"&&r()})}},t),{createContext:g3,useMemo:y3,useRef:_3,useState:b3}=await kn("react"),MS=g3(null),kU=e=>{const{writeKey:t,userId:n,traits:r,children:i}=e,o=_3(null),[s,a]=b3(!1);RS(async()=>{if(!t){console.log("[Analytics] No writeKey provided");return}const u=navigator.userAgent;if(rA(u)){console.log("[Analytics] Skipping load: bot detected");return}try{const{AnalyticsBrowser:d}=await dw(async()=>{const{AnalyticsBrowser:m}=await import("../index-Ctl4brHr.js").then(g=>g.q);return{AnalyticsBrowser:m}},__vite__mapDeps([0,1,2,3,4]));o.current=d.load({writeKey:t}),n&&o.current.identify(n,r),a(!0)}catch(d){console.error("[Analytics] Failed to initialize:",d),o.current=null}},[t,n,r]);const c=y3(()=>!o.current||!s?{isInitialized:!1,track:()=>{},identify:()=>{},page:()=>{}}:{isInitialized:!0,track:(u,h)=>{o.current?.track(u,h)},identify:(u,h)=>{o.current?.identify(u,h)},page:(u,h)=>{o.current?.page(u,h)}},[s]);return Zy.jsx(MS.Provider,{value:c,children:i})},{createContext:v3}=await kn("react"),NS=v3(null);function Er(e,t){var n=t&&t.cache?t.cache:O3,r=t&&t.serializer?t.serializer:I3,i=t&&t.strategy?t.strategy:S3;return i(e,{cache:n,serializer:r})}function E3(e){return e==null||typeof e=="number"||typeof e=="boolean"}function kS(e,t,n,r){var i=E3(r)?r:n(r),o=t.get(i);return typeof o>"u"&&(o=e.call(this,r),t.set(i,o)),o}function PS(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,r),t.set(i,o)),o}function gp(e,t,n,r,i){return n.bind(t,e,r,i)}function S3(e,t){var n=e.length===1?kS:PS;return gp(e,this,n,t.cache.create(),t.serializer)}function w3(e,t){return gp(e,this,PS,t.cache.create(),t.serializer)}function T3(e,t){return gp(e,this,kS,t.cache.create(),t.serializer)}var I3=function(){return JSON.stringify(arguments)},A3=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}(),O3={create:function(){return new A3}},Sr={variadic:w3,monadic:T3},ft;(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"})(ft||(ft={}));var kt;(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"})(kt||(kt={}));var Jo;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Jo||(Jo={}));function my(e){return e.type===kt.literal}function C3(e){return e.type===kt.argument}function xS(e){return e.type===kt.number}function LS(e){return e.type===kt.date}function DS(e){return e.type===kt.time}function BS(e){return e.type===kt.select}function FS(e){return e.type===kt.plural}function R3(e){return e.type===kt.pound}function HS(e){return e.type===kt.tag}function US(e){return!!(e&&typeof e=="object"&&e.type===Jo.number)}function Mf(e){return!!(e&&typeof e=="object"&&e.type===Jo.dateTime)}var jS=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,M3=/(?:[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 N3(e){var t={};return e.replace(M3,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 k3=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function P3(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(k3).filter(function(m){return m.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],c=s.slice(1),u=0,h=c;u<h.length;u++){var d=h[u];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:c})}return n}function x3(e){return e.replace(/^(.*?)-/,"")}var gy=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,$S=/^(@+)?(\+|#+)?[rs]?$/g,L3=/(\*)(0+)|(#+)(0+)|(0+)/g,WS=/^(0+)$/;function yy(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace($S,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 zS(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 D3(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)),!WS.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function _y(e){var t={},n=zS(e);return n||t}function B3(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=x3(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=Be(Be(Be({},t),{notation:"scientific"}),i.options.reduce(function(c,u){return Be(Be({},c),_y(u))},{}));continue;case"engineering":t=Be(Be(Be({},t),{notation:"engineering"}),i.options.reduce(function(c,u){return Be(Be({},c),_y(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(L3,function(c,u,h,d,m,g){if(u)t.minimumIntegerDigits=h.length;else{if(d&&m)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(WS.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(gy.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(gy,function(c,u,h,d,m,g){return h==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&g?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+g.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=Be(Be({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=Be(Be({},t),yy(o)));continue}if($S.test(i.stem)){t=Be(Be({},t),yy(i.stem));continue}var s=zS(i.stem);s&&(t=Be(Be({},t),s));var a=D3(i.stem);a&&(t=Be(Be({},t),a))}return t}var Nc={"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 F3(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),c="a",u=H3(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=c;for(;s-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function H3(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=Nc[r||""]||Nc[n||""]||Nc["".concat(n,"-001")]||Nc["001"];return i[0]}var Id,U3=new RegExp("^".concat(jS.source,"*")),j3=new RegExp("".concat(jS.source,"*$"));function pt(e,t){return{start:e,end:t}}var $3=!!String.prototype.startsWith&&"_a".startsWith("a",1),W3=!!String.fromCodePoint,z3=!!Object.fromEntries,G3=!!String.prototype.codePointAt,V3=!!String.prototype.trimStart,q3=!!String.prototype.trimEnd,Y3=!!Number.isSafeInteger,X3=Y3?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Nf=!0;try{var K3=VS("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Nf=((Id=K3.exec("a"))===null||Id===void 0?void 0:Id[0])==="a"}catch{Nf=!1}var by=$3?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},kf=W3?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},vy=z3?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},GS=G3?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},J3=V3?function(t){return t.trimStart()}:function(t){return t.replace(U3,"")},Z3=q3?function(t){return t.trimEnd()}:function(t){return t.replace(j3,"")};function VS(e,t){return new RegExp(e,t)}var Pf;if(Nf){var Ey=VS("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pf=function(t,n){var r;Ey.lastIndex=n;var i=Ey.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Pf=function(t,n){for(var r=[];;){var i=GS(t,n);if(i===void 0||qS(i)||nH(i))break;r.push(i),n+=i>=65536?2:1}return kf.apply(void 0,r)};var Q3=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 o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:kt.pound,location:pt(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ft.UNMATCHED_CLOSING_TAG,pt(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&xf(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.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:kt.literal,value:"<".concat(i,"/>"),location:pt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!xf(this.char()))return this.error(ft.INVALID_TAG,pt(a,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(ft.UNMATCHED_CLOSING_TAG,pt(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:kt.tag,value:i,children:s,location:pt(r,this.clonePosition())},err:null}:this.error(ft.INVALID_TAG,pt(a,this.clonePosition())))}else return this.error(ft.UNCLOSED_TAG,pt(r,this.clonePosition()))}else return this.error(ft.INVALID_TAG,pt(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&tH(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var c=pt(r,this.clonePosition());return{val:{type:kt.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!eH(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 kf.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(),kf(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,pt(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ft.EMPTY_ARGUMENT,pt(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(ft.MALFORMED_ARGUMENT,pt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,pt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:kt.argument,value:i,location:pt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,pt(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(ft.MALFORMED_ARGUMENT,pt(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Pf(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=pt(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(a){case"":return this.error(ft.EXPECT_ARGUMENT_TYPE,pt(s,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=Z3(d.val);if(m.length===0)return this.error(ft.EXPECT_ARGUMENT_STYLE,pt(this.clonePosition(),this.clonePosition()));var g=pt(h,this.clonePosition());u={style:m,styleLocation:g}}var E=this.tryParseArgumentClose(i);if(E.err)return E;var T=pt(i,this.clonePosition());if(u&&by(u?.style,"::",0)){var L=J3(u.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(L,u.styleLocation);return d.err?d:{val:{type:kt.number,value:r,location:T,style:d.val},err:null}}else{if(L.length===0)return this.error(ft.EXPECT_DATE_TIME_SKELETON,T);var H=L;this.locale&&(H=F3(L,this.locale));var m={type:Jo.dateTime,pattern:H,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?N3(H):{}},K=a==="date"?kt.date:kt.time;return{val:{type:K,value:r,location:T,style:m},err:null}}}return{val:{type:a==="number"?kt.number:a==="date"?kt.date:kt.time,value:r,location:T,style:(o=u?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var V=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ft.EXPECT_SELECT_ARGUMENT_OPTIONS,pt(V,Be({},V)));this.bumpSpace();var F=this.parseIdentifierIfPossible(),J=0;if(a!=="select"&&F.value==="offset"){if(!this.bumpIf(":"))return this.error(ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,pt(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ft.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),F=this.parseIdentifierIfPossible(),J=d.val}var D=this.tryParsePluralOrSelectOptions(t,a,n,F);if(D.err)return D;var E=this.tryParseArgumentClose(i);if(E.err)return E;var W=pt(i,this.clonePosition());return a==="select"?{val:{type:kt.select,value:r,options:vy(D.val),location:W},err:null}:{val:{type:kt.plural,value:r,options:vy(D.val),offset:J,pluralType:a==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(ft.INVALID_ARGUMENT_TYPE,pt(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,pt(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(ft.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,pt(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=P3(t)}catch{return this.error(ft.INVALID_NUMBER_SKELETON,n)}return{val:{type:Jo.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?B3(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],c=new Set,u=i.value,h=i.location;;){if(u.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(ft.EXPECT_PLURAL_ARGUMENT_SELECTOR,ft.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;h=pt(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(c.has(u))return this.error(n==="select"?ft.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ft.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);u==="other"&&(s=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?ft.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ft.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,pt(this.clonePosition(),this.clonePosition()));var E=this.parseMessage(t+1,n,r);if(E.err)return E;var T=this.tryParseArgumentClose(g);if(T.err)return T;a.push([u,{value:E.val,location:pt(g,this.clonePosition())}]),c.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,h=o.location}return a.length===0?this.error(n==="select"?ft.EXPECT_SELECT_ARGUMENT_SELECTOR:ft.EXPECT_PLURAL_ARGUMENT_SELECTOR,pt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ft.MISSING_OTHER_CLAUSE,pt(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 o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var c=pt(i,this.clonePosition());return o?(s*=r,X3(s)?{val:s,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=GS(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(by(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()&&qS(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 xf(e){return e>=97&&e<=122||e>=65&&e<=90}function eH(e){return xf(e)||e===47}function tH(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 qS(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function nH(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 Lf(e){e.forEach(function(t){if(delete t.location,BS(t)||FS(t))for(var n in t.options)delete t.options[n].location,Lf(t.options[n].value);else xS(t)&&US(t.style)||(LS(t)||DS(t))&&Mf(t.style)?delete t.style.location:HS(t)&&Lf(t.children)})}function rH(e,t){t===void 0&&(t={}),t=Be({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Q3(e,t).parse();if(n.err){var r=SyntaxError(ft[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||Lf(n.val),n.val}var Or;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Or||(Or={}));var Ci=function(e){dr(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Sy=function(e){dr(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Or.INVALID_VALUE,o)||this}return t}(Ci),iH=function(e){dr(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Or.INVALID_VALUE,i)||this}return t}(Ci),oH=function(e){dr(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,'"'),Or.MISSING_VALUE,r)||this}return t}(Ci),vn;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(vn||(vn={}));function sH(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==vn.literal||n.type!==vn.literal?t.push(n):r.value+=n.value,t},[])}function aH(e){return typeof e=="function"}function eu(e,t,n,r,i,o,s){if(e.length===1&&my(e[0]))return[{type:vn.literal,value:e[0].value}];for(var a=[],c=0,u=e;c<u.length;c++){var h=u[c];if(my(h)){a.push({type:vn.literal,value:h.value});continue}if(R3(h)){typeof o=="number"&&a.push({type:vn.literal,value:n.getNumberFormat(t).format(o)});continue}var d=h.value;if(!(i&&d in i))throw new oH(d,s);var m=i[d];if(C3(h)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),a.push({type:typeof m=="string"?vn.literal:vn.object,value:m});continue}if(LS(h)){var g=typeof h.style=="string"?r.date[h.style]:Mf(h.style)?h.style.parsedOptions:void 0;a.push({type:vn.literal,value:n.getDateTimeFormat(t,g).format(m)});continue}if(DS(h)){var g=typeof h.style=="string"?r.time[h.style]:Mf(h.style)?h.style.parsedOptions:r.time.medium;a.push({type:vn.literal,value:n.getDateTimeFormat(t,g).format(m)});continue}if(xS(h)){var g=typeof h.style=="string"?r.number[h.style]:US(h.style)?h.style.parsedOptions:void 0;g&&g.scale&&(m=m*(g.scale||1)),a.push({type:vn.literal,value:n.getNumberFormat(t,g).format(m)});continue}if(HS(h)){var E=h.children,T=h.value,L=i[T];if(!aH(L))throw new iH(T,"function",s);var H=eu(E,t,n,r,i,o),K=L(H.map(function(J){return J.value}));Array.isArray(K)||(K=[K]),a.push.apply(a,K.map(function(J){return{type:typeof J=="string"?vn.literal:vn.object,value:J}}))}if(BS(h)){var V=h.options[m]||h.options.other;if(!V)throw new Sy(h.value,m,Object.keys(h.options),s);a.push.apply(a,eu(V.value,t,n,r,i));continue}if(FS(h)){var V=h.options["=".concat(m)];if(!V){if(!Intl.PluralRules)throw new Ci(`Intl.PluralRules is not available in this environment.
514
+ or you can use record.mirror to access the mirror instance during recording.`;let Zg={map:{},getId(){return console.error(Io),-1},getNode(){return console.error(Io),null},removeNodeFromMap(){console.error(Io)},has(){return console.error(Io),!1},reset(){console.error(Io)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Zg=new Proxy(Zg,{get(e,t,n){return t==="map"&&console.error(Io),Reflect.get(e,t,n)}}));function fp(e,t,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(s){fS(()=>{n.set.call(this,s)},0),o&&o.set&&o.set.call(this,s)}}),()=>fp(e,t,o||{},!0)}function hp(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 WB(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Sl(e,t,n,r,i){if(!e)return!1;const o=WB(e);if(!o)return!1;const s=Jg(t,n),a=Of(o,s);let c=-1;return a<0?!1:(r&&(c=Of(o,Jg(null,r))),a>-1&&c<0?!0:a<c)}const Qg={};function dS(e){const t=Qg[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 o=i.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(i)}catch{}return Qg[e]=r.bind(window)}function ki(...e){return dS("requestAnimationFrame")(...e)}function fS(...e){return dS("setTimeout")(...e)}var Xo=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Xo||{});let Jc;function zB(e){Jc=e}const wd=e=>Jc?(...n)=>{try{return e(...n)}catch(r){if(Jc&&Jc(r)===!0)return()=>{};throw r}}:e;var No="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",GB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Rc=0;Rc<No.length;Rc++)GB[No.charCodeAt(Rc)]=Rc;var VB=function(e){var t=new Uint8Array(e),n,r=t.length,i="";for(n=0;n<r;n+=3)i+=No[t[n]>>2],i+=No[(t[n]&3)<<4|t[n+1]>>4],i+=No[(t[n+1]&15)<<2|t[n+2]>>6],i+=No[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 ey=new Map;function qB(e,t){let n=ey.get(e);return n||(n=new Map,ey.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const hS=(e,t,n)=>{if(!e||!(mS(e,t)||typeof e=="object"))return;const r=e.constructor.name,i=qB(n,r);let o=i.indexOf(e);return o===-1&&(o=i.length,i.push(e)),o};function Zc(e,t,n){if(e instanceof Array)return e.map(r=>Zc(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=VB(e);return{rr_type:r,base64:i}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Zc(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:[Zc(e.data,t,n),e.width,e.height]};if(mS(e,t)||typeof e=="object"){const r=e.constructor.name,i=hS(e,t,n);return{rr_type:r,index:i}}}}return e}const pS=(e,t,n)=>e.map(r=>Zc(r,t,n)),mS=(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 YB(e,t,n,r,i){const o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of s)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const c=hp(t.CanvasRenderingContext2D.prototype,a,function(u){return function(...h){return Sl(this.canvas,n,r,i,!0)||fS(()=>{const d=pS(h,t,this);e(this.canvas,{type:Xo["2D"],property:a,args:d})},0),u.apply(this,h)}});o.push(c)}catch{const c=fp(t.CanvasRenderingContext2D.prototype,a,{set(u){e(this.canvas,{type:Xo["2D"],property:a,args:[u],setter:!0})}});o.push(c)}return()=>{o.forEach(a=>a())}}function XB(e){return e==="experimental-webgl"?"webgl":e}function ty(e,t,n,r,i){const o=[];try{const s=hp(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...u){if(!Sl(this,t,n,r,!0)){const h=XB(c);if("__context"in this||(this.__context=h),i&&["webgl","webgl2"].includes(h))if(u[0]&&typeof u[0]=="object"){const d=u[0];d.preserveDrawingBuffer||(d.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...u])}});o.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(s=>s())}}function ny(e,t,n,r,i,o,s,a){const c=[],u=Object.getOwnPropertyNames(e);for(const h of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(h))try{if(typeof e[h]!="function")continue;const d=hp(e,h,function(m){return function(...g){const E=m.apply(this,g);if(hS(E,a,this),"tagName"in this.canvas&&!Sl(this.canvas,r,i,o,!0)){const T=pS(g,a,this),L={type:t,property:h,args:T};n(this.canvas,L)}return E}});c.push(d)}catch{const d=fp(e,h,{set(m){n(this.canvas,{type:t,property:h,args:[m],setter:!0})}});c.push(d)}return c}function KB(e,t,n,r,i,o){const s=[];return s.push(...ny(t.WebGLRenderingContext.prototype,Xo.WebGL,e,n,r,i,o,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...ny(t.WebGL2RenderingContext.prototype,Xo.WebGL2,e,n,r,i,o,t)),()=>{s.forEach(a=>a())}}const JB='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 ZB(){const e=new Blob([JB]);return URL.createObjectURL(e)}class QB{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:o,errorHandler:s}=t;t.sampling=r,this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,s&&zB(s),(o&&typeof r=="number"||n)&&(this.worker=this.initFPSWorker()),this.addWindow(i),!n&&wd(()=>{o&&r==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),o&&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:o,recordCanvas:s,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}wd(()=>{if(s&&n==="all"&&this.initCanvasMutationObserver(t,r,i,o),s&&typeof n=="number"){const c=ty(t,r,i,o,!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}ki(r=>this.takeSnapshot(r,!0,t))}initFPSWorker(){const t=new Worker(ZB());return t.onmessage=n=>{const r=n.data,{id:i}=r;if(this.snapshotInProgressMap.set(i,!1),!("base64"in r))return;const{base64:o,type:s,width:a,height:c}=r;this.mutationCb({id:i,type:Xo["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:s}]},0,0,a,c]}]})},t}initCanvasFPSObserver(){let t;if(!this.windows.length&&!this.shadowDoms.size)return;const n=r=>{this.takeSnapshot(r,!1),t=ki(n)};t=ki(n),this.restoreHandlers.push(()=>{t&&cancelAnimationFrame(t)})}initCanvasMutationObserver(t,n,r,i){const o=ty(t,n,r,i,!1),s=YB(this.processMutation.bind(this),t,n,r,i),a=KB(this.processMutation.bind(this),t,n,r,i,this.mirror);this.restoreHandlers.push(()=>{o(),s(),a()})}getCanvasElements(t,n,r){const i=[],o=s=>{s.querySelectorAll("canvas").forEach(a=>{Sl(a,t,n,r)||i.push(a)})};for(const s of this.windows){const a=s.deref();let c;try{c=a&&a.document}catch{}c&&o(c)}for(const s of this.shadowDoms){const a=s.deref();a&&o(a)}return i}takeSnapshot(t,n,r){const{sampling:i,blockClass:o,blockSelector:s,unblockSelector:a,dataURLOptions:c,maxCanvasSize:u}=this.options,d=1e3/(i==="all"?2:i||2);return this.lastSnapshotTime&&t-this.lastSnapshotTime<d?!1:(this.lastSnapshotTime=t,(r?[r]:this.getCanvasElements(o,s,a)).forEach(E=>{const T=this.mirror.getId(E);if(!(!this.mirror.hasNode(E)||!E.width||!E.height||this.snapshotInProgressMap.get(T))){if(this.snapshotInProgressMap.set(T,!0),!n&&["webgl","webgl2"].includes(E.__context)){const L=E.getContext(E.__context);L?.getContextAttributes()?.preserveDrawingBuffer===!1&&L.clear(L.COLOR_BUFFER_BIT)}createImageBitmap(E).then(L=>{this.worker?.postMessage({id:T,bitmap:L,width:E.width,height:E.height,dataURLOptions:c,maxCanvasSize:u},[L])}).catch(L=>{wd(()=>{throw this.snapshotInProgressMap.delete(T),L})()})}}),!0)}startPendingCanvasMutationFlusher(){ki(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,ki(t)};ki(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),ki(()=>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(s=>{const{type:a,...c}=s;return c}),{type:o}=r[0];this.mutationCb({id:n,type:o,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)}jB();var ry;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(ry||(ry={}));const iy={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}}},eF="ReplayCanvas",Mc=1280,tF=(e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Mc):Mc,n?Math.min(n,Mc):Mc]};let i;const o=new Promise(s=>i=s);return{name:eF,getOptions(){const{quality:s,enableManualSnapshot:a,maxCanvasSize:c}=r;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:u=>{const h=new QB({...u,enableManualSnapshot:a,maxCanvasSize:c,errorHandler:d=>{try{typeof d=="object"&&(d.__rrweb__=!0)}catch{}}});return i(h),h},...iy[s]||iy.medium}},async snapshot(s,a){(await o).snapshot(s,a)}}},nF=tF;function br(e=0){return((mn()||performance.timeOrigin)+e)/1e3}function rF(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:r}=Zv(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return mn()?[...t,["http.request.redirect_start",br(e.redirectStart)],["http.request.fetch_start",br(e.fetchStart)],["http.request.domain_lookup_start",br(e.domainLookupStart)],["http.request.domain_lookup_end",br(e.domainLookupEnd)],["http.request.connect_start",br(e.connectStart)],["http.request.secure_connection_start",br(e.secureConnectionStart)],["http.request.connection_end",br(e.connectEnd)],["http.request.request_start",br(e.requestStart)],["http.request.response_start",br(e.responseStart)],["http.request.response_end",br(e.responseEnd)]]:t}const oy=new WeakMap,Td=new Map,pp={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function gS(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:o,enableHTTPTimings:s,tracePropagationTargets:a,onRequestSpanStart:c}={...pp,...t},u=typeof o=="function"?o:m=>!0,h=m=>oF(m,a),d={};n&&(e.addEventProcessor(m=>(m.type==="transaction"&&m.spans&&m.spans.forEach(g=>{if(g.op==="http.client"){const E=Td.get(g.span_id);E&&(g.timestamp=E/1e3,Td.delete(g.span_id))}}),m)),i&&EM(m=>{if(m.response){const g=oy.get(m.response);g&&m.endTimestamp&&Td.set(g,m.endTimestamp)}}),Ph(m=>{const g=cM(m,u,h,d);if(m.response&&m.fetchData.__span&&oy.set(m.response,m.fetchData.__span),g){const E=yS(m.fetchData.url),T=E?zi(E).host:void 0;g.setAttributes({"http.url":E,"server.address":T}),s&&sy(g),c?.(g,{headers:m.headers})}})),r&&qh(m=>{const g=sF(m,u,h,d);if(g){s&&sy(g);let E;try{E=new Headers(m.xhr.__sentry_xhr_v3__?.request_headers)}catch{}c?.(g,{headers:E})}})}function iF(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function sy(e){const{url:t}=Qe(e).data;if(!t||typeof t!="string")return;const n=Ki("resource",({entries:r})=>{r.forEach(i=>{iF(i)&&i.name.endsWith(t)&&(rF(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function oF(e,t){const n=to();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const o=r.origin===i;return t?ar(r.toString(),t)||o&&ar(r.pathname,t):o}else{const r=!!e.match(/^\/(?!\/)/);return t?ar(e,t):r}}function sF(e,t,n,r){const i=e.xhr,o=i?.[Fr];if(!i||i.__sentry_own_request__||!o)return;const{url:s,method:a}=o,c=vi()&&t(s);if(e.endTimestamp&&c){const T=i.__sentry_xhr_span_id__;if(!T)return;const L=r[T];L&&o.status_code!==void 0&&(js(L,o.status_code),L.end(),delete r[T]);return}const u=yS(s),h=zi(u||s),d=pv(s),m=!!en(),g=c&&m?oo({name:`${a} ${d}`,attributes:{url:s,type:"xhr","http.method":a,"http.url":u,"server.address":h?.host,[Ft]:"auto.http.browser",[jn]:"http.client",...h?.search&&{"http.query":h?.search},...h?.hash&&{"http.fragment":h?.hash}}}):new Yr;i.__sentry_xhr_span_id__=g.spanContext().spanId,r[i.__sentry_xhr_span_id__]=g,n(s)&&aF(i,vi()&&m?g:void 0);const E=Re();return E&&E.emit("beforeOutgoingRequestSpan",g,e),g}function aF(e,t){const{"sentry-trace":n,baggage:r}=Mh({span:t});n&&cF(e,n,r)}function cF(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||!uF(i))&&e.setRequestHeader("baggage",n)}}catch{}}function uF(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function yS(e){try{return new URL(e,Fe.location.origin).href}catch{return}}function lF(){Fe.document?Fe.document.addEventListener("visibilitychange",()=>{const e=en();if(!e)return;const t=Zt(e);if(Fe.document.hidden&&t){const n="cancelled",{op:r,status:i}=Qe(t);st&&Y.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||t.setStatus({code:zt,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):st&&Y.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const dF=3600,_S="sentry_previous_trace",fF="sentry.previous_trace";function hF(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let i=r?gF():void 0;e.on("spanStart",s=>{if(Zt(s)!==s)return;const a=tt().getPropagationContext();i=pF(i,s,a),r&&mF(i)});let o=!0;n&&e.on("beforeSampling",s=>{if(!i)return;const a=tt(),c=a.getPropagationContext();if(o&&c.parentSpanId){o=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(i.sampleRate),sampled:String(Cf(i.spanContext))},sampleRand:i.sampleRand}),s.parentSampled=Cf(i.spanContext),s.parentSampleRate=i.sampleRate,s.spanAttributes={...s.spanAttributes,[i0]:i.sampleRate}})}function pF(e,t,n){const r=Qe(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[rl])}catch{return 0}}const o={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return o;const s=e.spanContext;return s.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=dF&&(st&&Y.log(`Adding previous_trace ${s} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:s,attributes:{[UA]:"previous_trace"}}),t.setAttribute(fF,`${s.traceId}-${s.spanId}-${Cf(s)?1:0}`)),o)}function mF(e){try{Fe.sessionStorage.setItem(_S,JSON.stringify(e))}catch(t){st&&Y.warn("Could not store previous trace in sessionStorage",t)}}function gF(){try{const e=Fe.sessionStorage?.getItem(_S);return JSON.parse(e)}catch{return}}function Cf(e){return e.traceFlags===1}const yF="BrowserTracing",_F={...Uc,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...pp},bF=(e={})=>{const t={name:void 0,source:void 0},n=Fe.document,{enableInp:r,enableElementTiming:i,enableLongTask:o,enableLongAnimationFrame:s,_experiments:{enableInteractions:a,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:h,idleTimeout:d,finalTimeout:m,childSpanTimeout:g,markBackgroundSpan:E,traceFetch:T,traceXHR:L,trackFetchStreamPerformance:H,shouldCreateSpanForRequest:K,enableHTTPTimings:V,ignoreResourceSpans:F,ignorePerformanceApiSpans:J,instrumentPageLoad:D,instrumentNavigation:W,detectRedirects:ue,linkPreviousTrace:P,consistentTraceSampling:$,onRequestSpanStart:G}={..._F,...e};let q,ie;function fe(ce,re,X=!0){const _e=re.op==="pageload",ge=h?h(re):re,he=ge.attributes||{};if(re.name!==ge.name&&(he[Hn]="custom",ge.attributes=he),!X){const se=no();oo({...ge,startTime:se}).end(se);return}t.name=ge.name,t.source=he[Hn];const Se=M0(ge,{idleTimeout:d,finalTimeout:m,childSpanTimeout:g,disableAutoFinish:_e,beforeSpanEnd:se=>{q?.(),Zk(se,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:F,ignorePerformanceApiSpans:J}),cy(ce,void 0);const He=tt(),vt=He.getPropagationContext();He.setPropagationContext({...vt,traceId:Se.spanContext().traceId,sampled:ro(Se),dsc:ur(se)})}});cy(ce,Se);function Xe(){n&&["interactive","complete"].includes(n.readyState)&&ce.emit("idleSpanEnableAutoFinish",Se)}_e&&n&&(n.addEventListener("readystatechange",()=>{Xe()}),Xe())}return{name:yF,setup(ce){if(b0(),q=zk({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:ce}),r&&vP(),i&&cP(),s&&We.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?Vk():o&&Gk(),a&&qk(),ue&&n){const X=()=>{ie=Yt()};addEventListener("click",X,{capture:!0}),addEventListener("keydown",X,{capture:!0,passive:!0})}function re(){const X=qs(ce);X&&!Qe(X).timestamp&&(st&&Y.log(`[Tracing] Finishing current active span with op: ${Qe(X).op}`),X.setAttribute(uu,"cancelled"),X.end())}ce.on("startNavigationSpan",(X,_e)=>{if(Re()!==ce)return;if(_e?.isRedirect){st&&Y.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),fe(ce,{op:"navigation.redirect",...X},!1);return}re(),Qt().setPropagationContext({traceId:qr(),sampleRand:Math.random()});const ge=tt();ge.setPropagationContext({traceId:qr(),sampleRand:Math.random()}),ge.setSDKProcessingMetadata({normalizedRequest:void 0}),fe(ce,{op:"navigation",...X})}),ce.on("startPageLoadSpan",(X,_e={})=>{if(Re()!==ce)return;re();const ge=_e.sentryTrace||ay("sentry-trace"),he=_e.baggage||ay("baggage"),Se=d0(ge,he),Xe=tt();Xe.setPropagationContext(Se),Xe.setSDKProcessingMetadata({normalizedRequest:Hh()}),fe(ce,{op:"pageload",...X})})},afterAllSetup(ce){let re=to();if(P!=="off"&&hF(ce,{linkPreviousTrace:P,consistentTraceSampling:$}),Fe.location){if(D){const X=mn();bS(ce,{name:Fe.location.pathname,startTime:X?X/1e3:void 0,attributes:{[Hn]:"url",[Ft]:"auto.pageload.browser"}})}W&&ml(({to:X,from:_e})=>{if(_e===void 0&&re?.indexOf(X)!==-1){re=void 0;return}re=void 0;const ge=hv(X),he=qs(ce),Se=he&&ue&&EF(he,ie);vS(ce,{name:ge?.pathname||Fe.location.pathname,attributes:{[Hn]:"url",[Ft]:"auto.navigation.browser"}},{url:X,isRedirect:Se})})}E&&lF(),a&&vF(ce,d,m,g,t),r&&wP(),gS(ce,{traceFetch:T,traceXHR:L,trackFetchStreamPerformance:H,tracePropagationTargets:ce.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:K,enableHTTPTimings:V,onRequestSpanStart:G})}}};function bS(e,t,n){e.emit("startPageLoadSpan",t,n),tt().setTransactionName(t.name);const r=qs(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function vS(e,t,n){const{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});const o=tt();return o.setTransactionName(t.name),r&&!i&&o.setSDKProcessingMetadata({normalizedRequest:{...Hh(),url:r}}),qs(e)}function ay(e){return Fe.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function vF(e,t,n,r,i){const o=Fe.document;let s;const a=()=>{const c="ui.action.click",u=qs(e);if(u){const h=Qe(u).op;if(["navigation","pageload"].includes(h)){st&&Y.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(uu,"interactionInterrupted"),s.end(),s=void 0),!i.name){st&&Y.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}s=M0({name:i.name,op:c,attributes:{[Hn]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};o&&addEventListener("click",a,{capture:!0})}const ES="_sentry_idleSpan";function qs(e){return e[ES]}function cy(e,t){Nn(e,ES,t)}const uy=.3;function EF(e,t){const n=Qe(e),r=no(),i=n.start_timestamp;return!(r-i>uy||t&&r-t<=uy)}function Ko(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function SF(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=Ko(n);return i=>r.then(o=>i(o.transaction(t,"readwrite").objectStore(t)))}function mp(e){return Ko(e.getAllKeys())}function wF(e,t,n){return e(r=>mp(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.max(...i,0)+1),Ko(r.transaction)}))}function TF(e,t,n){return e(r=>mp(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.min(...i,0)-1),Ko(r.transaction)}))}function IF(e){return e(t=>mp(t).then(n=>{const r=n[0];if(r!=null)return Ko(t.get(r)).then(i=>(t.delete(r),Ko(t.transaction).then(()=>i)))}))}function AF(e){let t;function n(){return t==null&&(t=SF(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const i=await fu(r);await wF(n(),i,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const i=await fu(r);await TF(n(),i,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await IF(n());if(r)return pO(r)}catch{}}}}function OF(e){return t=>{const n=e({...t,createStore:AF});return Fe.addEventListener("online",async r=>{await n.flush()}),n}}function CF(e=Xh){return OF(DC(e))}const ly=1e6,Qc=String(0),RF="main",Pu=Fe.navigator;let SS="",wS="",TS="",Rf=Pu?.userAgent||"",IS="";const MF=Pu?.language||Pu?.languages?.[0]||"";function NF(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const dy=Pu?.userAgentData;NF(dy)&&dy.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(SS=e.platform||"",TS=e.architecture||"",IS=e.model||"",wS=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];Rf=`${t.brand} ${t.version}`}}).catch(e=>{});function kF(e){return!("thread_metadata"in e)}function PF(e){return kF(e)?DF(e):e}function xF(e){const t=e.contexts?.trace?.trace_id;return typeof t=="string"&&t.length!==32&&st&&Y.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function LF(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=xF(r),o=PF(n),s=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:Yt()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:Yt()*1e3;return{event_id:e,timestamp:new Date(s).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||il,runtime:{name:"javascript",version:Fe.navigator.userAgent},os:{name:SS,version:wS,build_number:Rf},device:{locale:MF,model:IS,manufacturer:Rf,architecture:TS,is_emulator:!1},debug_meta:{images:HF(n.resources)},profile:o,transactions:[{name:r.transaction||"",id:r.event_id||Tn(),trace_id:i,active_thread_id:Qc,relative_start_ns:"0",relative_end_ns:((a-s)*1e6).toFixed(0)}]}}function AS(e){return Qe(e).op==="pageload"}function DF(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Qc]:{name:RF}}},i=e.samples[0];if(!i)return r;const o=i.timestamp,s=mn(),a=typeof performance.timeOrigin=="number"?performance.timeOrigin:s||0,c=a-(s||a);return e.samples.forEach((u,h)=>{if(u.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[h]={elapsed_since_start_ns:((u.timestamp+c-o)*ly).toFixed(0),stack_id:t,thread_id:Qc};return}let d=e.stacks[u.stackId];const m=[];for(;d;){m.push(d.frameId);const E=e.frames[d.frameId];E&&r.frames[d.frameId]===void 0&&(r.frames[d.frameId]={function:E.name,abs_path:typeof E.resourceId=="number"?e.resources[E.resourceId]:void 0,lineno:E.line,colno:E.column}),d=d.parentId===void 0?void 0:e.stacks[d.parentId]}const g={elapsed_since_start_ns:((u.timestamp+c-o)*ly).toFixed(0),stack_id:n,thread_id:Qc};r.stacks[n]=m,r.samples[h]=g,n++}),r}function BF(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function FF(e){const t=[];return Yi(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 HF(e){const r=Re()?.getOptions()?.stackParser;return r?zO(r,e):[]}function UF(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(st&&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?(st&&Y.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function jF(e){return e.samples.length<2?(st&&Y.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(st&&Y.log("[Profiling] Discarding profile because it contains no frames"),!1)}let OS=!1;const CS=3e4;function $F(e){return typeof e=="function"}function WF(){const e=Fe.Profiler;if(!$F(e)){st&&Y.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(CS/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{st&&(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.")),OS=!0}}function fy(e){if(OS)return st&&Y.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return st&&Y.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const n=Re()?.getOptions();if(!n)return st&&Y.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return UF(r)?r?(r===!0?!0:Math.random()<r)?!0:(st&&Y.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(st&&Y.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(st&&Y.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function zF(e,t,n,r){return jF(n)?LF(e,t,n,r):null}const ji=new Map;function GF(){return ji.size}function VF(e){const t=ji.get(e);return t&&ji.delete(e),t}function qF(e,t){if(ji.set(e,t),ji.size>30){const n=ji.keys().next().value;ji.delete(n)}}function hy(e){let t;AS(e)&&(t=Yt()*1e3);const n=WF();if(!n)return;st&&Y.log(`[Profiling] started profiling span: ${Qe(e).description}`);const r=Tn();tt().setContext("profile",{profile_id:r,start_timestamp:t});async function i(){if(e&&n)return n.stop().then(c=>{if(o&&(Fe.clearTimeout(o),o=void 0),st&&Y.log(`[Profiling] stopped profiling of span: ${Qe(e).description}`),!c){st&&Y.log(`[Profiling] profiler returned null profile for: ${Qe(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}qF(r,c)}).catch(c=>{st&&Y.log("[Profiling] error while stopping profiler:",c)})}let o=Fe.setTimeout(()=>{st&&Y.log("[Profiling] max profile duration elapsed, stopping profiling for:",Qe(e).description),i()},CS);const s=e.end.bind(e);function a(){return e?(i().then(()=>{s()},()=>{s()}),e):s()}e.end=a}const YF="BrowserProfiling",XF=()=>({name:YF,setup(e){const t=en(),n=t&&Zt(t);n&&AS(n)&&fy(n)&&hy(n),e.on("spanStart",r=>{r===Zt(r)&&fy(r)&&hy(r)}),e.on("beforeEnvelope",r=>{if(!GF())return;const i=FF(r);if(!i.length)return;const o=[];for(const s of i){const a=s?.contexts,c=a?.profile?.profile_id,u=a?.profile?.start_timestamp;if(typeof c!="string"){st&&Y.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!c){st&&Y.log("[Profiling] cannot find profile for a span without a profile context");continue}a?.profile&&delete a.profile;const h=VF(c);if(!h){st&&Y.log(`[Profiling] Could not retrieve profile for span: ${c}`);continue}const d=zF(c,u,h,s);d&&o.push(d)}BF(r,o)})}}),KF=XF,JF="SpotlightBrowser",ZF=(e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:JF,setup:()=>{st&&Y.log("Using Sidecar URL",t)},processEvent:n=>t3(n)?null:n,afterAllSetup:n=>{QF(n,t)}}};function QF(e,t){const n=Vh("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:fu(i),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(o=>{o.status>=200&&o.status<400&&(r=0)},o=>{r++,Y.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",o)})})}const e3=ZF;function t3(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 n3=()=>({name:"LaunchDarkly",processEvent(e,t,n){return la(e)}});function r3(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{Fo(e,t.value),Ho(e,t.value)}}}const i3=()=>({name:"OpenFeature",processEvent(e,t,n){return la(e)}});class o3{after(t,n){Fo(n.flagKey,n.value),Ho(n.flagKey,n.value)}error(t,n,r){Fo(t.flagKey,t.defaultValue),Ho(t.flagKey,t.defaultValue)}}const s3=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;wn(t,"isEnabled",a3)},processEvent(t,n,r){return la(t)}});function a3(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?(Fo(n,r),Ho(n,r)):st&&Y.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const c3=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",n=>{Fo(n.gate.name,n.gate.value),Ho(n.gate.name,n.gate.value)})},processEvent(t,n,r){return la(t)}});async function u3(){const e=Re();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 l3="WebWorker",d3=({worker:e})=>({name:l3,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(t=>py(t))},addWorker:t=>py(t)});function py(e){e.addEventListener("message",t=>{h3(t.data)&&(t.stopImmediatePropagation(),st&&Y.log("Sentry debugId web worker message received",t.data),Fe._sentryDebugIds={...t.data._sentryDebugIds,...Fe._sentryDebugIds})})}function f3({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0})}function h3(e){return Gr(e)&&e._sentryMessage===!0&&"_sentryDebugIds"in e&&(Gr(e._sentryDebugIds)||e._sentryDebugIds===void 0)}const p3=Object.freeze(Object.defineProperty({__proto__:null,BrowserClient:Fv,OpenFeatureIntegrationHook:o3,SDK_VERSION:jr,SEMANTIC_ATTRIBUTE_SENTRY_OP:jn,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:Ft,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:rl,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:Hn,Scope:cr,WINDOW:Fe,addBreadcrumb:Ar,addEventProcessor:D0,addIntegration:ef,breadcrumbsIntegration:cE,browserApiErrorsIntegration:uE,browserProfilingIntegration:KF,browserSessionIntegration:lE,browserTracingIntegration:bF,buildLaunchDarklyFlagUsedHandler:r3,captureConsoleIntegration:hR,captureEvent:ua,captureException:Xi,captureFeedback:mv,captureMessage:gu,captureSession:Qd,chromeStackLineParser:rE,close:aC,consoleLoggingIntegration:gM,contextLinesIntegration:q2,continueTrace:RO,createTransport:J0,createUserFeedbackEnvelope:GP,dedupeIntegration:av,defaultRequestInstrumentationOptions:pp,defaultStackLineParsers:oE,defaultStackParser:sE,diagnoseSdkConnectivity:u3,endSession:Ch,eventFiltersIntegration:nv,eventFromException:Dv,eventFromMessage:Bv,exceptionFromError:ll,extraErrorDataIntegration:SR,featureFlagsIntegration:oM,feedbackAsyncIntegration:zN,feedbackIntegration:mg,feedbackSyncIntegration:mg,flush:sC,forceLoad:T2,functionToStringIntegration:tv,geckoStackLineParser:iE,getActiveSpan:en,getClient:Re,getCurrentScope:tt,getDefaultIntegrations:mE,getFeedback:eN,getGlobalScope:nl,getIsolationScope:Qt,getReplay:BB,getRootSpan:Zt,getSpanDescendants:Ps,getSpanStatusFromHttpCode:o0,getTraceData:Mh,globalHandlersIntegration:dE,graphqlClientIntegration:tx,httpClientIntegration:P2,httpContextIntegration:hE,inboundFiltersIntegration:rv,init:w2,instrumentOutgoingRequests:gS,instrumentSupabaseClient:dv,isEnabled:L0,isInitialized:cC,lastEventId:x0,launchDarklyIntegration:n3,lazyLoadIntegration:xv,linkedErrorsIntegration:pE,logger:JN,makeBrowserOfflineTransport:CF,makeFetchTransport:Xh,makeMultiplexedTransport:HC,moduleMetadataIntegration:uR,onLoad:I2,openFeatureIntegration:i3,opera10StackLineParser:jP,opera11StackLineParser:zP,parameterize:ev,registerSpanErrorInstrumentation:b0,registerWebWorker:f3,replayCanvasIntegration:nF,replayIntegration:xB,reportingObserverIntegration:M2,rewriteFramesIntegration:NR,sendFeedback:vv,setContext:P0,setCurrentClient:V0,setExtra:nC,setExtras:tC,setHttpStatus:js,setMeasurement:O0,setTag:iC,setTags:rC,setUser:oC,showReportDialog:A2,spanToBaggageHeader:oO,spanToJSON:Qe,spanToTraceHeader:m0,spotlightBrowserIntegration:e3,startBrowserTracingNavigationSpan:vS,startBrowserTracingPageLoadSpan:bS,startInactiveSpan:oo,startNewTrace:NO,startSession:Zd,startSpan:sl,startSpanManual:CO,statsigIntegration:c3,supabaseIntegration:zR,suppressTracing:MO,thirdPartyErrorFilterIntegration:eM,unleashIntegration:s3,updateSpanName:QA,webWorkerIntegration:d3,winjsStackLineParser:FP,withActiveSpan:aa,withIsolationScope:BA,withScope:Jn,zodErrorsIntegration:QR},Symbol.toStringTag,{value:"Module"})),wl=e=>{typeof window<"u"&&window.Sentry&&e(p3)},{useEffect:m3}=await kn("react"),RS=(e,t)=>m3(()=>{const n=e().catch(r=>{console.error("AsyncEffect error: ",r),wl(i=>i.captureException("AsyncEffect error: "+r.message,{extra:r}))});return function(){n.then(r=>{typeof r=="function"&&r()})}},t),{createContext:g3,useMemo:y3,useRef:_3,useState:b3}=await kn("react"),MS=g3(null),kU=e=>{const{writeKey:t,userId:n,traits:r,children:i}=e,o=_3(null),[s,a]=b3(!1);RS(async()=>{if(!t){console.log("[Analytics] No writeKey provided");return}const u=navigator.userAgent;if(rA(u)){console.log("[Analytics] Skipping load: bot detected");return}try{const{AnalyticsBrowser:d}=await dw(async()=>{const{AnalyticsBrowser:m}=await import("../index-NxahoDGS.js").then(g=>g.q);return{AnalyticsBrowser:m}},__vite__mapDeps([0,1,2,3,4]));o.current=d.load({writeKey:t}),n&&o.current.identify(n,r),a(!0)}catch(d){console.error("[Analytics] Failed to initialize:",d),o.current=null}},[t,n,r]);const c=y3(()=>!o.current||!s?{isInitialized:!1,track:()=>{},identify:()=>{},page:()=>{}}:{isInitialized:!0,track:(u,h)=>{o.current?.track(u,h)},identify:(u,h)=>{o.current?.identify(u,h)},page:(u,h)=>{o.current?.page(u,h)}},[s]);return Zy.jsx(MS.Provider,{value:c,children:i})},{createContext:v3}=await kn("react"),NS=v3(null);function Er(e,t){var n=t&&t.cache?t.cache:O3,r=t&&t.serializer?t.serializer:I3,i=t&&t.strategy?t.strategy:S3;return i(e,{cache:n,serializer:r})}function E3(e){return e==null||typeof e=="number"||typeof e=="boolean"}function kS(e,t,n,r){var i=E3(r)?r:n(r),o=t.get(i);return typeof o>"u"&&(o=e.call(this,r),t.set(i,o)),o}function PS(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,r),t.set(i,o)),o}function gp(e,t,n,r,i){return n.bind(t,e,r,i)}function S3(e,t){var n=e.length===1?kS:PS;return gp(e,this,n,t.cache.create(),t.serializer)}function w3(e,t){return gp(e,this,PS,t.cache.create(),t.serializer)}function T3(e,t){return gp(e,this,kS,t.cache.create(),t.serializer)}var I3=function(){return JSON.stringify(arguments)},A3=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}(),O3={create:function(){return new A3}},Sr={variadic:w3,monadic:T3},ft;(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"})(ft||(ft={}));var kt;(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"})(kt||(kt={}));var Jo;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Jo||(Jo={}));function my(e){return e.type===kt.literal}function C3(e){return e.type===kt.argument}function xS(e){return e.type===kt.number}function LS(e){return e.type===kt.date}function DS(e){return e.type===kt.time}function BS(e){return e.type===kt.select}function FS(e){return e.type===kt.plural}function R3(e){return e.type===kt.pound}function HS(e){return e.type===kt.tag}function US(e){return!!(e&&typeof e=="object"&&e.type===Jo.number)}function Mf(e){return!!(e&&typeof e=="object"&&e.type===Jo.dateTime)}var jS=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,M3=/(?:[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 N3(e){var t={};return e.replace(M3,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 k3=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function P3(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(k3).filter(function(m){return m.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],c=s.slice(1),u=0,h=c;u<h.length;u++){var d=h[u];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:c})}return n}function x3(e){return e.replace(/^(.*?)-/,"")}var gy=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,$S=/^(@+)?(\+|#+)?[rs]?$/g,L3=/(\*)(0+)|(#+)(0+)|(0+)/g,WS=/^(0+)$/;function yy(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace($S,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 zS(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 D3(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)),!WS.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function _y(e){var t={},n=zS(e);return n||t}function B3(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=x3(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=Be(Be(Be({},t),{notation:"scientific"}),i.options.reduce(function(c,u){return Be(Be({},c),_y(u))},{}));continue;case"engineering":t=Be(Be(Be({},t),{notation:"engineering"}),i.options.reduce(function(c,u){return Be(Be({},c),_y(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(L3,function(c,u,h,d,m,g){if(u)t.minimumIntegerDigits=h.length;else{if(d&&m)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(WS.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(gy.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(gy,function(c,u,h,d,m,g){return h==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&g?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+g.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=Be(Be({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=Be(Be({},t),yy(o)));continue}if($S.test(i.stem)){t=Be(Be({},t),yy(i.stem));continue}var s=zS(i.stem);s&&(t=Be(Be({},t),s));var a=D3(i.stem);a&&(t=Be(Be({},t),a))}return t}var Nc={"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 F3(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),c="a",u=H3(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=c;for(;s-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function H3(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=Nc[r||""]||Nc[n||""]||Nc["".concat(n,"-001")]||Nc["001"];return i[0]}var Id,U3=new RegExp("^".concat(jS.source,"*")),j3=new RegExp("".concat(jS.source,"*$"));function pt(e,t){return{start:e,end:t}}var $3=!!String.prototype.startsWith&&"_a".startsWith("a",1),W3=!!String.fromCodePoint,z3=!!Object.fromEntries,G3=!!String.prototype.codePointAt,V3=!!String.prototype.trimStart,q3=!!String.prototype.trimEnd,Y3=!!Number.isSafeInteger,X3=Y3?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Nf=!0;try{var K3=VS("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Nf=((Id=K3.exec("a"))===null||Id===void 0?void 0:Id[0])==="a"}catch{Nf=!1}var by=$3?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},kf=W3?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},vy=z3?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},GS=G3?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},J3=V3?function(t){return t.trimStart()}:function(t){return t.replace(U3,"")},Z3=q3?function(t){return t.trimEnd()}:function(t){return t.replace(j3,"")};function VS(e,t){return new RegExp(e,t)}var Pf;if(Nf){var Ey=VS("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pf=function(t,n){var r;Ey.lastIndex=n;var i=Ey.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Pf=function(t,n){for(var r=[];;){var i=GS(t,n);if(i===void 0||qS(i)||nH(i))break;r.push(i),n+=i>=65536?2:1}return kf.apply(void 0,r)};var Q3=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 o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:kt.pound,location:pt(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ft.UNMATCHED_CLOSING_TAG,pt(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&xf(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.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:kt.literal,value:"<".concat(i,"/>"),location:pt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!xf(this.char()))return this.error(ft.INVALID_TAG,pt(a,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(ft.UNMATCHED_CLOSING_TAG,pt(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:kt.tag,value:i,children:s,location:pt(r,this.clonePosition())},err:null}:this.error(ft.INVALID_TAG,pt(a,this.clonePosition())))}else return this.error(ft.UNCLOSED_TAG,pt(r,this.clonePosition()))}else return this.error(ft.INVALID_TAG,pt(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&tH(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var c=pt(r,this.clonePosition());return{val:{type:kt.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!eH(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 kf.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(),kf(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,pt(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ft.EMPTY_ARGUMENT,pt(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(ft.MALFORMED_ARGUMENT,pt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,pt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:kt.argument,value:i,location:pt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,pt(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(ft.MALFORMED_ARGUMENT,pt(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Pf(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=pt(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(a){case"":return this.error(ft.EXPECT_ARGUMENT_TYPE,pt(s,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=Z3(d.val);if(m.length===0)return this.error(ft.EXPECT_ARGUMENT_STYLE,pt(this.clonePosition(),this.clonePosition()));var g=pt(h,this.clonePosition());u={style:m,styleLocation:g}}var E=this.tryParseArgumentClose(i);if(E.err)return E;var T=pt(i,this.clonePosition());if(u&&by(u?.style,"::",0)){var L=J3(u.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(L,u.styleLocation);return d.err?d:{val:{type:kt.number,value:r,location:T,style:d.val},err:null}}else{if(L.length===0)return this.error(ft.EXPECT_DATE_TIME_SKELETON,T);var H=L;this.locale&&(H=F3(L,this.locale));var m={type:Jo.dateTime,pattern:H,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?N3(H):{}},K=a==="date"?kt.date:kt.time;return{val:{type:K,value:r,location:T,style:m},err:null}}}return{val:{type:a==="number"?kt.number:a==="date"?kt.date:kt.time,value:r,location:T,style:(o=u?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var V=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ft.EXPECT_SELECT_ARGUMENT_OPTIONS,pt(V,Be({},V)));this.bumpSpace();var F=this.parseIdentifierIfPossible(),J=0;if(a!=="select"&&F.value==="offset"){if(!this.bumpIf(":"))return this.error(ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,pt(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ft.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),F=this.parseIdentifierIfPossible(),J=d.val}var D=this.tryParsePluralOrSelectOptions(t,a,n,F);if(D.err)return D;var E=this.tryParseArgumentClose(i);if(E.err)return E;var W=pt(i,this.clonePosition());return a==="select"?{val:{type:kt.select,value:r,options:vy(D.val),location:W},err:null}:{val:{type:kt.plural,value:r,options:vy(D.val),offset:J,pluralType:a==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(ft.INVALID_ARGUMENT_TYPE,pt(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,pt(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(ft.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,pt(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=P3(t)}catch{return this.error(ft.INVALID_NUMBER_SKELETON,n)}return{val:{type:Jo.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?B3(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],c=new Set,u=i.value,h=i.location;;){if(u.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(ft.EXPECT_PLURAL_ARGUMENT_SELECTOR,ft.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;h=pt(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(c.has(u))return this.error(n==="select"?ft.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ft.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);u==="other"&&(s=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?ft.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ft.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,pt(this.clonePosition(),this.clonePosition()));var E=this.parseMessage(t+1,n,r);if(E.err)return E;var T=this.tryParseArgumentClose(g);if(T.err)return T;a.push([u,{value:E.val,location:pt(g,this.clonePosition())}]),c.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,h=o.location}return a.length===0?this.error(n==="select"?ft.EXPECT_SELECT_ARGUMENT_SELECTOR:ft.EXPECT_PLURAL_ARGUMENT_SELECTOR,pt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ft.MISSING_OTHER_CLAUSE,pt(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 o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var c=pt(i,this.clonePosition());return o?(s*=r,X3(s)?{val:s,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=GS(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(by(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()&&qS(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 xf(e){return e>=97&&e<=122||e>=65&&e<=90}function eH(e){return xf(e)||e===47}function tH(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 qS(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function nH(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 Lf(e){e.forEach(function(t){if(delete t.location,BS(t)||FS(t))for(var n in t.options)delete t.options[n].location,Lf(t.options[n].value);else xS(t)&&US(t.style)||(LS(t)||DS(t))&&Mf(t.style)?delete t.style.location:HS(t)&&Lf(t.children)})}function rH(e,t){t===void 0&&(t={}),t=Be({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Q3(e,t).parse();if(n.err){var r=SyntaxError(ft[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||Lf(n.val),n.val}var Or;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Or||(Or={}));var Ci=function(e){dr(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Sy=function(e){dr(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Or.INVALID_VALUE,o)||this}return t}(Ci),iH=function(e){dr(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Or.INVALID_VALUE,i)||this}return t}(Ci),oH=function(e){dr(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,'"'),Or.MISSING_VALUE,r)||this}return t}(Ci),vn;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(vn||(vn={}));function sH(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==vn.literal||n.type!==vn.literal?t.push(n):r.value+=n.value,t},[])}function aH(e){return typeof e=="function"}function eu(e,t,n,r,i,o,s){if(e.length===1&&my(e[0]))return[{type:vn.literal,value:e[0].value}];for(var a=[],c=0,u=e;c<u.length;c++){var h=u[c];if(my(h)){a.push({type:vn.literal,value:h.value});continue}if(R3(h)){typeof o=="number"&&a.push({type:vn.literal,value:n.getNumberFormat(t).format(o)});continue}var d=h.value;if(!(i&&d in i))throw new oH(d,s);var m=i[d];if(C3(h)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),a.push({type:typeof m=="string"?vn.literal:vn.object,value:m});continue}if(LS(h)){var g=typeof h.style=="string"?r.date[h.style]:Mf(h.style)?h.style.parsedOptions:void 0;a.push({type:vn.literal,value:n.getDateTimeFormat(t,g).format(m)});continue}if(DS(h)){var g=typeof h.style=="string"?r.time[h.style]:Mf(h.style)?h.style.parsedOptions:r.time.medium;a.push({type:vn.literal,value:n.getDateTimeFormat(t,g).format(m)});continue}if(xS(h)){var g=typeof h.style=="string"?r.number[h.style]:US(h.style)?h.style.parsedOptions:void 0;g&&g.scale&&(m=m*(g.scale||1)),a.push({type:vn.literal,value:n.getNumberFormat(t,g).format(m)});continue}if(HS(h)){var E=h.children,T=h.value,L=i[T];if(!aH(L))throw new iH(T,"function",s);var H=eu(E,t,n,r,i,o),K=L(H.map(function(J){return J.value}));Array.isArray(K)||(K=[K]),a.push.apply(a,K.map(function(J){return{type:typeof J=="string"?vn.literal:vn.object,value:J}}))}if(BS(h)){var V=h.options[m]||h.options.other;if(!V)throw new Sy(h.value,m,Object.keys(h.options),s);a.push.apply(a,eu(V.value,t,n,r,i));continue}if(FS(h)){var V=h.options["=".concat(m)];if(!V){if(!Intl.PluralRules)throw new Ci(`Intl.PluralRules is not available in this environment.
515
515
  Try polyfilling it using "@formatjs/intl-pluralrules"
516
516
  `,Or.MISSING_INTL_API,s);var F=n.getPluralRules(t,{type:h.pluralType}).select(m-(h.offset||0));V=h.options[F]||h.options.other}if(!V)throw new Sy(h.value,m,Object.keys(h.options),s);a.push.apply(a,eu(V.value,t,n,r,i,m-(h.offset||0)));continue}}return sH(a)}function cH(e,t){return t?Be(Be(Be({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=Be(Be({},e[r]),t[r]||{}),n},{})):e}function uH(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=cH(e[r],t[r]),n},Be({},e)):e}function Ad(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function lH(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Er(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Br([void 0],n,!1)))},{cache:Ad(e.number),strategy:Sr.variadic}),getDateTimeFormat:Er(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Br([void 0],n,!1)))},{cache:Ad(e.dateTime),strategy:Sr.variadic}),getPluralRules:Er(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Br([void 0],n,!1)))},{cache:Ad(e.pluralRules),strategy:Sr.variadic})}}var YS=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var u=o.formatToParts(c);if(u.length===1)return u[0].value;var h=u.reduce(function(d,m){return!d.length||m.type!==vn.literal||typeof d[d.length-1]!="string"?d.push(m.value):d[d.length-1]+=m.value,d},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(c){return eu(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return{locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.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 s=i||{};s.formatters;var a=fw(s,["formatters"]);this.ast=e.__parse(t,Be(Be({},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=uH(e.formats,r),this.formatters=i&&i.formatters||lH(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=rH,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}(),Ji;(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"})(Ji||(Ji={}));var ba=function(e){dr(t,e);function t(n,r,i){var o=this,s=i?i instanceof Error?i:new Error(String(i)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
517
517
  `).concat(s?`
@@ -0,0 +1 @@
1
+ import"../__federation_fn_import-DHP1HS9A.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-CVN2FXZ4.js";import"../emotion-use-insertion-effect-with-fallbacks.browser.esm-CmaUBdeL.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};
@@ -1 +1 @@
1
- import{importShared as R}from"../__federation_fn_import-WDa0gv1I.js";import{m as z,g as L,s as M,_ as I,r as N,u as D,i as H}from"../emotion-use-insertion-effect-with-fallbacks.browser.esm-B75LdcJS.js";var U=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,q=z(function(a){return U.test(a)||a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&a.charCodeAt(2)<91});const{withEmotionCache:B,ThemeContext:V}=await R("@emotion/react"),m=await R("react");var W=!1,X=q,j=function(e){return e!=="theme"},_=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?X:j},A=function(e,i,l){var t;if(i){var o=i.shouldForwardProp;t=e.__emotion_forwardProp&&o?function(s){return e.__emotion_forwardProp(s)&&o(s)}:o}return typeof t!="function"&&l&&(t=e.__emotion_forwardProp),t},Y=function(e){var i=e.cache,l=e.serialized,t=e.isStringTag;return N(i,l,t),D(function(){return H(i,l,t)}),null},G=function a(e,i){var l=e.__emotion_real===e,t=l&&e.__emotion_base||e,o,s;i!==void 0&&(o=i.label,s=i.target);var b=A(e,i,l),x=b||_(t),k=!x("as");return function(){var u=arguments,d=l&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var P=u[0];d.push(P[0]);for(var E=u.length,f=1;f<E;f++)d.push(u[f],P[f])}var n=B(function(r,c,h){var S=k&&r.as||t,p="",w=[],g=r;if(r.theme==null){g={};for(var T in r)g[T]=r[T];g.theme=m.useContext(V)}typeof r.className=="string"?p=L(c.registered,w,r.className):r.className!=null&&(p=r.className+" ");var C=M(d.concat(w),c.registered,g);p+=c.key+"-"+C.name,s!==void 0&&(p+=" "+s);var F=k&&b===void 0?_(S):x,y={};for(var v in r)k&&v==="as"||F(v)&&(y[v]=r[v]);return y.className=p,h&&(y.ref=h),m.createElement(m.Fragment,null,m.createElement(Y,{cache:c,serialized:C,isStringTag:typeof S=="string"}),m.createElement(S,y))});return n.displayName=o!==void 0?o:"Styled("+(typeof t=="string"?t:t.displayName||t.name||"Component")+")",n.defaultProps=e.defaultProps,n.__emotion_real=n,n.__emotion_base=t,n.__emotion_styles=d,n.__emotion_forwardProp=b,Object.defineProperty(n,"toString",{value:function(){return s===void 0&&W?"NO_COMPONENT_SELECTOR":"."+s}}),n.withComponent=function(r,c){var h=a(r,I({},i,c,{shouldForwardProp:A(n,c,!0)}));return h.apply(void 0,d)},n}},K=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],O=G.bind(null);K.forEach(function(a){O[a]=O(a)});export{O as default};
1
+ import{importShared as R}from"../__federation_fn_import-DHP1HS9A.js";import{m as z,g as L,s as M,_ as I,r as N,u as D,i as H}from"../emotion-use-insertion-effect-with-fallbacks.browser.esm-CmaUBdeL.js";var U=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,q=z(function(a){return U.test(a)||a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&a.charCodeAt(2)<91});const{withEmotionCache:B,ThemeContext:V}=await R("@emotion/react"),m=await R("react");var W=!1,X=q,j=function(e){return e!=="theme"},_=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?X:j},A=function(e,i,l){var t;if(i){var o=i.shouldForwardProp;t=e.__emotion_forwardProp&&o?function(s){return e.__emotion_forwardProp(s)&&o(s)}:o}return typeof t!="function"&&l&&(t=e.__emotion_forwardProp),t},Y=function(e){var i=e.cache,l=e.serialized,t=e.isStringTag;return N(i,l,t),D(function(){return H(i,l,t)}),null},G=function a(e,i){var l=e.__emotion_real===e,t=l&&e.__emotion_base||e,o,s;i!==void 0&&(o=i.label,s=i.target);var b=A(e,i,l),x=b||_(t),k=!x("as");return function(){var u=arguments,d=l&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var P=u[0];d.push(P[0]);for(var E=u.length,f=1;f<E;f++)d.push(u[f],P[f])}var n=B(function(r,c,h){var S=k&&r.as||t,p="",w=[],g=r;if(r.theme==null){g={};for(var T in r)g[T]=r[T];g.theme=m.useContext(V)}typeof r.className=="string"?p=L(c.registered,w,r.className):r.className!=null&&(p=r.className+" ");var C=M(d.concat(w),c.registered,g);p+=c.key+"-"+C.name,s!==void 0&&(p+=" "+s);var F=k&&b===void 0?_(S):x,y={};for(var v in r)k&&v==="as"||F(v)&&(y[v]=r[v]);return y.className=p,h&&(y.ref=h),m.createElement(m.Fragment,null,m.createElement(Y,{cache:c,serialized:C,isStringTag:typeof S=="string"}),m.createElement(S,y))});return n.displayName=o!==void 0?o:"Styled("+(typeof t=="string"?t:t.displayName||t.name||"Component")+")",n.defaultProps=e.defaultProps,n.__emotion_real=n,n.__emotion_base=t,n.__emotion_styles=d,n.__emotion_forwardProp=b,Object.defineProperty(n,"toString",{value:function(){return s===void 0&&W?"NO_COMPONENT_SELECTOR":"."+s}}),n.withComponent=function(r,c){var h=a(r,I({},i,c,{shouldForwardProp:A(n,c,!0)}));return h.apply(void 0,d)},n}},K=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],O=G.bind(null);K.forEach(function(a){O[a]=O(a)});export{O as default};