1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HomePage-DwsIEbeO.js","assets/router-BXL9ASSk.js","assets/vendor-BNcAc9ko.js","assets/api-mWHPtFS7.js","assets/httpClient-B4llTHmd.js","assets/index-BqDtoUCL.js","assets/storage-FL96OxJv.js","assets/useSEO-wKy2eBAZ.js","assets/PromotionImpressionSlot-BrH6lpfT.js","assets/usePromotionTracking-C2NYZvgt.js","assets/sessionManager-DX5mT9Th.js","assets/PetitionPage-BVE2j9Qt.js","assets/index-BWiChJWZ.js","assets/iconBase-D9JQPfpv.js","assets/useAttributionTracking-ByJofaYm.js","assets/useGA4Tracking-z9DzkY0H.js","assets/RelatedPetitions-Ce7QXTFl.js","assets/petition-content-DoY6BEY1.css","assets/AdminDashboard-BW1__lRX.js","assets/HeroMessagesManagement-DisPMII1.js","assets/search-quQ_YTC8.js","assets/createLucideIcon-0jETPTlQ.js","assets/x-DLAfM6LU.js","assets/chevron-down-CWvLPyE6.js","assets/eye-mhWqvyfb.js","assets/copy-3fuCurG8.js","assets/trash-2-BUYcZ4PG.js","assets/AdminMainHub-DWBGJKIM.js","assets/AdminActivityDashboard-5u1pItnB.js","assets/activity-DFdfo2I0.js","assets/users-B9Vi1TvT.js","assets/target-BZCdxMO6.js","assets/trending-up-q7GTL3Gt.js","assets/dollar-sign-C817x2by.js","assets/bar-chart-3-C5rOR2aE.js","assets/refresh-cw-DpdzWL4G.js","assets/AdminPetitionsManagement-B2dofOZR.js","assets/PricingAssignmentModal-Boz4Qxsc.js","assets/SegmentAssignDialog-yBSzypNM.js","assets/AdminSecurityDashboard-D-HrIof3.js","assets/AdminTemplateManagement-0ZMNpAzL.js","assets/EmailAdminDashboard-DwR-1sSo.js","assets/index-oN9J3xou.js","assets/mail-CGU6BVZ7.js","assets/clock-C3lB925Y.js","assets/alert-circle-BgjQ34lX.js","assets/zap-9q6A1R2n.js","assets/send-BsvHfUW3.js","assets/arrow-right-Df9xyfGF.js","assets/check-circle-BIzd8jdG.js","assets/AdminEmailTemplates-BmvggeWX.js","assets/Editor-qH2SyrCb.js","assets/save-y-r7PvMF.js","assets/AdminCampaigns-BR8uNe-l.js","assets/ScheduledCampaigns-Z1F5i11J.js","assets/AdminControlReports-Cb3RBOyX.js","assets/download-BHnnZ1yJ.js","assets/alert-triangle-dzMD7fwt.js","assets/AdminOperations-BxMfznBB.js","assets/AdminABTestingDashboard-LylnRY2p.js","assets/PetitionSearch-B5ryP_SX.js","assets/AdminSubscriptionsPage-BjIG1R9a.js","assets/AdminUXEngineDashboard-DBsVc_d4.js","assets/SignFormTestsPage-wINSvSlD.js","assets/pencil-BF7c7rjt.js","assets/AdminFacebookCampaigns-Cec2FSFL.js","assets/AdminPetitionApprovals-NIfyfZCv.js","assets/AdminPetitionUpdates-DB9qioQf.js","assets/RichTextEditor-Bs1LaLNe.js","assets/AdminEmailSettings-CekTYUXM.js","assets/SegmentsCoverage-CwF0LoIz.js","assets/JourneysAdmin-CCO1ULYk.js","assets/check-circle-2-vfK4m0To.js","assets/consoleUi-IZsRkTdl.js","assets/play-gtbscSzj.js","assets/pause-circle-CtCSr5Ok.js","assets/chevron-right-DHfPOuy7.js","assets/SimulatorTab-DHJgpjQp.js","assets/shield-check-BYF1_51M.js","assets/layers-CYmH_g14.js","assets/AdminPromotionDashboard-Dwa6itSt.js","assets/AdminReports-Cin_Vkgb.js","assets/AdminReports-DV9zku-n.css","assets/OrchestrationDashboard-BDfQPKcF.js","assets/emailOpsPanels-Dmdgu8iy.js","assets/DashboardV3-B7oxQF1Y.js","assets/DashboardV3-C1hFrEAh.css","assets/SegmentsAdmin-DkkDlAof.js","assets/DecisionsPack-DX13axzt.js","assets/PreflightPanel-DBZlXzqe.js","assets/CampaignProgressShadow-B_tLOFUV.js","assets/EmailOrchestration-B-vZtVpI.js","assets/UserDashboard-BWPEIf48.js","assets/CreatePetitionPage-BpXz2qtX.js","assets/ImageUpload-B-_xzFij.js","assets/HeroPromotionPage-CwMBEe_O.js","assets/ShareAndRedirectPage-BvtioSZY.js","assets/SharePetitionPage-41ge6ixQ.js","assets/RecommendationsPage-D9q38Hla.js","assets/PetitionManagePage-ByApWIq0.js","assets/PetitionEditor-cQPIMtaZ.js","assets/PetitionUpdatesManager-DF7Ppl1b.js","assets/ProfilePage-DD8f0ZXw.js","assets/QuickSignSettingsPage-Bvo0ARql.js","assets/SearchPage-C0rxbcuz.js","assets/ContactPage-DdAyOyhf.js","assets/ReportContentPage-DNo6nIDV.js","assets/PaymentSuccessPage-D_tiigAY.js","assets/PayPalSubscriptionReturnPage-7GaMgD6L.js","assets/ForgotPasswordPage-le9eQeJ5.js","assets/ResetPasswordPage-CqOgKnTz.js","assets/PrivacyPolicyPage-DLJWVJ7q.js","assets/CookiePolicyPage-ny1T8d0B.js","assets/TermsOfServicePage-
1DA3KwOBd.js","assets/CommunityGuidelinesPage-MEEJ_eyC.js","assets/DoNotSellPage-CsGw58wE.js","assets/DebugPixel-Dc1dbsdo.js"])))=>i.map(i=>d[i]); 2import{r as tg,a as ng,b as rg,c as Di,g as Qo}from"./vendor-BNcAc9ko.js";import{r as O,u as ct,a as Zo,R as _e,B as sg,b as og,c as H,d as ei,N as ig}from"./router-BXL9ASSk.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"[email protected]"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="55bb4366-e1cb-4ce1-9a8d-62152ed5b10a",e._sentryDebugIdIdentifier="sentry-dbid-55bb4366-e1cb-4ce1-9a8d-62152ed5b10a")})()}catch{}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();var Ri={exports:{}},lr={};/** 3 * @license React 4 * react-jsx-runtime.production.min.js 5 * 6 * Copyright (c) Facebook, Inc. and its affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var Nu;function ag(){if(Nu)return lr;Nu=1;var e=tg(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(a,c,u){var l,d={},f=null,p=null;u!==void 0&&(f=""+u),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(p=c.ref);for(l in c)r.call(c,l)&&!o.hasOwnProperty(l)&&(d[l]=c[l]);if(a&&a.defaultProps)for(l in c=a.defaultProps,c)d[l]===void 0&&(d[l]=c[l]);return{$$typeof:t,type:a,key:f,ref:p,props:d,_owner:s.current}}return lr.Fragment=n,lr.jsx=i,lr.jsxs=i,lr}var Mu;function cg(){return Mu||(Mu=1,Ri.exports=ag()),Ri.exports}var m=cg();function Q8(e,t){}const z=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ce=globalThis,en="10.47.0";function fn(){return ti(ce),ce}function ti(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||en,t[en]=t[en]||{}}function Zn(e,t,n=ce){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[en]=r[en]||{};return s[e]||(s[e]=t())}const ug=["debug","info","warn","error","log","assert","trace"],lg="Sentry Logger ",vo={};function pn(e){if(!("console"in ce))return e();const t=ce.console,n={},r=Object.keys(vo);r.forEach(s=>{const o=vo[s];n[s]=t[s],t[s]=o});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function dg(){mc().enabled=!0}function fg(){mc().enabled=!1}function df(){return mc().enabled}function pg(...e){hc("log",...e)}function hg(...e){hc("warn",...e)}function mg(...e){hc("error",...e)}function hc(e,...t){z&&df()&&pn(()=>{ce.console[e](`${lg}[${e}]:`,...t)})}function mc(){return z?Zn("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const $={enable:dg,disable:fg,isEnabled:df,log:pg,warn:hg,error:mg},ff=50,an="?",Lu=/\(error: (.*)\)/,$u=/captureMessage|captureException/;function pf(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(` 11`);for(let a=r;a<i.length;a++){let c=i[a];c.length>1024&&(c=c.slice(0,1024));const u=Lu.test(c)?c.replace(Lu,"$1"):c;if(!u.match(/\S*Error: /)){for(const l of t){const d=l(u);if(d){o.push(d);break}}if(o.length>=ff+s)break}}return xg(o.slice(s))}}function gg(e){return Array.isArray(e)?pf(...e):e}function xg(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(as(t).function||"")&&t.pop(),t.reverse(),$u.test(as(t).function||"")&&(t.pop(),$u.test(as(t).function||"")&&t.pop()),t.slice(0,ff).map(n=>({...n,filename:n.filename||as(t).filename,function:n.function||an}))}function as(e){return e[e.length-1]||{}}const Bi="<anonymous>";function Lt(e){try{return!e||typeof e!="function"?Bi:e.name||Bi}catch{return Bi}}function ju(e){const t=e.exception;if(t){const n=[];
11try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function hf(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const vs={},Uu={};function Mr(e,t){vs[e]=vs[e]||[],vs[e].push(t)}function Lr(e,t){if(!Uu[e]){Uu[e]=!0;try{t()}catch(n){z&&$.error(`Error while instrumenting ${e}`,n)}}}function tn(e,t){const n=e&&vs[e];if(n)for(const r of n)try{r(t)}catch(s){z&&$.error(`Error while triggering instrumentation handler. 12Type: ${e} 13Name: ${Lt(r)} 14Error:`,s)}}let Fi=null;function mf(e){const t="error";Mr(t,e),Lr(t,_g)}function _g(){Fi=ce.onerror,ce.onerror=function(e,t,n,r,s){return tn("error",{column:r,error:s,line:n,msg:e,url:t}),Fi?Fi.apply(this,arguments):!1},ce.onerror.__SENTRY_INSTRUMENTED__=!0}let Oi=null;function gf(e){const t="unhandledrejection";Mr(t,e),Lr(t,yg)}function yg(){Oi=ce.onunhandledrejection,ce.onunhandledrejection=function(e){return tn("unhandledrejection",e),Oi?Oi.apply(this,arguments):!0},ce.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const xf=Object.prototype.toString;function ni(e){switch(xf.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return St(e,Error)}}function er(e,t){return xf.call(e)===`[object ${t}]`}function _f(e){return er(e,"ErrorEvent")}function Hu(e){return er(e,"DOMError")}function Sg(e){return er(e,"DOMException")}function Er(e){return er(e,"String")}function gc(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function ri(e){return e===null||gc(e)||typeof e!="object"&&typeof e!="function"}function Cr(e){return er(e,"Object")}function si(e){return typeof Event<"u"&&St(e,Event)}function vg(e){return typeof Element<"u"&&St(e,Element)}function bg(e){return er(e,"RegExp")}function $r(e){return!!(e?.then&&typeof e.then=="function")}function Eg(e){return Cr(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function St(e,t){try{return e instanceof t}catch{return!1}}function yf(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}function xc(e){return typeof Request<"u"&&St(e,Request)}const _c=ce,Cg=80;function Sf(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||Cg;for(;n&&o++<r&&(u=wg(n,l),!(u==="html"||o>1&&i+s.length*c+u.length>=d));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function wg(e,t){const n=e,r=[];if(!n?.tagName)return"";if(_c.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=t?.length?t.filter(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(s?.length)s.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&Er(o)){const i=o.split(/\s+/);for(const a of i)r.push(`.${a}`)}}for(const o of["aria-label","type","name","title","alt"]){const i=n.getAttribute(o);i&&r.push(`[${o}="${i}"]`)}return r.join("")}function jr(){try{return _c.document.location.href}catch{return""}}function Ag(e){if(!_c.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function mt(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&vf(s,r);try{e[t]=s}catch{z&&$.log(`Failed to replace method "${t}" in object`,e)}}function Ve(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{z&&$.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function vf(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Ve(e,"__sentry_original__",t)}catch{}}function yc(e){return e.__sentry_original__}function bf(e){if(ni(e))return{message:e.message,name:e.name,stack:e.stack,...Wu(e)};if(si(e)){const t={type:e.type,target:zu(e.target),currentTarget:zu(e.currentTarget),...Wu(e)};return typeof CustomEvent<"u"&&St(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function zu(e){try{return vg(e)?Sf(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}
14function Wu(e){return typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e)):{}}function Tg(e){const t=Object.keys(bf(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}let vn;function Ur(e){if(vn!==void 0)return vn?vn(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=ce;return t in n&&typeof n[t]=="function"?(vn=n[t],vn(e)):(vn=null,e())}function Dt(){return Ur(()=>Math.random())}function Hr(){return Ur(()=>Date.now())}function _a(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function qu(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{yf(s)?n.push(hf(s)):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function bs(e,t,n=!1){return Er(e)?bg(t)?t.test(e):Er(t)?n?e===t:e.includes(t):!1:!1}function nn(e,t=[],n=!1){return t.some(r=>bs(e,r,n))}function kg(){const e=ce;return e.crypto||e.msCrypto}let Pi;function Ig(){return Dt()*16}function Qe(e=kg()){try{if(e?.randomUUID)return Ur(()=>e.randomUUID()).replace(/-/g,"")}catch{}return Pi||(Pi="10000000100040008000"+1e11),Pi.replace(/[018]/g,t=>(t^(Ig()&15)>>t/4).toString(16))}function Ef(e){return e.exception?.values?.[0]}function Xt(e){const{message:t,event_id:n}=e;if(t)return t;const r=Ef(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function ya(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type="Error")}function Un(e,t){const n=Ef(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const o={...s?.data,...t.data};n.mechanism.data=o}}function Vu(e){if(Dg(e))return!0;try{Ve(e,"__sentry_captured__",!0)}catch{}return!1}function Dg(e){try{return e.__sentry_captured__}catch{}}const Cf=1e3;function hn(){return Hr()/Cf}function Rg(){const{performance:e}=ce;if(!e?.now||!e.timeOrigin)return hn;const t=e.timeOrigin;return()=>(t+Ur(()=>e.now()))/Cf}let Gu;function $e(){return(Gu??(Gu=Rg()))()}let Ni=null;function Bg(){const{performance:e}=ce;if(!e?.now)return;const t=3e5,n=Ur(()=>e.now()),r=Hr(),s=e.timeOrigin;if(typeof s=="number"&&Math.abs(s+n-r)<t)return s;const o=e.timing?.navigationStart;return typeof o=="number"&&Math.abs(o+n-r)<t?o:r-n}function Fg(){return Ni===null&&(Ni=Bg()),Ni}
14function Og(e){const t=$e(),n={sid:Qe(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Ng(n)};return e&&Hn(n,e),n}function Hn(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||$e(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Qe()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Pg(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Hn(e,n)}function Ng(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function zr(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=zr(r[s],t[s],n-1));return r}function vt(){return Qe()}function xt(){return Qe().substring(16)}const Sa="_sentrySpan";function wr(e,t){t?Ve(e,Sa,t):delete e[Sa]}function bo(e){return e[Sa]}const Mg=100;let zn=class va{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:vt(),sampleRand:Dt()}}clone(){const t=new va;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,wr(t,bo(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Hn(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof va?n.getScopeData():Cr(n)?t:void 0,{tags:s,attributes:o,extra:i,user:a,contexts:c,level:u,fingerprint:l=[],propagationContext:d,conversationId:f}=r||{};return this._tags={...this._tags,...s},this._attributes={...this._attributes,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),l.length&&(this._fingerprint=l),d&&(this._propagationContext=d),f&&(this._conversationId=f),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,wr(this,void 0),this._attachments=[],this.setPropagationContext({traceId:vt(),sampleRand:Dt()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Mg;if(r<=0)return this;const s={timestamp:hn(),...t,message:t.message?_a(t.message,2048):t.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:bo(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=zr(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||Qe();if(!this._client)return z&&$.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r?.event_id||Qe();if(!this._client)return z&&$.warn("No client configured on scope - will not capture message!"),s;const o=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=t.event_id||n?.event_id||Qe();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(z&&$.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
14h(t=>{t(this)}),this._notifyingListeners=!1)}};function Lg(){return Zn("defaultCurrentScope",()=>new zn)}function $g(){return Zn("defaultIsolationScope",()=>new zn)}const Yu=e=>e instanceof Promise&&!e[wf],wf=Symbol("chained PromiseLike"),jg=(e,t,n)=>{const r=e.then(s=>(t(s),s),s=>{throw n(s),s});return Yu(r)&&Yu(e)?r:Ug(e,r)},Ug=(e,t)=>{let n=!1;for(const r in e){if(r in t)continue;n=!0;const s=e[r];typeof s=="function"?Object.defineProperty(t,r,{value:(...o)=>s.apply(e,o),enumerable:!0,configurable:!0,writable:!0}):t[r]=s}return n&&Object.assign(t,{[wf]:!0}),t};let Hg=class{constructor(t,n){let r;t?r=t:r=new zn;let s;n?s=n:s=new zn,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return $r(r)?jg(r,()=>this._popScope(),()=>this._popScope()):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Wn(){const e=fn(),t=ti(e);return t.stack=t.stack||new Hg(Lg(),$g())}function zg(e){return Wn().withScope(e)}function Wg(e,t){const n=Wn();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Ku(e){return Wn().withScope(()=>e(Wn().getIsolationScope()))}function qg(){return{withIsolationScope:Ku,withScope:zg,withSetScope:Wg,withSetIsolationScope:(e,t)=>Ku(t),getCurrentScope:()=>Wn().getScope(),getIsolationScope:()=>Wn().getIsolationScope()}}function tr(e){const t=ti(e);return t.acs?t.acs:qg()}function ve(){const e=fn();return tr(e).getCurrentScope()}function ut(){const e=fn();return tr(e).getIsolationScope()}function Vg(){return Zn("globalScope",()=>new zn)}function oi(...e){const t=fn(),n=tr(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function ue(){return ve().getClient()}function Gg(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=t,o={trace_id:n,span_id:s||xt()};return r&&(o.parent_span_id=r),o}const gt="sentry.source",Sc="sentry.sample_rate",Af="sentry.previous_trace_sample_rate",Ar="sentry.op",cn="sentry.origin",Tr="sentry.idle_span_finish_reason",Yg="sentry.measurement_unit",Kg="sentry.measurement_value",Xu="sentry.custom_span_name",vc="sentry.profile_id",bc="sentry.exclusive_time",Xg="sentry.link.type",Jg="gen_ai.conversation.id",Qg=0,Ec=1,we=2;function Zg(e){if(e<400&&e>=100)return{code:Ec};if(e>=400&&e<500)switch(e){case 401:return{code:we,message:"unauthenticated"};case 403:return{code:we,message:"permission_denied"};case 404:return{code:we,message:"not_found"};case 409:return{code:we,message:"already_exists"};case 413:return{code:we,message:"failed_precondition"};case 429:return{code:we,message:"resource_exhausted"};case 499:return{code:we,message:"cancelled"};default:return{code:we,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:we,message:"unimplemented"};case 503:return{code:we,message:"unavailable"};case 504:return{code:we,message:"deadline_exceeded"};default:return{code:we,message:"internal_error"}}return{code:we,message:"internal_error"}}function Tf(e,t){e.setAttribute("http.response.status_code",t);const n=Zg(t);n.message!=="unknown_error"&&e.setStatus(n)}const kf="_sentryScope",If="_sentryIsolationScope";function ex(e){try{const t=ce.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function tx(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}function nx(e,t,n){e&&(Ve(e,If,ex(n)),Ve(e,kf,t))}function Eo(e){const t=e;return{scope:t[kf],isolationScope:tx(t[If])}}const Co="sentry-",rx=8192;function Df(e){const t=ox(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,o])=>{if(s.startsWith(Co)){const i=s.slice(Co.length);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function sx(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${Co}${r}`]=s),n),{});return ix(t)}function ox(e){if(!(!e||!Er(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Ju(n);return Object.entries(r).forEach(([s,o])=>{t[s]=o}),t},{}):Ju(e)}function Ju(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),s=t.slice(n+1);return[r,s].map(o=>{try{return decodeURIComponent(o.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function ix(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,i=s===0?o:`${t},${o}`;return i.length>rx?(z&&$.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):i},"")}const ax=/^o(\d+)\./,cx=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function ux(e){return e==="http"||e==="https"}function nr(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function lx(e){const t=cx.exec(e);if(!t){pn(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",o="",i="",a=""]=t.slice(1);let c="",u=a;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const d=u.match(/^\d+/);
14d&&(u=d[0])}return Rf({host:o,pass:s,path:c,projectId:u,port:i,protocol:n,publicKey:r})}function Rf(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function dx(e){if(!z)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:($.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?ux(r)?t&&isNaN(parseInt(t,10))?($.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:($.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):($.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function fx(e){return e.match(ax)?.[1]}function px(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=fx(n)),r}function hx(e){const t=typeof e=="string"?lx(e):Rf(e);if(!(!t||!dx(t)))return t}function kr(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const Bf=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function mx(e){if(!e)return;const t=e.match(Bf);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function gx(e,t){const n=mx(e),r=Df(t);if(!n?.traceId)return{traceId:vt(),sampleRand:Dt()};const s=xx(n,r);r&&(r.sample_rand=s.toString());const{traceId:o,parentSpanId:i,parentSampled:a}=n;return{traceId:o,parentSpanId:i,sampled:a,dsc:r||{},sampleRand:s}}function Ff(e=vt(),t=xt(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Of(e=vt(),t=xt(),n){return`00-${e}-${t}-${n?"01":"00"}`}function xx(e,t){const n=kr(t?.sample_rand);if(n!==void 0)return n;const r=kr(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Dt()*r:r+Dt()*(1-r):Dt()}const Pf=0,Cc=1;let Qu=!1;function _x(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:o,status:i,origin:a,links:c}=me(e);return{parent_span_id:o,span_id:t,trace_id:n,data:r,op:s,status:i,origin:a,links:c}}function yx(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:me(e).parent_span_id,o=Eo(e).scope,i=r?o?.getPropagationContext().propagationSpanId||xt():t;return{parent_span_id:s,span_id:i,trace_id:n}}function Sx(e){const{traceId:t,spanId:n}=e.spanContext(),r=Ut(e);return Ff(t,n,r)}function vx(e){const{traceId:t,spanId:n}=e.spanContext(),r=Ut(e);return Of(t,n,r)}function Nf(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...s},attributes:o})=>({span_id:t,trace_id:n,sampled:r===Cc,attributes:o,...s}))}function rn(e){return typeof e=="number"?Zu(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Zu(e.getTime()):$e()}function Zu(e){return e>9999999999?e/1e3:e}function me(e){if(Ex(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(bx(e)){const{attributes:r,startTime:s,name:o,endTime:i,status:a,links:c}=e,u="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:r,description:o,parent_span_id:u,start_timestamp:rn(s),timestamp:rn(i)||void 0,status:Mf(a),op:r[Ar],origin:r[cn],links:Nf(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function bx(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Ex(e){return typeof e.getSpanJSON=="function"}function Ut(e){const{traceFlags:t}=e.spanContext();return t===Cc}function Mf(e){if(!(!e||e.code===Qg))return e.code===Ec?"ok":e.message||"internal_error"}const sn="_sentryChildSpans",ba="_sentryRootSpan";function Lf(e,t){const n=e[ba]||e;Ve(t,ba,n),e[sn]?e[sn].add(t):Ve(e,sn,new Set([t]))}function Cx(e,t){e[sn]&&e[sn].delete(t)}function Es(e){const t=new Set;function n(r){if(!t.has(r)&&Ut(r)){t.add(r);const s=r[sn]?Array.from(r[sn]):[];for(const o of s)n(o)}}return n(e),Array.from(t)}function Ze(e){return e[ba]||e}function rr(){const e=fn(),t=tr(e);return t.getActiveSpan?t.getActiveSpan():bo(ve())}function Ea(){Qu||(pn(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Qu=!0)}let el=!1;function wx(){if(el)return;function e(){const t=rr(),n=t&&Ze(t);if(n){const r="internal_error";z&&$.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:we,message:r})}}e.tag="sentry_tracingErrorCallback",el=!0,mf(e),gf(e)}function et(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||ue()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function tl(e){$.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function wo(e,t){if(!t?.length||!e.description)return!1;for(const n of t){if(Tx(n)){if(bs(e.description,n))return z&&tl(e),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?bs(e.description,n.name):!0,s=n.op?e.op&&bs(e.op,n.op):!0;if(r&&s)return z&&tl(e),!0}return!1}function Ax(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const s of e)s.parent_span_id===r&&(s.parent_span_id=n)}function Tx(e){return typeof e=="string"||e instanceof RegExp}const wc="production",$f="_frozenDsc";function Cs(e,t){Ve(e,$f,t)}function jf(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s={environment:n.environment||wc,release:n.release,public_key:r,trace_id:e,org_id:px(t)};return t.emit("createDsc",s),s}function Uf(e,t){const n=t.getPropagationContext();return n.dsc||jf(n.traceId,e)}function $t(e){const t=ue();if(!t)return{};const n=Ze(e),r=me(n),s=r.data,o=n.spanContext().traceState,i=o?.get("sentry.sample_rate")??s[Sc]??s[Af];function a(h){return(typeof i=="number"||typeof i=="string")&&(h.sample_rate=`${i}`),h}const c=n[$f];if(c)return a(c);const u=o?.get("sentry.dsc"),l=u&&Df(u);if(l)return a(l);const d=jf(e.spanContext().traceId,t),f=s[gt],p=r.description;return f!=="url"&&p&&(d.transaction=p),et()&&(d.sampled=String(Ut(n)),d.sample_rand=o?.get("sentry.sample_rand")??Eo(n).scope?.getPropagationContext().sampleRand.toString()),a(d),t.emit("createDsc",d,n),d}let un=class{constructor(t={}){this._traceId=t.traceId||vt(),this._spanId=t.spanId||xt()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Pf}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}
14addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}};function pt(e,t=100,n=1/0){try{return Ca("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Hf(e,t=3,n=100*1024){const r=pt(e,t);return Rx(r)>n?Hf(e,t-1,n):r}function Ca(e,t,n=1/0,r=1/0,s=Bx()){const[o,i]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=kx(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const p=u.toJSON();return Ca("",p,c-1,r,s)}catch{}const l=Array.isArray(t)?[]:{};let d=0;const f=bf(t);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(d>=r){l[p]="[MaxProperties ~]";break}const h=f[p];l[p]=Ca(p,h,c-1,r,s),d++}return i(t),l}function kx(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(yf(t))return hf(t);if(Eg(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Lt(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Ix(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Ix(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function Dx(e){return~-encodeURI(e).split(/%..|./).length}function Rx(e){return Dx(JSON.stringify(e))}function Bx(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function mn(e,t=[]){return[e,t]}function Fx(e,t){const[n,r]=e;return[n,[...r,t]]}function wa(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function Ox(e,t){return wa(e,(n,r)=>t.includes(r))}function Aa(e){const t=ti(ce);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function Px(e){const[t,n]=e;let r=JSON.stringify(t);function s(o){typeof r=="string"?r=typeof o=="string"?r+o:[Aa(r),o]:r.push(typeof o=="string"?Aa(o):o)}for(const o of n){const[i,a]=o;if(s(` 15${JSON.stringify(i)} 16`),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(pt(a))}s(c)}}return typeof r=="string"?r:Nx(r)}function Nx(e){const t=e.reduce((s,o)=>s+o.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function Mx(e){return[{type:"span"},e]}function Lx(e){const t=typeof e.data=="string"?Aa(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const zf={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function $x(e){return e in zf}function nl(e){return $x(e)?zf[e]:e}function Wf(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function jx(e,t,n,r){const s=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:nr(r)},...s&&{trace:s}}}function Ux(e,t){if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function Hx(e,t,n,r){const s=Wf(n),o={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:nr(t)}},i="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return mn(o,[i])}function zx(e,t,n,r){const s=Wf(n),o=e.type&&e.type!=="replay_event"?e.type:"event";Ux(e,n?.sdk);const i=jx(e,s,r,t);return delete e.sdkProcessingMetadata,mn(i,[[{type:o},e]])}function Wx(e,t){function n(p){return!!p.trace_id&&!!p.public_key}const r=$t(e[0]),s=t?.getDsn(),o=t?.getOptions().tunnel,i={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!o&&s&&{dsn:nr(s)}},{beforeSendSpan:a,ignoreSpans:c}=t?.getOptions()||{},u=c?.length?e.filter(p=>!wo(me(p),c)):e,l=e.length-u.length;l&&t?.recordDroppedEvent("before_send","span",l);const d=a?p=>{const h=me(p),g=a(h);return g||(Ea(),h)}:me,f=[];for(const p of u){const h=d(p);h&&f.push(Mx(h))}return mn(i,f)}function qx(e){if(!z)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=me(e),{spanId:s}=e.spanContext(),o=Ut(e),i=Ze(e),a=i===e,c=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(r&&u.push(`parent ID: ${r}`),!a){const{op:l,description:d}=me(i);u.push(`root ID: ${i.spanContext().spanId}`),l&&u.push(`root op: ${l}`),d&&u.push(`root description: ${d}`)}$.log(`${c} 17 ${u.join(` 18 `)}`)}function Vx(e){if(!z)return;const{description:t="< unknown name >",op:n="< unknown op >"}=me(e),{spanId:r}=e.spanContext(),o=Ze(e)===e,i=`[Tracing] Finishing "${n}" ${o?"root ":""}span "${t}" with ID ${r}`;$.log(i)}function rl(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},s=r[Yg],o=r[Kg];typeof s=="string"&&typeof o=="number"&&(t[n.name]={value:o,unit:s})}),t}const sl=1e3;let ii=class{constructor(t={}){this._traceId=t.traceId||vt(),this._spanId=t.spanId||xt(),this._startTime=t.startTimestamp||$e(),this._links=t.links,this._attributes={},this.setAttributes({[cn]:"manual",[Ar]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}
18addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Cc:Pf}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=rn(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(gt,"custom"),this}end(t){this._endTime||(this._endTime=rn(t),Vx(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Ar],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Mf(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[cn],profile_id:this._attributes[vc],exclusive_time:this._attributes[bc],measurements:rl(this._events),is_segment:this._isStandaloneSpan&&Ze(this)===this||void 0,segment_id:this._isStandaloneSpan?Ze(this).spanContext().spanId:void 0,links:Nf(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){z&&$.log("[Tracing] Adding an event to span:",t);const s=ol(n)?n:r||$e(),o=ol(n)?{}:n||{},i={name:t,time:rn(s),attributes:o};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=ue();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===Ze(this)))return;if(this._isStandaloneSpan){this._sampled?Yx(Wx([this],t)):(z&&$.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(Eo(this).scope||ve()).captureEvent(r)}_convertSpanToTransaction(){if(!il(me(this)))return;this._name||(z&&$.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=Eo(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const o=Es(this).filter(l=>l!==this&&!Gx(l)).map(l=>me(l)).filter(il),i=this._attributes[gt];delete this._attributes[Xu],o.forEach(l=>{delete l.data[Xu]});const a={contexts:{trace:_x(this)},spans:o.length>sl?o.sort((l,d)=>l.start_timestamp-d.start_timestamp).slice(0,sl):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:$t(this)},request:r,...i&&{transaction_info:{source:i}}},c=rl(this._events);return c&&Object.keys(c).length&&(z&&$.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),a.measurements=c),a}};function ol(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function il(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Gx(e){return e instanceof ii&&e.isStandaloneSpan()}function Yx(e){const t=ue();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function Kx(e,t,n){if(!et(e))return[!1];let r,s;typeof e.tracesSampler=="function"?(s=e.tracesSampler({...t,inheritOrSampleWith:a=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):a}),r=!0):t.parentSampled!==void 0?s=t.parentSampled:typeof e.tracesSampleRate<"u"&&(s=e.tracesSampleRate,r=!0);const o=kr(s);if(o===void 0)return z&&$.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(s)} of type ${JSON.stringify(typeof s)}.`),[!1];if(!o)return z&&$.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,o,r];const i=n<o;return i||z&&$.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),[i,o,r]}
18const qf="__SENTRY_SUPPRESS_TRACING__";function ai(e){const t=Vf();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=Qx(e),{forceTransaction:r,parentSpan:s}=e;return(e.scope?i=>oi(e.scope,i):s!==void 0?i=>Xx(s,i):i=>i())(()=>{const i=ve(),a=e_(i,s);return e.onlyIfParent&&!a?new un:Jx({parentSpan:a,spanArguments:n,forceTransaction:r,scope:i})})}function Xx(e,t){const n=Vf();return n.withActiveSpan?n.withActiveSpan(e,t):oi(r=>(wr(r,e||void 0),t(r)))}function Jx({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!et()){const i=new un;if(n||!e){const a={sampled:"false",sample_rate:"0",transaction:t.name,...$t(i)};Cs(i,a)}return i}const s=ut();let o;if(e&&!n)o=Zx(e,r,t),Lf(e,o);else if(e){const i=$t(e),{traceId:a,spanId:c}=e.spanContext(),u=Ut(e);o=al({traceId:a,parentSpanId:c,...t},r,u),Cs(o,i)}else{const{traceId:i,dsc:a,parentSpanId:c,sampled:u}={...s.getPropagationContext(),...r.getPropagationContext()};o=al({traceId:i,parentSpanId:c,...t},r,u),a&&Cs(o,a)}return qx(o),nx(o,r,s),o}function Qx(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=rn(e.startTime),delete r.startTime,r}return n}function Vf(){const e=fn();return tr(e)}function al(e,t,n){const r=ue(),s=r?.getOptions()||{},{name:o=""}=e,i={spanAttributes:{...e.attributes},spanName:o,parentSampled:n};r?.emit("beforeSampling",i,{decision:!1});const a=i.parentSampled??n,c=i.spanAttributes,u=t.getPropagationContext(),[l,d,f]=t.getScopeData().sdkProcessingMetadata[qf]?[!1]:Kx(s,{name:o,parentSampled:a,attributes:c,parentSampleRate:kr(u.dsc?.sample_rate)},u.sampleRand),p=new ii({...e,attributes:{[gt]:"custom",[Sc]:d!==void 0&&f?d:void 0,...c},sampled:l});return!l&&r&&(z&&$.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",p),p}function Zx(e,t,n){const{spanId:r,traceId:s}=e.spanContext(),o=t.getScopeData().sdkProcessingMetadata[qf]?!1:Ut(e),i=o?new ii({...n,parentSpanId:r,traceId:s,sampled:o}):new un({traceId:s});Lf(e,i);const a=ue();return a&&(a.emit("spanStart",i),n.endTimestamp&&a.emit("spanEnd",i)),i}function e_(e,t){if(t)return t;if(t===null)return;const n=bo(e);if(!n)return;const r=ue();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Ze(n):n}const ws={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},t_="heartbeatFailed",n_="idleTimeout",r_="finalTimeout",s_="externalFinish";function Gf(e,t={}){const n=new Map;let r=!1,s,o=s_,i=!t.disableAutoFinish;const a=[],{idleTimeout:c=ws.idleTimeout,finalTimeout:u=ws.finalTimeout,childSpanTimeout:l=ws.childSpanTimeout,beforeSpanEnd:d,trimIdleSpanEndTimestamp:f=!0}=t,p=ue();if(!p||!et()){const y=new un,C={sample_rate:"0",sampled:"false",...$t(y)};return Cs(y,C),y}const h=ve(),g=rr(),_=o_(e);_.end=new Proxy(_.end,{apply(y,C,P){if(d&&d(_),C instanceof un)return;const[E,...A]=P,k=E||$e(),D=rn(k),M=Es(_).filter(L=>L!==_),j=me(_);if(!M.length||!f)return w(D),Reflect.apply(y,C,[D,...A]);const U=p.getOptions().ignoreSpans,V=M?.reduce((L,I)=>{const R=me(I);return!R.timestamp||U&&wo(R,U)?L:L?Math.max(L,R.timestamp):R.timestamp},void 0),N=j.start_timestamp,q=Math.min(N?N+u/1e3:1/0,Math.max(N||-1/0,Math.min(D,V||1/0)));return w(q),Reflect.apply(y,C,[q,...A])}});function v(){s&&(clearTimeout(s),s=void 0)}function S(y){v(),s=setTimeout(()=>{!r&&n.size===0&&i&&(o=n_,_.end(y))},c)}function x(y){s=setTimeout(()=>{!r&&i&&(o=t_,_.end(y))},l)}function b(y){v(),n.set(y,!0);const C=$e();x(C+l/1e3)}function T(y){if(n.has(y)&&n.delete(y),n.size===0){const C=$e();S(C+c/1e3)}}function w(y){r=!0,n.clear(),a.forEach(M=>M()),wr(h,g);const C=me(_),{start_timestamp:P}=C;if(!P)return;C.data[Tr]||_.setAttribute(Tr,o);const A=C.status;(!A||A==="unknown")&&_.setStatus({code:Ec}),$.log(`[Tracing] Idle span "${C.op}" finished`);const k=Es(_).filter(M=>M!==_);let D=0;k.forEach(M=>{M.isRecording()&&(M.setStatus({code:we,message:"cancelled"}),M.end(y),z&&$.log("[Tracing] Cancelling span since span ended early",JSON.stringify(M,void 0,2)));const j=me(M),{timestamp:U=0,start_timestamp:V=0}=j,N=V<=y,q=(u+c)/1e3,L=U-V<=q;if(z){const I=JSON.stringify(M,void 0,2);N?L||$.log("[Tracing] Discarding span since it finished after idle span final timeout",I):$.log("[Tracing] Discarding span since it happened after idle span was finished",I)}(!L||!N)&&(Cx(_,M),D++)}),D>0&&_.setAttribute("sentry.idle_span_discarded_spans",D)}return a.push(p.on("spanStart",y=>{if(r||y===_||me(y).timestamp||y instanceof ii&&y.isStandaloneSpan())return;Es(_).includes(y)&&b(y.spanContext().spanId)})),a.push(p.on("spanEnd",y=>{r||T(y.spanContext().spanId)})),a.push(p.on("idleSpanEnableAutoFinish",y=>{y===_&&(i=!0,S(),n.size&&x())})),t.disableAutoFinish||S(),setTimeout(()=>{r||(_.setStatus({code:we,message:"deadline_exceeded"}),o=r_,_.end())},u),_}function o_(e){const t=ai(e);
18return wr(ve(),t),z&&$.log("[Tracing] Started span is an idle span"),t}const Mi=0,cl=1,ul=2;function Wr(e){return new Yf(t=>{t(e)})}function Ac(e){return new Yf((t,n)=>{n(e)})}let Yf=class Ta{constructor(t){this._state=Mi,this._handlers=[],this._runExecutor(t)}then(t,n){return new Ta((r,s)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Ta((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,t&&t()},i=>{o=!0,s=i,t&&t()}).then(()=>{if(o){r(s);return}n(s)})})}_executeHandlers(){if(this._state===Mi)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===cl&&n[1](this._value),this._state===ul&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(o,i)=>{if(this._state===Mi){if($r(i)){i.then(r,s);return}this._state=o,this._value=i,this._executeHandlers()}},r=o=>{n(cl,o)},s=o=>{n(ul,o)};try{t(r,s)}catch(o){s(o)}}};function i_(e,t,n,r=0){try{const s=ka(t,n,e,r);return $r(s)?s:Wr(s)}catch(s){return Ac(s)}}function ka(e,t,n,r){const s=n[r];if(!e||!s)return e;const o=s({...e},t);return z&&o===null&&$.log(`Event processor "${s.id||"?"}" dropped event`),$r(o)?o.then(i=>ka(i,t,n,r+1)):ka(o,t,n,r+1)}let Gt,ll,dl,At;function a_(e){const t=ce._sentryDebugIds,n=ce._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],s=n?Object.keys(n):[];if(At&&r.length===ll&&s.length===dl)return At;ll=r.length,dl=s.length,At={},Gt||(Gt={});const o=(i,a)=>{for(const c of i){const u=a[c],l=Gt?.[c];if(l&&At&&u)At[l[0]]=u,Gt&&(Gt[c]=[l[0],u]);else if(u){const d=e(c);for(let f=d.length-1;f>=0;f--){const h=d[f]?.filename;if(h&&At&&Gt){At[h]=u,Gt[c]=[h,u];break}}}}};return t&&o(r,t),n&&o(s,n),At}function c_(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=t;u_(e,t),r&&f_(e,r),p_(e,n),l_(e,s),d_(e,o)}function fl(e,t){const{extra:n,tags:r,attributes:s,user:o,contexts:i,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:l,eventProcessors:d,attachments:f,propagationContext:p,transactionName:h,span:g}=t;dr(e,"extra",n),dr(e,"tags",r),dr(e,"attributes",s),dr(e,"user",o),dr(e,"contexts",i),e.sdkProcessingMetadata=zr(e.sdkProcessingMetadata,c,2),a&&(e.level=a),h&&(e.transactionName=h),g&&(e.span=g),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function dr(e,t,n){e[t]=zr(e[t],n,1)}function Kf(e,t){const n=Vg().getScopeData();return e&&fl(n,e.getScopeData()),t&&fl(n,t.getScopeData()),n}function u_(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(s).length&&(e.user={...s,...e.user}),Object.keys(o).length&&(e.contexts={...o,...e.contexts}),i&&(e.level=i),a&&e.type!=="transaction"&&(e.transaction=a)}function l_(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function d_(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function f_(e,t){e.contexts={trace:yx(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:$t(t),...e.sdkProcessingMetadata};const n=Ze(t),r=me(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function p_(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function h_(e,t,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Qe(),timestamp:t.timestamp||hn()},u=n.integrations||e.integrations.map(v=>v.name);m_(c,e),__(c,u),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&g_(c,e.stackParser);const l=S_(r,n.captureContext);n.mechanism&&Un(c,n.mechanism);const d=s?s.getEventProcessors():[],f=Kf(o,l),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),c_(c,f);const h=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?Wr(c):i_(h,c,n)).then(v=>(v&&x_(v),typeof i=="number"&&i>0?y_(v,i,a):v))}function m_(e,t){const{environment:n,release:r,dist:s,maxValueLength:o}=t;e.environment=e.environment||n||wc,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s);const i=e.request;i?.url&&o&&(i.url=_a(i.url,o)),o&&e.exception?.values?.forEach(a=>
18{a.value&&(a.value=_a(a.value,o))})}function g_(e,t){const n=a_(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.filename&&(s.debug_id=n[s.filename])})})}function x_(e){const t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function __(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function y_(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:pt(s.data,t,n)}}))},...e.user&&{user:pt(e.user,t,n)},...e.contexts&&{contexts:pt(e.contexts,t,n)},...e.extra&&{extra:pt(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=pt(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:pt(s.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=pt(e.contexts.flags,3,n)),r}function S_(e,t){if(!t)return e;const n=e?e.clone():new zn;return n.update(t),n}function Xf(e,t){return ve().captureException(e,void 0)}function Jf(e,t){return ve().captureEvent(e,t)}function v_(e,t){ut().setContext(e,t)}function b_(){const e=ue();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function pl(e){const t=ut(),{user:n}=Kf(t,ve()),{userAgent:r}=ce.navigator||{},s=Og({user:n,...r&&{userAgent:r},...e}),o=t.getSession();return o?.status==="ok"&&Hn(o,{status:"exited"}),Qf(),t.setSession(s),s}function Qf(){const e=ut(),n=ve().getSession()||e.getSession();n&&Pg(n),Zf(),e.setSession()}function Zf(){const e=ut(),t=ue(),n=e.getSession();n&&t&&t.captureSession(n)}function Li(e=!1){if(e){Qf();return}Zf()}const E_="7";function C_(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function w_(e){return`${C_(e)}${e.projectId}/envelope/`}function A_(e,t){const n={sentry_version:E_};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function T_(e,t,n){return t||`${w_(e)}?${A_(e,n)}`}const hl=[];function k_(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function I_(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const s=n(t);r=Array.isArray(s)?s:[s]}else r=t;return k_(r)}function D_(e,t){const n={};return t.forEach(r=>{r&&ep(e,r,n)}),n}function ml(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function ep(e,t,n){if(n[t.name]){z&&$.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!hl.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),hl.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,o)=>r(s,o,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((o,i)=>r(o,i,e),{id:t.name});e.addEventProcessor(s)}z&&$.log(`Integration installed: ${t.name}`)}function R_(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function B_(e,t,n,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=nr(r)),mn(s,[R_(e)])}function Ia(e,t){const n=t??F_(e)??[];if(n.length===0)return;const r=e.getOptions(),s=B_(n,r._metadata,r.tunnel,e.getDsn());tp().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function F_(e){return tp().get(e)}function tp(){return Zn("clientToLogBufferMap",()=>new WeakMap)}function O_(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function P_(e,t,n,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=nr(r)),mn(s,[O_(e)])}function np(e,t){const n=t??N_(e)??[];if(n.length===0)return;const r=e.getOptions(),s=P_(n,r._metadata,r.tunnel,e.getDsn());rp().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(s)}function N_(e){return rp().get(e)}function rp(){return Zn("clientToMetricBufferMap",()=>new WeakMap)}function sp(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}const Tc=Symbol.for("SentryBufferFullError");function kc(e=100){const t=new Set;function n(){return t.size<e}function r(i){t.delete(i)}function s(i){if(!n())return Ac(Tc);const a=i();return t.add(a),a.then(()=>r(a),()=>r(a)),a}function o(i){if(!t.size)return Wr(!0);const a=Promise.allSettled(Array.from(t)).then(()=>!0);if(!i)return a;const c=[a,new Promise(u=>sp(setTimeout(()=>u(!1),i)))];return Promise.race(c)}return{get $(){return Array.from(t)},add:s,drain:o}}const M_=60*1e3;function L_(e,t=Hr()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?M_:r-t}function $_(e,t){return e[t]||e.all||0}function j_(e,t,n=Hr()){return $_(e,t)>n}function U_(e,{statusCode:t,headers:n},r=Hr()){const s={...e},o=n?.["x-sentry-rate-limits"],i=n?.["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,u,,,l]=a.split(":",5),d=parseInt(c,10),f=(isNaN(d)?60:d)*1e3;if(!u)s.all=r+f;else for(const p of u.split(";"))p==="metric_bucket"?(!l||l.split(";").includes("custom"))&&(s[p]=r+f):s[p]=r+f}else i?s.all=r+L_(i,r):t===429&&(s.all=r+60*1e3);return s}const op=64;function H_(e,t,n=kc(e.bufferSize||op)){let r={};const s=i=>n.drain(i);function o(i){const a=[];if(wa(i,(d,f)=>{const p=nl(f);
18j_(r,p)?e.recordDroppedEvent("ratelimit_backoff",p):a.push(d)}),a.length===0)return Promise.resolve({});const c=mn(i[0],a),u=d=>{if(Ox(c,["client_report"])){z&&$.warn(`Dropping client report. Will not send outcomes (reason: ${d}).`);return}wa(c,(f,p)=>{e.recordDroppedEvent(d,nl(p))})},l=()=>t({body:Px(c)}).then(d=>d.statusCode===413?(z&&$.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),u("send_error"),d):(z&&d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&$.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=U_(r,d),d),d=>{throw u("network_error"),z&&$.error("Encountered error running transport request:",d),d});return n.add(l).then(d=>d,d=>{if(d===Tc)return z&&$.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw d})}return{send:o,flush:s}}function z_(e,t,n){const r=[{type:"client_report"},{timestamp:hn(),discarded_events:e}];return mn(t?{dsn:t}:{},[r])}function ip(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function W_(e){const{trace_id:t,parent_span_id:n,span_id:r,status:s,origin:o,data:i,op:a}=e.contexts?.trace??{};return{data:i??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:s,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:i?.[vc],exclusive_time:i?.[bc],measurements:e.measurements,is_segment:!0}}function q_(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[vc]:e.profile_id},...e.exclusive_time&&{[bc]:e.exclusive_time}}}},measurements:e.measurements}}const gl="Not capturing exception because it's already been captured.",xl="Discarded session because of missing or non-string release",ap=Symbol.for("SentryInternalError"),cp=Symbol.for("SentryDoNotSendEventError"),V_=5e3;function As(e){return{message:e,[ap]:!0}}function $i(e){return{message:e,[cp]:!0}}function _l(e){return!!e&&typeof e=="object"&&ap in e}function yl(e){return!!e&&typeof e=="object"&&cp in e}function Sl(e,t,n,r,s){let o=0,i,a=!1;e.on(n,()=>{o=0,clearTimeout(i),a=!1}),e.on(t,c=>{o+=r(c),o>=8e5?s(e):a||(a=!0,i=sp(setTimeout(()=>{s(e)},V_)))}),e.on("flush",()=>{s(e)})}class G_{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=kc(t.transportOptions?.bufferSize??op),t.dsn?this._dsn=hx(t.dsn):z&&$.warn("No DSN provided, client will not send events."),this._dsn){const r=T_(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Sl(this,"afterCaptureLog","flushLogs",J_,Ia),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Sl(this,"afterCaptureMetric","flushMetrics",X_,np)}captureException(t,n,r){const s=Qe();if(Vu(t))return z&&$.log(gl),s;const o={event_id:s,...n};return this._process(()=>this.eventFromException(t,o).then(i=>this._captureEvent(i,o,r)).then(i=>i),"error"),o.event_id}captureMessage(t,n,r,s){const o={event_id:Qe(),...r},i=gc(t)?t:String(t),a=ri(t),c=a?this.eventFromMessage(i,n,o):this.eventFromException(t,o);return this._process(()=>c.then(u=>this._captureEvent(u,o,s)),a?"unknown":"error"),o.event_id}captureEvent(t,n,r){const s=Qe();if(n?.originalException&&Vu(n.originalException))return z&&$.log(gl),s;const o={event_id:s,...n},i=t.sdkProcessingMetadata||{},a=i.capturedSpanScope,c=i.capturedSpanIsolationScope,u=vl(t.type);return this._process(()=>this._captureEvent(t,o,a||r,c),u),o.event_id}captureSession(t){this.sendSession(t),Hn(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;if(!n)return!0;
18this.emit("flush");const r=await this._isClientDoneProcessing(t),s=await n.flush(t);return r&&s}async close(t){Ia(this);const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];ep(this,t,this._integrations),n||ml(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=zx(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=Fx(r,Lx(s));this.sendEnvelope(r).then(s=>this.emit("afterSendEvent",t,s))}sendSession(t){const{release:n,environment:r=wc}=this._options;if("aggregates"in t){const o=t.attrs||{};if(!o.release&&!n){z&&$.warn(xl);return}o.release=o.release||n,o.environment=o.environment||r,t.attrs=o}else{if(!t.release&&!n){z&&$.warn(xl);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const s=Hx(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const s=`${t}:${n}`;z&&$.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,s=(...o)=>n(...o);return r.add(s),()=>{r.delete(s)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return z&&$.error("Error while sending envelope:",n),{}}return z&&$.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=D_(this,t),ml(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",s=!1;const o=n.exception?.values;if(o){s=!0,r=!1;for(const c of o)if(c.mechanism?.handled===!1){r=!0;break}}const i=t.status==="ok";(i&&t.errors===0||i&&r)&&(Hn(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i?.length&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),h_(o,t,n,r,this,s).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:{...a.contexts?.trace,...Gg(r)},...a.contexts};const c=Uf(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r=ve(),s=ut()){return z&&Da(t)&&$.log(`Captured error event \`${ip(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,s).then(o=>o.event_id,o=>{z&&(yl(o)?$.log(o.message):_l(o)?$.warn(o.message):$.warn(o))})}_processEvent(t,n,r,s){const o=this.getOptions(),{sampleRate:i}=o,a=up(t),c=Da(t),l=`before send for type \`${t.type||"error"}\``,d=typeof i>"u"?void 0:kr(i);if(c&&typeof d=="number"&&Dt()>d)return this.recordDroppedEvent("sample_rate","error"),Ac($i(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const f=vl(t.type);return this._prepareEvent(t,n,r,s).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",f),$i("An event processor returned `null`, will not send event.");if(n.data?.__sentry__===!0)return p;const g=K_(this,o,p,n);return Y_(g,l)}).then(p=>{if(p===null){if(this.recordDroppedEvent("before_send",f),a){const v=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",v)}throw $i(`${l} returned \`null\`, will not send event.`)}const h=r.getSession()||s.getSession();if(c&&h&&this._updateSessionFromEvent(h,p),a){const _=p.sdkProcessingMetadata?.spanCountBeforeProcessing||0,v=p.spans?p.spans.length:0,S=_-v;S>0&&this.recordDroppedEvent("before_send","span",S)}const g=p.transaction_info;if(a&&g&&p.transaction!==t.transaction){const _="custom";p.transaction_info={...g,source:_}}
18return this.sendEvent(p,n),p}).then(null,p=>{throw yl(p)||_l(p)?p:(this.captureException(p,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:p}),As(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 19Reason: ${p}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===Tc&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,o]=n.split(":");return{reason:s,category:o,quantity:r}})}_flushOutcomes(){z&&$.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){z&&$.log("No outcomes to send");return}if(!this._dsn){z&&$.log("No dsn provided, will not send outcomes");return}z&&$.log("Sending outcomes:",t);const n=z_(t,this._options.tunnel&&nr(this._dsn));this.sendEnvelope(n)}}function vl(e){return e==="replay_event"?"replay":e||"error"}function Y_(e,t){const n=`${t} must return \`null\` or a valid event.`;if($r(e))return e.then(r=>{if(!Cr(r)&&r!==null)throw As(n);return r},r=>{throw As(`${t} rejected with ${r}`)});if(!Cr(e)&&e!==null)throw As(n);return e}function K_(e,t,n,r){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:i,ignoreSpans:a}=t;let c=n;if(Da(c)&&s)return s(c,r);if(up(c)){if(i||a){const u=W_(c);if(a?.length&&wo(u,a))return null;if(i){const l=i(u);l?c=zr(n,q_(l)):Ea()}if(c.spans){const l=[],d=c.spans;for(const p of d){if(a?.length&&wo(p,a)){Ax(d,p);continue}if(i){const h=i(p);h?l.push(h):(Ea(),l.push(p))}else l.push(p)}const f=c.spans.length-l.length;f&&e.recordDroppedEvent("before_send","span",f),c.spans=l}}if(o){if(c.spans){const u=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return o(c,r)}}return c}function Da(e){return e.type===void 0}function up(e){return e.type==="transaction"}function X_(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+lp(e.attributes)}function J_(e){let t=0;return e.message&&(t+=e.message.length*2),t+lp(e.attributes)}function lp(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*bl(n[0]):ri(n)?t+=bl(n):t+=100}),t}function bl(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function Q_(e){return ni(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function El(e){return Q_(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function Z_(e,t){t.debug===!0&&(z?$.enable():pn(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),ve().update(t.initialScope);const r=new e(t);return ey(r),r.init(),r}function ey(e){ve().setClient(e)}const ty="thismessage:/";function dp(e){return"isRelative"in e}function fp(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?ty:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const s=new URL(e,r);return n?{isRelative:n,pathname:s.pathname,search:s.search,hash:s.hash}:s}catch{}}function ny(e){if(dp(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function Pn(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function ry(e){return e.split(/[?#]/,1)[0]}function Rt(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=e.includes(";base64,"),o=e.indexOf(",");let i="";if(t&&o!==-1){const a=e.slice(o+1);i=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${r}${s?",base64":""}${i?`,${i}`:""}`}return e}function sy(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function oy(e,t,n=[t],r="npm"){const s=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};s.name||(s.name=`sentry.javascript.${t}`,s.packages=n.map(o=>({name:`${r}:@sentry/${o}`,version:en})),s.version=en)}function pp(e={}){const t=e.client||ue();if(!b_()||!t)return{};const n=fn(),r=tr(n);if(r.getTraceData)return r.getTraceData(e);const s=e.scope||ve(),o=e.span||rr(),i=o?Sx(o):iy(s),a=o?$t(o):Uf(t,s),c=sx(a);if(!Bf.test(i))return $.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const l={"sentry-trace":i,baggage:c};return e.propagateTraceparent&&(l.traceparent=o?vx(o):ay(s)),l}function iy(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Ff(t,r,n)}function ay(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Of(t,r,n)}const cy=100;
19function ln(e,t){const n=ue(),r=ut();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=cy}=n.getOptions();if(o<=0)return;const a={timestamp:hn(),...e},c=s?pn(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,o))}let Cl;const uy="FunctionToString",wl=new WeakMap,ly=()=>({name:uy,setupOnce(){Cl=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=yc(this),n=wl.has(ue())&&t!==void 0?t:this;return Cl.apply(n,e)}}catch{}},setup(e){wl.set(e,!0)}}),dy=ly,fy=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],py="EventFilters",hy=(e={})=>{let t;return{name:py,setup(n){const r=n.getOptions();t=Al(e,r)},processEvent(n,r,s){if(!t){const o=s.getOptions();t=Al(e,o)}return gy(n,t)?null:n}}},my=(e={})=>({...hy(e),name:"InboundFilters"});function Al(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:fy],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function gy(e,t){if(e.type){if(e.type==="transaction"&&_y(e,t.ignoreTransactions))return z&&$.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 20Event: ${Xt(e)}`),!0}else{if(xy(e,t.ignoreErrors))return z&&$.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 21Event: ${Xt(e)}`),!0;if(by(e))return z&&$.warn(`Event dropped due to not having an error message, error type or stacktrace. 22Event: ${Xt(e)}`),!0;if(yy(e,t.denyUrls))return z&&$.warn(`Event dropped due to being matched by \`denyUrls\` option. 23Event: ${Xt(e)}. 24Url: ${Ao(e)}`),!0;if(!Sy(e,t.allowUrls))return z&&$.warn(`Event dropped due to not being matched by \`allowUrls\` option. 25Event: ${Xt(e)}. 26Url: ${Ao(e)}`),!0}return!1}function xy(e,t){return t?.length?ip(e).some(n=>nn(n,t)):!1}function _y(e,t){if(!t?.length)return!1;const n=e.transaction;return n?nn(n,t):!1}function yy(e,t){if(!t?.length)return!1;const n=Ao(e);return n?nn(n,t):!1}function Sy(e,t){if(!t?.length)return!0;const n=Ao(e);return n?nn(n,t):!0}function vy(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Ao(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?vy(n):null}catch{return z&&$.error(`Cannot extract url for event ${Xt(e)}`),null}}function by(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function Ey(e,t,n,r,s,o){if(!s.exception?.values||!o||!St(o.originalException,Error))return;const i=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;i&&(s.exception.values=Ra(e,t,r,o.originalException,n,s.exception.values,i,0))}function Ra(e,t,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(St(r[s],Error)){Tl(i,a,r);const u=e(t,r[s]),l=c.length;kl(u,s,l,a),c=Ra(e,t,n,r[s],s,[u,...c],u,l)}return hp(r)&&r.errors.forEach((u,l)=>{if(St(u,Error)){Tl(i,a,r);const d=e(t,u),f=c.length;kl(d,`errors[${l}]`,f,a),c=Ra(e,t,n,u,s,[d,...c],d,f)}}),c}function hp(e){return Array.isArray(e.errors)}function Tl(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...hp(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function kl(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Cy(e){const t="console";Mr(t,e),Lr(t,wy)}function wy(){"console"in ce&&ug.forEach(function(e){e in ce.console&&mt(ce.console,e,function(t){return vo[e]=t,function(...n){tn("console",{args:n,level:e}),vo[e]?.apply(ce.console,n)}})})}function Ay(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Ty="Dedupe",ky=()=>{let e;return{name:Ty,processEvent(t){if(t.type)return t;try{if(Dy(t,e))return z&&$.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},Iy=ky;function Dy(e,t){return t?!!(Ry(e,t)||By(e,t)):!1}function Ry(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!gp(e,t)||!mp(e,t))}function By(e,t){const n=Il(t),r=Il(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!gp(e,t)||!mp(e,t))}function mp(e,t){let n=ju(e),r=ju(t);if(!n&&!r)return!0;
26if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const o=r[s],i=n[s];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function gp(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Il(e){return e.exception?.values?.[0]}const Fy="ConversationId",Oy=()=>({name:Fy,setup(e){e.on("spanStart",t=>{const n=ve().getScopeData(),r=ut().getScopeData(),s=n.conversationId||r.conversationId;s&&t.setAttribute(Jg,s)})}}),Py=Oy;function Ny(e,t,n,r,s){if(!e.fetchData)return;const{method:o,url:i}=e.fetchData,a=et()&&t(i);if(e.endTimestamp){const p=e.fetchData.__span;if(!p)return;const h=r[p];h&&(a&&($y(h,e),My(h,e,s)),delete r[p]);return}const{spanOrigin:c="auto.http.browser",propagateTraceparent:u=!1}=typeof s=="object"?s:{spanOrigin:s},l=!!rr(),d=a&&l?ai(Uy(i,o,c)):new un;if(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,n(e.fetchData.url)){const p=e.args[0],h={...e.args[1]||{}},g=Ly(p,h,et()&&l?d:void 0,u);g&&(e.args[1]=h,h.headers=g)}const f=ue();if(f){const p={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit("beforeOutgoingRequestSpan",d,p)}return d}function My(e,t,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function Ly(e,t,n,r){const s=pp({span:n,propagateTraceparent:r}),o=s["sentry-trace"],i=s.baggage,a=s.traceparent;if(!o)return;const c=t.headers||(xc(e)?e.headers:void 0);if(c)if(jy(c)){const u=new Headers(c);if(u.get("sentry-trace")||u.set("sentry-trace",o),r&&a&&!u.get("traceparent")&&u.set("traceparent",a),i){const l=u.get("baggage");l?cs(l)||u.set("baggage",`${l},${i}`):u.set("baggage",i)}return u}else if(Array.isArray(c)){const u=[...c];c.find(d=>d[0]==="sentry-trace")||u.push(["sentry-trace",o]),r&&a&&!c.find(d=>d[0]==="traceparent")&&u.push(["traceparent",a]);const l=c.find(d=>d[0]==="baggage"&&cs(d[1]));return i&&!l&&u.push(["baggage",i]),u}else{const u="sentry-trace"in c?c["sentry-trace"]:void 0,l="traceparent"in c?c.traceparent:void 0,d="baggage"in c?c.baggage:void 0,f=d?Array.isArray(d)?[...d]:[d]:[],p=d&&(Array.isArray(d)?d.find(g=>cs(g)):cs(d));i&&!p&&f.push(i);const h={...c,"sentry-trace":u??o,baggage:f.length>0?f.join(","):void 0};return r&&a&&!l&&(h.traceparent=a),h}else return{...s}}function $y(e,t){if(t.response){Tf(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:we,message:"internal_error"});e.end()}function cs(e){return e.split(",").some(t=>t.trim().startsWith(Co))}function jy(e){return typeof Headers<"u"&&St(e,Headers)}function Uy(e,t,n){if(e.startsWith("data:")){const o=Rt(e);return{name:`${t} ${o}`,attributes:Dl(e,void 0,t,n)}}const r=fp(e),s=r?ny(r):e;return{name:`${t} ${s}`,attributes:Dl(e,r,t,n)}}function Dl(e,t,n,r){const s={url:Rt(e),type:"fetch","http.method":n,[cn]:r,[Ar]:"http.client"};return t&&(dp(t)||(s["http.url"]=Rt(t.href),s["server.address"]=t.host),t.search&&(s["http.query"]=t.search),t.hash&&(s["http.fragment"]=t.hash)),s}function xp(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Ba=ce;function Hy(){if(!("fetch"in Ba))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function Rl(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function zy(){if(typeof EdgeRuntime=="string")return!0;if(!Hy())return!1;if(Rl(Ba.fetch))return!0;let e=!1;const t=Ba.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Rl(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){z&&$.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function _p(e,t){const n="fetch";Mr(n,e),Lr(n,()=>yp(void 0,t))}function Wy(e){const t="fetch-body-resolved";Mr(t,e),Lr(t,()=>yp(Vy))}function yp(e,t=!1){t&&!zy()||mt(ce,"fetch",function(n){return function(...r){const s=new Error,{method:o,url:i}=Gy(r),a={args:r,fetchData:{method:o,url:i},startTimestamp:$e()*1e3,virtualError:s,headers:Yy(r)};return e||tn("fetch",{...a}),n.apply(ce,r).then(async c=>(e?e(c):tn("fetch",{...a,endTimestamp:$e()*1e3,response:c}),c),c=>{tn("fetch",{...a,endTimestamp:$e()*1e3,error:c}),ni(c)&&c.stack===void 0&&(c.stack=s.stack,Ve(c,"framesToPop",1));const l=ue()?.getOptions().enhanceFetchErrorMessages??"always";if(l!==!1&&c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const p=new URL(a.fetchData.url).host;l==="always"?c.message=`${c.message} (${p})`:Ve(c,"__sentry_fetch_url_host__",p)}catch{}throw c})}})}async function qy(e,t){if(e?.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let o=!0;for(;o;){let i;try{i=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(i),a&&(t(),o=!1)}catch{o=!1}
26finally{clearTimeout(i)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function Vy(e){let t;try{t=e.clone()}catch{return}qy(t,()=>{tn("fetch-body-resolved",{endTimestamp:$e()*1e3,response:e})})}function Ts(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Bl(e){return typeof e=="string"?e:e?Ts(e,"url")?e.url:e.toString?e.toString():"":""}function Gy(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Bl(n),method:Ts(r,"method")?String(r.method).toUpperCase():xc(n)&&Ts(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Bl(t),method:Ts(t,"method")?String(t.method).toUpperCase():"GET"}}function Yy(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(xc(t))return new Headers(t.headers)}catch{}}function Ky(){return"npm"}const re=ce;let Fa=0;function Sp(){return Fa>0}function Xy(){Fa++,setTimeout(()=>{Fa--})}function qn(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(yc(e))return e}catch{return e}const r=function(...s){try{const o=s.map(i=>qn(i,t));return e.apply(this,o)}catch(o){throw Xy(),oi(i=>{i.addEventProcessor(a=>(t.mechanism&&(ya(a,void 0),Un(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),Xf(o)}),o}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}vf(r,e),Ve(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Ic(){const e=jr(),{referrer:t}=re.document||{},{userAgent:n}=re.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function Dc(e,t){const n=Rc(e,t),r={type:t1(t),value:n1(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Jy(e,t,n,r){const o=ue()?.getOptions().normalizeDepth,i=a1(t),a={__serialized__:Hf(t,o)};if(i)return{exception:{values:[Dc(e,i)]},extra:a};const c={exception:{values:[{type:si(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:o1(t,{isUnhandledRejection:r})}]},extra:a};if(n){const u=Rc(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function ji(e,t){return{exception:{values:[Dc(e,t)]}}}function Rc(e,t){const n=t.stacktrace||t.stack||"",r=Zy(t),s=e1(t);try{return e(n,r,s)}catch{}return[]}const Qy=/Minified React error #\d+;/i;function Zy(e){return e&&Qy.test(e.message)?1:0}function e1(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function vp(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function t1(e){const t=e?.name;return!t&&vp(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function n1(e){const t=e?.message;return vp(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?El(t.error):El(e):"No error message"}function r1(e,t,n,r){const s=n?.syntheticException||void 0,o=Bc(e,t,s,r);return Un(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),Wr(o)}function s1(e,t,n="info",r,s){const o=r?.syntheticException||void 0,i=Oa(e,t,o,s);return i.level=n,r?.event_id&&(i.event_id=r.event_id),Wr(i)}function Bc(e,t,n,r,s){let o;if(_f(t)&&t.error)return ji(e,t.error);if(Hu(t)||Sg(t)){const i=t;if("stack"in t)o=ji(e,t);else{const a=i.name||(Hu(i)?"DOMError":"DOMException"),c=i.message?`${a}: ${i.message}`:a;o=Oa(e,c,n,r),ya(o,c)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return ni(t)?ji(e,t):Cr(t)||si(t)?(o=Jy(e,t,n,s),Un(o,{synthetic:!0}),o):(o=Oa(e,t,n,r),ya(o,`${t}`),Un(o,{synthetic:!0}),o)}function Oa(e,t,n,r){const s={};if(r&&n){const o=Rc(e,n);o.length&&(s.exception={values:[{value:t,stacktrace:{frames:o}}]}),Un(s,{synthetic:!0})}if(gc(t)){const{__sentry_template_string__:o,__sentry_template_values__:i}=t;return s.logentry={message:o,params:i},s}return s.message=t,s}function o1(e,{isUnhandledRejection:t}){const n=Tg(e),r=t?"promise rejection":"exception";return _f(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:si(e)?`Event \`${i1(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function i1(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function a1(e){return Object.values(e).find(t=>t instanceof Error)}class c1 extends G_{constructor(t){const n=u1(t),r=re.SENTRY_SDK_SOURCE||Ky();oy(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:s,sendClientReports:o,enableLogs:i,_experiments:a,enableMetrics:c}=this._options,u=c??a?.enableMetrics??!0;re.document&&(o||i||u)&&re.document.addEventListener("visibilitychange",()=>{re.document.visibilityState==="hidden"&&(o&&this._flushOutcomes(),i&&Ia(this),u&&np(this))}),s&&this.on("beforeSendSession",sy)}eventFromException(t,n){return r1(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return s1(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,s){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,s)}}function u1(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:re.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const Se=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Fe=globalThis,gr="10.47.0";function sr(){return Fc(Fe),Fe}function Fc(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||gr,t[gr]=t[gr]||{}}function Oc(e,t,n=Fe){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[gr]=r[gr]||{};return s[e]||(s[e]=t())}const l1="Sentry Logger ",Fl={};function bp(e){if(!("console"in Fe))return e();const t=Fe.console,n={},r=Object.keys(Fl);r.forEach(s=>{const o=Fl[s];n[s]=t[s],t[s]=o});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function d1(){Nc().enabled=!0}function f1(){Nc().enabled=!1}function Ep(){return Nc().enabled}function p1(...e){Pc("log",...e)}function h1(...e){Pc("warn",...e)}function m1(...e){Pc("error",...e)}function Pc(e,...t){Se&&Ep()&&bp(()=>{Fe.console[e](`${l1}[${e}]:`,...t)})}function Nc(){return Se?Oc("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const pe={enable:d1,disable:f1,isEnabled:Ep,log:p1,warn:h1,error:m1},Ui="<anonymous>";function Cp(e){try{return!e||typeof e!="function"?Ui:e.name||Ui}catch{return Ui}}const ks={},Ol={};function Mc(e,t){ks[e]=ks[e]||[],ks[e].push(t)}function Lc(e,t){if(!Ol[e]){Ol[e]=!0;try{t()}catch(n){Se&&pe.error(`Error while instrumenting ${e}`,n)}}}function Ir(e,t){const n=e&&ks[e];if(n)for(const r of n)try{r(t)}catch(s){Se&&pe.error(`Error while triggering instrumentation handler. 27Type: ${e} 28Name: ${Cp(r)} 29Error:`,s)}}const g1=Object.prototype.toString;function $c(e,t){return g1.call(e)===`[object ${t}]`}function Bt(e){return $c(e,"String")}function x1(e){return typeof e=="object"&&e!==null&&"__sentry_template_str
29ing__"in e&&"__sentry_template_values__"in e}function Pl(e){return e===null||x1(e)||typeof e!="object"&&typeof e!="function"}function _1(e){return $c(e,"Object")}function y1(e){return $c(e,"RegExp")}function S1(e){return!!(e?.then&&typeof e.then=="function")}const wp=Fe,v1=80;function it(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||v1;for(;n&&o++<r&&(u=b1(n,l),!(u==="html"||o>1&&i+s.length*c+u.length>=d));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function b1(e,t){const n=e,r=[];if(!n?.tagName)return"";if(wp.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=t?.length?t.filter(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(s?.length)s.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&Bt(o)){const i=o.split(/\s+/);for(const a of i)r.push(`.${a}`)}}for(const o of["aria-label","type","name","title","alt"]){const i=n.getAttribute(o);i&&r.push(`[${o}="${i}"]`)}return r.join("")}function E1(e){if(!wp.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function To(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&C1(s,r);try{e[t]=s}catch{Se&&pe.log(`Failed to replace method "${t}" in object`,e)}}function bt(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Se&&pe.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function C1(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,bt(e,"__sentry_original__",t)}catch{}}let bn;function qr(e){if(bn!==void 0)return bn?bn(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=Fe;return t in n&&typeof n[t]=="function"?(bn=n[t],bn(e)):(bn=null,e())}function Pa(){return qr(()=>Math.random())}function Ap(){return qr(()=>Date.now())}function w1(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Is(e,t,n=!1){return Bt(e)?y1(t)?t.test(e):Bt(t)?n?e===t:e.includes(t):!1:!1}function A1(e,t=[],n=!1){return t.some(r=>Is(e,r,n))}function T1(){const e=Fe;return e.crypto||e.msCrypto}let Hi;function k1(){return Pa()*16}function on(e=T1()){try{if(e?.randomUUID)return qr(()=>e.randomUUID()).replace(/-/g,"")}catch{}return Hi||(Hi="10000000100040008000"+1e11),Hi.replace(/[018]/g,t=>(t^(k1()&15)>>t/4).toString(16))}const Tp=1e3;function kp(){return Ap()/Tp}function I1(){const{performance:e}=Fe;if(!e?.now||!e.timeOrigin)return kp;const t=e.timeOrigin;return()=>(t+qr(()=>e.now()))/Tp}let Nl;function Ft(){return(Nl??(Nl=I1()))()}let zi=null;function D1(){const{performance:e}=Fe;if(!e?.now)return;const t=3e5,n=qr(()=>e.now()),r=Ap(),s=e.timeOrigin;if(typeof s=="number"&&Math.abs(s+n-r)<t)return s;const o=e.timing?.navigationStart;return typeof o=="number"&&Math.abs(o+n-r)<t?o:r-n}function tt(){return zi===null&&(zi=D1()),zi}function R1(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ft(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:on()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),t
29ypeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Ip(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=Ip(r[s],t[s],n-1));return r}function ko(){return on()}function Dp(){return on().substring(16)}const Na="_sentrySpan";function Ma(e,t){t?bt(e,Na,t):delete e[Na]}function Io(e){return e[Na]}const B1=100;let Do=class La{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:ko(),sampleRand:Pa()}}clone(){const t=new La;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,Ma(t,Io(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&R1(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof La?n.getScopeData():_1(n)?t:void 0,{tags:s,attributes:o,extra:i,user:a,contexts:c,level:u,fingerprint:l=[],propagationContext:d,conversationId:f}=r||{};return this._tags={...this._tags,...s},this._attributes={...this._attributes,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),l.length&&(this._fingerprint=l),d&&(this._propagationContext=d),f&&(this._conversationId=f),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Ma(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ko(),sampleRand:Pa()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:B1;if(r<=0)return this;const s={timestamp:kp(),...t,message:t.message?w1(t.message,2048):t.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Io(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Ip(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||on();if(!this._client)return Se&&pe.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r?.event_id||on();if(!this._client)return Se&&pe.warn("No client configured on scope - will not capture message!"),s;const o=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=t.event_id||n?.event_id||on();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(Se&&pe.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
29h(t=>{t(this)}),this._notifyingListeners=!1)}};function F1(){return Oc("defaultCurrentScope",()=>new Do)}function O1(){return Oc("defaultIsolationScope",()=>new Do)}const Ml=e=>e instanceof Promise&&!e[Rp],Rp=Symbol("chained PromiseLike"),P1=(e,t,n)=>{const r=e.then(s=>(t(s),s),s=>{throw n(s),s});return Ml(r)&&Ml(e)?r:N1(e,r)},N1=(e,t)=>{let n=!1;for(const r in e){if(r in t)continue;n=!0;const s=e[r];typeof s=="function"?Object.defineProperty(t,r,{value:(...o)=>s.apply(e,o),enumerable:!0,configurable:!0,writable:!0}):t[r]=s}return n&&Object.assign(t,{[Rp]:!0}),t};let M1=class{constructor(t,n){let r;t?r=t:r=new Do;let s;n?s=n:s=new Do,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return S1(r)?P1(r,()=>this._popScope(),()=>this._popScope()):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Vn(){const e=sr(),t=Fc(e);return t.stack=t.stack||new M1(F1(),O1())}function L1(e){return Vn().withScope(e)}function $1(e,t){const n=Vn();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Ll(e){return Vn().withScope(()=>e(Vn().getIsolationScope()))}function j1(){return{withIsolationScope:Ll,withScope:L1,withSetScope:$1,withSetIsolationScope:(e,t)=>Ll(t),getCurrentScope:()=>Vn().getScope(),getIsolationScope:()=>Vn().getIsolationScope()}}function Vr(e){const t=Fc(e);return t.acs?t.acs:j1()}function Ht(){const e=sr();return Vr(e).getCurrentScope()}function U1(){const e=sr();return Vr(e).getIsolationScope()}function Bp(...e){const t=sr(),n=Vr(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function zt(){return Ht().getClient()}const Ro="sentry.source",Fp="sentry.sample_rate",H1="sentry.previous_trace_sample_rate",Gn="sentry.op",Pe="sentry.origin",Gr="sentry.measurement_unit",Yr="sentry.measurement_value",$l="sentry.custom_span_name",z1="sentry.profile_id",ci="sentry.exclusive_time",W1=0,q1=1,Op="_sentryScope",Pp="_sentryIsolationScope";function V1(e){try{const t=Fe.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function G1(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}function Y1(e,t,n){e&&(bt(e,Pp,V1(n)),bt(e,Op,t))}function $a(e){const t=e;return{scope:t[Op],isolationScope:G1(t[Pp])}}const jl="sentry-";function K1(e){const t=X1(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,o])=>{if(s.startsWith(jl)){const i=s.slice(jl.length);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function X1(e){if(!(!e||!Bt(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Ul(n);return Object.entries(r).forEach(([s,o])=>{t[s]=o}),t},{}):Ul(e)}function Ul(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),s=t.slice(n+1);return[r,s].map(o=>{try{return decodeURIComponent(o.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}const J1=/^o(\d+)\./;function Q1(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function Z1(e){return e.match(J1)?.[1]}function eS(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=Z1(n)),r}function Np(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const Mp=0,jc=1;let Hl=!1;function tS(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:o,status:i,origin:a,links:c}=Be(e);return{parent_span_id:o,span_id:t,trace_id:n,data:r,op:s,status:i,origin:a,links:c}}function Lp(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...s},attributes:o})=>({span_id:t,trace_id:n,sampled:r===jc,attributes:o,...s}))}function Nn(e){return typeof e=="number"?zl(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?zl(e.getTime()):Ft()}function zl(e){return e>9999999999?e/1e3:e}function Be(e){if(rS(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(nS(e)){const{attributes:r,startTime:s,name:o,endTime:i,status:a,links:c}=e,u="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:r,description:o,parent_span_id:u,start_timestamp:Nn(s),timestamp:Nn(i)||void 0,status:$p(a),op:r[Gn],origin:r[Pe],links:Lp(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function nS(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function rS(e){return typeof e.getSpanJSON=="function"}function Kr(e){const{traceFlags:t}=e.spanContext();return t===jc}function $p(e){if(!(!e||e.code===W1))return e.code===q1?"ok":e.message||"internal_error"}const xr="_sentryChildSpans",ja="_sentryRootSpan";function jp(e,t){const n=e[ja]||e;bt(t,ja,n),e[xr]?e[xr].add(t):bt(e,xr,new Set([t]))}function sS(e){const t=new Set;function n(r){if(!t.has(r)&&Kr(r)){t.add(r);const s=r[xr]?Array.from(r[xr]):[];for(const o of s)n(o)}}return n(e),Array.from(t)}function ot(e){return e[ja]||e}function or(){const e=sr(),t=Vr(e);return t.getActiveSpan?t.getActiveSpan():Io(Ht())}function oS(){Hl||(bp(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Hl=!0)}function Uc(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||zt()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Wl(e){pe.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function iS(e,t){if(!t?.length||!e.description)return!1;for(const n of t){if(aS(n)){if(Is(e.description,n))return Se&&Wl(e),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?Is(e.description,n.name):!0,s=n.op?e.op&&Is(e.op,n.op):!0;if(r&&s)return Se&&Wl(e),!0}return!1}function aS(e){return typeof e=="string"||e instanceof RegExp}const cS="production",Up="_frozenDsc";function Wi(e,t){bt(e,Up,t)}function uS(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s={environment:n.environment||cS,release:n.release,public_key:r,trace_id:e,org_id:eS(t)};return t.emit("createDsc",s),s}function Bo(e){const t=zt();if(!t)return{};const n=ot(e),r=Be(n),s=r.data,o=n.spanContext().traceState,i=o?.get("sentry.sample_rate")??s[Fp]??s[H1];function a(h){return(typeof i=="number"||typeof i=="string")&&(h.sample_rate=`${i}`),h}const c=n[Up];if(c)return a(c);const u=o?.get("sentry.dsc"),l=u&&K1(u);if(l)return a(l);const d=uS(e.spanContext().traceId,t),f=s[Ro],p=r.description;return f!=="url"&&p&&(d.transaction=p),Uc()&&(d.sampled=String(Kr(n)),d.sample_rand=o?.get("sentry.sample_rand")??$a(n).scope?.getPropagationContext().sampleRand.toString()),a(d),t.emit("createDsc",d,n),d}class Hc{constructor(t={}){this._traceId=t.traceId||ko(),this._spanId=t.spanId||Dp()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Mp}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}
29addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function lS(e,t=[]){return[e,t]}function dS(e){return[{type:"span"},e]}function fS(e,t){function n(p){return!!p.trace_id&&!!p.public_key}const r=Bo(e[0]),s=t?.getDsn(),o=t?.getOptions().tunnel,i={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!o&&s&&{dsn:Q1(s)}},{beforeSendSpan:a,ignoreSpans:c}=t?.getOptions()||{},u=c?.length?e.filter(p=>!iS(Be(p),c)):e,l=e.length-u.length;l&&t?.recordDroppedEvent("before_send","span",l);const d=a?p=>{const h=Be(p),g=a(h);return g||(oS(),h)}:Be,f=[];for(const p of u){const h=d(p);h&&f.push(dS(h))}return lS(i,f)}function pS(e){if(!Se)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Be(e),{spanId:s}=e.spanContext(),o=Kr(e),i=ot(e),a=i===e,c=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(r&&u.push(`parent ID: ${r}`),!a){const{op:l,description:d}=Be(i);u.push(`root ID: ${i.spanContext().spanId}`),l&&u.push(`root op: ${l}`),d&&u.push(`root description: ${d}`)}pe.log(`${c} 30 ${u.join(` 31 `)}`)}function hS(e){if(!Se)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Be(e),{spanId:r}=e.spanContext(),o=ot(e)===e,i=`[Tracing] Finishing "${n}" ${o?"root ":""}span "${t}" with ID ${r}`;pe.log(i)}function mS(e,t,n,r=or()){const s=r&&ot(r);s&&(Se&&pe.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),s.addEvent(e,{[Yr]:t,[Gr]:n}))}function ql(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},s=r[Gr],o=r[Yr];typeof s=="string"&&typeof o=="number"&&(t[n.name]={value:o,unit:s})}),t}const Vl=1e3;class zc{constructor(t={}){this._traceId=t.traceId||ko(),this._spanId=t.spanId||Dp(),this._startTime=t.startTimestamp||Ft(),this._links=t.links,this._attributes={},this.setAttributes({[Pe]:"manual",[Gn]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?jc:Mp}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=Nn(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Ro,"custom"),this}end(t){this._endTime||(this._endTime=Nn(t),hS(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Gn],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:$p(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Pe],profile_id:this._attributes[z1],exclusive_time:this._attributes[ci],measurements:ql(this._events),is_segment:this._isStandaloneSpan&&ot(this)===this||void 0,segment_id:this._isStandaloneSpan?ot(this).spanContext().spanId:void 0,links:Lp(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){Se&&pe.log("[Tracing] Adding an event to span:",t);const s=Gl(n)?n:r||Ft(),o=Gl(n)?{}:n||{},i={name:t,time:Nn(s),attributes:o};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=zt();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===ot(this)))return;if(this._isStandaloneSpan){this._sampled?xS(fS([this],t)):(Se&&pe.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&($a(this).scope||Ht()).captureEvent(r)}_convertSpanToTransaction(){if(!Yl(Be(this)))return;this._name||(Se&&pe.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=$a(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const o=sS(this).filter(l=>
31l!==this&&!gS(l)).map(l=>Be(l)).filter(Yl),i=this._attributes[Ro];delete this._attributes[$l],o.forEach(l=>{delete l.data[$l]});const a={contexts:{trace:tS(this)},spans:o.length>Vl?o.sort((l,d)=>l.start_timestamp-d.start_timestamp).slice(0,Vl):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:Bo(this)},request:r,...i&&{transaction_info:{source:i}}},c=ql(this._events);return c&&Object.keys(c).length&&(Se&&pe.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),a.measurements=c),a}}function Gl(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Yl(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function gS(e){return e instanceof zc&&e.isStandaloneSpan()}function xS(e){const t=zt();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function _S(e,t,n){if(!Uc(e))return[!1];let r,s;typeof e.tracesSampler=="function"?(s=e.tracesSampler({...t,inheritOrSampleWith:a=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):a}),r=!0):t.parentSampled!==void 0?s=t.parentSampled:typeof e.tracesSampleRate<"u"&&(s=e.tracesSampleRate,r=!0);const o=Np(s);if(o===void 0)return Se&&pe.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(s)} of type ${JSON.stringify(typeof s)}.`),[!1];if(!o)return Se&&pe.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,o,r];const i=n<o;return i||Se&&pe.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),[i,o,r]}const Hp="__SENTRY_SUPPRESS_TRACING__";function zp(e){const t=qp();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=SS(e),{forceTransaction:r,parentSpan:s}=e;return(e.scope?i=>Bp(e.scope,i):s!==void 0?i=>Wp(s,i):i=>i())(()=>{const i=Ht(),a=bS(i,s);return e.onlyIfParent&&!a?new Hc:yS({parentSpan:a,spanArguments:n,forceTransaction:r,scope:i})})}function Wp(e,t){const n=qp();return n.withActiveSpan?n.withActiveSpan(e,t):Bp(r=>(Ma(r,e||void 0),t(r)))}function yS({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Uc()){const i=new Hc;if(n||!e){const a={sampled:"false",sample_rate:"0",transaction:t.name,...Bo(i)};Wi(i,a)}return i}const s=U1();let o;if(e&&!n)o=vS(e,r,t),jp(e,o);else if(e){const i=Bo(e),{traceId:a,spanId:c}=e.spanContext(),u=Kr(e);o=Kl({traceId:a,parentSpanId:c,...t},r,u),Wi(o,i)}else{const{traceId:i,dsc:a,parentSpanId:c,sampled:u}={...s.getPropagationContext(),...r.getPropagationContext()};o=Kl({traceId:i,parentSpanId:c,...t},r,u),a&&Wi(o,a)}return pS(o),Y1(o,r,s),o}function SS(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=Nn(e.startTime),delete r.startTime,r}return n}function qp(){const e=sr();return Vr(e)}function Kl(e,t,n){const r=zt(),s=r?.getOptions()||{},{name:o=""}=e,i={spanAttributes:{...e.attributes},spanName:o,parentSampled:n};r?.emit("beforeSampling",i,{decision:!1});const a=i.parentSampled??n,c=i.spanAttributes,u=t.getPropagationContext(),[l,d,f]=t.getScopeData().sdkProcessingMetadata[Hp]?[!1]:_S(s,{name:o,parentSampled:a,attributes:c,parentSampleRate:Np(u.dsc?.sample_rate)},u.sampleRand),p=new zc({...e,attributes:{[Ro]:"custom",[Fp]:d!==void 0&&f?d:void 0,...c},sampled:l});return!l&&r&&(Se&&pe.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",p),p}function vS(e,t,n){const{spanId:r,traceId:s}=e.spanContext(),o=t.getScopeData().sdkProcessingMetadata[Hp]?!1:Kr(e),i=o?new zc({...n,parentSpanId:r,traceId:s,sampled:o}):new Hc({traceId:s});jp(e,i);const a=zt();return a&&(a.emit("spanStart",i),n.endTimestamp&&a.emit("spanEnd",i)),i}function bS(e,t){if(t)return t;if(t===null)return;const n=Io(e);if(!n)return;const r=zt();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?ot(n):n}function ES(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Xl=Fe;function CS(){return"history"in Xl&&!!Xl.history}function wS(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function AS(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function TS(){return!AS()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function kS(){return typeof window<"u"&&(!TS()||IS())}function IS(){return Fe.process?.type==="renderer"}const dn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Q=Fe,DS=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Xr=(e,t,n,r)=>{let s,o;return i=>{t.value>=0&&(i||r)&&(o=t.value-(s??0),(o||s===void 0)&&(s=t.value,t.delta=o,t.rating=DS(t.value,n),e(t)))}},Jr=(e=!0)=>{const t=Q.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},ir=()=>Jr()?.activationStart??0;function Ot(e,t,n){Q.document&&Q.addEventListener(e,t,n)}
31function Fo(e,t,n){Q.document&&Q.removeEventListener(e,t,n)}let Mn=-1;const Vp=new Set,RS=()=>Q.document?.visibilityState==="hidden"&&!Q.document?.prerendering?0:1/0,Ds=e=>{if(BS(e)&&Mn>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of Vp)t();isFinite(Mn)||(Mn=e.type==="visibilitychange"?e.timeStamp:0,Fo("prerenderingchange",Ds,!0))}},Qr=()=>{if(Q.document&&Mn<0){const e=ir();Mn=(Q.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??RS(),Ot("visibilitychange",Ds,!0),Ot("pagehide",Ds,!0),Ot("prerenderingchange",Ds,!0)}return{get firstHiddenTime(){return Mn},onHidden(e){Vp.add(e)}}};function BS(e){return e.type==="pagehide"||Q.document?.visibilityState==="hidden"}const FS=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Zr=(e,t=-1)=>{const n=Jr();let r="navigate";return n&&(Q.document?.prerendering||ir()>0?r="prerender":Q.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:FS(),navigationType:r}},qi=new WeakMap;function Wc(e,t){try{return qi.get(e)||qi.set(e,new t),qi.get(e)}catch{return new t}}class Oo{constructor(){Oo.prototype.__init.call(this),Oo.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const ar=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{t(s.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},qc=e=>{let t=!1;return()=>{t||(e(),t=!0)}},ui=e=>{Q.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},OS=[1800,3e3],PS=(e,t={})=>{ui(()=>{const n=Qr(),r=Zr("FCP");let s;const i=ar("paint",a=>{for(const c of a)c.name==="first-contentful-paint"&&(i.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-ir(),0),r.entries.push(c),s(!0)))});i&&(s=Xr(e,r,OS,t.reportAllChanges))})},NS=[.1,.25],MS=(e,t={})=>{PS(qc(()=>{const n=Zr("CLS",0);let r;const s=Qr(),o=Wc(t,Oo),i=c=>{for(const u of c)o._processEntry(u);o._sessionValue>n.value&&(n.value=o._sessionValue,n.entries=o._sessionEntries,r())},a=ar("layout-shift",i);a&&(r=Xr(e,n,NS,t.reportAllChanges),s.onHidden(()=>{i(a.takeRecords()),r(!0)}),Q?.setTimeout?.(r))}))};let Gp=0,Vi=1/0,us=0;const LS=e=>{e.forEach(t=>{t.interactionId&&(Vi=Math.min(Vi,t.interactionId),us=Math.max(us,t.interactionId),Gp=us?(us-Vi)/7+1:0)})};let Ua;const Yp=()=>Ua?Gp:performance.interactionCount||0,$S=()=>{"interactionCount"in performance||Ua||(Ua=ar("event",LS,{type:"event",buffered:!0,durationThreshold:0}))},Gi=10;let Kp=0;const jS=()=>Yp()-Kp;class Po{constructor(){Po.prototype.__init.call(this),Po.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){Kp=Yp(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(jS()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<Gi||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((s,o)=>o._latency-s._latency),this._longestInteractionList.length>Gi){const s=this._longestInteractionList.splice(Gi);for(const o of s)this._longestInteractionMap.delete(o.id)}this._onAfterProcessingINPCandidate?.(r)}}}const Xp=e=>{const t=Q.requestIdleCallback||Q.setTimeout;Q.document?.visibilityState==="hidden"?e():(e=qc(e),Ot("visibilitychange",e,{once:!0,capture:!0}),Ot("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),Fo("visibilitychange",e,{capture:!0}),Fo("pagehide",e,{capture:!0})}
31))},US=[200,500],HS=40,zS=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=Qr();ui(()=>{$S();const r=Zr("INP");let s;const o=Wc(t,Po),i=c=>{Xp(()=>{for(const l of c)o._processEntry(l);const u=o._estimateP98LongestInteraction();u&&u._latency!==r.value&&(r.value=u._latency,r.entries=u.entries,s())})},a=ar("event",i,{durationThreshold:t.durationThreshold??HS});s=Xr(e,r,US,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{i(a.takeRecords()),s(!0)}))})};class WS{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const qS=[2500,4e3],VS=(e,t={})=>{ui(()=>{const n=Qr(),r=Zr("LCP");let s;const o=Wc(t,WS),i=c=>{t.reportAllChanges||(c=c.slice(-1));for(const u of c)o._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-ir(),0),r.entries=[u],s())},a=ar("largest-contentful-paint",i);if(a){s=Xr(e,r,qS,t.reportAllChanges);const c=qc(()=>{i(a.takeRecords()),a.disconnect(),s(!0)}),u=l=>{l.isTrusted&&(Xp(c),Fo(l.type,u,{capture:!0}))};for(const l of["keydown","click","visibilitychange"])Ot(l,u,{capture:!0})}})},GS=[800,1800],Ha=e=>{Q.document?.prerendering?ui(()=>Ha(e)):Q.document?.readyState!=="complete"?addEventListener("load",()=>Ha(e),!0):setTimeout(e)},YS=(e,t={})=>{const n=Zr("TTFB"),r=Xr(e,n,GS,t.reportAllChanges);Ha(()=>{const s=Jr();s&&(n.value=Math.max(s.responseStart-ir(),0),n.entries=[s],r(!0))})},_r={},No={};let Jp,Qp,Zp,eh;function Vc(e,t=!1){return li("cls",e,XS,Jp,t)}function Gc(e,t=!1){return li("lcp",e,JS,Qp,t)}function KS(e){return li("ttfb",e,QS,Zp)}function th(e){return li("inp",e,ZS,eh)}function Yn(e,t){return nh(e,t),No[e]||(ev(e),No[e]=!0),rh(e,t)}function es(e,t){const n=_r[e];if(n?.length)for(const r of n)try{r(t)}catch(s){dn&&pe.error(`Error while triggering instrumentation handler. 32Type: ${e} 33Name: ${Cp(r)} 34Error:`,s)}}function XS(){return MS(e=>{es("cls",{metric:e}),Jp=e},{reportAllChanges:!0})}function JS(){return VS(e=>{es("lcp",{metric:e}),Qp=e},{reportAllChanges:!0})}function QS(){return YS(e=>{es("ttfb",{metric:e}),Zp=e})}function ZS(){return zS(e=>{es("inp",{metric:e}),eh=e})}function li(e,t,n,r,s=!1){nh(e,t);let o;return No[e]||(o=n(),No[e]=!0),r&&t({metric:r}),rh(e,t,s?o:void 0)}function ev(e){const t={};e==="event"&&(t.durationThreshold=0),ar(e,n=>{es(e,{entries:n})},t)}function nh(e,t){_r[e]=_r[e]||[],_r[e].push(t)}function rh(e,t,n){return()=>{n&&n();const r=_r[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function tv(e){return"duration"in e}const nv=e=>{const t=n=>{(n.type==="pagehide"||Q.document?.visibilityState==="hidden")&&e(n)};Ot("visibilitychange",t,{capture:!0,once:!0}),Ot("pagehide",t,{capture:!0,once:!0})};function Yi(e){return typeof e=="number"&&isFinite(e)}function jt(e,t,n,{...r}){const s=Be(e).start_timestamp;return s&&s>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Wp(e,()=>{const o=zp({startTime:t,...r});return o&&o.end(n),o})}function Yc(e){const t=zt();if(!t)return;const{name:n,transaction:r,attributes:s,startTime:o}=e,{release:i,environment:a,sendDefaultPii:c}=t.getOptions(),l=t.getIntegrationByName("Replay")?.getReplayId(),d=Ht(),f=d.getUser(),p=f!==void 0?f.email||f.id||f.ip_address:void 0;let h;try{h=d.getScopeData().contexts.profile.profile_id}catch{}const g={release:i,environment:a,user:p||void 0,profile_id:h||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":Q.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...s};return zp({name:n,attributes:g,startTime:o,experimental:{standalone:!0}})}function di(){return Q.addEventListener&&Q.performance}function Ce(e){return e/1e3}function rv(e){let t="unknown",n="unknown",r="";for(const s of e){if(s==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=s}return r===e&&(t=r),{name:t,version:n}}function sh(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function oh(e,t){let n,r=!1;function s(a){!r&&n&&t(a,n),r=!0}nv(()=>{s("pagehide")});const o=e.on("beforeStartNavigationSpan",(a,c)=>{c?.isRedirect||(s("navigation"),o(),i())}),i=e.on("afterStartPageLoadSpan",a=>{n=a.spanContext().spanId,i()})}function sv(e){let t=0,n;if(!sh("layout-shift"))return;const r=Vc(({metric:s})=>{const o=s.entries[s.entries.length-1];
34o&&(t=s.value,n=o)},!0);oh(e,(s,o)=>{ov(t,n,o,s),r()})}function ov(e,t,n,r){dn&&pe.log(`Sending CLS span (${e})`);const s=t?Ce((tt()||0)+t.startTime):Ft(),o=Ht().getScopeData().transactionName,i=t?it(t.sources[0]?.node):"Layout shift",a={[Pe]:"auto.http.browser.cls",[Gn]:"ui.webvital.cls",[ci]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((u,l)=>{a[`cls.source.${l+1}`]=it(u.node)});const c=Yc({name:i,transaction:o,attributes:a,startTime:s});c&&(c.addEvent("cls",{[Gr]:"",[Yr]:e}),c.end(s))}function iv(e){let t=0,n;if(!sh("largest-contentful-paint"))return;const r=Gc(({metric:s})=>{const o=s.entries[s.entries.length-1];o&&(t=s.value,n=o)},!0);oh(e,(s,o)=>{av(t,n,o,s),r()})}function av(e,t,n,r){dn&&pe.log(`Sending LCP span (${e})`);const s=Ce((tt()||0)+(t?.startTime||0)),o=Ht().getScopeData().transactionName,i=t?it(t.element):"Largest contentful paint",a={[Pe]:"auto.http.browser.lcp",[Gn]:"ui.webvital.lcp",[ci]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(a["lcp.element"]=it(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url),t.loadTime!=null&&(a["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(a["lcp.renderTime"]=t.renderTime),t.size!=null&&(a["lcp.size"]=t.size));const c=Yc({name:i,transaction:o,attributes:a,startTime:s});c&&(c.addEvent("lcp",{[Gr]:"millisecond",[Yr]:e}),c.end(s))}function ze(e){return e&&((tt()||performance.timeOrigin)+e)/1e3}function ih(e){const t={};if(e.nextHopProtocol!=null){const{name:n,version:r}=rv(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return tt()||di()?.timeOrigin?cv({...t,"http.request.redirect_start":ze(e.redirectStart),"http.request.redirect_end":ze(e.redirectEnd),"http.request.worker_start":ze(e.workerStart),"http.request.fetch_start":ze(e.fetchStart),"http.request.domain_lookup_start":ze(e.domainLookupStart),"http.request.domain_lookup_end":ze(e.domainLookupEnd),"http.request.connect_start":ze(e.connectStart),"http.request.secure_connection_start":ze(e.secureConnectionStart),"http.request.connection_end":ze(e.connectEnd),"http.request.request_start":ze(e.requestStart),"http.request.response_start":ze(e.responseStart),"http.request.response_end":ze(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function cv(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const uv=2147483647;let Jl=0,Xe={},Oe,Mo;function lv({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=di();if(r&&tt()){r.mark&&Q.performance.mark("sentry-tracing-init");const s=t?iv(n):mv(),o=gv(),i=e?sv(n):hv();return()=>{s?.(),o(),i?.()}}return()=>{}}function dv(){Yn("longtask",({entries:e})=>{const t=or();if(!t)return;const{op:n,start_timestamp:r}=Be(t);for(const s of e){const o=Ce(tt()+s.startTime),i=Ce(s.duration);n==="navigation"&&r&&o<r||jt(t,o,o+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[Pe]:"auto.ui.browser.metrics"}})}})}function fv(){new PerformanceObserver(t=>{const n=or();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const s=Ce(tt()+r.startTime),{start_timestamp:o,op:i}=Be(n);if(i==="navigation"&&o&&s<o)continue;const a=Ce(r.duration),c={[Pe]:"auto.ui.browser.metrics"},u=r.scripts[0],{invoker:l,invokerType:d,sourceURL:f,sourceFunctionName:p,sourceCharPosition:h}=u;c["browser.script.invoker"]=l,c["browser.script.invoker_type"]=d,f&&(c["code.filepath"]=f),p&&(c["code.function"]=p),h!==-1&&(c["browser.script.source_char_position"]=h),jt(n,s,s+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function pv(){Yn("event",({entries:e})=>{const t=or();if(t){for(const n of e)if(n.name==="click"){const r=Ce(tt()+n.startTime),s=Ce(n.duration),o={name:it(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[Pe]:"auto.ui.browser.metrics"}},i=E1(n.target);i&&(o.attributes["ui.component_name"]=i),jt(t,r,r+s,o)}}})}function hv(){return Vc(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Xe.cls={value:e.value,unit:""},Mo=t)},!0)}function mv(){return Gc(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Xe.lcp={value:e.value,unit:"millisecond"},Oe=t)},!0)}
34function gv(){return KS(({metric:e})=>{e.entries[e.entries.length-1]&&(Xe.ttfb={value:e.value,unit:"millisecond"})})}function xv(e,t){const n=di(),r=tt();if(!n?.getEntries||!r)return;const s=Ce(r),o=n.getEntries(),{op:i,start_timestamp:a}=Be(e);o.slice(Jl).forEach(c=>{const u=Ce(c.startTime),l=Ce(Math.max(0,c.duration));if(!(i==="navigation"&&a&&s+u<a))switch(c.entryType){case"navigation":{vv(e,c,s);break}case"mark":case"paint":case"measure":{yv(e,c,u,l,s,t.ignorePerformanceApiSpans);const d=Qr(),f=c.startTime<d.firstHiddenTime;c.name==="first-paint"&&f&&(Xe.fp={value:c.startTime,unit:"millisecond"}),c.name==="first-contentful-paint"&&f&&(Xe.fcp={value:c.startTime,unit:"millisecond"});break}case"resource":{Cv(e,c,c.name,u,l,s,t.ignoreResourceSpans);break}}}),Jl=Math.max(o.length-1,0),wv(e),i==="pageload"&&(kv(Xe),t.recordClsOnPageloadSpan||delete Xe.cls,t.recordLcpOnPageloadSpan||delete Xe.lcp,Object.entries(Xe).forEach(([c,u])=>{mS(c,u.value,u.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",ir()),Av(e,t)),Oe=void 0,Mo=void 0,Xe={}}function _v(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components â"}catch{return}}function yv(e,t,n,r,s,o){if(_v(t)||["mark","measure"].includes(t.entryType)&&A1(t.name,o))return;const i=Jr(!1),a=Ce(i?i.requestStart:0),c=s+Math.max(n,a),u=s+n,l=u+r,d={[Pe]:"auto.resource.browser.metrics"};c!==u&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=c),Sv(d,t),c<=l&&jt(e,c,l,{name:t.name,op:t.entryType,attributes:d})}function Sv(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,s]of Object.entries(n))if(s&&Pl(s))e[`sentry.browser.measure.detail.${r}`]=s;else if(s!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(s)}catch{}return}if(Pl(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function vv(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{ls(e,t,r,n)}),ls(e,t,"secureConnection",n,"TLS/SSL"),ls(e,t,"fetch",n,"cache"),ls(e,t,"domainLookup",n,"DNS"),Ev(e,t,n)}function ls(e,t,n,r,s=n){const o=bv(n),i=t[o],a=t[`${n}Start`];!a||!i||jt(e,r+Ce(a),r+Ce(i),{op:`browser.${s}`,name:t.name,attributes:{[Pe]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function bv(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function Ev(e,t,n){const r=n+Ce(t.requestStart),s=n+Ce(t.responseEnd),o=n+Ce(t.responseStart);t.responseEnd&&(jt(e,r,s,{op:"browser.request",name:t.name,attributes:{[Pe]:"auto.ui.browser.metrics"}}),jt(e,o,s,{op:"browser.response",name:t.name,attributes:{[Pe]:"auto.ui.browser.metrics"}}))}function Cv(e,t,n,r,s,o,i){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const a=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(i?.includes(a))return;const c={[Pe]:"auto.resource.browser.metrics"},u=ES(n);u.protocol&&(c["url.scheme"]=u.protocol.split(":").pop()),u.host&&(c["server.address"]=u.host),c["url.same_origin"]=n.includes(Q.location.origin),Tv(t,c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const l={...c,...ih(t)},d=o+r,f=d+s;jt(e,d,f,{name:n.replace(Q.location.origin,""),op:a,attributes:l})}function wv(e){const t=Q.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Yi(n.rtt)&&(Xe["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Yi(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Yi(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function Av(e,t){Oe&&t.recordLcpOnPageloadSpan&&(Oe.element&&e.setAttribute("lcp.element",it(Oe.element)),Oe.id&&e.setAttribute("lcp.id",Oe.id),Oe.url&&e.setAttribute("lcp.url",Oe.url.trim().slice(0,200)),Oe.loadTime!=null&&e.setAttribute("lcp.loadTime",Oe.loadTime),Oe.renderTime!=null&&e.setAttribute("lcp.renderTime",Oe.renderTime),e.setAttribute("lcp.size",Oe.size)),Mo?.sources&&t.recordClsOnPageloadSpan&&Mo.sources.forEac
34h((n,r)=>e.setAttribute(`cls.source.${r+1}`,it(n.node)))}function Tv(e,t,n){n.forEach(([r,s])=>{const o=e[r];o!=null&&(typeof o=="number"&&o<uv||typeof o=="string")&&(t[s]=o)})}function kv(e){const t=Jr(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}const Iv=1e3;let Ql,za,Wa;function ah(e){Mc("dom",e),Lc("dom",Dv)}function Dv(){if(!Q.document)return;const e=Ir.bind(null,"dom"),t=Zl(e,!0);Q.document.addEventListener("click",t,!1),Q.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const s=Q[n]?.prototype;s?.hasOwnProperty?.("addEventListener")&&(To(s,"addEventListener",function(o){return function(i,a,c){if(i==="click"||i=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},l=u[i]=u[i]||{refCount:0};if(!l.handler){const d=Zl(e);l.handler=d,o.call(this,i,d,c)}l.refCount++}catch{}return o.call(this,i,a,c)}}),To(s,"removeEventListener",function(o){return function(i,a,c){if(i==="click"||i=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},l=u[i];l&&(l.refCount--,l.refCount<=0&&(o.call(this,i,l.handler,c),l.handler=void 0,delete u[i]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,a,c)}}))})}function Rv(e){if(e.type!==za)return!1;try{if(!e.target||e.target._sentryId!==Wa)return!1}catch{}return!0}function Bv(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function Zl(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Fv(n);if(Bv(n.type,r))return;bt(n,"_sentryCaptured",!0),r&&!r._sentryId&&bt(r,"_sentryId",on());
34const s=n.type==="keypress"?"input":n.type;Rv(n)||(e({event:n,name:s,global:t}),za=n.type,Wa=r?r._sentryId:void 0),clearTimeout(Ql),Ql=Q.setTimeout(()=>{Wa=void 0,za=void 0},Iv)}}function Fv(e){try{return e.target}catch{return null}}let ds;function fi(e){const t="history";Mc(t,e),Lc(t,Ov)}function Ov(){if(Q.addEventListener("popstate",()=>{const t=Q.location.href,n=ds;if(ds=t,n===t)return;Ir("history",{from:n,to:t})}),!CS())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=ds,o=Pv(String(r));if(ds=o,s===o)return t.apply(this,n);Ir("history",{from:s,to:o})}return t.apply(this,n)}}To(Q.history,"pushState",e),To(Q.history,"replaceState",e)}function Pv(e){try{return new URL(e,Q.location.origin).toString()}catch{return e}}const Rs={};function ch(e){const t=Rs[e];if(t)return t;let n=Q[e];if(wS(n))return Rs[e]=n.bind(Q);const r=Q.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o?.[e]&&(n=o[e]),r.head.removeChild(s)}catch(s){dn&&pe.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(Rs[e]=n.bind(Q))}function Nv(e){Rs[e]=void 0}function ts(...e){return ch("setTimeout")(...e)}const Jt="__sentry_xhr_v3__";function uh(e){Mc("xhr",e),Lc("xhr",Mv)}function Mv(){if(!Q.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,o=Ft()*1e3,i=Bt(r[0])?r[0].toUpperCase():void 0,a=Lv(r[1]);if(!i||!a)return t.apply(n,r);n[Jt]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[Jt];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const l={endTimestamp:Ft()*1e3,startTimestamp:o,xhr:n,virtualError:s};Ir("xhr",l)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,l,d){return c(),u.apply(l,d)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,l,d){const[f,p]=d,h=l[Jt];return h&&Bt(f)&&Bt(p)&&(h.request_headers[f.toLowerCase()]=p),u.apply(l,d)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[Jt];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:Ft()*1e3,xhr:n};return Ir("xhr",o),t.apply(n,r)}})}function Lv(e){if(Bt(e))return e;try{return e.toString()}catch{}}const $v=Symbol.for("sentry__originalRequestBody");function lh(e){return new URLSearchParams(e).toString()}function dh(e,t=pe){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[lh(e)];if(!e)return[void 0]}catch(n){return dn&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return dn&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function fh(e=[]){if(e.length>=2&&e[1]&&typeof e[1]=="object"&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){const n=e[0][$v];return n!==void 0?n:void 0}}function ph(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return dn&&pe.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r 35`).reduce((n,r)=>{const[s,o]=r.split(": ");return o&&(n[s.toLowerCase()]=o),n},{}):{}}const Ki=[],Bs=new Map,En=new Map,jv=60;function Uv(){if(di()&&tt()){const t=Hv();return()=>{t()}}return()=>{}}const qa={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Hv(){return th(zv)}const zv=({metric:e})=>{if(e.value==null)return;const t=Ce(e.value);if(t>jv)return;const n=e.entries.find(h=>h.duration===e.value&&qa[h.name]);if(!n)return;const{interactionId:r}=n,s=qa[n.name],o=Ce(tt()+n.startTime),i=or(),a=i?ot(i):void 0,c=r!=null?Bs.get(r):void 0,u=c?.span||a,l=u?Be(u).description:Ht().getScopeData().transactionName,d=c?.elementName||it(n.target),f={[Pe]:"auto.http.browser.inp",[Gn]:`ui.interaction.${s}`,[ci]:n.duration},p=Yc({name:d,transaction:l,attributes:f,startTime:o});p&&(p.addEvent("inp",{[Gr]:"millisecond",[Yr]:e.value}),p.end(o+t))};function Wv(){const e=Object.keys(qa);kS()&&e.forEach(s=>{Q.addEventListener(s,t,{capture:!0,passive:!0})});function t(s){const o=s.target;if(!o)return;const i=it(o),a=Math.round(s.timeStamp);if(En.set(a,i),En.size>50){const c=En.keys().next().value;c!==void 0&&En.delete(c)}}function n(s){const o=Math.round(s.startTime);let i=En.get(o);if(!i)for(let a=-5;a<=5;a++){const c=En.get(o+a);if(c){i=c;break}}return i||"<unknown>"}const r=({entries:s})=>{const o=or(),i=o&&ot(o);
35s.forEach(a=>{if(!tv(a))return;const c=a.interactionId;if(c==null||Bs.has(c))return;const u=a.target?it(a.target):n(a);if(Ki.length>10){const l=Ki.shift();Bs.delete(l)}Ki.push(c),Bs.set(c,{span:i,elementName:u})})};Yn("event",r),Yn("first-input",r)}const qv=40;function Vv(e,t=ch("fetch")){let n=0,r=0;async function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const c=await t(e.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw Nv("fetch"),c}finally{n-=i,r--}}return H_(e,s,kc(e.bufferSize||qv))}const je=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Gv=30,Yv=50;function Va(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?an:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const Kv=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Xv=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Jv=/\((\S*)(?::(\d+))(?::(\d+))\)/,Qv=/at (.+?) ?\(data:(.+?),/,Zv=e=>{const t=e.match(Qv);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=Kv.exec(e);if(n){const[,s,o,i]=n;return Va(s,an,+o,+i)}const r=Xv.exec(e);if(r){if(r[2]?.indexOf("eval")===0){const a=Jv.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[o,i]=hh(r[1]||an,r[2]);return Va(i,o,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},eb=[Gv,Zv],tb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,nb=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,rb=e=>{const t=tb.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=nb.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],s=t[1]||an;return[s,r]=hh(s,r),Va(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},sb=[Yv,rb],ob=[eb,sb],ib=pf(...ob),hh=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:an,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},fs=1024,ab="Breadcrumbs",cb=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ab,setup(n){t.console&&Cy(fb(n)),t.dom&&ah(db(n,t.dom)),t.xhr&&uh(pb(n)),t.fetch&&_p(hb(n)),t.history&&fi(mb(n)),t.sentry&&n.on("beforeSendEvent",lb(n))}}},ub=cb;function lb(e){return function(n){ue()===e&&ln({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Xt(n)},{event:n})}}function db(e,t){return function(r){if(ue()!==e)return;let s,o,i=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>fs&&(je&&$.warn(`\`dom.maxStringLength\` cannot exceed ${fs}, but a value of ${a} was configured. Sentry will use ${fs} instead.`),a=fs),typeof i=="string"&&(i=[i]);try{const u=r.event,l=gb(u)?u.target:u;s=Sf(l,{keyAttrs:i,maxStringLength:a}),o=Ag(l)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),ln(c,{event:r.event,name:r.name,global:r.global})}}function fb(e){return function(n){if(ue()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Ay(n.level),message:qu(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${qu(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;ln(r,{input:n.args,level:n.level})}}function pb(e){return function(n){if(ue()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[Jt];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:u}=o,l={method:i,url:a,status_code:c},d={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},f={category:"xhr",data:l,type:"http",level:xp(c)};e.emit("beforeOutgoingRequestBreadcrumb",f,d),ln(f,d)}}function hb(e){return function(n){if(ue()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;
35if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},i={category:"fetch",data:n.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",i,o),ln(i,o)}else{const o=n.response,i={...n.fetchData,status_code:o?.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:i,type:"http",level:xp(i.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,a),ln(c,a)}}}function mb(e){return function(n){if(ue()!==e)return;let r=n.from,s=n.to;const o=Pn(re.location.href);let i=r?Pn(r):void 0;const a=Pn(s);i?.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),ln({category:"navigation",data:{from:r,to:s}})}}function gb(e){return!!e&&!!e.target}const xb="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),_b="BrowserApiErrors",yb=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:_b,setupOnce(){t.setTimeout&&mt(re,"setTimeout",ed),t.setInterval&&mt(re,"setInterval",ed),t.requestAnimationFrame&&mt(re,"requestAnimationFrame",vb),t.XMLHttpRequest&&"XMLHttpRequest"in re&&mt(XMLHttpRequest.prototype,"send",bb);const n=t.eventTarget;n&&(Array.isArray(n)?n:xb).forEach(s=>Eb(s,t))}}},Sb=yb;function ed(e){return function(...t){const n=t[0];return t[0]=qn(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Lt(e)}`}}),e.apply(this,t)}}function vb(e){return function(t){return e.apply(this,[qn(t,{mechanism:{data:{handler:Lt(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function bb(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&mt(n,s,function(o){const i={mechanism:{data:{handler:Lt(o)},handled:!1,type:`auto.browser.browserapierrors.xhr.${s}`}},a=yc(o);return a&&(i.mechanism.data.handler=Lt(a)),qn(o,i)})}),e.apply(this,t)}}function Eb(e,t){const r=re[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(mt(r,"addEventListener",function(s){return function(o,i,a){try{Cb(i)&&(i.handleEvent=qn(i.handleEvent,{mechanism:{data:{handler:Lt(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&wb(this,o,i),s.apply(this,[o,qn(i,{mechanism:{data:{handler:Lt(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),mt(r,"removeEventListener",function(s){return function(o,i,a){try{const c=i.__sentry_wrapped__;c&&s.call(this,o,c,a)}catch{}return s.call(this,o,i,a)}}))}function Cb(e){return typeof e.handleEvent=="function"}function wb(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const Ab=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof re.document>"u"){je&&$.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}pl({ignoreDuration:!0}),Li();const n=ut();let r=n.getUser();n.addScopeListener(s=>{const o=s.getUser();(r?.id!==o?.id||r?.ip_address!==o?.ip_address)&&(Li(),r=o)}),t==="route"&&fi(({from:s,to:o})=>{s!==o&&(pl({ignoreDuration:!0}),Li())})}}},Tb="CultureContext",kb=()=>({name:Tb,preprocessEvent(e){const t=Db();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})}}),Ib=kb;function Db(){try{const e=re.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}const Rb="GlobalHandlers",Bb=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Rb,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Ob(n),td("onerror")),t.onunhandledrejection&&(Pb(n),td("onunhandledrejection"))}}},Fb=Bb;function Ob(e){mf(t=>{const{stackParser:n,attachStacktrace:r}=mh();if(ue()!==e||Sp())return;const{msg:s,url:o,line:i,column:a,error:c}=t,u=Lb(Bc(n,c||s,void 0,r,!1),o,i,a);u.level="error",Jf(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function Pb(e){gf(t=>{const{stackParser:n,attachStacktrace:r}=mh();if(ue()!==e||Sp())return;const s=Nb(t),o=ri(s)?Mb(s):Bc(n,s,void 0,r,!0);o.level="error",Jf(o,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function Nb(e){if(ri(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Mb(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}
35function Lb(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:$b(t)??jr(),function:an,in_app:!0}),e}function td(e){je&&$.log(`Global Handler attached: ${e}`)}function mh(){return ue()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function $b(e){if(!(!Er(e)||e.length===0))return e.startsWith("data:")?`<${Rt(e,!1)}>`:e}const jb=()=>({name:"HttpContext",preprocessEvent(e){if(!re.navigator&&!re.location&&!re.document)return;const t=Ic(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),Ub="cause",Hb=5,zb="LinkedErrors",Wb=(e={})=>{const t=e.limit||Hb,n=e.key||Ub;return{name:zb,preprocessEvent(r,s,o){const i=o.getOptions();Ey(Dc,i.stackParser,n,t,r,s)}}},qb=Wb;function Vb(){return Gb()?(je&&pn(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function Gb(){if(typeof re.window>"u")return!1;const e=re;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=jr();return!(re===re.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}function Yb(e){return[my(),dy(),Py(),Sb(),ub(),Fb(),qb(),Iy(),jb(),Ib(),Ab()]}function Kb(e={}){const t=!e.skipBrowserExtensionCheck&&Vb();let n=e.defaultIntegrations==null?Yb():e.defaultIntegrations;const r={...e,enabled:t?!1:e.enabled,stackParser:gg(e.stackParser||ib),integrations:I_({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||Vv};return Z_(c1,r)}const Pt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ke=globalThis,yr="10.47.0";function pi(){return Kc(ke),ke}function Kc(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||yr,t[yr]=t[yr]||{}}function hi(e,t,n=ke){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[yr]=r[yr]||{};return s[e]||(s[e]=t())}const Xb="Sentry Logger ",nd={};function Xc(e){if(!("console"in ke))return e();const t=ke.console,n={},r=Object.keys(nd);r.forEach(s=>{const o=nd[s];n[s]=t[s],t[s]=o});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function Jb(){Qc().enabled=!0}function Qb(){Qc().enabled=!1}function gh(){return Qc().enabled}function Zb(...e){Jc("log",...e)}function eE(...e){Jc("warn",...e)}function tE(...e){Jc("error",...e)}function Jc(e,...t){Pt&&gh()&&Xc(()=>{ke.console[e](`${Xb}[${e}]:`,...t)})}function Qc(){return Pt?hi("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const _t={enable:Jb,disable:Qb,isEnabled:gh,log:Zb,warn:eE,error:tE},Xi="<anonymous>";function nE(e){try{return!e||typeof e!="function"?Xi:e.name||Xi}catch{return Xi}}function rE(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const xh=Object.prototype.toString;function sE(e){switch(xh.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return gi(e,Error)}}function Zc(e,t){return xh.call(e)===`[object ${t}]`}function Lo(e){return Zc(e,"String")}function _h(e){return Zc(e,"Object")}function oE(e){return typeof Event<"u"&&gi(e,Event)}function iE(e){return typeof Element<"u"&&gi(e,Element)}function aE(e){return Zc(e,"RegExp")}function mi(e){return!!(e?.then&&typeof e.then=="function")}function cE(e){return _h(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function gi(e,t){try{return e instanceof t}catch{return!1}}function uE(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}const yh=ke,lE=80;function eu(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||lE;for(;n&&o++<r&&(u=dE(n,l),!(u==="html"||o>1&&i+s.length*c+u.length>=d));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function dE(e,t){const n=e,r=[];if(!n?.tagName)return"";if(yh.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=t?.length?t.filter(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(s?.length)s.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&Lo(o)){const i=o.split(/\s+/);for(const a of i)r.push(`.${a}`)}}for(const o of["aria-label","type","name","title","alt"]){const i=n.getAttribute(o);i&&r.push(`[${o}="${i}"]`)}return r.join("")}function fE(){try{return yh.document.location.href}catch{return""}}function pE(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&hE(s,r);try{e[t]=s}catch{Pt&&_t.log(`Failed to replace method "${t}" in object`,e)}}
35function Sh(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Pt&&_t.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function hE(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Sh(e,"__sentry_original__",t)}catch{}}function mE(e){if(sE(e))return{message:e.message,name:e.name,stack:e.stack,...sd(e)};if(oE(e)){const t={type:e.type,target:rd(e.target),currentTarget:rd(e.currentTarget),...sd(e)};return typeof CustomEvent<"u"&&gi(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function rd(e){try{return iE(e)?eu(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function sd(e){return typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e)):{}}let Cn;function ns(e){if(Cn!==void 0)return Cn?Cn(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=ke;return t in n&&typeof n[t]=="function"?(Cn=n[t],Cn(e)):(Cn=null,e())}function Ga(){return ns(()=>Math.random())}function rs(){return ns(()=>Date.now())}function Ya(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function gE(e,t,n=!1){return Lo(e)?aE(t)?t.test(e):Lo(t)?n?e===t:e.includes(t):!1:!1}function xE(e,t=[],n=!1){return t.some(r=>gE(e,r,n))}function _E(){const e=ke;return e.crypto||e.msCrypto}let Ji;function yE(){return Ga()*16}function Nt(e=_E()){try{if(e?.randomUUID)return ns(()=>e.randomUUID()).replace(/-/g,"")}catch{}return Ji||(Ji="10000000100040008000"+1e11),Ji.replace(/[018]/g,t=>(t^(yE()&15)>>t/4).toString(16))}function SE(e){return e.exception?.values?.[0]}function vE(e,t){const n=SE(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const o={...s?.data,...t.data};n.mechanism.data=o}}const vh=1e3;function xi(){return rs()/vh}function bE(){const{performance:e}=ke;if(!e?.now||!e.timeOrigin)return xi;const t=e.timeOrigin;return()=>(t+ns(()=>e.now()))/vh}let od;function bh(){return(od??(od=bE()))()}let Qi=null;function EE(){const{performance:e}=ke;if(!e?.now)return;const t=3e5,n=ns(()=>e.now()),r=rs(),s=e.timeOrigin;if(typeof s=="number"&&Math.abs(s+n-r)<t)return s;const o=e.timing?.navigationStart;return typeof o=="number"&&Math.abs(o+n-r)<t?o:r-n}function CE(){return Qi===null&&(Qi=EE()),Qi}function wE(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||bh(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Nt()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function _i(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=_i(r[s],t[s],n-1));return r}function id(){return Nt()}function AE(){return Nt().substring(16)}const Ka="_sentrySpan";function ad(e,t){t?Sh(e,Ka,t):delete e[Ka]}function Xa(e){return e[Ka]}const TE=100;class at{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:id(),sampleRand:Ga()}}clone(){const t=new at;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,ad(t,Xa(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&wE(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof at?n.getScopeData():_h(n)?t:void 0,{tags:s,attributes:o,extra:i,user:a,contexts:c,level:u,fingerprint:l=[],propagationContext:d,conversationId:f}=r||{};return this._tags={...this._tags,...s},this._attributes={...this._attributes,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),l.length&&(this._fingerprint=l),d&&(this._propagationContext=d),f&&(this._conversationId=f),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,ad(this,void 0),this._attachments=[],this.setPropagationContext({traceId:id(),sampleRand:Ga()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:TE;if(r<=0)return this;const s={timestamp:xi(),...t,message:t.message?Ya(t.message,2048):t.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Xa(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=_i(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||Nt();if(!this._client)return Pt&&_t.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r?.event_id||Nt();if(!this._client)return Pt&&_t.warn("No client configured on scope - will not capture message!"),s;const o=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=t.event_id||n?.event_id||Nt();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(Pt&&_t.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
35h(t=>{t(this)}),this._notifyingListeners=!1)}}function kE(){return hi("defaultCurrentScope",()=>new at)}function IE(){return hi("defaultIsolationScope",()=>new at)}const cd=e=>e instanceof Promise&&!e[Eh],Eh=Symbol("chained PromiseLike"),DE=(e,t,n)=>{const r=e.then(s=>(t(s),s),s=>{throw n(s),s});return cd(r)&&cd(e)?r:RE(e,r)},RE=(e,t)=>{let n=!1;for(const r in e){if(r in t)continue;n=!0;const s=e[r];typeof s=="function"?Object.defineProperty(t,r,{value:(...o)=>s.apply(e,o),enumerable:!0,configurable:!0,writable:!0}):t[r]=s}return n&&Object.assign(t,{[Eh]:!0}),t};class BE{constructor(t,n){let r;t?r=t:r=new at;let s;n?s=n:s=new at,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return mi(r)?DE(r,()=>this._popScope(),()=>this._popScope()):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Kn(){const e=pi(),t=Kc(e);return t.stack=t.stack||new BE(kE(),IE())}function FE(e){return Kn().withScope(e)}function OE(e,t){const n=Kn();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function ud(e){return Kn().withScope(()=>e(Kn().getIsolationScope()))}function PE(){return{withIsolationScope:ud,withScope:FE,withSetScope:OE,withSetIsolationScope:(e,t)=>ud(t),getCurrentScope:()=>Kn().getScope(),getIsolationScope:()=>Kn().getIsolationScope()}}function tu(e){const t=Kc(e);return t.acs?t.acs:PE()}function ss(){const e=pi();return tu(e).getCurrentScope()}function yi(){const e=pi();return tu(e).getIsolationScope()}function NE(){return hi("globalScope",()=>new at)}function lt(){return ss().getClient()}const Ch="sentry.source",ME="sentry.sample_rate",LE="sentry.previous_trace_sample_rate",$E="sentry.op",jE="sentry.origin",UE=0,HE=1,zE="_sentryScope",WE="_sentryIsolationScope";function qE(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}function wh(e){const t=e;return{scope:t[zE],isolationScope:qE(t[WE])}}const ld="sentry-";function VE(e){const t=GE(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,o])=>{if(s.startsWith(ld)){const i=s.slice(ld.length);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function GE(e){if(!(!e||!Lo(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=dd(n);return Object.entries(r).forEach(([s,o])=>{t[s]=o}),t},{}):dd(e)}function dd(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),s=t.slice(n+1);return[r,s].map(o=>{try{return decodeURIComponent(o.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}const YE=/^o(\d+)\./;function KE(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function XE(e){return e.match(YE)?.[1]}function JE(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=XE(n)),r}function fd(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const Ah=1;function QE(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:Dr(e).parent_span_id,o=wh(e).scope,i=r?o?.getPropagationContext().propagationSpanId||AE():t;return{parent_span_id:s,span_id:i,trace_id:n}}function ZE(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...s},attributes:o})=>({span_id:t,trace_id:n,sampled:r===Ah,attributes:o,...s}))}function pd(e){return typeof e=="number"?hd(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?hd(e.getTime()):bh()}function hd(e){return e>9999999999?e/1e3:e}function Dr(e){if(tC(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(eC(e)){const{attributes:r,startTime:s,name:o,endTime:i,status:a,links:c}=e,u="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:r,description:o,parent_span_id:u,start_timestamp:pd(s),timestamp:pd(i)||void 0,status:rC(a),op:r[$E],origin:r[jE],links:ZE(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function eC(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function tC(e){return typeof e.getSpanJSON=="function"}function nC(e){const{traceFlags:t}=e.spanContext();return t===Ah}function rC(e){if(!(!e||e.code===UE))return e.code===HE?"ok":e.message||"internal_error"}const sC="_sentryRootSpan";function nu(e){return e[sC]||e}function Th(){const e=pi(),t=tu(e);return t.getActiveSpan?t.getActiveSpan():Xa(ss())}function oC(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=lt()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}const kh="production",iC="_frozenDsc";function aC(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s={environment:n.environment||kh,release:n.release,public_key:r,trace_id:e,org_id:JE(t)};return t.emit("createDsc",s),s}function Ih(e){const t=lt();if(!t)return{};const n=nu(e),r=Dr(n),s=r.data,o=n.spanContext().traceState,i=o?.get("sentry.sample_rate")??s[ME]??s[LE];function a(h){return(typeof i=="number"||typeof i=="string")&&(h.sample_rate=`${i}`),h}const c=n[iC];if(c)return a(c);const u=o?.get("sentry.dsc"),l=u&&VE(u);if(l)return a(l);const d=aC(e.spanContext().traceId,t),f=s[Ch],p=r.description;return f!=="url"&&p&&(d.transaction=p),oC()&&(d.sampled=String(nC(n)),d.sample_rand=o?.get("sentry.sample_rand")??wh(n).scope?.getPropagationContext().sampleRand.toString()),a(d),t.emit("createDsc",d,n),d}function ht(e,t=100,n=1/0){try{return Ja("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Ja(e,t,n=1/0,r=1/0,s=lC()){const[o,i]=s;
vendor: 5,684 bytes, line 35
35if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=cC(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const p=u.toJSON();return Ja("",p,c-1,r,s)}catch{}const l=Array.isArray(t)?[]:{};let d=0;const f=mE(t);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(d>=r){l[p]="[MaxProperties ~]";break}const h=f[p];l[p]=Ja(p,h,c-1,r,s),d++}return i(t),l}function cC(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(uE(t))return rE(t);if(cE(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${nE(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=uC(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function uC(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function lC(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function dC(e,t=[]){return[e,t]}function fC(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function pC(e,t,n,r){const s=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:KE(r)},...s&&{trace:s}}}const Zi=0,md=1,gd=2;function Dh(e){return new Rr(t=>{t(e)})}function hC(e){return new Rr((t,n)=>{n(e)})}class Rr{constructor(t){this._state=Zi,this._handlers=[],this._runExecutor(t)}then(t,n){return new Rr((r,s)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Rr((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,t&&t()},i=>{o=!0,s=i,t&&t()}).then(()=>{if(o){r(s);return}n(s)})})}_executeHandlers(){if(this._state===Zi)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===md&&n[1](this._value),this._state===gd&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(o,i)=>{if(this._state===Zi){if(mi(i)){i.then(r,s);return}this._state=o,this._value=i,this._executeHandlers()}},r=o=>{n(md,o)},s=o=>{n(gd,o)};try{t(r,s)}catch(o){s(o)}}}function mC(e,t,n,r=0){try{const s=Qa(t,n,e,r);return mi(s)?s:Dh(s)}catch(s){return hC(s)}}function Qa(e,t,n,r){const s=n[r];if(!e||!s)return e;const o=s({...e},t);return Pt&&o===null&&_t.log(`Event processor "${s.id||"?"}" dropped event`),mi(o)?o.then(i=>Qa(i,t,n,r+1)):Qa(o,t,n,r+1)}let Yt,xd,_d,Tt;function gC(e){const t=ke._sentryDebugIds,n=ke._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],s=n?Object.keys(n):[];if(Tt&&r.length===xd&&s.length===_d)return Tt;xd=r.length,_d=s.length,Tt={},Yt||(Yt={});const o=(i,a)=>{for(const c of i){const u=a[c],l=Yt?.[c];if(l&&Tt&&u)Tt[l[0]]=u,Yt&&(Yt[c]=[l[0],u]);else if(u){const d=e(c);for(let f=d.length-1;f>=0;f--){const h=d[f]?.filename;if(h&&Tt&&Yt){Tt[h]=u,Yt[c]=[h,u];break}}}}};return t&&o(r,t),n&&o(s,n),Tt}function xC(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=t;yC(e,t),r&&bC(e,r),EC(e,n),SC(e,s),vC(e,o)}function yd(e,t){const{extra:n,tags:r,attributes:s,user:o,contexts:i,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:l,eventProcessors:d,attachments:f,propagationContext:p,transactionName:h,span:g}=t;fr(e,"extra",n),fr(e,"tags",r),fr(e,"attributes",s),fr(e,"user",o),fr(e,"contexts",i),e.sdkProcessingMetadata=_i(e.sdkProcessingMetadata,c,2),a&&(e.level=a),h&&(e.transactionName=h),g&&(e.span=g),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function fr(e,t,n){e[t]=_i(e[t],n,1)}function _C(e,t){const n=NE().getScopeData();return e&&yd(n,e.getScopeData()),t&&yd(n,t.getScopeData()),n}function yC(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(s).length&&(e.user={...s,...e.user}),Object.keys(o).length&&(e.contexts={...o,...e.contexts}),i&&(e.level=i),a&&e.type!=="transaction"&&(e.transaction=a)}function SC(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function vC(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function bC(e,t){e.contexts={trace:QE(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ih(t),...e.sdkProcessingMetadata};const n=nu(t),r=Dr(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function EC(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function CC(e,t,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Nt(),timestamp:t.timestamp||xi()},u=n.integrations||e.integrations.map(v=>
35v.name);wC(c,e),kC(c,u),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&AC(c,e.stackParser);const l=DC(r,n.captureContext);n.mechanism&&vE(c,n.mechanism);const d=s?s.getEventProcessors():[],f=_C(o,l),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),xC(c,f);const h=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?Dh(c):mC(h,c,n)).then(v=>(v&&TC(v),typeof i=="number"&&i>0?IC(v,i,a):v))}function wC(e,t){const{environment:n,release:r,dist:s,maxValueLength:o}=t;e.environment=e.environment||n||kh,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s);const i=e.request;i?.url&&o&&(i.url=Ya(i.url,o)),o&&e.exception?.values?.forEach(a=>{a.value&&(a.value=Ya(a.value,o))})}function AC(e,t){const n=gC(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.filename&&(s.debug_id=n[s.filename])})})}function TC(e){const t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function kC(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function IC(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:ht(s.data,t,n)}}))},...e.user&&{user:ht(e.user,t,n)},...e.contexts&&{contexts:ht(e.contexts,t,n)},...e.extra&&{extra:ht(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=ht(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:ht(s.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=ht(e.contexts.flags,3,n)),r}function DC(e,t){if(!t)return e;const n=e?e.clone():new at;return n.update(t),n}function RC(e){if(e)return BC(e)?{captureContext:e}:OC(e)?{captureContext:e}:e}function BC(e){return e instanceof at||typeof e=="function"}const FC=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function OC(e){return Object.keys(e).some(t=>FC.includes(t))}function PC(e,t){return ss().captureException(e,RC(t))}function NC(e,t){yi().setContext(e,t)}function MC(e){yi().addEventProcessor(e)}const LC=60*1e3;function $C(e,t=rs()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?LC:r-t}function jC(e,t){return e[t]||e.all||0}function UC(e,t,n=rs()){return jC(e,t)>n}function HC(e,{statusCode:t,headers:n},r=rs()){const s={...e},o=n?.["x-sentry-rate-limits"],i=n?.["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,u,,,l]=a.split(":",5),d=parseInt(c,10),f=(isNaN(d)?60:d)*1e3;if(!u)s.all=r+f;else for(const p of u.split(";"))p==="metric_bucket"?(!l||l.split(";").includes("custom"))&&(s[p]=r+f):s[p]=r+f}else i?s.all=r+$C(i,r):t===429&&(s.all=r+60*1e3);return s}const zC="thismessage:/";function WC(e){return"isRelative"in e}function qC(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?zC:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const s=new URL(e,r);return n?{isRelative:n,pathname:s.pathname,search:s.search,hash:s.hash}:s}catch{}}function VC(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return YC(e,n)||GC(e,r)}function GC(e,t){return t?Sd(e)===Sd(t):!1}function YC(e,t){const n=qC(e);return!n||WC(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function Sd(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function KC(e,t,n){let r,s,o;const i=n?.maxWait?Math.max(n.maxWait,t):0,a=n?.setTimeoutImpl||setTimeout;function c(){return u(),r=e(),r}function u(){s!==void 0&&clearTimeout(s),o!==void 0&&clearTimeout(o),s=o=void 0}function l(){return s!==void 0||o!==void 0?c():r}function d(){return s&&clearTimeout(s),s=a(c,t),i&&o===void 0&&(o=a(c,i)),r}return d.cancel=u,d.flush=l,d}const XC=100;function JC(e,t){const n=lt(),r=yi();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=XC}=n.getOptions();if(o<=0)return;const a={timestamp:xi(),...e},c=s?Xc(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,o))}function QC(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function ZC(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function ew(){return!ZC()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function vd(){return typeof window<"u"&&(!ew()||tw())}function tw(){return ke.process?.type==="renderer"}const fe=ke,ru="sentryReplaySession",nw="replay_event",su="Unable to send Replay",rw=3e5,sw=9e5,ow=5e3,iw=5500,aw=6e4,cw=5e3,uw=3,bd=15e4,ps=5e3,lw=3e3,dw=300,ou=2e7,fw=4999,pw=5e4,Ed=36e5;var hw=Object.defineProperty,mw=(e,t,n)=>t in e?hw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cd=(e,t,n)=>mw(e,typeof t!="symbol"?t+"":t,n),Ee=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Ee||{});
35function gw(e){return e.nodeType===e.ELEMENT_NODE}function Sr(e){return e?.host?.shadowRoot===e}function vr(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function xw(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function _w(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function $o(e){try{const t=e.rules||e.cssRules;return t?xw(Array.from(t,Rh).join("")):null}catch{return null}}function yw(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],o=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}function Rh(e){let t;if(vw(e))try{t=$o(e.styleSheet)||_w(e)}catch{}else if(bw(e)){let n=e.cssText;const r=e.selectorText.includes(":"),s=typeof e.style.all=="string"&&e.style.all;if(s&&(n=yw(e)),r&&(n=Sw(n)),r||s)return n}return t||e.cssText}function Sw(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function vw(e){return"styleSheet"in e}function bw(e){return"selectorText"in e}class Bh{constructor(){Cd(this,"idNodeMap",new Map),Cd(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 s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Ew(){return new Bh}function Si({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function Br({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function Xn(e){return e.toLowerCase()}function Za(e){return e.toUpperCase()}const wd="__rrweb_original__";function Cw(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let s=0;s<e.height;s+=n){const o=t.getImageData,i=wd in o?o[wd]:o;if(new Uint32Array(i.call(t,r,s,Math.min(n,e.width-r),Math.min(n,e.height-s)).data.buffer).some(c=>c!==0))return!1}return!0}function iu(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Xn(t):null}function jo(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function Fh(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i;return n.pathname.match(r)?.[1]??null}const Ad={};function Oh(e){const t=Ad[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(s)}catch{}return Ad[e]=r.bind(window)}function ec(...e){return Oh("setTimeout")(...e)}function Ph(...e){return Oh("clearTimeout")(...e)}function Nh(e){try{return e.contentDocument}catch{}}let ww=1;const Aw=new RegExp("[^a-z0-9-_:]"),Fr=-2;function au(){return ww++}function Tw(e){if(e instanceof HTMLFormElement)return"form";const t=Xn(e.tagName);return Aw.test(t)?"div":t}function kw(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let wn,Td;const Iw=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Dw=/^(?:[a-z+]+:)?\/\//i,Rw=/^www\..*/i,Bw=/^(data:)([^,]*),(.*)/i;function Fw(e,t){if(!e||t.size===0)return e;try{const n=e.split(";"),r=[];for(let s of n){if(s=s.trim(),!s)continue;const o=s.indexOf(":");if(o===-1){r.push(s);continue}const i=s.slice(0,o).trim();t.has(i)||r.push(s)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),e}}function Uo(e,t){return(e||"").replace(Iw,(n,r,s,o,i,a)=>{const c=s||i||a,u=r||o||"";if(!c)return n;if(Dw.test(c)||Rw.test(c))return`url(${u}${c}${u})`;if(Bw.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${kw(t)+c}${u})`;const l=t.split("/"),d=c.split("/");l.pop();for(const f of d)f!=="."&&(f===".."?l.pop():l.push(f));return`url(${u}${l.join("/")}${u})`})}const Ow=/^[^ \t\n\r\u000c]+/,Pw=/^[, \t\n\r\u000c]+/;function Nw(e,t){if(t.trim()==="")return t;let n=0;function r(o){let i;const a=o.exec(t.substring(n));return a?(i=a[0],n+=i.length,i):""}const s=[];for(;r(Pw),!(n>=t.length);
35){let o=r(Ow);if(o.slice(-1)===",")o=Rn(e,o.substring(0,o.length-1)),s.push(o);else{let i="";o=Rn(e,o);let a=!1;for(;;){const c=t.charAt(n);if(c===""){s.push((o+i).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,s.push((o+i).trim());break}else c==="("&&(a=!0);i+=c,n+=1}}}return s.join(", ")}const kd=new WeakMap;function Rn(e,t){return!t||t.trim()===""?t:vi(e,t)}function Mw(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function vi(e,t){let n=kd.get(e);if(n||(n=e.createElement("a"),kd.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function Mh(e,t,n,r,s,o,i){if(!r)return r;if(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#"))return Rn(e,r);if(n==="xlink:href"&&r[0]!=="#")return Rn(e,r);if(n==="background"&&(t==="table"||t==="td"||t==="th"))return Rn(e,r);if(n==="srcset")return Nw(e,r);if(n==="style"){let a=Uo(r,vi(e));return i&&i.size>0&&(a=Fw(a,i)),a}else if(t==="object"&&n==="data")return Rn(e,r);return typeof o=="function"?o(n,r,s):r}function Lh(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Lw(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let s=e.classList.length;s--;){const o=e.classList[s];if(t.test(o))return!0}if(n)return e.matches(n)}catch{}return!1}function $w(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Qt(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Qt(e.parentNode,t,n,r+1)}function Bn(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($w(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Jn(e,t,n,r,s,o){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(i===null)return!1;if(i.tagName==="INPUT"){const u=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let a=-1,c=-1;if(o){if(c=Qt(i,Bn(r,s)),c<0)return!0;a=Qt(i,Bn(t,n),c>=0?c:1/0)}else{if(a=Qt(i,Bn(t,n)),a<0)return!1;c=Qt(i,Bn(r,s),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!o}catch{}return!!o}function jw(e,t,n){const r=e.contentWindow;if(!r)return;let s=!1,o;try{o=r.document.readyState}catch{return}if(o!=="complete"){const a=ec(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{Ph(a),s=!0,t()});return}const i="about:blank";if(r.location.href!==i||e.src===i||e.src==="")return ec(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Uw(e,t,n){let r=!1,s;try{s=e.sheet}catch{return}if(s)return;const o=ec(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{Ph(o),r=!0,t()})}function Hw(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:g,maskInputFn:_,dataURLOptions:v={},inlineImages:S,recordCanvas:x,keepIframeSrcFn:b,newlyAddedElement:T=!1,ignoreCSSAttributes:w}=t,y=zw(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Ee.Document,childNodes:[],compatMode:e.compatMode}:{type:Ee.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Ee.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return qw(e,{doc:n,blockClass:s,blockSelector:o,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:h,maskInputFn:_,dataURLOptions:v,inlineImages:S,recordCanvas:x,keepIframeSrcFn:b,newlyAddedElement:T,rootId:y,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,ignoreCSSAttributes:w});case e.TEXT_NODE:return Ww(e,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:g,maskInputOptions:h,maskInputFn:_,rootId:y});case e.CDATA_SECTION_NODE:return{type:Ee.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:Ee.Comment,textContent:e.textContent||"",rootId:y};default:return!1}}function zw(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function Ww(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const p=d==="STYLE"?!0:void 0,h=d==="SCRIPT"?!0:void 0,g=d==="TEXTAREA"?!0:void 0;if(p&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=$o(e.parentNode.sheet))}catch(v){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${v}`,e)}f=Uo(f,vi(t.doc))}h&&(f="SCRIPT_PLACEHOLDER");const _=Jn(e,r,o,s,i,n);if(!p&&!h&&!g&&f&&_&&(f=a?a(f,e.parentElement):f.replace(/[\S]/g,"*")),g&&f&&(c.textarea||_)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*")),d==="OPTION"&&f){const v=Si({type:null,tagName:d,maskInputOptions:c});f=Br({isMasked:Jn(e,r,o,s,i,v),element:e,value:f,maskInputFn:u})}return{type:Ee.Text,textContent:f||"",isStyle:p,rootId:l}}function qw(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:o,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:g,maskTextClass:_,unmaskTextClass:v,maskTextSelector:S,unmaskTextSelector:x,ignoreCSSAttributes:b}=t,T=Lw(e,r,s,o),w=Tw(e);let y={};const C=e.attributes.length;for(let E=0;E<C;E++){const A=e.attributes[E];A.name&&!Lh(w,A.name,A.value)&&(y[A.name]=Mh(n,w,Xn(A.name),A.value,e,c,b))}if(w==="link"&&i){const E=Array.from(n.styleSheets).find(k=>k.href===e.href);let A=null;E&&(A=$o(E)),A&&(y.rel=null,y.href=null,y.crossorigin=null,y._cssText=Uo(A,E.href))}if(w==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const E=$o(e.sheet);E&&(y._cssText=Uo(E,vi(n)))}if(w==="input"||w==="textarea"||w==="select"||w==="option"){const E=e,A=iu(E),k=jo(E,Za(w),A),D=E.checked;if(A!=="submit"&&A!=="button"&&k){const M=Jn(E,_,S,v,x,Si({type:A,tagName:Za(w),maskInputOptions:a}));
35y.value=Br({isMasked:M,element:E,value:k,maskInputFn:u})}D&&(y.checked=D)}if(w==="option"&&(e.selected&&!a.select?y.selected=!0:delete y.selected),w==="canvas"&&f){if(e.__context==="2d")Cw(e)||(y.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const E=e.toDataURL(l.type,l.quality),A=n.createElement("canvas");A.width=e.width,A.height=e.height;const k=A.toDataURL(l.type,l.quality);E!==k&&(y.rr_dataURL=E)}}if(w==="img"&&d){wn||(wn=n.createElement("canvas"),Td=wn.getContext("2d"));const E=e,A=E.currentSrc||E.getAttribute("src")||"<unknown-src>",k=E.crossOrigin,D=()=>{E.removeEventListener("load",D);try{wn.width=E.naturalWidth,wn.height=E.naturalHeight,Td.drawImage(E,0,0),y.rr_dataURL=wn.toDataURL(l.type,l.quality)}catch(M){if(E.crossOrigin!=="anonymous"){E.crossOrigin="anonymous",E.complete&&E.naturalWidth!==0?D():E.addEventListener("load",D);return}else console.warn(`Cannot inline img src=${A}! Error: ${M}`)}E.crossOrigin==="anonymous"&&(k?y.crossOrigin=k:E.removeAttribute("crossorigin"))};E.complete&&E.naturalWidth!==0?D():E.addEventListener("load",D)}if((w==="audio"||w==="video")&&(y.rr_mediaState=e.paused?"paused":"played",y.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(y.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(y.rr_scrollTop=e.scrollTop)),T){const{width:E,height:A}=e.getBoundingClientRect();y={class:y.class,rr_width:`${E}px`,rr_height:`${A}px`}}w==="iframe"&&!p(y.src)&&(!T&&!Nh(e)&&(y.rr_src=y.src),delete y.src);let P;try{customElements.get(w)&&(P=!0)}catch{}return{type:Ee.Element,tagName:w,attributes:y,childNodes:[],isSVG:Mw(e)||void 0,needBlock:T,rootId:g,isCustom:P}}function de(e){return e==null?"":e.toLowerCase()}function Vw(e,t){if(t.comment&&e.type===Ee.Comment)return!0;if(e.type===Ee.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Fh(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(de(e.attributes.name).match(/^msapplication-tile(image|color)$/)||de(e.attributes.name)==="application-name"||de(e.attributes.rel)==="icon"||de(e.attributes.rel)==="apple-touch-icon"||de(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&de(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(de(e.attributes.property).match(/^(og|twitter|fb):/)||de(e.attributes.name).match(/^(og|twitter):/)||de(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(de(e.attributes.name)==="robots"||de(e.attributes.name)==="googlebot"||de(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(de(e.attributes.name)==="author"||de(e.attributes.name)==="generator"||de(e.attributes.name)==="framework"||de(e.attributes.name)==="publisher"||de(e.attributes.name)==="progid"||de(e.attributes.property).match(/^article:/)||de(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(de(e.attributes.name)==="google-site-verification"||de(e.attributes.name)==="yandex-verification"||de(e.attributes.name)==="csrf-token"||de(e.attributes.name)==="p:domain_verify"||de(e.attributes.name)==="verify-v1"||de(e.attributes.name)==="verification"||de(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Fn(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:g,maskTextFn:_,maskInputFn:v,slimDOMOptions:S,dataURLOptions:x={},inlineImages:b=!1,recordCanvas:T=!1,onSerialize:w,onIframeLoad:y,iframeLoadTimeout:C=5e3,onBlockedImageLoad:P,onStylesheetLoad:E,stylesheetLoadTimeout:A=5e3,keepIframeSrcFn:k=()=>!1,newlyAddedElement:D=!1,ignoreCSSAttributes:M}=t;let{preserveWhiteSpace:j=!0}=t;const U=Hw(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:g,maskTextFn:_,maskInputFn:v,dataURLOptions:x,inlineImages:b,recordCanvas:T,keepIframeSrcFn:k,newlyAddedElement:D,ignoreCSSAttributes:M});if(!U)return console.warn(e,"not serialized"),null;let V;r.hasNode(e)?V=r.getId(e):Vw(U,S)||!j&&U.type===Ee.Text&&!U.isStyle&&!U.textContent.replace(/^\s+|\s+$/gm,"").length?V=Fr:V=au();const N=Object.assign(U,{id:V});if(r.add(e,N),V===Fr)return null;w&&w(e);let q=!f;if(N.type===Ee.Element){q=q&&!N.needBlock;const L=e.shadowRoot;L&&vr(L)&&(N.isShadowHost=!0)}if((N.type===Ee.Document||N.type===Ee.Element)&&q){S.headWhitespace&&N.type===Ee.Element&&N.tagName==="head"&&(j=!1);const L={doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:g,maskTextFn:_,maskInputFn:v,slimDOMOptions:S,dataURLOptions:x,inlineImages:b,recordCanvas:T,preserveWhiteSpace:j,onSerialize:w,onIframeLoad:y,iframeLoadTimeout:C,onBlockedImageLoad:P,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:k,ignoreCSSAttributes:M},I=e.childNodes?Array.from(e.childNodes):[];for(const R of I){const B=Fn(R,L);B&&N.childNodes.push(B)}if(gw(e)&&e.shadowRoot)for(const R of Array.from(e.shadowRoot.childNodes)){const B=Fn(R,L);B&&(vr(e.shadowRoot)&&(B.isShadow=!0),N.childNodes.push(B))}}if(e.parentNode&&Sr(e.parentNode)&&vr(e.parentNode)&&(N.isShadow=!0),N.type===Ee.Element&&N.tagName==="iframe"&&!N.needBlock&&jw(e,()=>{const L=Nh(e);if(L&&y){const I=Fn(L,{doc:L,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:g,maskTextFn:_,maskInputFn:v,slimDOMOptions:S,dataURLOptions:x,inlineImages:b,recordCanvas:T,preserveWhiteSpace:j,onSerialize:w,onIframeLoad:y,iframeLoadTimeout:C,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:k,ignoreCSSAttributes:M});I&&y(e,I)}},C),N.type===Ee.Element&&N.tagName==="img"&&!e.complete&&N.needBlock){const L=e,I=()=>
35{if(L.isConnected&&!L.complete&&P)try{const R=L.getBoundingClientRect();R.width>0&&R.height>0&&P(L,N,R)}catch{}L.removeEventListener("load",I)};L.isConnected&&L.addEventListener("load",I)}return N.type===Ee.Element&&N.tagName==="link"&&typeof N.attributes.rel=="string"&&(N.attributes.rel==="stylesheet"||N.attributes.rel==="preload"&&typeof N.attributes.href=="string"&&Fh(N.attributes.href)==="css")&&Uw(e,()=>{if(E){const L=Fn(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:g,maskTextFn:_,maskInputFn:v,slimDOMOptions:S,dataURLOptions:x,inlineImages:b,recordCanvas:T,preserveWhiteSpace:j,onSerialize:w,onIframeLoad:y,iframeLoadTimeout:C,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:k,ignoreCSSAttributes:M});L&&E(e,L)}},A),N.type===Ee.Element&&delete N.needBlock,N}function Gw(e,t){const{mirror:n=new Bh,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:g,maskTextFn:_,maskInputFn:v,slimDOM:S=!1,dataURLOptions:x,preserveWhiteSpace:b,onSerialize:T,onIframeLoad:w,iframeLoadTimeout:y,onBlockedImageLoad:C,onStylesheetLoad:P,stylesheetLoadTimeout:E,keepIframeSrcFn:A=()=>!1,ignoreCSSAttributes:k=new Set([])}=t||{};return Fn(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:i,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:h===!1?{}:h,maskAttributeFn:g,maskTextFn:_,maskInputFn:v,slimDOMOptions:S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:S==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:S===!1?{}:S,dataURLOptions:x,inlineImages:f,recordCanvas:p,preserveWhiteSpace:b,onSerialize:T,onIframeLoad:w,iframeLoadTimeout:y,onBlockedImageLoad:C,onStylesheetLoad:P,stylesheetLoadTimeout:E,keepIframeSrcFn:A,newlyAddedElement:!1,ignoreCSSAttributes:k})}function Re(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const kn=`Please stop import mirror directly. Instead of that,\r 36now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 37or you can use record.mirror to access the mirror instance during recording.`;let Id={map:{},getId(){return console.error(kn),-1},getNode(){return console.error(kn),null},removeNodeFromMap(){console.error(kn)},has(){return console.error(kn),!1},reset(){console.error(kn)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Id=new Proxy(Id,{get(e,t,n){return t==="map"&&console.error(kn),Reflect.get(e,t,n)}}));function Or(e,t,n={}){let r=null,s=0;return function(...o){const i=Date.now();!s&&n.leading===!1&&(s=i);const a=t-(i-s),c=this;a<=0||a>t?(r&&(e2(r),r=null),s=i,e.apply(c,o)):!r&&n.trailing!==!1&&(r=bi(()=>{s=n.leading===!1?0:Date.now(),r=null,e.apply(c,o)},a))}}function $h(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(i){bi(()=>{n.set.call(this,i)},0),o&&o.set&&o.set.call(this,i)}}),()=>$h(e,t,o||{},!0)}function cu(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}let Ho=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Ho=()=>new Date().getTime());function jh(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function Uh(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Hh(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function zh(e){if(!e)return null;
37try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Le(e,t,n,r,s){if(!e)return!1;const o=zh(e);if(!o)return!1;const i=Bn(t,n);if(!s){const u=r&&o.matches(r);return i(o)&&!u}const a=Qt(o,i);let c=-1;return a<0?!1:(r&&(c=Qt(o,Bn(null,r))),a>-1&&c<0?!0:a<c)}function Yw(e,t){return t.getId(e)!==-1}function ea(e,t){return t.getId(e)===Fr}function Wh(e,t){if(Sr(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Wh(e.parentNode,t):!0:!0}function tc(e){return!!e.changedTouches}function Kw(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function qh(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Vh(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function nc(e){return!!e?.shadowRoot}class Xw{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Gh(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Jw(e){let t=e,n;for(;n=Gh(t);)t=n;return t}function Qw(e){const t=e.ownerDocument;if(!t)return!1;const n=Jw(e);return t.contains(n)}function Yh(e){const t=e.ownerDocument;return t?t.contains(e)||Qw(e):!1}
37const Dd={};function uu(e){const t=Dd[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(s)}catch{}return Dd[e]=r.bind(window)}function Zw(...e){return uu("requestAnimationFrame")(...e)}function bi(...e){return uu("setTimeout")(...e)}function e2(...e){return uu("clearTimeout")(...e)}var Z=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Z||{}),J=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(J||{}),Ie=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Ie||{}),ft=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ft||{}),In=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(In||{});function lu(e){try{return e.contentDocument}catch{}}function t2(e){try{return e.contentWindow}catch{}}function Rd(e){return"__ln"in e}class n2{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=n?.next||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Rd(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&Rd(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Bd=(e,t)=>`${e}@${t}`;class r2{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new n2,s=c=>{let u=c,l=Fr;for(;l===Fr;)u=u&&u.nextSibling,l=u&&this.mirror.getId(u);return l},o=c=>{if(!c.parentNode||!Yh(c))return;const u=Sr(c.parentNode)?this.mirror.getId(Gh(c)):this.mirror.getId(c.parentNode),l=s(c);if(u===-1||l===-1)return r.addNode(c);const d=Fn(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inl
37ineImages,onSerialize:f=>{qh(f,this.mirror)&&!Le(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(f),Vh(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),nc(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(f,p)=>{Le(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(f,p),f.contentWindow&&this.canvasManager.addWindow(f.contentWindow),this.shadowDomManager.observeAttachShadow(f))},onStylesheetLoad:(f,p)=>{this.stylesheetManager.attachLinkElement(f,p)},onBlockedImageLoad:(f,p,{width:h,height:g})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:p.id,attributes:{style:{width:`${h}px`,height:`${g}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});d&&(t.push({parentId:u,nextId:l,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)Fd(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||o(c);for(const c of this.addedSet)!Od(this.droppedSet,c)&&!Fd(this.removes,c,this.mirror)||Od(this.movedSet,c)?o(c):this.droppedSet.add(c);let i=null;for(;r.length;){let c=null;if(i){const u=this.mirror.getId(i.value.parentNode),l=s(i.value);u!==-1&&l!==-1&&(c=i)}if(!c){let u=r.tail;for(;u;){const l=u;if(u=u.previous,l){const d=this.mirror.getId(l.value.parentNode);if(s(l.value)===-1)continue;if(d!==-1){c=l;break}else{const p=l.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const h=p.parentNode.host;if(this.mirror.getId(h)!==-1){c=l;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}i=c.previous,r.removeNode(c.value),o(c.value)}const a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:u}=c;if(typeof u.style=="string"){const l=JSON.stringify(c.styleDiff),d=JSON.stringify(c._unchangedStyles);l.length<u.style.length&&(l+d).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=t=>{if(!ea(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Le(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Jn(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,zh(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,s=t.target.getAttribute(r);if(r==="value"){const i=iu(n),a=n.tagName;s=jo(n,a,i);const c=Si({maskInputOptions:this.maskInputOptions,tagName:a,type:i}),u=Jn(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);s=Br({isMasked:u,element:n,value:s,maskInputFn:this.maskInputFn})}if(Le(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===t.oldValue)return;let o=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(s))if(!lu(n))r="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!Lh(n.tagName,r)&&(o.attributes[r]=Mh(this.doc,Xn(n.tagName),Xn(r),s,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");t.oldValue&&i.setAttribute("style",t.oldValue);for(const a of Array.from(n.style)){const c=n.style.getPropertyValue(a),u=n.style.getPropertyPriority(a);c!==i.style.getPropertyValue(a)||u!==i.style.getPropertyPriority(a)?u===""?o.styleDiff[a]=c:o.styleDiff[a]=[c,u]:o._unchangedStyles[a]=[c,u]}for(const a of Array.from(i.style))n.style.getPropertyValue(a)===""&&(o.styleDiff[a]=!1)}break}
37case"childList":{if(Le(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),s=Sr(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Le(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ea(n,this.mirror)||!Yw(n,this.mirror)||(this.addedSet.has(n)?(rc(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||Wh(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Bd(r,s)]?rc(this.movedSet,n):this.removes.push({parentId:s,id:r,isShadow:Sr(t.target)&&vr(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(ea(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[Bd(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Le(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(r=>this.genAdds(r)),nc(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function rc(e,t){e.delete(t),t.childNodes?.forEach(n=>rc(e,n))}function Fd(e,t,n){return e.length===0?!1:s2(e,t,n)}function s2(e,t,n){let r=t.parentNode;for(;r;){const s=n.getId(r);if(e.some(o=>o.id===s))return!0;r=r.parentNode}return!1}function Od(e,t){return e.size===0?!1:Kh(e,t)}function Kh(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Kh(e,n):!1}let br;function o2(e){br=e}function i2(){br=void 0}const oe=e=>br?(...n)=>{try{return e(...n)}catch(r){if(br&&br(r)===!0)return()=>{};throw r}}:e,On=[];function os(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Xh(e,t){const n=new r2;On.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=window?.Zone?.__symbol__?.("MutationObserver");s&&window[s]&&(r=window[s]);const o=new r(oe(i=>{e.onMutation&&e.onMutation(i)===!1||n.processMutations.bind(n)(i)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function a2({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,o=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let i=[],a;const c=Or(oe(d=>{const f=Date.now()-a;e(i.map(p=>(p.timeOffset-=f,p)),d),i=[],a=null}),o),u=oe(Or(oe(d=>{const f=os(d),{clientX:p,clientY:h}=tc(d)?d.changedTouches[0]:d;a||(a=Ho()),i.push({x:p,y:h,id:r.getId(f),timeOffset:Ho()-a}),c(typeof DragEvent<"u"&&d instanceof DragEvent?J.Drag:d instanceof MouseEvent?J.MouseMove:J.TouchMove)}),s,{trailing:!1})),l=[Re("mousemove",u,n),Re("touchmove",u,n),Re("drag",u,n)];return oe(()=>{l.forEach(d=>d())})}function c2({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){if(i.mouseInteraction===!1)return()=>{};const a=i.mouseInteraction===!0||i.mouseInteraction===void 0?{}:i.mouseInteraction,c=[];let u=null;const l=d=>f=>{const p=os(f);if(Le(p,r,s,o,!0))return;let h=null,g=d;if("pointerType"in f){switch(f.pointerType){case"mouse":h=ft.Mouse;break;case"touch":h=ft.Touch;break;case"pen":h=ft.Pen;break}h===ft.Touch?Ie[d]===Ie.MouseDown?g="TouchStart":Ie[d]===Ie.MouseUp&&(g="TouchEnd"):ft.Pen}else tc(f)&&(h=ft.Touch);h!==null?(u=h,(g.startsWith("Touch")&&h===ft.Touch||g.startsWith("Mouse")&&h===ft.Mouse)&&(h=null)):Ie[d]===Ie.Click&&(h=u,u=null);const _=tc(f)?f.changedTouches[0]:f;if(!_)return;const v=n.getId(p),{clientX:S,clientY:x}=_;oe(e)({type:Ie[g],id:v,x:S,y:x,...h!==null&&{pointerType:h}})};return Object.keys(Ie).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&a[d]!==!1).forEac
37h(d=>{let f=Xn(d);const p=l(d);if(window.PointerEvent)switch(Ie[d]){case Ie.MouseDown:case Ie.MouseUp:f=f.replace("mouse","pointer");break;case Ie.TouchStart:case Ie.TouchEnd:return}c.push(Re(f,p,t))}),oe(()=>{c.forEach(d=>d())})}function Jh({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){const a=oe(Or(oe(c=>{const u=os(c);if(!u||Le(u,r,s,o,!0))return;const l=n.getId(u);if(u===t&&t.defaultView){const d=jh(t.defaultView);e({id:l,x:d.left,y:d.top})}else e({id:l,x:u.scrollLeft,y:u.scrollTop})}),i.scroll||100));return Re("scroll",a,t)}function u2({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const s=oe(Or(oe(()=>{const o=Uh(),i=Hh();(n!==o||r!==i)&&(e({width:Number(i),height:Number(o)}),n=o,r=i)}),200));return Re("resize",s,t)}const l2=["INPUT","TEXTAREA","SELECT"],Pd=new WeakMap;function d2({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:g}){function _(y){let C=os(y);const P=y.isTrusted,E=C&&Za(C.tagName);if(E==="OPTION"&&(C=C.parentElement),!C||!E||l2.indexOf(E)<0||Le(C,r,s,o,!0))return;const A=C;if(A.classList.contains(i)||a&&A.matches(a))return;const k=iu(C);let D=jo(A,E,k),M=!1;const j=Si({maskInputOptions:c,tagName:E,type:k}),U=Jn(C,f,h,p,g,j);(k==="radio"||k==="checkbox")&&(M=C.checked),D=Br({isMasked:U,element:C,value:D,maskInputFn:u}),v(C,d?{text:D,isChecked:M,userTriggered:P}:{text:D,isChecked:M});const V=C.name;k==="radio"&&V&&M&&t.querySelectorAll(`input[type="radio"][name="${V}"]`).forEach(N=>{if(N!==C){const q=Br({isMasked:U,element:N,value:jo(N,E,k),maskInputFn:u});v(N,d?{text:q,isChecked:!M,userTriggered:!1}:{text:q,isChecked:!M})}})}function v(y,C){const P=Pd.get(y);if(!P||P.text!==C.text||P.isChecked!==C.isChecked){Pd.set(y,C);const E=n.getId(y);oe(e)({...C,id:E})}}const x=(l.input==="last"?["change"]:["input","change"]).map(y=>Re(y,oe(_),t)),b=t.defaultView;if(!b)return()=>{x.forEach(y=>y())};const T=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),w=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return T&&T.set&&x.push(...w.map(y=>$h(y[0],y[1],{set(){oe(_)({target:this,isTrusted:!1})}},!1,b))),oe(()=>{x.forEach(y=>y())})}function zo(e){const t=[];function n(r,s){if(hs("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||hs("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||hs("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||hs("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const i=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(i)}else if(r.parentStyleSheet){const i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(i)}return s}return n(e,t)}function kt(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function f2({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:oe((l,d,f)=>{const[p,h]=f,{id:g,styleId:_}=kt(d,t,n.styleMirror);return(g&&g!==-1||_&&_!==-1)&&e({id:g,styleId:_,adds:[{rule:p,index:h}]}),l.apply(d,f)})});const o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:oe((l,d,f)=>{const[p]=f,{id:h,styleId:g}=kt(d,t,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,removes:[{index:p}]}),l.apply(d,f)})});let i;r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:oe((l,d,f)=>{const[p]=f,{id:h,styleId:g}=kt(d,t,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,replace:p}),l.apply(d,f)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:oe((l,d,f)=>{const[p]=f,{id:h,styleId:g}=kt(d,t,n.styleMirror);
37return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,replaceSync:p}),l.apply(d,f)})}));const c={};ms("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(ms("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),ms("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),ms("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach(([l,d])=>{u[l]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(u[l].insertRule,{apply:oe((f,p,h)=>{const[g,_]=h,{id:v,styleId:S}=kt(p.parentStyleSheet,t,n.styleMirror);return(v&&v!==-1||S&&S!==-1)&&e({id:v,styleId:S,adds:[{rule:g,index:[...zo(p),_||0]}]}),f.apply(p,h)})}),d.prototype.deleteRule=new Proxy(u[l].deleteRule,{apply:oe((f,p,h)=>{const[g]=h,{id:_,styleId:v}=kt(p.parentStyleSheet,t,n.styleMirror);return(_&&_!==-1||v&&v!==-1)&&e({id:_,styleId:v,removes:[{index:[...zo(p),g]}]}),f.apply(p,h)})})}),oe(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([l,d])=>{d.prototype.insertRule=u[l].insertRule,d.prototype.deleteRule=u[l].deleteRule})})}function Qh({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const s=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,o=s?.prototype?Object.getOwnPropertyDescriptor(s?.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!s||!o?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return o.get?.call(this)},set(i){const a=o.set?.call(this,i);if(r!==null&&r!==-1)try{t.adoptStyleSheets(i,r)}catch{}return a}}),oe(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))}function p2({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const o=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:oe((a,c,u)=>{const[l,d,f]=u;if(n.has(l))return o.apply(c,[l,d,f]);const{id:p,styleId:h}=kt(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(p&&p!==-1||h&&h!==-1)&&e({id:p,styleId:h,set:{property:l,value:d,priority:f},index:zo(c.parentRule)}),a.apply(c,u)})});const i=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:oe((a,c,u)=>{const[l]=u;if(n.has(l))return i.apply(c,[l]);const{id:d,styleId:f}=kt(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,remove:{property:l},index:zo(c.parentRule)}),a.apply(c,u)})}),oe(()=>{s.CSSStyleDeclaration.prototype.setProperty=o,s.CSSStyleDeclaration.prototype.removeProperty=i})}function h2({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:o,doc:i}){const a=oe(u=>Or(oe(l=>{const d=os(l);if(!d||Le(d,t,n,r,!0))return;const{currentTime:f,volume:p,muted:h,playbackRate:g}=d;e({type:u,id:s.getId(d),currentTime:f,volume:p,muted:h,playbackRate:g})}),o.media||500)),c=[Re("play",a(In.Play),i),Re("pause",a(In.Pause),i),Re("seeked",a(In.Seeked),i),Re("volumechange",a(In.VolumeChange),i),Re("ratechange",a(In.RateChange),i)];return oe(()=>{c.forEach(u=>u())})}function m2({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,o=n.FontFace;n.FontFace=function(c,u,l){const d=new o(c,u,l);return s.set(d,{family:c,buffer:typeof u!="string",descriptors:l,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),d};const i=cu(t.fonts,"add",function(a){return function(c){return bi(oe(()=>{const u=s.get(c);u&&(e(u),s.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=o}),r.push(i),oe(()=>{r.forEach(a=>a())})}function g2(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,selectionCb:i}=e;let a=!0;const c=oe(()=>{const u=t.getSelection();if(!u||a&&u?.isCollapsed)return;a=u.isCollapsed||!1;const l=[],d=u.rangeCount||0;for(let f=0;f<d;f++){const p=u.getRangeAt(f),{startContainer:h,startOffset:g,endContainer:_,endOffset:v}=p;Le(h,r,s,o,!0)||Le(_,r,s,o,!0)||l.push({start:n.getId(h),startOffset:g,end:n.getId(_),endOffset:v})}i({ranges:l})});return c(),Re("selectionchange",c)}function x2({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:cu(n.customElements,"define",function(s){return function(o,i,a){try{t({define:{name:o}})}catch{}return s.apply(this,[o,i,a])}})}function _2(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Xh(e,e.doc));const s=a2(e),o=c2(e),i=Jh(e),a=u2(e,{win:n}),c=d2(e),u=h2(e);let l=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(l=f2(e,{win:n}),d=Qh(e,e.doc),f=p2(e,{win:n}),e.collectFonts&&(p=m2(e)));const h=g2(e),g=x2(e),_=[];for(const v of e.plugins)_.push(v.observer(v.callback,n,v.options));return oe(()=>
37{On.forEach(v=>v.reset()),r?.disconnect(),s(),o(),i(),a(),c(),u(),l(),d(),f(),p(),h(),g(),_.forEach(v=>v())})}function hs(e){return typeof window[e]<"u"}function ms(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class sc{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,s){const o=r||this.getIdToRemoteIdMap(t),i=s||this.getRemoteIdToIdMap(t);let a=o.get(n);return a||(a=this.generateIdFn(),o.set(n,a),i.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return n.map(o=>this.getId(t,o,r,s))}getRemoteId(t,n,r){const s=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const o=s.get(n);return o||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(s=>this.getRemoteId(t,s,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class y2{constructor(){this.crossOriginIframeMirror=new sc(au),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class S2{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new sc(au),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new sc(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&t.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);const r=lu(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const s=this.crossOriginIframeMap.get(t.source);if(!s)return;const o=this.transformCrossOriginEvent(s,n.data.event);o&&this.wrappedEmit(o,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case Z.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:Z.IncrementalSnapshot,data:{source:J.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Z.Meta:case Z.Load:case Z.DomContentLoaded:return!1;case Z.Plugin:return n;case Z.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Z.IncrementalSnapshot:switch(n.data.source){case J.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const s=this.crossOriginIframeRootIdMap.get(t);s&&this.patchRootIdOnNode(r.node,s)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case J.Drag:case J.TouchMove:case J.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case J.ViewportResize:return!1;case J.MediaInteraction:case J.MouseInteraction:case J.Scroll:case J.CanvasMutation:case J.Input:return this.replaceIds(n.data,t,["i
37d"]),n;case J.StyleSheetRule:case J.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case J.Font:return n;case J.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case J.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),n.data.styles?.forEach(r=>{this.replaceStyleIds(r,t,["styleId"])}),n}}return!1}replace(t,n,r,s){for(const o of s)!Array.isArray(n[o])&&typeof n[o]!="number"||(Array.isArray(n[o])?n[o]=t.getIds(r,n[o]):n[o]=t.getId(r,n[o]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Ee.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class v2{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class b2{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!vr(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=Xh({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Jh({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),bi(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(Qh({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=lu(t),r=t2(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(cu(t.prototype,"attachShadow",function(s){return function(o){const i=s.call(this,o);return this.shadowRoot&&Yh(this)&&r.addShadowRoot(this.shadowRoot,n),i}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var Nd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E2=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var gs=0;gs<Nd.length;gs++)E2[Nd.charCodeAt(gs)]=gs;class Md{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class C2{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new Xw,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},s=[];for(const o of t){let i;this.styleMirror.has(o)?i=this.styleMirror.getId(o):(i=this.styleMirror.add(o),s.push({styleId:i,rules:Array.from(o.rules||CSSRule,(a,c)=>({rule:Rh(a),index:c}))})),r.styleIds.push(i)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class w2{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(s=>s!==n)}add(t,n){this.active||(this.active=!0,Zw(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let xe,Wo;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)}const Ye=Ew();function yt(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr
37-block",blockSelector:o=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:g,maskInputOptions:_,slimDOMOptions:v,maskAttributeFn:S,maskInputFn:x,maskTextFn:b,maxCanvasSize:T=null,packFn:w,sampling:y={},dataURLOptions:C={},mousemoveWait:P,recordDOM:E=!0,recordCanvas:A=!1,recordCrossOriginIframes:k=!1,recordAfter:D=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:j=!1,inlineImages:U=!1,plugins:V,keepIframeSrcFn:N=()=>!1,ignoreCSSAttributes:q=new Set([]),errorHandler:L,onMutation:I,getCanvasManager:R}=e;o2(L);const B=k?window.parent===window:!0;let F=!1;if(!B)try{window.parent.document&&(F=!1)}catch{F=!0}if(B&&!t)throw new Error("emit function is required");if(!B&&!F)return()=>{};P!==void 0&&y.mousemove===void 0&&(y.mousemove=P),Ye.reset();const ee=g===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:_!==void 0?_:{},ie=v===!0||v==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:v==="all",headMetaDescKeywords:v==="all"}:v||{};Kw();let he,X=0;const nt=te=>{for(const ge of V||[])ge.eventProcessor&&(te=ge.eventProcessor(te));return w&&!F&&(te=w(te)),te};xe=(te,ge)=>{const K=te;if(K.timestamp=Ho(),On[0]?.isFrozen()&&K.type!==Z.FullSnapshot&&!(K.type===Z.IncrementalSnapshot&&K.data.source===J.Mutation)&&On.forEach(le=>le.unfreeze()),B)t?.(nt(K),ge);else if(F){const le={type:"rrweb",event:nt(K),origin:window.location.origin,isCheckout:ge};window.parent.postMessage(le,"*")}if(K.type===Z.FullSnapshot)he=K,X=0;else if(K.type===Z.IncrementalSnapshot){if(K.data.source===J.Mutation&&K.data.isAttachIframe)return;X++;const le=r&&X>=r,ne=n&&he&&K.timestamp-he.timestamp>n;(le||ne)&&Vt(!0)}};const Ue=te=>{xe({type:Z.IncrementalSnapshot,data:{source:J.Mutation,...te}})},_n=te=>xe({type:Z.IncrementalSnapshot,data:{source:J.Scroll,...te}}),qt=te=>xe({type:Z.IncrementalSnapshot,data:{source:J.CanvasMutation,...te}}),Ne=te=>xe({type:Z.IncrementalSnapshot,data:{source:J.AdoptedStyleSheet,...te}}),be=new C2({mutationCb:Ue,adoptedStyleSheetCb:Ne}),He=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new y2:new S2({mirror:Ye,mutationCb:Ue,stylesheetManager:be,recordCrossOriginIframes:k,wrappedEmit:xe});for(const te of V||[])te.getMirror&&te.getMirror({nodeMirror:Ye,crossOriginIframeMirror:He.crossOriginIframeMirror,crossOriginIframeStyleMirror:He.crossOriginIframeStyleMirror});const dt=new w2,Et=T2(R,{mirror:Ye,win:window,mutationCb:te=>xe({type:Z.IncrementalSnapshot,data:{source:J.CanvasMutation,...te}}),recordCanvas:A,blockClass:s,blockSelector:o,unblockSelector:i,maxCanvasSize:T,sampling:y.canvas,dataURLOptions:C,errorHandler:L}),rt=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new v2:new b2({mutationCb:Ue,scrollCb:_n,bypassOptions:{onMutation:I,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:ee,dataURLOptions:C,maskAttributeFn:S,maskTextFn:b,maskInputFn:x,recordCanvas:A,inlineImages:U,sampling:y,slimDOMOptions:ie,iframeManager:He,stylesheetManager:be,canvasManager:Et,keepIframeSrcFn:N,processedNodeManager:dt,ignoreCSSAttributes:q},mirror:Ye}),Vt=(te=!1)=>{if(!E)return;xe({type:Z.Meta,data:{href:window.location.href,width:Hh(),height:Uh()}},te),be.reset(),rt.init(),On.forEach(K=>K.lock());const ge=Gw(document,{mirror:Ye,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:ee,maskAttributeFn:S,maskInputFn:x,maskTextFn:b,slimDOM:ie,dataURLOptions:C,recordCanvas:A,inlineImages:U,onSerialize:K=>{qh(K,Ye)&&He.addIframe(K),Vh(K,Ye)&&be.trackLinkElement(K),nc(K)&&rt.addShadowRoot(K.shadowRoot,document)},onIframeLoad:(K,le)=>{He.attachIframe(K,le),K.contentWindow&&Et.addWindow(K.contentWindow),rt.observeAttachShadow(K)},onStylesheetLoad:(K,le)=>{be.attachLinkElement(K,le)},onBlockedImageLoad:(K,le,{width:ne,height:Ct})=>{Ue({adds:[],removes:[],texts:[],attributes:[{id:le.id,attributes:{style:{width:`${ne}px`,height:`${Ct}px`}}}]})},keepIframeSrcFn:N,ignoreCSSAttributes:q});if(!ge)return console.warn("Failed to snapshot the document");xe({type:Z.FullSnapshot,data:{node:ge,initialOffset:jh(window)}}
37),On.forEach(K=>K.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&be.adoptStyleSheets(document.adoptedStyleSheets,Ye.getId(document))};Wo=Vt;try{const te=[],ge=le=>oe(_2)({onMutation:I,mutationCb:Ue,mousemoveCb:(ne,Ct)=>xe({type:Z.IncrementalSnapshot,data:{source:Ct,positions:ne}}),mouseInteractionCb:ne=>xe({type:Z.IncrementalSnapshot,data:{source:J.MouseInteraction,...ne}}),scrollCb:_n,viewportResizeCb:ne=>xe({type:Z.IncrementalSnapshot,data:{source:J.ViewportResize,...ne}}),inputCb:ne=>xe({type:Z.IncrementalSnapshot,data:{source:J.Input,...ne}}),mediaInteractionCb:ne=>xe({type:Z.IncrementalSnapshot,data:{source:J.MediaInteraction,...ne}}),styleSheetRuleCb:ne=>xe({type:Z.IncrementalSnapshot,data:{source:J.StyleSheetRule,...ne}}),styleDeclarationCb:ne=>xe({type:Z.IncrementalSnapshot,data:{source:J.StyleDeclaration,...ne}}),canvasMutationCb:qt,fontCb:ne=>xe({type:Z.IncrementalSnapshot,data:{source:J.Font,...ne}}),selectionCb:ne=>{xe({type:Z.IncrementalSnapshot,data:{source:J.Selection,...ne}})},customElementCb:ne=>{xe({type:Z.IncrementalSnapshot,data:{source:J.CustomElement,...ne}})},blockClass:s,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:ee,inlineStylesheet:h,sampling:y,recordDOM:E,recordCanvas:A,inlineImages:U,userTriggeredOnInput:M,collectFonts:j,doc:le,maskAttributeFn:S,maskInputFn:x,maskTextFn:b,keepIframeSrcFn:N,blockSelector:o,unblockSelector:i,slimDOMOptions:ie,dataURLOptions:C,mirror:Ye,iframeManager:He,stylesheetManager:be,shadowDomManager:rt,processedNodeManager:dt,canvasManager:Et,ignoreCSSAttributes:q,plugins:V?.filter(ne=>ne.observer)?.map(ne=>({observer:ne.observer,options:ne.options,callback:Ct=>xe({type:Z.Plugin,data:{plugin:ne.name,payload:Ct}})}))||[]},{});He.addLoadListener(le=>{try{te.push(ge(le.contentDocument))}catch(ne){console.warn(ne)}});const K=()=>{Vt(),te.push(ge(document))};return document.readyState==="interactive"||document.readyState==="complete"?K():(te.push(Re("DOMContentLoaded",()=>{xe({type:Z.DomContentLoaded,data:{}}),D==="DOMContentLoaded"&&K()})),te.push(Re("load",()=>{xe({type:Z.Load,data:{}}),D==="load"&&K()},window))),()=>{te.forEach(le=>le()),dt.destroy(),Wo=void 0,i2()}}catch(te){console.warn(te)}}function A2(e){if(!Wo)throw new Error("please take full snapshot after start recording");Wo(e)}yt.mirror=Ye;yt.takeFullSnapshot=A2;function T2(e,t){try{return e?e(t):new Md}catch{return console.warn("Unable to initialize CanvasManager"),new Md}}var Ld;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Ld||(Ld={}));const k2=3,I2=5;function du(e){return e>9999999999?e:e*1e3}function ta(e){return e>9999999999?e/1e3:e}function is(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Z.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:ht(t,10,1e3)}}),t.category==="console")))}const D2="button,a";function Zh(e){return e.closest(D2)||e}function em(e){const t=tm(e);return!t||!(t instanceof Element)?t:Zh(t)}function tm(e){return R2(e)?e.target:e}function R2(e){return typeof e=="object"&&!!e&&"target"in e}let It;function B2(e){return It||(It=[],F2()),It.push(e),()=>{const t=It?It.indexOf(e):-1;t>-1&&It.splice(t,1)}}function F2(){pE(fe,"open",function(e){return function(...t){if(It)try{It.forEach(n=>n())}catch{}return e.apply(fe,t)}})}const O2=new Set([J.Mutation,J.StyleSheetRule,J.StyleDeclaration,J.AdoptedStyleSheet,J.CanvasMutation,J.Selection,J.MediaInteraction]);function P2(e,t,n){e.handleClick(t,n)}class N2{constructor(t,n,r=is){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=B2(()=>{this._lastMutation=$d()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(L2(n,this._ignoreSelector)||!$2(t))return;const r={timestamp:ta(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(s=>s.node===r.node&&Math.abs(s.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=ta(t)}registerScroll(t=Date.now()){this._lastScroll=ta(t)}registerClick(t){const n=Zh(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>
37{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=$d();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const s=this._clicks.indexOf(r);s>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(s,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,s=t.mutationAfter&&t.mutationAfter<=this._threshold,o=!r&&!s,{clickCount:i,clickBreadcrumb:a}=t;if(o){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=c<this._timeout*1e3?"mutation":"timeout",l={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:fe.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:u,clickCount:i||1}};this._addBreadcrumbEvent(n,l);return}if(i>1){const c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:fe.location.href,route:n.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=ts(()=>this._checkClicks(),1e3)}}const M2=["A","BUTTON","INPUT"];function L2(e,t){return!!(!M2.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function $2(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function $d(){return Date.now()/1e3}function j2(e,t){try{if(!U2(t))return;const{source:n}=t.data;if(O2.has(n)&&e.registerMutation(t.timestamp),n===J.Scroll&&e.registerScroll(t.timestamp),H2(t)){const{type:r,id:s}=t.data,o=yt.mirror.getNode(s);o instanceof HTMLElement&&r===Ie.Click&&e.registerClick(o)}}catch{}}function U2(e){return e.type===k2}function H2(e){return e.data.source===J.MouseInteraction}function st(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var fu=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(fu||{});const z2=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function W2(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(z2.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const q2=e=>t=>{if(!e.isEnabled())return;const n=V2(t);if(!n)return;const r=t.name==="click",s=r?t.event:void 0;r&&e.clickDetector&&s?.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&P2(e.clickDetector,n,em(t.event)),is(e,n)};function nm(e,t){const n=yt.mirror.getId(e),r=n&&yt.mirror.getNode(n),s=r&&yt.mirror.getMeta(r),o=s&&Y2(s)?s:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(i=>i.type===fu.Text&&i.textContent).filter(Boolean).map(i=>i.trim()).join(""),attributes:W2(o.attributes)}}:{}}}function V2(e){const{target:t,message:n}=G2(e);return st({category:`ui.${e.name}`,...nm(t,n)})}function G2(e){const t=e.name==="click";let n,r=null;try{r=t?em(e.event):tm(e.event),n=eu(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function Y2(e){return e.type===fu.Element}function K2(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=X2(t);n&&is(e,n)}function X2(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o,target:i}=e;if(!i||J2(i)||!o)return null;const a=t||r||s,c=o.length===1;if(!a&&c)return null;const u=eu(i,{maxStringLength:200})||"<unknown>",l=nm(i,u);return st({category:"ui.keyDown",message:u,data:{...l.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o}})}function J2(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const Q2={resource:rA,paint:tA,navigation:nA};function na(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}
37function Z2(e){return e.map(eA).filter(Boolean)}function eA(e){const t=Q2[e.entryType];return t?t(e):null}function Qn(e){return((CE()||fe.performance.timeOrigin)+e)/1e3}function tA(e){const{duration:t,entryType:n,name:r,startTime:s}=e,o=Qn(s);return{type:n,name:r,start:o,end:o+t,data:void 0}}function nA(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:h,type:g}=e;return s===0?null:{type:`${t}.${g}`,start:Qn(p),end:Qn(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:s,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:o,redirectCount:f}}}function rA(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:o,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Qn(o),end:Qn(s),name:r,data:{size:u,statusCode:c,decodedBodySize:i,encodedBodySize:a}}}function sA(e){const t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return pu(e,"largest-contentful-paint",n)}function oA(e){return e.sources!==void 0}function iA(e){const t=[],n=[];for(const r of e.entries)if(oA(r)){const s=[];for(const o of r.sources)if(o.node){n.push(o.node);const i=yt.mirror.getId(o.node);i&&s.push(i)}t.push({value:r.value,nodeIds:s.length?s:void 0})}return pu(e,"cumulative-layout-shift",n,t)}function aA(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return pu(e,"interaction-to-next-paint",n)}function pu(e,t,n,r){const s=e.value,o=e.rating,i=Qn(s);return{type:"web-vital",name:t,start:i,end:i,data:{value:s,size:s,rating:o,nodeIds:n?n.map(a=>yt.mirror.getId(a)):void 0,attributions:r}}}function cA(e){function t(s){e.performanceEntries.includes(s)||e.performanceEntries.push(s)}function n({entries:s}){s.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(s=>{r.push(Yn(s,n))}),r.push(Gc(na(sA,e)),Vc(na(iA,e)),th(na(aA,e))),()=>{r.forEach(s=>s())}}const G=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,uA='
vendor: 10,329 bytes, line 37
37var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
37';function lA(){const e=new Blob([uA]);return URL.createObjectURL(e)}const jd=["log","warn","error"],Fs="[Replay] ";function ra(e,t="info"){JC({category:"console",data:{logger:"replay"},level:t,message:`${Fs}${e}`},{level:t})}function dA(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return G?(jd.forEach(r=>{n[r]=(...s)=>{_t[r](Fs,...s),t&&ra(s.join(""),QC(r))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),_t.error(Fs,r),e?PC(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&ra(r,"error")},n.infoTick=(...r)=>{_t.log(Fs,...r),t&&setTimeout(()=>ra(r[0]),0)}):jd.forEach(r=>{n[r]=()=>{}}),n}const Y=dA();class hu extends Error{constructor(){super(`Event buffer exceeded maximum size of ${ou}.`)}}class rm{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>ou)throw new hu;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let t=null;for(const{timestamp:n}of this.events)(t===null||n<t)&&(t=n);return t===null?t:du(t)}}class fA{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():(G&&Y.warn("Received worker message with unsuccessful status",r),n(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",r=>{G&&Y.warn("Failed to load Replay compression worker",r),n(new Error(`Failed to load Replay compression worker: ${r instanceof ErrorEvent&&r.message?r.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})}),this._ensureReadyPromise)}destroy(){G&&Y.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((s,o)=>{const i=({data:a})=>{const c=a;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",i),!c.success){G&&Y.error("Error in compression worker: ",c.response),o(new Error("Error in compression worker"));return}s(c.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class pA{constructor(t){this._worker=new fA(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=du(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>ou?Promise.reject(new hu):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{G&&Y.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class hA{constructor(t){this._fallback=new rm,this._compression=new pA(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}
37ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){G&&Y.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,s=[];for(const o of t)s.push(this._compression.addEvent(o));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(s),this._fallback.clear()}catch(o){G&&Y.exception(o,"Failed to add events when switching buffers.")}}}function mA({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=gA(t);if(n)return n}return G&&Y.log("Using simple buffer"),new rm}function gA(e){try{const t=e||xA();if(!t)return;G&&Y.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new hA(n)}catch(t){G&&Y.exception(t,"Failed to create compression worker")}}function xA(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?lA():""}function mu(){try{return"sessionStorage"in fe&&!!fe.sessionStorage}catch{return!1}}function _A(e){yA(),e.session=void 0}function yA(){if(mu())try{fe.sessionStorage.removeItem(ru)}catch{}}function sm(e){return e===void 0?!1:Math.random()<e}function Ei(e){if(mu())try{fe.sessionStorage.setItem(ru,JSON.stringify(e))}catch{}}function om(e){const t=Date.now(),n=e.id||Nt(),r=e.started||t,s=e.lastActivity||t,o=e.segmentId||0,i=e.sampled,a=e.previousSessionId,c=e.dirty||!1;return{id:n,started:r,lastActivity:s,segmentId:o,sampled:i,previousSessionId:a,dirty:c}}function SA(e,t){return sm(e)?"session":t?"buffer":!1}function Ud({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=SA(e,t),o=om({sampled:s,previousSessionId:r});return n&&Ei(o),o}function vA(){if(!mu())return null;try{const e=fe.sessionStorage.getItem(ru);if(!e)return null;const t=JSON.parse(e);return G&&Y.infoTick("Loading existing session"),om(t)}catch{return null}}function oc(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function im(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return oc(e.started,t,r)||oc(e.lastActivity,n,r)}function am(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!im(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function sa({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&vA();return s?am(s,{sessionIdleExpire:e,maxReplayDuration:t})?(G&&Y.infoTick("Session in sessionStorage is expired, creating new one..."),Ud(r,{previousSessionId:s.id})):s:(G&&Y.infoTick("Creating new session"),Ud(r,{previousSessionId:n}))}function bA(e){return e.type===Z.Custom}function gu(e,t,n){return um(e,t)?(cm(e,t,n),!0):!1}function EA(e,t,n){return um(e,t)?cm(e,t,n):Promise.resolve(null)}async function cm(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const s=e.recordingMode==="buffer";try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=e.getOptions(),i=CA(t,o.beforeAddRecordingEvent);return i?await r.addEvent(i):void 0}catch(o){const i=o&&o instanceof hu,a=i?"addEventSizeExceeded":"addEvent",c=lt();if(c){const u=i?"buffer_overflow":"internal_sdk_error";c.recordDroppedEvent(u,"replay")}if(i&&s)return r.clear(),r.waitForCheckout=!0,null;e.handleException(o),await e.stop({reason:a})}}function um(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=du(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(G&&Y.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function CA(e,t){try{if(typeof t=="function"&&bA(e))return t(e)}catch(n){return G&&Y.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function xu(e){return!e.type}function ic(e){return e.type==="transaction"}function wA(e){return e.type==="replay_event"}function Hd(e){return e.type==="feedback"}function AA(e){return(t,n)=>{if(!e.isEnabled()||!xu(t)&&!ic(t))return;const r=n.statusCode;if(!(!r||r<200||r>=300)){if(ic(t)){TA(e,t);return}kA(e,t)}}}function TA(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function kA(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags?.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||ts(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(s){e.handleException(s)}})}function IA(e){return t=>{!e.isEnabled()||!xu(t)||DA(e,t)}}function DA(e,t){const n=t.exception?.values?.[0]?.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=st({category:"replay.hydrate-error",data:{url:fE()}});is(e,r)}}function RA(e){const t=lt();t&&t.on("beforeAddBreadcrumb",n=>BA(e,n))}function BA(e,t){if(!e.isEnabled()||!lm(t))return;const n=FA(t);n&&is(e,n)}function FA(e){return!lm(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?OA(e):st(e)}function OA(e){const t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return st(e);let n=!1;const r=t.map(s=>{if(!s)return s;if(typeof s=="string")return s.length>ps?(n=!0,`${s.slice(0,ps)}â¦`):s;if(typeof s=="object")try{const o=ht(s,7);return JSON.stringify(o).length>ps?(n=!0,`${JSON.stringify(o,null,2).slice(0,ps)}â¦`):o}catch{}return s});return st({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function lm(e){return!!e.category}function PA(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function dm(){const e=ss().getPropagationContext().dsc;e&&delete e.replay_id;const t=Th();if(t){const n=Ih(t);delete n.replay_id}}function NA(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Z.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function MA(e,t){return e.recordingMode!=="buffer"||t.message===su||!t.exception||t.type?!1:sm(e.getOptions().errorSampleRate)}function LA(e){return Object.assign((t,n)=>
37{if(!e.isEnabled()||e.isPaused())return t;if(wA(t))return delete t.breadcrumbs,t;if(!xu(t)&&!ic(t)&&!Hd(t))return t;if(!e.checkAndHandleExpiredSession())return dm(),t;if(Hd(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),NA(e,t),t;if(PA(t,n)&&!e.getOptions()._experiments.captureExceptions)return G&&Y.log("Ignoring error from rrweb internals",t),null;const s=MA(e,t);if((s||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),s&&e.recordingMode==="buffer"&&e.session?.sampled==="buffer"){const i=e.session;i.dirty=!0,e.getOptions().stickySession&&Ei(i)}return t},{id:"Replay"})}function Ci(e,t){return t.map(({type:n,start:r,end:s,name:o,data:i})=>{const a=e.throttledAddEvent({type:Z.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:o,startTimestamp:r,endTimestamp:s,data:i}}});return typeof a=="string"?Promise.resolve(null):a})}function $A(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function jA(e){return t=>{if(!e.isEnabled())return;const n=$A(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Ci(e,[n]),!1)))}}function UA(e,t){return G&&e.getOptions()._experiments.traceInternals?!1:VC(t,lt())}function fm(e,t){e.isEnabled()&&t!==null&&(UA(e,t.name)||e.addUpdate(()=>(Ci(e,[t]),!0)))}function wi(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=lh(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function pm(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function qo(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function hm(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:o,statusCode:i,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:{method:o,statusCode:i,request:a,response:c}}}function Pr(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Mt(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:o}=HA(n);return r.body=s,o?.length&&(r._meta={warnings:o}),r}function ac(e,t){return Object.entries(e).reduce((n,[r,s])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=s),n},{})}function HA(e){if(!e||typeof e!="string")return{body:e};const t=e.length>bd,n=zA(e);if(t){const r=e.slice(0,bd);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}â¦`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function zA(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Vo(e,t){const n=WA(e);return xE(n,t)}function WA(e,t=fe.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(fe.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function qA(e,t,n){try{const r=await GA(e,t,n),s=hm("resource.fetch",r);fm(n.replay,s)}catch(r){G&&Y.exception(r,"Failed to capture fetch breadcrumb")}}function VA(e,t){const{input:n,response:r}=t,s=n?fh(n):void 0,o=wi(s),i=r?pm(r.headers.get("content-length")):void 0;o!==void 0&&(e.data.request_body_size=o),i!==void 0&&(e.data.response_body_size=i)}async function GA(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r}=t,{url:i,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=e.data,d=Vo(i,n.networkDetailAllowUrls)&&!Vo(i,n.networkDetailDenyUrls),f=d?YA(n,t.input,u):Pr(u),p=await KA(d,n,t.response,l);return{startTimestamp:s,endTimestamp:o,url:i,method:a,statusCode:c,request:f,response:p}}function YA({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?QA(n,t):{};if(!e)return Mt(s,r,void 0);const o=fh(n),[i,a]=dh(o,Y),c=Mt(s,r,i);return a?qo(c,a):c}async function KA(e,{networkCaptureBodies:t,networkResponseHeaders:n}
37,r,s){if(!e&&s!==void 0)return Pr(s);const o=r?mm(r.headers,n):{};if(!r||!t&&s!==void 0)return Mt(o,s,void 0);const[i,a]=await JA(r),c=XA(i,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:o});return a?qo(c,a):c}function XA(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const o=e?.length&&n===void 0?wi(e):n;return r?t?Mt(s,o,e):Mt(s,o,void 0):Pr(o)}catch(o){return G&&Y.exception(o,"Failed to serialize response body"),Mt(s,n,void 0)}}async function JA(e){const t=ZA(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await eT(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(G&&Y.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(G&&Y.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function mm(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function QA(e,t){return e.length===1&&typeof e[0]!="string"?zd(e[0],t):e.length===2?zd(e[1],t):{}}function zd(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?mm(n,t):Array.isArray(n)?{}:ac(n,t):{}}function ZA(e){try{return e.clone()}catch(t){G&&Y.exception(t,"Failed to clone response body")}}function eT(e){return new Promise((t,n)=>{const r=ts(()=>n(new Error("Timeout while trying to read response body")),500);tT(e).then(s=>t(s),s=>n(s)).finally(()=>clearTimeout(r))})}async function tT(e){return await e.text()}async function nT(e,t,n){try{const r=sT(e,t,n),s=hm("resource.xhr",r);fm(n.replay,s)}catch(r){G&&Y.exception(r,"Failed to capture xhr breadcrumb")}}function rT(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=wi(r),o=n.getResponseHeader("content-length")?pm(n.getResponseHeader("content-length")):aT(n.response,n.responseType);s!==void 0&&(e.data.request_body_size=s),o!==void 0&&(e.data.response_body_size=o)}function sT(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r,input:i,xhr:a}=t,{url:c,method:u,status_code:l=0,request_body_size:d,response_body_size:f}=e.data;if(!c)return null;if(!a||!Vo(c,n.networkDetailAllowUrls)||Vo(c,n.networkDetailDenyUrls)){const w=Pr(d),y=Pr(f);return{startTimestamp:s,endTimestamp:o,url:c,method:u,statusCode:l,request:w,response:y}}const p=a[Jt],h=p?ac(p.request_headers,n.networkRequestHeaders):{},g=ac(ph(a),n.networkResponseHeaders),[_,v]=n.networkCaptureBodies?dh(i,Y):[void 0],[S,x]=n.networkCaptureBodies?oT(a):[void 0],b=Mt(h,d,_),T=Mt(g,f,S);return{startTimestamp:s,endTimestamp:o,url:c,method:u,statusCode:l,request:v?qo(b,v):b,response:x?qo(T,x):T}}function oT(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return iT(e.response,e.responseType)}catch(n){t.push(n)}return G&&Y.warn("Failed to get xhr response body",...t),[void 0]}function iT(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 G&&Y.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return G&&Y.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function aT(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return wi(n)}catch{return}}function cT(e){const t=lt();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",(c,u)=>uT(a,c,u))}catch{}}function uT(e,t,n){if(t.data)try{lT(t)&&fT(n)&&(rT(t,n),nT(t,n,e)),dT(t)&&pT(n)&&(VA(t,n),qA(t,n,e))}catch(r){G&&Y.exception(r,"Error when enriching network breadcrumb")}}function lT(e){return e.category==="xhr"}function dT(e){return e.category==="fetch"}function fT(e){return e?.xhr}function pT(e){return e?.response}function hT(e){const t=lt();ah(q2(e)),fi(jA(e)),RA(e),cT(e);const n=LA(e);MC(n),t&&(t.on("beforeSendEvent",IA(e)),t.on("afterSendEvent",AA(e)),t.on("createDsc",r=>{const s=e.getSessionId();s&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=s)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,s)=>{const o=e.getSessionId();s?.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 mT(e){try{return Promise.all(Ci(e,[gT(fe.performance.memory)]))}catch{return[]}}function gT(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function xT(e,t,n){return KC(e,t,{...n,setTimeoutImpl:ts})}const xs=ke.navigator;function _T(){return/iPhone|iPad|iPod/i.test(xs?.userAgent??"")||/Macintosh/i.test(xs?.userAgent??"")&&xs?.maxTouchPoints&&xs?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function yT(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){G&&Y.warn("Received replay event after session expired.");return}const s=r||!t;t=!0,e.clickDetector&&j2(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&s&&e.setInitialState(),!gu(e,n,s))return!0;
37if(!s)return!1;const o=e.session;if(vT(e,s),e.recordingMode==="buffer"&&o&&e.eventBuffer&&!o.dirty){const i=e.eventBuffer.getEarliestTimestamp();i&&(G&&Y.log(`Updating session start time to earliest event in buffer to ${new Date(i)}`),o.started=i,e.getOptions().stickySession&&Ei(o))}return o?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function ST(e){const t=e.getOptions();return{type:Z.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 vT(e,t){!t||e.session?.segmentId!==0||gu(e,ST(e),!1)}function bT(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function ET(e,t,n,r){return dC(pC(e,fC(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function CT({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)} 38`;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 wT({client:e,scope:t,replayId:n,event:r}){const s=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,o={event_id:n,integrations:s};e.emit("preprocessEvent",r,o);const i=await CC(e.getOptions(),r,o,t,e,yi());if(!i)return null;e.emit("postprocessEvent",i,o),i.platform=i.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:u,settings:l}=a?.sdk||{};return i.sdk={...i.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0",settings:l},i}async function AT({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:o}){const i=CT({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:l}=r,d=lt(),f=ss(),p=d?.getTransport(),h=d?.getDsn();if(!d||!p||!h||!o.sampled)return Promise.resolve({});const g={type:nw,replay_start_timestamp:l/1e3,timestamp:s/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:o.sampled},_=await wT({scope:f,client:d,replayId:t,event:g});if(!_)return d.recordDroppedEvent("event_processor","replay"),G&&Y.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete _.sdkProcessingMetadata;const v=ET(_,i,h,d.getOptions().tunnel);let S;try{S=await p.send(v)}catch(b){const T=new Error(su);try{T.cause=b}catch{}throw T}const x=HC({},S);if(UC(x,"replay"))throw new _u(x);if(typeof S.statusCode=="number"&&(S.statusCode<200||S.statusCode>=300))throw new gm(S.statusCode);return S}class gm extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class _u extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}class Wd extends Error{constructor(){super("Session is too long, not sending replay")}}async function xm(e,t={count:0,interval:cw}){const{recordingData:n,onError:r}=e;if(n.length)try{return await AT(e),!0}catch(s){if(s instanceof gm||s instanceof _u)throw s;if(NC("Replays",{_retryCount:t.count}),r&&r(s),t.count>=uw){const o=new Error(`${su} - max retries exceeded`);try{o.cause=s}catch{}throw o}return t.interval*=++t.count,new Promise((o,i)=>{ts(async()=>{try{await xm(e,t),o(!0)}catch(a){i(a)}},t.interval)})}}const _m="__THROTTLED",TT="__SKIPPED";function kT(e,t,n){const r=new Map,s=a=>{const c=a-n;r.forEach((u,l)=>{l<c&&r.delete(l)})},o=()=>[...r.values()].reduce((a,c)=>a+c,0);let i=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(s(c),o()>=t){const l=i;return i=!0,l?TT:_m}i=!1;const u=r.get(c)||0;return r.set(c,u+1),e(...a)}}class IT{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:rw,sessionIdleExpire:sw},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=xT(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=kT((i,a)=>EA(this,i,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),o=r?{threshold:Math.min(lw,r),timeout:r,scrollTimeout:dw,ignoreSelector:s?s.join(","):""}:void 0;if(o&&(this.clickDetector=new N2(this,o)),G){const i=t._experiments;Y.setConfig({captureExceptions:!!i.captureExceptions,traceInternals:!!i.traceInternals})}this._handleVisibilityChange=()=>{fe.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroun
38dTasks()},this._handleWindowBlur=()=>{const i=st({category:"ui.blur"});this._doChangeToBackgroundTasks(i)},this._handleWindowFocus=()=>{const i=st({category:"ui.focus"});this._doChangeToForegroundTasks(i)},this._handleKeyboardEvent=i=>{K2(this,i)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){G&&Y.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,s=n<=0&&r<=0;if(this._requiresManualStart=s,!s){if(this._initializeSessionForSampling(t),!this.session){G&&Y.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",G&&Y.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){G&&Y.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){G&&Y.log("Buffering is in progress, call `flush()` to save the replay");return}G&&Y.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=sa({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){G&&Y.log("Buffering is in progress, call `flush()` to save the replay");return}G&&Y.infoTick("Starting replay in buffer mode");const t=sa({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=yt({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:aw}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:yT(this),..._T(),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{G&&Y.log(`Stopping Replay${n?` triggered by ${n}`:""}`),dm(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,_A(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),G&&Y.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),G&&Y.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();G&&Y.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,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(t){if(!(t&&this.session?.sampled===!1))return this.session?.id}
38checkAndHandleExpiredSession(){if(this._lastActivity&&oc(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${fe.location.pathname}${fe.location.hash}${fe.location.search}`,n=`${fe.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===_m){const s=st({category:"replay.throttled"});this.addUpdate(()=>!gu(this,{type:I2,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||Th(),n=t&&nu(t),s=(n&&Dr(n).data||{})[Ch];if(!(!n||!s||!["route","custom"].includes(s)))return Dr(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=mA({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=sa({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 am(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{fe.document.addEventListener("visibilitychange",this._handleVisibilityChange),fe.addEventListener("blur",this._handleWindowBlur),fe.addEventListener("focus",this._handleWindowFocus),fe.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(hT(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=cA(this)}_removeListeners(){try{fe.document.removeEventListener("visibilitychange",this._handleVisibilityChange),fe.removeEventListener("blur",this._handleWindowBlur),fe.removeEventListener("focus",this._handleWindowFocus),fe.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||im(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()){G&&Y.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:Z.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=Z2(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(Ci(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)}
38_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){G&&Y.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await mT(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Wd;const r=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await xm({replayId:t,recordingData:o,segmentId:s,eventContext:r,session:this.session,timestamp:n,onError:i=>this.handleException(i)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=lt();if(r){let s;n instanceof _u?s="ratelimit_backoff":n instanceof Wd?s="invalid":s="send_error",r.recordDroppedEvent(s,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){G&&Y.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,s=Date.now()-n;this._debouncedFlush.cancel();const o=s<this._options.minReplayDuration,i=s>this._options.maxReplayDuration+5e3;if(o||i){G&&Y.log(`Session duration (${Math.floor(s/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&&G&&Y.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&&Ei(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(a=>{const c=bT(a.target),u=n.join(",");return c?.matches(u)}))return!1;const r=t.length,s=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,i=s&&r>s;if(r>o||i){const a=st({category:"replay.mutations",data:{count:r,limit:i}});this._createCustomBreadcrumb(a)}return i?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function pr(e,t){return[...e,...t].join(",")}function DT({mask:e,unmask:t,block:n,unblock:r,ignore:s}){const o=["base","iframe[srcdoc]:not([src])"],i=pr(e,[".sentry-mask","[data-sentry-mask]"]),a=pr(t,[]);return{maskTextSelector:i,unmaskTextSelector:a,blockSelector:pr(n,[".sentry-block","[data-sentry-block]",...o]),unblockSelector:pr(r,[]),ignoreSelector:pr(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function RT({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:o}){return!r||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?o:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const qd='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',BT=["content-length","content-type","accept"],FT=Symbol.for("sentry__originalRequestBody");let Vd=!1,Gd=!1;function OT(){if(typeof Request>"u"||Gd)return;const e=Request;try{const t=function(n,r){const s=new e(n,r);return r?.body!=null&&(s[FT]=r.body),s};t.prototype=e.prototype,ke.Request=t,Gd=!0}catch{}}const PT=e=>new NT(e);class NT{constructor({flushMinDelay:t=ow,flushMaxDelay:n=iw,minReplayDuration:r=fw,maxReplayDuration:s=Ed,stickySession:o=!0,useCompression:i=!0,workerUrl:a,_experiments:c={},maskAllText:u=!0,maskAllInputs:l=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:f=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:_=[],networkDetailDenyUrls:v=[],networkCaptureBodies:S=!0,networkRequestHeaders:x=[],networkResponseHeaders:b=[],mask:T=[],maskAttributes:w=["title","placeholder","aria-label"],unmask:y=[],block:C=[],unblock:P=[],ignore:E=[],maskFn:A,beforeAddRecordingEvent:k,beforeErrorSampling:D,onError:M,attachRawBodyFromRequest:j=!1}={}){this.name="Replay";const U=DT({mask:T,unmask:y,block:C,unblock:P,ignore:E});if(this._recordingOptions={maskAllInputs:l,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:A,maskInputFn:A,maskAttributeFn:(V,N,q)=>RT({maskAttributes:w,maskAllText:u,privacyOptions:U,key:V,value:N,el:q}),...U,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:V=>{try{V.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,pw),maxReplayDuration:Math.min(s,Ed),stickySession:o,useCompression:i,workerUrl:a,blockAllMedia:d,maskAllInputs:l,maskAllText:u,mutationBreadcrumbLimit:f,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:g,networkDetailAllowUrls:_,networkDetailDenyUrls:v,networkCaptureBodies:S,networkRequestHeaders:Yd(x),networkResponseHeaders:Yd(b),beforeAddRecordingEvent:k,beforeErrorSampling:D,onError:M,attachRawBodyFromRequest:j,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${qd}`:qd,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&vd())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Vd}set _isInitialized(t){Vd=t}afterAllSetup(t){!vd()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&OT(),this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}
38startBuffering(){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(t){if(this._replay?.isEnabled())return this._replay.getSessionId(t)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=MT(this._initialOptions,t);this._replay=new IT({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function MT(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},s=fd(n.replaysSessionSampleRate),o=fd(n.replaysOnErrorSampleRate);return s==null&&o==null&&Xc(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),s!=null&&(r.sessionSampleRate=s),o!=null&&(r.errorSampleRate=o),r}function Yd(e){return[...BT,...e.map(t=>t.toLowerCase())]}function LT(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function ym(e){try{return new URL(e,re.location.origin).href}catch{return}}function $T(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Sm(e){try{return new Headers(e)}catch{return}}const Kd=new WeakMap,oa=new Map,vm={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function jT(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:o,enableHTTPTimings:i,tracePropagationTargets:a,onRequestSpanStart:c,onRequestSpanEnd:u}={...vm,...t},l=typeof o=="function"?o:h=>!0,d=h=>UT(h,a),f={},p=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(h=>(h.type==="transaction"&&h.spans&&h.spans.forEach(g=>{if(g.op==="http.client"){const _=oa.get(g.span_id);_&&(g.timestamp=_/1e3,oa.delete(g.span_id))}}),h)),s&&Wy(h=>{if(h.response){const g=Kd.get(h.response);g&&h.endTimestamp&&oa.set(g,h.endTimestamp)}}),_p(h=>{const g=Ny(h,l,d,f,{propagateTraceparent:p,onRequestSpanEnd:u});if(h.response&&h.fetchData.__span&&Kd.set(h.response,h.fetchData.__span),g){const _=ym(h.fetchData.url),v=_?Pn(_).host:void 0;g.setAttributes({"http.url":_?Rt(_):void 0,"server.address":v}),i&&Xd(g),c?.(g,{headers:h.headers})}})),r&&uh(h=>{const g=HT(h,l,d,f,p,u);g&&(i&&Xd(g),c?.(g,{headers:Sm(h.xhr.__sentry_xhr_v3__?.request_headers)}))})}function Xd(e){const{url:t}=me(e).data;if(!t||typeof t!="string")return;const n=Yn("resource",({entries:r})=>{r.forEach(s=>{$T(s)&&s.name.endsWith(t)&&(e.setAttributes(ih(s)),setTimeout(n))})})}function UT(e,t){const n=jr();if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch{return!1}const o=r.origin===s;return t?nn(r.toString(),t)||o&&nn(r.pathname,t):o}else{const r=!!e.match(/^\/(?!\/)/);return t?nn(e,t):r}}function HT(e,t,n,r,s,o){const i=e.xhr,a=i?.[Jt];if(!i||i.__sentry_own_request__||!a)return;const{url:c,method:u}=a,l=et()&&t(c);if(e.endTimestamp){const v=i.__sentry_xhr_span_id__;if(!v)return;const S=r[v];S&&(l&&a.status_code!==void 0&&(Tf(S,a.status_code),S.end(),o?.(S,{headers:Sm(ph(i)),error:e.error})),delete r[v]);return}const d=ym(c),f=Pn(d||c),p=Rt(ry(c)),h=!!rr(),g=l&&h?ai({name:`${u} ${p}`,attributes:{url:Rt(c),type:"xhr","http.method":u,"http.url":d?Rt(d):void 0,"server.address":f?.host,[cn]:"auto.http.browser",[Ar]:"http.client",...f?.search&&{"http.query":f?.search},...f?.hash&&{"http.fragment":f?.hash}}}):new un;i.__sentry_xhr_span_id__=g.spanContext().spanId,r[i.__sentry_xhr_span_id__]=g,n(c)&&zT(i,et()&&h?g:void 0,s);const _=ue();return _&&_.emit("beforeOutgoingRequestSpan",g,e),g}function zT(e,t,n){const{"sentry-trace":r,baggage:s,traceparent:o}=pp({span:t,propagateTraceparent:n});r&&WT(e,r,s,o)}function WT(e,t,n,r){const s=e.__sentry_xhr_v3__?.request_headers;if(!(s?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!s?.traceparent&&e.setRequestHeader("traceparent",r),n){const o=s?.baggage;(!o||!LT(o))&&e.setRequestHeader("baggage",n)}}catch{}}function qT(){re.document?re.document.addEventListener("visibilitychange",()=>{const e=rr();if(!e)return;const t=Ze(e);if(re.document.hidden&&t){const n="cancelled",{op:r,status:s}=me(t);je&&$.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:we,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):je&&$.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const VT=3600,bm="sentry_previous_trace",GT="sentry.previous_trace";function YT(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";
38let s=r?JT():void 0;e.on("spanStart",i=>{if(Ze(i)!==i)return;const a=ve().getPropagationContext();s=KT(s,i,a),r&&XT(s)});let o=!0;n&&e.on("beforeSampling",i=>{if(!s)return;const a=ve(),c=a.getPropagationContext();if(o&&c.parentSpanId){o=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(s.sampleRate),sampled:String(cc(s.spanContext))},sampleRand:s.sampleRand}),i.parentSampled=cc(s.spanContext),i.parentSampleRate=s.sampleRate,i.spanAttributes={...i.spanAttributes,[Af]:s.sampleRate}})}function KT(e,t,n){const r=me(t);function s(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[Sc])}catch{return 0}}const o={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:s(),sampleRand:n.sampleRand};if(!e)return o;const i=e.spanContext;return i.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=VT&&(je&&$.log(`Adding previous_trace \`${JSON.stringify(i)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:i,attributes:{[Xg]:"previous_trace"}}),t.setAttribute(GT,`${i.traceId}-${i.spanId}-${cc(i)?1:0}`)),o)}function XT(e){try{re.sessionStorage.setItem(bm,JSON.stringify(e))}catch(t){je&&$.warn("Could not store previous trace in sessionStorage",t)}}function JT(){try{const e=re.sessionStorage?.getItem(bm);return JSON.parse(e)}catch{return}}function cc(e){return e.traceFlags===1}const QT="BrowserTracing",ZT=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function ek(){const e=re.navigator;return e?.userAgent?ZT.test(e.userAgent):!1}const tk={...ws,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...vm},nk=(e={})=>{"enableElementTiming"in e&&pn(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});const t={name:void 0,source:void 0},n=re.document,{enableInp:r,enableLongTask:s,enableLongAnimationFrame:o,_experiments:{enableInteractions:i,enableStandaloneClsSpans:a,enableStandaloneLcpSpans:c},beforeStartSpan:u,idleTimeout:l,finalTimeout:d,childSpanTimeout:f,markBackgroundSpan:p,traceFetch:h,traceXHR:g,trackFetchStreamPerformance:_,shouldCreateSpanForRequest:v,enableHTTPTimings:S,ignoreResourceSpans:x,ignorePerformanceApiSpans:b,instrumentPageLoad:T,instrumentNavigation:w,detectRedirects:y,linkPreviousTrace:C,consistentTraceSampling:P,enableReportPageLoaded:E,onRequestSpanStart:A,onRequestSpanEnd:k}={...tk,...e},D=ek();let M,j,U;function V(N,q,L=!0){const I=q.op==="pageload",R=q.name,B=u?u(q):q,F=B.attributes||{};if(R!==B.name&&(F[gt]="custom",B.attributes=F),!L){const he=hn();ai({...B,startTime:he}).end(he);return}t.name=B.name,t.source=F[gt];const ee=Gf(B,{idleTimeout:l,finalTimeout:d,childSpanTimeout:f,disableAutoFinish:I,beforeSpanEnd:he=>{M?.(),xv(he,{recordClsOnPageloadSpan:!a,recordLcpOnPageloadSpan:!c,ignoreResourceSpans:x,ignorePerformanceApiSpans:b}),Zd(N,void 0);const X=ve(),nt=X.getPropagationContext();X.setPropagationContext({...nt,traceId:ee.spanContext().traceId,sampled:Ut(ee),dsc:$t(he)}),I&&(U=void 0)},trimIdleSpanEndTimestamp:!E});I&&E&&(U=ee),Zd(N,ee);function ie(){n&&["interactive","complete"].includes(n.readyState)&&N.emit("idleSpanEnableAutoFinish",ee)}I&&!E&&n&&(n.addEventListener("readystatechange",()=>{ie()}),ie())}return{name:QT,setup(N){if(D){je&&$.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}if(wx(),M=lv({recordClsStandaloneSpans:a||!1,recordLcpStandaloneSpans:c||!1,client:N}),r&&Uv(),o&&ce.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?fv():s&&dv(),i&&pv(),y&&n){const L=()=>{j=$e()};addEventListener("click",L,{capture:!0}),addEventListener("keydown",L,{capture:!0,passive:!0})}function q(){const L=Nr(N);L&&!me(L).timestamp&&(je&&$.log(`[Tracing] Finishing current active span with op: ${me(L).op}`),L.setAttribute(Tr,"cancelled"),L.end())}N.on("startNavigationSpan",(L,I)=>
38{if(ue()!==N)return;if(I?.isRedirect){je&&$.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),V(N,{op:"navigation.redirect",...L},!1);return}j=void 0,q(),ut().setPropagationContext({traceId:vt(),sampleRand:Math.random(),propagationSpanId:et()?void 0:xt()});const R=ve();R.setPropagationContext({traceId:vt(),sampleRand:Math.random(),propagationSpanId:et()?void 0:xt()}),R.setSDKProcessingMetadata({normalizedRequest:void 0}),V(N,{op:"navigation",...L,parentSpan:null,forceTransaction:!0})}),N.on("startPageLoadSpan",(L,I={})=>{if(ue()!==N)return;q();const R=I.sentryTrace||Jd("sentry-trace")||Qd("sentry-trace"),B=I.baggage||Jd("baggage")||Qd("baggage"),F=gx(R,B),ee=ve();ee.setPropagationContext(F),et()||(ee.getPropagationContext().propagationSpanId=xt()),ee.setSDKProcessingMetadata({normalizedRequest:Ic()}),V(N,{op:"pageload",...L})}),N.on("endPageloadSpan",()=>{E&&U&&(U.setAttribute(Tr,"reportPageLoaded"),U.end())})},afterAllSetup(N){if(D)return;let q=jr();if(C!=="off"&&YT(N,{linkPreviousTrace:C,consistentTraceSampling:P}),re.location){if(T){const L=Fg();rk(N,{name:re.location.pathname,startTime:L?L/1e3:void 0,attributes:{[gt]:"url",[cn]:"auto.pageload.browser"}})}w&&fi(({to:L,from:I})=>{if(I===void 0&&q?.indexOf(L)!==-1){q=void 0;return}q=void 0;const R=fp(L),B=Nr(N),F=B&&y&&ik(B,j);sk(N,{name:R?.pathname||re.location.pathname,attributes:{[gt]:"url",[cn]:"auto.navigation.browser"}},{url:L,isRedirect:F})})}p&&qT(),i&&ok(N,l,d,f,t),r&&Wv(),jT(N,{traceFetch:h,traceXHR:g,trackFetchStreamPerformance:_,tracePropagationTargets:N.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:v,enableHTTPTimings:S,onRequestSpanStart:A,onRequestSpanEnd:k})}}};function rk(e,t,n){e.emit("startPageLoadSpan",t,n),ve().setTransactionName(t.name);const r=Nr(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function sk(e,t,n){const{url:r,isRedirect:s}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:s}),e.emit("startNavigationSpan",t,{isRedirect:s});const o=ve();return o.setTransactionName(t.name),r&&!s&&o.setSDKProcessingMetadata({normalizedRequest:{...Ic(),url:r}}),Nr(e)}function Jd(e){return re.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function Qd(e){return re.performance?.getEntriesByType?.("navigation")[0]?.serverTiming?.find(r=>r.name===e)?.description}function ok(e,t,n,r,s){const o=re.document;let i;const a=()=>{const c="ui.action.click",u=Nr(e);if(u){const l=me(u).op;if(["navigation","pageload"].includes(l)){je&&$.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(i&&(i.setAttribute(Tr,"interactionInterrupted"),i.end(),i=void 0),!s.name){je&&$.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}i=Gf({name:s.name,op:c,attributes:{[gt]:s.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};o&&addEventListener("click",a,{capture:!0})}const Em="_sentry_idleSpan";function Nr(e){return e[Em]}function Zd(e,t){Ve(e,Em,t)}const e0=1.5;function ik(e,t){const n=me(e),r=hn(),s=n.start_timestamp;return!(r-s>e0||t&&r-t<=e0)}const t0="10.47.0";function ak(e,t,n=[t],r="npm"){const s=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};s.name||(s.name=`sentry.javascript.${t}`,s.packages=n.map(o=>({name:`${r}:@sentry/${o}`,version:t0})),s.version=t0)}function ck(e){const t={...e};return ak(t,"react"),v_("react",{version:O.version}),Kb(t)}const uk=()=>{ck({dsn:"https://015dd4ea4302dc570778a6b966392c01@o4511992956256256.ingest.de.sentry.io/4511992977358928",environment:"production",integrations:[nk({traceFetch:!0,traceXHR:!0}),PT({maskAllText:!1,blockAllMedia:!0,maskAllInputs:!0,networkDetailAllowUrls:[window.location.origin,/stripe\.com/,/paypal\.com/],networkCaptureBodies:!0,useCompression:!0,beforeAddRecordingEvent:t=>window.location.pathname.includes("/hero")?t:null})],tracesSampleRate:.1,replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,ignoreErrors:["webkit.messageHandlers","evaluating 'window.webkit.messageHandlers'","undefined is not an object (evaluating 'window.webkit.messageHandlers')","InvalidAccessError","The object does not support the operation","does not support the operation or argument","Error invoking postMessage","Java object is gone","postMessage: Java object is gone","Attempting to change value of a readonly property","Cannot redefine property","Cannot assign to read only property","runtime.sendMessage","Invalid call to runtime.sendMessage()","Tab not found","chrome-extension://","safari-extension://","moz-extension://","ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications","Non-Error promise rejection captured","Network request failed","Loa
38d failed","NetworkError"],beforeSend(t,n){const s=n?.originalException?.toString()||"",o=t.exception?.values?.[0]?.value||"";return s.includes("webkit.messageHandlers")||s.includes("runtime.sendMessage")||s.includes("Java object is gone")||s.includes("postMessage")&&s.includes("Java")||s.includes("readonly property")||s.includes("Cannot redefine property")||o.includes("webkit.messageHandlers")||o.includes("runtime.sendMessage")||o.includes("Java object is gone")||o.includes("Tab not found")||o.includes("readonly property")||o.includes("Cannot redefine property")?(console.log("ð« Filtered in-app browser error:",s||o),null):!t.exception?.values?.[0]?.stacktrace?.frames?.length&&o?(console.log("ð« Filtered error without stack trace:",o),null):(t.request&&(t.request.url&&(t.request.url=t.request.url.replace(/[?&](password|token|key)=[^&]*/gi,"$1=REDACTED")),t.request.headers&&(delete t.request.headers.Authorization,delete t.request.headers.Cookie)),t.message&&(t.message=t.message.replace(/\d{4}[\s-]?\d{4}[\s-]?\d{4}[\s-]?\d{4}/g,"****-****-****-****")),t.message&&(t.message=t.message.replace(/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,"user@*****.com")),t)},initialScope:{tags:{"app.version":"1.0.0","app.name":"Atzuma"}}}),console.log("â Sentry initialized with Replay + filtered in-app browser errors")};var _s={},n0;function lk(){if(n0)return _s;n0=1;var e=ng();return _s.createRoot=e.createRoot,_s.hydrateRoot=e.hydrateRoot,_s}var dk=lk();const fk="modulepreload",pk=function(e){return"/"+e},r0={},W=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let i=function(u){return Promise.all(u.map(l=>Promise.resolve(l).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),c=a?.nonce||a?.getAttribute("nonce");s=i(n.map(u=>{if(u=pk(u),u in r0)return;r0[u]=!0;const l=u.endsWith(".css"),d=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":fk,l||(f.as="script"),f.crossOrigin="",f.href=u,c&&f.setAttribute("nonce",c),document.head.appendChild(f),l)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return s.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})},Go={siteName:"עצ×××",siteUrl:"https://atzuma.co.il",logo:"/images/logo.png",heroTitle:`××××××× ×©×× ××. 39×ת××××× ×עצ×××.`,heroSubtitle:"××¢× 31 ×××××× ×ת×××ת ש××ר ××©× ×ת ×צ×××ת",ctaButtonText:"פת×× ×¢×¦××× ×¢×ש××",signButtonText:"×ת××× ×¢× ×עצ×××",hotPetitionsTitle:"×××××§×× ×©×¦××ר×× ×ª××צ×",showSignaturesList:!1,showDisplayNameOption:!1},hk=({language:e,onLanguageToggle:t,onNavigate:n,user:r,onOpenAuth:s,onLogout:o})=>{const i=ct(),c=Zo().pathname==="/search",[u,l]=O.useState(!1),[d,f]=O.useState(""),[p,h]=O.useState(typeof window<"u"?window.innerWidth:1024),g=!!r,_=e==="he";O.useEffect(()=>{const y=()=>{h(window.innerWidth)};if(typeof window<"u")return window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)},[]);const v=()=>p>=1200?"80px":p>=1024?"60px":p>=768?"40px":"18px",S=()=>l(!u),x=y=>{console.log("ð Header Navigation Debug:",{path:y,type:typeof y,onNavigate:typeof n}),console.log("ð Navigating to:",y),n(y),l(!1)},b=()=>{o(),l(!1)},T=()=>l(!1),w=typeof window<"u"&&window.innerWidth>=1024;return m.jsxs(m.Fragment,{children:[u&&m.jsx("div",{className:"gp-overlay",onClick:T,style:{position:"fixed",inset:"0",zIndex:40,backgroundColor:"rgba(0, 0, 0, 0.25)"}}),m.jsx("header",{className:"gp-header-main",dir:_?"rtl":"ltr",style:{backgroundColor:"white",borderBottom:"1px solid #e5e5e5",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",position:"relative",zIndex:50},children:m.jsxs("div",{className:"gp-header-container",style:{width:"100%",margin:"0",padding:`0 ${v()}`,display:"flex",justifyContent:"space-between",alignItems:"center",height:"64px"},children:[m.jsx("a",{href:"/",className:"gp-logo-section",style:{display:"flex",alignItems:"center",textDecoration:"none"},onClick:y=>{y.ctrlKey||y.metaKey||y.button===1||(y.preventDefault(),x("/"))},children:m.jsx("img",{src:Go.logo,alt:Go.siteName,className:"h-6 md:h-8",style:{width:"auto",objectFit:"contain"}})}),w&&!c&&m.jsx("div",{className:"gp-desktop-search",style:{flex:1,maxWidth:"500px",margin:"0 32px"},children:m.jsxs("div",{className:"relative",children:[m.jsx("svg",{className:`absolute top-1/2 transform -translate-y-1/2 w-5 h-5 text-gray-400 ${_?"right-3":"left-3"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),m.jsx("input",{type:"text",placeholder:"××פ×ש עצ×××ת...",className:`w-full h-10 ${_?"pr-10 pl-4 text-right":"pl-10 pr-4 text-left"} border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-all`,onKeyDown:y=>{if(y.key==="Enter"){const C=y.target.value.trim();C&&(i(`/search?search=${encodeURIComponent(C)}`),y.target.value="")}}})]})}),m.jsxs("div",{className:"gp-header-actions",style:{display:"flex",alignItems:"center",gap:"16px",flexDirection:_?"row-reverse":"row"}
39,children:[w&&!g&&m.jsxs("div",{className:"gp-desktop-auth",style:{display:"flex",gap:"12px",alignItems:"center"},children:[m.jsx("button",{onClick:()=>x("/create"),className:"gp-start-petition-btn",style:{padding:"8px 16px",backgroundColor:"#10b981",color:"white",border:"none",borderRadius:"6px",fontSize:"14px",fontWeight:"500",cursor:"pointer",transition:"background-color 0.2s"},onMouseEnter:y=>{const C=y.target;C.style.backgroundColor="#059669"},onMouseLeave:y=>{const C=y.target;C.style.backgroundColor="#10b981"},children:"פת×× ×¢×¦×××"}),m.jsx("button",{onClick:()=>s("login"),className:"gp-login-btn",style:{padding:"8px 16px",backgroundColor:"transparent",color:"#374151",border:"1px solid #d1d5db",borderRadius:"6px",fontSize:"14px",fontWeight:"500",cursor:"pointer",transition:"all 0.2s"},onMouseEnter:y=>{const C=y.target;C.style.backgroundColor="#f9fafb"},onMouseLeave:y=>{const C=y.target;C.style.backgroundColor="transparent"},children:"×ת××ר×ת"})]}),m.jsxs("div",{className:"gp-user-menu",style:{position:"relative"},children:[m.jsxs("button",{onClick:S,className:"gp-menu-trigger",style:{display:"flex",alignItems:"center",gap:"8px",padding:"12px",backgroundColor:u?"#f3f4f6":"transparent",border:"none",borderRadius:"8px",cursor:"pointer",transition:"background-color 0.2s",flexDirection:_?"row-reverse":"row"},onMouseEnter:y=>{const C=y.target;u||(C.style.backgroundColor="#f9fafb")},onMouseLeave:y=>{const C=y.target;u||(C.style.backgroundColor="transparent")},children:[g&&r?m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"gp-user-avatar",style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:"#2563eb",display:"flex",alignItems:"center",justifyContent:"center"},children:m.jsx("span",{style:{color:"white",fontSize:"14px",fontWeight:"500"},children:(r.full_name||r.name||"U").charAt(0).toUpperCase()})}),w&&m.jsx("span",{className:"gp-user-name",style:{fontSize:"14px",fontWeight:"500",color:"#374151",maxWidth:"120px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:r.full_name||r.name})]}):m.jsx(m.Fragment,{children:w&&m.jsx("span",{className:"gp-menu-text",style:{fontSize:"14px",fontWeight:"500",color:"#374151"},children:"תפר××"})}),m.jsx("svg",{width:"24",height:"24",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",style:{color:"#6b7280"},children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})]}),u&&m.jsx("div",{className:"gp-dropdown-menu",style:{position:"absolute",top:"100%",left:_?"0":"auto",right:_?"auto":"0",marginTop:"8px",width:"320px",backgroundColor:"white",borderRadius:"8px",boxShadow:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",border:"1px solid #e5e7eb",padding:"4px 0",zIndex:50,maxHeight:"80vh",overflowY:"auto"},children:g&&r?m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"gp-user-info",style:{padding:"16px",borderBottom:"1px solid #f3f4f6",textAlign:_?"right":"left"},children:m.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[m.jsx("div",{style:{width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"#2563eb",display:"flex",alignItems:"center",justifyContent:"center"},children:m.jsx("span",{style:{color:"white",fontWeight:"500"},children:(r.full_name||r.name||"U").charAt(0).toUpperCase()})}),m.jsxs("div",{style:{flex:1,marginLeft:_?"0":"12px",marginRight:_?"12px":"0"},children:[m.jsx("p",{style:{fontSize:"14px",fontWeight:"500",color:"#111827",margin:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:r.full_name||r.name}),m.jsx("p",{style:{fontSize:"12px",color:"#6b7280",margin:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:r.email})]})]})}),m.jsxs("div",{className:"gp-menu-items",style:{padding:"4px 0"},children:[m.jsx("button",{onClick:()=>x("/dashboard"),className:"gp-menu-item",style:{width:"100%",textAlign:_?"right":"left",padding:"12px 16px",fontSize:"14px",color:"#374151",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",transition:"background-color 0.2s"},onMouseEnter:y=>{const C=y.target;C.style.backgroundColor="#f9fafb"},onMouseLeave:y=>{const C=y.target;C.style.backgroundColor="transparent"},children:m.jsx("span",{children:"×עצ×××ת ש××"})}),m.jsx("button",{onClick:()=>x("/search"),className:"gp-menu-item",style:{width:"100%",textAlign:_?"right":"left",padding:"12px 16px",fontSize:"14px",color:"#374151",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",transition:"background-color 0.2s"},onMouseEnter:y=>{const C=y.target;C.style.backgroundColor="#f9fafb"},onMouseLeave:y=>{const C=y.target;C.style.backgroundColor="transparent"},children:m.jsx("span",{children:"××פ×ש"})}),m.jsx("button",{onClick:()=>x("/profile"),className:"gp-menu-item",style:{width:"100%",textAlign:_?"right":"left",padding:"12px 16px",fontSize:"14px",color:"#374151",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",transition:"background-color 0.2s"},onMouseEnter:y=>{const C=y.target;C.style.backgroundColor="#f9fafb"},onMouseLeave:y=>{const C=y.target;C.style.backgroundColor="transparent"},children:m.jsx("span",{children:"×××ר×ת"})}),r&&r.role==="admin"&&m.jsx("button",{onClick:()=>x("/admin/main"),className:"gp-admin-menu-item",style:{width:"100%",textAlign:_?"right":"left",padding:"12px 16px",fontSize:"14px",color:"#dc2626",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",transition:"background-color 0.2s",fontWeight:"600"},onMouseEnter:y=>{const C=y.target;C.style.backgroundColor="#fef2f2"},onMouseLeave:y=>{const C=y.target;C.style.backgroundColor="transparent"},children:m.jsx("span",{children:"××× ××§×¨× × ××××"})}),m.jsx("div",{style:{margin:"8px 0",borderTop:"1px solid #e5e7eb"}}),m.jsx("button",{onClick:b,className:"gp-logout-btn",style:{width:"100%",textAlign:_?"right":"left",padding:"12px 16px",fontSize:"14px",color:"#374151",backgroundColor:"transparent",border:"none",cursor:"pointer",transition:"background-color 0.2s"},onMouseEnter:y=>{const C=y.target;C.style.backgroundColor="#f9fafb"},onMouseLeave:y=>{const C=y.target;C.style.backgroundColor="transparent"},children:"×צ×××"})]})]}):m.jsxs("div",{className:"gp-guest-menu",style:{padding:"4px 0"},children:[m.jsx("button",{onClick:()=>x("/search"),className:"gp-guest-menu-item",style:{width:"100%",textAlign:_?"right":"left",padding:"16px",fontSize:"16px",fontWeight:"500",color:"#111827",backgroundColor:"transparent",border:"none",borderBottom:"1px solid #f3f4f6",cursor:"pointer",transition:"background-color 0.2s"},onMouseEnter:y=>{const C=y.target;C.style.backgroundColor="#f9fafb"},onMouseLeave:y=>{const C=y.target;C.style.backgroundColor="transparent"},children:"××פ×ש"}),m.jsx("button",{onClick:()=>s("login"),className:"gp-auth-btn",style:{width:"100%",textAlign:_?"right":"left",padding:"16px",fontSize:"16px",fontWeight:"500",color:"#111827",backgroundColor:"transparent",border:"none",cursor:"pointer",transition:"background-color 0.2s"},onMouseEnter:y=>{const C=y.target;C.style.backgroundColor="#f9fafb"},onMouseLeave:y=>{const C=y.target;C.style.backgroundColor="transparent"},children:"×ת××ר×ת / ×רש××"})]})})]})]})]})})]})},Cm=1800*1e3,s0=50,mk=100*1024,o0=200,wm="ah_pixel_queue",i0="ah_capi_buffer",Ln="ah_sent_events",ia="ah_ga4_queue";function Ai(){try{return typeof window>"u"||!window.sessionStorage?null:window.sessionStorage}catch{return null}}function gk(e){let t=e.length>s0?e.slice(e.length-s0):e.slice();for(;;){const n=JSON.stringify(t);if(n.length<=mk)return n;if(t.length<=1)return null;t=t.slice(1)}}function Yo(e,t){const n=Ai();if(n)try{if(t.length===0){n.removeItem(e);return}const r=gk(t);if(r===null){n.removeItem(e);return}n.setItem(e,r)}catch{try{n.removeItem(e)}catch{}}}function yu(e,t=Date.now()){const n=Ai();if(!n)return[];try{const r=n.getItem(e);if(!r)return[];const s=JSON.parse(r);if(!Array.isArray(s))return n.removeItem(e),[];const o=t-Cm,i=s.filter(a=>{if(!a||typeof a!="object")return!1;const c=a.originalTimestamp;return typeof c!="number"||!Number.isFinite(c)?!1:c>=o});return i.length===0&&n.removeItem(e),i}catch{try{n.removeItem(e)}catch{}return[]}}function Su(e){const t=Ai();if(t)try{const n=Array.from(e),r=n.length>
39o0?n.slice(n.length-o0):n;if(r.length===0){t.removeItem(Ln);return}t.setItem(Ln,JSON.stringify(r))}catch{try{t.removeItem(Ln)}catch{}}}function xk(){const e=Ai();if(!e)return[];try{const t=e.getItem(Ln);if(!t)return[];const n=JSON.parse(t);return Array.isArray(n)?n.filter(r=>typeof r=="string"):(e.removeItem(Ln),[])}catch{try{e.removeItem(Ln)}catch{}return[]}}console.log("[CONSENT DEBUG 1] pixelQueue.ts loaded at:",new Date().toISOString());console.log("[CONSENT DEBUG 2] File location:",import.meta.url);const _k=!1;console.log("[CONSENT DEBUG 3] VITE_PIXEL_DIAG =",void 0);console.log("[CONSENT DEBUG 4] diagnostics enabled =",_k);const yk=new Set(["CompleteRegistration","InitiateCheckout","AddPaymentInfo"]),qe=new Set,De=[];function Ko(){Yo(wm,De)}function Sk(){xk().forEach(n=>qe.add(n));const e=Date.now(),t=yu(wm,e);t.forEach(n=>{const r=vu(n.name,n.eventID,n.params);qe.has(r)||De.push({...n,timestamp:e})}),t.length>0&&console.log(`â»ï¸ Restored ${De.length} pixel event(s) from previous page view`),Ko()}function vu(e,t,n){if(t)return`${e}:${t}`;const r=n?.petition_id||n?.petition_slug||"";return`${e}:${r}`}function Am(){return!0}function Tm(){console.log("ð Consent changed - flushing queue"),Zt(),W(()=>Promise.resolve().then(()=>ZI),void 0).then(e=>e.default.getInstance().flushPendingCapi()).catch(()=>{})}function Ge(e,t,n){const r=vu(e,n,t);if(qe.has(r)){console.log(`â ï¸ Event already sent: ${r}`);return}const s=Am(),o=typeof window<"u"&&typeof window.fbq=="function";if(yk.has(e)){console.log(`ð Queueing nav-sensitive event: ${e}`);const a=Date.now();De.push({name:e,params:t,eventID:n,timestamp:a,originalTimestamp:a}),Ko(),Zt();return}if(o)try{console.log(`â
Firing immediately: ${e}`),window.fbq("track",e,t,n?{eventID:n}:void 0),qe.add(r),Su(qe);return}catch(a){console.error(`â Immediate fire failed for ${e}:`,a)}console.log(`ð Queueing: ${e} (consent=${s}, fbqReady=${o}
39)`);const i=Date.now();De.push({name:e,params:t,eventID:n,timestamp:i,originalTimestamp:i}),Ko(),Zt()}let a0=0;const vk=200,bk=12e4;function Zt(){const e=Date.now();if(e-a0<vk||(a0=e,De.length===0)||typeof window>"u"||typeof window.fbq!="function")return;const t=e-bk;let n=0;for(;De.length>0&&De[0].timestamp<t;)De.shift(),n++;n>0&&console.log(`ðï¸ Cleaned ${n} stale events`);let r=0,s=n;for(;De.length>0;){const o=De[0],i=vu(o.name,o.eventID,o.params);if(qe.has(i)){console.log(`â ï¸ Skipping duplicate in queue: ${i}`),De.shift(),s++;continue}try{window.fbq("track",o.name,o.params,o.eventID?{eventID:o.eventID}:void 0),qe.add(i),De.shift(),r++,s++,console.log(`â
Flushed: ${o.name}`)}catch(a){console.error(`â Flush failed for ${o.name}:`,a);break}}s>0&&Ko(),r>0&&(Su(qe),console.log(`ð Flushed ${r} events successfully`))}if(typeof window<"u"){Sk(),setTimeout(()=>{console.log("ð Initial flush on page load"),Zt()},500),setInterval(Zt,5e3);const e=()=>setTimeout(Zt,50);window.addEventListener("beforeunload",e),window.addEventListener("pagehide",e),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&e()}),window.pixelQueue={getQueue:()=>[...De],getQueueSize:()=>De.length,getSentEvents:()=>[...qe],clearSentEvents:()=>{qe.clear(),Su(qe)},flush:Zt,checkConsent:Am,onConsentChange:Tm},window.sentEvents=qe,console.log("â
Pixel queue system initialized")}class ye{static CONSENT_COOKIE="ccpa-consent-prefs";static OPT_OUT_COOKIE="ccpa-opt-out";static SESSION_STORAGE_KEY="user-session-tracking";static lastLoggedConsent=null;static setUserOptOutStatus(t){if(t){const n=new Date;n.setFullYear(n.getFullYear()+1),document.cookie=`${this.OPT_OUT_COOKIE}=true; expires=${n.toUTCString()}; path=/; SameSite=Lax; Secure`,this.disableAllTracking()}else document.cookie=`${this.OPT_OUT_COOKIE}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`}static hasUserOptedOut(){return document.cookie.split(";").find(r=>r.trim().startsWith(`${this.OPT_OUT_COOKIE}=`))?.split("=")[1]?.trim()==="true"}static setConsentPreferences(t){const r={...this.getConsentPreferences(),...t,timestamp:Date.now()},s=new Date;s.setFullYear(s.getFullYear()+1),document.cookie=`${this.CONSENT_COOKIE}=${JSON.stringify(r)}; expires=${s.toUTCString()}; path=/; SameSite=Lax; Secure`,this.applyConsentChoices(r),r.marketing===!0&&(console.log("ð Marketing consent granted - flushing pixel queue"),Tm())}static getConsentPreferences(){const n=document.cookie.split(";").find(s=>s.trim().startsWith(`${this.CONSENT_COOKIE}=`));if(n)try{const s=n.split("=")[1],o=JSON.parse(decodeURIComponent(s)),i=`found:${s}`;return this.lastLoggedConsent!==i&&(this.lastLoggedConsent=i,console.log("ð¡ï¸ Found existing consent preferences:",o)),o}catch{console.warn("Failed to parse consent preferences")}const r={analytics:!1,marketing:!1,functional:!0,optOutSale:!1,timestamp:0};return this.lastLoggedConsent!=="default"&&(this.lastLoggedConsent="default",console.log("ð¡ï¸ Using default consent preferences (no timestamp):",r)),r}static hasConsentFor(t){return this.hasUserOptedOut()?!1:this.getConsentPreferences()[t]===!0}static applyConsentChoices(t){!t.analytics&&window.gtag&&window.gtag("consent","update",{analytics_storage:"denied"}),t.marketing||this.disableMarketingPixels(),t.optOutSale&&this.clearNonEssentialData()}static disableAllTracking(){window.gtag&&window.gtag("consent","update",{analytics_storage:"denied",ad_storage:"denied"}),window.fbq&&window.fbq("consent","revoke"),this.clearNonEssentialData()}static disableMarketingPixels(){window.fbq&&window.fbq("consent","revoke")}static clearNonEssentialData(){const t=["signed-petitions","user-preferences"];Object.keys(localStorage).forEach(n=>{t.includes(n)||localStorage.removeItem(n)})}static initializeSessionTracking(){if(!this.hasConsentFor("analytics"))return"no-consent";let t=sessionStorage.getItem(this.SESSION_STORAGE_KEY);return t||(t="sess_"+Date.now()+"_"+Math.random().toString(36).substr(2,9),sessionStorage.setItem(this.SESSION_STORAGE_KEY,t)),t}static getSessionId(){return this.hasConsentFor("analytics")?sessionStorage.getItem(this.SESSION_STORAGE_KEY):null}static needsConsentBanner(){if(this.hasGlobalPrivacyControl())return!1;const t=this.getConsentPreferences(),n=Date.now()-720*60*60*1e3,r=!t.timestamp||t.timestamp<n;return console.log("ð¡ï¸ needsConsentBanner debug:",{prefs:t,timestamp:t.timestamp,thirtyDaysAgo:n,shouldShow:r,timestampAge:t.timestamp?Date.now()-t.timestamp:"no timestamp"}),r}static hasGlobalPrivacyControl(){return navigator.globalPrivacyControl
39===!0?!0:document.querySelector('meta[name="gpc"]')?.getAttribute("content")==="1"}static hasMarketingConsent(){if(this.hasGlobalPrivacyControl()||navigator.doNotTrack==="1")return!1;const t=this.getConsentPreferences();return t?.marketing===!0&&!t?.optOutSale}}class Ek{STORAGE_KEY="utm_tracking_data";SESSION_KEY="utm_session_data";EXPIRY_HOURS=24;initialize(){this.captureUTMParameters(),this.cleanExpiredData()}captureUTMParameters(){const t=new URLSearchParams(window.location.search),n={},r=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","utm_variant","utm_creative","utm_placement","utm_device","utm_audience","xr","xr_template","xr_test","xr_segment","xr_funnel","fbclid","fb_source","gclid","ref","as"];let s=!1;return r.forEach(o=>{let i=t.get(o);if(i){if(i=decodeURIComponent(i),i.includes("{{")){if(console.warn(`â ï¸ Facebook template detected in ${o}: "${i}"`),(o==="utm_campaign"||o==="utm_content"||o==="utm_term")&&console.log("Full URL UTM params:",{utm_source:t.get("utm_source"),utm_medium:t.get("utm_medium"),utm_campaign:t.get("utm_campaign"),utm_content:t.get("utm_content"),utm_term:t.get("utm_term"),current_url:window.location.href}),o==="utm_campaign"&&i==="{{campaign.id}}"){const a=t.get("utm_content");if(a&&!a.includes("{{")&&/^\d{15,}$/.test(a)&&(console.log(`â
Resolved utm_campaign from utm_content: ${a}`),i=a),i.includes("{{")){const c=t.get("utm_term");c&&!c.includes("{{")&&/^\d{15,}$/.test(c)&&(console.log(`â
Resolved utm_campaign from utm_term: ${c}`),i=c)}}i.includes("{{")&&(console.error(`â Unable to resolve Facebook template: ${o}=${i}`),typeof window<"u"&&window.gtag&&window.gtag("event","utm_template_unresolved",{custom_parameter:o,template_value:i,page_location:window.location.href}))}n[o]=i,s=!0}}),s&&(n.source_url=window.location.href,this.storeUTMData(n)),n}storeUTMData(t){const n=this.getOrCreateSessionId(),s={...this.getStoredUTMData(),...t,timestamp:Date.now(),session_id:n,entry_page:window.location.pathname};localStorage.setItem(this.STORAGE_KEY,JSON.stringify(s)),sessionStorage.setItem(this.SESSION_KEY,JSON.stringify(s)),console.log("ð UTM parameters captured:",t)}getStoredUTMData(){const t=sessionStorage.getItem(this.SESSION_KEY);if(t)try{const r=JSON.parse(t),{timestamp:s,session_id:o,entry_page:i,...a}=r;return a}catch(r){console.error("Error parsing session UTM data:",r)}const n=localStorage.getItem(this.STORAGE_KEY);if(n)try{const r=JSON.parse(n);if(this.isDataValid(r)){const{timestamp:s,session_id:o,entry_page:i,...a}=r;return a}}catch(r){console.error("Error parsing local UTM data:",r)}return{}}getAllTrackingData(){const t=sessionStorage.getItem(this.SESSION_KEY);if(t)try{return JSON.parse(t)}catch(r){console.error("Error parsing session data:",r)}const n=localStorage.getItem(this.STORAGE_KEY);if(n)try{const r=JSON.parse(n);if(this.isDataValid(r))return r}catch(r){console.error("Error parsing local data:",r)}return null}getParameter(t){return this.getStoredUTMData()[t]}getAttributionData(){const t=this.getStoredUTMData();return{source:t.utm_source,campaign:t.utm_campaign,ad_set:t.utm_content,ad:t.utm_term,variant:t.utm_variant,creative:t.utm_creative,custom_ref:t.xr}}buildEventContext(t){const n=this.getStoredUTMData(),r=this.getAllTrackingData();return{...n,...t,session_id:r?.session_id||this.getOrCreateSessionId(),tracking_timestamp:r?.timestamp,entry_page:r?.entry_page}}clearUTMData(){localStorage.removeItem(this.STORAGE_KEY),sessionStorage.removeItem(this.SESSION_KEY)}isDataValid(t){return t.timestamp?(Date.now()-t.timestamp)/(1e3*60*60)<this.EXPIRY_HOURS:!1}cleanExpiredData(){const t=localStorage.getItem(this.STORAGE_KEY);if(t)try{const n=JSON.parse(t);this.isDataValid(n)||(localStorage.removeItem(this.STORAGE_KEY),console.log("ð§¹ Cleaned expired UTM data"))}catch{localStorage.removeItem(this.STORAGE_KEY)}}getOrCreateSessionId(){let t=sessionStorage.getItem("tracking_session_id");return t||(t=`session_${Date.now()}_${Math.random().toString(36).substring(2,9)}`,sessionStorage.setItem("tracking_session_id",t)),t}getUTMString(){const t=this.getStoredUTMData(),n=new URLSearchParams;return Object.entries(t).forEach(([r,s])=>{s&&n.append(r,s)}),n.toString()}appendUTMToUrl(t){const n=this.getStoredUTMData();if(Object.keys(n).length===0)return t;
39try{const r=new URL(t,window.location.origin);return["utm_source","utm_medium","utm_campaign","utm_content","utm_variant","xr"].forEach(o=>{const i=n[o];i&&r.searchParams.set(o,i)}),r.toString()}catch(r){return console.error("Error appending UTM to URL:",r),t}}}const Xo=new Ek;typeof window<"u"&&Xo.initialize();const c0=()=>typeof window<"u"&&typeof window.gtag=="function";class Jo{static instance;pendingEvents=[];MAX_PENDING_EVENTS=50;constructor(){this.pendingEvents=yu(ia)}static getInstance(){return this.instance||(this.instance=new Jo),this.instance}syncConsent(){if(!c0())return;const t=ye.getConsentPreferences();window.gtag("consent","update",{analytics_storage:t.analytics?"granted":"denied",ad_storage:t.marketing?"granted":"denied",ad_user_data:t.marketing?"granted":"denied",ad_personalization:t.marketing?"granted":"denied"})}trackPurchase(t,n){const r=this.buildBaseContext(t);this.fire("purchase",{...r,transaction_id:n.transaction_id,value:n.amount,currency:n.currency??"ILS",payment_method:n.payment_method,items:[this.buildPetitionItem(t,n.amount)]})}trackSignUp(t,n){const r=this.buildBaseContext(t);this.fire("sign_up",{...r,method:"petition_signature",signature_id:n?.signature_id})}trackBeginCheckout(t,n,r){const s=this.buildBaseContext(t);this.fire("begin_checkout",{...s,value:n,currency:r??"ILS",items:[this.buildPetitionItem(t,n)]})}trackSelectAmount(t,n,r){const s=this.buildBaseContext(t);this.fire("select_amount",{...s,value:n,selection_type:r})}trackAddPaymentInfo(t,n,r,s){const o=this.buildBaseContext(t);this.fire("add_payment_info",{...o,value:n,currency:s??"ILS",payment_type:r})}buildPetitionItem(t,n){return{item_id:String(t?.petition_id??t?.id??""),item_name:t?.slug??"",item_category:"Hero Promotion",price:n,quantity:1}}canTrack(){return c0()?ye.hasConsentFor("analytics"):!1}fire(t,n){if(!this.canTrack()){this.enqueue(t,n);return}window.gtag("event",t,n)}enqueue(t,n){this.pendingEvents.length>=this.MAX_PENDING_EVENTS||(this.pendingEvents.push({eventName:t,params:n,originalTimestamp:Date.now()}),Yo(ia,this.pendingEvents))}flushPending(){if(!this.pendingEvents.length||!this.canTrack())return;const t=Date.now()-Cm,n=this.pendingEvents.filter(r=>r.originalTimestamp>=t);this.pendingEvents=[],Yo(ia,this.pendingEvents),n.forEach(({eventName:r,params:s})=>{window.gtag("event",r,s)})}buildBaseContext(t){const n=Xo.getStoredUTMData(),r={petition_id:t?.petition_id??t?.id,petition_slug:t?.slug,ab_variant:n.xr??sessionStorage.getItem("ab_variant")??void 0,ab_segment:n.xr_segment,pricing_template_id:this.getPricingTemplateId(n.xr_template),session_id:this.getSessionId(),language:t?.language??document.documentElement.lang??"en"};return this.stripUndefined(r)}getPricingTemplateId(t){return t||(sessionStorage.getItem("pricing_template_id")??sessionStorage.getItem("current_pricing_template")??void 0)}getSessionId(){const t=sessionStorage.getItem("session_id");if(t)return t;const n=typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`;return sessionStorage.setItem("session_id",n),n}stripUndefined(t){return Object.keys(t).forEach(n=>{t[n]===void 0&&delete t[n]}),t}}class ys{static loadedScripts=new Set;static loadGoogleAnalytics(t){if(!ye.hasConsentFor("analytics")||ye.hasUserOptedOut()){console.log("Google Analytics blocked - no analytics consent");return}if(this.loadedScripts.has("ga")){console.log("Google Analytics already loaded");return}const n=document.createElement("script");n.src=`https://www.googletagmanager.com/gtag/js?id=${t}`,n.async=!0,n.onload=()=>{window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("consent","default",{analytics_storage:"denied",ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",wait_for_update:500}),window.gtag("js",new Date);const r=window.location.hostname.includes("staging");window.gtag("config",t,{anonymize_ip:!0,allow_google_signals:!1,allow_ad_personalization_signals:!1,debug_mode:r,transport_type:"beacon"}),Jo.getInstance().syncConsent(),Jo.getInstance().flushPending(),console.log(`Google Analytics loaded with privacy configuration${r?" (debug_mode ON)":""}`)},document.head.appendChild(n),this.loadedScripts.add("ga")}static loadFacebookPixel(t){}static trackEvent(t,n,r){if(ye.hasUserOptedOut()){console.log(`Event tracking blocked - user opted out: ${n}`);return}t==="analytics"&&ye.hasConsentFor("analytics")&&this.trackAnalyticsEvent(n,r),t==="marketing"&&ye.hasConsentFor("marketing")&&this.trackMarketingEvent(n,r)}static trackAnalyticsEvent(t,n){window.gtag&&(window.gtag("event",t,{...n,session_id:ye.getSessionId(),page_location:window.location.href,page_title:document.title}),console.log(`Analytics event tracked: ${t}`,n))}static trackMarketingEvent(t,n){if(window.fbq){const s={petition_signed:"CompleteRegistration",petition_viewed:"ViewContent",petition_shared:"Share",petition_created:"SubmitApplication"}[t]||t;
39window.fbq("track",s,{...n,content_category:"petition",source:"atzuma_co_il"}),console.log(`Marketing event tracked: ${s}`,n)}}static initializeAllScripts(t){console.log("Initializing scripts with consent check..."),t.googleAnalyticsId&&this.loadGoogleAnalytics(t.googleAnalyticsId),t.facebookPixelId&&this.loadFacebookPixel(t.facebookPixelId)}static reinitializeWithNewConsent(t){document.querySelectorAll('script[src*="googletagmanager.com"]').forEach(r=>r.remove()),this.loadedScripts.delete("ga"),this.initializeAllScripts(t)}}const aa=typeof window<"u"&&!1;class Ck{static PRIVACY_CONFIG={CA:{requiresConsent:!0,showDoNotSell:!0,strictMode:!0,law:"CCPA/CPRA",description:"California Consumer Privacy Act & California Privacy Rights Act"},VA:{requiresConsent:!0,showDoNotSell:!1,strictMode:!1,law:"VCDPA",description:"Virginia Consumer Data Protection Act"},CT:{requiresConsent:!0,showDoNotSell:!1,strictMode:!1,law:"CTDPA",description:"Connecticut Data Privacy Act"},CO:{requiresConsent:!0,showDoNotSell:!1,strictMode:!1,law:"CPA",description:"Colorado Privacy Act"},UT:{requiresConsent:!0,showDoNotSell:!1,strictMode:!1,law:"UCPA",description:"Utah Consumer Privacy Act"}};static cachedLocation=null;static cacheExpiry=0;static CACHE_DURATION=3600*1e3;static inflightRequest=null;static async shouldShowConsentBanner(){try{console.log("ð Checking consent requirement via backend API...");const t=await this.getUserLocationViaBackend();if(aa||console.log("ð Location detected via backend"),!this.needsConsentCheck())return console.log("â
User already provided consent, no banner needed"),!1;const r=t.requiresConsent;return aa||console.log(`ð¡ï¸ Banner ${r?"REQUIRED":"NOT REQUIRED"} for detected location`),r}catch(t){return console.error("â Error detecting location for privacy compliance:",t),console.log("ð Defaulting to SHOW banner for safety"),!this.needsConsentCheck()}}static async getUserLocationViaBackend(){const t=Date.now();if(this.cachedLocation&&t<this.cacheExpiry){console.log("ð Using cached location");const n=this.getPrivacyRequirements(this.cachedLocation.region);return{...this.cachedLocation,requiresConsent:n.requiresConsent,law:n.law}}return this.inflightRequest?this.inflightRequest:(this.inflightRequest=(async()=>{try{const n=await fetch("/api/v1/geo/location",{method:"GET",headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest"},signal:AbortSignal.timeout(1e4)});if(!n.ok)throw new Error(`Backend geo API failed: ${n.status} ${n.statusText}`);const r=await n.json();if(r.success&&r.location){const s={country:r.location.country_code||"US",region:r.location.region_code||"UNKNOWN",city:r.location.city||"Unknown",ip:r.location.query_ip||"unknown",timezone:r.location.timezone||"Asia/Jerusalem"};return this.cachedLocation=s,this.cacheExpiry=t+this.CACHE_DURATION,aa||console.log("ð Location detected via backend successfully"),{...s,requiresConsent:r.privacy_info.requires_consent,law:r.privacy_info.law_applicable}}throw new Error("Invalid response from backend geo API")}catch(n){console.error("â Backend geo API failed:",n);const r={country:"US",region:"UNKNOWN",city:"Unknown",ip:"unknown",timezone:"Asia/Jerusalem"};return console.log("ð Using unknown location fallback"),{...r,requiresConsent:!0,law:"Unknown"}}finally{this.inflightRequest=null}})(),this.inflightRequest)}static getPrivacyRequirements(t){const n=this.PRIVACY_CONFIG[t.toUpperCase()];return n||{requiresConsent:!1,showDoNotSell:!1,strictMode:!1,law:"None",description:"No specific state privacy law"}}static needsConsentCheck(){try{const t=document.cookie.split(";").find(s=>s.trim().startsWith("ccpa-consent-prefs="));if(!t)return!0;const n=JSON.parse(t.split("=")[1]),r=Date.now()-720*60*60*1e3;return!n.timestamp||n.timestamp<r}catch(t){return console.log("â Error reading consent cookie:",t),!0}}static async getLocationInfo(){try{const t=await this.getUserLocationViaBackend();return`${t.region} - ${t.law}`}catch{return"Unknown location - error detecting"}}static async getPrivacyStatus(){try{const t=await fetch("/api/v1/geo/privacy-status",{method:"GET",headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest"}});if(t.ok)return t.json();throw new Error(`Privacy status API failed: ${t.status}`)}catch(t){return console.error("â Privacy status API failed:",t),null}}static getPrivacyRequiredStates(){return Object.entries(this.PRIVACY_CONFIG).filter(([t,n])=>n.requiresConsent).map(([t,n])=>t)}static clearLocationCache(){this.cachedLocation=null,this.cacheExpiry=0,console.log("ðï¸ Location cache cleared")}static getCachedLocation(){const t=Date.now();return this.cachedLocation&&t<this.cacheExpiry?this.cachedLocation:null}}const wk=({googleAnalyticsId:e,facebookPixelId:t,onConsentChange:n})=>{const[r,s]=O.useState(!1),[o,i]=O.useState(!1),[a,c]=O.useState(!0),[u,l]=O.useState(()=>ye.getConsentPreferences());O.useEffect(()=>{(async()=>{try{c(!0);const _=await Ck.shouldShowConsentBanner(),v=!ye.needsConsentBanner();v&&ys.initializeAllScripts({googleAnalyticsId:e});const S=_&&!v;!_&&!v&&(ye.setConsentPreferences({analytics:!0,marketing:!0,functional:!0,optOutSale:!1,timestamp:Date.now()}),ys.initializeAllScripts({googleAnalyticsId:e,facebookPixelId:t}),window.dispatchEvent(new Event("atzuma:marketing-consent-granted")),n&&n(ye.getConsentPreferences())),s(S)}catch{const v=ye.needsConsentBanner();s(v)}finally{c(!1)}})()},[e,t,n]);const d=()=>{const g={analytics:!0,marketing:!0,functional:!0,optOutSale:!1,timestamp:Date.now()};ye.setConsentPreferences(g),l(g),s(!1),ys.reinitializeWithNewConsent({googleAnalyticsId:e,facebookPixelId:t}),window.dispatchEvent(new Event("atzuma:marketing-consent-granted")),n?.(g)},f=()=>{const g={analytics:!1,marketing:!1,functional:!0,optOutSale:!0,timestamp:Date.now()};ye.setConsentPreferences(g),ye.setUserOptOutStatus(!0),l(g),s(!1),n?.(g)},p=()=>{ye.setConsentPreferences(u),s(!1),i(!1),ys.reinitializeWithNewConsent({googleAnalyticsId:e,facebookPixelId:t}),u.marketing&&window.dispatchEvent(new Event("atzuma:marketing-consent-granted")),n?.(u)},h=(g,_)=>{l(v=>({...v,[g]:_}))};return a||!r?null:m.jsx("div",{className:"fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 shadow-lg z-50",children:m.jsx("div",{className:"max-w-7xl mx-auto p-4",children:o?m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"×××ר×ת פר×××ת"}),m.jsx("button",{onClick:()=>i(!1),className:"text-gray-400 hover:text-gray-600",children:"Ã"})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{className:"flex items-center justify-between p-3 bg-gray-50 rounded-md",children:[m.jsxs("div",{children:[m.jsx("h4",{className:"font-medium text-gray-900",children:"×¢××××ת ×××× ××ת"}),m.jsx("p",{className:"text-sm text-gray-600",children:"× ×רש×ת ××פע×ת ××תר ××תפק×× ×ס×ס×."})]}),m.jsx("div",{className:"text-sm text-gray-500",children:"ת××× ×¤×¢××"})]}),m.jsxs("div",{className:"flex items-center justify-between p-3 border border-gray-200 rounded-md",children:[m.jsxs("div",{children:[m.jsx("h4",{className:"font-medium text-gray-900",children:"×¢××××ת ×× ×××××§×"}),m.jsx("p",{className:"text-sm text-gray-600",children:"×ס×××¢×ת ×× × ××××× ×××¦× ×שת×ש×× ××תר ××× ×שפר ×ת ××××××."})]}),m.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[m.jsx("input",{type:"checkbox",checked:u.analytics,onChange:g=>h("analytics",g.target.checked),className:"sr-only peer"}),m.jsx("div",{className:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600"})]})]}),m.jsxs("div",{className:"flex items-center justify-between p-3 border border-gray-200 rounded-md",children:[m.jsxs("div",{children:[m.jsx("h4",{className:"font-medium text-gray-900",children:"×¢××××ת ש××××§"}),m.jsx("p",{className:"text-sm text-gray-600",children:"×ס×××¢×ת ×× × ××צ×× ×ª×× ×× ××§×פ××× ×× ×¨×××× ×××× ××תר. ××× × × ×××ר×× ××××¢ ×××©× ×צ×××× ×©××ש×××."})]}),m.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[m.jsx("input",{type:"checkbox",checked:u.marketing,onChange:g=>h("marketing",g.target.checked),className:"sr-only peer"}),m.jsx("div",{className:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600"})]})]})]}),m.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-gray-200",children:[m.jsx("button",{onClick:()=>i(!1),className:"px-4 py-2 text-sm border border-gray-300 rounded-md hover:bg-gray-50 transition-colors",children:"×××××"}),m.jsx("button",{onClick:p,className:"px-4 py-2 text-sm bg-blue-600 text-white rounded-md hover:bg-blue-700 transition-colors",children:"ש××רת ×××ר×ת"})]})]}):m.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[m.jsx("div",{className:"flex-1",children:m.jsxs("p",{className:"text-sm text-gray-700",children:["×× × ×שת×ש×× ××¢××××ת ××××× ××××× ××× ×שפר ×ת ×××××ת ×××××©× ×©×× ×××ת××× ×ת ×ת××× ×××קר××. × ××ª× ××××ר ×××× ×¢××××ת ××שר.",m.jsx("br",{}),m.jsx("a",{href:"/privacy-policy",className:"text-blue-600 hover:text-blue-800 underline",target:"_blank",rel:"noopener noreferrer",children:"××××¢ × ×סף ××××× ××ת ×פר×××ת ש×× ×"})]})}),m.jsxs("div",{className:"flex flex-row justify-center sm:justify-start w-full min-w-0 sm:w-auto
39sm:min-w-fit gap-2",children:[m.jsx("button",{onClick:d,className:"px-3 sm:px-4 py-2 text-sm bg-blue-600 text-white rounded-md hover:bg-blue-700 transition-colors whitespace-nowrap",children:"××ש×ר ×××"}),m.jsx("button",{onClick:f,className:"px-3 sm:px-4 py-2 text-sm bg-white text-gray-700 border border-gray-300 rounded-md hover:bg-gray-50 transition-colors whitespace-nowrap",children:"רק ××ר×××ת"}),m.jsx("button",{onClick:()=>i(!0),className:"px-3 sm:px-4 py-2 text-sm bg-transparent text-gray-600 border border-gray-400 rounded-md hover:bg-gray-100 transition-colors whitespace-nowrap",children:"×××ר×ת"})]})]})})})};class Ak{config;constructor(){this.config=this.detectEnvironment()}detectEnvironment(){const t=typeof window<"u"?window.location:null;if(!t)return{apiBaseUrl:"/api/v1",domain:"localhost",isProduction:!1,isDevelopment:!0,protocol:"http",host:"localhost",port:"5173"};const n=t.protocol,r=t.hostname,s=t.port,o=r,i=r==="localhost"||r==="127.0.0.1"||r.includes("dev."),a=!i;let c;return i?c="/api/v1":c=`${n}//${r}/api/v1`,{apiBaseUrl:c,domain:o,isProduction:a,isDevelopment:i,protocol:n,host:r,port:s||void 0}}getApiBaseUrl(){return this.config.apiBaseUrl}getDomain(){return this.config.domain}getBaseUrl(){const{protocol:t,host:n,port:r}=this.config;return r?`${t}//${n}:${r}`:`${t}//${n}`}getApiUrl(t){const n=t.startsWith("/")?t.slice(1):t;return`${this.getApiBaseUrl()}/${n}`}getFullUrl(t=""){const n=t.startsWith("/")?t:`/${t}`;return`${this.getBaseUrl()}${n}`}getPetitionUrl(t,n){let r=this.getFullUrl(`/petition/${t}`);if(n&&Object.keys(n).length>0){const s=new URLSearchParams;Object.entries(n).forEach(([o,i])=>{i&&s.append(o,i)}),r+=`?${s.toString()}`}return r}getOAuthUrl(t){return this.getApiUrl(`auth/${t}`)}getConfig(){return{...this.config}}isDomain(t){return this.config.domain===t}getEnvironmentInfo(){return{...this.config}}}const Ti=new Ak,rD=()=>Ti.getApiBaseUrl(),Dn=e=>Ti.getApiUrl(e),Tk=e=>Ti.getFullUrl(e),kk=e=>Ti.getOAuthUrl(e),Ik=new Set(["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","IS","LI","NO","GB","BR"]),Dk=()=>{const[e,t]=O.useState(!1);return O.useEffect(()=>{const n=sessionStorage.getItem("privacy_region_check");if(n!==null){t(n==="true");return}fetch(Dn("geo/privacy-status")).then(r=>r.json()).then(r=>{const s=r.privacy_requirements?.do_not_sell_required===!0,o=Ik.has(r.location?.country??""),i=s||o;sessionStorage.setItem("privacy_region_check",i?"true":"false"),t(i)}).catch(()=>{sessionStorage.setItem("privacy_region_check","false"),t(!1)})},[]),e?m.jsx("a",{href:"/do-not-sell",style:{color:"#111827",textDecoration:"none",fontSize:"0.875rem",fontWeight:"400",transition:"color 0.2s ease",display:"block",padding:"0.25rem 0"},onMouseEnter:n=>{n.currentTarget.style.color="#10b981"},onMouseLeave:n=>{n.currentTarget.style.color="#111827"},children:"Do Not Sell or Share My Personal Information"}):null},Rk=typeof window<"u"&&!1;class Bk{static COOKIE_NAME="saved_signer_info";static COOKIE_DURATION=365;static saveQuickSignData(t,n){if(localStorage.getItem("auth_token")){console.log("ð« Quick Sign: Not saving - user is authenticated");return}const s=Date.now(),o={signer_name:t,signer_email:n,timestamp:s,expires_at:s+this.COOKIE_DURATION*24*60*60*1e3};try{const i=JSON.stringify(o);this.setCookie(this.COOKIE_NAME,i,this.COOKIE_DURATION),Rk||console.log("â Quick Sign data saved")}catch(i){console.error("â Failed to save Quick Sign data:",i)}}static getQuickSignData(){try{const t=this.getCookie(this.COOKIE_NAME);if(!t)return null;const n=JSON.parse(t);return Date.now()>n.expires_at?(console.log("ð Quick Sign data expired, removing..."),this.deleteQuickSignData(),null):n}catch(t){return console.error("â Failed to read Quick Sign data:",t),this.deleteQuickSignData(),null}}static hasQuickSignData(){return this.getQuickSignData()!==null}static deleteQuickSignData(){try{const n=window.location.protocol==="https:"||window.location.hostname==="atzuma.co.il"||window.location.hostname==="www.atzuma.co.il"?"; Secure":"";document.cookie=`${this.COOKIE_NAME}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; SameSite=Lax${n}`,console.log("â Quick Sign data deleted")}catch(t){console.error("â Failed to delete Quick Sign data:",t)}}static getDisplayInfo(){const t=this.getQuickSignData();if(!t)return null;const r=new Date(t.timestamp).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"});return{name:t.signer_name,email:t.signer_email,savedAt:r}}static clearAll(){this.deleteQuickSignData(),console.log("ðï¸ All Quick Sign data cleared")}static getCookie(t){const n=t+"=",r=document.cookie.split(";");for(let s=0;s<r.length;s++){let o=r[s];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(n)===0)return o.substring(n.length,o.length)}return null}static setCookie(t,n,r){const s=new Date;s.setTime(s.getTime()+r*24*60*60*1e3);const o=window.location.protocol==="https:"||window.location.hostname==="atzuma.co.il"||window.location.hostname==="www.atzuma.co.il",i=o?"; Secure":"",a=`${t}=${n}; expires=${s.toUTCString()}; path=/; SameSite=Lax${i}`;document.cookie=a,console.log(`ðª Cookie set with${o?"":"out"} Secure flag on ${window.location.hostname}`)}}const Fk=({language:e})=>{const t=Bk.hasQuickSignData();return m.jsxs("footer",{style:{background:"#F1F2F7",color:"#1f2937",marginTop:"3rem",borderTop:"2px solid #d1d5db"},children:[m.jsx("style",{children:` 40 @media (min-width: 768px) { 41 .footer-grid { grid-template-columns: repeat(4, 1fr) !important; } 42 } 43 `}),m.jsxs("div",{style:{maxWidth:"1200px",margin:"0 auto",padding:"1.5rem 1rem 2rem"},children:[m.jsxs("div",{className:"footer-grid",style:{display:"grid",gridTemplateColumns:"1fr",gap:"2rem",marginBottom:"2rem"},children:[m.jsxs("div",{children:[m.jsxs("h3",{style:{fontSize:"1.125rem",fontWeight:"600",marginBottom:"1rem",color:"#111827",direction:e==="he"?"rtl":"ltr"},children:["××××ת ",Go.siteName]}),m.jsx("p",{style:{color:"#6b7280",lineHeight:"1.6",marginBottom:"1.5rem",direction:e==="he"?"rtl":"ltr",fontSize:"0.875rem"},children:"×××§×× ×©×× ××××× ××ר××ת פ××שת ×ת ××× ××××× ××. ×× × ×עצ×××× ×§×××ת ××××ר×× ××× ×××××× × ×שר×××× ××× ××§×× ××ר×ת ×ש×××ת, ××שפ××¢ ×¢× ×¡×ר ×××× ×××©× ×ת ×צ×××ת."}),m.jsx("div",{style:{display:"flex",gap:"0.75rem",marginTop:"0.5rem"},children:m.jsx("a",{href:"https://www.facebook.com/atzuma.co.il?locale=he_IL",target:"_blank",rel:"noopener noreferrer","aria-label":"עצ××× on Facebook",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"36px",height:"36px",borderRadius:"50%",background:"#111827",color:"white",textDecoration:"none",transition:"background 0.2s ease, transform 0.2s ease",flexShrink:0},onMouseOver:n=>{n.currentTarget.style.background="#1877f2",n.currentTarget.style.transform="translateY(-2px)"},onMouseOut:n=>{n.currentTarget.style.background="#111827",n.currentTarget.style.transform="translateY(0)"},children:m.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",children:m.jsx("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})})})]}),m.jsxs("div",{children:[m.jsx("h3",{style:{fontSize:"1.125rem",fontWeight:"600",marginBottom:"1rem",color:"#111827",direction:e==="he"?"rtl":"ltr"},children:"×§×ש×ר×× ×××ר××"}),m.jsx("ul",{style:{listStyle:"none",padding:0,margin:0,direction:e==="he"?"rtl":"ltr"},children:m.jsx("li",{style:{marginBottom:"0.5rem"},children:m.jsx("a",{href:"/create",style:{color:"#6b7280",textDecoration:"none",transition:"color 0.2s ease",fontSize:"0.875rem",display:"block",padding:"0.25rem 0"},onMouseOver:n=>n.currentTarget.style.color="#10b981",onMouseOut:n=>n.currentTarget.style.color="#6b7280",children:"×ת××ת עצ×××"})})})]}),m.jsxs("div",{children:[m.jsx("h3",{style:{fontSize:"1.125rem",fontWeight:"600",marginBottom:"1rem",color:"#111827",direction:e==="he"?"rtl":"ltr"},children:"ת××××"}),m.jsx("ul",{style:{listStyle:"none",padding:0,margin:0,direction:e==="he"?"rtl":"ltr"},children:[{en:"Contact Us",he:"צ×ר קשר",href:"/contact"},{en:"Report Content",he:"×××× ×¢× ×ª×××",href:"/report"}].map((n,r)=>m.jsx("li",{style:{marginBottom:"0.5rem"},children:m.jsx("a",{href:n.href,style:{color:"#6b7280",textDecoration:"none",transition:"color 0.2s ease",fontSize:"0.875rem",display:"block",padding:"0.25rem 0"},onMouseOver:s=>s.currentTarget.style.color="#10b981",onMouseOut:s=>s.currentTarget.style.color="#6b7280",children:n.he})},r))})]}),m.jsxs("div",{children:[m.jsx("h3",{style:{fontSize:"1.125rem",fontWeight:"600",marginBottom:"1rem",color:"#111827",direction:e==="he"?"rtl":"ltr"},children:"×שפ×× ××¢×××× ××"}),m.jsxs("ul",{style:{listStyle:"none",padding:0,margin:0,marginBottom:"0",direction:e==="he"?"rtl":"ltr"},children:[[{en:"Privacy Policy",he:"×××× ××ת פר×××ת",href:"/privacy-policy"},{en:"Terms of use",he:"×ª× ×× ×©×××ש",href:"/terms-of-service"}].map((n,r)=>m.jsx("li",{style:{marginBottom:"0.5rem"},children:m.jsx("a",{href:n.href||"#",style:{color:"#6b7280",textDecoration:"none",transition:"color 0.2s ease",fontSize:"0.875rem",display:"block",padding:"0.25rem 0"},onMouseOver:s=>s.currentTarget.style.color="#10b981",onMouseOut:s=>s.currentTarget.style.color="#6b7280",children:n.he})},r)),m.jsx("li",{style:{marginBottom:"0.5rem"},children:m.jsx(Dk,{})}),t&&m.jsx("li",{style:{marginBottom:"0"},children:m.jsxs("a",{href:"/quick-sign-settings",style:{color:"#111827",textDecoration:"none",transition:"color 0.2s ease",fontSize:"0.875rem",display:"flex",alignItems:"center",gap:"0.5rem",padding:"0.25rem 0"},onMouseOver:n=>n.currentTarget.style.color="#10b981",onMouseOut:n=>n.currentTarget.style.color="#111827",children:[m.jsx("span",{style:{fontSize:"1rem"},children:"ð"}),"× ×××× ××××¢ ×ת××× ×©××ר"]})})]})]})]}),m.jsxs("div",{style:{marginTop:"0.75rem",paddingTop:"0.75rem",borderTop:"1px solid #e5e7eb",display:"flex",flexDirection:"column",alignItems:"flex-start",ga
43p:"0.25rem"},children:[m.jsxs("span",{style:{fontSize:"0.8rem",color:"#6b7280"},children:["© 2026 ",Go.siteName,". ×× ××××××ת ש××ר×ת."]}),m.jsx("span",{style:{fontSize:"0.8rem",color:"#6b7280",display:"flex",alignItems:"center",gap:"0.375rem"},children:"â¿ Accessibility friendly"})]})]})]})},Te=[];for(let e=0;e<256;++e)Te.push((e+256).toString(16).slice(1));function Ok(e,t=0){return(Te[e[t+0]]+Te[e[t+1]]+Te[e[t+2]]+Te[e[t+3]]+"-"+Te[e[t+4]]+Te[e[t+5]]+"-"+Te[e[t+6]]+Te[e[t+7]]+"-"+Te[e[t+8]]+Te[e[t+9]]+"-"+Te[e[t+10]]+Te[e[t+11]]+Te[e[t+12]]+Te[e[t+13]]+Te[e[t+14]]+Te[e[t+15]]).toLowerCase()}let ca;const Pk=new Uint8Array(16);function Nk(){if(!ca){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ca=crypto.getRandomValues.bind(crypto)}return ca(Pk)}const Mk=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),u0={randomUUID:Mk};function Lk(e,t,n){e=e||{};const r=e.random??e.rng?.()??Nk();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Ok(r)}function Os(e,t,n){return u0.randomUUID&&!e?u0.randomUUID():Lk(e)}class Ps{static initialized=!1;static pixelId=null;static generateEventId(){return Os()}static getFbp(){const t=document.cookie.split("; ").find(n=>n.startsWith("_fbp="));return t?t.split("=")[1]:null}static getFbc(){const t=document.cookie.split("; ").find(s=>s.startsWith("_fbc="));if(t){const s=t.split("=")[1];if(s)return decodeURIComponent(s)}const r=new URLSearchParams(window.location.search).get("fbclid")||localStorage.getItem("fbclid");return r?`fb.1.${Date.now()}.${r}`:null}static init(t){if(!t||typeof t!="string")return console.error("Facebook Pixel: Invalid pixel ID provided"),!1;if(typeof window.fbq=="function")return this.initialized=!0,this.pixelId=t,!0;this.pixelId=t;try{return this.loadFacebookScript(),this.initialized=!0,!0}catch(n){return console.error("Facebook Pixel initialization failed:",n),!1}}static loadFacebookScript(){if(console.warn("ð Facebook Pixel is already loaded in index.html"),typeof window.fbq!="function"){console.error("â Facebook Pixel script in index.html failed to load fbq function");return}console.log("â
Facebook Pixel already initialized in index.html")}static track(t,n={},r){if(typeof window.fbq!="function")return console.log("Facebook Pixel not loaded - skipping event"),null;const s=r?.eventID||this.generateEventId(),o=r?.userData||null,i=this.enrichParameters(n);try{o&&Object.keys(o).length>0?(console.log(`ð Tracking ${t} with Advanced Matching:`,{parameters:i,userDataFields:Object.keys(o),eventID:s}),window.fbq("track",t,i,{external_id:i.user_id,em:o.em?.[0],fn:o.fn?.[0],ln:o.ln?.[0],ph:o.ph?.[0],ge:o.ge?.[0],db:o.db?.[0],ct:o.ct?.[0],st:o.st?.[0],zp:o.zp?.[0],country:o.country?.[0],eventID:s,transport:"beacon"}),console.log(`ð Tracking ${t} with eventID (beacon):`,s)):(window.fbq("track",t,i,{eventID:s,transport:"beacon"}),console.log(`ð Tracking ${t} with eventID (beacon):`,s))}catch(a){return console.error("Facebook tracking error:",a),null}return s}static trackCustom(t,n={},r){if(typeof window.fbq!="function")return null;const s=r?.eventID||this.generateEventId(),o=r?.userData||null,i=this.enrichParameters(n);try{o&&Object.keys(o).length>0?(console.log(`ð Custom event ${t} with Advanced Matching and eventID:`,s),window.fbq("trackCustom",t,i,{external_id:i.user_id,em:o.em?.[0],fn:o.fn?.[0],ln:o.ln?.[0],ph:o.ph?.[0],ge:o.ge?.[0],db:o.db?.[0],ct:o.ct?.[0],st:o.st?.[0],zp:o.zp?.[0],country:o.country?.[0],eventID:s})):(console.log(`ð Custom event ${t} with eventID:`,s),window.fbq("trackCustom",t,i,{eventID:s}))}catch(a){return console.error("Facebook custom tracking error:",a),null}return s}static enrichParameters(t){const n={...t},r=sessionStorage.getItem("utm_variant");r&&!n.utm_variant&&(n.utm_variant=r);const s=sessionStorage.getItem("pricing_template_id");s&&!n.pricing_template_id&&(n.pricing_template_id=s);const o=document.documentElement.lang||"en";return n.language||(n.language=o),n.event_source_url||(n.event_source_url=window.location.href),n}static getEnhancedMatchingData(){return{fbp:this.getFbp(),fbc:this.getFbc()}}static getStatus(){return{initialized:this.initialized,pixelId:this.pixelId,hasPixel:!!window.fbq}}static isLoaded(){return!!window.fbq}}typeof window<"u"&&(window.FacebookPixelManager=Ps);var Ns={exports:{}};function $k(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ms={exports:{}};const jk={},Uk=Object.freeze(Object.defineProperty({__proto__:null,default:jk},Symbol.toStringTag,{value:"Module"})),Hk=rg(Uk);var zk=Ms.exports,l0;function se(){return l0||(l0=1,function(e,t){(function(n,r){e.exports=r()})(zk,function(){var n=n||function(r,s){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof Di<"u"&&Di.crypto&&(o=Di.crypto),!o&&typeof $k=="function")try{o=Hk}catch{}var i=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function S(){}return function(x){var b;return S.prototype=x,b=new S,S.prototype=null,b}}(),c={},u=c.lib={},l=u.Base=function(){return{extend:function(S){var x=a(this);return S&&x.mixIn(S),(!x.hasOwnProperty("init")||this.init===x.init)&&(x.init=function(){x.$super.init.a
43pply(this,arguments)}),x.init.prototype=x,x.$super=this,x},create:function(){var S=this.extend();return S.init.apply(S,arguments),S},init:function(){},mixIn:function(S){for(var x in S)S.hasOwnProperty(x)&&(this[x]=S[x]);S.hasOwnProperty("toString")&&(this.toString=S.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=u.WordArray=l.extend({init:function(S,x){S=this.words=S||[],x!=s?this.sigBytes=x:this.sigBytes=S.length*4},toString:function(S){return(S||p).stringify(this)},concat:function(S){var x=this.words,b=S.words,T=this.sigBytes,w=S.sigBytes;if(this.clamp(),T%4)for(var y=0;y<w;y++){var C=b[y>>>2]>>>24-y%4*8&255;x[T+y>>>2]|=C<<24-(T+y)%4*8}else for(var P=0;P<w;P+=4)x[T+P>>>2]=b[P>>>2];return this.sigBytes+=w,this},clamp:function(){var S=this.words,x=this.sigBytes;S[x>>>2]&=4294967295<<32-x%4*8,S.length=r.ceil(x/4)},clone:function(){var S=l.clone.call(this);return S.words=this.words.slice(0),S},random:function(S){for(var x=[],b=0;b<S;b+=4)x.push(i());return new d.init(x,S)}}),f=c.enc={},p=f.Hex={stringify:function(S){for(var x=S.words,b=S.sigBytes,T=[],w=0;w<b;w++){var y=x[w>>>2]>>>24-w%4*8&255;T.push((y>>>4).toString(16)),T.push((y&15).toString(16))}return T.join("")},parse:function(S){for(var x=S.length,b=[],T=0;T<x;T+=2)b[T>>>3]|=parseInt(S.substr(T,2),16)<<24-T%8*4;return new d.init(b,x/2)}},h=f.Latin1={stringify:function(S){for(var x=S.words,b=S.sigBytes,T=[],w=0;w<b;w++){var y=x[w>>>2]>>>24-w%4*8&255;T.push(String.fromCharCode(y))}return T.join("")},parse:function(S){for(var x=S.length,b=[],T=0;T<x;T++)b[T>>>2]|=(S.charCodeAt(T)&255)<<24-T%4*8;return new d.init(b,x)}},g=f.Utf8={stringify:function(S){try{return decodeURIComponent(escape(h.stringify(S)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(S){return h.parse(unescape(encodeURIComponent(S)))}},_=u.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(S){typeof S=="string"&&(S=g.parse(S)),this._data.concat(S),this._nDataBytes+=S.sigBytes},_process:function(S){var x,b=this._data,T=b.words,w=b.sigBytes,y=this.blockSize,C=y*4,P=w/C;S?P=r.ceil(P):P=r.max((P|0)-this._minBufferSize,0);var E=P*y,A=r.min(E*4,w);if(E){for(var k=0;k<E;k+=y)this._doProcessBlock(T,k);x=T.splice(0,E),b.sigBytes-=A}return new d.init(x,A)},clone:function(){var S=l.clone.call(this);return S._data=this._data.clone(),S},_minBufferSize:0});u.Hasher=_.extend({cfg:l.extend(),init:function(S){this.cfg=this.cfg.extend(S),this.reset()},reset:function(){_.reset.call(this),this._doReset()},update:function(S){return this._append(S),this._process(),this},finalize:function(S){S&&this._append(S);var x=this._doFinalize();return x},blockSize:16,_createHelper:function(S){return function(x,b){return new S.init(b).finalize(x)}},_createHmacHelper:function(S){return function(x,b){return new v.HMAC.init(S,b).finalize(x)}}});var v=c.algo={};return c}(Math);return n})}(Ms)),Ms.exports}var Ls={exports:{}},Wk=Ls.exports,d0;function ki(){return d0||(d0=1,function(e,t){(function(n,r){e.exports=r(se())})(Wk,function(n){return function(r){var s=n,o=s.lib,i=o.Base,a=o.WordArray,c=s.x64={};c.Word=i.extend({init:function(u,l){this.high=u,this.low=l}}),c.WordArray=i.extend({init:function(u,l){u=this.words=u||[],l!=r?this.sigBytes=l:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,l=u.length,d=[],f=0;f<l;f++){var p=u[f];d.push(p.high),d.push(p.low)}return a.create(d,this.sigBytes)},clone:function(){for(var u=i.clone.call(this),l=u.words=this.words.slice(0),d=l.length,f=0;f<d;f++)l[f]=l[f].clone();return u}})}(),n})}(Ls)),Ls.exports}var $s={exports:{}},qk=$s.exports,f0;function Vk(){return f0||(f0=1,function(e,t){(function(n,r){e.exports=r(se())})(qk,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,s=r.lib,o=s.WordArray,i=o.init,a=o.init=function(c){if(c instanceof ArrayBuffer&&(c=new Uint8Array(c)),(c instanceof Int8Array||typeof Uint8ClampedArray<"u"&&c instanceof Uint8ClampedArray||c instanceof Int16Array||c instanceof Uint16Array||c instanceof Int32Array||c instanceof Uint32Array||c instanceof Float32Array||c instanceof Float64Array)&&(c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength)),c instanceof Uint8Array){for(var u=c.byteLength,l=[],d=0;d<u;d++)l[d>>>2]|=c[d]<<24-d%4*8;i.call(this,l,u)}else i.apply(this,arguments)};a.prototype=o}}(),n.lib.WordArray})}($s)),$s.exports}var js={exports:{}},Gk=js.exports,p0;function Yk(){return p0||(p0=1,function(e,t){(function(n,r){e.exports=r(se())})(Gk,function(n){return function(){var r=n,s=r.lib,o=s.WordArray,i=r.enc;i.Utf16=i.Utf16BE={stringify:function(c){for(var u=c.words,l=c.sigBytes,d=[],f=0;f<l;f+=2){var p=u[f>>>2]>>>16-f%4*8&65535;d.push(String.fromCharCode(p))}return d.join("")},parse:function(c){for(var u=c.length,l=[],d=0;d<u;d++)l[d>>>1]|=c.charCodeAt(d)<<16-d%2*16;return o.create(l,u*2)}},i.Utf16LE={stringify:function(c){for(var u=c.words,l=c.sigBytes,d=[],f=0;f<l;f+=2){var p=a(u[f>>>2]>>>16-f%4*8&65535);d.push(String.fromCharCode(p))}return d.join("")},parse:function(c){for(var u=c.length,l=[],d=0;d<u;d++)l[d>>>1]|=a(c.charCodeAt(d)<<16-d%2*16);return o.create(l,u*2)}};function a(c){return c<<8&4278255360|c>>>8&16711935}}(),n.enc.Utf16})}(js)),js.exports}var Us={exports:{}},Kk=Us.exports,h0;function gn(){return h0||(h0=1,function(e,t){(function(n,r){e.exports=r(se())})(Kk,function(n){return function(){var r=n,s=r.lib,o=s.WordArray,i=r.enc;i.Base64={stringify:function(c){var u=c.words,l=c.sigBytes,d=this._map;c.clamp();for(var f=[],p=0;p<l;p+=3)for(var h=u[p>>>2]>>>24-p%4*8&255,g=u[p+1>>>2]>>>24-(p+1)%4*8&255,_=u[p+2>>>2]>>>24-(p+2)%4*8&255,v=h<<16|g<<8|_,S=0;S<4&&p+S*.75<l;S++)f.push(d.charAt(v>>>6*(3-S)&63));var x=d.charAt(64);if(x)for(;f.length%4;)f.push(x);return f.join("")},parse:function(c){var u=c.length,l=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<l.length;f++)d[l.charCodeAt(f)]=f}var p=l.charAt(64);if(p){var h=c.indexOf(p);h!==-1&&(u=h)}return a(c,u,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
43+/="};function a(c,u,l){for(var d=[],f=0,p=0;p<u;p++)if(p%4){var h=l[c.charCodeAt(p-1)]<<p%4*2,g=l[c.charCodeAt(p)]>>>6-p%4*2,_=h|g;d[f>>>2]|=_<<24-f%4*8,f++}return o.create(d,f)}}(),n.enc.Base64})}(Us)),Us.exports}var Hs={exports:{}},Xk=Hs.exports,m0;function Jk(){return m0||(m0=1,function(e,t){(function(n,r){e.exports=r(se())})(Xk,function(n){return function(){var r=n,s=r.lib,o=s.WordArray,i=r.enc;i.Base64url={stringify:function(c,u){u===void 0&&(u=!0);var l=c.words,d=c.sigBytes,f=u?this._safe_map:this._map;c.clamp();for(var p=[],h=0;h<d;h+=3)for(var g=l[h>>>2]>>>24-h%4*8&255,_=l[h+1>>>2]>>>24-(h+1)%4*8&255,v=l[h+2>>>2]>>>24-(h+2)%4*8&255,S=g<<16|_<<8|v,x=0;x<4&&h+x*.75<d;x++)p.push(f.charAt(S>>>6*(3-x)&63));var b=f.charAt(64);if(b)for(;p.length%4;)p.push(b);return p.join("")},parse:function(c,u){u===void 0&&(u=!0);var l=c.length,d=u?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var p=0;p<d.length;p++)f[d.charCodeAt(p)]=p}var h=d.charAt(64);if(h){var g=c.indexOf(h);g!==-1&&(l=g)}return a(c,l,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(c,u,l){for(var d=[],f=0,p=0;p<u;p++)if(p%4){var h=l[c.charCodeAt(p-1)]<<p%4*2,g=l[c.charCodeAt(p)]>>>6-p%4*2,_=h|g;d[f>>>2]|=_<<24-f%4*8,f++}return o.create(d,f)}}(),n.enc.Base64url})}(Hs)),Hs.exports}var zs={exports:{}},Qk=zs.exports,g0;function xn(){return g0||(g0=1,function(e,t){(function(n,r){e.exports=r(se())})(Qk,function(n){return function(r){var s=n,o=s.lib,i=o.WordArray,a=o.Hasher,c=s.algo,u=[];(function(){for(var g=0;g<64;g++)u[g]=r.abs(r.sin(g+1))*4294967296|0})();var l=c.MD5=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,_){for(var v=0;v<16;v++){var S=_+v,x=g[S];g[S]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360}var b=this._hash.words,T=g[_+0],w=g[_+1],y=g[_+2],C=g[_+3],P=g[_+4],E=g[_+5],A=g[_+6],k=g[_+7],D=g[_+8],M=g[_+9],j=g[_+10],U=g[_+11],V=g[_+12],N=g[_+13],q=g[_+14],L=g[_+15],I=b[0],R=b[1],B=b[2],F=b[3];I=d(I,R,B,F,T,7,u[0]),F=d(F,I,R,B,w,12,u[1]),B=d(B,F,I,R,y,17,u[2]),R=d(R,B,F,I,C,22,u[3]),I=d(I,R,B,F,P,7,u[4]),F=d(F,I,R,B,E,12,u[5]),B=d(B,F,I,R,A,17,u[6]),R=d(R,B,F,I,k,22,u[7]),I=d(I,R,B,F,D,7,u[8]),F=d(F,I,R,B,M,12,u[9]),B=d(B,F,I,R,j,17,u[10]),R=d(R,B,F,I,U,22,u[11]),I=d(I,R,B,F,V,7,u[12]),F=d(F,I,R,B,N,12,u[13]),B=d(B,F,I,R,q,17,u[14]),R=d(R,B,F,I,L,22,u[15]),I=f(I,R,B,F,w,5,u[16]),F=f(F,I,R,B,A,9,u[17]),B=f(B,F,I,R,U,14,u[18]),R=f(R,B,F,I,T,20,u[19]),I=f(I,R,B,F,E,5,u[20]),F=f(F,I,R,B,j,9,u[21]),B=f(B,F,I,R,L,14,u[22]),R=f(R,B,F,I,P,20,u[23]),I=f(I,R,B,F,M,5,u[24]),F=f(F,I,R,B,q,9,u[25]),B=f(B,F,I,R,C,14,u[26]),R=f(R,B,F,I,D,20,u[27]),I=f(I,R,B,F,N,5,u[28]),F=f(F,I,R,B,y,9,u[29]),B=f(B,F,I,R,k,14,u[30]),R=f(R,B,F,I,V,20,u[31]),I=p(I,R,B,F,E,4,u[32]),F=p(F,I,R,B,D,11,u[33]),B=p(B,F,I,R,U,16,u[34]),R=p(R,B,F,I,q,23,u[35]),I=p(I,R,B,F,w,4,u[36]),F=p(F,I,R,B,P,11,u[37]),B=p(B,F,I,R,k,16,u[38]),R=p(R,B,F,I,j,23,u[39]),I=p(I,R,B,F,N,4,u[40]),F=p(F,I,R,B,T,11,u[41]),B=p(B,F,I,R,C,16,u[42]),R=p(R,B,F,I,A,23,u[43]),I=p(I,R,B,F,M,4,u[44]),F=p(F,I,R,B,V,11,u[45]),B=p(B,F,I,R,L,16,u[46]),R=p(R,B,F,I,y,23,u[47]),I=h(I,R,B,F,T,6,u[48]),F=h(F,I,R,B,k,10,u[49]),B=h(B,F,I,R,q,15,u[50]),R=h(R,B,F,I,E,21,u[51]),I=h(I,R,B,F,V,6,u[52]),F=h(F,I,R,B,C,10,u[53]),B=h(B,F,I,R,j,15,u[54]),R=h(R,B,F,I,w,21,u[55]),I=h(I,R,B,F,D,6,u[56]),F=h(F,I,R,B,L,10,u[57]),B=h(B,F,I,R,A,15,u[58]),R=h(R,B,F,I,N,21,u[59]),I=h(I,R,B,F,P,6,u[60]),F=h(F,I,R,B,U,10,u[61]),B=h(B,F,I,R,y,15,u[62]),R=h(R,B,F,I,M,21,u[63]),b[0]=b[0]+I|0,b[1]=b[1]+R|0,b[2]=b[2]+B|0,b[3]=b[3]+F|0},_doFinalize:function(){var g=this._data,_=g.words,v=this._nDataBytes*8,S=g.sigBytes*8;_[S>>>5]|=128<<24-S%32;var x=r.floor(v/4294967296),b=v;_[(S+64>>>9<<4)+15]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,_[(S+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,g.sigBytes=(_.length+1)*4,this._process();for(var T=this._hash,w=T.words,y=0;y<4;y++){var C=w[y];w[y]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}return T},clone:function(){var g=a.clone.call(this);return g._hash=this._hash.clone(),g}});function d(g,_,v,S,x,b,T){var w=g+(_&v|~_&S)+x+T;return(w<<b|w>>>32-b)+_}function f(g,_,v,S,x,b,T){var w=g+(_&S|v&~S)+x+T;return(w<<b|w>>>32-b)+_}function p(g,_,v,S,x,b,T){var w=g+(_^v^S)+x+T;return(w<<b|w>>>32-b)+_}function h(g,_,v,S,x,b,T){var w=g+(v^(_|~S))+x+T;return(w<<b|w>>>32-b)+_}s.MD5=a._createHelper(l),s.HmacMD5=a._createHmacHelper(l)}(Math),n.MD5})}(zs)),zs.exports}var Ws={exports:{}},Zk=Ws.exports,x0;function km(){return x0||(x0=1,function(e,t){(function(n,r){e.exports=r(se())})(Zk,function(n){return function(){var r=n,s=r.lib,o=s.WordArray,i=s.Hasher,a=r.algo,c=[],u=a.SHA1=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,d){for(var f=this._hash.words,p=f[0],h=f[1],g=f[2],_=f[3],v=f[4],S=0;S<80;S++){if(S<16)c[S]=l[d+S]|0;else{var x=c[S-3]^c[S-8]^c[S-14]^c[S-16];c[S]=x<<1|x>>>31}var b=(p<<5|p>>>27)+v+c[S];S<20?b+=(h&g|~h&_)+1518500249:S<40?b+=(h^g^_)+1859775393:S<60?b+=(h&g|h&_|g&_)-1894007588:b+=(h^g^_)-899497514,v=_,_=g,g=h<<30|h>>>2,h=p,p=b}f[0]=f[0]+p|0,f[1]=f[1]+h|0,f[2]=f[2]+g|0,f[3]=f[3]+_|0,f[4]=f[4]+v|0},_doFinalize:function(){var l=this._data,d=l.words,f=this._nDataBytes*8,p=l.sigBytes*8;return d[p>>>5]|=128<<24-p%32,d[(p+64>>>9<<4)+14]=Math.floor(f/4294967296),d[(p+64>>>9<<4)+15]=f,l.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var l=i.clone.call(this);return l._hash=this._hash.clone(),l}});r.SHA1=i._createHelper(u),r.HmacSHA1=i._createHmacHelper(u)}(),n.SHA1})}(Ws)),Ws.exports}var qs={exports:{}},eI=qs.exports,_0;function bu(){return _0||(_0=1,function(e,t){(function(n,r){e.exports=r(se())})(eI,function(n){return function(r){var s=n,o=s.lib,i=o.WordArray,a=o.Hasher,c=s.algo,u=[],l=[];(function(){function p(v){for(var S=r.sqrt(v),x=2;x<=S;x++)if(!(v%x))return!1;return!0}function h(v){return(v-(v|0))*4294967296|0}for(var g=2,_=0;_<64;)p(g)&&(_<8&&(u[_]=h(r.pow(g,1/2))),l[_]=h(r.pow(g,1/3)),_++),g++})();var d=[],f=c.SHA256=a.extend({_doReset:function(){this._hash=new i.init(u.slice(0))},_doProcessBlock:function(p,h){for(var g=this._hash.words,_=g[0],v=g[1],S=g[2],x=g[3],b=g[4],T=g[5],w=g[6],y=g[7],C=0;C<64;C++){if(C<16)d[C]=p[h+C]|0;else{var P=d[C-15],E=(P<<25|P>>>7)^(P<<14|P>>>18)^P>>>3,A=d[C-2],k=(A<<15|A>>>17)^(A<<13|A>>>19)^A>>>10;d[C]=E+d[C-7]+k+d[C-16]}var D=b&T^~b&w,M=_&v^_&S^v&S,j=(_<<30|_>>>2)^(_<<19|_>>>13)^(_<<10|_>>>22),U=(b<<26|b>>>6)^(b<<21|b>>>11)^(b<<7|b>>>25),V=y+U+D+l[C]+d[C],N=j+M;y=w,w=T,T=b,b=x+V|0,x=S,S=v,v=_,_=V+N|0}g[0]=g[0]+_|0,g[1]=g[1]+v|0,g[2]=g[2]+S|0,g[3]=g[3]+x|0,g[4]=g[4]+b|0,g[5]=g[5]+T|0,g[6]=g[6]+w|0,g[7]=g[7]+y|0},_doFinalize:function(){var p=this._data,h=p.words,g=this._nDataBytes*8,_=p.sigBytes*8;return h[_>>>5]|=128<<24-_%32,h[(_+64>>>9<<4)+14]=r.floor(g/4294967296),h[(_+64>>>9<<4)+15]=g,p.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var p=a.clone.call(this);return p._hash=this._hash.clone(),p}});s.SHA256=a._createHelper(f),s.HmacSHA256=a._createHmacHelper(f)}(Math),n.SHA256})}(qs)),qs.exports}var Vs={exports:{}},tI=Vs.exports,y0;function nI(){return y0||(y0=1,function(e,t){(function(n,r,s){e.exports=r(se(),bu())})(tI,function(n){return function(){var r=n,s=r.lib,o=s.WordArray,i=r.algo,a=i.SHA256,c=i.SHA224=a.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=a._doFinalize.call(this);return u.sigBytes-=4,u}});r.SHA224=a._createHelper(c),r.HmacSHA224=a._createHmacHelper(c)}(),n.SHA224})}(Vs)),Vs.exports}var Gs={exports:{}},rI=Gs.exports,S0;function Im(){return S0||(S0=1,function(e,t){(function(n,r,s){e.exports=r(se(),ki())})(rI,function(n){return function(){var r=n,s=r.lib,o=s.Hasher,i=r.x64,a=i.Word,c=i.WordArray,u=r.algo;function l(){return a.create.apply(a,arguments)}var d=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(18164
4302316,1246189591)],f=[];(function(){for(var h=0;h<80;h++)f[h]=l()})();var p=u.SHA512=o.extend({_doReset:function(){this._hash=new c.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(h,g){for(var _=this._hash.words,v=_[0],S=_[1],x=_[2],b=_[3],T=_[4],w=_[5],y=_[6],C=_[7],P=v.high,E=v.low,A=S.high,k=S.low,D=x.high,M=x.low,j=b.high,U=b.low,V=T.high,N=T.low,q=w.high,L=w.low,I=y.high,R=y.low,B=C.high,F=C.low,ee=P,ie=E,he=A,X=k,nt=D,Ue=M,_n=j,qt=U,Ne=V,be=N,He=q,dt=L,Et=I,rt=R,Vt=B,te=F,ge=0;ge<80;ge++){var K,le,ne=f[ge];if(ge<16)le=ne.high=h[g+ge*2]|0,K=ne.low=h[g+ge*2+1]|0;else{var Ct=f[ge-15],yn=Ct.high,cr=Ct.low,Hm=(yn>>>1|cr<<31)^(yn>>>8|cr<<24)^yn>>>7,wu=(cr>>>1|yn<<31)^(cr>>>8|yn<<24)^(cr>>>7|yn<<25),Au=f[ge-2],Sn=Au.high,ur=Au.low,zm=(Sn>>>19|ur<<13)^(Sn<<3|ur>>>29)^Sn>>>6,Tu=(ur>>>19|Sn<<13)^(ur<<3|Sn>>>29)^(ur>>>
436|Sn<<26),ku=f[ge-7],Wm=ku.high,qm=ku.low,Iu=f[ge-16],Vm=Iu.high,Du=Iu.low;K=wu+qm,le=Hm+Wm+(K>>>0<wu>>>0?1:0),K=K+Tu,le=le+zm+(K>>>0<Tu>>>0?1:0),K=K+Du,le=le+Vm+(K>>>0<Du>>>0?1:0),ne.high=le,ne.low=K}var Gm=Ne&He^~Ne&Et,Ru=be&dt^~be&rt,Ym=ee&he^ee&nt^he&nt,Km=ie&X^ie&Ue^X&Ue,Xm=(ee>>>28|ie<<4)^(ee<<30|ie>>>2)^(ee<<25|ie>>>7),Bu=(ie>>>28|ee<<4)^(ie<<30|ee>>>2)^(ie<<25|ee>>>7),Jm=(Ne>>>14|be<<18)^(Ne>>>18|be<<14)^(Ne<<23|be>>>9),Qm=(be>>>14|Ne<<18)^(be>>>18|Ne<<14)^(be<<23|Ne>>>9),Fu=d[ge],Zm=Fu.high,Ou=Fu.low,Me=te+Qm,wt=Vt+Jm+(Me>>>0<te>>>0?1:0),Me=Me+Ru,wt=wt+Gm+(Me>>>0<Ru>>>0?1:0),Me=Me+Ou,wt=wt+Zm+(Me>>>0<Ou>>>0?1:0),Me=Me+K,wt=wt+le+(Me>>>0<K>>>0?1:0),Pu=Bu+Km,eg=Xm+Ym+(Pu>>>0<Bu>>>0?1:0);Vt=Et,te=rt,Et=He,rt=dt,He=Ne,dt=be,be=qt+Me|0,Ne=_n+wt+(be>>>0<qt>>>0?1:0)|0,_n=nt,qt=Ue,nt=he,Ue=X,he=ee,X=ie,ie=Me+Pu|0,ee=wt+eg+(ie>>>0<Me>>>0?1:0)|0}E=v.low=E+ie,v.high=P+ee+(E>>>0<ie>>>0?1:0),k=S.low=k+X,S.high=A+he+(k>>>0<X>>>0?1:0),M=x.low=M+Ue,x.high=D+nt+(M>>>0<Ue>>>0?1:0),U=b.low=U+qt,b.high=j+_n+(U>>>0<qt>>>0?1:0),N=T.low=N+be,T.high=V+Ne+(N>>>0<be>>>0?1:0),L=w.low=L+dt,w.high=q+He+(L>>>0<dt>>>0?1:0),R=y.low=R+rt,y.high=I+Et+(R>>>0<rt>>>0?1:0),F=C.low=F+te,C.high=B+Vt+(F>>>0<te>>>0?1:0)},_doFinalize:function(){var h=this._data,g=h.words,_=this._nDataBytes*8,v=h.sigBytes*8;g[v>>>5]|=128<<24-v%32,g[(v+128>>>10<<5)+30]=Math.floor(_/4294967296),g[(v+128>>>10<<5)+31]=_,h.sigBytes=g.length*4,this._process();var S=this._hash.toX32();return S},clone:function(){var h=o.clone.call(this);return h._hash=this._hash.clone(),h},blockSize:1024/32});r.SHA512=o._createHelper(p),r.HmacSHA512=o._createHmacHelper(p)}(),n.SHA512})}(Gs)),Gs.exports}var Ys={exports:{}},sI=Ys.exports,v0;function oI(){return v0||(v0=1,function(e,t){(function(n,r,s){e.exports=r(se(),ki(),Im())})(sI,function(n){return function(){var r=n,s=r.x64,o=s.Word,i=s.WordArray,a=r.algo,c=a.SHA512,u=a.SHA384=c.extend({_doReset:function(){this._hash=new i.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var l=c._doFinalize.call(this);return l.sigBytes-=16,l}});r.SHA384=c._createHelper(u),r.HmacSHA384=c._createHmacHelper(u)}(),n.SHA384})}(Ys)),Ys.exports}var Ks={exports:{}},iI=Ks.exports,b0;function aI(){return b0||(b0=1,function(e,t){(function(n,r,s){e.exports=r(se(),ki())})(iI,function(n){return function(r){var s=n,o=s.lib,i=o.WordArray,a=o.Hasher,c=s.x64,u=c.Word,l=s.algo,d=[],f=[],p=[];(function(){for(var _=1,v=0,S=0;S<24;S++){d[_+5*v]=(S+1)*(S+2)/2%64;var x=v%5,b=(2*_+3*v)%5;_=x,v=b}for(var _=0;_<5;_++)for(var v=0;v<5;v++)f[_+5*v]=v+(2*_+3*v)%5*5;for(var T=1,w=0;w<24;w++){for(var y=0,C=0,P=0;P<7;P++){if(T&1){var E=(1<<P)-1;E<32?C^=1<<E:y^=1<<E-32}T&128?T=T<<1^113:T<<=1}p[w]=u.create(y,C)}})();var h=[];(function(){for(var _=0;_<25;_++)h[_]=u.create()})();var g=l.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var _=this._state=[],v=0;v<25;v++)_[v]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(_,v){for(var S=this._state,x=this.blockSize/2,b=0;b<x;b++){var T=_[v+2*b],w=_[v+2*b+1];T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var y=S[b];y.high^=w,y.low^=T}for(var C=0;C<24;C++){for(var P=0;P<5;P++){for(var E=0,A=0,k=0;k<5;k++){var y=S[P+5*k];E^=y.high,A^=y.low}var D=h[P];D.high=E,D.low=A}for(var P=0;P<5;P++)for(var M=h[(P+4)%5],j=h[(P+1)%5],U=j.high,V=j.low,E=M.high^(U<<1|V>>>31),A=M.low^(V<<1|U>>>31),k=0;k<5;k++){var y=S[P+5*k];y.high^=E,y.low^=A}for(var N=1;N<25;N++){var E,A,y=S[N],q=y.high,L=y.low,I=d[N];I<32?(E=q<<I|L>>>32-I,A=L<<I|q>>>32-I):(E=L<<I-32|q>>>64-I,A=q<<I-32|L>>>64-I);var R=h[f[N]];R.high=E,R.low=A}var B=h[0],F=S[0];B.high=F.high,B.low=F.low;for(var P=0;P<5;P++)for(var k=0;k<5;
43k++){var N=P+5*k,y=S[N],ee=h[N],ie=h[(P+1)%5+5*k],he=h[(P+2)%5+5*k];y.high=ee.high^~ie.high&he.high,y.low=ee.low^~ie.low&he.low}var y=S[0],X=p[C];y.high^=X.high,y.low^=X.low}},_doFinalize:function(){var _=this._data,v=_.words;this._nDataBytes*8;var S=_.sigBytes*8,x=this.blockSize*32;v[S>>>5]|=1<<24-S%32,v[(r.ceil((S+1)/x)*x>>>5)-1]|=128,_.sigBytes=v.length*4,this._process();for(var b=this._state,T=this.cfg.outputLength/8,w=T/8,y=[],C=0;C<w;C++){var P=b[C],E=P.high,A=P.low;E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,y.push(A),y.push(E)}return new i.init(y,T)},clone:function(){for(var _=a.clone.call(this),v=_._state=this._state.slice(0),S=0;S<25;S++)v[S]=v[S].clone();return _}});s.SHA3=a._createHelper(g),s.HmacSHA3=a._createHmacHelper(g)}(Math),n.SHA3})}(Ks)),Ks.exports}var Xs={exports:{}},cI=Xs.exports,E0;function uI(){return E0||(E0=1,function(e,t){(function(n,r){e.exports=r(se())})(cI,function(n){/** @preserve 44 (c) 2012 by Cédric Mesnil. All rights reserved. 45 46 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 47 48 - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 49 - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 50 51 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 52 */return function(r){var s=n,o=s.lib,i=o.WordArray,a=o.Hasher,c=s.algo,u=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),p=i.create([0,1518500249,1859775393,2400959708,2840853838]),h=i.create([1352829926,1548603684,1836072691,2053994217,0]),g=c.RIPEMD160=a.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(w,y){for(var C=0;C<16;C++){var P=y+C,E=w[P];w[P]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}var A=this._hash.words,k=p.words,D=h.words,M=u.words,j=l.words,U=d.words,V=f.words,N,q,L,I,R,B,F,ee,ie,he;B=N=A[0],F=q=A[1],ee=L=A[2],ie=I=A[3],he=R=A[4];for(var X,C=0;C<80;C+=1)X=N+w[y+M[C]]|0,C<16?X+=_(q,L,I)+k[0]:C<32?X+=v(q,L,I)+k[1]:C<48?X+=S(q,L,I)+k[2]:C<64?X+=x(q,L,I)+k[3]:X+=b(q,L,I)+k[4],X=X|0,X=T(X,U[C]),X=X+R|0,N=R,R=I,I=T(L,10),L=q,q=X,X=B+w[y+j[C]]|0,C<16?X+=b(F,ee,ie)+D[0]:C<32?X+=x(F,ee,ie)+D[1]:C<48?X+=S(F,ee,ie)+D[2]:C<64?X+=v(F,ee,ie)+D[3]:X+=_(F,ee,ie)+D[4],X=X|0,X=T(X,V[C]),X=X+he|0,B=he,he=ie,ie=T(ee,10),ee=F,F=X;X=A[1]+L+ie|0,A[1]=A[2]+I+he|0,A[2]=A[3]+R+B|0,A[3]=A[4]+N+F|0,A[4]=A[0]+q+ee|0,A[0]=X},_doFinalize:function(){var w=this._data,y=w.words,C=this._nDataBytes*8,P=w.sigBytes*8;y[P>>>5]|=128<<24-P%32,y[(P+64>>>9<<4)+14]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,w.sigBytes=(y.length+1)*4,this._process();for(var E=this._hash,A=E.words,k=0;k<5;k++){var D=A[k];A[k]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return E},clone:function(){var w=a.clone.call(this);return w._hash=this._hash.clone(),w}});function _(w,y,C){return w^y^C}function v(w,y,C){return w&y|~w&C}function S(w,y,C){return(w|~y)^C}function x(w,y,C){return w&C|y&~C}function b(w,y,C){return w^(y|~C)}function T(w,y){return w<<y|w>>>32-y}s.RIPEMD160=a._createHelper(g),s.HmacRIPEMD160=a._createHmacHelper(g)}(),n.RIPEMD160})}(Xs)),Xs.exports}
52var Js={exports:{}},lI=Js.exports,C0;function Eu(){return C0||(C0=1,function(e,t){(function(n,r){e.exports=r(se())})(lI,function(n){(function(){var r=n,s=r.lib,o=s.Base,i=r.enc,a=i.Utf8,c=r.algo;c.HMAC=o.extend({init:function(u,l){u=this._hasher=new u.init,typeof l=="string"&&(l=a.parse(l));var d=u.blockSize,f=d*4;l.sigBytes>f&&(l=u.finalize(l)),l.clamp();for(var p=this._oKey=l.clone(),h=this._iKey=l.clone(),g=p.words,_=h.words,v=0;v<d;v++)g[v]^=1549556828,_[v]^=909522486;p.sigBytes=h.sigBytes=f,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var l=this._hasher,d=l.finalize(u);l.reset();var f=l.finalize(this._oKey.clone().concat(d));return f}})})()})}(Js)),Js.exports}var Qs={exports:{}},dI=Qs.exports,w0;function fI(){return w0||(w0=1,function(e,t){(function(n,r,s){e.exports=r(se(),bu(),Eu())})(dI,function(n){return function(){var r=n,s=r.lib,o=s.Base,i=s.WordArray,a=r.algo,c=a.SHA256,u=a.HMAC,l=a.PBKDF2=o.extend({cfg:o.extend({keySize:128/32,hasher:c,iterations:25e4}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,f){for(var p=this.cfg,h=u.create(p.hasher,d),g=i.create(),_=i.create([1]),v=g.words,S=_.words,x=p.keySize,b=p.iterations;v.length<x;){var T=h.update(f).finalize(_);h.reset();for(var w=T.words,y=w.length,C=T,P=1;P<b;P++){C=h.finalize(C),h.reset();for(var E=C.words,A=0;A<y;A++)w[A]^=E[A]}g.concat(T),S[0]++}return g.sigBytes=x*4,g}});r.PBKDF2=function(d,f,p){return l.create(p).compute(d,f)}}(),n.PBKDF2})}(Qs)),Qs.exports}var Zs={exports:{}},pI=Zs.exports,A0;function Wt(){return A0||(A0=1,function(e,t){(function(n,r,s){e.exports=r(se(),km(),Eu())})(pI,function(n){return function(){var r=n,s=r.lib,o=s.Base,i=s.WordArray,a=r.algo,c=a.MD5,u=a.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:c,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,d){for(var f,p=this.cfg,h=p.hasher.create(),g=i.create(),_=g.words,v=p.keySize,S=p.iterations;_.length<v;){f&&h.update(f),f=h.update(l).finalize(d),h.reset();for(var x=1;x<S;x++)f=h.finalize(f),h.reset();g.concat(f)}return g.sigBytes=v*4,g}});r.EvpKDF=function(l,d,f){return u.create(f).compute(l,d)}}(),n.EvpKDF})}(Zs)),Zs.exports}var eo={exports:{}},hI=eo.exports,T0;function Ae(){return T0||(T0=1,function(e,t){(function(n,r,s){e.exports=r(se(),Wt())})(hI,function(n){n.lib.Cipher||function(r){var s=n,o=s.lib,i=o.Base,a=o.WordArray,c=o.BufferedBlockAlgorithm,u=s.enc;u.Utf8;var l=u.Base64,d=s.algo,f=d.EvpKDF,p=o.Cipher=c.extend({cfg:i.extend(),createEncryptor:function(E,A){return this.create(this._ENC_XFORM_MODE,E,A)},createDecryptor:function(E,A){return this.create(this._DEC_XFORM_MODE,E,A)},init:function(E,A,k){this.cfg=this.cfg.extend(k),this._xformMode=E,this._key=A,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(E){return this._append(E),this._process()},finalize:function(E){E&&this._append(E);var A=this._doFinalize();return A},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function E(A){return typeof A=="string"?P:w}return function(A){return{encrypt:function(k,D,M){return E(D).encrypt(A,k,D,M)},decrypt:function(k,D,M){return E(D).decrypt(A,k,D,M)}}}}()});o.StreamCipher=p.extend({_doFinalize:function(){var E=this._process(!0);return E},blockSize:1});var h=s.mode={},g=o.BlockCipherMode=i.extend({createEncryptor:function(E,A){return this.Encryptor.create(E,A)},createDecryptor:function(E,A){return this.Decryptor.create(E,A)},init:function(E,A){this._cipher=E,this._iv=A}}),_=h.CBC=function(){var E=g.extend();E.Encryptor=E.extend({processBlock:function(k,D){var M=this._cipher,j=M.blockSize;A.call(this,k,D,j),M.encryptBlock(k,D),this._prevBlock=k.slice(D,D+j)}}),E.Decryptor=E.extend({processBlock:function(k,D){var M=this._cipher,j=M.blockSize,U=k.slice(D,D+j);M.decryptBlock(k,D),A.call(this,k,D,j),this._prevBlock=U}});function A(k,D,M){var j,U=this._iv;U?(j=U,this._iv=r):j=this._prevBlock;for(var V=0;V<M;V++)k[D+V]^=j[V]}return E}(),v=s.pad={},S=v.Pkcs7={pad:function(E,A){for(var k=A*4,D=k-E.sigBytes%k,M=D<<24|D<<16|D<<8|D,j=[],U=0;U<D;U+=4)j.push(M);var V=a.create(j,D);E.concat(V)},unpad:function(E){var A=E.words[E.sigBytes-1>>>2]&255;E.sigBytes-=A}};o.BlockCipher=p.extend({cfg:p.cfg.extend({mode:_,padding:S}),reset:function(){var E;p.reset.call(this);var A=this.cfg,k=A.iv,D=A.mode;this._xformMode==this._ENC_XFORM_MODE?E=D.createEncryptor:(E=D.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==E?this._mode.init(this,k&&k.words):(this._mode=E.call(D,this,k&&k.words),this._mode.__creator=E)},_doProcessBlock:function(E,A){this._mode.processBlock(E,A)},_doFinalize:function(){var E,A=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(A.pad(this._data,this.blockSize),E=this._process(!0)):(E=this._process(!0),A.unpad(E)),E},blockSize:128/32});var x=o.CipherParams=i.extend({init:function(E){this.mixIn(E)},toString:function(E){return(E||this.formatter).stringify(this)}}),b=s.format={},T=b.OpenSSL={stringify:function(E){var A,k=E.ciphertext,D=E.salt;return D?A=a.create([1398893684,1701076831]).concat(D).concat(k):A=k,A.toString(l)},parse:function(E){var A,k=l.parse(E),D=k.words;return D[0]==1398893684&&D[1]==1701076831&&(A=a.create(D.slice(2,4)),D.splice(0,4),k.sigBytes-=16),x.create({ciphertext:k,salt:A})}},w=o.SerializableCipher=i.extend({cfg:i.extend({format:T}),encrypt:function(E,A,k,D){D=this.cfg.extend(D);var M=E.createEncryptor(k,D),j=M.finalize(A),U=M.cfg;return x.create({ciphertext:j,key:k,iv:U.iv,algorithm:E,mode:U.mode,padding:U.padding,blockSize:E.blockSize,formatter:D.format})},decrypt:function(E,A,k,D){D=this.cfg.extend(D),A=this._parse(A,D.format);var M=E.createDecryptor(k,D).finalize(A.ciphertext);return M},_parse:function(E,A){return typeof E=="string"?A.parse(E,this):E}}),y=s.kdf={},C=y.OpenSSL={execute:function(E,A,k,D,M){if(D||(D=a.random(64/8)),M)var j=f.create({keySize:A+k,hasher:M}).compute(E,D);else var j=f.create({keySize:A+k}).compute(E,D);var U=a.create(j.words.slice(A),k*4);return j.sigBytes=A*4,x.create({key:j,iv:U,salt:D})}},P=o.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:C}),encrypt:function(E,A,k,D){D=this.cfg.extend(D);var M=D.kdf.execute(k,E.keySize,E.ivSize,D.salt,D.hasher);D.iv=M.iv;var j=w.encrypt.call(this,E,A,M.key,D);
52return j.mixIn(M),j},decrypt:function(E,A,k,D){D=this.cfg.extend(D),A=this._parse(A,D.format);var M=D.kdf.execute(k,E.keySize,E.ivSize,A.salt,D.hasher);D.iv=M.iv;var j=w.decrypt.call(this,E,A,M.key,D);return j}})}()})}(eo)),eo.exports}var to={exports:{}},mI=to.exports,k0;function gI(){return k0||(k0=1,function(e,t){(function(n,r,s){e.exports=r(se(),Ae())})(mI,function(n){return n.mode.CFB=function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(o,i){var a=this._cipher,c=a.blockSize;s.call(this,o,i,c,a),this._prevBlock=o.slice(i,i+c)}}),r.Decryptor=r.extend({processBlock:function(o,i){var a=this._cipher,c=a.blockSize,u=o.slice(i,i+c);s.call(this,o,i,c,a),this._prevBlock=u}});function s(o,i,a,c){var u,l=this._iv;l?(u=l.slice(0),this._iv=void 0):u=this._prevBlock,c.encryptBlock(u,0);for(var d=0;d<a;d++)o[i+d]^=u[d]}return r}(),n.mode.CFB})}(to)),to.exports}var no={exports:{}},xI=no.exports,I0;function _I(){return I0||(I0=1,function(e,t){(function(n,r,s){e.exports=r(se(),Ae())})(xI,function(n){return n.mode.CTR=function(){var r=n.lib.BlockCipherMode.extend(),s=r.Encryptor=r.extend({processBlock:function(o,i){var a=this._cipher,c=a.blockSize,u=this._iv,l=this._counter;u&&(l=this._counter=u.slice(0),this._iv=void 0);var d=l.slice(0);a.encryptBlock(d,0),l[c-1]=l[c-1]+1|0;for(var f=0;f<c;f++)o[i+f]^=d[f]}});return r.Decryptor=s,r}(),n.mode.CTR})}(no)),no.exports}var ro={exports:{}},yI=ro.exports,D0;function SI(){return D0||(D0=1,function(e,t){(function(n,r,s){e.exports=r(se(),Ae())})(yI,function(n){/** @preserve 53 * Counter block mode compatible with Dr Brian Gladman fileenc.c 54 * derived from CryptoJS.mode.CTR 55 * Jan Hruby [email protected] 56 */return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function s(a){if((a>>24&255)===255){var c=a>>16&255,u=a>>8&255,l=a&255;c===255?(c=0,u===255?(u=0,l===255?l=0:++l):++u):++c,a=0,a+=c<<16,a+=u<<8,a+=l}else a+=1<<24;return a}function o(a){return(a[0]=s(a[0]))===0&&(a[1]=s(a[1])),a}var i=r.Encryptor=r.extend({processBlock:function(a,c){var u=this._cipher,l=u.blockSize,d=this._iv,f=this._counter;d&&(f=this._counter=d.slice(0),this._iv=void 0),o(f);var p=f.slice(0);u.encryptBlock(p,0);for(var h=0;h<l;h++)a[c+h]^=p[h]}});return r.Decryptor=i,r}(),n.mode.CTRGladman})}(ro)),ro.exports}var so={exports:{}},vI=so.exports,R0;function bI(){return R0||(R0=1,function(e,t){(function(n,r,s){e.exports=r(se(),Ae())})(vI,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),s=r.Encryptor=r.extend({processBlock:function(o,i){var a=this._cipher,c=a.blockSize,u=this._iv,l=this._keystream;u&&(l=this._keystream=u.slice(0),this._iv=void 0),a.encryptBlock(l,0);for(var d=0;d<c;d++)o[i+d]^=l[d]}});return r.Decryptor=s,r}(),n.mode.OFB})}(so)),so.exports}var oo={exports:{}},EI=oo.exports,B0;function CI(){return B0||(B0=1,function(e,t){(function(n,r,s){e.exports=r(se(),Ae())})(EI,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(s,o){this._cipher.encryptBlock(s,o)}}),r.Decryptor=r.extend({processBlock:function(s,o){this._cipher.decryptBlock(s,o)}}),r}(),n.mode.ECB})}(oo)),oo.exports}var io={exports:{}},wI=io.exports,F0;function AI(){return F0||(F0=1,function(e,t){(function(n,r,s){e.exports=r(se(),Ae())})(wI,function(n){return n.pad.AnsiX923={pad:function(r,s){var o=r.sigBytes,i=s*4,a=i-o%i,c=o+a-1;r.clamp(),r.words[c>>>2]|=a<<24-c%4*8,r.sigBytes+=a},unpad:function(r){var s=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=s}},n.pad.Ansix923})}(io)),io.exports}var ao={exports:{}},TI=ao.exports,O0;function kI(){return O0||(O0=1,function(e,t){(function(n,r,s){e.exports=r(se(),Ae())})(TI,function(n){return n.pad.Iso10126={pad:function(r,s){var o=s*4,i=o-r.sigBytes%o;r.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(r){var s=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=s}},n.pad.Iso10126})}(ao)),ao.exports}var co={exports:{}},II=co.exports,P0;function DI(){return P0||(P0=1,function(e,t){(function(n,r,s){e.exports=r(se(),Ae())})(II,function(n){return n.pad.Iso97971={pad:function(r,s){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,s)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(co)),co.exports}var uo={exports:{}},RI=uo.exports,N0;function BI(){return N0||(N0=1,function(e,t){(function(n,r,s){e.exports=r(se(),Ae())})(RI,function(n){return n.pad.ZeroPadding={pad:function(r,s){var o=s*4;r.clamp(),r.sigBytes+=o-(r.sigBytes%o||o)},unpad:function(r){for(var s=r.words,o=r.sigBytes-1,o=r.sigBytes-1;o>=0;o--)if(s[o>>>2]>>>24-o%4*8&255){r.sigBytes=o+1;break}}},n.pad.ZeroPadding})}(uo)),uo.exports}var lo={exports:{}},FI=lo.exports,M0;function OI(){return M0||(M0=1,function(e,t){(function(n,r,s){e.exports=r(se(),Ae())})(FI,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(lo)),lo.exports}var fo={exports:{}},PI=fo.exports,L0;function NI(){return L0||(L0=1,function(e,t){(function(n,r,s){e.exports=r(se(),Ae())})(PI,function(n){return function(r){var s=n,o=s.lib,i=o.CipherParams,a=s.enc,c=a.Hex,u=s.format;u.Hex={stringify:function(l){return l.ciphertext.toString(c)},parse:function(l){var d=c.parse(l);return i.create({ciphertext:d})}}}(),n.format.Hex}
56)}(fo)),fo.exports}var po={exports:{}},MI=po.exports,$0;function LI(){return $0||($0=1,function(e,t){(function(n,r,s){e.exports=r(se(),gn(),xn(),Wt(),Ae())})(MI,function(n){return function(){var r=n,s=r.lib,o=s.BlockCipher,i=r.algo,a=[],c=[],u=[],l=[],d=[],f=[],p=[],h=[],g=[],_=[];(function(){for(var x=[],b=0;b<256;b++)b<128?x[b]=b<<1:x[b]=b<<1^283;for(var T=0,w=0,b=0;b<256;b++){var y=w^w<<1^w<<2^w<<3^w<<4;y=y>>>8^y&255^99,a[T]=y,c[y]=T;var C=x[T],P=x[C],E=x[P],A=x[y]*257^y*16843008;u[T]=A<<24|A>>>8,l[T]=A<<16|A>>>16,d[T]=A<<8|A>>>24,f[T]=A;var A=E*16843009^P*65537^C*257^T*16843008;p[y]=A<<24|A>>>8,h[y]=A<<16|A>>>16,g[y]=A<<8|A>>>24,_[y]=A,T?(T=C^x[x[x[E^C]]],w^=x[x[w]]):T=w=1}})();var v=[0,1,2,4,8,16,32,64,128,27,54],S=i.AES=o.extend({_doReset:function(){var x;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var b=this._keyPriorReset=this._key,T=b.words,w=b.sigBytes/4,y=this._nRounds=w+6,C=(y+1)*4,P=this._keySchedule=[],E=0;E<C;E++)E<w?P[E]=T[E]:(x=P[E-1],E%w?w>6&&E%w==4&&(x=a[x>>>24]<<24|a[x>>>16&255]<<16|a[x>>>8&255]<<8|a[x&255]):(x=x<<8|x>>>24,x=a[x>>>24]<<24|a[x>>>16&255]<<16|a[x>>>8&255]<<8|a[x&255],x^=v[E/w|0]<<24),P[E]=P[E-w]^x);for(var A=this._invKeySchedule=[],k=0;k<C;k++){var E=C-k;if(k%4)var x=P[E];else var x=P[E-4];k<4||E<=4?A[k]=x:A[k]=p[a[x>>>24]]^h[a[x>>>16&255]]^g[a[x>>>8&255]]^_[a[x&255]]}}},encryptBlock:function(x,b){this._doCryptBlock(x,b,this._keySchedule,u,l,d,f,a)},decryptBlock:function(x,b){var T=x[b+1];x[b+1]=x[b+3],x[b+3]=T,this._doCryptBlock(x,b,this._invKeySchedule,p,h,g,_,c);var T=x[b+1];x[b+1]=x[b+3],x[b+3]=T},_doCryptBlock:function(x,b,T,w,y,C,P,E){for(var A=this._nRounds,k=x[b]^T[0],D=x[b+1]^T[1],M=x[b+2]^T[2],j=x[b+3]^T[3],U=4,V=1;V<A;V++){var N=w[k>>>24]^y[D>>>16&255]^C[M>>>8&255]^P[j&255]^T[U++],q=w[D>>>24]^y[M>>>16&255]^C[j>>>8&255]^P[k&255]^T[U++],L=w[M>>>24]^y[j>>>16&255]^C[k>>>8&255]^P[D&255]^T[U++],I=w[j>>>24]^y[k>>>16&255]^C[D>>>8&255]^P[M&255]^T[U++];k=N,D=q,M=L,j=I}var N=(E[k>>>24]<<24|E[D>>>16&255]<<16|E[M>>>8&255]<<8|E[j&255])^T[U++],q=(E[D>>>24]<<24|E[M>>>16&255]<<16|E[j>>>8&255]<<8|E[k&255])^T[U++],L=(E[M>>>24]<<24|E[j>>>16&255]<<16|E[k>>>8&255]<<8|E[D&255])^T[U++],I=(E[j>>>24]<<24|E[k>>>16&255]<<16|E[D>>>8&255]<<8|E[M&255])^T[U++];x[b]=N,x[b+1]=q,x[b+2]=L,x[b+3]=I},keySize:256/32});r.AES=o._createHelper(S)}(),n.AES})}(po)),po.exports}var ho={exports:{}},$I=ho.exports,j0;function jI(){return j0||(j0=1,function(e,t){(function(n,r,s){e.exports=r(se(),gn(),xn(),Wt(),Ae())})($I,function(n){return function(){var r=n,s=r.lib,o=s.WordArray,i=s.BlockCipher,a=r.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d
vendor: 4,679 bytes, line 56
56=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:2
vendor: 2,950 bytes, line 56
5662272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],
56f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=a.DES=i.extend({_doReset:function(){for(var v=this._key,S=v.words,x=[],b=0;b<56;b++){var T=c[b]-1;x[b]=S[T>>>5]>>>31-T%32&1}for(var w=this._subKeys=[],y=0;y<16;y++){for(var C=w[y]=[],P=l[y],b=0;b<24;b++)C[b/6|0]|=x[(u[b]-1+P)%28]<<31-b%6,C[4+(b/6|0)]|=x[28+(u[b+24]-1+P)%28]<<31-b%6;C[0]=C[0]<<1|C[0]>>>31;for(var b=1;b<7;b++)C[b]=C[b]>>>(b-1)*4+3;C[7]=C[7]<<5|C[7]>>>27}for(var E=this._invSubKeys=[],b=0;b<16;b++)E[b]=w[15-b]},encryptBlock:function(v,S){this._doCryptBlock(v,S,this._subKeys)},decryptBlock:function(v,S){this._doCryptBlock(v,S,this._invSubKeys)},_doCryptBlock:function(v,S,x){this._lBlock=v[S],this._rBlock=v[S+1],h.call(this,4,252645135),h.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),h.call(this,1,1431655765);for(var b=0;b<16;b++){for(var T=x[b],w=this._lBlock,y=this._rBlock,C=0,P=0;P<8;P++)C|=d[P][((y^T[P])&f[P])>>>0];this._lBlock=y,this._rBlock=w^C}var E=this._lBlock;this._lBlock=this._rBlock,this._rBlock=E,h.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),v[S]=this._lBlock,v[S+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function h(v,S){var x=(this._lBlock>>>v^this._rBlock)&S;this._rBlock^=x,this._lBlock^=x<<v}function g(v,S){var x=(this._rBlock>>>v^this._lBlock)&S;this._lBlock^=x,this._rBlock^=x<<v}r.DES=i._createHelper(p);var _=a.TripleDES=i.extend({_doReset:function(){var v=this._key,S=v.words;if(S.length!==2&&S.length!==4&&S.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var x=S.slice(0,2),b=S.length<4?S.slice(0,2):S.slice(2,4),T=S.length<6?S.slice(0,2):S.slice(4,6);this._des1=p.createEncryptor(o.create(x)),this._des2=p.createEncryptor(o.create(b)),this._des3=p.createEncryptor(o.create(T))},encryptBlock:function(v,S){this._des1.encryptBlock(v,S),this._des2.decryptBlock(v,S),this._des3.encryptBlock(v,S)},decryptBlock:function(v,S){this._des3.decryptBlock(v,S),this._des2.encryptBlock(v,S),this._des1.decryptBlock(v,S)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=i._createHelper(_)}(),n.TripleDES})}(ho)),ho.exports}var mo={exports:{}},UI=mo.exports,U0;function HI(){return U0||(U0=1,function(e,t){(function(n,r,s){e.exports=r(se(),gn(),xn(),Wt(),Ae())})(UI,function(n){return function(){var r=n,s=r.lib,o=s.StreamCipher,i=r.algo,a=i.RC4=o.extend({_doReset:function(){for(var l=this._key,d=l.words,f=l.sigBytes,p=this._S=[],h=0;h<256;h++)p[h]=h;for(var h=0,g=0;h<256;h++){var _=h%f,v=d[_>>>2]>>>24-_%4*8&255;g=(g+p[h]+v)%256;var S=p[h];p[h]=p[g],p[g]=S}this._i=this._j=0},_doProcessBlock:function(l,d){l[d]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var l=this._S,d=this._i,f=this._j,p=0,h=0;h<4;h++){d=(d+1)%256,f=(f+l[d])%256;var g=l[d];l[d]=l[f],l[f]=g,p|=l[(l[d]+l[f])%256]<<24-h*8}return this._i=d,this._j=f,p}r.RC4=o._createHelper(a);var u=i.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var l=this.cfg.drop;l>0;l--)c.call(this)}});r.RC4Drop=o._createHelper(u)}(),n.RC4})}(mo)),mo.exports}var go={exports:{}},zI=go.exports,H0;function WI(){return H0||(H0=1,function(e,t){(function(n,r,s){e.exports=r(se(),gn(),xn(),Wt(),Ae())})(zI,function(n){return function(){var r=n,s=r.lib,o=s.StreamCipher,i=r.algo,a=[],c=[],u=[],l=i.Rabbit=o.extend({_doReset:function(){for(var f=this._key.words,p=this.cfg.iv,h=0;h<4;h++)f[h]=(f[h]<<8|f[h]>>>24)&16711935|(f[h]<<24|f[h]>>>8)&4278255360;var g=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],_=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var h=0;h<4;h++)d.call(this);for(var h=0;h<8;h++)_[h]^=g[h+4&7];if(p){var v=p.words,S=v[0],x=v[1],b=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,T=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,w=b>>>16|T&4294901760,y=T<<16|b&65535;_[0]^=b,_[1]^=w,_[2]^=T,_[3]^=y,_[4]^=b,_[5]^=w,_[6]^=T,_[7]^=y;for(var h=0;h<4;h++)d.call(this)}},_doProcessBlock:function(f,p){var h=this._X;d.call(this),a[0]=h[0]^h[5]>>>16^h[3]<<16,a[1]=h[2]^h[7]>>>16^h[5]<<16,a[2]=h[4]^h[1]>>>16^h[7]<<16,a[3]=h[6]^h[3]>>>16^h[1]<<16;for(var g=0;g<4;g++)a[g]=(a[g]<<8|a[g]>>>24)&16711935|(a[g]<<24|a[g]>>>8)&4278255360,f[p+g]^=a[g]},blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,p=this._C,h=0;h<8;h++)c[h]=p[h];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0<c[0]>>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0<c[1]>>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0<c[2]>>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0<c[3]>>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0<c[4]>>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0<c[5]>>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0<c[6]>>>0?1:0)|0,this._b=p[7]>>>0<c[7]>>>0?1:0;for(var h=0;h<8;h++){var g=f[h]+p[h],_=g&65535,v=g>>>16,S=((_*_>>>17)+_*v>>>
5615)+v*v,x=((g&4294901760)*g|0)+((g&65535)*g|0);u[h]=S^x}f[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,f[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,f[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,f[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,f[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,f[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,f[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,f[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}r.Rabbit=o._createHelper(l)}(),n.Rabbit})}(go)),go.exports}var xo={exports:{}},qI=xo.exports,z0;function VI(){return z0||(z0=1,function(e,t){(function(n,r,s){e.exports=r(se(),gn(),xn(),Wt(),Ae())})(qI,function(n){return function(){var r=n,s=r.lib,o=s.StreamCipher,i=r.algo,a=[],c=[],u=[],l=i.RabbitLegacy=o.extend({_doReset:function(){var f=this._key.words,p=this.cfg.iv,h=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],g=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var _=0;_<4;_++)d.call(this);for(var _=0;_<8;_++)g[_]^=h[_+4&7];if(p){var v=p.words,S=v[0],x=v[1],b=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,T=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,w=b>>>16|T&4294901760,y=T<<16|b&65535;g[0]^=b,g[1]^=w,g[2]^=T,g[3]^=y,g[4]^=b,g[5]^=w,g[6]^=T,g[7]^=y;for(var _=0;_<4;_++)d.call(this)}},_doProcessBlock:function(f,p){var h=this._X;d.call(this),a[0]=h[0]^h[5]>>>16^h[3]<<16,a[1]=h[2]^h[7]>>>16^h[5]<<16,a[2]=h[4]^h[1]>>>16^h[7]<<16,a[3]=h[6]^h[3]>>>16^h[1]<<16;for(var g=0;g<4;g++)a[g]=(a[g]<<8|a[g]>>>24)&16711935|(a[g]<<24|a[g]>>>8)&4278255360,f[p+g]^=a[g]},blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,p=this._C,h=0;h<8;h++)c[h]=p[h];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0<c[0]>>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0<c[1]>>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0<c[2]>>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0<c[3]>>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0<c[4]>>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0<c[5]>>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0<c[6]>>>0?1:0)|0,this._b=p[7]>>>0<c[7]>>>0?1:0;for(var h=0;h<8;h++){var g=f[h]+p[h],_=g&65535,v=g>>>16,S=((_*_>>>17)+_*v>>>15)+v*v,x=((g&4294901760)*g|0)+((g&65535)*g|0);u[h]=S^x}f[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,f[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,f[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,f[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,f[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,f[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,f[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,f[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}r.RabbitLegacy=o._createHelper(l)}(),n.RabbitLegacy})}(xo)),xo.exports}var _o={exports:{}},GI=_o.exports,W0;function YI(){return W0||(W0=1,function(e,t){(function(n,r,s){e.exports=r(se(),gn(),xn(),Wt(),Ae())})(GI,function(n){return function(){var r=n,s=r.lib,o=s.BlockCipher,i=r.algo;const a=16,c=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],u
vendor: 11,038 bytes, line 56
56=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var
56l={pbox:[],sbox:[]};function d(_,v){let S=v>>24&255,x=v>>16&255,b=v>>8&255,T=v&255,w=_.sbox[0][S]+_.sbox[1][x];return w=w^_.sbox[2][b],w=w+_.sbox[3][T],w}function f(_,v,S){let x=v,b=S,T;for(let w=0;w<a;++w)x=x^_.pbox[w],b=d(_,x)^b,T=x,x=b,b=T;return T=x,x=b,b=T,b=b^_.pbox[a],x=x^_.pbox[a+1],{left:x,right:b}}function p(_,v,S){let x=v,b=S,T;for(let w=a+1;w>1;--w)x=x^_.pbox[w],b=d(_,x)^b,T=x,x=b,b=T;return T=x,x=b,b=T,b=b^_.pbox[1],x=x^_.pbox[0],{left:x,right:b}}function h(_,v,S){for(let y=0;y<4;y++){_.sbox[y]=[];for(let C=0;C<256;C++)_.sbox[y][C]=u[y][C]}let x=0;for(let y=0;y<a+2;y++)_.pbox[y]=c[y]^v[x],x++,x>=S&&(x=0);let b=0,T=0,w=0;for(let y=0;y<a+2;y+=2)w=f(_,b,T),b=w.left,T=w.right,_.pbox[y]=b,_.pbox[y+1]=T;for(let y=0;y<4;y++)for(let C=0;C<256;C+=2)w=f(_,b,T),b=w.left,T=w.right,_.sbox[y][C]=b,_.sbox[y][C+1]=T;return!0}var g=i.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var _=this._keyPriorReset=this._key,v=_.words,S=_.sigBytes/4;h(l,v,S)}},encryptBlock:function(_,v){var S=f(l,_[v],_[v+1]);_[v]=S.left,_[v+1]=S.right},decryptBlock:function(_,v){var S=p(l,_[v],_[v+1]);_[v]=S.left,_[v+1]=S.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=o._createHelper(g)}(),n.Blowfish})}(_o)),_o.exports}var KI=Ns.exports,q0;function XI(){return q0||(q0=1,function(e,t){(function(n,r,s){e.exports=r(se(),ki(),Vk(),Yk(),gn(),Jk(),xn(),km(),bu(),nI(),Im(),oI(),aI(),uI(),Eu(),fI(),Wt(),Ae(),gI(),_I(),SI(),bI(),CI(),AI(),kI(),DI(),BI(),OI(),NI(),LI(),jI(),HI(),WI(),VI(),YI())})(KI,function(n){return n})}(Ns)),Ns.exports}var JI=XI();const QI=Qo(JI);function An(e){return QI.SHA256(e.toLowerCase().trim()).toString()}class Ke{static instance;scrollTracked=new Map;contentCompleteTracked=new Set;static viewContentCalled=new Set;pendingCapiEvents=[];static MAX_PENDING_CAPI=50;static PENDING_CAPI_TTL_MS=12e4;static FBC_FORMAT=/^fb\.\d+\.\d{13,}\..+/;constructor(){this.restorePendingCapi()}static getInstance(){return this.instance||(this.instance=new Ke),this.instance}restorePendingCapi(){const t=Date.now(),n=yu(i0,t);n.length!==0&&(this.pendingCapiEvents=n.map(r=>({...r,queuedAt:t})),console.log(`â»ï¸ Restored ${this.pendingCapiEvents.length} pending CAPI event(s)`))}persistPendingCapi(){Yo(i0,this.pendingCapiEvents)}init(t){return t?Ps.init(t):!1}saveDebugLog(t,n){try{const r=JSON.parse(localStorage.getItem("fb_debug_logs")||"[]");r.push({timestamp:new Date().toISOString(),message:t,data:n}),r.length>20&&r.shift(),localStorage.setItem("fb_debug_logs",JSON.stringify(r))}catch(r){console.error("Failed to save debug log:",r)}}trackViewContent(t,n=!1){const r=`${t.petition_id}_${t.slug}`;if(Ke.viewContentCalled.has(r)&&!n)return;Ke.viewContentCalled.add(r),console.log("ð Tracking ViewContent for:",r);const s=this.uuid(),o=this.buildBaseContext(t),i={content_type:"petition",content_name:t.title||t.petition_title,content_category:t.category?.name||t.category_name,content_ids:[t.petition_id],...o};Ge("ViewContent",i,s);try{this.sendServerSideEvent("ViewContent",i,s)}catch(a){console.error("[CAPI] ViewContent error:",a)}this.scrollTracked.set(t.petition_id,{25:!1,50:!1,75:!1,100:!1})}uuid(){return crypto?.randomUUID?.()??`${Date.now()}-${Math.random().toString(36).slice(2)}`}async trackCompleteRegistration(t,n){const r=this.uuid(),s=this.buildBaseContext(t),o={method:"petition_signature",signature_id:n.signature_id??n.id};Ge("CompleteRegistration",{...s,...o},r);try{await this.sendServerSideEvent("CompleteRegistration",{...s,...o},r,n)}catch(a){console.error("[CAPI] send error",a)}const i=new URLSearchParams({fb_ev:"CompleteRegistration",fb_eid:r,petition_id:String(t.id??""),petition_slug:String(t.slug??""),signature_id:String(o.signature_id??""),event_source_url:window.location.href});Number(t.is_approved)===1&&Number(t.is_payment_enabled)===1&&window.location.assign(`/sign/${t.slug}/hero?${i.toString()}`)}trackInitiateCheckout(t,n){const r=this.generateEventId();sessionStorage.setItem("facebook_checkout_event_id",r);const s=this.buildBaseContext(t),o={value:n,currency:"ILS",content_ids:[t.petition_id]};try{Ge("InitiateCheckout",{...s,...o},r),console.log("ð Queued InitiateCheckout with eventID:",r)}catch(i){console.error("â Queue error:",i)}try{this.sendServerSideEvent("InitiateCheckout",{...s,...o},r),console.log("â
CAPI InitiateCheckout sent with eventID:",r)}catch(i){console.error("â CAPI error:",i)}return r}trackAddPaymentInfo(t,n,r){const s=this.uuid(),o=this.buildBaseContext(t),i={value:n,currency:"ILS",payment_method:r};Ge("AddPaymentInfo",{...o,...i},s);try{this.sendServerSideEvent("AddPaymentInfo",{...o,...i}
56,s),console.log("â
CAPI AddPaymentInfo sent with eventID:",s)}catch(a){console.error("â CAPI AddPaymentInfo error:",a)}}async trackPurchase(t,n){const r=sessionStorage.getItem("facebook_checkout_event_id")||this.generateEventId(),s=this.buildBaseContext(t),o={value:n.amount||n.payment_amount,currency:n.currency||"ILS",transaction_id:n.stripe_payment_intent_id||n.payment_intent_id||n.paypal_order_id||n.transaction_id,content_ids:[t.petition_id]};try{Ge("Purchase",{...s,...o},r),console.log("ð Queued Purchase with eventID:",r)}catch(i){console.error("â Queue error:",i)}try{this.sendServerSideEvent("Purchase",{...s,...o},r,n),console.log("â
CAPI Purchase sent with eventID:",r)}catch(i){console.error("â CAPI error:",i)}sessionStorage.removeItem("facebook_checkout_event_id")}async trackPurchaseComplete(t){if(!ye.hasMarketingConsent())return;const n=t.petition||{petition_id:sessionStorage.getItem("last_petition_id"),slug:sessionStorage.getItem("last_petition_slug"),title:sessionStorage.getItem("last_petition_title")},r={amount:t.amount,payment_amount:t.amount,currency:t.currency||"ILS",transaction_id:t.transaction_id,stripe_payment_intent_id:t.stripe_payment_intent_id||t.transaction_id,paypal_order_id:t.paypal_order_id,payer_email:t.payer_email||t.email,payer_name:t.payer_name||t.name,email:t.email||t.payer_email,name:t.name||t.payer_name,country:t.country};await this.trackPurchase(n,r);const s=this.generateEventId(),i={...this.buildBaseContext(n),event_name:"PurchaseComplete",value:t.amount,currency:t.currency||"ILS",transaction_id:t.transaction_id,content_ids:n?.petition_id?[n.petition_id]:[]};Ps.trackCustom("PurchaseComplete",i),this.sendServerSideEvent("PurchaseComplete",i,s,r),console.log("â
Purchase Complete tracked successfully",{transaction_id:t.transaction_id,amount:t.amount,currency:t.currency||"ILS"})}trackPetitionScroll(t,n){const r=t.petition_id,s=this.scrollTracked.get(r);if(s&&s[n])return;s&&(s[n]=!0);const o=this.buildBaseContext(t);Ge("PetitionScroll",{...o,...{scroll_depth:n}})}trackPetitionContentComplete(t,n){const s=`${t.petition_id}_${n}`;if(this.contentCompleteTracked.has(s))return;this.contentCompleteTracked.add(s);const o=Os(),i=this.buildBaseContext(t),a={content_section:n};Ge("PetitionContentComplete",{...i,...a},o),this.sendServerSideEvent("PetitionContentComplete",{...i,...a},o)}trackAmountSelect(t,n,r,s){const o=this.buildBaseContext(t);Ge("AmountSelect",{...o,...{amount:n,selection_type:r,previous_amount:s}})}trackContinueToPay(t,n){const r=this.buildBaseContext(t);Ge("ContinueToPayClick",{...r,...{amount:n,currency:"ILS"}})}trackPaymentMethodSelect(t,n,r){const s=this.buildBaseContext(t);Ge("PaymentMethodSelect",{...s,...{payment_method:n,amount:r}})}trackPetitionShare(t,n){const r=this.buildBaseContext(t);Ge("PetitionShare",{...r,...{share_method:n}})}buildBaseContext(t){const n=Xo.getStoredUTMData(),r=Xo.getAttributionData(),s={petition_id:t.petition_id||t.id,petition_slug:t.slug,session_id:this.getSessionId(),language:t.language||document.documentElement.lang||"en",utm_source:n.utm_source,utm_medium:n.utm_medium,utm_campaign:n.utm_campaign,utm_term:n.utm_term,utm_content:n.utm_content,utm_variant:n.utm_variant||this.getUTMVariant(),utm_creative:n.utm_creative,utm_placement:n.utm_placement,utm_device:n.utm_device,utm_audience:n.utm_audience,xr:n.xr,xr_template:n.xr_template||this.getXRTemplate(),xr_test:n.xr_test,xr_segment:n.xr_segment,xr_funnel:n.xr_funnel,fbclid:n.fbclid,fb_source:n.fb_source,gclid:n.gclid,ad_set_id:r.ad_set,ad_id:r.ad,pricing_template_id:this.getPricingTemplateId(),event_source_url:n.source_url||window.location.href,ref:n.ref};return Object.keys(s).forEach(o=>{s[o]===void 0&&delete s[o]}),s}getSessionId(){let t=sessionStorage.getItem("session_id");return t||(t=Os(),sessionStorage.setItem("session_id",t)),t}getUTMVariant(){return sessionStorage.getItem("utm_variant")||void 0}getXRTemplate(){return sessionStorage.getItem("xr_unique_number")||void 0}getPricingTemplateId(){return sessionStorage.getItem("pricing_template_id")||sessionStorage.getItem("current_pricing_template")||void 0}generateEventId(){return Os()}canTrack(){const t=/Instagram/.test(navigator.userAgent);if(this.saveDebugLog("canTrack check",{isInstagram:t,userAgent:navigator.userAgent,fbqExists:typeof window.fbq=="function",DNT:navigator.doNotTrack,GPC:navigator.globalPrivacyControl}),!window.fbq)return this.saveDebugLog("canTrack: fbq not found"),!1;if(t&&this.saveDebugLog("canTrack: Instagram detected"),navigator.globalPrivacyControl
56===!0)return this.saveDebugLog("canTrack: GPC blocked"),console.log("ð¡ï¸ Facebook tracking blocked: GPC enabled"),!1;if(navigator.doNotTrack==="1")return this.saveDebugLog("canTrack: DNT blocked"),console.log("ð¡ï¸ Facebook tracking blocked: DNT enabled"),!1;if(document.cookie.includes("facebook_tracking_opt_out=true"))return this.saveDebugLog("canTrack: Cookie opt-out"),console.log("ð¡ï¸ Facebook tracking blocked: User opted out"),!1;const n=localStorage.getItem("gdpr_consent");return n&&JSON.parse(n).analytics===!1?(this.saveDebugLog("canTrack: GDPR blocked"),console.log("ð¡ï¸ Facebook tracking blocked: GDPR consent denied"),!1):localStorage.getItem("ccpa_opt_out")==="true"?(this.saveDebugLog("canTrack: CCPA blocked"),console.log("ð¡ï¸ Facebook tracking blocked: CCPA opt-out"),!1):(this.saveDebugLog("canTrack: ALLOWED"),!0)}enqueuePendingCapi(t,n,r,s){this.pendingCapiEvents.length>=Ke.MAX_PENDING_CAPI&&this.pendingCapiEvents.shift();const o=Date.now(),i=this.extractUserData();this.pendingCapiEvents.push({eventName:t,eventData:n,eventId:r,additionalData:s,queuedAt:o,originalTimestamp:o,clientEventTime:Math.floor(o/1e3),eventSourceUrl:typeof window<"u"?window.location.href:"",userDataSnapshot:Object.keys(i).length>0?i:void 0}),this.persistPendingCapi()}flushPendingCapi(){if(!this.pendingCapiEvents.length||!ye.hasMarketingConsent())return;const t=Date.now()-Ke.PENDING_CAPI_TTL_MS,n=this.pendingCapiEvents.filter(r=>r.queuedAt>=t);this.pendingCapiEvents=[],this.persistPendingCapi(),n.forEach(r=>{this.sendServerSideEvent(r.eventName,r.eventData,r.eventId,r.additionalData,{clientEventTime:r.clientEventTime,eventSourceUrl:r.eventSourceUrl,userData:r.userDataSnapshot})})}async sendServerSideEvent(t,n,r,s,o){if(!ye.hasMarketingConsent()){this.enqueuePendingCapi(t,n,r,s);return}this.saveDebugLog("sendServerSideEvent START",{eventName:t,eventId:r,eventDataKeys:Object.keys(n),hasAdditionalData:!!s,additionalDataKeys:s?Object.keys(s):[]});const i=performance.now();let a=0;const c=3,u=[1e3,2e3,4e3];for(;a<c;)try{a++;const l=r||this.generateEventId();console.log("ðµ CAPI payload event_id:",l,"Original eventId param:",r);const d=o?.userData,f=d&&Object.keys(d).length>0?d:this.extractUserData();console.log("ð CAPI User Data:",{has_fbp:!!f.fbp,has_fbc:!!f.fbc,fbc_value:f.fbc||"NOT FOUND",user_data_keys:Object.keys(f)});const p={event_name:t,event_id:l,client_event_time:o?.clientEventTime??Math.floor(Date.now()/1e3),action_source:"website",event_source_url:o?.eventSourceUrl||window.location.href,user_data:f,custom_data:n,marketing_consent:ye.hasMarketingConsent()};s&&(t==="CompleteRegistration"?p.signature_data=s:p.payment_data=s),this.saveDebugLog("Sending to Backend API",{url:"/api/v1/facebook/capi/event",attempt:a,payloadKeys:Object.keys(p),eventId:l});const h=await fetch("/api/v1/facebook/capi/event",{method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest","X-Event-Source":"facebook-pixel-frontend"},body:JSON.stringify(p),signal:AbortSignal.timeout(1e4)});if(!h.ok)throw new Error(`HTTP ${h.status}: ${h.statusText}`);const g=await h.json(),_=performance.now()-i;this.saveDebugLog("Backend response",{status:h.status,ok:h.ok,attempt:a,duration_ms:Math.round(_),hasError:!!g.error,message:g.message||"Success"}),console.log("â
Facebook CAPI event sent successfully",{event_name:t,event_id:r,attempt:a,duration_ms:Math.round(_),response:g}),this.trackMetrics("capi_success",{event_name:t,attempt:a,duration_ms:Math.round(_)});return}catch(l){const d=performance.now()-i,f=a>=c;if(this.saveDebugLog("sendServerSideEvent ERROR",{error:String(l),attempt:a,isLastAttempt:f,duration_ms:Math.round(d)}),console.error(`â Facebook CAPI attempt ${a}/${c} failed:`,{event_name:t,event_id:r,error:l instanceof Error?l.message:String(l),duration_ms:Math.round(d),will_retry:!f}),this.trackMetrics("capi_error",{event_name:t,attempt:a,error_type:l instanceof Error?l.name:"Unknown",error_message:l instanceof Error?l.message:String(l),duration_ms:Math.round(d)}),f){console.error(`ð Facebook CAPI final failure after ${c} attempts:`,{event_name:t,event_id:r,total_duration_ms:Math.round(d)}),this.trackMetrics("capi_final_failure",{event_name:t,total_attempts:c,total_duration_ms:Math.round(d)});return}await new Promise(p=>setTimeout(p,u[a-1]))}}getUser(){try{const t=localStorage.getItem("user_data");if(t)return JSON.parse(t)}catch(t){console.warn("Error getting user data from localStorage:",t)}return null}static FBC_CACHE_PREFIX="ah_fbc_";fbcCacheKey(t){return`${Ke.FBC_CACHE_PREFIX}${t.slice(0,32)}`}buildFbc(t){const n=this.fbcCacheKey(t);try{const s=sessionStorage.getItem(n);if(s&&Ke.FBC_FORMAT.test(s)&&s.endsWith(`.${t}`))return s}catch{}const r=`fb.1.${Date.now()}.${t}`;try{sessionStorage.setItem(n,r)}catch{}return r}cookieMatchesUrlFbclid(t,n){return t===n||t.startsWith(`${n}.`)}getFbcParameter(){try{const n=new URLSearchParams(window.location.search).get("fbclid"),r=this.getFacebookPixelCookie("_fbc");if(r&&Ke.FBC_FORMAT.test(r)){const i=r.split(".").slice(3).join(".");if(n&&!this.cookieMatchesUrlFbclid(i,n)){const a=this.buildFbc(n);return console.log("â
URL fbclid is newer than _fbc cookie, rebuilt fbc:",{cookieFbclid:i,urlFbclid:n,fbc:a}),a}return console.log("â
Using existing _fbc cookie:",r),r}if(r&&console.warn("â ï¸ Ignoring malformed _fbc cookie:",r),n){const i=this.buildFbc(n);return console.log("â
Built fbc from URL fbclid:",{fbclid:n,fbc:i}),i}const s=localStorage.getItem("session_attribution");if(s){const i=JSON.parse(s);if(i.fbclid){const a=this.buildFbc(i.fbclid);return console.log("â
Built fbc from session_attribution:",{fbclid:i.fbclid,fbc:a}),a}}const o=localStorage.getItem("fbclid");if(o){const i=this.buildFbc(o);return console.log("â
Built fbc from stored fbclid:",{fbclid:o,fbc:i}),i}return console.log("â ï¸ No fbclid found in any source"),null}catch(t){return console.error("Error building fbc parameter:",t),null}}extractUserData(){const t={};if(!ye.hasMarketingConsent())return t;try{const n=this.getFacebookPixelCookie("_fbp"),r=this.getFbcParameter();n&&(t.fbp=n),r&&(t.fbc=r);const s=this.getUser();if(s){if(s.email&&(t.em=An(s.email.toLowerCase().trim())),s.full_name){const o=s.full_name.trim().split(/\s+/),i=o[0]||"",a=o.slice(1).join(" ")||"";i&&(t.fn=An(i.toLowerCase().trim())),a&&(t.ln=An(a.toLowerCase().trim()))}s.country&&(t.ct=An(s.country.toLowerCase().trim())),s.city&&(t.city=An(s.city.toLowerCase().trim())),s.zip_code&&(t.zp=An(String(s.zip_code).trim()))}}catch(n){console.warn("Error extracting user data:",n)}return t}getFacebookPixelCookie(t){try{const n=document.cookie.split(";");for(const r of n){const[s,o]=r.trim().split("=");if(s===t)return decodeURIComponent(o)}}catch(n){console.warn(`Error reading cookie ${t}:`,n)}return null}trackMetrics(t,n){try{window.gtag&&window.gtag("event",t,{custom_parameter_facebook_capi:!0,...n});const r=JSON.parse(sessionStorage.getItem("facebook_capi_metrics")||"[]");r.push({metric:t,timestamp:Date.now(),data:n}),r.length>50&&r.splice(0,r.length-50),sessionStorage.setItem("facebook_capi_metrics",JSON.stringify(r))}catch(r){console.warn("Error tracking CAPI metrics:",r)}}getStatus(){return{canTrack:this.canTrack(),pixelStatus:Ps.getStatus(),scrollTracking:Object.fromEntries(this.scrollTracked)}}refreshScrollTracking(t){this.scrollTracked.set(t,{25:!1,50:!1,75:!1,100:!1})}}const ZI=Object.freeze(Object.defineProperty({__proto__:null,default:Ke},Symbol.toStringTag,{value:"Module"})),e4=({petition:e=null}={})=>{const t=Ke.getInstance(),n=O.useCallback(l=>{if(e)try{t.trackAmountSelect(e,l.tier_amount,"preset",l.previous_selection?parseFloat(l.previous_selection.replace(/[^0-9.]/g,"")):void 0)}catch(d){console.error("Facebook trackTierSelection failed:",d)}},[e,t]),r=O.useCallback((l,d)=>{if(e)try{t.trackAmountSelect(e,l,"custom")}catch(f){console.error("Facebook trackCustomAmount failed:",f)}},[e,t]),s=O.useCallback(l=>{if(e)try{t.trackInitiateCheckout(e,l.amount)}catch(d){console.error("Facebook trackContinueToPayment failed:",d)}},[e,t]),o=O.useCallback((l,d,f)=>{if(f)try{t.trackAddPaymentInfo(f,d,l),t.trackPaymentMethodSelect(f,l,d)}catch(p){console.error("Facebook trackPaymentMethod failed:",p)}},[t]),i=O.useCallback(()=>
56{if(e)try{t.trackViewContent(e)}catch(l){console.error("Facebook trackViewContent failed:",l)}},[e,t]),a=O.useCallback(l=>{if(e)try{t.trackCompleteRegistration(e,l)}catch(d){console.error("Facebook trackLead failed:",d)}},[e,t]),c=O.useCallback(l=>{if(e)try{t.trackCompleteRegistration(e,l)}catch(d){console.error("Facebook trackCompleteRegistration failed:",d)}},[e,t]),u=O.useCallback(l=>{if(e)try{t.trackPetitionShare(e,l)}catch(d){console.error("Facebook trackPetitionShare failed:",d)}},[e,t]);return{trackTierSelection:n,trackCustomAmount:r,trackContinueToPayment:s,trackPaymentMethod:o,trackViewContent:i,trackLead:a,trackCompleteRegistration:c,trackPetitionShare:u}},t4=({isOpen:e,onClose:t,initialMode:n,customTitle:r})=>{const[s,o]=O.useState(n),[i,a]=O.useState({email:"",password:"",full_name:"",confirmPassword:""}),[c,u]=O.useState(!1),[l,d]=O.useState(""),[f,p]=O.useState(!1),{trackLead:h}=e4();if(O.useEffect(()=>{o(n),d(""),a({email:"",password:"",full_name:"",confirmPassword:""})},[n,e]),!e)return null;const g=(x,b)=>{a(T=>({...T,[x]:b})),d("")},_=async x=>{if(x.preventDefault(),u(!0),d(""),s==="register"){if(i.password!==i.confirmPassword){d("×ס×ס×××ת ××× × ×ª××××ת"),u(!1);return}if(!i.full_name.trim()){d("×©× ××× ××× ×©×× ××××"),u(!1);return}}if(!i.email||!i.password){d("×××××× ×ס×ס×× ×× ×©××ת ××××"),u(!1);return}try{const b=s==="login"?"/api/v1/login":"/api/v1/register",T=s==="login"?{email:i.email,password:i.password}:{email:i.email,password:i.password,password_confirmation:i.confirmPassword,full_name:i.full_name},w=await fetch(Tk(b),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(T)}),y=await w.json();if(w.ok)localStorage.setItem("auth_token",y.access_token),localStorage.setItem("user_data",JSON.stringify(y.user)),s==="register"&&h({content_name:`User Registration - ${y.user.full_name}`,content_category:"user_registration",source:"newsletter",user_type:"registered",value:5}),t(),window.location.reload();else if(y.errors){const C=Object.values(y.errors).flat();d(C.join(", "))}else y.message?d(y.message):d("×××¨×¢× ×©×××ת ××××ת")}catch(b){console.error("ð§ Auth error:",b),d("ש×××ת ××××ר. ×× × × ×¡× ×©××.")}finally{u(!1)}},v=x=>{const b=kk(x);window.location.href=b},S=()=>{o(s==="login"?"register":"login"),d(""),a({email:"",password:"",full_name:"",confirmPassword:""})};return m.jsxs("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,background:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:99999,padding:"20px"},children:[m.jsxs("div",{style:{background:"white",borderRadius:"24px",padding:"40px",width:"100%",maxWidth:"440px",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",position:"relative",maxHeight:"90vh",overflowY:"auto",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'},children:[m.jsxs("div",{style:{marginBottom:"32px",textAlign:"center",position:"relative"},children:[m.jsx("button",{onClick:t,style:{position:"absolute",top:"-20px",right:"-20px",background:"#F3F4F6",border:"none",borderRadius:"50%",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center",color:"#6B7280",cursor:"pointer",fontSize:"18px",transition:"all 0.2s ease"},onMouseEnter:x=>{x.currentTarget.style.background="#E5E7EB",x.currentTarget.style.color="#374151",x.currentTarget.style.transform="scale(1.05)"},onMouseLeave:x=>{x.currentTarget.style.background="#F3F4F6",x.currentTarget.style.color="#6B7280",x.currentTarget.style.transform="scale(1)"},type:"button",children:"â"}),r&&m.jsx("div",{style:{marginBottom:"24px"},children:m.jsx("div",{style:{backgroundColor:"#fef3c7",border:"1px solid #f59e0b",borderRadius:"12px",padding:"16px",marginBottom:"16px"},children:m.jsxs("p",{style:{color:"#92400e",fontSize:"14px",margin:0,fontWeight:"500",lineHeight:"1.4",textAlign:"center"},children:["â¡ ",r]})})}),m.jsx("h2",{style:{fontSize:"28px",fontWeight:"700",color:"#111827",margin:"0 0 8px 0"},children:"×ת××ר×ת / ×רש××"}),m.jsx("p",{style:{color:"#6B7280",fontSize:"16px",margin:"0",lineHeight:"1.5"},children:s==="login"?"×ת×××¨× ××ש××× ×©××× ××× ×××ש××":"×צ××¨×¤× ×××× × ×××¦×¨× ×¢×¦×××ת"})]}),m.jsxs("div",{style:{marginBottom:"32px"},children:[m.jsxs("button",{onClick:()=>v("google"),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",padding:"16px 24px",border:"2px s
56olid #E5E7EB",borderRadius:"12px",fontSize:"16px",fontWeight:"500",background:"white",color:"#374151",cursor:"pointer",marginBottom:"12px",transition:"all 0.2s ease"},onMouseEnter:x=>{x.currentTarget.style.borderColor="#D1D5DB",x.currentTarget.style.background="#F9FAFB",x.currentTarget.style.transform="translateY(-1px)",x.currentTarget.style.boxShadow="0 4px 12px rgba(0, 0, 0, 0.1)"},onMouseLeave:x=>{x.currentTarget.style.borderColor="#E5E7EB",x.currentTarget.style.background="white",x.currentTarget.style.transform="translateY(0)",x.currentTarget.style.boxShadow="none"},type:"button",children:[m.jsxs("svg",{style:{width:"20px",height:"20px",marginRight:"12px"},viewBox:"0 0 24 24",children:[m.jsx("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),m.jsx("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),m.jsx("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),m.jsx("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),"×ת××ר×ת ×¢× Google"]}),m.jsxs("button",{onClick:()=>v("facebook"),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",padding:"16px 24px",border:"2px solid #1877F2",borderRadius:"12px",fontSize:"16px",fontWeight:"500",background:"#1877F2",color:"white",cursor:"pointer",transition:"all 0.2s ease"},onMouseEnter:x=>{x.currentTarget.style.background="#166FE5",x.currentTarget.style.borderColor="#166FE5",x.currentTarget.style.transform="translateY(-1px)",x.currentTarget.style.boxShadow="0 4px 12px rgba(24, 119, 242, 0.3)"},onMouseLeave:x=>{x.currentTarget.style.background="#1877F2",x.currentTarget.style.borderColor="#1877F2",x.currentTarget.style.transform="translateY(0)",x.currentTarget.style.boxShadow="none"},type:"button",children:[m.jsx("svg",{style:{width:"20px",height:"20px",marginRight:"12px"},fill:"currentColor",viewBox:"0 0 24 24",children:m.jsx("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})}),"×ת××ר×ת ×¢× Facebook"]})]}),m.jsxs("div",{style:{position:"relative",margin:"32px 0"},children:[m.jsx("div",{style:{borderTop:"1px solid #E5E7EB"}}),m.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"0 16px",color:"#9CA3AF",fontSize:"14px",fontWeight:"500"},children:"××"})]}),l&&m.jsx("div",{style:{background:"#FEF2F2",border:"1px solid #FECACA",color:"#DC2626",padding:"16px",borderRadius:"12px",fontSize:"14px",marginBottom:"24px"},children:l}),m.jsxs("form",{onSubmit:_,children:[s==="register"&&m.jsxs("div",{style:{marginBottom:"24px"},children:[m.jsx("label",{style:{display:"block",fontSize:"14px",fontWeight:"500",color:"#374151",marginBottom:"8px"},children:"×©× ×××"}),m.jsx("input",{type:"text",value:i.full_name,onChange:x=>g("full_name",x.target.value),style:{width:"100%",padding:"16px",border:"2px solid #E5E7EB",borderRadius:"12px",fontSize:"16px",background:"white",color:"#111827",outline:"none",transition:"all 0.2s ease"},onFocus:x=>{x.currentTarget.style.borderColor="#3B82F6",x.currentTarget.style.boxShadow="0 0 0 3px rgba(59, 130, 246, 0.1)"},onBlur:x=>{x.currentTarget.style.borderColor="#E5E7EB",x.currentTarget.style.boxShadow="none"},required:!0,disabled:c,autoComplete:"name",placeholder:"×××× × ×ת ××©× ××××"})]}),m.jsxs("div",{style:{marginBottom:"24px"},children:[m.jsx("label",{style:{display:"block",fontSize:"14px",fontWeight:"500",color:"#374151",marginBottom:"8px"},children:"××××××"}),m.jsx("input",{type:"email",value:i.email,onChange:x=>g("email",x.target.value),style:{width:"100%",padding:"16px",border:"2px s
56olid #E5E7EB",borderRadius:"12px",fontSize:"16px",background:"white",color:"#111827",outline:"none",transition:"all 0.2s ease"},onFocus:x=>{x.currentTarget.style.borderColor="#3B82F6",x.currentTarget.style.boxShadow="0 0 0 3px rgba(59, 130, 246, 0.1)"},onBlur:x=>{x.currentTarget.style.borderColor="#E5E7EB",x.currentTarget.style.boxShadow="none"},required:!0,disabled:c,autoComplete:"email",placeholder:"×××× × ×ת ×ת××ת ×××××××"})]}),m.jsxs("div",{style:{marginBottom:"24px"},children:[m.jsx("label",{style:{display:"block",fontSize:"14px",fontWeight:"500",color:"#374151",marginBottom:"8px"},children:"ס×ס××"}),m.jsxs("div",{style:{position:"relative"},children:[m.jsx("input",{type:f?"text":"password",value:i.password,onChange:x=>g("password",x.target.value),style:{width:"100%",padding:"16px",paddingRight:"48px",border:"2px solid #E5E7EB",borderRadius:"12px",fontSize:"16px",background:"white",color:"#111827",outline:"none",transition:"all 0.2s ease"},onFocus:x=>{x.currentTarget.style.borderColor="#3B82F6",x.currentTarget.style.boxShadow="0 0 0 3px rgba(59, 130, 246, 0.1)"},onBlur:x=>{x.currentTarget.style.borderColor="#E5E7EB",x.currentTarget.style.boxShadow="none"},autoComplete:s==="login"?"current-password":"new-password",required:!0,disabled:c,minLength:s==="register"?8:void 0,placeholder:"×××× × ×¡×ס××"}),m.jsx("button",{type:"button",onClick:()=>
56p(!f),style:{position:"absolute",right:"12px",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",color:"#9CA3AF",cursor:"pointer",padding:"8px"},onMouseEnter:x=>{x.currentTarget.style.color="#6B7280"},onMouseLeave:x=>{x.currentTarget.style.color="#9CA3AF"},children:f?m.jsx("svg",{style:{width:"20px",height:"20px"},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.878 9.878L3 3m6.878 6.878L21 21"})}):m.jsxs("svg",{style:{width:"20px",height:"20px"},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]})})]})]}),s==="login"&&m.jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:"0.5rem",marginTop:"-0.5rem"},children:m.jsx("button",{type:"button",onClick:()=>{t(),window.location.href="/forgot-password?from=modal"},style:{background:"none",border:"none",color:"#059669",fontSize:"0.875rem",cursor:"pointer",textDecoration:"underline",padding:0,transition:"color 0.2s ease"},onMouseOver:x=>x.currentTarget.style.color="#047857",onMouseOut:x=>x.currentTarget.style.color="#059669",children:"ש×××ª× ×¡×ס××?"})}),s==="register"&&m.jsxs("div",{style:{marginBottom:"24px"},children:[m.jsx("label",{style:{display:"block",fontSize:"14px",fontWeight:"500",color:"#374151",marginBottom:"8px"},children:"××××ת ס×ס××"}),m.jsx("input",{type:"password",value:i.confirmPassword,onChange:x=>g("confirmPassword",x.target.value),style:{width:"100%",padding:"16px",border:"2px solid #E5E7EB",borderRadius:"12px",fontSize:"16px",background:"white",color:"#111827",outline:"none",transition:"all 0.2s ease"},onFocus:x=>{x.currentTarget.style.borderColor="#3B82F6",x.currentTarget.style.boxShadow="0 0 0 3px rgba(59, 130, 246, 0.1)"},onBlur:x=>{x.currentTarget.style.borderColor="#E5E7EB",x.currentTarget.style.boxShadow="none"},autoComplete:"new-password",required:!0,disabled:c,minLength:8,placeholder:"×××× × ×©×× ×ת ×ס×ס××"}),i.password&&i.confirmPassword&&i.password!==i.confirmPassword&&m.jsx("p",{style:{color:"#DC2626",fontSize:"14px",marginTop:"8px"},children:"×ס×ס×××ת ××× × ×ª××××ת"})]}),m.jsx("button",{type:"submit",disabled:c||s==="register"&&i.password!==i.confirmPassword,style:{width:"100%",background:c||s==="register"&&i.password!==i.confirmPassword?"#9CA3AF":"#000000",color:"white",border:"none",borderRadius:"12px",padding:"16px 24px",fontSize:"16px",fontWeight:"600",cursor:c||s==="register"&&i.password!==i.confirmPassword?"not-allowed":"pointer",transition:"all 0.2s ease",marginTop:"24px"},onMouseEnter:x=>{!c&&!(s==="register"&&i.password!==i.confirmPassword)&&(x.currentTarget.style.background="#1F2937",x.currentTarget.style.transform="translateY(-1px)",x.currentTarget.style.boxShadow="0 4px 12px rgba(0, 0, 0, 0.3)")},onMouseLeave:x=>{!c&&!(s==="register"&&i.password!==i.confirmPassword)&&(x.currentTarget.style.background="#000000",x.currentTarget.style.transform="translateY(0)",x.currentTarget.style.boxShadow="none")},children:c?m.jsxs("span",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[m.jsxs("svg",{style:{animation:"spin 1s linear infinite",marginRight:"12px",width:"20px",height:"20px"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[m.jsx("circle",{style:{opacity:.25},cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),m.jsx("path",{style:{opacity:.75},fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),s==="login"?"×ת××ר...":"××צר ×ש×××..."]}):s==="login"?"×ת××ר×ת":"×צ×רת ×ש×××"})]}),m.jsxs("div",{style:{marginTop:"24px",textAlign:"center"},children:[m.jsx("span",{style:{color:"#6B7280",fontSize:"14px"}
56,children:s==="login"?"××× ××× ×ש×××? ":"××ר ×ש ××× ×ש×××? "}),m.jsx("button",{onClick:S,style:{color:"#3B82F6",fontSize:"14px",fontWeight:"500",background:"none",border:"none",cursor:"pointer",padding:"0"},onMouseEnter:x=>{x.currentTarget.style.color="#2563EB"},onMouseLeave:x=>{x.currentTarget.style.color="#3B82F6"},type:"button",disabled:c,children:s==="login"?"×רש××":"×ת××ר×ת"})]}),s==="register"&&m.jsxs("div",{style:{fontSize:"12px",color:"#9CA3AF",textAlign:"center",lineHeight:"1.5",marginTop:"16px"},children:["××צ×רת ×ש×××, ××ª× ×ס××××× ×"," ",m.jsx("a",{href:"/terms-of-service",style:{color:"#3B82F6",textDecoration:"none"},children:"×ª× ×× ×©×××ש"})," ","××"," ",m.jsx("a",{href:"/privacy-policy",style:{color:"#3B82F6",textDecoration:"none"},children:"×××× ××ת פר×××ת"})]})]}),m.jsx("style",{children:` 57 @keyframes spin { 58 0% { transform: rotate(0deg); } 59 100% { transform: rotate(360deg); } 60 } 61 `})]})};var ua,V0;function n4(){if(V0)return ua;V0=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(o,i){if(o===i)return!0;if(o&&i&&typeof o=="object"&&typeof i=="object"){if(o.constructor!==i.constructor)return!1;var a,c,u;if(Array.isArray(o)){if(a=o.length,a!=i.length)return!1;for(c=a;c--!==0;)if(!s(o[c],i[c]))return!1;return!0}var l;if(t&&o instanceof Map&&i instanceof Map){if(o.size!==i.size)return!1;for(l=o.entries();!(c=l.next()).done;)if(!i.has(c.value[0]))return!1;for(l=o.entries();!(c=l.next()).done;)if(!s(c.value[1],i.get(c.value[0])))return!1;return!0}if(n&&o instanceof Set&&i instanceof Set){if(o.size!==i.size)return!1;for(l=o.entries();!(c=l.next()).done;)if(!i.has(c.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(i)){if(a=o.length,a!=i.length)return!1;for(c=a;c--!==0;)if(o[c]!==i[c])return!1;return!0}if(o.constructor===RegExp)return o.source===i.source&&o.flags===i.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof i.valueOf=="function")return o.valueOf()===i.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof i.toString=="function")return o.toString()===i.toString();if(u=Object.keys(o),a=u.length,a!==Object.keys(i).length)return!1;for(c=a;c--!==0;)if(!Object.prototype.hasOwnProperty.call(i,u[c]))return!1;if(e&&o instanceof Element)return!1;for(c=a;c--!==0;)if(!((u[c]==="_owner"||u[c]==="__v"||u[c]==="__o")&&o.$$typeof)&&!s(o[u[c]],i[u[c]]))return!1;return!0}return o!==o&&i!==i}return ua=function(i,a){try{return s(i,a)}catch(c){if((c.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw c}},ua}var r4=n4();const s4=Qo(r4);var la,G0;function o4(){if(G0)return la;G0=1;var e=function(t,n,r,s,o,i,a,c){if(!t){var u;if(n===void 0)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,s,o,i,a,c],d=0;u=new Error(n.replace(/%s/g,function(){return l[d++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};return la=e,la}var i4=o4();const Y0=Qo(i4);var da,K0;function a4(){return K0||(K0=1,da=function(t,n,r,s){var o=r?r.call(s,t,n):void 0;if(o!==void 0)return!!o;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var i=Object.keys(t),a=Object.keys(n);if(i.length!==a.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(n),u=0;u<i.length;u++){var l=i[u];if(!c(l))return!1;var d=t[l],f=n[l];if(o=r?r.call(s,d,f,l):void 0,o===!1||o===void 0&&d!==f)return!1}return!0}),da}var c4=a4();const u4=Qo(c4);var Dm=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Dm||{}),fa={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]}
61,meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},X0=Object.values(Dm),Ii={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Rm=Object.entries(Ii).reduce((e,[t,n])=>(e[n]=t,e),{}),Je="data-rh",$n={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},jn=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},l4=e=>{let t=jn(e,"title");const n=jn(e,$n.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=jn(e,$n.DEFAULT_TITLE);return t||r||void 0},d4=e=>jn(e,$n.ON_CHANGE_CLIENT_STATE)||(()=>{}),pa=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),f4=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const s=Object.keys(r);for(let o=0;o<s.length;o+=1){const a=s[o].toLowerCase();if(e.indexOf(a)!==-1&&r[a])return n.concat(r)}}return n},[]),p4=e=>console&&typeof console.warn=="function"&&console.warn(e),hr=(e,t,n)=>{const r={};return n.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&p4(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,o)=>{const i={};o.filter(c=>{let u;const l=Object.keys(c);for(let f=0;f<l.length;f+=1){const p=l[f],h=p.toLowerCase();t.indexOf(h)!==-1&&!(u==="rel"&&c[u].toLowerCase()==="canonical")&&!(h==="rel"&&c[h].toLowerCase()==="stylesheet")&&(u=h),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(u=p)}if(!u||!c[u])return!1;const d=c[u].toLowerCase();return r[u]||(r[u]={}),i[u]||(i[u]={}),r[u][d]?!1:(i[u][d]=!0,!0)}).reverse().forEach(c=>s.push(c));const a=Object.keys(i);for(let c=0;c<a.length;c+=1){const u=a[c],l={...r[u],...i[u]};r[u]=l}return s},[]).reverse()},h4=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},m4=e=>({baseTag:f4(["href"],e),bodyAttributes:pa("bodyAttributes",e),defer:jn(e,$n.DEFER),encode:jn(e,$n.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:pa("htmlAttributes",e),linkTags:hr("link",["rel","href"],e),metaTags:hr("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:hr("noscript",["innerHTML"],e),onChangeClientState:d4(e),scriptTags:hr("script",["src","innerHTML"],e),styleTags:hr("style",["cssText"],e),title:l4(e),titleAttributes:pa("titleAttributes",e),prioritizeSeoTags:h4(e,$n.PRIORITIZE_SEO_TAGS)}),Bm=e=>Array.isArray(e)?e.join(""):e,g4=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},ha=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(g4(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},J0=(e,t)=>({...e,[t]:void 0}),x4=["noscript","script","style"],uc=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Fm=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),_4=(e,t,n,r)=>{const s=Fm(n),o=Bm(t);return s?`<${e} ${Je}="true" ${s}>${uc(o,r)}</${e}>`:`<${e} ${Je}="true">${uc(o,r)}</${e}>`},y4=(e,t,n=!0)=>t.reduce((r,s)=>{const o=s,i=Object.keys(o).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,l)=>{const d=typeof o[l]>"u"?l:`${l}="${uc(o[l],n)}"`;return u?`${u} ${d}`:d},""),a=o.innerHTML||o.cssText||"",c=x4.indexOf(e)===-1;return`${r}<${e} ${Je}="true" ${i}${c?"/>":`>${a}</${e}>`}`},""),Om=(e,t={})=>Object.keys(e).reduce((n,r)=>{const s=Ii[r];return n[s||r]=e[r],n},t),S4=(e,t,n)=>{const r={key:t,[Je]:!0},s=Om(n,r);return[_e.createElement("title",s,t)]},yo=(e,t)=>t.map((n,r)=>{const s={key:r,[Je]:!0};
61return Object.keys(n).forEach(o=>{const a=Ii[o]||o;if(a==="innerHTML"||a==="cssText"){const c=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:c}}else s[a]=n[o]}),_e.createElement(e,s)}),We=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>S4(e,t.title,t.titleAttributes),toString:()=>_4(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Om(t),toString:()=>Fm(t)};default:return{toComponent:()=>yo(e,t),toString:()=>y4(e,t,n)}}},v4=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const s=ha(e,fa.meta),o=ha(t,fa.link),i=ha(n,fa.script);return{priorityMethods:{toComponent:()=>[...yo("meta",s.priority),...yo("link",o.priority),...yo("script",i.priority)],toString:()=>`${We("meta",s.priority,r)} ${We("link",o.priority,r)} ${We("script",i.priority,r)}`},metaTags:s.default,linkTags:o.default,scriptTags:i.default}},b4=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:s,noscriptTags:o,styleTags:i,title:a="",titleAttributes:c,prioritizeSeoTags:u}=e;let{linkTags:l,metaTags:d,scriptTags:f}=e,p={toComponent:()=>[],toString:()=>""};return u&&({priorityMethods:p,linkTags:l,metaTags:d,scriptTags:f}=v4(e)),{priority:p,base:We("base",t,r),bodyAttributes:We("bodyAttributes",n,r),htmlAttributes:We("htmlAttributes",s,r),link:We("link",l,r),meta:We("meta",d,r),noscript:We("noscript",o,r),script:We("script",f,r),style:We("style",i,r),title:We("title",{title:a,titleAttributes:c},r)}},lc=b4,Ss=[],Cu=!!(typeof window<"u"&&window.document&&window.document.createElement),dc=class{instances=[];canUseDOM=Cu;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Ss:this.instances,add:e=>{(this.canUseDOM?Ss:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Ss:this.instances).indexOf(e);(this.canUseDOM?Ss:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=lc({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},E4=parseInt(_e.version.split(".")[0],10),fc=E4>=19,C4={},Pm=_e.createContext(C4),Nm=class Mm extends O.Component{static canUseDOM=Cu;helmetData;constructor(t){super(t),fc?this.helmetData=null:this.helmetData=new dc(this.props.context||{},Mm.canUseDOM)}render(){return fc?_e.createElement(_e.Fragment,null,this.props.children):_e.createElement(Pm.Provider,{value:this.helmetData.value},this.props.children)}},Tn=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Je}]`),s=[].slice.call(r),o=[];let i;return t&&t.length&&t.forEach(a=>{const c=document.createElement(e);for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u))if(u==="innerHTML")c.innerHTML=a.innerHTML;else if(u==="cssText"){const l=a.cssText;c.appendChild(document.createTextNode(l))}else{const l=u,d=typeof a[l]>"u"?"":a[l];c.setAttribute(u,d)}c.setAttribute(Je,"true"),s.some((u,l)=>(i=l,c.isEqualNode(u)))?s.splice(i,1):o.push(c)}),s.forEach(a=>a.parentNode?.removeChild(a)),o.forEach(a=>n.appendChild(a)),{oldTags:s,newTags:o}},pc=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Je),s=r?r.split(","):[],o=[...s],i=Object.keys(t);for(const a of i){const c=t[a]||"";n.getAttribute(a)!==c&&n.setAttribute(a,c),s.indexOf(a)===-1&&s.push(a);const u=o.indexOf(a);u!==-1&&o.splice(u,1)}for(let a=o.length-1;a>=0;a-=1)n.removeAttribute(o[a]);s.length===o.length?n.removeAttribute(Je):n.getAttribute(Je)!==i.join(",")&&n.setAttribute(Je,i.join(","))},w4=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Bm(e)),pc("title",t)},Q0=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:s,linkTags:o,metaTags:i,noscriptTags:a,onChangeClientState:c,scriptTags:u,styleTags:l,title:d,titleAttributes:f}=e;pc("body",r),pc("html",s),w4(d,f);const p={baseTag:Tn("base",n),linkTags:Tn("link",o),metaTags:Tn("meta",i),noscriptTags:Tn("noscript",a),scriptTags:Tn("script",u),styleTags:Tn("style",l)},h={},g={};Object.keys(p).forEach(_=>{const{newTags:v,oldTags:S}=p[_];v.length&&(h[_]=v),S.length&&(g[_]=p[_].oldTags)}),t&&t(),c(e,h,g)}
61,mr=null,A4=e=>{mr&&cancelAnimationFrame(mr),e.defer?mr=requestAnimationFrame(()=>{Q0(e,()=>{mr=null})}):(Q0(e),mr=null)},T4=A4,Z0=class extends O.Component{rendered=!1;shouldComponentUpdate(e){return!u4(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const r=m4(e.get().map(s=>{const{context:o,...i}=s.props;return i}));Nm.canUseDOM?T4(r):lc&&(n=lc(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},So=[],ef=e=>{const t={};for(const n of Object.keys(e))t[Rm[n]||n]=e[n];return t},Kt=e=>{const t={};for(const n of Object.keys(e)){const r=Ii[n];t[r||n]=e[n]}return t},tf=(e,t)=>{if(!Cu)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const r="data-rh-managed",s=n.getAttribute(r),o=s?s.split(","):[],i=Object.keys(t);for(const a of o)i.includes(a)||n.removeAttribute(a);for(const a of i){const c=t[a];c==null||c===!1?n.removeAttribute(a):c===!0?n.setAttribute(a,""):n.setAttribute(a,String(c))}i.length>0?n.setAttribute(r,i.join(",")):n.removeAttribute(r)},ma=()=>{const e={},t={};for(const n of So){const{htmlAttributes:r,bodyAttributes:s}=n.props;r&&Object.assign(e,ef(r)),s&&Object.assign(t,ef(s))}tf("html",e),tf("body",t)},k4=class extends O.Component{componentDidMount(){So.push(this),ma()}componentDidUpdate(){ma()}componentWillUnmount(){const e=So.indexOf(this);e!==-1&&So.splice(e,1),ma()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return _e.createElement("title",Kt(t),e)}renderBase(){const{base:e}=this.props;return e?_e.createElement("base",Kt(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>_e.createElement("meta",{key:n,...Kt(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>_e.createElement("link",{key:n,...Kt(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...s}=t,o=Kt(s);return r&&(o.dangerouslySetInnerHTML={__html:r}),_e.createElement("script",{key:n,...o})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:r,...s}=t,o=Kt(s);return r&&(o.dangerouslySetInnerHTML={__html:r}),_e.createElement("style",{key:n,...o})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...s}=t,o=Kt(s);return r&&(o.dangerouslySetInnerHTML={__html:r}),_e.createElement("noscript",{key:n,...o})})}render(){return _e.createElement(_e.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},sD=class extends O.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!s4(J0(this.props,"helmetData"),J0(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return Y0(X0.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${X0.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Y0(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>
61typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return _e.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:s,...o}=r.props,i=Object.keys(o).reduce((c,u)=>(c[Rm[u]||u]=o[u],c),{});let{type:a}=r;switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(r,s),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,i,s);break;default:t=this.mapObjectTypeChildren(r,t,i,s);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof dc)){const s=r;r=new dc(s.context,!0),delete n.helmetData}return fc?_e.createElement(k4,{...n}):r?_e.createElement(Z0,{...n,context:r.value}):_e.createElement(Pm.Consumer,null,s=>_e.createElement(Z0,{...n,context:s}))}};const Lm=O.createContext(null),$m=()=>{const e=O.useContext(Lm);if(!e)throw new Error("useNotifications must be used within NotificationProvider");return e},I4=({children:e})=>{const[t,n]=O.useState([]),r=O.useCallback((d,f,p)=>{const h=`notification_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,g={id:h,type:d,message:f,timeout:p?.timeout??5e3,autoHideCondition:p?.autoHideCondition,createdAt:Date.now()};return n(_=>[g,..._].slice(0,2)),h},[]),s=O.useCallback((d,f)=>r("error",d,f),[r]),o=O.useCallback((d,f)=>r("warning",d,f),[r]),i=O.useCallback((d,f)=>r("success",d,f),[r]),a=O.useCallback((d,f)=>r("info",d,f),[r]),c=O.useCallback(d=>{n(f=>f.filter(p=>p.id!==d))},[]),u=O.useCallback(()=>{n([])},[]);O.useEffect(()=>{const d=setInterval(()=>{const f=Date.now();n(p=>{if(p.length===0)return p;const h=p.filter(g=>{if(g.autoHideCondition)try{if(g.autoHideCondition())return console.log(`ð Auto-hiding notification: ${g.message}`),!1}catch(_){console.error("Error in autoHideCondition:",_)}if(g.timeout&&g.timeout>0){const _=f-g.createdAt>=g.timeout;return _&&console.log(`â° Timeout notification: ${g.message}`),!_}return!0});return h.length===p.length?p:h})},500);return()=>clearInterval(d)},[]);const l=O.useMemo(()=>({notifications:t,showError:s,showWarning:o,showSuccess:i,showInfo:a,clearNotification:c,clearAll:u}),[t,s,o,i,a,c,u]);return m.jsx(Lm.Provider,{value:l,children:e})},D4=()=>{const{notifications:e,clearNotification:t}=$m();if(e.length===0)return null;const n=r=>{const s="border-l-4 p-2 rounded-md shadow-sm mb-3 flex justify-between items-start";switch(r){case"error":return`${s} bg-red-50 border-red-400 text-red-700`;case"warning":return`${s} bg-yellow-50 border-yellow-400 text-yellow-700`;case"success":return`${s} bg-green-50 border-green-400 text-green-700`;case"info":return`${s} bg-blue-50 border-blue-400 text-blue-700`;default:return`${s} bg-gray-50 border-gray-400 text-gray-700`}};return m.jsxs("div",{style:{position:"fixed",top:"80px",left:"50%",transform:"translateX(-50%)",width:"90%",maxWidth:"600px",zIndex:9999,pointerEvents:"none"},children:[e.map(r=>m.jsxs("div",{className:n(r.type),style:{pointerEvents:"auto",animation:"fadeIn 0.3s ease-in-out",direction:/[\u0590-\u05FF]/.test(r.message)?"rtl":"ltr"},children:[m.jsx("div",{style:{flex:1,paddingRight:"1rem"},children:m.jsx("p",{style:{margin:0,fontWeight:"500",fontSize:"0.95rem"},children:r.message})}),m.jsx("button",{onClick:()=>t(r.id),style:{background:"transparent",border:"none",fontSize:"1.2rem",cursor:"pointer",padding:"0",color:"inherit",opacity:.7,transition:"opacity 0.2s ease"},onMouseOver:s=>s.currentTarget.style.opacity="1",onMouseOut:s=>s.currentTarget.style.opacity="0.7","aria-label":"ס××ר ××××¢×",children:"Ã"})]},r.id)),m.jsx("style",{dangerouslySetInnerHTML:{__html:` 62 @keyframes fadeIn { 63 from { 64 opacity: 0; 65 transform: translateY(-10px); 66 } 67 to { 68 opacity: 1; 69 transform: translateY(0); 70 } 71 } 72 `}})]})},R4=({user:e,onNavigate:t})=>{const{showSuccess:n,showError:r}=$m();O.useEffect(()=>{const a=async()=>{console.log("ð PendingPetitionHandler: Checking conditions..."),console.log("ð User logged status:",!!e),localStorage.getItem("auth_token"),localStorage.getItem("user_data");const c=localStorage.getItem("pending_petition_id"),u=localStorage.getItem("pending_action");if(!c){console.log("ð No pending petition found");return}if(!e||!e.id){console.log("ð No user logged in yet");return}try{const l=await fetch(Dn(`petitions/${c}`));if(l.ok){const d=await l.json();if(console.log("ð Current petition data:",d),d.creator_user_id===e.id){console.log("â Petition already transferred to user"),u==="publish"&&d.status!=="active"?(console.log("ð User wanted to publish - updating status to active"),await o(parseInt(c,10)),n("Petition published successfully!")):u==="draft"?(console.log("ð User wanted to save as draft - keeping as draft"),n("Petition saved as draft successfully!")):console.log("â No specific action needed"),localStorage.removeItem("pending_petition_id"),localStorage.removeItem("pending_action"),console.log("ð Navigating to dashboard..."),t("/dashboard");return}d.creator_user_id===2&&(console.log("ð¯ Requested action:",u),console.log("ð Transferring ownership and processing action..."),u==="publish"?(await i(parseInt(c,10),e.id),n("Petition published successfully!"),console.log("ð Published - navigating to dashboard..."),t("/dashboard")):u==="draft"?(await s(parseInt(c,10),e.id),n("Petition saved as draft successfully!"),console.log("ð Saved as draft - navigating to dashboard..."),t("/dashboard")):(console.log("ð No pending action - navigating to dashboard..."),t("/dashboard")),console.log("â Removed pending items from localStorage"),localStorage.removeItem("pending_petition_id"),localStorage.removeItem("pending_action"))}}catch(l){console.error("â Error checking/transferring petition:",l),r("Failed to process pending petition. Please contact support."),window.scrollTo({top:0,behavior:"smooth"})}};e&&e.id&&a()},[e,t]);const s=async(a,c)=>{console.log("ð Transferring ownership only (keeping as draft):",{petitionId:a,newUserId:c});const u=localStorage.getItem("auth_token");if(!u)throw new Error("No authentication token found.");const l=await fetch(Dn(`petitions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${u}`},body:JSON.stringify({creator_user_id:c})});if(console.log("ð¥ Response status:",l.status),!l.ok){const f=await l.json().catch(()=>({message:"Unknown server error"}));throw console.error("â Transfer ownership failed:",f),new Error(`Server error: ${f.message||JSON.stringify(f)}`)}const d=await l.json();return console.log("â Ownership transferred successfully (kept as draft):",d),d},o=async a=>{console.log("ð Publishing petition (status change only):",a);const c=localStorage.getItem("auth_token");if(!c)throw new Error("No authentication token found.");const u=await fetch(Dn(`petitions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${c}`},body:JSON.stringify({status:"active",published_at:new Date().toISOString()})});if(!u.ok){const l=await u.json().catch(()=>({message:"Unknown server error"}));throw new Error(`Server error: ${l.message||JSON.stringify(l)}`)}return await u.json()},i=async(a,c)=>{console.log("ð Transferring ownership and publishing:",{petitionId:a,newUserId:c});const u=localStorage.getItem("auth_token");if(!u)throw new Error("No authentication token found for publishing.");console.log("ð¯ Target URL:",Dn(`petitions/${a}`));const l=await fetch(Dn(`petitions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${u}`},body:JSON.stringify({creator_user_id:c,status:"active",published_at:new Date().toISOString()})});if(console.log("ð¥ Response status:",l.status),!l.ok){const f=await l.json().catch(()=>({message:"Unknown server error"}));throw console.error("â Transfer and publish failed:",f),new Error(`Server error: ${f.message||JSON.stringify(f)}`)}const d=await l.json();return console.log("â Ownership transferred and petition published successfully:",d),d};return null},ga={googleAnalyticsId:"G-GQ8DRRFQZV",facebookPixelId:"807068139624533"};function B4(){const e=Zo();return O.useEffect(()=>{window.scrollTo(0,0)},[e.pathname]),null}class F4 extends O.Component{constructor(t){super(t),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("ð¨ Error caught by boundary:",t,n),oi(r=>{r.setContext("errorBoundary",{componentStack:n.componentStack,error:t.toString()}),r.setLevel("error"),Xf(t)}),this.sendErrorToBackend(t,n),this.setState({error:t,errorInfo:n})}async sendErrorToBackend(t,n){try{const r=window.location.origin,s=await fetch(`${r}/api/log-error`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({type:"react_error",message:t.message,stack:t.stack,componentStack:n.componentStack,url:window.location.href,timestamp:new Date().toISOString(),userAgent:navigator.userAgent,user:this.getUserContext()})});s.ok||console.error("Failed to send error to backend:",s.status)}catch(r){console.error("Error sending to backend:",r)}}getUserContext(){try{const t=localStorage.getItem("user_data");if(t){const n=JSON.parse(t);return{id:n.id,email:n.email,name:n.name||n.full_name}}}catch{}return null}handleReset=()=>{this.setState({hasError:!1,error:null,errorInfo:null})};render(){return this.state.hasError?this.props.fallback?this.props.fallback:m.jsx("div",{style:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:"#f8fafc"},children:m.jsxs("div",{style:{background:"white",borderRadius:"16px",padding:"3rem",maxWidth:"500px",boxShadow:"0 10px 40px rgba(0,0,0,0.1)",textAlign:"center"},children:[m.jsx("div",{style:{fontSize:"4rem",marginBottom:"1.5rem"},children:"ð"}),m.jsx("h2",{style:{fontSize:"1.75rem",fontWeight:"700",color:"#1e293b",marginBottom:"2rem"},children:"ש×××× ××× ×ת ××צ×ת ×××£, ×× × ×¨×¢× × ×ת ××¢×××"}),m.jsxs("div",{style:{display:"flex",gap:"1rem",justifyContent:"center"},children:[m.jsx("button",{onClick:()=>window.location.reload(),style:{background:"linear-gradient(135deg, #10b981 0%, #059669 100%)",color:"white",border:"none",padding:"0.875rem 1.5rem",borderRadius:"8px",fontSize:"1rem",fontWeight:"600",cursor:"pointer"},children:"×¨×¢× ×× ××¢×××"}),m.jsx("button",{onClick:this.handleReset,style:{background:"transparent",color:"#64748b",border:"2px s
72olid #e2e8f0",padding:"0.875rem 1.5rem",borderRadius:"8px",fontSize:"1rem",fontWeight:"600",cursor:"pointer"},children:"× ×¡× ×©××"})]}),!1]})}):this.props.children}}const O4=()=>{const[e,t]=_e.useState(!1);return null},nf=typeof window<"u"&&!1,P4=O.lazy(()=>W(()=>import("./HomePage-DwsIEbeO.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]))),N4=O.lazy(()=>W(()=>import("./PetitionPage-BVE2j9Qt.js"),__vite__mapDeps([11,1,2,3,4,5,6,12,13,14,10,15,7,16,8,9,17]))),M4=O.lazy(()=>W(()=>import("./AdminDashboard-BW1__lRX.js"),__vite__mapDeps([18,1,2,19,20,21,22,23,24,25,26]))),L4=O.lazy(()=>W(()=>import("./AdminMainHub-DWBGJKIM.js"),__vite__mapDeps([27,1,2]))),$4=O.lazy(()=>W(()=>import("./AdminActivityDashboard-5u1pItnB.js"),__vite__mapDeps([28,1,2,4,5,29,21,30,31,32,33,34,35,24]))),j4=O.lazy(()=>W(()=>import("./AdminPetitionsManagement-B2dofOZR.js"),__vite__mapDeps([36,1,2,37,38,5]))),U4=O.lazy(()=>W(()=>import("./AdminSecurityDashboard-D-HrIof3.js"),__vite__mapDeps([39,1,2,5]))),H4=O.lazy(()=>W(()=>import("./AdminTemplateManagement-0ZMNpAzL.js"),__vite__mapDeps([40,1,2,3,4,5,19,20,21,22,23,24,25,26]))),z4=O.lazy(()=>W(()=>import("./EmailAdminDashboard-DwR-1sSo.js"),__vite__mapDeps([41,1,2,42,35,21,43,29,44,20,24,45,46,34,47,48,49,32]))),W4=O.lazy(()=>W(()=>import("./AdminEmailTemplates-BmvggeWX.js"),__vite__mapDeps([50,1,2,51,22,21,45,49,52,43,24,25,26]))),q4=O.lazy(()=>W(()=>import("./AdminCampaigns-BR8uNe-l.js"),__vite__mapDeps([53,1,2]))),V4=O.lazy(()=>W(()=>import("./ScheduledCampaigns-Z1F5i11J.js"),__vite__mapDeps([54,1,2,4,5]))),G4=O.lazy(()=>W(()=>import("./AdminControlReports-Cb3RBOyX.js"),__vite__mapDeps([55,1,2,23,21,35,56,49,45,57]))),Y4=O.lazy(()=>W(()=>import("./AdminOperations-BxMfznBB.js"),__vite__mapDeps([58,1,2]))),rf=O.lazy(()=>W(()=>import("./AdminABTestingDashboard-LylnRY2p.js"),__vite__mapDeps([59,1,2,5,60]))),K4=O.lazy(()=>W(()=>import("./AdminSubscriptionsPage-BjIG1R9a.js"),__vite__mapDeps([61,1,2,5]))),X4=O.lazy(()=>W(()=>import("./AdminUXEngineDashboard-DBsVc_d4.js"),__vite__mapDeps([62,1,2,5]))),sf=O.lazy(()=>W(()=>import("./SignFormTestsPage-wINSvSlD.js"),__vite__mapDeps([63,1,2,5,60,64,21,26]))),J4=O.lazy(()=>W(()=>import("./AdminFacebookCampaigns-Cec2FSFL.js"),__vite__mapDeps([65,1,2]))),Q4=O.lazy(()=>W(()=>import("./AdminPetitionApprovals-NIfyfZCv.js"),__vite__mapDeps([66,1,2,37,38]))),Z4=O.lazy(()=>W(()=>import("./AdminPetitionUpdates-DB9qioQf.js"),__vite__mapDeps([67,1,2,68,51,17]))),e8=O.lazy(()=>W(()=>import("./AdminEmailSettings-CekTYUXM.js"),__vite__mapDeps([69,1,2]))),t8=O.lazy(()=>W(()=>import("./SegmentsCoverage-CwF0LoIz.js"),__vite__mapDeps([70,1,2,38]))),n8=O.lazy(()=>W(()=>import("./JourneysAdmin-CCO1ULYk.js"),__vite__mapDeps([71,1,2,21,22,43,44,57,72,20,73,74,46,75,29,45,31,26,52,47,25,23,35,76,64]))),r8=O.lazy(()=>W(()=>import("./SimulatorTab-DHJgpjQp.js"),__vite__mapDeps([77,1,2,73,21,78,57,79,56,52,33,30]))),s8=O.lazy(()=>W(()=>import("./AdminPromotionDashboard-Dwa6itSt.js"),__vite__mapDeps([80,1,2,4,5,21]))),o8=O.lazy(()=>W(()=>import("./AdminReports-Cin_Vkgb.js"),__vite__mapDeps([81,1,2,42,82]))),i8=O.lazy(()=>W(()=>import("./OrchestrationDashboard-BDfQPKcF.js"),__vite__mapDeps([83,1,2,42,84,72,21,57,33,32,23,76,43,29,48,35]))),a8=O.lazy(()=>W(()=>import("./DashboardV3-B7oxQF1Y.js"),__vite__mapDeps([85,1,2,42,86]))),c8=O.lazy(()=>W(()=>import("./SegmentsAdmin-DkkDlAof.js"),__vite__mapDeps([87,1,2,79,21,23,76,47,75,45,35,29]))),u8=O.lazy(()=>W(()=>import("./DecisionsPack-DX13axzt.js"),__vite__mapDeps([88,1,2,89,29,21,56]))),l8=O.lazy(()=>W(()=>import("./CampaignProgressShadow-B_tLOFUV.js"),__vite__mapDeps([90,1,2,21,29,23,76]))),of=O.lazy(()=>W(()=>import("./EmailOrchestration-B-vZtVpI.js"),__vite__mapDeps([91,1,2,84,42,72,21,57,33,32,23,76,43,89,29])));function af(){const{experimentId:e}=ei(),t=e?`/admin/sign-form-tests/${e}`:"/admin/sign-form-tests";return m.jsx(ig,{to:t,replace:!0})}const d8=O.lazy(()=>W(()=>import("./UserDashboard-BWPEIf48.js"),__vite__mapDeps([92,1,2,3,4,5]))),f8=O.lazy(()=>W(()=>import("./CreatePetitionPage-BpXz2qtX.js"),__vite__mapDeps([93,1,2,3,4,5,94,68,51,17]))),p8=O.lazy(()=>W(()=>import("./HeroPromotionPage-CwMBEe_O.js"),__vite__mapDeps([95,1,2,15]))),h8=O.lazy(()=>W(()=>import("./ShareAndRedirectPage-BvtioSZY.js"),__vite__mapDeps([96,1,2]))),m8=O.lazy(()=>W(()=>import("./SharePetitionPage-41ge6ixQ.js"),__vite__mapDeps([97,1,2,14,13,10,3,4,5,12]))),g8=O.lazy(()=>W(()=>import("./RecommendationsPage-D9q38Hla.js"),__vite__mapDeps([98,1,2,12,13,9,4,5,10]))),x8=O.lazy(()=>W(()=>import("./PetitionManagePage-ByApWIq0.js"),__vite__mapDeps([99,1,2,5,100,94,68,51,17,101,6]))),_8=O.lazy(()=>W(()=>import("./ProfilePage-DD8f0ZXw.js"),__vite__mapDeps([102,1,2]))),y8=O.lazy(()=>W(()=>import("./QuickSignSettingsPage-Bvo0ARql.js"),__vite__mapDeps([103,1,2]))),S8=O.lazy(()=>W(()=>import("./SearchPage-C0rxbcuz.js"),__vite__mapDeps([104,1,2,8,9,4,5,10]))),v8=O.lazy(()=>W(()=>import("./ContactPage-DdAyOyhf.js"),__vite__mapDeps([105,1,2]))),b8=O.lazy(()=>W(()=>import("./ReportContentPage-DNo6nIDV.js"),__vite__mapDeps([106,1,2]))),cf=O.lazy(()=>W(()=>import("./PaymentSuccessPage-D_tiigAY.js"),__vite__mapDeps([107,1,2,13,14,10,3,4,5,16,6,8,9]))),E8=O.lazy(()=>W(()=>import("./PayPalSubscriptionReturnPage-7GaMgD6L.js"),__vite__mapDeps([108,1,2]))),C8=O.lazy(()=>W(()=>import("./ForgotPasswordPage-le9eQeJ5.js"),__vite__mapDeps([109,1,2]))),w8=O.lazy(()=>W(()=>import("./ResetPasswordPage-CqOgKnTz.js"),__vite__mapDeps([110,1,2]))),A8=O.lazy(()=>W(()=>import("./PrivacyPolicyPage-DLJWVJ7q.js"),__vite__mapDeps([111,2,1]))),T8=O.lazy(()=>W(()=>import("./CookiePolicyPage-ny1T8d0B.js"),__vite__mapDeps([112,2,1]))),k8=O.lazy(()=>W(()=>
72import("./TermsOfServicePage-DA3KwOBd.js"),__vite__mapDeps([113,2,1]))),I8=O.lazy(()=>W(()=>import("./CommunityGuidelinesPage-MEEJ_eyC.js"),__vite__mapDeps([114,2,1]))),D8=O.lazy(()=>W(()=>import("./DoNotSellPage-CsGw58wE.js"),__vite__mapDeps([115,1,2])).then(e=>({default:e.DoNotSellPage}))),R8=O.lazy(()=>W(()=>import("./PetitionEditor-cQPIMtaZ.js"),__vite__mapDeps([100,1,2,5,94,68,51,17])).then(e=>({default:e.PetitionEditor}))),B8=O.lazy(()=>W(()=>import("./PetitionUpdatesManager-DF7Ppl1b.js"),__vite__mapDeps([101,1,2,5,68,51,17])).then(e=>({default:e.PetitionUpdatesManager}))),F8=O.lazy(()=>W(()=>import("./DebugPixel-Dc1dbsdo.js"),__vite__mapDeps([116,1,2])).then(e=>({default:e.DebugPixel}))),O8=()=>m.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh",fontSize:"16px",color:"#666"},children:"Loading..."});function P8(){return O.useEffect(()=>{window.close()},[]),null}const xa=({title:e,description:t})=>{const n=ct();return m.jsx("div",{style:{minHeight:"100vh",background:"linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)",display:"flex",alignItems:"center",justifyContent:"center",padding:"2rem"},children:m.jsxs("div",{style:{background:"white",borderRadius:"0.75rem",padding:"3rem",textAlign:"center",maxWidth:"500px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1)"},children:[m.jsx("div",{style:{fontSize:"4rem",marginBottom:"1.5rem"},children:"ð§"}),m.jsx("h1",{style:{fontSize:"2rem",fontWeight:"bold",color:"#111827",marginBottom:"1rem"},children:e}),m.jsx("p",{style:{fontSize:"1.125rem",color:"#6b7280",marginBottom:"2rem"},children:t}),m.jsx("button",{style:{background:"#059669",color:"white",border:"none",padding:"1rem 2rem",borderRadius:"0.5rem",fontSize:"1rem",fontWeight:"600",cursor:"pointer",transition:"all 0.2s",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"},onClick:()=>n("/dashboard"),children:"×××ר ××ש××ר×"})]})})};function ae({children:e,user:t,language:n}){return!t||t.role!=="admin"?m.jsx(jm,{language:n}):m.jsx(m.Fragment,{children:e})}function N8({language:e}){return m.jsx(L4,{language:e})}function M8({language:e}){return m.jsx(j4,{language:e})}function L8({language:e}){const t=ct(),n=(r,s)=>{t(r==="petition"&&s?`/sign/${s}`:r==="create"||r==="/create"?"/create":r==="/dashboard"?"/dashboard":r==="/my-petitions"?"/my-petitions":r==="/"?"/":r)};return m.jsx(B8,{language:e,onNavigate:n})}function $8({language:e}){const t=ct(),{slug:n}=ei(),r=(s,o)=>{t(s==="petition"&&o?`/sign/${o}`:s==="share"&&o?`/sign/${o}/share`:s==="/"?"/":s)};return n?m.jsx(p8,{language:e,petitionSlug:n,onNavigate:r,className:""}):m.jsx("div",{children:"No petition found"})}function j8({language:e}){return m.jsx(y8,{language:e})}function U8({language:e}){const t=ct(),{slug:n}=ei(),r=(s,o)=>{t(s==="petition"&&o?`/sign/${o}`:s==="/"?"/":s)};return n?m.jsx(h8,{language:e,petitionSlug:n,petitionData:void 0,onNavigate:r,autoRedirectDelay:30,showTimer:!0,className:""}):m.jsx("div",{children:"No petition found"})}function H8({language:e}){const t=ct(),{search:n}=Zo();new URLSearchParams(n).get("admin");const r=s=>{t(s)};try{return m.jsx(x8,{language:e,onNavigate:r})}catch(s){return console.error("ð§ Error rendering PetitionManagePage:",s),m.jsx("div",{children:"Error loading petition management page"})}}const z8=` 73/* ===== MODERN AUTH MODAL CSS ===== */ 74.auth-modal-overlay { 75 position: fixed !important; 76 top: 0 !important; 77 left: 0 !important; 78 right: 0 !important; 79 bottom: 0 !important; 80 background: rgba(0, 0, 0, 0.6) !important; 81 backdrop-filter: blur(4px) !important; 82 display: flex !important; 83 align-items: center !important; 84 justify-content: center !important; 85 z-index: 99999 !important; 86 padding: 20px !important; 87} 88 89.auth-modal-content { 90 background: white !important; 91 border-radius: 24px !important; 92 padding: 40px !important; 93 width: 100% !important; 94 max-width: 440px !important; 95 box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important; 96 border: none !important; 97 position: relative !important; 98 max-height: 90vh !important; 99 overflow-y: auto !important; 100 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important; 101} 102 103/* Header styling */ 104.auth-modal-content h2 { 105 font-size: 28px !important; 106 font-weight: 700 !important; 107 color: #111827 !important; 108 margin: 0 0 8px 0 !important; 109 text-align: center !important; 110} 111 112.auth-modal-content p { 113 color: #6B7280 !important; 114 font-size: 16px !important; 115 text-align: center !important; 116 margin: 0 0 32px 0 !important; 117 line-height: 1.5 !important; 118} 119 120/* Close button */ 121.auth-modal-content > div:first-child button { 122 position: absolute !important; 123 top: 20px !important; 124 right: 20px !important; 125 background: #F3F4F6 !important; 126 border: none !important; 127 border-radius: 50% !important; 128 width: 40px !important; 129 height: 40px !important; 130 display: flex !important; 131 align-items: center !important; 132 justify-content: center !important; 133 color: #6B7280 !important; 134 cursor: pointer !important; 135 transition: all 0.2s ease !important; 136} 137 138.auth-modal-content > div:first-child button:hover { 139 background: #E5E7EB !important; 140 color: #374151 !important; 141 transform: scale(1.05) !important; 142} 143 144/* Social login buttons */ 145.auth-modal-content button[type="button"]:not(.auth-modal-content > div:first-child button) { 146 width: 100% !important; 147 display: flex !important; 148 align-items: center !important; 149 justify-content: center !important; 150 padding: 16px 24px !important; 151 border-radius: 12px !important; 152 font-size: 16px !important; 153 font-weight: 500 !important; 154 transition: all 0.2s ease !important; 155 cursor: pointer !important; 156 margin-bottom: 12px !important; 157} 158 159/* Google button */ 160.auth-modal-content button[type="button"]:first-of-type { 161 background: white !important; 162 border: 2px solid #E5E7EB !important; 163 color: #374151 !important; 164} 165 166.auth-modal-content button[type="button"]:first-of-type:hover { 167 border-color: #D1D5DB !important; 168 background: #F9FAFB !important; 169 transform: translateY(-1px) !important; 170 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important; 171} 172 173/* Facebook button */ 174.auth-modal-content button[type="button"]:nth-of-type(2) { 175 background: #1877F2 !important; 176 border: 2px solid #1877F2 !important; 177 color: white !important; 178} 179 180.auth-modal-content button[type="button"]:nth-of-type(2):hover { 181 background: #166FE5 !important; 182 border-color: #166FE5 !important; 183 transform: translateY(-1px) !important; 184 box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3) !important; 185} 186 187/* Divider */ 188.auth-modal-content .relative { 189 margin: 32px 0 !important; 190} 191 192.auth-modal-content .relative span { 193 background: white !important; 194 color: #9CA3AF !important; 195 font-size: 14px !important; 196 font-weight: 500 !important; 197 padding: 0 16px !important; 198} 199 200/* Form inputs */ 201.auth-modal-content label { 202 display: block !important; 203 font-size: 14px !important; 204 font-weight: 500 !important; 205 color: #374151 !important; 206 margin-bottom: 8px !important; 207} 208 209.auth-modal-content input { 210 width: 100% !important; 211 padding: 16px !important; 212 border: 2px solid #E5E7EB !important; 213 border-radius: 12px !important; 214 font-size: 16px !important; 215 transition: all 0.2s ease !important; 216 background: white !important; 217 color: #111827 !important; 218} 219
220.auth-modal-content input:focus { 221 outline: none !important; 222 border-color: #3B82F6 !important; 223 box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important; 224} 225 226.auth-modal-content input::placeholder { 227 color: #9CA3AF !important; 228} 229 230/* Password field with eye icon */ 231.auth-modal-content .relative input[type="password"], 232.auth-modal-content .relative input[type="text"] { 233 padding-right: 48px !important; 234} 235 236.auth-modal-content .relative button[type="button"] { 237 position: absolute !important; 238 right: 12px !important; 239 top: 50% !important; 240 transform: translateY(-50%) !important; 241 background: none !important; 242 border: none !important; 243 color: #9CA3AF !important; 244 padding: 8px !important; 245 cursor: pointer !important; 246 width: auto !important; 247 height: auto !important; 248 margin: 0 !important; 249} 250 251.auth-modal-content .relative button[type="button"]:hover { 252 color: #6B7280 !important; 253 background: none !important; 254 transform: translateY(-50%) !important; 255 box-shadow: none !important; 256} 257 258/* Submit button */ 259.auth-modal-content button[type="submit"] { 260 width: 100% !important; 261 background: #000000 !important; 262 color: white !important; 263 border: none !important; 264 border-radius: 12px !important; 265 padding: 16px 24px !important; 266 font-size: 16px !important; 267 font-weight: 600 !important; 268 cursor: pointer !important; 269 transition: all 0.2s ease !important; 270 margin-top: 24px !important; 271} 272 273.auth-modal-content button[type="submit"]:hover:not(:disabled) { 274 background: #1F2937 !important; 275 transform: translateY(-1px) !important; 276 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important; 277} 278 279.auth-modal-content button[type="submit"]:disabled { 280 opacity: 0.5 !important; 281 cursor: not-allowed !important; 282 transform: none !important; 283 box-shadow: none !important; 284} 285 286/* Form spacing */ 287.auth-modal-content form > div { 288 margin-bottom: 24px !important; 289} 290 291/* Error message */ 292.auth-modal-content .bg-red-50 { 293 background: #FEF2F2 !important; 294 border: 1px solid #FECACA !important; 295 color: #DC2626 !important; 296 padding: 16px !important; 297 border-radius: 12px !important; 298 font-size: 14px !important; 299 margin-bottom: 24px !important; 300} 301 302/* Mode switch */ 303.auth-modal-content > div:last-child { 304 text-align: center !important; 305 margin-top: 24px !important; 306} 307 308.auth-modal-content > div:last-child span { 309 color: #6B7280 !important; 310 font-size: 14px !important; 311} 312 313.auth-modal-content > div:last-child button { 314 color: #3B82F6 !important; 315 font-size: 14px !important; 316 font-weight: 500 !important; 317 background: none !important; 318 border: none !important; 319 cursor: pointer !important; 320 padding: 0 !important; 321 width: auto !important; 322 height: auto !important; 323} 324 325.auth-modal-content > div:last-child button:hover { 326 color: #2563EB !important; 327 background: none !important; 328 transform: none !important; 329 box-shadow: none !important; 330} 331 332/* Terms text */ 333.auth-modal-content .text-xs { 334 font-size: 12px !important; 335 color: #9CA3AF !important; 336 text-align: center !important; 337 line-height: 1.5 !important; 338 margin-top: 16px !important; 339} 340 341.auth-modal-content .text-xs a { 342 color: #3B82F6 !important; 343 text-decoration: none !important; 344} 345 346.auth-modal-content .text-xs a:hover { 347 color: #2563EB !important; 348} 349 350/* Mobile responsive */ 351@media (max-width: 480px) { 352 .auth-modal-content { 353 margin: 10px !important; 354 padding: 24px !important; 355 max-width: calc(100vw - 20px) !important; 356 border-radius: 16px !important; 357 } 358 359 .auth-modal-content h2 { 360 font-size: 24px !important; 361 } 362 363 .auth-modal-content p { 364 font-size: 14px !important; 365 } 366} 367 368/* ===== OTHER RESPONSIVE CSS FIXES ===== */ 369@media (max-width: 768px) { 370 .container { 371 padding: 0 1rem !important; 372 max-width: 100% !important; 373 } 374 375 .header-nav { 376 display: none !important; 377 } 378 379 .mobile-hidden { 380 display: none !important; 381 } 382 383 .hero-title { 384 font-size: 2.5rem !important; 385 line-height: 1.1 !important; 386 } 387 388 .hero-subtitle { 389 font-size: 1.125rem !important; 390 padding: 0 1rem !important; 391 } 392 393 .hero-buttons { 394 flex-direction: column !important; 395 gap: 1rem !important; 396 width: 100% !important; 397 } 398 399 .hero-button { 400 width: 100% !important; 401 max-width: 300px !important; 402 margin: 0 auto !important; 403 } 404 405 .petition-grid { 406 grid-template-columns: 1fr !important; 407 gap: 1rem !important; 408 } 409 410 .petition-card { 411 margin: 0 auto !important; 412 max-width: 400px !important; 413 } 414} 415 416@media (max-width: 640px) { 417 nav { 418 height: 60px !important; 419 gap: 1rem !important; 420 } 421 422 nav > div:last-child { 423 gap: 0.5rem !important; 424 } 425 426 nav button { 427 font-size: 0.75rem !important; 428 padding: 0.375rem 0.75rem !important; 429 } 430} 431 432.mobile-hidden { 433 display: block; 434} 435 436.mobile-only { 437 display: none; 438} 439 440@media (max-width: 768px) { 441 .mobile-hidden { 442 display: none !important; 443 } 444 445 .mobile-only { 446 display: block !important; 447 } 448} 449`;function jm({language:e}){const t=ct(),n=(r,s)=>{t(r==="petition"&&s?`/sign/${s}`:r==="create"?"/create":"/")};return m.jsx(P4,{language:e,onNavigate:n})}function W8({language:e}){const t=ct(),{slug:n}=ei(),r=(s,o)=>{t(s==="petition"&&o?`/sign/${o}`:s==="create"?"/create":"/")};if(!n)return m.jsx("div",{children:"No slug found"});try{return m.jsx(N4,{language:e,petitionSlug:n,onNavigate:r})}catch(s){return console.error("ð§ Error rendering PetitionPage:",s),m.jsx("div",{children:"Error loading petition page"})}}function q8({language:e,user:t,onOpenAuth:n}){const r=ct(),s=(o,i)=>{r(o==="petition"&&i?`/sign/${i}`:o==="create"?"/create":o==="/dashboard"?"/dashboard":"/")};return m.jsx(f8,{language:e,onNavigate:s,user:t,onOpenAuth:n})}function V8(){return m.jsx(d8,{})}function G8({language:e,onLanguageToggle:t,user:n,onOpenAuth:r,onLogout:s}
449){const o=ct(),a=Zo().pathname.startsWith("/share/"),c=(l,d)=>{o(l==="petition"&&d?`/sign/${d}`:l==="create"||l==="/create"?"/create":l==="/dashboard"?"/dashboard":l==="/my-petitions"?"/my-petitions":l==="/"?"/":l)},u=m.jsx(hk,{language:e,onLanguageToggle:t,onNavigate:c,user:n,onOpenAuth:r,onLogout:s});return a?m.jsx("div",{className:"sp-header-desktop",children:u}):u}function Y8(){const[e,t]=O.useState("he"),[n,r]=O.useState(null),[s,o]=O.useState(!1),[i,a]=O.useState("login"),[c,u]=O.useState(!0);O.useEffect(()=>{},[]),console.log("ð¡ï¸ App render state:",{showConsentBanner:c,showAuthModal:s,user:!!n,privacyConfigExists:!!ga});const l=()=>{t(g=>g==="en"?"he":"en")},d=g=>{console.log("ð§ Consent preferences updated:",g),u(!1)};O.useEffect(()=>{const g=localStorage.getItem("auth_token"),_=localStorage.getItem("user_data");if(g&&_)try{const v=JSON.parse(_);nf||console.log("ð§ Found existing user"),r(v)}catch(v){console.error("ð§ Error parsing saved user data:",v),localStorage.removeItem("auth_token"),localStorage.removeItem("user_data")}g||fetch("/api/v1/user",{credentials:"include",headers:{Accept:"application/json"}}).then(v=>v.ok?v.json():null).then(v=>{const S=v?.user||v;if(S&&S.id){const x=v?.token||v?.access_token||"";localStorage.setItem("user_data",JSON.stringify(S)),x&&localStorage.setItem("auth_token",x),console.log("ð§ Restored user from server session"),r(S)}}).catch(()=>{})},[]),O.useEffect(()=>{const g=new URLSearchParams(window.location.search),_=g.get("auth_success"),v=g.get("token"),S=g.get("user"),x=g.get("auth_error");if(g.get("login")==="true"&&(a("login"),o(!0),window.history.replaceState({},document.title,window.location.pathname)),_==="1"&&v&&S)try{const T=JSON.parse(decodeURIComponent(S));localStorage.setItem("auth_token",v),localStorage.setItem("user_data",JSON.stringify(T)),nf||console.log("ð§ Social login success"),r(T),window.history.replaceState({},document.title,window.location.pathname)}catch(T){console.error("ð§ Error parsing social login data:",T)}else x&&(console.error("ð§ Social login error:",x),alert("ש×××× ××ת××ר×ת. ×× × × ×¡× ×©××."),window.history.replaceState({},document.title,window.location.pathname))},[]);const f=async()=>{try{const g=localStorage.getItem("auth_token");g&&await fetch("/api/v1/logout",{method:"POST",headers:{Authorization:`Bearer ${g}`,"Content-Type":"application/json"}})}catch{}finally{localStorage.removeItem("auth_token"),localStorage.removeItem("user_data"),r(null)}},p=g=>{console.log("ð§ openAuthModal called with:",g),a(g),o(!0)},h=()=>{console.log("ð§ closeAuthModal called"),o(!1);const g=localStorage.getItem("auth_token"),_=localStorage.getItem("user_data");if(g&&_&&!n)try{const v=JSON.parse(_);r(v)}catch(v){console.error("ð§ Error parsing user data after modal close:",v)}};return O.useEffect(()=>{console.log("ð§ App state changed:",{showAuthModal:s,authMode:i,user:n})},[s,i,n]),m.jsxs(F4,{children:[m.jsxs(I4,{children:[m.jsx(D4,{}),m.jsx(Nm,{children:m.jsxs(sg,{children:[m.jsx(B4,{}),m.jsxs("div",{dir:"rtl",style:{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',minHeight:"100vh",background:"#ffffff",overflow:"hidden auto",display:"flex",flexDirection:"column"},children:[m.jsx("style",{children:z8}),m.jsx(G8,{language:e,onLanguageToggle:l,user:n,onOpenAuth:p,onLogout:f}),m.jsx("main",{style:{flex:1},children:m.jsx(O.Suspense,{fallback:m.jsx(O8,{}),children:m.jsxs(og,{children:[m.jsx(H,{path:"/",element:m.jsx(jm,{language:e})}),m.jsx(H,{path:"/sign/:slug",element:m.jsx(W8,{language:e})}),m.jsx(H,{path:"/create",element:m.jsx(q8,{language:e,user:n,onOpenAuth:p})}),m.jsx(H,{path:"/share/callback",element:m.jsx(P8,{})}),m.jsx(H,{path:"/search",element:m.jsx(S8,{language:"he",isRTL:!0})}),m.jsx(H,{path:"/dashboard",element:m.jsx(V8,{})}),m.jsx(H,{path:"/admin/main",element:m.jsxs(m.Fragment,{children:[console.log("ð¥ Route /admin/main reached! User:",n),m.jsx(ae,{user:n,language:e,children:m.jsx(N8,{language:e})})]})}),m.jsx(H,{path:"/admin/emails",element:m.jsx(ae,{user:n,language:e,children:m.jsx(z4,{})})}),m.jsx(H,{path:"/admin/email/templates",element:m.jsx(ae,{user:n,language:e,children:m.jsx(W4,{})})}),m.jsx(H,{path:"/admin/campaigns",element:m.jsx(ae,{user:n,language:e,children:m.jsx(q4,{})})}
449),m.jsx(H,{path:"/admin/controls",element:m.jsx(ae,{user:n,language:e,children:m.jsx(G4,{})})}),m.jsx(H,{path:"/admin/operations",element:m.jsx(ae,{user:n,language:e,children:m.jsx(Y4,{})})}),m.jsx(H,{path:"/admin/scheduled-campaigns",element:m.jsx(ae,{user:n,language:e,children:m.jsx(V4,{})})}),m.jsx(H,{path:"/admin",element:m.jsx(ae,{user:n,language:e,children:m.jsx(M4,{})})}),m.jsx(H,{path:"/admin/petitions",element:m.jsx(ae,{user:n,language:e,children:m.jsx(M8,{language:e})})}),m.jsx(H,{path:"/admin/activity",element:m.jsx(ae,{user:n,language:e,children:m.jsx($4,{})})}),m.jsx(H,{path:"/admin/petition-approvals",element:m.jsx(ae,{user:n,language:e,children:m.jsx(Q4,{})})}),m.jsx(H,{path:"/admin/segments-coverage",element:m.jsx(ae,{user:n,language:e,children:m.jsx(t8,{})})}),m.jsx(H,{path:"/admin/email-orchestration",element:m.jsx(ae,{user:n,language:e,children:m.jsx(of,{})})}),m.jsx(H,{path:"/admin/email-orchestration/:tab",element:m.jsx(ae,{user:n,language:e,children:m.jsx(of,{})})}),m.jsx(H,{path:"/admin/campaign-progress-shadow",element:m.jsx(ae,{user:n,language:e,children:m.jsx(l8,{})})}),m.jsx(H,{path:"/admin/orchestration/decisions",element:m.jsx(ae,{user:n,language:e,children:m.jsx(u8,{})})}),m.jsx(H,{path:"/admin/segments",element:m.jsx(ae,{user:n,language:e,children:m.jsx(c8,{})})}),m.jsx(H,{path:"/admin/orchestration",element:m.jsx(ae,{user:n,language:e,children:m.jsx(a8,{})})}),m.jsx(H,{path:"/admin/orchestration/v2",element:m.jsx(ae,{user:n,language:e,children:m.jsx(i8,{})})}),m.jsx(H,{path:"/admin/reports",element:m.jsx(ae,{user:n,language:e,children:m.jsx(o8,{})})}),m.jsx(H,{path:"/admin/promotions",element:m.jsx(ae,{user:n,language:e,children:m.jsx(s8,{})})}),m.jsx(H,{path:"/admin/journeys",element:m.jsx(ae,{user:n,language:e,children:m.jsx(n8,{})})}),m.jsx(H,{path:"/admin/simulator",element:m.jsx(ae,{user:n,language:e,children:m.jsx(r8,{})})}),m.jsx(H,{path:"/admin/petition-updates",element:m.jsx(ae,{user:n,language:e,children:m.jsx(Z4,{})})}),m.jsx(H,{path:"/admin/email-settings",element:m.jsx(ae,{user:n,language:e,children:m.jsx(e8,{})})}),m.jsx(H,{path:"/edit-petition/:slug",element:m.jsx(R8,{language:"he"})}),m.jsx(H,{path:"/sign/:slug/manage",element:m.jsx(H8,{language:e})}),m.jsx(H,{path:"/sign/:slug/updates",element:m.jsx(L8,{language:e})}),m.jsx(H,{path:"/sign/:slug/hero",element:m.jsx($8,{language:e})}),m.jsx(H,{path:"/sign/:slug/share",element:m.jsx(U8,{language:e})}),m.jsx(H,{path:"/share/:slug",element:m.jsx(m8,{language:e})}),m.jsx(H,{path:"/share/:slug/recommendations",element:m.jsx(g8,{language:e})}),m.jsx(H,{path:"/admin/security",element:m.jsx(ae,{user:n,language:e,children:m.jsx(U4,{})})}),m.jsx(H,{path:"/sign/:slug/signers",element:m.jsx(xa,{title:"רש××ת ××ת×××",description:"ת××× × ×× ×פ×ת××. ×קר×× ×ª××× ×צפ×ת ×רש××ת ×××ת×××."})}),m.jsx(H,{path:"/admin/pricing/templates",element:m.jsx(H4,{})}),m.jsx(H,{path:"/admin/subscriptions",element:m.jsx(ae,{user:n,language:e,children:m.jsx(K4,{})})}),m.jsx(H,{path:"/admin/ux-engine",element:m.jsx(ae,{user:n,language:e,children:m.jsx(X4,{})})}),m.jsx(H,{path:"/admin/fb-campaigns",element:m.jsx(ae,{user:n,language:e,children:m.jsx(J4,{})})}),m.jsx(H,{path:"/admin/sign-form-tests",element:m.jsx(ae,{user:n,language:e,children:m.jsx(sf,{})})}),m.jsx(H,{path:"/admin/sign-form-tests/:experimentId",element:m.jsx(ae,{user:n,language:e,children:m.jsx(sf,{})})}),m.jsx(H,{path:"/admin/phone-field-tests",element:m.jsx(af,{})}),m.jsx(H,{path:"/admin/phone-field-tests/:experimentId",element:m.jsx(af,{})}),m.jsx(H,{path:"/admin/ab-testing",element:m.jsx(ae,{user:n,language:e,children:m.jsx(rf,{})})}),m.jsx(H,{path:"/admin/ab-testing/:experimentId",element:m.jsx(ae,{user:n,language:e,children:m.jsx(rf,{})})}),m.jsx(H,{path:"/sign/:slug/stats",element:m.jsx(xa,{title:"ס×××ס×××§×ת",description:"ת××× × ×× ×פ×ת××. ×קר×× ×ª××× ×צפ×ת ×ס×××ס×××§×ת ×פ×ר××ת."})}),m.jsx(H,{path:"/promotion/success",element:m.jsx(cf,{})}),m.jsx(H,{path:"/payment/success",element:m.jsx(cf,{})}),m.jsx(H,{path:"/promotion/paypal-subscription-return",element:m.jsx(E8,{})}),m.jsx(H,{path:"/contact",element:m.jsx(v8,{})}),m.jsx(H,{path:"/sign/:slug/promote",element:m.jsx(xa,{title:"×§×××× ×¢×¦×××",description:"ת××× × ×× ×פ×ת××. ×קר×× ×ª××× ××§×× ×ת ×עצ××× ×©×× ×תש×××."})}),m.jsx(H,{path:"/do-not-sell",element:m.jsx(D8,{})}),m.jsx(H,{path:"/privacy-policy",element:m.jsx(A8,{})}),m.jsx(H,{path:"/cookie-policy",element:m.jsx(T8,{})}),m.jsx(H,{path:"/terms-of-service",element:m.jsx(k8,{})}),m.jsx(H,{path:"/community-guidelines",element:m.jsx(I8,{})}),m.jsx(H,{path:"/profile",element:m.jsx(_8,{language:e})}),m.jsx(H,{path:"/debug/pixel",element:m.jsx(F8,{})}),m.jsx(H,{path:"/forgot-password",element:m.jsx(C8,{language:e})}),m.jsx(H,{path:"/reset-password/:token",element:m.jsx(w8,{language:e})}),m.jsx(H,{path:"/report",element:m.jsx(b8,{})}),m.jsx(H,{path:"/quick-sign-settings",element:m.jsx(j8,{language:e})})]})})}),m.jsx(Fk,{language:e}),m.jsx(t4,{isOpen:s,onClose:h,initialMode:i}),(console.log("ð¡ï¸ Banner render check:",{showConsentBanner:c,willRender:c}),null),c&&m.jsx(wk,{googleAnalyticsId:ga.googleAnalyticsId,facebookPixelId:ga.facebookPixelId,onConsentChange:d}),m.jsx(R4,{user:n,onNavigate:(g,_)=>{console.log("ð§ PendingPetitionHandler navigate:",g,_),g==="petition"&&_?.slug?window.location.href=`/sign/${_.slug}`:g==="/dashboard"&&(window.location.href="/dashboard")}})]})]})})]}),m.jsx(O4,{})]})}const uf="atzuma_chunk_reload_at",K8=60*1e3;function Um(){const e=Date.now();let t=0;try{t=Number(sessionStorage.getItem(uf)||0)}catch{return!1}
449if(e-t<K8)return!1;try{sessionStorage.setItem(uf,String(e))}catch{return!1}return window.location.reload(),!0}window.addEventListener("unhandledrejection",e=>{(e.reason?.message?.includes("dynamically imported module")||e.reason?.message?.includes("Failed to fetch"))&&Um()&&e.preventDefault()});uk();document.documentElement.setAttribute("dir","rtl");document.documentElement.setAttribute("lang","he");window.addEventListener("vite:preloadError",()=>{Um()});function lf(){let e=document.getElementById("root");e||(e=document.createElement("div"),e.id="root",document.body.insertBefore(e,document.body.firstChild)),dk.createRoot(e).render(m.jsx(Y8,{}))}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",lf):lf();export{Ke as F,Jo as G,sD as H,ye as P,Bk as Q,W as _,e4 as a,rD as b,Xo as c,ZI as f,Dn as g,m as j,Q8 as p,Ge as q,Go as s,$m as u}; 450//# sourceMappingURL=index-BtgGoHYl.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.