@emailmaker/emailmaker 1.0.36 → 1.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/asset-manifest.json +80 -80
- package/emailmaker-esm.js +1 -1
- package/emailmaker.d.ts +1 -0
- package/emailmaker.js +1 -1
- package/iframe/429.js +1 -1
- package/iframe/css/sandbox.css +12 -6
- package/iframe/{iframe-eblock.603d533b4efe6f5579a6.html → iframe-eblock.06d3786ea0462c884b7e.html} +1 -1
- package/iframe/{iframe.603d533b4efe6f5579a6.html → iframe.06d3786ea0462c884b7e.html} +1 -1
- package/iframe/js/cssbeautify.js +1 -1
- package/iframe/sandbox-eblock.js +1 -1
- package/iframe/sandbox.js +1 -1
- package/package.json +1 -1
- package/plugin.html +1 -1
- package/plugin_blocks_test.html +1 -1
- package/plugin_default.html +1 -1
- package/plugin_s.html +1 -1
- package/static/css/2208.56ea0abb.css +1 -0
- package/static/css/{5571.e9720eda.css → 5571.504f05c9.css} +1 -1
- package/static/css/6677.6f28a0c0.css +1 -0
- package/static/css/8458.31d6cfe0.css +0 -0
- package/static/js/1399.f981f0f4.js +1 -0
- package/static/js/160.c2020dc9.js +1 -0
- package/static/js/18.7d3e3257.js +1 -0
- package/static/js/2059.6f21f841.js +2 -0
- package/static/js/2208.cb758bc6.js +1 -0
- package/static/js/2299.afe87d63.chunk.js +1 -0
- package/static/js/2587.4ec88069.js +2 -0
- package/static/js/2896.ce4941ab.js +2 -0
- package/static/js/3447.63d0aafa.js +1 -0
- package/static/js/{3682.d155b110.js → 3682.4db8ba34.js} +2 -2
- package/static/js/3710.193d2d5a.chunk.js +1 -0
- package/static/js/4035.1e8d8ad5.js +1 -0
- package/static/js/4877.5b496b72.js +1 -0
- package/static/js/5552.9e96baf9.js +1 -0
- package/static/js/5571.30a43d6b.js +1 -0
- package/static/js/723.e748d062.js +2 -0
- package/static/js/7291.e2615c74.js +1 -0
- package/static/js/78.8f294da6.js +1 -0
- package/static/js/8458.657f471c.js +1 -0
- package/static/js/8689.63fa1dc3.chunk.js +1 -0
- package/static/js/9154.7ebae9e2.js +1 -0
- package/static/js/9335.20ecdadf.js +1 -0
- package/static/js/9560.50289051.js +2 -0
- package/static/js/9593.8a0e7a2e.js +2 -0
- package/static/js/{2582.d77da683.js.LICENSE.txt → 9593.8a0e7a2e.js.LICENSE.txt} +16 -0
- package/static/js/emailmaker_core.24103916.js +1 -0
- package/static/js/mergeTags/locale1.490fa827.chunk.js +1 -0
- package/static/media/fb.png +0 -0
- package/static/media/ig.png +0 -0
- package/static/media/tg.png +0 -0
- package/static/media/tw.png +0 -0
- package/static/media/vk.png +0 -0
- package/static/media/yd.png +0 -0
- package/static/media/yt.png +0 -0
- package/translations.pot +256 -212
- package/static/css/2256.d0db3199.css +0 -1
- package/static/css/6677.3a2b7cfe.css +0 -1
- package/static/css/698.9a48c3be.css +0 -1
- package/static/js/1399.cb6eb2fa.js +0 -1
- package/static/js/1792.81307cce.js +0 -1
- package/static/js/1795.8ada4a9a.js +0 -1
- package/static/js/197.a135382e.js +0 -1
- package/static/js/2223.17806e9a.js +0 -2
- package/static/js/2256.ade5bf3a.js +0 -1
- package/static/js/2464.2c009f8c.js +0 -2
- package/static/js/2582.d77da683.js +0 -2
- package/static/js/2896.fac80e3c.js +0 -2
- package/static/js/3959.42824ee0.js +0 -1
- package/static/js/4877.b90d1691.js +0 -1
- package/static/js/515.16219a24.js +0 -2
- package/static/js/515.16219a24.js.LICENSE.txt +0 -6
- package/static/js/5571.383ce8ce.js +0 -1
- package/static/js/5606.a93f532c.js +0 -1
- package/static/js/5927.d93485f1.chunk.js +0 -1
- package/static/js/5957.d2ad88af.js +0 -2
- package/static/js/6567.e70469eb.js +0 -1
- package/static/js/698.6e8cee9e.js +0 -1
- package/static/js/7471.ae85b39d.js +0 -1
- package/static/js/8179.acf16a1a.chunk.js +0 -1
- package/static/js/8236.bdefaa6b.js +0 -2
- package/static/js/8689.e2d021af.chunk.js +0 -1
- package/static/js/8738.3ba7b2e7.js +0 -2
- package/static/js/8738.3ba7b2e7.js.LICENSE.txt +0 -87
- package/static/js/9019.7efd13af.js +0 -2
- package/static/js/9019.7efd13af.js.LICENSE.txt +0 -96
- package/static/js/9328.74394e00.js +0 -1
- package/static/js/9649.b9c16408.js +0 -1
- package/static/js/9907.0d22d89d.js +0 -1
- package/static/js/emailmaker_core.ea017ac4.js +0 -1
- package/static/js/mergeTags/locale1.3448e6cb.chunk.js +0 -1
- /package/static/css/{1795.3b54559d.css → 5552.3b54559d.css} +0 -0
- /package/static/js/{8236.bdefaa6b.js.LICENSE.txt → 2059.6f21f841.js.LICENSE.txt} +0 -0
- /package/static/js/{2223.17806e9a.js.LICENSE.txt → 2587.4ec88069.js.LICENSE.txt} +0 -0
- /package/static/js/{2896.fac80e3c.js.LICENSE.txt → 2896.ce4941ab.js.LICENSE.txt} +0 -0
- /package/static/js/{3682.d155b110.js.LICENSE.txt → 3682.4db8ba34.js.LICENSE.txt} +0 -0
- /package/static/js/{5957.d2ad88af.js.LICENSE.txt → 723.e748d062.js.LICENSE.txt} +0 -0
- /package/static/js/{2464.2c009f8c.js.LICENSE.txt → 9560.50289051.js.LICENSE.txt} +0 -0
- /package/static/media/{ai-image.7c42c2e1.png → ai-image.png} +0 -0
- /package/static/media/{codicon.f13d28f3.ttf → codicon.ttf} +0 -0
- /package/static/media/{empty-image.1827d656.png → empty-image.png} +0 -0
- /package/static/media/{frame_dark.318d7ed5.png → frame_dark.png} +0 -0
- /package/static/media/{frame_light.22a9b4ec.png → frame_light.png} +0 -0
- /package/static/media/{frame_template_gallery.85693b39.png → frame_template_gallery.png} +0 -0
- /package/static/media/{sign_up_01.33327158.png → sign_up_01.png} +0 -0
- /package/static/media/{sign_up_01_blocks.5538cfdb.png → sign_up_01_blocks.png} +0 -0
- /package/static/media/{sign_up_02.d99d2aa6.png → sign_up_02.png} +0 -0
- /package/static/media/{sign_up_02_blocks.837fc2c9.png → sign_up_02_blocks.png} +0 -0
- /package/static/media/{sign_up_03.5545ffad.png → sign_up_03.png} +0 -0
- /package/static/media/{sign_up_03_blocks.126601f7.png → sign_up_03_blocks.png} +0 -0
- /package/static/media/{sign_up_04.398a4ca5.png → sign_up_04.png} +0 -0
- /package/static/media/{sign_up_04_blocks.255c5c07.png → sign_up_04_blocks.png} +0 -0
- /package/static/media/{sign_up_05.4c58df1b.png → sign_up_05.png} +0 -0
- /package/static/media/{sign_up_05_blocks.431b6844.png → sign_up_05_blocks.png} +0 -0
- /package/static/media/{video.854adea5.png → video.png} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[1795],{13329:(e,t,i)=>{i.d(t,{D3:()=>u,RS:()=>l});var n=i(45934),s=i(92810),o=i(41664),a=i(23397),r=i(23580),c=i(95152);const d=(0,o.Q)();function l(e,t,i){e instanceof c.m||(e=(0,r.My)(e));e.getOrCreateInstance(d,(()=>new a.v)).fire({id:t,payload:i})}const u=(e,t)=>{const i=function(e,t){return(0,r.My)(e).getOrCreateInstance(d,(()=>new a.v)).addEventListener}((0,n.Pj)());(0,s.useEffect)((()=>{const n=i((({id:i,payload:n})=>{i===e&&t(n)}));return()=>n.dispose()}),[i,e,t])}},95152:(e,t,i)=>{i.d(t,{m:()=>a});var n=i(23397),s=i(77509);function o(e){return`service_container_${e}`}class a extends s.j{constructor(e){super(),this._parent=e,this._injections=Object.create(null),this._emitter=this.addDisposable(new n.v)}inject(e,t,i){if("function"===typeof t){let n=this._injections[e],s="function"===typeof n?n():n;const o=this._injections[e]=()=>(s=t(this,s),s);i&&o()}else this._injections[e]=()=>t;this._emitter.fire(e)}_find(e){var t;return this._injections[e]||(null===(t=this._parent)||void 0===t?void 0:t._find(e))}_onInject(e,t,i=new s.j){return i.addDisposable(this._emitter.addEventListener((n=>{e===n&&(i.dispose(),t(this.getInstance(n)))}))),this._parent&&i.addDisposable(this._parent._onInject(e,t,i)),this.addDisposable(i),i}getInstance(e){const t=this._find(e);if("function"===typeof t)return t()}getOrCreateInstance(e,t){const i=this._find(e);if("function"===typeof i)return i();{const i=t(this);return this.inject(e,i),i}}getInstanceAsync(e){const t=this._find(e);return"function"===typeof t?Promise.resolve(t()):new Promise((t=>this._onInject(e,(()=>t(this.getInstance(e))))))}addService(e,t){const i=o(e);this.inject(i,((e,i=[])=>i.indexOf(t)<0?[...i,t]:i));const n=new s.j;return n.addDispose((()=>{this.inject(i,((e,i=[])=>i.filter((e=>e!==t))))})),n}getServices(e){var t;const i=o(e);return[...this.getInstance(i)||[],...(null===(t=this._parent)||void 0===t?void 0:t.getServices(e))||[]]}createChild(){return new a(this)}dispose(){this._injections=Object.create(null)}}},23397:(e,t,i)=>{i.d(t,{v:()=>s});var n=i(77509);class s extends n.j{constructor(e){super(),this._options=e,this._listeners=[],this.fire=e=>{if(!this.isDisposed()){let t;const i=this._listeners;for(const n of i){if(!1===t)return!1;t=t instanceof Promise?t.then((e=>!1!==e&&!this.isDisposed()&&n(e))).catch((e=>console.log(e))):n(e)}return t}},this.addEventListener=e=>{const t=this._listeners;var i;(t.push(e),1===t.length)&&((null===(i=this._options)||void 0===i?void 0:i.onFirstListenerAdd)&&this._options.onFirstListenerAdd());return{dispose:()=>{const i=t.indexOf(e);var n;i>=0&&(t.splice(i),t.length||(null===(n=this._options)||void 0===n?void 0:n.onFirstListenerAdd)&&this._options.onLastListenerRemove())}}},this.event=this.addEventListener}}let o;!function(e){function t(e){let t;const i=new s({onFirstListenerAdd(){t=e(i.fire)},onLastListenerRemove(){t.dispose()}});return i.event}e.snapshot=t,e.filter=function(e,i){return t((t=>e((e=>i(e)&&t(e)))))},e.map=function(e,i){return t((t=>e((e=>t(i(e))))))}}(o||(o={}))},93982:(e,t,i)=>{i.d(t,{Zc:()=>d,_q:()=>l,cZ:()=>r,dB:()=>c,ml:()=>u});var n=i(45934),s=i(41664),o=i(23580),a=i(55654);function r(e){return(0,s.Q)(e)}function c(e,t){return(0,o.My)(e).getOrCreateInstance(t,(()=>new a.lt))}function d(e,t){return(0,o.My)(e).getOrCreateInstance(t,(()=>new a.lt)).event}function l(e){return u(e).event}function u(e){return c((0,n.Pj)(),e)}},32269:(e,t,i)=>{i.d(t,{Cb:()=>Z,Cl:()=>h,DI:()=>L,Dx:()=>T,EU:()=>N,HT:()=>$,Hy:()=>G,Id:()=>p,Np:()=>D,Qi:()=>z,Tr:()=>X,X7:()=>V,XZ:()=>x,Yq:()=>v,Z1:()=>H,_9:()=>U,_q:()=>W,au:()=>k,d_:()=>B,el:()=>b,ez:()=>S,fq:()=>g,gq:()=>O,i0:()=>P,iV:()=>R,jG:()=>d.j,p6:()=>C,sh:()=>F,vl:()=>l.v,wB:()=>A});var n=i(74267),s=i(92810),o=i(85163),a=i(1741),r=i.n(a),c=i(45695),d=i(77509),l=i(23397),u=i(71210),m=i(70082);const p=e=>{Object.keys(o.A9).forEach((t=>{"onboarding_success"!==e.get(o.A9[t])&&e.remove(o.A9[t])}))};function h(e){const t=(0,n.A)(e);return isNaN(t)?new Date(e):t}const v=(e,t,i=!1)=>{Date;const n=new Date,s=e.getDate()===n.getDate()&&e.getMonth()===n.getMonth()&&e.getFullYear()===n.getFullYear();if(i&&s){const i=Math.floor((n-e)/1e3),s=Math.floor(i/60),o=Math.floor(s/60);if(i<60)return t("Just now");if(o>0){const e=s%60;return`${o} ${t("hour","hours",o)} ${e} ${t("minute","minutes",e)}`}return`${s} ${t("minute","minutes",s)}`}{const t=new Intl.DateTimeFormat(navigator.language,{dateStyle:"short"}),i=new Intl.DateTimeFormat(navigator.language,{timeStyle:"short"});return t.format(e)+" "+i.format(e)}},g=e=>{const t=e.match(/(\(copy\))( \d+)?$/),i=null===t||void 0===t?void 0:t[1],n=null===t||void 0===t?void 0:t[2];return i?n?`${e.slice(0,-n.length)} ${+n.slice(1)+1}`:`${e} 2`:`${e} (copy)`};function f(e,t,i){const n=new Map,s=new RegExp(`(${t})(.*?)(${i})`,"gis");return e=e.replaceAll(s,((e,t,i,s)=>{const o=(0,u.l)();return n.set(o,i),t+o+s})),{escapes:n,html:e}}function _(e,t){let i=[];for(const[n,s]of t){const{escapes:t,html:o}=f(e,n,s);e=o,i.push([n,s,t])}return{escapes:i,html:e}}function y(e,t,i,n){const s=new RegExp(`(${t})(.*?)(${i})`,"gis");return e.replaceAll(s,((e,t,i,s)=>{const o=n.get(i);return"string"===typeof o?t+o+s:e}))}const w=/<title>(.*)<\/title>/gm,b=(e,t)=>{let{escapes:i,html:n}=_(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return n=n.replaceAll(w,((e,i)=>i===t?`<title>${g(i)}</title>`:e)),function(e,t){for(const[i,n,s]of t)e=y(e,i,n,s);return e}(n,i.reverse())};function S(e){let{html:t}=_(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return[...t.matchAll(w)].map((e=>e[1])).find((e=>!!e))}const E="bottomRight",C=(e,t,i=E)=>{var n,s,o,a;t.error({innerException:e.error instanceof Error?e.error:void 0,message:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(n=e.error)||void 0===n||null===(s=n.data)||void 0===s?void 0:s.code)||(null===(o=e.error)||void 0===o?void 0:o.status)||e.error}}),description:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(a=e.error.data)||void 0===a?void 0:a.message)||e.error.error}}),placement:i})},A=(e,t,i=E)=>{t.success({message:e,placement:i})},I="ascend",j="descend",M="desc",O=e=>{switch(e){case I:return"asc";case j:return M;default:return""}},D=e=>{switch(e){case"asc":return I;case M:return j;default:return""}},T=e=>{const t=document.createElement("div");return t.className=e||"resizer",t},k=/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/,L=e=>new Promise(((t,i)=>{let n=new Image;n.src=e,n.addEventListener("load",(()=>{t("success")})),n.addEventListener("error",(()=>{i("error")})),n=null})),N=(e,t)=>{for(const i of t)"object"===typeof e.properties&&(e=e.properties[i]);return e},B=e=>e instanceof Array?e.map((e=>({label:e,value:e}))):Object.keys(e).map((t=>({label:e[t],value:t}))),P=(e,t,i=!0)=>{const n=Object.keys(t);for(const s of n){const n=t[s];void 0!==n&&null!==n&&(e[s]=i&&"object"===typeof n?P(e[s]||{},n,!0):n)}return e},R=e=>new Promise(((t,i)=>{r().load({google:{families:[e]},classes:!1,active:t,inactive:i})})),x=(e,t)=>{t&&e(t)},U=()=>{const e=(0,c.XW)();return(0,s.useCallback)(((t,i)=>{document.querySelectorAll(".block-search__preview").forEach((e=>e.remove()));const n=document.getElementById("iframe-scroll-top"),s=document.getElementById("iframe-scroll-bottom"),a=document.getElementById("email_iframe"),r=document.body.getBoundingClientRect().height,c=a.getClientRects()[0];c.top<0&&(n.style.display="block"),c.top+c.height>r&&(s.style.display="block");const d={operation:o.Ru.SANDBOX_BLOCK_INSERT,settings:{blockHTML:i||null,targetBlock:null,project:"emailmaker"}};t.dataTransfer.setData("Text",JSON.stringify(d)),e(d)}),[e])},z=()=>{const e=(0,c.XW)();return(0,s.useCallback)(((t,i,n)=>{const s=document.getElementById("iframe-scroll-top"),a=document.getElementById("iframe-scroll-bottom"),r=document.getElementById("email_iframe"),c=document.body.getBoundingClientRect().height,d=r.getClientRects()[0];d.top<0&&(s.style.display="block"),d.top+d.height>c&&(a.style.display="block");const l={operation:o.Ru.SANDBOX_ATOM_INSERT,settings:{atomHTML:i.html||null,targetBlock:null}};n(i)&&t.dataTransfer.setData("Text",JSON.stringify(l)),e(l)}),[e])},F=()=>{const e=(0,c.XW)();return(0,s.useCallback)(((t,i)=>{e({operation:o.Ru.SANDBOX_BLOCK_INSERT,action:"insert",settings:{blockHTML:i}})}),[e])},V=()=>{const e=(0,c.XW)();return(0,s.useCallback)(((t,i)=>{e({operation:o.Ru.SANDBOX_ATOM_INSERT,action:"insert",settings:{atomHTML:i}})}),[e])},H=(e,t)=>{t.success({maskClosable:!0,centered:!0,title:e("Coming soon"),content:e("The feature is under development."),okText:e("Ok. I'll be waiting"),onOk:()=>{}})},Z=()=>{const e=(0,c.XW)();return(t,i)=>{e({operation:o.Ru.SANDBOX_ELEMENT_SETTINGS_SET,settings:t,type:i})}},W=(e,t="")=>{var i,n;const s=[];return null===(i=e._embedded)||void 0===i||null===(n=i["wp:term"])||void 0===n||n.filter((e=>{var i;return!!e.length&&(!t||(null===(i=e[0])||void 0===i?void 0:i.taxonomy)===t)})).forEach((e=>{const t=e[0].taxonomy;s[t]||(s[t]=[]),s[t]=e.map((e=>({id:e.id,name:e.name,children:e.children}))),s[s.length]=s[t]})),""!==t&&s.length?s[t]:s},$=(e,t="")=>{var i,n,s,o,a;return(null===(i=e._embedded)||void 0===i||null===(n=i["wp:term"])||void 0===n||null===(s=n.find((e=>{var i;return!!e.length&&(!t||(null===(i=e[0])||void 0===i?void 0:i.taxonomy)===t)})))||void 0===s||null===(o=s.find((e=>{var t;return null===e||void 0===e||null===(t=e.name)||void 0===t?void 0:t.startsWith("project_")})))||void 0===o||null===(a=o.children)||void 0===a?void 0:a.map((e=>({id:e.id,name:e.name,count:e.count}))))||null},G=(e,t)=>{const i=e.target,n=t.getBoundingClientRect().height,s=i.getBoundingClientRect().height-n,o=e.clientY-t.getBoundingClientRect().top-30,a=-s*(Math.min(Math.max(o,0),n-60)/(n-60));i.style.transform=`translateY(${a}px)`},X=({target:e})=>{e.style.transform="translateY(0)"}},20116:(e,t,i)=>{function n(e){return t=>{const i=t.query,n=t.queryFn||((e,t,n,s)=>s(i(e)));if(n){let i;if("object"===typeof e){const{queryFn:n,...s}=e;i=n;for(const e of Object.keys(s))t[e]=s[e]}else i=e;t.query=void 0,t.queryFn=async(e,t,s,o)=>{try{let a=await i(e);return"function"===typeof a&&(a=await a((async(e,i=t,a=s,r=o)=>{const c=await n(e,i,a,r);if(c.error)throw c.error;return c.data}))),{data:a,error:null}}catch(a){return{error:a}}}}}}function s(){return n((()=>{}))}function o(e,t){const i={},s=Object.keys(t);for(const o of s)i[o]=n(t[o]);e.enhanceEndpoints({endpoints:i})}function a(e,t){for(const i of Object.keys(t))t[i](e)}i.d(t,{BD:()=>a,BX:()=>o,nM:()=>n,pl:()=>s})},98589:(e,t,i)=>{function n(e,t){if(e===t)return!0;if("object"===typeof e&&e&&"object"===typeof t&&t){const i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(const o of i)if(!n(e[o],t[o]))return!1;return!0}return!1}function s(e,t){if(!e)return t;const i={};for(const s of Object.keys(t))n(t[s],e[s])||(i[s]=t[s]);return i}i.d(t,{g:()=>s})},91738:(e,t,i)=>{i.d(t,{AU:()=>l});var n=i(90854),s=i(58689),o=i(44824),a=i(85974),r=i(91391);const c=e=>function(e){var t;return function(e){return"___SCRIPT"===e.tagName}(e)&&(null===(t=e.src)||void 0===t?void 0:t.startsWith(r.gP))}(e)||(0,a.Nh)(e)||(0,n.BF)(e),d=e=>{if(c(e))return!0;if((0,n.vq)(e)||(0,n.wz)(e))for(const t of e.querySelectorAll("*"))if(c(t))return!0;return!1};async function l(e,t){"string"===typeof e&&(e={code:e});const i=e.code?await(0,s.PJ)(e.code||"",[s.qy],e.utm_parameters,(async e=>{void 0===t&&(t=d(e)),t&&await(0,o.e)(e,"html")})):"",n=e.code&&t?await(0,s.PJ)(e.code||"",[s.qy],e.utm_parameters,(async e=>{await(0,o.e)(e,"amp")})):"";return{...e,compiled:{html:i,ampHtml:n}}}},91366:(e,t,i)=>{i.d(t,{Qq:()=>g,PL:()=>_,KA:()=>f,wz:()=>y});var n=i(33288),s=i(41664),o=i(15230),a=i(32269),r=i(55654);class c extends r.IO{async execute([e],t){for(const i of t){const t=await i(e);t&&(void 0===t.id&&(t.id=e.value.id),e.value=t)}return e.value}}var d=i(98589);class l extends r.lt{}var u=i(56991);class m extends a.jG{constructor(...e){super(...e),this._items=new Map,this._onChangeEmitter=new r.HN,this.onChange=this._onChangeEmitter.event}async _getOrCreate(e,t){const i=this._items;let n;if(i.has(e))try{n=await i.get(e)}catch{t&&(n=await t())}else t&&(n=await t(),n&&this._onChangeEmitter.fire());return n}async _addOrUpdate(e,t){let i;const n=this._items;if(n.has(e))try{i=await n.get(e)}catch{}const s=await t(i);return(0,u.bD)(i,s)||this._onChangeEmitter.fire(),s}entries(){return Promise.all([...this._items.entries()].map((([e,t])=>t.then((t=>[e,t]))))).then((e=>e.filter((([e,t])=>!!t))))}values(){return Promise.all([...this._items.values()].map((e=>e)).filter((e=>!!e)))}getOrCreate(e,t){let i=this._getOrCreate(e,(()=>t(e)));return this._items.set(e,i),i}addOrUpdate(e,t){let i=this._addOrUpdate(e,t);return this._items.set(e,i),i}add(e,t){const i=Promise.resolve(t);return this._items.set(e,i),i}remove(e){if(this._items.has(e)){const t=this._items.get(e);return this._items.delete(e),this._onChangeEmitter.fire(),t}return Promise.resolve(void 0)}async setAll(e){try{this.suspendChange();const t=[],i=new Set(Array.from(e).map((([e,t])=>e))),n=(await this.entries()).filter((([e,t])=>!i.has(e)));for(const[s,o]of e)t.push(this.addOrUpdate(s,(()=>o))),i.add(s);for(const[e]of n)t.push(this.remove(e));return await Promise.all(t),n}finally{this.resumeChange()}}clear(){this._items.clear(),this._onChangeEmitter.fire()}suspendChange(){this._onChangeEmitter.suspend()}resumeChange(){this._onChangeEmitter.resume()}}var p=i(71210);class h extends a.jG{constructor(...e){super(...e),this._cache=new m,this._readEmitter=new r.lt,this._saveEmitter=this.addDisposable(new c),this._removeEmitter=this.addDisposable(new l),this._foreignCache=Object.create(null),this.handlerRead=this._readEmitter.event,this.onSave=this._saveEmitter.event,this.onRemove=this._removeEmitter.event,this.onChange=this._cache.onChange}async get(e){return this._cache.getOrCreate(e,(async t=>Object.assign({id:e},...(await this._readEmitter.fire(e)).filter((e=>!!e)))))}get cache(){return this._cache}byForeignKey(e){let t=this._foreignCache[e];if(!t){const i=this.addDisposable(new a.jG);i.addDispose((()=>delete this._foreignCache[e]));const n=i.addDisposable(new m),s=i.addDisposable(new r.lt);t=this._foreignCache[e]={get:async(t,i={})=>(await n.getOrCreate(t,(async()=>{try{const i=function(e=[]){if((e=e.filter((e=>e))).length<=1)return e[0];let t=new Map;for(const i of e)for(const e of i)if(void 0!==e.id){let i=t.get(e.id)||{};t.set(e.id,{...i,...e})}return[...t].map((([e,t])=>t))}(await s.fire(t))||[];for(const n of i)n[e]=t,await this._cache.add(n.id,n);return i}catch{return[]}})),function(e,{filter:t,order:i="asc",orderBy:n,page:s,pageSize:o=20}={}){const a=e.length;let r=e.length;if(void 0!==t){const i=Object.keys(t);r=(e=e.filter((e=>{for(const n of i){const i=e[n],s=t[n];return"id"===n||"string"!==typeof i?i===s:"string"===typeof s&&i.startsWith(s)}return!0}))).length}return n&&(e=e.sort(((e,t)=>(e[n]>t[n]?1:t[n]>e[n]?-1:0)*("asc"===i?1:-1)))),void 0!==s&&(e=e.slice(o*(s-1),o*s-1)),{data:e,filteredTotal:r,total:a,totalPages:Math.floor(a/o)}}(await this._cache.values()||[],i)),first:(e,i={})=>t.get(e,{...i,page:1,pageSize:1}).then((e=>e[0])),handleRead:s.event,clear(){n.clear()},dispose(){i.dispose()}}}return t}async create(e,{source:t="",silent:i}={}){let n=e;return i||(n=await this._saveEmitter.fire({prev:void 0,patch:e,value:n,source:t})),void 0===n.id&&(n.id=(0,p.l)()),await this._cache.addOrUpdate(n.id,(()=>n))}async update(e,t,{source:i="",silent:n}={}){return this._cache.addOrUpdate(e,(async e=>{let s=e?{...e,...t}:t;if(!n)return t=e?(0,d.g)(e,t):t,await this._saveEmitter.fire({prev:e,patch:t,value:s,source:i})}))}async remove(e,{source:t="",silent:i}={}){const n=await this._cache.remove(e);return i||await this._removeEmitter.fire({value:n,source:t}),n}refresh(){this._cache.clear();for(const e of Object.values(this._foreignCache))e.clear()}suspendChange(){this._cache.suspendChange()}resumeChange(){this._cache.resumeChange()}}i(18398);var v=i(39990);function g(){const e=(0,s.Q)();return t=>n.di.getOrCreateInstance(t,e,(()=>new h))}function f(e){const t=n.di.getInstance(e,o.ax);if(!t)throw new Error("Failed");return t}function _(e){const t=n.di.getInstance(e,o.Lz);if(!t)throw new Error("Failed");return t}async function y(e){const t=f(e),i=await t.dispatch(v.Q2.endpoints.getMe.initiate({},{forceRefetch:!0}));return Promise.resolve(i.data)}},13437:(e,t,i)=>{i.d(t,{A:()=>a,i:()=>o});var n=i(71210),s=i(814);function o({code:e,...t},i){var s,o;const a=i.getState();return{...t,...e?{html:e}:{},renderGuid:(0,n.l)(),project:null===(s=a.projectSlice)||void 0===s||null===(o=s.project)||void 0===o?void 0:o.id}}function a({html:e,renderGuid:t,...i},n){const o=n.getState(),{project:a}=o.configSlice;return(0,s.TB)({...i,code:e,project:void 0===a?i.project:a,guid:void 0,link:void 0,status:void 0,slug:void 0,password:void 0,comment_status:void 0,template:void 0,blocktags:void 0,project_title:void 0,ping_status:void 0,lock:void 0,tag:void 0,is_template:void 0})}},25181:(e,t,i)=>{function n(e,t){var i;return{severity:Number(t.severity),message:t.message,source:t.source,startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn,get startOffset(){return e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn})},get endOffset(){return e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn})},tags:null===(i=t.tags)||void 0===i?void 0:i.map((e=>Number(e)))}}i.d(t,{B:()=>n})},91253:(e,t,i)=>{i.d(t,{I:()=>o,y:()=>s});var n=i(814);function s(e,t,i){const n=t.getState();var s,o;void 0===i&&(i=void 0===e.post?null===(s=n.emailSlice)||void 0===s||null===(o=s.email)||void 0===o?void 0:o.id:e.post);return{...e,content:e.content?`<p>${e.content}</p>`:"",post:i}}function o(e,t){return(0,n.TB)({...e,link:void 0,comment_status:void 0})}},81304:(e,t,i)=>{i.d(t,{E:()=>a,I:()=>o});var n=i(71210),s=i(814);function o({code:e,...t},i){var s,o;const a=i.getState();return{...t,...e?{html:e}:{},renderGuid:(0,n.l)(),project:null===(s=a.projectSlice)||void 0===s||null===(o=s.project)||void 0===o?void 0:o.id,utm_parameters:t.utm_parameters||{},_embedded:void 0}}function a({html:e,renderGuid:t,...i},n){const o=n.getState(),{project:a,config:r}=o.configSlice;return(0,s.TB)({...i,code:e,project:void 0===a?i.project:a,utm_parameters:r.UTMEnabled?i.utm_parameters:void 0,tags:void 0,template:void 0,guid:void 0,emailtags:void 0,project_title:void 0,project_author:void 0,is_template:void 0,is_inited:void 0,compiled:(0,s.TB)({html:e,ampHtml:e&&""})})}},4453:(e,t,i)=>{i.d(t,{E:()=>o,_:()=>s});var n=i(814);function s({code:e,...t},i,n){const s=i.getState();var o,a;void 0===n&&(n=void 0===t.parent?null===(o=s.emailSlice)||void 0===o||null===(a=o.email)||void 0===a?void 0:a.id:t.parent);return{...t,...e?{html:e}:{},parent:n}}function o({html:e,...t},i){return(0,n.TB)({...t,code:e,guid:void 0,compiled:(0,n.TB)({html:e,ampHtml:e&&""})})}},23036:(e,t,i)=>{i.d(t,{Xy:()=>a,bg:()=>c,yc:()=>r});var n=i(20116),s=i(55701),o=i(91366);const a=(0,o.Qq)(),r=(0,o.Qq)();function c(e){const t=a(e),i=t.byForeignKey("project"),c=r(e),d=c.byForeignKey("parent"),{dispatch:l,getState:u}=(0,o.KA)(e),m=(0,o.PL)(e);m.addDisposable(t.onChange((()=>l(s.VM.util.invalidateTags(["Blocks"]))))),m.addDisposable(t.onSave((({prev:e,patch:t,value:i})=>{(e=e?{...e,...t}:t)&&i.html===e.html&&i.title===e.title&&(i.renderGuid=e.renderGuid)}),Number.MIN_VALUE)),(0,n.BX)(s.VM,{async getBlocks(e){const t={};e.name&&(t.title=e.name),e.type&&(t.type=e.type);return await i.get(e.projectId,{filter:t,page:e.page,pageSize:e.pageSize,order:e.order,orderBy:e.orderby}).then((({data:e})=>e))},getBlocksSchema:()=>e=>e({}),getParentEmailBlocks:e=>t=>t(e),getTemplateBlocks:e=>t=>t(e),async getBlock(e){const t=u().projectSlice.project.id;return i.first(t,{filter:{id:e}})},getBlockHistory:async({blockId:e,page:t=1})=>({...await d.get(e,{page:t}),args:{blockId:e,page:t}}),addBlock:e=>async i=>{const n=await t.create(e);return u().configSlice.config.preventSendDataToEM||i(n).catch((e=>console.log(e))),n},editBlock:({blockId:e,...i})=>t.update(e,i),deleteBlock:e=>t.remove("object"===typeof e?e.id:e),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveBlock:({blockId:e,body:t})=>c.create({...t,parent:e})})}},72788:(e,t,i)=>{i.d(t,{B:()=>c,D:()=>r});var n=i(18777),s=i(91366),o=i(68415),a=i(20116);const r=(0,s.Qq)();function c(e){const t=r(e),i=t.byForeignKey("post"),{dispatch:c}=(0,s.KA)(e);(0,s.PL)(e).addDisposable(t.onChange((()=>c(n.Jg.util.invalidateTags(["Comments"]))))),(0,a.BX)(n.Jg,{getComments:e=>i.get(e).then((({data:e})=>e)),addComment({subjectId:e,author:i,parent:n,content:s,author_name:a,author_email:r,targetId:c}){const d={post:e,author:i,author_name:a,author_email:r,content:s,parent:n,target_id:c,date:(0,o.A)(new Date),author_avatar_urls:{}};return t.create(d)},deleteComment:e=>t.remove(e),editComment:({commentId:e,...i})=>t.update(e,i),deleteTarget:e=>t.update(e,{target_id:""})})}},87265:(e,t,i)=>{i.d(t,{Av:()=>r,jw:()=>c,sE:()=>d});var n=i(17581),s=i(91366),o=i(71210),a=i(20116);const r=(0,s.Qq)(),c=(0,s.Qq)();function d(e){const t=r(e),i=c(e),d=i.byForeignKey("parent"),{dispatch:l,getState:u}=(0,s.KA)(e),m=(0,s.PL)(e);m.addDisposable(t.onChange((async()=>{l(n.GY.util.invalidateTags(["Email"]))}))),m.addDisposable(i.onChange((()=>{l(n.GY.util.invalidateTags(["EmailAutosaves"]))}))),m.addDisposable(t.onSave((({prev:e,patch:t,value:i})=>{(e=e?{...e,...t}:t)&&i.subject===e.subject&&i.html===e.html&&i.preheader===e.preheader&&i.title===e.title&&(i.renderGuid=e.renderGuid)}),Number.MIN_VALUE)),(0,a.BX)(n.GY,{getEmails:e=>[],getTemplateEmails:e=>t=>t(e),getEmail:async e=>await t.get(e),getEmailHistory:({emailId:e,page:t=1})=>(d.clear(),async n=>{if(u().configSlice.config.revisionService){const s=await n({emailId:e,page:t});for(const e of s.data)i.cache.add(e.id,e);return s}return{...await d.get(e,{page:t}),args:{emailId:e,page:t}}}),async addEmail({source:e,...i}){const n=await t.create(i,{source:e});return n.renderGuid||(n.renderGuid=(0,o.l)()),n},editEmail:e=>async i=>{let{emailId:n,source:s,...o}=e;return u().configSlice.config.revisionService&&(o=await i(e)),t.update(n,o,{source:s})},deleteEmail:e=>t.remove("object"===typeof e?e.id:e),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveEmail:({emailId:e,body:t})=>async n=>(u().configSlice.config.revisionService&&(t=await n({emailId:e,body:t})),await i.create({...t,parent:e,modified:(new Date).toString()}))})}},43347:(e,t,i)=>{i.d(t,{Ri:()=>u,uS:()=>m});var n=i(15230),s=i(63531),o=i(33288),a=i(55654),r=i(93982),c=i(13522),d=i(20116);const l="tmp",u=o.di.createIdentifier();o.di.createIdentifier();function m(e){const t=o.di.getInstance(e,n.Lz);if(!t)throw new Error("Something was wrong");const i=t.addDisposable(new a.lt);o.di.inject(e,u,i);const m=(0,r.dB)(e,c.A.ON_SEND_TESTEMAIL_ID),p=(0,r.dB)(e,c.A.ON_SEND_LIVEPREVIEW_ID);(0,d.BX)(s.yH,{uploadImage:t=>async s=>{const a=e.getState(),{project:r}=a.configSlice,c=t.folder===l?null:await i.fire({file:t.file,project:r}),d=c?c.find((e=>e)):null;return d?[{file_url:d,project:r}]:s({...t,user_id:String((await o.di.getInstanceAsync(e,n.sZ)).app_id)})},sendTestEmail:t=>async i=>{const s=e.getState(),{project:a}=s.configSlice;(await m.fire({project:a,email_id:t.email_id,subject:t.subject,email:t.email,html:t.html,from_name:t.from_name})).some((e=>!1===e))&&await i({...t,user_id:String((await o.di.getInstanceAsync(e,n.sZ)).app_id)})},async sendLivePreview(t){const i=e.getState(),{project:n}=i.configSlice;(await p.fire({project:n,id:t.email,subject:t.subject,html:t.content})).some((e=>!1===e))},sendShortLink:e=>t=>t(e)})}},14999:(e,t,i)=>{i.d(t,{A:()=>b});var n=i(20116),s=i(53200);var o=i(84612);var a=i(91366),r=i(39990);var c=i(15230),d=i(47036);var l=i(95679);var u=i(62689);var m=i(84568);var p=i(46312);var h=i(65119);var v=i(43347),g=i(83351);var f=i(23036),_=i(72788),y=i(94381);var w=i(87265);const b={addUserToProjectApiMock:function(){s.B.enhanceEndpoints({endpoints:{addUserToProject:(0,n.pl)()}})},AiApiMock:function(){(0,n.BX)(o.Zs,{sendMessage:({body:e})=>t=>t({body:e}),getDialog:e=>t=>t(e)})},authorizationApiMock:function(e){let t={id:"0",username:"",email:"",password:"",code_editor:{},theme:"light",locale:(0,a.KA)(e).getState().userSlice.currentUser.locale,counters:{},avatar_urls:{},autosaves:!0};r.Q2.enhanceEndpoints({endpoints:{userRegistration:(0,n.pl)(),getSchema:(0,n.nM)((()=>e=>e({}))),getMe:(0,n.nM)((()=>t)),editMe:(0,n.nM)((e=>t={...t,...e})),getSubscriptions:(0,n.nM)((()=>[]))}})},blocksApiMock:f.bg,commentsApiMock:_.B,emailsApiMock:w.sE,emailRawApiMock:function(){(0,n.BX)(d.f,{getEmailRaw({emailId:e,secret_hash:t}){throw new Error(c.f5)}})},imageApiMock:function(){(0,n.BX)(l.CL,{sendAiImageRequest:function({body:e}){return t=>t({body:e})},getAiImage:e=>t=>t(e)})},localesApiMock:function(e){(0,n.BX)(y.Ad,{getLocale:async({id:e})=>t=>t({id:e}),getLocales:()=>async e=>e({})})},notificationsApiMock:function(){(0,n.BX)(u.vx,{getNotifications:e=>[],notificationShown({id:e,datetime:t}){throw new Error(c.f5)}})},projectsApiMock:function(e){let t;(0,n.BX)(m.Nq,{getProjects:(e={page:1})=>[],getProject:e=>i=>t||(t=i(e).then((t=>({...t,id:e})))),addProject(e){throw new Error},editProject:({projectId:e,...i})=>t=t.then((t=>({...t,...i,id:e}))),deleteProject(e){throw new Error}})},proxyApiMock:function(){(0,n.BX)(p.Z8,{getFile({url:e,tryFetch:t=!0,type:i}){throw new Error(c.f5)}})},recoverPasswordApiMock:function(){(0,n.BX)(h.yR,{resetPassword(e){throw new Error(c.f5)},setPassword(e){throw new Error(c.f5)},validateRecoverPasswordCode(e){throw new Error(c.f5)}})},saveFileApiMock:v.uS,tokenApiMock:function(){(0,n.BX)(g.OV,{tokenCreate:e=>t=>t(e),tokenValidate:()=>e=>e({})})}}},62410:(e,t,i)=>{i.d(t,{r:()=>y});var n=i(33288),s=i(14386),o=i(18398),a=i(47358),r=i(86286),c=i(39990),d=i(99751),l=i(15230),u=i(13652);function m(e){var t;return{fontSize:e.fontSize,fontFamily:e.fontFamily,tabSize:e.tabSize,wordWrap:"off"!==e.wordWrap,minimap:null===(t=e.minimap)||void 0===t?void 0:t.enabled,insertSpaces:e.insertSpaces}}var p=i(39217),h=i(32269),v=i(91366),g=i(93982),f=i(13522),_=i(48802);const y=(0,s.l)((e=>{const t=(0,v.PL)(e),i=(0,_.m)((0,g.Zc)(e,f.A.READ_LOCALE)),s=t.addDisposable(new _.U(i)),y=e.dispatch,w=n.di.getInstanceAsync(e,l.sZ).then((e=>(null===e||void 0===e?void 0:e.app_config)||{}),(e=>(console.log(e),{}))),b=(0,u.y)(),S=async(...t)=>{const i=Object.assign({},...t),{locale:n="ru_RU",theme:s,editor:d,codeModeDirection:l,...u}=i;if(d){const e=function(e){return{font_size:e.fontSize,font_family:e.fontFamily,tab_size:e.tabSize,word_wrap:e.wordWrap,minimap:e.minimap,insert_spaces:e.insertSpaces}}(d);await y((0,r.ww)(e))}if(void 0!==l&&("none"===l?y((0,a.N6)(!1)):(y((0,a.N6)(!0)),y((0,a.Uf)(l)))),"string"===typeof n){const t=await(0,v.wz)(e);y(c.Q2.endpoints.editMe.initiate({...t,locale:n}))}"string"===typeof s&&y((0,r.Yl)(s)),y((0,o._R)(u))};let E;return{setOptions:b.decorate((async({config:i={},project:a,user:r,advancedConfigs:l,handleReadLocale:u})=>{var m;s.setListener(u);let g=await w,f=l||g.advancedConfigs,_=localStorage.getItem("configSwither"),b=f&&f[(null===i||void 0===i?void 0:i.mode)||_||"pro"]||(null===(m=(0,d.$)((null===i||void 0===i?void 0:i.mode)||_||"pro"))||void 0===m?void 0:m.config);if(b={...b,configSwither:i.configSwither||!1},await S(b,g,i),y((0,o.bn)(String(a))),y((0,o.ee)(f)),E&&E.dispose(),E=new h.jG,r){let i={...await(0,v.wz)(e),email:"",password:"",...r,id:"number"===typeof r.id?String(r.id):r.id};void 0===r.id&&delete i.id,y(c.Q2.endpoints.editMe.initiate(i)),r.id&&t.addDisposable(n.di.addService(e,p.jY,{execute(e){e.headers.append("user_id",i.id)}}))}a&&t.addDisposable(n.di.addService(e,p.jY,{execute(e){e.headers.append("project_id",String(a))}}))})),instance:{setConfig:b.decorate((async e=>{var t;let i=null===(t=(0,d.$)((null===e||void 0===e?void 0:e.mode)||"pro"))||void 0===t?void 0:t.config;await S(i,await w,e)})),getConfig:()=>function(e){var t,i;const n=e.getState(),s=n[r.Ay.name],c=n[o.Ay.name],d=n[a.Ay.name];return{...c.config,theme:null===(t=s.currentUser)||void 0===t?void 0:t.theme,locale:null===(i=s.currentUser)||void 0===i?void 0:i.locale,codeModeDirection:d.isCodeMode?d.codeModeDirection:"none",editor:m(s.monacoOptions)}}(e),updateConfig:b.decorate((e=>S(e))),handleReadLocale:i}}}))},33746:(e,t,i)=>{i.d(t,{F:()=>c});var n=i(44141),s=i(33288),o=i(15230),a=i(14386),r=i(39217);const c=(0,a.l)((e=>{let t=!0;return{setOptions(i){if(i.hasOwnProperty("baseUrl")){const n=s.di.getInstance(e,r.eT),o=n.getOptions(),a=(0,r.qT)(i.baseUrl);o.baseUrl!==a&&(n.setOptions({baseUrl:a}),t=!0)}if(t){const i=s.di.getInstance(e,n.Pz);s.di.inject(e,o.sZ,(async(e,t)=>t||i.app.app_init_create({}).then((({data:e})=>e))),!0),t=!0}}}}))},19209:(e,t,i)=>{i.d(t,{F:()=>m});var n=i(14386),s=i(14315),o=i(33288),a=i(41664),r=i(39217),c=i(13652),d=i(85163);const l=(0,a.Q)(),u=(0,a.Q)(),m=(0,n.l)((e=>({setOptions(t){const i=(0,c.y)(),n=(0,r.mg)(e);o.di.addService(e,r.jY,{execute:i.decorate((async i=>{if(t.jwtAuth){let a=o.di.getInstance(e,l),r=o.di.getInstance(e,u);if(!r&&!a){const i=await n.jwtAuth.token_create({body:t.jwtAuth,type:s.cM.Json});if(i.error)throw r=d.ff,o.di.inject(e,u,d.ff),new Error(d.ff);a=i.data.token,o.di.inject(e,l,a)}r||i.headers.append("authorization",`Bearer ${a}`)}}))})}})))},91514:(e,t,i)=>{i.d(t,{h:()=>d});var n=i(14386),s=i(41664),o=i(33288),a=i(39217),r=i(47271);const c=(0,s.Q)(),d=(0,n.l)((e=>{let t;return o.di.addService(e,a.jY,{execute:async i=>{if(t){const t=await o.di.getInstanceAsync(e,c);t&&i.headers.append("authorization",`Bearer ${t}`)}}}),{setOptions(i){t!==i.getAuthToken&&(t=i.getAuthToken,o.di.inject(e,c,void 0),o.di.inject(e,c,(async(e,i)=>{try{let e=await i;var n;return t?e&&1e3*(null===(n=(0,r.iU)(e))||void 0===n?void 0:n.exp)>function(){const e=new Date;return e.valueOf()-60*e.getTimezoneOffset()*1e3}()?e:await t(e):""}catch(s){return console.log(s),""}}),!0))}}}))},14386:(e,t,i)=>{function n(e){return async function(t){return{setOptions:()=>{},instance:{},dispose:()=>{},...await e(t)||{}}}}function s(e){return async t=>{const i={},n=[];for(const s of e)n.push(await s(t));for(const e of n)Object.assign(i,e.instance);return{instance:i,setOptions:e=>{const t=n.map((t=>t.setOptions(e)));return t.some((e=>e instanceof Promise))?Promise.all(t).then((()=>{})):void 0},dispose:()=>{for(const e of n)e.dispose()}}}}i.d(t,{E:()=>s,l:()=>n})},893:(e,t,i)=>{i.d(t,{m:()=>c});var n=i(17126),s=i(92810),o=i(45934),a=i(18398),r=i(70082);const c=({children:e})=>{const[t,i]=(0,s.useState)(),c=(0,o.d4)(a.p5);return(0,r.jsxs)("div",{className:"App blocks-app blocks-plugin",children:[c&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:c}}),(0,r.jsx)(n.fh.Provider,{value:t,children:e}),(0,r.jsx)("div",{ref:i,className:"blocks-modal-container"})]})}},97001:(e,t,i)=>{i.d(t,{P:()=>A});var n=i(32269),s=i(93556),o=i(23580),a=i(71210),r=i(56991),c=i(13329),d=i(28316),l=i(18398),u=i(13437),m=i(81304),p=i(4453),h=i(91253),v=i(33288),g=i(15230),f=i(13652),_=i(13522),y=i(93982),w=i(91738),b=i(17581),S=i(39217),E=i(25181);const C="EXTERNAL";class A extends n.jG{constructor(e){super(),this._store=e,this._emailTemplateCache=Object.create(null),this._prevCommand=void 0,this._prevContent=void 0,this._dataSources=void 0,this._eventLock=void 0,this._queue=(0,f.y)(),this._model=void 0,this._currentEmail=void 0,this.show=this._queue.decorate(this._show,this),this.save=this._queue.decorate(this._save,this);const t=(0,o.My)(e);this._dataSources=(0,s.zC)(t),this._eventLock=(0,s.QQ)(t);const i=(0,y.Zc)(e,_.A.ON_MODEL_CHANGE),n=(0,y.Zc)(e,_.A.ON_EMAIL_CHANGED_ID);this.addDisposable(i((e=>{this._model=e}))),this.addDisposable(n((e=>{this._currentEmail=e}))),this.addDisposable(v.di.addService(e,S.jY,{execute:e=>{var t;null!==(t=this._currentEmail)&&void 0!==t&&t.id&&!this._currentEmail.isNew&&e.headers.append("email_id",this._currentEmail.id)}}))}async getProject(){const e=await v.di.getInstanceAsync(this._store,g.sZ);return null===e||void 0===e?void 0:e.project}async getTemplateEmail(e){e=String(e);let t=this._emailTemplateCache[e];if(!t){const i=await this._store.dispatch(b.GY.endpoints.getTemplateEmail.initiate(e));i.error?console.log(i.error):(t={...i.data,lock:!1,parent_email:e},delete t.id)}return t}async getBlocks(){const{cache:e}=this._dataSources.blocks,t=await this.getProject();return(await e.values()).filter((e=>e.project===t)).map((e=>(0,u.A)(e,this._store)))}async getComments(){const{cache:e}=this._dataSources.comments,t=await this.getEmail();return(await e.values()).filter((e=>e.post===t.id)).map((e=>(0,h.I)(e,this._store)))}async getEmailRevisions(){const{cache:e}=this._dataSources.emailRevisions,t=await this.getEmail();return(await e.values()).filter((e=>e.parent===t.id)).map((e=>(0,p.E)(e,this._store)))}async setBlocks(e=[]){const{cache:t}=this._dataSources.blocks;await t.setAll(e.filter((e=>void 0!==e.id)).map((e=>[e.id,(0,u.i)(e,this._store)])))}async setEmailRevisions(e=[],t){const{cache:i}=this._dataSources.emailRevisions,n=e.filter((e=>void 0!==e.id)).map((e=>[e.id,(0,p._)(e,this._store,t)]));await i.setAll(n)}async setComments(e=[],t){const{cache:i}=this._dataSources.comments,n=e.filter((e=>void 0!==e.id)).map((e=>[e.id,(0,h.y)(e,this._store,t)]));await i.setAll(n)}async getEmail(){const e=this._store.getState(),t=e.emailSlice.email.id?e.emailSlice.email:e.newEmailSlice.email,i=(0,m.E)({...t,html:this._model?this._model.getValue():t.html},this._store);return(0,w.AU)(i,t.isAmp)}async compileEmail(){const e=this._store.getState(),t=e.emailSlice.email.id?e.emailSlice.email:e.newEmailSlice.email,i=(0,m.E)({...t,html:this._model?this._model.getValue():t.html},this._store);return(0,w.AU)(i,t.isAmp)}async setEmail(e,t,i=!1){const n=this._dataSources.emails,s=n.cache,o=await this.getProject();e="string"===typeof e?{code:e}:{...e};let r=(0,m.I)(e,this._store);const c=r.id;let d=c;if(void 0!==c?r={...await n.get(c),...r,project:o}:(r={...r,project:o},d=(0,a.l)(),delete r.project),t){const e=await this.getTemplateEmail(String(t));e&&(r={...e,id:String(t),...r})}await s.setAll([[d,r]]),i&&this._runShowCommand({isNew:void 0===c,id:d,project:o})}_runShowCommand(e){const t={...e,type:"email"};this._prevCommand&&!(0,r.bD)(this._prevCommand,e)?(0,c.RS)(this._store,d._1,t):this._store.dispatch((0,l.Ir)(t)),this._prevCommand=e}async _show(e){try{if(this._eventLock.suspendChange(),e!==this._prevContent){this._prevContent=e;const{email:t,blocks:i,autosaves:n,comments:o,templateId:a}=(0,s.Uw)(e),r=[];r.push(this.setBlocks(i)),void 0!==t.id&&(r.push(this.setComments(o)),r.push(this.setEmailRevisions(n))),r.push(this.setEmail(t,Number(a),!0)),await Promise.all(r)}}catch(t){console.log(t)}finally{this._eventLock.resumeChange()}return new Promise((e=>{(0,y.Zc)(this._store,_.A.ON_EMAIL_INIT_ID)((()=>e()))}))}_save(){return new Promise((async e=>{const t=this._dataSources.emails,i=this.addDisposable(t.onSave((({value:t,source:n})=>{n===C&&(i.dispose(),e((0,m.E)(t,this._store)))}),Number.MIN_VALUE));(0,c.RS)(this._store,d.Kp,C)}))}getCodeErrors(){var e;const t=this._store.getState(),i=this._model;return i?null===(e=t.emailSlice.problemsList)||void 0===e?void 0:e.map((e=>(0,E.B)(i,e))):void 0}}},44376:(e,t,i)=>{i.d(t,{y:()=>f});var n=i(23580),s=i(93556),o=i(81304),a=i(13437),r=i(91253),c=i(4453),d=i(32269),l=i(48802),u=i(13522),m=i(93982),p=i(18398),h=i(98589),v=i(55654),g=i(25181);class f extends d.jG{constructor(e){super(),this._store=e,this._events=void 0,this._model=void 0,this._listenersUpdaters=void 0;const t=(0,m.Zc)(e,u.A.ON_MODEL_CHANGE);this.addDisposable(t((e=>{this._model=e})))}_get(){const e=this._store,t=(0,n.My)(e),{blocks:i,emails:d,comments:f,emailRevisions:_}=(0,s.zC)(t),y=(0,m.Zc)(e,u.A.ON_SAVEBUTTON_CLICK_ID),w=(0,m.Zc)(e,u.A.ON_PREVIOUSBUTTON_CLICK_ID),b=(0,m.Zc)(e,u.A.ON_NEXTBUTTON_CLICK_ID),S=(0,m.Zc)(e,u.A.ON_EMAIL_INIT_ID),E=(0,m.Zc)(e,u.A.ON_EMAIL_CHANGED_ID),C=(0,m.Zc)(e,u.A.ON_CONTENT_CHANGED_ID),A=(0,m.Zc)(e,u.A.ON_SEND_TESTEMAIL_ID),I=(0,m.Zc)(e,u.A.ON_SEND_EMAIL_MODAL_ID),j=(0,m.Zc)(e,u.A.ON_EMAIL_CLONE_ID),M=(0,m.Zc)(e,u.A.ON_SHARE_ID),O=(0,m.Zc)(e,u.A.ON_SHOW_PREVIEW_ID),D=(0,m.Zc)(e,u.A.ON_SEND_LIVEPREVIEW_ID),T=(0,m.Zc)(e,u.A.ON_CODE_VALIDATE_ID);return{handleValidate:(0,l.m)(T,(e=>this._model?e.map((e=>(0,g.B)(this._model,e))):[])),handleReadEmail:(0,l.m)(d.handlerRead,(e=>e),(t=>t&&(0,o.I)(t,e))),handleSaveEmail:(0,l.m)(d.onSave,(function({prev:t,patch:i,value:n,source:s}){const a=t?(0,o.E)(t,e):void 0;return{prev:a,patch:(0,h.g)(a,(0,o.E)(i,e)),value:(0,o.E)(n,e),source:s}}),(t=>t?(0,o.I)(t,e):void 0)),handleRemoveEmail:(0,l.m)(d.onRemove,(({value:t,source:i})=>({value:(0,o.E)(t,e),source:i})),(()=>{})),handleReadBlocks:(0,l.m)(i.byForeignKey("project").handleRead,(t=>(0,p.jY)(e.getState())||String(t)),(t=>null===t||void 0===t?void 0:t.map((t=>(0,a.i)(t,e))))),handleSaveBlock:(0,l.m)(i.onSave,(function({prev:t,patch:i,value:n,source:s}){const o=t?(0,a.A)(t,e):void 0;return{prev:o,patch:(0,h.g)(o,(0,a.A)(i,e)),value:(0,a.A)(n,e),source:s}}),(t=>t?(0,a.i)(t,e):void 0)),handleRemoveBlock:(0,l.m)(i.onRemove,(({value:t,source:i})=>({value:(0,a.A)(t,e),source:i})),(()=>{})),handleReadComments:(0,l.m)(f.byForeignKey("post").handleRead,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>(0,r.y)(t,e))))),handleSaveComment:(0,l.m)(f.onSave,(function({prev:t,patch:i,value:n,source:s}){const o=t?(0,r.I)(t,e):void 0;return{prev:o,patch:(0,h.g)(o,(0,r.I)(i,e)),value:(0,r.I)(n,e),source:s}}),(t=>t?(0,r.y)(t,e):void 0)),handleRemoveComment:(0,l.m)(f.onRemove,(({value:t,source:i})=>({value:(0,r.I)(t,e),source:i})),(()=>{})),handleReadEmailRevisions:(0,l.m)(_.byForeignKey("parent").handleRead,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>(0,c._)(t,e))))),handleEmailAutosave:(0,l.m)(_.onSave,(function({prev:t,patch:i,value:n,source:s}){return{value:(0,c.E)(n,e),source:s}}),(t=>t?(0,c._)(t,e):void 0)),handleRemoveEmailAutoSave:(0,l.m)(_.onRemove,(({value:t,source:i})=>({value:(0,c.E)(t,e),source:i})),(()=>{})),handleEmailChanged:(0,l.m)((0,v.sg)(E,100),(t=>(0,o.E)(t,e))),handleEmailInit:(0,l.m)(S,(t=>(0,o.E)(t,e))),handlePreviousButtonClick:(0,l.m)(w,(t=>(0,o.E)(t,e))),handleNextButtonClick:(0,l.m)(b,(t=>(0,o.E)(t,e))),handleSaveButtonClick:(0,l.m)(y,(t=>(0,o.E)(t,e))),handleHtmlChanged:(0,l.m)((0,v.sg)(C,100)),handleTestEmailSend:(0,l.m)(A,(({html:e,...t})=>({...t,code:e,compiled:{html:e,ampHtml:""}}))),handleTestEmailModal:(0,l.m)(I,(t=>(0,o.E)(t,e))),handleCloneEmail:(0,l.m)(j,(t=>(0,o.E)(t,e))),handleShareEmail:(0,l.m)(M),handlePreviewEmail:(0,l.m)(O),handleLivePreviewEmail:(0,l.m)(D)}}get(){return this._events||(this._events=this._get())}setOptions(e={}){const t=this.get();let i=this._listenersUpdaters;if(!i){i=this._listenersUpdaters={};for(const e of Object.keys(t))i[e]=this.addDisposable(new l.U(t[e]))}for(const n of Object.keys(t))i[n].setListener(e[n])}}},93556:(e,t,i)=>{i.d(t,{QQ:()=>r,Uw:()=>c,zC:()=>a});var n=i(23036),s=i(72788),o=i(87265);function a(e){return{emails:(0,o.Av)(e),blocks:(0,n.Xy)(e),emailRevisions:(0,o.jw)(e),blocksRevision:(0,n.yc)(e),comments:(0,s.D)(e)}}function r(e){const t=Object.values(a(e));return{suspendChange(){t.forEach((e=>e.suspendChange()))},resumeChange(){t.forEach((e=>e.resumeChange()))}}}function c(e){return"string"===typeof e?{email:{code:e}}:function(e){return!e.hasOwnProperty("email")&&!e.hasOwnProperty("block")&&!e.hasOwnProperty("templateId")}(e)?{email:e}:{...e,email:"string"===typeof e.email?{code:e.email}:e.email||{}}}},8671:(e,t,i)=>{i.d(t,{e:()=>c});var n=i(14386),s=i(33288),o=i(15230),a=i(32269),r=i(48802);const c=(0,n.l)((e=>{const t=s.di.getInstance(e,o.Lz),i=t.addDisposable(new a.vl),n=(0,r.m)(i.event),c=t.addDisposable(new r.U(n));return{setOptions({handleDestroy:e}){c.setListener(e)},instance:{handleDestroy:n,destroy:()=>t.dispose()}}}))},63772:(e,t,i)=>{i.d(t,{Z:()=>c});var n=i(14386),s=i(43347),o=i(33288),a=i(48802),r=i(15230);const c=(0,n.l)((e=>{const t=o.di.getInstance(e,r.Lz),i=o.di.getInstance(e,s.Ri),n=(0,a.m)(i.event),c=t.addDisposable(new a.U(n));return{setOptions(e){c.setListener(e.handleLoadImage)},instance:{handleLoadImage:(0,a.m)(i.event)}}}))},55853:(e,t,i)=>{i.d(t,{E:()=>c});var n=i(14386),s=i(33288),o=i(15230),a=i(55654),r=i(48802);const c=(0,n.l)((e=>{const t=s.di.getInstance(e,o.Lz),i=t.addDisposable(new a.vl),n=s.di.getInstanceAsync(e,o.Cd);n.then((({instance:e})=>i.fire(e)));const c=(0,r.m)(i.event),d=t.addDisposable(new r.U(c));return{setOptions({handleLoad:e}){d.setListener(e)},instance:{handleLoad:c,reset:e=>n.then((({instance:t,setOptions:i})=>Promise.resolve(i(e)).then((()=>t))))},destroy:()=>t.dispose()}}))},1281:(e,t,i)=>{i.d(t,{Z:()=>g});var n=i(14386),s=i(33288),o=i(15230),a=i(48802),r=i(13329),c=i(28316),d=(i(92810),i(814)),l=i(70082);function u(e){return"string"===typeof e?e:e?(0,l.jsx)("div",{ref:t=>null===t||void 0===t?void 0:t.replaceWith(e)}):void 0}function m(e,t="success"){return"string"===typeof e&&(e={message:e}),(0,d.TB)({type:e.type||t,data:e.data,innerException:e.innerException,message:u(e.message),description:u(e.description),btn:u(e.btn),onClose:e.onClose,duration:e.duration,icon:u(e.icon),placement:e.placement,style:e.style,closeIcon:"boolean"===typeof e.closeIcon||"undefined"===typeof e.closeIcon?e.closeIcon:u(e.closeIcon),props:e.props,role:e.role})}var p=i(13522),h=i(55654),v=i(93982);const g=(0,n.l)((e=>{const t=s.di.getInstance(e,o.Lz),i=(0,v.Zc)(e,p.A.ON_NOTIFICATION),n=(0,h.pb)(i,(e=>"error"===e.type)),d=(0,h.pb)(i,(e=>"success"===e.type)),l=(0,a.m)(i,(e=>e),(e=>"string"===typeof e||"object"===typeof e?m(e):e)),u=(0,a.m)(n,(e=>e),(e=>"string"===typeof e||"object"===typeof e?m(e,"error"):e)),g=(0,a.m)(d,(e=>e),(e=>"string"===typeof e||"object"===typeof e?m(e):e)),f=t.addDisposable(new a.U(l)),_=t.addDisposable(new a.U(u)),y=t.addDisposable(new a.U(g));return{setOptions({handleNotify:e,handleSuccess:t,handleError:i}){f.setListener(e),_.setListener(i),y.setListener(t)},instance:{notify(t){(0,r.RS)(e,c.Sb,{placement:"bottomRight",...m(t)})},handleNotify:l,handleError:u,handleSuccess:g}}}))},89949:(e,t,i)=>{i.d(t,{R:()=>a});var n=i(92810),s=i(45934),o=i(39990);const a=({onLoad:e,children:t})=>{(0,n.useEffect)((()=>{e&&e()}),[e]);const i=(0,s.wA)();return(0,n.useMemo)((()=>i(o.Q2.endpoints.getMe.initiate({}))),[i]),t}},55654:(e,t,i)=>{i.d(t,{HN:()=>l,IO:()=>o,P9:()=>a,lt:()=>m,pb:()=>c,sg:()=>d,vl:()=>u});var n=i(32269);class s extends n.jG{constructor(...e){super(...e),this._listeners=[],this.event=this._addListener.bind(this)}getListeners(e){return this._listeners.flatMap((([t])=>"function"===typeof t?t:t.getListeners(e)))}hasListeners(){return this._listeners.length>0}_addListener(e,t=0,i){if(!this.isDisposed()){const n=this._listeners;i&&"function"===typeof e&&(e=e.bind(i));const s=n.findIndex((([e,i])=>t<i)),o=[e,t];return n.splice(s>=0?s:n.length,0,o),{dispose(){const e=n.indexOf(o);e>=0&&n.splice(e,1)}}}}dispose(){this._listeners.splice(0,this._listeners.length),super.dispose()}}class o extends s{constructor(...e){super(...e),this.fire=this._fire.bind(this)}execute(e,t){for(const n of t)try{n(...e)}catch(i){console.log(i)}}_fire(...e){if(!this.isDisposed())return this.execute(e,this.getListeners(e))||void 0}}function a(e,t=0){const i=new s;return i.addDisposable(e(i,t)),i.event}class r extends s{constructor(e){super(),this._filter=e}getListeners(e){return this._filter(...e)?super.getListeners(e):[]}}function c(e,t,i=0){const n=new r(t);return n.addDisposable(e(n,i)),n.event}function d(e,t=0,i=0){const n=new o;let s,a=0;return n.addDisposable(e(((...e)=>{s=e,a||(a=setTimeout((()=>{n.fire(...s),a=0}),t))}),i)),n.event}class l extends o{constructor(...e){super(...e),this._suspendCounter=0,this._wasFired=!1}proccessResult(){}execute([e],t){if(this._suspendCounter)this._wasFired=!0;else for(const n of t)try{n(e)}catch(i){console.log(i)}}suspend(){this._suspendCounter++}resume(){0===--this._suspendCounter&&(this._wasFired&&this.fire(),this._wasFired=!1)}}class u extends o{execute([e],t){for(const n of t)try{n(e)}catch(i){console.log(i)}}}class m extends o{async execute([e],t){const i=[];for(const n of t){const t=await n(e);i.push(t)}return i}}},48802:(e,t,i)=>{i.d(t,{U:()=>o,m:()=>a});var n=i(32269),s=i(55654);class o extends n.jG{constructor(e){super(),this._event=e,this._listener=void 0,this._disposeEvent=void 0}setListener(e){this._listener!==e&&(this._listener=e,this._disposeEvent&&this._disposeEvent(),this._disposeEvent=e?this._event(e):void 0)}dispose(){this._disposeEvent&&this._disposeEvent(),super.dispose()}}function a(e,t,i){const n=(0,s.P9)(e);return(e,s,o)=>{const a=n((async n=>{const s=t?t(n):n;o&&e.bind(o);const a=await e(s);return i?i(a):a}),s,o);return()=>a.dispose()}}},13652:(e,t,i)=>{i.d(t,{y:()=>n});const n=e=>{let t={current:Promise.resolve(),state:e,decorate:(e,i)=>(i&&(e=e.bind(i)),function(...i){const n=t.current.then((()=>e(...i)));return t.current=n.then((e=>{t.state=e}),(e=>{console.log(e)})),n})};return t}},18398:(e,t,i)=>{i.d(t,{Ay:()=>E,EV:()=>b,GH:()=>h,Ir:()=>v,Kj:()=>S,RP:()=>u,_R:()=>f,bn:()=>_,ee:()=>y,jY:()=>p,p5:()=>m,s0:()=>d,zg:()=>l});var n=i(90536),s=i(31770),o=i(99751);const a="configSlice",r=(0,s.ur)((0,o.$)("pro")),c=(0,n.createSlice)({name:a,initialState:{...r,initialMergeTags:void 0},reducers:{setPage:(e,t)=>{e.page=t.payload},setConfig:(e,t)=>{e.config={...r.config,...t.payload}},changeConfigMode:(e,t)=>{var i,n,s;const a=null!==(i=null===e||void 0===e||null===(n=e.advancedConfigs)||void 0===n?void 0:n[t.payload])&&void 0!==i?i:null===(s=(0,o.$)(t.payload))||void 0===s?void 0:s.config;if("simple"!==e.config.mode&&"simple"!==t.payload){const t={...e.config,...Object.fromEntries(Object.entries(a).filter((([e])=>o.i.includes(e))))};e.config=t}else e.config={...e.config,...(0,o.$)(t.payload).config}},setInitialMergeTags:(e,t)=>{e.initialMergeTags=t.payload},setMergeTags:(e,t)=>{e.config.mergeTags=t.payload},updateConfig:(e,t)=>{e.config={...e.config,...t.payload}},setProject:(e,t)=>{e.project=t.payload},setAdvancedConfigs:(e,t)=>{e.advancedConfigs=t.payload}},extraReducers:e=>{}}),d=e=>e[a].page,l=e=>e[a].config,u=e=>e[a].config.themes,m=e=>e[a].config.styles,p=e=>e[a].project,h=e=>e[a].config.mergeTags||e[a].initialMergeTags,{setPage:v,setConfig:g,updateConfig:f,setProject:_,setAdvancedConfigs:y,setMergeTags:w,changeConfigMode:b,setInitialMergeTags:S}=c.actions,E=c},47358:(e,t,i)=>{i.d(t,{Ay:()=>P,B:()=>j,Bp:()=>C,CS:()=>T,Ct:()=>D,Fk:()=>v,Fv:()=>L,N6:()=>S,NQ:()=>O,Oo:()=>p,PM:()=>h,Tn:()=>N,Uf:()=>y,V$:()=>B,Wm:()=>M,cL:()=>I,mi:()=>g,qf:()=>m,sy:()=>A,vc:()=>f,vs:()=>_,wW:()=>w,wr:()=>b,yy:()=>k});var n=i(90536),s=i(85163),o=i(31770),a=i(55701);const r=window.localStorage.getItem(s.V0.em_code_mode_settings),c=r&&JSON.parse(r),d=(0,o.ur)({activeModal:"",lastActiveSettingsTab:s.Bv,activeSettingsTab:s.Bv,isPanelHistoryCollapsed:!0,monacoHeight:0,isCodeMode:(null===c||void 0===c?void 0:c.isCodeMode)||s.EW.isPlugin,codeModeDirection:(null===c||void 0===c?void 0:c.codeModeDirection)||"left",emailWidth:"100%",emailViewType:s.Vp,mobileViewActive:{shutdown:!0,styles:!0},emailMaxWidthSize:425,propertiesPanelKey:s.WU,parentBlocks:[]}),l="emailPageSlice",u=(0,n.createSlice)({name:l,initialState:d,reducers:{openModal:(e,t)=>{e.activeModal=t.payload},closeModal:e=>{e.activeModal=""},setActiveSettingsTab:(e,t)=>{e.lastActiveSettingsTab=e.activeSettingsTab,e.activeSettingsTab=t.payload,t.payload!==s.Vv&&(e.isPanelHistoryCollapsed=!0)},resetToLastActiveSettingsTab:e=>{"Properties"===e.lastActiveSettingsTab?e.activeSettingsTab="Build":e.activeSettingsTab=e.lastActiveSettingsTab,e.lastActiveSettingsTab!==s.Vv&&(e.isPanelHistoryCollapsed=!0)},switchIsPanelHistoryCollapsed:(e,t)=>{e.isPanelHistoryCollapsed=t.payload||!e.isPanelHistoryCollapsed},setEmailWidth:(e,{payload:t})=>{e.emailWidth=t,e.emailViewType=t>e.emailMaxWidthSize||"100%"===t?s.Vp:s.ND,window.localStorage.setItem(s.V0.em_default_sizes,JSON.stringify(t))},setEmailMaxWidthSize:(e,{payload:t})=>{e.emailMaxWidthSize=t},setEmailViewType:(e,t)=>{e.emailViewType=t.payload},switchCodeMode:e=>{const t=!e.isCodeMode;e.isCodeMode=t,window.localStorage.setItem(s.V0.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:t}))},setCodeMode:(e,t)=>{const i=t.payload;e.isCodeMode!==i&&(e.isCodeMode=i,window.localStorage.setItem(s.V0.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:i})))},switchCodeModeDirection:(e,t)=>{e.codeModeDirection=t.payload,window.localStorage.setItem(s.V0.em_code_mode_settings,JSON.stringify({isCodeMode:e.isCodeMode,codeModeDirection:t.payload}))},setMobileViewActive:(e,t)=>{e.mobileViewActive=t.payload},setPropertiesPanelKey:(e,t)=>{e.propertiesPanelKey=t.payload},resetParentBlocks:e=>{e.parentBlocks=[]},setParentBlocks:(e,t)=>{e.parentBlocks=t.payload}},extraReducers:e=>{e.addMatcher(a.VM.endpoints.getParentEmailBlocks.matchFulfilled,((e,t)=>{e.parentBlocks=t.payload}))}}),{openModal:m,closeModal:p,setActiveSettingsTab:h,resetToLastActiveSettingsTab:v,switchIsPanelHistoryCollapsed:g,setEmailWidth:f,switchCodeMode:_,switchCodeModeDirection:y,setMobileViewActive:w,setEmailViewType:b,setCodeMode:S,setEmailMaxWidthSize:E,setPropertiesPanelKey:C,resetParentBlocks:A}=u.actions,I=e=>e[l].activeModal,j=e=>e[l].activeSettingsTab,M=e=>e[l].isPanelHistoryCollapsed,O=e=>e[l].emailWidth,D=e=>e[l].emailViewType,T=e=>e[l].mobileViewActive,k=e=>e[l].codeModeDirection,L=e=>e[l].isCodeMode,N=e=>e[l].propertiesPanelKey,B=e=>e[l].parentBlocks,P=u},86286:(e,t,i)=>{i.d(t,{Ay:()=>b,B:()=>g,B$:()=>w,C1:()=>f,Yl:()=>m,hZ:()=>y,ko:()=>p,ku:()=>u,ww:()=>d,yf:()=>_});var n=i(90536),s=i(39990),o=i(85163),a=i(32269);const r=(0,i(31770).ur)({currentUser:{},currentSchema:{},monacoOptions:o.rW,monacoDidMount:!1}),c="userSlice",d=(0,n.createAsyncThunk)("user/setMonacoOptions",(async(e,{getState:t})=>{const i=t()[c],n="string"===typeof e.font_family?`${e.font_family}, sans-serif`:void 0,s=void 0!==e.word_wrap?e.word_wrap?"on":"off":void 0;return n&&i.monacoOptions.fontFamily!==n&&await(0,a.iV)(e.font_family),{tabSize:e.tab_size,fontFamily:n,fontSize:e.font_size,wordWrap:s,insertSpaces:e.insert_spaces,minimap:{enabled:e.minimap}}})),l=(0,n.createSlice)({name:c,initialState:r,reducers:{setMonacoDidMount:(e,{payload:t})=>{e.monacoDidMount=t},setTheme:(e,{payload:t})=>{e.currentUser.theme=t},setUserLocale:(e,{payload:t})=>{e.currentUser.locale=t},setUserAutosaves:(e,{payload:t})=>{e.currentUser.autosaves=t},setUser:(e,{payload:t})=>{e.currentUser={...e.currentUser,...t}}},extraReducers:e=>{e.addCase(d.fulfilled,((e,t)=>{const i=t.payload;e.monacoOptions=(0,a.i0)({...e.monacoOptions},i)})),e.addMatcher(s.Q2.endpoints.editMe.matchFulfilled,((e,t)=>{e.currentUser=t.payload})),e.addMatcher(s.Q2.endpoints.getMe.matchFulfilled,((e,t)=>{e.currentUser=t.payload})),e.addMatcher(s.Q2.endpoints.getSchema.matchFulfilled,((e,t)=>{e.currentSchema=t.payload.schema}))}}),{setMonacoDidMount:u,setTheme:m,setUserLocale:p,setUserAutosaves:h,setUser:v}=l.actions,g=e=>{var t;return null===(t=e[c].currentUser)||void 0===t?void 0:t.locale},f=e=>e[c].currentUser,_=e=>e[c].currentSchema,y=e=>e[c].monacoOptions,w=e=>{var t;return 3891!==(null===(t=e[c].currentUser.subscription)||void 0===t?void 0:t.ID)},b=l},57964:()=>{}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[197],{95689:(e,t,r)=>{r.d(t,{A:()=>n});const n=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}},10351:(e,t,r)=>{r.d(t,{A:()=>i});var n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const i=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){return n.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},23093:(e,t,r)=>{r.d(t,{A:()=>n});const n={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},81158:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{bZ:()=>read});var js_base64__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(62813),text_encoding__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(18830),text_encoding__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(text_encoding__WEBPACK_IMPORTED_MODULE_1__),encode=function(e,t){return void 0===t&&(t="utf-8"),new text_encoding__WEBPACK_IMPORTED_MODULE_1__.TextEncoder(t).encode(e)},arr2str=function(e){for(var t=[],r=0;r<e.length;r+=32768)t.push(String.fromCharCode.apply(null,e.subarray(r,r+32768)));return t.join("")};function decode(e,t){void 0===t&&(t="utf-8");for(var r=0,n=[{charset:normalizeCharset(t),fatal:!1},{charset:"utf-8",fatal:!0},{charset:"iso-8859-15",fatal:!1}];r<n.length;r++){var i=n[r],o=i.charset,a=i.fatal;try{return new text_encoding__WEBPACK_IMPORTED_MODULE_1__.TextDecoder(o,{fatal:a}).decode(e)}catch(s){}}return arr2str(e)}var convert=function(e,t){return encode("string"===typeof e?e:decode(e,t))};function normalizeCharset(e){var t;return void 0===e&&(e="utf-8"),(t=e.match(/^utf[-_]?(\d+)$/i))?"UTF-"+t[1]:(t=e.match(/^win[-_]?(\d+)$/i))?"WINDOWS-"+t[1]:(t=e.match(/^latin[-_]?(\d+)$/i))?"ISO-8859-"+t[1]:e}function getCharsetName(e){return e.toLowerCase().replace(/[^0-9a-z]/g,"")}function guid(){return"xxxxxxxxxxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})).replace("-","")}function wrap(e,t){var r=[];do{r.push(e.substring(0,t))}while(""!=(e=e.substring(t,e.length)));return r.join("\r\n")}function mimeDecode(e,t){void 0===e&&(e=""),void 0===t&&(t="UTF-8");for(var r=(e.match(/=[\da-fA-F]{2}/g)||[]).length,n=new Uint8Array(e.length-2*r),i=0,o=e.length,a=0;i<o;i++){var s=e.substr(i+1,2),l=e.charAt(i);"="===l&&s&&/[\da-fA-F]{2}/.test(s)?(n[a++]=parseInt(s,16),i+=2):n[a++]=l.charCodeAt(0)}return decode(n,t)}var GB2312UTF8={Dig2Dec:function(s){var retV=0;if(4==s.length){for(var i=0;i<4;i++)retV+=eval(s.charAt(i))*Math.pow(2,3-i);return retV}return-1},Hex2Utf8:function(s){var retS="",tempS="",ss="";if(16==s.length){tempS="1110"+s.substring(0,4),tempS+="10"+s.substring(4,10),tempS+="10"+s.substring(10,16);for(var sss="0123456789ABCDEF",i=0;i<3;i++)retS+="%",ss=tempS.substring(8*i,8*(eval(i.toString())+1)),retS+=sss.charAt(this.Dig2Dec(ss.substring(0,4))),retS+=sss.charAt(this.Dig2Dec(ss.substring(4,8)));return retS}return""},Dec2Dig:function(e){for(var t="",r=0,n=0;n<4;n++)e>=(r=Math.pow(2,3-n))?(t+="1",e-=r):t+="0";return t},Str2Hex:function(s){for(var c="",n,ss="0123456789ABCDEF",digS="",i=0;i<s.length;i++)c=s.charAt(i),n=ss.indexOf(c),digS+=this.Dec2Dig(eval(n.toString()));return digS},GB2312ToUTF8:function(e){var t=escape(e).split("%"),r="";""!=t[0]&&(r=t[0]);for(var n=1;n<t.length;n++)"u"==t[n].substring(0,1)?(r+=this.Hex2Utf8(this.Str2Hex(t[n].substring(1,5))),t[n].length&&(r+=t[n].substring(5))):(r+=unescape("%"+t[n]),t[n].length&&(r+=t[n].substring(5)));return r},UTF8ToGB2312:function(e){var t="",r="",n="",i="",o=-1;if(-1==(o=e.indexOf("%")))return e;for(;-1!=o;){if(o<3)if(t+=e.substr(0,o-1),r=(e=e.substr(o+1,e.length-o)).substr(0,2),e=e.substr(2,e.length-2),0===(128&parseInt("0x"+r)))t+=String.fromCharCode(parseInt("0x"+r));else if(192===(224&parseInt("0x"+r))){n=e.substr(1,2),e=e.substr(3,e.length-3);var a=(31&parseInt("0x"+r))<<6;a|=63&parseInt("0x"+n),t+=String.fromCharCode(a)}else{n=e.substr(1,2),i=(e=e.substr(3,e.length-3)).substr(1,2),e=e.substr(3,e.length-3);a=(15&parseInt("0x"+r))<<12;a|=(63&parseInt("0x"+n))<<6,a|=63&parseInt("0x"+i),t+=String.fromCharCode(a)}else t+=e.substring(0,o),e=e.substring(o);o=e.indexOf("%")}return t+e}},verbose=!1,defaultCharset="utf-8";function createBoundary(){return"----="+guid()}function toEmailAddress(e){var t="";return"undefined"===typeof e||("string"===typeof e?t=e:"object"===typeof e&&(Array.isArray(e)?t+=e.map((function(e){var t="";return e.name&&(t+='"'+e.name.replace(/^"|"\s*$/g,"")+'" '),e.email&&(t+="<"+e.email+">"),t})).filter((function(e){return e})).join(", "):e&&(e.name&&(t+='"'+e.name.replace(/^"|"\s*$/g,"")+'" '),e.email&&(t+="<"+e.email+">")))),t}function getBoundary(e){var t=/boundary="?(.+?)"?(\s*;[\s\S]*)?$/g.exec(e);return t?t[1]:void 0}function getCharset(e){var t=/charset\s*=\W*([\w\-]+)/g.exec(e);return t?t[1]:void 0}function getEmailAddress(e){var t=[],r=e.match(/('[^']*')|[^,]+/g);if(!r)return t;for(var n=0;n<r.length;n++){var i={name:"",email:""},o=unquoteString(r[n]);/^'.*'$/g.test(o)&&(i.name=o.replace(/'/g,"").trim(),n++);var a=/^(.*?)(\s*\<(.*?)\>)$/g.exec(o);if(a){var s=a[1].replace(/'/g,"").trim();s&&s.length&&(i.name=s),i.email=a[3].trim(),t.push(i)}else i.email=o.trim(),t.push(i)}return 0===t.length?null:1===t.length?t[0]:t}function decodeJoint(e){var t=/=\?([^?]+)\?(B|Q)\?(.+?)(\?=)/gi.exec(e);if(t){var r=getCharsetName(t[1]||defaultCharset),n=t[2].toUpperCase(),i=t[3];if("B"===n)return"utf8"===r?decode(encode(js_base64__WEBPACK_IMPORTED_MODULE_0__.o4.fromBase64(i.replace(/\r?\n/g,""))),"utf8"):decode(js_base64__WEBPACK_IMPORTED_MODULE_0__.o4.toUint8Array(i.replace(/\r?\n/g,"")),r);if("Q"===n)return unquotePrintable(i,r,!0)}return e}function unquoteString(e){var t=e||"",r=t.match(/=\?([^?]+)\?(B|Q)\?(.+?)(\?=)/gi);return r&&r.forEach((function(e){t=t.replace(e,decodeJoint(e))})),t.replace(/\r?\n/g,"")}function unquotePrintable(e,t,r){void 0===r&&(r=!1);var n=e.replace(/[\t ]+$/gm,"").replace(/=(?:\r?\n|$)/g,"");return r&&(n=n.replace(/_/g,decode(new Uint8Array([32]),t))),mimeDecode(n,t)}function parse(e,t,r){var n;"function"===typeof t&&"undefined"===typeof r&&(r=t,t=null),"object"!==typeof t&&(t={headersOnly:!1});var i={};try{if("string"!==typeof e)throw new Error('Argument "eml" expected to be string!');i=parseRecursive(e.split(/\r?\n/),0,i,t)}catch(o){n=o}return r&&r(n,i),n||i||new Error("read EML failed!")}function parseRecursive(e,t,r,n){var i,o,a,s=null,l="",c="",d=!1,u=!1,f=!1,p=!1;function h(e){e.part={},parseRecursive(e.lines,0,e.part,n),delete e.lines}r.headers={};for(var g=t;g<e.length;g++){var y=e[g];if(d){if(!p){r.body=e.splice(g).join("\r\n");break}if(0==y.indexOf("--"+c)&&!/\-\-(\r?\n)?$/g.test(y)){u=!0,s&&s.lines&&h(s),s={boundary:(b=/^\-\-([^\r\n]+)(\r?\n)?$/g.exec(y))[1],lines:[]},r.body.push(s);continue}if(u){if((null===(i=s)||void 0===i?void 0:i.boundary)&&""==e[g-1]&&0==y.indexOf("--"+c+"--")){u=!1,h(s);continue}if((null===(o=s)||void 0===o?void 0:o.boundary)&&0==y.indexOf("--"+c+"--"))continue;null===(a=s)||void 0===a||a.lines.push(y)}}else{if(""==y){if(d=!0,n&&n.headersOnly)break;var m=r.headers["Content-Type"];if(m&&/^multipart\//g.test(m)){var v=getBoundary(m);v&&v.length&&(c=v,p=!0,r.body=[])}continue}var b;if(b=/^\s+([^\r\n]+)/g.exec(y)){f?r.headers[l][r.headers[l].length-1]+="\r\n"+b[1]:r.headers[l]+="\r\n"+b[1];continue}if(b=/^([\w\d\-]+):\s*([^\r\n]*)/gi.exec(y)){l=b[1],r.headers[l]?(f=!0,"string"==typeof r.headers[l]&&(r.headers[l]=[r.headers[l]]),r.headers[l].push(b[2])):(f=!1,r.headers[l]=b[2]);continue}}}return r.body&&r.body.length&&r.body[r.body.length-1].lines&&h(r.body[r.body.length-1]),r}function completeBoundary(e){if(!e||!e.boundary)return null;for(var t,r=e.lines||[],n={boundary:e.boundary,part:{headers:{}}},i="",o=!1,a=0;a<r.length;a++){var s=r[a];if(o){d=/^\-\-([^\r\n]+)(\r?\n)?$/g.exec(s);var l=getBoundary(n.part.headers["Content-Type"]||n.part.headers["Content-type"]);if(d&&0===s.indexOf("--"+l)&&!t){t={boundary:d?d[1]:"",lines:[]};continue}if(!t||!t.boundary){n.part.body=r.splice(a).join("\r\n");break}if(""===r[a-1]&&0===s.indexOf("--"+t.boundary)){var c=completeBoundary(t);if(c?Array.isArray(n.part.body)?n.part.body.push(c):n.part.body=[c]:n.part.body=t.lines.join("\r\n"),r[a+1]){t.lines=[];continue}if(0===s.indexOf("--"+t.boundary+"--")&&""===r[a+1]){t=void 0;break}}t.lines.push(s)}else{if(""===s){o=!0;continue}var d;if(d=/^([\w\d\-]+):\s*([^\r\n]*)/gi.exec(s)){i=d[1],n.part.headers[i]=d[2];continue}var u=/^\s+([^\r\n]+)/g.exec(s);if(u){n.part.headers[i]+="\r\n"+u[1];continue}}}return n}function build(e,t,r){var n;"function"===typeof t&&"undefined"===typeof r&&(r=t,t=null);var i="",o="\r\n";try{if(!e)throw new Error('Argument "data" expected to be an object! or string');if("string"===typeof e){var a=read(e);if("string"===typeof a)throw new Error(a);if(a instanceof Error)throw a;e=a}if(!e.headers)throw new Error('Argument "data" expected to be has headers');"string"===typeof e.subject&&(e.headers.Subject=e.subject),"undefined"!==typeof e.from&&(e.headers.From=toEmailAddress(e.from)),"undefined"!==typeof e.to&&(e.headers.To=toEmailAddress(e.to)),"undefined"!==typeof e.cc&&(e.headers.Cc=toEmailAddress(e.cc));var s=getBoundary(e.headers["Content-Type"]||e.headers["Content-type"]||""),l=!1,c=createBoundary(),d="";e.multipartAlternative&&(d=""+(getBoundary(e.multipartAlternative["Content-Type"])||""),l=!0),s?(c=s,l=!0):e.headers["Content-Type"]=e.headers["Content-type"]||'multipart/mixed;\r\nboundary="'+c+'"';for(var u=Object.keys(e.headers),f=0;f<u.length;f++){var p=u[f],h=e.headers[p];if("undefined"!==typeof h)if("string"===typeof h)i+=p+": "+h.replace(/\r?\n/g,"\r\n ")+o;else for(var g=0;g<h.length;g++)i+=p+": "+h[g].replace(/\r?\n/g,"\r\n ")+o}if(e.multipartAlternative&&(i+=o,i+="--"+s+o,i+="Content-Type: "+e.multipartAlternative["Content-Type"].replace(/\r?\n/g,"\r\n ")+o),i+=o,e.text){if("object"===typeof t&&t&&t.encode&&e.textheaders)for(var p in i+="--"+c+o,e.textheaders)e.textheaders.hasOwnProperty(p)&&(i+=p+": "+e.textheaders[p].replace(/\r?\n/g,"\r\n "));else l&&(i+="--"+(d||c)+o,i+='Content-Type: text/plain; charset="utf-8"\r\n');i+=o+e.text,i+=o}if(e.html){if("object"===typeof t&&t&&t.encode&&e.textheaders)for(var p in i+="--"+c+o,e.textheaders)e.textheaders.hasOwnProperty(p)&&(i+=p+": "+e.textheaders[p].replace(/\r?\n/g,"\r\n "));else l&&(i+="--"+(d||c)+o,i+='Content-Type: text/html; charset="utf-8"\r\n');verbose&&console.info("line 765 "+l+", emlBoundary: "+s+", multipartBoundary: "+d+", boundary: "+c),i+=o+e.html,i+=o}if(e.attachments)for(f=0;f<e.attachments.length;f++){var y=e.attachments[f];if(i+="--"+c+o,i+="Content-Type: "+(y.contentType.replace(/\r?\n/g,"\r\n ")||"application/octet-stream")+o,i+="Content-Transfer-Encoding: base64\r\n",i+="Content-Disposition: "+(y.inline?"inline":"attachment")+'; filename="'+(y.filename||y.name||"attachment_"+(f+1))+'"'+o,y.cid&&(i+="Content-ID: <"+y.cid+">"+o),i+=o,"string"===typeof y.data)i+=wrap(js_base64__WEBPACK_IMPORTED_MODULE_0__.o4.toBase64(y.data),72)+o;else i+=wrap(decode(y.data),72)+o;i+=o}l&&(i+="--"+c+"--"+o)}catch(m){n=m}return r&&r(n,i),n||i}function read(e,t,r){var n,i;function o(e,t,r){var i=e["Content-Type"]||e["Content-type"],o=getCharsetName(getCharset(i)||defaultCharset),a=e["Content-Transfer-Encoding"]||e["Content-transfer-encoding"];if("string"===typeof a&&(a=a.toLowerCase()),"base64"===a?t=i&&i.indexOf("gbk")>=0?encode(GB2312UTF8.GB2312ToUTF8(t.replace(/\r?\n/g,""))):encode(t.replace(/\r?\n/g,"")):"quoted-printable"===a?t=unquotePrintable(t,o):a&&"utf8"!==o&&0===a.search(/binary|8bit/)&&(t=decode(t,o)),!r.html&&i&&i.indexOf("text/html")>=0){"string"!==typeof t&&(t=decode(t,o)),r.html=t.replace(/\r\n|(")/g,"").replace(/\"/g,'"');try{"base64"===a?r.html=js_base64__WEBPACK_IMPORTED_MODULE_0__.o4.decode(r.html):js_base64__WEBPACK_IMPORTED_MODULE_0__.o4.btoa(js_base64__WEBPACK_IMPORTED_MODULE_0__.o4.atob(r.html))==r.html&&(r.html=js_base64__WEBPACK_IMPORTED_MODULE_0__.o4.atob(r.html))}catch(n){console.error(n)}r.htmlheaders={"Content-Type":i,"Content-Transfer-Encoding":a||""}}else if(!r.text&&i&&i.indexOf("text/plain")>=0)"string"!==typeof t&&(t=decode(t,o)),"base64"===a&&(t=js_base64__WEBPACK_IMPORTED_MODULE_0__.o4.decode(t)),r.text=t,r.textheaders={"Content-Type":i,"Content-Transfer-Encoding":a||""};else{r.attachments||(r.attachments=[]);var s={},l=e["Content-ID"]||e["Content-Id"];l&&(s.id=l);for(var c=void 0,d=0,u=["Content-Disposition","Content-Type","Content-type"];d<u.length;d++){var f=e[u[d]];if(f&&(c=f.replace(/(\s|'|utf-8|\*[0-9]\*)/g,"").split(";").map((function(e){return/name[\*]?="?(.+?)"?$/gi.exec(e)})).reduce((function(e,t){return t&&t[1]&&(e+=t[1]),e}),"")))break}c&&(s.name=decodeURI(c));var p=e["Content-Type"]||e["Content-type"];p&&(s.contentType=p);var h=e["Content-Disposition"];h&&(s.inline=/^\s*inline/g.test(h)),s.data=t,s.data64=decode(t,o),r.attachments.push(s)}}function a(e){if(!e)return"no data";try{var t={};if(!e.headers)throw new Error("data does't has headers");e.headers.Date&&(t.date=new Date(e.headers.Date)),e.headers.Subject&&(t.subject=unquoteString(e.headers.Subject)),e.headers.From&&(t.from=getEmailAddress(e.headers.From)),e.headers.To&&(t.to=getEmailAddress(e.headers.To)),e.headers.CC&&(t.cc=getEmailAddress(e.headers.CC)),e.headers.Cc&&(t.cc=getEmailAddress(e.headers.Cc)),t.headers=e.headers;var r=null,n=e.headers["Content-Type"]||e.headers["Content-type"];if(n&&/^multipart\//g.test(n)){var i=getBoundary(n);i&&i.length&&(r=i)}if(r&&Array.isArray(e.body))for(var a=0;a<e.body.length;a++){var s=e.body[a];if(s)if("undefined"===typeof s.part)verbose&&console.warn("Warning: undefined b.part");else if("string"===typeof s.part)t.data=s.part;else if("undefined"===typeof s.part.body)verbose&&console.warn("Warning: undefined b.part.body");else if("string"===typeof s.part.body)o(s.part.headers,s.part.body,t);else{var l=s.part.headers,c=l["Content-Type"]||l["Content-type"];verbose&&console.log("line 969 currentHeadersContentType: "+c),c&&c.indexOf("multipart")>=0&&!t.multipartAlternative&&(t.multipartAlternative={"Content-Type":c});for(var d=0;d<s.part.body.length;d++){var u=s.part.body[d];if("string"!==typeof u){var f=u.part.headers,p=u.part.body;Array.isArray(p)?p.forEach((function(e){o(e.part.headers,e.part.body,t)})):o(f,p,t)}else t.data=u}}}else"string"===typeof e.body&&o(e.headers,e.body,t);return t}catch(h){return h}}if("function"===typeof t&&"undefined"===typeof r&&(r=t,t=null),"string"===typeof e){var s=parse(e,t);if("string"===typeof s||s instanceof Error)n=s;else"string"===typeof(l=a(s))||l instanceof Error?n=l:i=l}else if("object"===typeof e){var l;"string"===typeof(l=a(e))||l instanceof Error?n=l:i=l}else n=new Error("Missing EML file content!");return r&&r(n,i),n||i||new Error("read EML failed!")}},78117:(e,t,r)=>{var n=r(33825).Buffer,i=r(97107);function o(e){return(e||"").toString().trim().replace(/^latin[\-_]?(\d+)$/i,"ISO-8859-$1").replace(/^win(?:dows)?[\-_]?(\d+)$/i,"WINDOWS-$1").replace(/^utf[\-_]?(\d+)$/i,"UTF-$1").replace(/^ks_c_5601\-1987$/i,"CP949").replace(/^us[\-_]?ascii$/i,"ASCII").toUpperCase()}e.exports.convert=function(e,t,r){var a;r=o(r||"UTF-8"),t=o(t||"UTF-8"),e=e||"","UTF-8"!==r&&"string"===typeof e&&(e=n.from(e,"binary"));if(r===t)a="string"===typeof e?n.from(e):e;else try{a=function(e,t,r){return"UTF-8"===t?i.decode(e,r):"UTF-8"===r?i.encode(e,t):i.encode(i.decode(e,r),t)}(e,t,r)}catch(s){console.error(s),a=e}"string"===typeof a&&(a=n.from(a,"utf-8"));return a}},43121:(e,t,r)=>{var n=r(58339)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(i){n=!1}e.exports=n},95687:e=>{e.exports=EvalError},86837:e=>{e.exports=Error},52608:e=>{e.exports=RangeError},66884:e=>{e.exports=ReferenceError},56114:e=>{e.exports=SyntaxError},26681:e=>{e.exports=TypeError},60447:e=>{e.exports=URIError},43001:e=>{var t,r="object"===typeof Reflect?Reflect:null,n=r&&"function"===typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"===typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!==e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"===typeof e.on&&g(e,"error",t,r)}(e,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var i,o,a,c;if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"===typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=t,d.count=a.length,c=d,console&&console.warn&&console.warn(c)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=d.bind(n);return i.listener=r,n.wrapFn=i,i}function f(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"===typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):h(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"===typeof r)return 1;if(void 0!==r)return r.length}return 0}function h(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t,r,n){if("function"===typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!==typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"===typeof l)n(l,this,t);else{var c=l.length,d=h(l,c);for(r=0;r<c;++r)n(d[r],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,u(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,u(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,a;if(s(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!==typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 2223.17806e9a.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[2223],{68582:(t,e,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}var i;n.d(e,{AO:()=>u,Gh:()=>B,HS:()=>k,Rr:()=>_,V1:()=>D,pX:()=>I,pb:()=>x,rc:()=>i,tH:()=>Y,ue:()=>l,zR:()=>s}),function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(i||(i={}));const a="popstate";function s(t){return void 0===t&&(t={}),d((function(t,e){let{pathname:n,search:r,hash:i}=t.location;return c("",{pathname:n,search:r,hash:i},e.state&&e.state.usr||null,e.state&&e.state.key||"default")}),(function(t,e){return"string"===typeof e?e:u(e)}),null,t)}function o(t){return{usr:t.state,key:t.key}}function c(t,e,n,i){return void 0===n&&(n=null),r({pathname:"string"===typeof t?t:t.pathname,search:"",hash:""},"string"===typeof e?_(e):e,{state:n,key:e&&e.key||i||Math.random().toString(36).substr(2,8)})}function u(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&"?"!==n&&(e+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function _(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function d(t,e,n,r){void 0===r&&(r={});let{window:s=document.defaultView,v5Compat:u=!1}=r,_=s.history,d=i.Pop,p=null;function l(){d=i.Pop,p&&p({action:d,location:h.location})}let h={get action(){return d},get location(){return t(s,_)},listen(t){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(a,l),p=t,()=>{s.removeEventListener(a,l),p=null}},createHref:t=>e(s,t),push:function(t,e){d=i.Push;let r=c(h.location,t,e);n&&n(r,t);let a=o(r),l=h.createHref(r);try{_.pushState(a,"",l)}catch(f){s.location.assign(l)}u&&p&&p({action:d,location:r})},replace:function(t,e){d=i.Replace;let r=c(h.location,t,e);n&&n(r,t);let a=o(r),s=h.createHref(r);_.replaceState(a,"",s),u&&p&&p({action:d,location:r})},go:t=>_.go(t)};return h}var p;function l(t,e,n){void 0===n&&(n="/");let r=x(("string"===typeof e?_(e):e).pathname||"/",n);if(null==r)return null;let i=h(t);!function(t){t.sort(((t,e)=>t.score!==e.score?e.score-t.score:function(t,e){let n=t.length===e.length&&t.slice(0,-1).every(((t,n)=>t===e[n]));return n?t[t.length-1]-e[e.length-1]:0}(t.routesMeta.map((t=>t.childrenIndex)),e.routesMeta.map((t=>t.childrenIndex)))))}(i);let a=null;for(let s=0;null==a&&s<i.length;++s)a=b(i[s],r);return a}function h(t,e,n,r){return void 0===e&&(e=[]),void 0===n&&(n=[]),void 0===r&&(r=""),t.forEach(((t,i)=>{let a={relativePath:t.path||"",caseSensitive:!0===t.caseSensitive,childrenIndex:i,route:t};a.relativePath.startsWith("/")&&(D(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=k([r,a.relativePath]),o=n.concat(a);t.children&&t.children.length>0&&(D(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),h(t.children,e,o,s)),(null!=t.path||t.index)&&e.push({path:s,score:T(s,t.index),routesMeta:o})})),e}!function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(p||(p={}));const f=/^:\w+$/,v=3,m=2,g=1,y=10,E=-2,S=t=>"*"===t;function T(t,e){let n=t.split("/"),r=n.length;return n.some(S)&&(r+=E),e&&(r+=m),n.filter((t=>!S(t))).reduce(((t,e)=>t+(f.test(e)?v:""===e?g:y)),r)}function b(t,e){let{routesMeta:n}=t,r={},i="/",a=[];for(let s=0;s<n.length;++s){let t=n[s],o=s===n.length-1,c="/"===i?e:e.slice(i.length)||"/",u=R({path:t.relativePath,caseSensitive:t.caseSensitive,end:o},c);if(!u)return null;Object.assign(r,u.params);let _=t.route;a.push({params:r,pathname:k([i,u.pathname]),pathnameBase:U(k([i,u.pathnameBase])),route:_}),"/"!==u.pathnameBase&&(i=k([i,u.pathnameBase]))}return a}function R(t,e){"string"===typeof t&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=function(t,e,n){void 0===e&&(e=!1);void 0===n&&(n=!0);w("*"===t||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were "'+t.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+t.replace(/\*$/,"/*")+'".');let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,((t,e)=>(r.push(e),"([^\\/]+)")));t.endsWith("*")?(r.push("*"),i+="*"===t||"/*"===t?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==t&&"/"!==t&&(i+="(?:(?=\\/|$))");let a=new RegExp(i,e?void 0:"i");return[a,r]}(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let a=i[0],s=a.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:r.reduce(((t,e,n)=>{if("*"===e){let t=o[n]||"";s=a.slice(0,a.length-t.length).replace(/(.)\/+$/,"$1")}return t[e]=function(t,e){try{return decodeURIComponent(t)}catch(n){return w(!1,'The value for the URL param "'+e+'" will not be decoded because the string "'+t+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),t}}(o[n]||"",e),t}),{}),pathname:a,pathnameBase:s,pattern:t}}function x(t,e){if("/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&"/"!==r?null:t.slice(n)||"/"}function D(t,e){if(!1===t||null===t||"undefined"===typeof t)throw new Error(e)}function w(t,e){if(!t){"undefined"!==typeof console&&console.warn(e);try{throw new Error(e)}catch(n){}}}function N(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified `to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function B(t,e,n,i){let a;void 0===i&&(i=!1),"string"===typeof t?a=_(t):(a=r({},t),D(!a.pathname||!a.pathname.includes("?"),N("?","pathname","search",a)),D(!a.pathname||!a.pathname.includes("#"),N("#","pathname","hash",a)),D(!a.search||!a.search.includes("#"),N("#","search","hash",a)));let s,o=""===t||""===a.pathname,c=o?"/":a.pathname;if(i||null==c)s=n;else{let t=e.length-1;if(c.startsWith("..")){let e=c.split("/");for(;".."===e[0];)e.shift(),t-=1;a.pathname=e.join("/")}s=t>=0?e[t]:"/"}let u=function(t,e){void 0===e&&(e="/");let{pathname:n,search:r="",hash:i=""}="string"===typeof t?_(t):t,a=n?n.startsWith("/")?n:function(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach((t=>{".."===t?n.length>1&&n.pop():"."!==t&&n.push(t)})),n.length>1?n.join("/"):"/"}(n,e):e;return{pathname:a,search:O(r),hash:G(i)}}(a,s),d=c&&"/"!==c&&c.endsWith("/"),p=(o||"."===c)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!p||(u.pathname+="/"),u}const k=t=>t.join("/").replace(/\/\/+/g,"/"),U=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),O=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",G=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:"";class Y extends Error{}class ${constructor(t,e,n){this.status=t,this.statusText=e||"",this.data=n}}function I(t){return t instanceof $}},29993:(t,e,n)=>{n.d(e,{Cp:()=>i,v4:()=>s,wd:()=>a});var r=n(46909);function i(t,e){return(0,r.BF)().captureException(t,{captureContext:e})}function a(t,e){var n="string"===typeof e?e:void 0,i="string"!==typeof e?{captureContext:e}:void 0;return(0,r.BF)().captureMessage(t,n,i)}function s(t){(0,r.BF)().withScope(t)}},46909:(t,e,n)=>{n.d(e,{BF:()=>f,EU:()=>l});var r=n(69002),i=n(53107),a=n(10686),s=n(27833),o=n(42062),c=n(42090),u=n(70318),_=4,d=100;class p{__init(){this._stack=[{}]}constructor(t,e=new c.H,n=_){this._version=n,p.prototype.__init.call(this),this.getStackTop().scope=e,t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){var t=c.H.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){var n=this._lastEventId=e&&e.event_id?e.event_id:(0,r.eJ)(),i=new Error("Sentry syntheticException");return this._withClient(((r,a)=>{r.captureException(t,{originalException:t,syntheticException:i,...e,event_id:n},a)})),n}captureMessage(t,e,n){var i=this._lastEventId=n&&n.event_id?n.event_id:(0,r.eJ)(),a=new Error(t);return this._withClient(((r,s)=>{r.captureMessage(t,e,{originalException:t,syntheticException:a,...n,event_id:i},s)})),i}captureEvent(t,e){var n=e&&e.event_id?e.event_id:(0,r.eJ)();return"transaction"!==t.type&&(this._lastEventId=n),this._withClient(((r,i)=>{r.captureEvent(t,{...e,event_id:n},i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=d}=r.getOptions&&r.getOptions()||{};if(!(o<=0)){var c={timestamp:(0,i.lu)(),...t},u=s?(0,a.pq)((()=>s(c,e))):c;null!==u&&n.addBreadcrumb(u,o)}}setUser(t){var e=this.getScope();e&&e.setUser(t)}setTags(t){var e=this.getScope();e&&e.setTags(t)}setExtras(t){var e=this.getScope();e&&e.setExtras(t)}setTag(t,e){var n=this.getScope();n&&n.setTag(t,e)}setExtra(t,e){var n=this.getScope();n&&n.setExtra(t,e)}setContext(t,e){var n=this.getScope();n&&n.setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();e&&n&&t(e)}run(t){var e=h(this);try{t(this)}finally{h(e)}}getIntegration(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(n){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.vF.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){return this._callExtensionMethod("startTransaction",t,e)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){var t=this.getStackTop(),e=t&&t.scope,n=e&&e.getSession();n&&(0,u.Vu)(n),this._sendSessionUpdate(),e&&e.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:r,environment:i}=n&&n.getOptions()||{};var a=(0,s.V)();const{userAgent:o}=a.navigator||{};var c=(0,u.fj)({release:r,environment:i,...e&&{user:e.getUser()},...o&&{userAgent:o},...t});if(e){var _=e.getSession&&e.getSession();_&&"ok"===_.status&&(0,u.qO)(_,{status:"exited"}),this.endSession(),e.setSession(c)}return c}shouldSendDefaultPii(){var t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop();if(t){var n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}}_withClient(t){const{scope:e,client:n}=this.getStackTop();n&&t(n,e)}_callExtensionMethod(t,...e){var n=l().__SENTRY__;if(n&&n.extensions&&"function"===typeof n.extensions[t])return n.extensions[t].apply(this,e);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.vF.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function l(){var t=(0,s.V)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function h(t){var e=l(),n=m(e);return g(e,t),n}function f(){var t=l();return v(t)&&!m(t).isOlderThan(_)||g(t,new p),(0,o.wD)()?function(t){try{var e=l().__SENTRY__,n=e&&e.extensions&&e.extensions.domain&&e.extensions.domain.active;if(!n)return m(t);if(!v(n)||m(n).isOlderThan(_)){var r=m(t).getStackTop();g(n,new p(r.client,c.H.clone(r.scope)))}return m(n)}catch(i){return m(t)}}(t):m(t)}function v(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function m(t){return(0,s.B)("hub",(()=>new p),t)}function g(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}},42090:(t,e,n)=>{n.d(e,{H:()=>_,l:()=>p});var r=n(83190),i=n(53107),a=n(45688),s=n(10686),o=n(69002),c=n(27833),u=n(70318);class _{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(t){var e=new _;return t&&(e._breadcrumbs=[...t._breadcrumbs],e._tags={...t._tags},e._extra={...t._extra},e._contexts={...t._contexts},e._user=t._user,e._level=t._level,e._span=t._span,e._session=t._session,e._transactionName=t._transactionName,e._fingerprint=t._fingerprint,e._eventProcessors=[...t._eventProcessors],e._requestSession=t._requestSession,e._attachments=[...t._attachments]),e}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&(0,u.qO)(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},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,e){return null===e?delete this._contexts[t]:this._contexts={...this._contexts,[t]:e},this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if("function"===typeof t){var e=t(this);return e instanceof _?e:this}return t instanceof _?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):(0,r.Qd)(t)&&(this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(t,e){var n="number"===typeof e?e:100;if(n<=0)return this;var r={timestamp:(0,i.lu)(),...t};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,e={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};var n=this._span.transaction&&this._span.transaction.name;n&&(t.tags={transaction:n,...t.tags})}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...d(),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}_notifyEventProcessors(t,e,n,i=0){return new a.T2(((a,o)=>{var c=t[i];if(null===e||"function"!==typeof c)a(e);else{var u=c({...e},n);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.id&&null===u&&s.vF.log(`Event processor "${c.id}" dropped event`),(0,r.Qg)(u)?u.then((e=>this._notifyEventProcessors(t,e,n,i+1).then(a))).then(null,o):this._notifyEventProcessors(t,u,n,i+1).then(a).then(null,o)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?(0,o.k9)(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function d(){return(0,c.B)("globalEventProcessors",(()=>[]))}function p(t){d().push(t)}},36637:(t,e,n)=>{n.d(e,{T:()=>oe});var r="7.14.2",i=n(10686),a=n(69002),s=n(32207),o=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class c{static __initStatic(){this.id="InboundFilters"}__init(){this.name=c.id}constructor(t={}){this._options=t,c.prototype.__init.call(this)}setupOnce(t,e){var n=t=>{var n=e();if(n){var r=n.getIntegration(c);if(r){var _=n.getClient(),d=_?_.getOptions():{},p=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...o],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(r._options,d);return function(t,e){if(e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(e){}return!1}(t))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,a.$X)(t)}`),!0;if(function(t,e){if(!e||!e.length)return!1;return function(t){if(t.message)return[t.message];if(t.exception)try{const{type:e="",value:n=""}=t.exception.values&&t.exception.values[0]||{};return[`${n}`,`${e}: ${n}`]}catch(e){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.error(`Cannot extract message for event ${(0,a.$X)(t)}`),[]}return[]}(t).some((t=>e.some((e=>(0,s._c)(t,e)))))}(t,e.ignoreErrors))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,a.$X)(t)}`),!0;if(function(t,e){if(!e||!e.length)return!1;var n=u(t);return!!n&&e.some((t=>(0,s._c)(n,t)))}(t,e.denyUrls))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,a.$X)(t)}.\nUrl: ${u(t)}`),!0;if(!function(t,e){if(!e||!e.length)return!0;var n=u(t);return!n||e.some((t=>(0,s._c)(n,t)))}(t,e.allowUrls))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,a.$X)(t)}.\nUrl: ${u(t)}`),!0;return!1}(t,p)?null:t}}return t};n.id=this.name,t(n)}}function u(t){try{let n;try{n=t.exception.values[0].stacktrace.frames}catch(e){}return n?function(t=[]){for(let n=t.length-1;n>=0;n--){var e=t[n];if(e&&"<anonymous>"!==e.filename&&"[native code]"!==e.filename)return e.filename||null}return null}(n):null}catch(n){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.error(`Cannot extract url for event ${(0,a.$X)(t)}`),null}}c.__initStatic();var _=n(27445);let d;class p{constructor(){p.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=p.id}setupOnce(){d=Function.prototype.toString,Function.prototype.toString=function(...t){var e=(0,_.sp)(this)||this;return d.apply(e,t)}}}p.__initStatic();var l=n(42090),h=n(46909),f=[];function v(t){var e=t.defaultIntegrations||[],n=t.integrations;let r;e.forEach((t=>{t.isDefaultInstance=!0})),r=Array.isArray(n)?[...e,...n]:"function"===typeof n?(0,a.k9)(n(e)):e;var i=function(t){var e={};return t.forEach((t=>{const{name:n}=t;var r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.values(e)}(r),s=i.findIndex((t=>"Debug"===t.name));if(-1!==s){const[t]=i.splice(s,1);i.push(t)}return i}var m=n(27833),g=n(26219),y=n(14322),E=n(71639),S=n(70318);class T extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}var b=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function R(t,e=!1){const{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:c}=t;return`${o}://${c}${e&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${s}`}function x(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function D(t){var e="string"===typeof t?function(t){var e=b.exec(t);if(!e)throw new T(`Invalid Sentry Dsn: ${t}`);const[n,r,i="",a,s="",o]=e.slice(1);let c="",u=o;var _=u.split("/");if(_.length>1&&(c=_.slice(0,-1).join("/"),u=_.pop()),u){var d=u.match(/^\d+/);d&&(u=d[0])}return x({host:a,pass:i,path:c,projectId:u,port:s,protocol:n,publicKey:r})}(t):x(t);return function(t){if("undefined"!==typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:e,projectId:n,protocol:r}=t;if(["protocol","publicKey","host","projectId"].forEach((e=>{if(!t[e])throw new T(`Invalid Sentry Dsn: ${e} missing`)})),!n.match(/^\d+$/))throw new T(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(t){return"http"===t||"https"===t}(r))throw new T(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(e&&isNaN(parseInt(e,10)))throw new T(`Invalid Sentry Dsn: Invalid port ${e}`)}(e),e}var w=n(83190),N=n(45688);function B(t,e=1/0,n=1/0){try{return U("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function k(t,e=3,n=102400){var r,i=B(t,e);return r=i,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(r))>n?k(t,e-1,n):i}function U(t,e,r=1/0,i=1/0,a=function(){var t="function"===typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){const[s,o]=a;if(null===e||["number","boolean","string"].includes(typeof e)&&!(0,w.yr)(e))return e;var c=function(t,e){try{return"domain"===t&&e&&"object"===typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!==typeof n.g&&e===n.g?"[Global]":"undefined"!==typeof window&&e===window?"[Window]":"undefined"!==typeof document&&e===document?"[Document]":(0,w.mE)(e)?"[SyntheticEvent]":"number"===typeof e&&e!==e?"[NaN]":void 0===e?"[undefined]":"function"===typeof e?`[Function: ${(0,g.qQ)(e)}]`:"symbol"===typeof e?`[${String(e)}]`:"bigint"===typeof e?`[BigInt: ${String(e)}]`:`[object ${Object.getPrototypeOf(e).constructor.name}]`}catch(r){return`**non-serializable** (${r})`}}(t,e);if(!c.startsWith("[object "))return c;if(e.__sentry_skip_normalization__)return e;if(0===r)return c.replace("object ","");if(s(e))return"[Circular ~]";var u=e;if(u&&"function"===typeof u.toJSON)try{return U("",u.toJSON(),r-1,i,a)}catch(v){}var d=Array.isArray(e)?[]:{};let p=0;var l=(0,_.W4)(e);for(var h in l)if(Object.prototype.hasOwnProperty.call(l,h)){if(p>=i){d[h]="[MaxProperties ~]";break}var f=l[h];d[h]=U(h,f,r-1,i,a),p+=1}return o(e),d}function O(t,e=[]){return[t,e]}function G(t,e){const[n,r]=t;return[n,[...r,e]]}function Y(t,e){t[1].forEach((t=>{var n=t[0].type;e(t,n)}))}function $(t,e){return(e||new TextEncoder).encode(t)}function I(t,e){const[n,r]=t;let i=JSON.stringify(n);function a(t){"string"===typeof i?i="string"===typeof t?i+t:[$(i,e),t]:i.push("string"===typeof t?$(t,e):t)}for(var s of r){const[t,e]=s;if(a(`\n${JSON.stringify(t)}\n`),"string"===typeof e||e instanceof Uint8Array)a(e);else{let t;try{t=JSON.stringify(e)}catch(o){t=JSON.stringify(B(e))}a(t)}}return"string"===typeof i?i:function(t){var e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(var i of t)n.set(i,r),r+=i.length;return n}(i)}function C(t,e){var n="string"===typeof t.data?$(t.data,e):t.data;return[(0,_.Ce)({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}var F={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function j(t){return F[t]}var L=n(53107),P="7";function M(t){var e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function A(t,e={}){var n="string"===typeof e?e:e.tunnel,r="string"!==typeof e&&e._metadata?e._metadata.sdk:void 0;return n||`${function(t){return`${M(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){return(0,_.u4)({sentry_key:t.publicKey,sentry_version:P,...e&&{sentry_client:`${e.name}/${e.version}`}})}(t,r)}`}function H(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function q(t,e,n,r){var i=H(n),a=t.type||"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);var s=function(t,e,n,r){var i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&{dsn:R(r)},..."transaction"===t.type&&i&&{trace:(0,_.Ce)({...i})}}}(t,i,r,e);return delete t.sdkProcessingMetadata,O(s,[[{type:a},t]])}var W="Not capturing exception because it's already been captured.";class z{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(t){if(z.prototype.__init.call(this),z.prototype.__init2.call(this),z.prototype.__init3.call(this),z.prototype.__init4.call(this),this._options=t,t.dsn){this._dsn=D(t.dsn);var e=A(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("No DSN provided, client will not do anything.")}captureException(t,e,n){if((0,a.GR)(t))return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(W));let r=e&&e.event_id;return this._process(this.eventFromException(t,e).then((t=>this._captureEvent(t,e,n))).then((t=>{r=t}))),r}captureMessage(t,e,n,r){let i=n&&n.event_id;var a=(0,w.sO)(t)?this.eventFromMessage(String(t),e,n):this.eventFromException(t,n);return this._process(a.then((t=>this._captureEvent(t,n,r))).then((t=>{i=t}))),i}captureEvent(t,e,n){if(e&&e.originalException&&(0,a.GR)(e.originalException))return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(W));let r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((t=>{r=t}))),r}captureSession(t){this._isEnabled()?"string"!==typeof t.release?("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),(0,S.qO)(t,{init:!1})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getTransport(){return this._transport}flush(t){var e=this._transport;return e?this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t)))):(0,N.XW)(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,t)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(t){var e={};return t.forEach((t=>{e[t.name]=t,-1===f.indexOf(t.name)&&(t.setupOnce(l.l,h.BF),f.push(t.name),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`Integration installed: ${t.name}`))})),e}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}sendEvent(t,e={}){if(this._dsn){let r=q(t,this._dsn,this._options._metadata,this._options.tunnel);for(var n of e.attachments||[])r=G(r,C(n,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(r)}}sendSession(t){if(this._dsn){var e=function(t,e,n,r){var i=H(n);return O({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:R(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}}recordDroppedEvent(t,e){if(this._options.sendClientReports){var n=`${t}:${e}`;("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(t,e){let n=!1,r=!1;var i=e.exception&&e.exception.values;if(i)for(var a of(r=!0,i)){var s=a.mechanism;if(s&&!1===s.handled){n=!0;break}}var o="ok"===t.status;(o&&0===t.errors||o&&n)&&((0,S.qO)(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new N.T2((e=>{let n=0;var r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(t,e,n){const{normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=this.getOptions();var s={...t,event_id:t.event_id||e.event_id||(0,a.eJ)(),timestamp:t.timestamp||(0,L.lu)()};this._applyClientOptions(s),this._applyIntegrationsMetadata(s);let o=n;e.captureContext&&(o=l.H.clone(o).update(e.captureContext));let c=(0,N.XW)(s);if(o){var u=[...e.attachments||[],...o.getAttachments()];u.length&&(e.attachments=u),c=o.applyToEvent(s,e)}return c.then((t=>"number"===typeof r&&r>0?this._normalizeEvent(t,r,i):t))}_normalizeEvent(t,e,n){if(!t)return null;var r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:B(t.data,e,n)}})))},...t.user&&{user:B(t.user,e,n)},...t.contexts&&{contexts:B(t.contexts,e,n)},...t.extra&&{extra:B(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=B(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map((t=>(t.data&&(t.data=B(t.data,e,n)),t)))),r}_applyClientOptions(t){var e=this.getOptions();const{environment:n,release:r,dist:i,maxValueLength:a=250}=e;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=(0,s.xv)(t.message,a));var o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=(0,s.xv)(o.value,a));var c=t.request;c&&c.url&&(c.url=(0,s.xv)(c.url,a))}_applyIntegrationsMetadata(t){var e=Object.keys(this._integrations);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then((t=>t.event_id),(t=>{if("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var e=t;"log"===e.logLevel?i.vF.log(e.message):i.vF.warn(e)}}))}_processEvent(t,e,n){const{beforeSend:r,sampleRate:i}=this.getOptions();if(!this._isEnabled())return(0,N.xg)(new T("SDK not enabled, will not capture event.","log"));var a="transaction"===t.type;return!a&&"number"===typeof i&&Math.random()>i?(this.recordDroppedEvent("sample_rate","error"),(0,N.xg)(new T(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"))):this._prepareEvent(t,e,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",t.type||"error"),new T("An event processor returned null, will not send event.","log");return e.data&&!0===e.data.__sentry__||a||!r?n:function(t){var e="`beforeSend` method has to return `null` or a valid event.";if((0,w.Qg)(t))return t.then((t=>{if(!(0,w.Qd)(t)&&null!==t)throw new T(e);return t}),(t=>{throw new T(`beforeSend rejected with ${t}`)}));if(!(0,w.Qd)(t)&&null!==t)throw new T(e);return t}(r(n,e))})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",t.type||"error"),new T("`beforeSend` returned `null`, will not send event.","log");var i=n&&n.getSession();!a&&i&&this._updateSessionFromEvent(i,r);var s=r.transaction_info;if(a&&s&&r.transaction!==t.transaction){var o="custom";r.transaction_info={...s,source:o,changes:[...s.changes,{source:o,timestamp:r.timestamp,propagations:s.propagations}]}}return this.sendEvent(r,e),r})).then(null,(t=>{if(t instanceof T)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new T(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing+=1,t.then((t=>(this._numProcessing-=1,t)),(t=>(this._numProcessing-=1,t)))}_sendEnvelope(t){this._transport&&this._dsn?this._transport.send(t).then(null,(t=>{("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.error("Error while sending event:",t)})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.error("Transport disabled")}_clearOutcomes(){var t=this._outcomes;return this._outcomes={},Object.keys(t).map((e=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t[e]}}))}}function V(t,e){var n=J(t,e),r={type:e&&e.name,value:Q(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function X(t,e){return{exception:{values:[V(t,e)]}}}function J(t,e){var n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"===typeof t.framesToPop)return t.framesToPop;if(K.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(i){}return[]}var K=/Minified React error #\d+;/i;function Q(t){var e=t&&t.message;return e?e.error&&"string"===typeof e.error.message?e.error.message:e:"No error message"}function Z(t,e,n,r,i){let s;if((0,w.T2)(e)&&e.error)return X(t,e.error);if((0,w.BD)(e)||(0,w.W6)(e)){var o=e;if("stack"in e)s=X(t,e);else{var c=o.name||((0,w.BD)(o)?"DOMError":"DOMException"),u=o.message?`${c}: ${o.message}`:c;s=tt(t,u,n,r),(0,a.gO)(s,u)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":`${o.code}`}),s}return(0,w.bJ)(e)?X(t,e):(0,w.Qd)(e)||(0,w.xH)(e)?(s=function(t,e,n,r){var i=(0,h.BF)().getClient(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:(0,w.xH)(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${(0,_.HF)(e)}`}]},extra:{__serialized__:k(e,a)}};if(n){var o=J(t,n);o.length&&(s.exception.values[0].stacktrace={frames:o})}return s}(t,e,n,i),(0,a.M6)(s,{synthetic:!0}),s):(s=tt(t,e,n,r),(0,a.gO)(s,`${e}`,void 0),(0,a.M6)(s,{synthetic:!0}),s)}function tt(t,e,n,r){var i={message:e};if(r&&n){var a=J(t,n);a.length&&(i.exception={values:[{value:e,stacktrace:{frames:a}}]})}return i}var et=n(988),nt=["fatal","error","warning","log","info","debug"];function rt(t){return"warn"===t?"warning":nt.includes(t)?t:"log"}function it(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}var at="Breadcrumbs";class st{static __initStatic(){this.id=at}__init(){this.name=st.id}constructor(t){st.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){this.options.console&&(0,E.O)("console",ot),this.options.dom&&(0,E.O)("dom",function(t){function e(e){let n,r="object"===typeof t?t.serializeAttribute:void 0;"string"===typeof r&&(r=[r]);try{n=e.event.target?(0,et.Hd)(e.event.target,r):(0,et.Hd)(e.event,r)}catch(i){n="<unknown>"}0!==n.length&&(0,h.BF)().addBreadcrumb({category:`ui.${e.name}`,message:n},{event:e.event,name:e.name,global:e.global})}return e}(this.options.dom)),this.options.xhr&&(0,E.O)("xhr",ct),this.options.fetch&&(0,E.O)("fetch",ut),this.options.history&&(0,E.O)("history",_t)}}function ot(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:rt(t.level),message:(0,s.gt)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message=`Assertion failed: ${(0,s.gt)(t.args.slice(1)," ")||"console.assert"}`,e.data.arguments=t.args.slice(1)}(0,h.BF)().addBreadcrumb(e,{input:t.args,level:t.level})}function ct(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;const{method:e,url:n,status_code:r,body:i}=t.xhr.__sentry_xhr__||{};(0,h.BF)().addBreadcrumb({category:"xhr",data:{method:e,url:n,status_code:r},type:"http"},{xhr:t.xhr,input:i})}else;}function ut(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?(0,h.BF)().addBreadcrumb({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args}):(0,h.BF)().addBreadcrumb({category:"fetch",data:{...t.fetchData,status_code:t.response.status},type:"http"},{input:t.args,response:t.response})))}function _t(t){var e=(0,m.V)();let n=t.from,r=t.to;var i=it(e.location.href);let a=it(n);var s=it(r);a.path||(a=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),(0,h.BF)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}st.__initStatic();var dt=(0,m.V)();class pt extends z{constructor(t){t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:r}],version:r},super(t),t.sendClientReports&&dt.document&&dt.document.addEventListener("visibilitychange",(()=>{"hidden"===dt.document.visibilityState&&this._flushOutcomes()}))}eventFromException(t,e){return function(t,e,n,r){var i=Z(t,e,n&&n.syntheticException||void 0,r);return(0,a.M6)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,N.XW)(i)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,i){var a=tt(t,e,r&&r.syntheticException||void 0,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),(0,N.XW)(a)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}sendEvent(t,e){var n=this.getIntegrationById(at);n&&n.options&&n.options.sentry&&(0,h.BF)().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,a.$X)(t)},{event:t}),super.sendEvent(t,e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){var t=this._clearOutcomes();if(0!==t.length)if(this._dsn){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("Sending outcomes:",t);var e,n,r,a=A(this._dsn,this._options),s=(e=t,O((n=this._options.tunnel&&R(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:r||(0,L.lu)(),discarded_events:e}]]));try{var o=(0,m.V)();if("[object Navigator]"===Object.prototype.toString.call(o&&o.navigator)&&"function"===typeof o.navigator.sendBeacon&&!this._options.transportOptions)o.navigator.sendBeacon.bind(o.navigator)(a,I(s));else this._sendEnvelope(s)}catch(c){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.error(c)}}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("No dsn provided, will not send outcomes");else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("No outcomes to send")}}var lt="?";function ht(t,e,n,r){var i={filename:t,function:e,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var ft=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,vt=/\((\S*)(?::(\d+))(?::(\d+))\)/,mt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,gt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,yt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Et=[[30,t=>{var e=ft.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){var n=vt.exec(e[2]);n&&(e[2]=n[1],e[3]=n[2],e[4]=n[3])}const[t,r]=Tt(e[1]||lt,e[2]);return ht(r,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],[50,t=>{var e=mt.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){var n=gt.exec(e[3]);n&&(e[1]=e[1]||"eval",e[3]=n[1],e[4]=n[2],e[5]="")}let t=e[3],r=e[1]||lt;return[r,t]=Tt(r,t),ht(t,r,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],[40,t=>{var e=yt.exec(t);return e?ht(e[2],e[1]||lt,+e[3],e[4]?+e[4]:void 0):void 0}]],St=(0,g.gd)(...Et),Tt=(t,e)=>{var n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:lt,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},bt=n(29993);let Rt=0;function xt(){return Rt>0}function Dt(t,e={},n){if("function"!==typeof t)return t;try{var r=t.__sentry_wrapped__;if(r)return r;if((0,_.sp)(t))return t}catch(o){return t}var i=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);var i=r.map((t=>Dt(t,e)));return t.apply(this,i)}catch(s){throw Rt+=1,setTimeout((()=>{Rt-=1})),(0,bt.v4)((t=>{t.addEventProcessor((t=>(e.mechanism&&((0,a.gO)(t,void 0,void 0),(0,a.M6)(t,e.mechanism)),t.extra={...t.extra,arguments:r},t))),(0,bt.Cp)(s)})),s}};try{for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(i[s]=t[s])}catch(c){}(0,_.pO)(i,t),(0,_.my)(t,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>t.name})}catch(c){}return i}var wt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Nt{static __initStatic(){this.id="TryCatch"}__init(){this.name=Nt.id}constructor(t){Nt.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){var t=(0,m.V)();this._options.setTimeout&&(0,_.GS)(t,"setTimeout",Bt),this._options.setInterval&&(0,_.GS)(t,"setInterval",Bt),this._options.requestAnimationFrame&&(0,_.GS)(t,"requestAnimationFrame",kt),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&(0,_.GS)(XMLHttpRequest.prototype,"send",Ut);var e=this._options.eventTarget;e&&(Array.isArray(e)?e:wt).forEach(Ot)}}function Bt(t){return function(...e){var n=e[0];return e[0]=Dt(n,{mechanism:{data:{function:(0,g.qQ)(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function kt(t){return function(e){return t.apply(this,[Dt(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,g.qQ)(t)},handled:!0,type:"instrument"}})])}}function Ut(t){return function(...e){var n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"===typeof n[t]&&(0,_.GS)(n,t,(function(e){var n={mechanism:{data:{function:t,handler:(0,g.qQ)(e)},handled:!0,type:"instrument"}},r=(0,_.sp)(e);return r&&(n.mechanism.data.handler=(0,g.qQ)(r)),Dt(e,n)}))})),t.apply(this,e)}}function Ot(t){var e=(0,m.V)(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,_.GS)(n,"addEventListener",(function(e){return function(n,r,i){try{"function"===typeof r.handleEvent&&(r.handleEvent=Dt(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,g.qQ)(r),target:t},handled:!0,type:"instrument"}}))}catch(a){}return e.apply(this,[n,Dt(r,{mechanism:{data:{function:"addEventListener",handler:(0,g.qQ)(r),target:t},handled:!0,type:"instrument"}}),i])}})),(0,_.GS)(n,"removeEventListener",(function(t){return function(e,n,r){var i=n;try{var a=i&&i.__sentry_wrapped__;a&&t.call(this,e,a,r)}catch(s){}return t.call(this,e,i,r)}})))}Nt.__initStatic();class Gt{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=Gt.id}__init2(){this._installFunc={onerror:Yt,onunhandledrejection:$t}}constructor(t){Gt.prototype.__init.call(this),Gt.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...t}}setupOnce(){Error.stackTraceLimit=50;var t,e=this._options;for(var n in e){var r=this._installFunc[n];r&&e[n]&&(t=n,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`Global Handler attached: ${t}`),r(),this._installFunc[n]=void 0)}}}function Yt(){(0,E.O)("error",(t=>{const[e,n,r]=Ft();if(!e.getIntegration(Gt))return;const{msg:i,url:a,line:s,column:o,error:c}=t;if(!(xt()||c&&c.__sentry_own_request__)){var u=void 0===c&&(0,w.Kg)(i)?function(t,e,n,r){var i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=(0,w.T2)(t)?t.message:t,s="Error";var o=a.match(i);o&&(s=o[1],a=o[2]);var c={exception:{values:[{type:s,value:a}]}};return It(c,e,n,r)}(i,a,s,o):It(Z(n,c||i,void 0,r,!1),a,s,o);u.level="error",Ct(e,c,u,"onerror")}}))}function $t(){(0,E.O)("unhandledrejection",(t=>{const[e,n,r]=Ft();if(!e.getIntegration(Gt))return;let i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch(s){}if(xt()||i&&i.__sentry_own_request__)return!0;var a=(0,w.sO)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:Z(n,i,void 0,r,!0);a.level="error",Ct(e,i,a,"onunhandledrejection")}))}function It(t,e,n,r){var i=t.exception=t.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},c=o.frames=o.frames||[],u=isNaN(parseInt(r,10))?void 0:r,_=isNaN(parseInt(n,10))?void 0:n,d=(0,w.Kg)(e)&&e.length>0?e:(0,et.$N)();return 0===c.length&&c.push({colno:u,filename:d,function:"?",in_app:!0,lineno:_}),t}function Ct(t,e,n,r){(0,a.M6)(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function Ft(){var t=(0,h.BF)(),e=t.getClient(),n=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,n.stackParser,n.attachStacktrace]}Gt.__initStatic();class jt{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=jt.id}constructor(t={}){jt.prototype.__init.call(this),this._key=t.key||"cause",this._limit=t.limit||5}setupOnce(){var t=(0,h.BF)().getClient();t&&(0,l.l)(((e,n)=>{var r=(0,h.BF)().getIntegration(jt);return r?function(t,e,n,r,i){if(!r.exception||!r.exception.values||!i||!(0,w.tH)(i.originalException,Error))return r;var a=Lt(t,n,i.originalException,e);return r.exception.values=[...a,...r.exception.values],r}(t.getOptions().stackParser,r._key,r._limit,e,n):e}))}}function Lt(t,e,n,r,i=[]){if(!(0,w.tH)(n[r],Error)||i.length+1>=e)return i;var a=V(t,n[r]);return Lt(t,e,n[r],r,[a,...i])}jt.__initStatic();class Pt{constructor(){Pt.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Pt.id}setupOnce(t,e){var n=t=>{var n=e().getIntegration(Pt);if(n){try{if(function(t,e){if(!e)return!1;if(function(t,e){var n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!At(t,e))return!1;if(!Mt(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){var n=Ht(e),r=Ht(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!At(t,e))return!1;if(!Mt(t,e))return!1;return!0}(t,e))return!0;return!1}(t,n._previousEvent))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(r){return n._previousEvent=t}return n._previousEvent=t}return t};n.id=this.name,t(n)}}function Mt(t,e){let n=qt(t),r=qt(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let s=0;s<r.length;s++){var i=r[s],a=n[s];if(i.filename!==a.filename||i.lineno!==a.lineno||i.colno!==a.colno||i.function!==a.function)return!1}return!0}function At(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(i){return!1}}function Ht(t){return t.exception&&t.exception.values&&t.exception.values[0]}function qt(t){var e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(n){return}}Pt.__initStatic();var Wt=(0,m.V)();class zt{constructor(){zt.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=zt.id}setupOnce(){(0,l.l)((t=>{if((0,h.BF)().getIntegration(zt)){if(!Wt.navigator&&!Wt.location&&!Wt.document)return t;var e=t.request&&t.request.url||Wt.location&&Wt.location.href;const{referrer:r}=Wt.document||{},{userAgent:i}=Wt.navigator||{};var n={...e&&{url:e},headers:{...t.request&&t.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}}};return{...t,request:n}}return t}))}}function Vt(t){var e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return(0,N.xg)(new T("Not adding Promise because buffer limit was reached."));var i=r();return-1===e.indexOf(i)&&e.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(t){return new N.T2(((n,r)=>{let i=e.length;if(!i)return n(!0);var a=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{(0,N.XW)(t).then((()=>{--i||(clearTimeout(a),n(!0))}),r)}))}))}}}zt.__initStatic();var Xt=6e4;function Jt(t,{statusCode:e,headers:n},r=Date.now()){var i={...t},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(var o of a.trim().split(",")){const[t,e]=o.split(":",2);var c=parseInt(t,10),u=1e3*(isNaN(c)?60:c);if(e)for(var _ of e.split(";"))i[_]=r+u;else i.all=r+u}else s?i.all=r+function(t,e=Date.now()){var n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(`${t}`);return isNaN(r)?Xt:r-e}(s,r):429===e&&(i.all=r+6e4);return i}var Kt=30;function Qt(t,e,n=Vt(t.bufferSize||Kt)){let r={};return{send:function(a){var s=[];if(Y(a,((e,n)=>{var i=j(n);!function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(r,i)?s.push(e):t.recordDroppedEvent("ratelimit_backoff",i)})),0===s.length)return(0,N.XW)();var o=O(a[0],s),c=e=>{Y(o,((n,r)=>{t.recordDroppedEvent(e,j(r))}))};return n.add((()=>e({body:I(o,t.textEncoder)}).then((t=>{void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=Jt(r,t)}),(t=>{("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.error("Failed while sending event:",t),c("network_error")})))).then((t=>t),(t=>{if(t instanceof T)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.error("Skipped sending event because buffer is full."),c("queue_overflow"),(0,N.XW)();throw t}))},flush:t=>n.drain(t)}}var Zt=(0,m.V)();let te;function ee(t,e=function(){if(te)return te;if((0,y.ap)(Zt.fetch))return te=Zt.fetch.bind(Zt);var t=Zt.document;let e=Zt.fetch;if(t&&"function"===typeof t.createElement)try{var n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(a){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",a)}return te=e.bind(Zt)}()){return Qt(t,(function(n){var r={body:n.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n.body.length<=65536,...t.fetchOptions};return e(t.url,r).then((t=>({statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}))}var ne=4;function re(t){return Qt(t,(function(e){return new N.T2(((n,r)=>{var i=new XMLHttpRequest;for(var a in i.onerror=r,i.onreadystatechange=()=>{i.readyState===ne&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url),t.headers)Object.prototype.hasOwnProperty.call(t.headers,a)&&i.setRequestHeader(a,t.headers[a]);i.send(e.body)}))}))}var ie=[new c,new p,new Nt,new st,new Gt,new jt,new Pt,new zt];function ae(t={}){if(void 0===t.defaultIntegrations&&(t.defaultIntegrations=ie),void 0===t.release){var e=(0,m.V)();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);var n={...t,stackParser:(0,g.vk)(t.stackParser||St),integrations:v(t),transport:t.transport||((0,y.vm)()?ee:re)};!function(t,e){!0===e.debug&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?i.vF.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=(0,h.BF)(),r=n.getScope();r&&r.update(e.initialScope);var a=new t(e);n.bindClient(a)}(pt,n),t.autoSessionTracking&&function(){var t=(0,m.V)(),e=t.document;if("undefined"===typeof e)return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));var n=(0,h.BF)();if(!n.captureSession)return;se(n),(0,E.O)("history",(({from:t,to:e})=>{void 0!==t&&t!==e&&se((0,h.BF)())}))}()}function se(t){t.startSession({ignoreDuration:!0}),t.captureSession()}function oe(t){t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:r}],version:r},ae(t)}},25825:(t,e,n)=>{n.d(e,{lk:()=>v,pd:()=>f});var r=n(46909),i=n(10686),a=n(83190),s=n(42062),o=n(71639),c=n(70694);function u(){var t=(0,c.Z7)();if(t){var e="internal_error";("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}var _=n(19625),d=n(44287);function p(){var t=this.getScope();if(t){var e=t.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}}function l(t,e,n){if(!(0,c.wt)(e))return t.sampled=!1,t;if(void 0!==t.sampled)return t.setMetadata({sampleRate:Number(t.sampled)}),t;let r;return"function"===typeof e.tracesSampler?(r=e.tracesSampler(n),t.setMetadata({sampleRate:Number(r)})):void 0!==n.parentSampled?r=n.parentSampled:(r=e.tracesSampleRate,t.setMetadata({sampleRate:Number(r)})),function(t){if((0,a.yr)(t)||"number"!==typeof t&&"boolean"!==typeof t)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`),!1;if(t<0||t>1)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1;return!0}(r)?r?(t.sampled=Math.random()<r,t.sampled?(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`[Tracing] starting ${t.op} transaction - ${t.name}`),t):(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),t)):(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Tracing] Discarding transaction because "+("function"===typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)}function h(t,e){var n=this.getClient(),r=n&&n.getOptions()||{};let i=new d.Z(t,this);return i=l(i,r,{parentSampled:t.parentSampled,transactionContext:t,...e}),i.sampled&&i.initSpanRecorder(r._experiments&&r._experiments.maxSpans),i}function f(t,e,n,r,i,a){var s=t.getClient(),o=s&&s.getOptions()||{};let c=new _.zX(e,t,n,r,i);return c=l(c,o,{parentSampled:e.parentSampled,transactionContext:e,...a}),c.sampled&&c.initSpanRecorder(o._experiments&&o._experiments.maxSpans),c}function v(){!function(){var t=(0,r.EU)();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=h),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=p))}(),(0,s.wD)()&&function(){var e=(0,r.EU)();if(e.__SENTRY__){var n={mongodb:()=>new((0,s.fj)(t,"./integrations/node/mongo").Mongo),mongoose:()=>new((0,s.fj)(t,"./integrations/node/mongo").Mongo)({mongoose:!0}),mysql:()=>new((0,s.fj)(t,"./integrations/node/mysql").Mysql),pg:()=>new((0,s.fj)(t,"./integrations/node/postgres").Postgres)},i=Object.keys(n).filter((t=>!!(0,s.Vw)(t))).map((t=>{try{return n[t]()}catch(e){return}})).filter((t=>t));i.length>0&&(e.__SENTRY__.integrations=[...e.__SENTRY__.integrations||[],...i])}}(),(0,o.O)("error",u),(0,o.O)("unhandledrejection",u)}t=n.hmd(t)},19625:(t,e,n)=>{n.d(e,{$F:()=>o,nJ:()=>c,zX:()=>_});var r=n(53107),i=n(10686),a=n(29199),s=n(44287),o=1e3,c=3e4;class u extends a.lh{constructor(t,e,n,r){super(r),this._pushActivity=t,this._popActivity=e,this.transactionSpanId=n}add(t){t.spanId!==this.transactionSpanId&&(t.finish=e=>{t.endTimestamp="number"===typeof e?e:(0,r.LU)(),this._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),super.add(t)}}class _ extends s.Z{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._beforeFinishCallbacks=[]}constructor(t,e,n=o,r=c,a=!1){super(t,e),this._idleHub=e,this._idleTimeout=n,this._finalTimeout=r,this._onScope=a,_.prototype.__init.call(this),_.prototype.__init2.call(this),_.prototype.__init3.call(this),_.prototype.__init4.call(this),a&&(d(e),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),e.configureScope((t=>t.setSpan(this)))),this._startIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this.finish())}),this._finalTimeout)}finish(t=(0,r.LU)()){if(this._finished=!0,this.activities={},this.spanRecorder){for(var e of(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op),this._beforeFinishCallbacks))e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanId===this.spanId)return!0;e.endTimestamp||(e.endTimestamp=t,e.setStatus("cancelled"),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));var n=e.startTimestamp<t;return n||("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(e,void 0,2)),n})),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Tracing] flushing IdleTransaction")}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Tracing] No active IdleTransaction");return this._onScope&&d(this._idleHub),super.finish(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){this.spanRecorder=new u((t=>{this._finished||this._pushActivity(t)}),(t=>{this._finished||this._popActivity(t)}),this.spanId,t),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}_cancelIdleTimeout(){this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0)}_startIdleTimeout(t){this._cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||this.finish(t)}),this._idleTimeout)}_pushActivity(t){this._cancelIdleTimeout(),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`[Tracing] popActivity ${t}`),delete this.activities[t],("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var e=(0,r.LU)()+this._idleTimeout/1e3;this._startIdleTimeout(e)}}_beat(){if(!this._finished){var t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.finish()):this._pingHeartbeat()}}_pingHeartbeat(){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),5e3)}}function d(t){var e=t.getScope();e&&(e.getTransaction()&&e.setSpan(void 0))}},29384:(t,e,n)=>{n.d(e,{Jh:()=>z});var r=n(25825);var i=n(10686),a=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");var s=n(83190),o="baggage",c="sentry-",u=/^sentry-/,_=8192;function d(t){return function(t){if(0===Object.keys(t).length)return;return Object.entries(t).reduce(((t,[e,n],r)=>{var a=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,s=0===r?a:`${t},${a}`;return s.length>_?(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):s}),"")}(Object.entries(t).reduce(((t,[e,n])=>(n&&(t[`${c}${e}`]=n),t)),{}))}function p(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[e,n])=>(t[e]=n,t)),{})}var l=n(27833),h=n(988),f=n(19625),v=n(70694),m=(0,l.V)();var g=n(73914),y=n(53107),E=(t,e,n)=>{let r;return i=>{e.value>=0&&(i||n)&&(e.delta=e.value-(r||0),(e.delta||void 0===r)&&(r=e.value,t(e)))}},S=(t,e)=>({name:t,value:(0,g.S)(e,(()=>-1)),delta:0,entries:[],id:`v2-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`}),T=(t,e)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if("first-input"===t&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((t=>t.getEntries().map(e)));return n.observe({type:t,buffered:!0}),n}}catch(r){}},b=(t,e)=>{var n=r=>{"pagehide"!==r.type&&"hidden"!==(0,l.V)().document.visibilityState||(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},R=(t,e)=>{var n=S("CLS",0);let r,i=0,a=[];var s=t=>{if(t&&!t.hadRecentInput){var e=a[0],s=a[a.length-1];i&&0!==a.length&&t.startTime-s.startTime<1e3&&t.startTime-e.startTime<5e3?(i+=t.value,a.push(t)):(i=t.value,a=[t]),i>n.value&&(n.value=i,n.entries=a,r&&r())}},o=T("layout-shift",s);o&&(r=E(t,n,e),b((()=>{o.takeRecords().map(s),r(!0)})))};let x=-1;var D=()=>(x<0&&(x="hidden"===(0,l.V)().document.visibilityState?0:1/0,b((({timeStamp:t})=>{x=t}),!0)),{get firstHiddenTime(){return x}}),w=(t,e)=>{var n=D(),r=S("FID");let i;var a=t=>{i&&t.startTime<n.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),i(!0))},s=T("first-input",a);s&&(i=E(t,r,e),b((()=>{s.takeRecords().map(a),s.disconnect()}),!0))},N={},B=(t,e)=>{var n=D(),r=S("LCP");let i;var a=t=>{var e=t.startTime;e<n.firstHiddenTime&&(r.value=e,r.entries.push(t)),i&&i()},s=T("largest-contentful-paint",a);if(s){i=E(t,r,e);var o=()=>{N[r.id]||(s.takeRecords().map(a),s.disconnect(),N[r.id]=!0,i(!0))};["keydown","click"].forEach((t=>{addEventListener(t,o,{once:!0,capture:!0})})),b(o,!0)}};function k(t){return"number"===typeof t&&isFinite(t)}function U(t,{startTimestamp:e,...n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...n})}var O=(0,l.V)();function G(){return O&&O.addEventListener&&O.performance}let Y,$,I=0,C={};function F(t=!1){var e=G();e&&y.k3&&(e.mark&&O.performance.mark("sentry-tracing-init"),R((t=>{var e=t.entries.pop();e&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Measurements] Adding CLS"),C.cls={value:t.value,unit:""},$=e)})),function(t){B((t=>{var e=t.entries.pop();e&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Measurements] Adding LCP"),C.lcp={value:t.value,unit:"millisecond"},Y=e)}),t)}(t),w((t=>{var e=t.entries.pop();if(e){var n=(0,v.rv)(y.k3),r=(0,v.rv)(e.startTime);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Measurements] Adding FID"),C.fid={value:t.value,unit:"millisecond"},C["mark.fid"]={value:n+r,unit:"second"}}})))}function j(t){var e=G();if(!e||!O.performance.getEntries||!y.k3)return;("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Tracing] Adding & adjusting spans using Performance API");var n=(0,v.rv)(y.k3),r=e.getEntries();let a,s;if(r.slice(I).forEach((e=>{var r=(0,v.rv)(e.startTime),o=(0,v.rv)(e.duration);if(!("navigation"===t.op&&n+r<t.startTimestamp))switch(e.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{L(t,e,r,n)})),L(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),L(t,e,"fetch",n,"cache","domainLookupStart"),L(t,e,"domainLookup",n,"DNS"),function(t,e,n){U(t,{op:"browser",description:"request",startTimestamp:n+(0,v.rv)(e.requestStart),endTimestamp:n+(0,v.rv)(e.responseEnd)}),U(t,{op:"browser",description:"response",startTimestamp:n+(0,v.rv)(e.responseStart),endTimestamp:n+(0,v.rv)(e.responseEnd)})}(t,e,n)}(t,e,n),a=n+(0,v.rv)(e.responseStart),s=n+(0,v.rv)(e.requestStart);break;case"mark":case"paint":case"measure":!function(t,e,n,r,i){var a=i+n,s=a+r;U(t,{description:e.name,endTimestamp:s,op:e.entryType,startTimestamp:a})}(t,e,r,o,n);var c=D(),u=e.startTime<c.firstHiddenTime;"first-paint"===e.name&&u&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Measurements] Adding FP"),C.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&u&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Measurements] Adding FCP"),C.fcp={value:e.startTime,unit:"millisecond"});break;case"resource":var _=e.name.replace(O.location.origin,"");!function(t,e,n,r,i,a){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;var s={};"transferSize"in e&&(s["Transfer Size"]=e.transferSize);"encodedBodySize"in e&&(s["Encoded Body Size"]=e.encodedBodySize);"decodedBodySize"in e&&(s["Decoded Body Size"]=e.decodedBodySize);var o=a+r,c=o+i;U(t,{description:n,endTimestamp:c,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",startTimestamp:o,data:s})}(t,e,_,r,o,n)}})),I=Math.max(r.length-1,0),function(t){var e=O.navigator;if(!e)return;var n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),k(n.rtt)&&(C["connection.rtt"]={value:n.rtt,unit:"millisecond"}));k(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`);k(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}(t),"pageload"===t.op){"number"===typeof a&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Measurements] Adding TTFB"),C.ttfb={value:1e3*(a-t.startTimestamp),unit:"millisecond"},"number"===typeof s&&s<=a&&(C["ttfb.requestTime"]={value:1e3*(a-s),unit:"millisecond"})),["fcp","fp","lcp"].forEach((e=>{if(C[e]&&!(n>=t.startTimestamp)){var r=C[e].value,a=n+(0,v.rv)(r),s=Math.abs(1e3*(a-t.startTimestamp)),o=s-r;("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`[Measurements] Normalized ${e} from ${r} to ${s} (${o})`),C[e].value=s}}));var o=C["mark.fid"];o&&C.fid&&(U(t,{description:"first input delay",endTimestamp:o.value+(0,v.rv)(C.fid.value),op:"ui.action",startTimestamp:o.value}),delete C["mark.fid"]),"fcp"in C||delete C.cls,Object.keys(C).forEach((e=>{t.setMeasurement(e,C[e].value,C[e].unit)})),function(t){Y&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Measurements] Adding LCP Data"),Y.element&&t.setTag("lcp.element",(0,h.Hd)(Y.element)),Y.id&&t.setTag("lcp.id",Y.id),Y.url&&t.setTag("lcp.url",Y.url.trim().slice(0,200)),t.setTag("lcp.size",Y.size));$&&$.sources&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log("[Measurements] Adding CLS Data"),$.sources.forEach(((e,n)=>t.setTag(`cls.source.${n+1}`,(0,h.Hd)(e.node)))))}(t)}Y=void 0,$=void 0,C={}}function L(t,e,n,r,i,a){var s=a?e[a]:e[`${n}End`],o=e[`${n}Start`];o&&s&&U(t,{op:"browser",description:(0,g.S)(i,(()=>n)),startTimestamp:r+(0,v.rv)(o),endTimestamp:r+(0,v.rv)(s)})}var P=n(32207),M=n(71639),A={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};function H(t){const{traceFetch:e,traceXHR:n,tracingOrigins:r,shouldCreateSpanForRequest:i}={...A,...t};var a={},c=t=>{if(a[t])return a[t];var e=r;return a[t]=e.some((e=>(0,P._c)(t,e)))&&!(0,P._c)(t,"sentry_key"),a[t]};let u=c;"function"===typeof i&&(u=t=>c(t)&&i(t));var _={};e&&(0,M.O)("fetch",(t=>{!function(t,e,n){if(!(0,v.wt)()||!t.fetchData||!e(t.fetchData.url))return;if(t.endTimestamp){var r=t.fetchData.__span;if(!r)return;return void((a=n[r])&&(t.response?a.setHttpStatus(t.response.status):t.error&&a.setStatus("internal_error"),a.finish(),delete n[r]))}var i=(0,v.Z7)();if(i){var a=i.startChild({data:{...t.fetchData,type:"fetch"},description:`${t.fetchData.method} ${t.fetchData.url}`,op:"http.client"});t.fetchData.__span=a.spanId,n[a.spanId]=a;var c=t.args[0];t.args[1]=t.args[1]||{};var u=t.args[1];u.headers=function(t,e,n,r){var i=d(e),a=n.toTraceparent(),c="undefined"!==typeof Request&&(0,s.tH)(t,Request)?t.headers:r.headers;if(c){if("undefined"!==typeof Headers&&(0,s.tH)(c,Headers))return(u=new Headers(c)).append("sentry-trace",a),i&&u.append(o,i),u;if(Array.isArray(c)){var u=[...c,["sentry-trace",a]];return i&&u.push([o,i]),u}var _="baggage"in c?c.baggage:void 0,p=[];return Array.isArray(_)?p.push(..._):_&&p.push(_),i&&p.push(i),{...c,"sentry-trace":a,baggage:p.length>0?p.join(","):void 0}}return{"sentry-trace":a,baggage:i}}(c,i.getDynamicSamplingContext(),a,u),i.metadata.propagations+=1}}(t,u,_)})),n&&(0,M.O)("xhr",(t=>{!function(t,e,n){if(!(0,v.wt)()||t.xhr&&t.xhr.__sentry_own_request__||!(t.xhr&&t.xhr.__sentry_xhr__&&e(t.xhr.__sentry_xhr__.url)))return;var r=t.xhr.__sentry_xhr__;if(t.endTimestamp){var i=t.xhr.__sentry_xhr_span_id__;if(!i)return;return void((s=n[i])&&(s.setHttpStatus(r.status_code),s.finish(),delete n[i]))}var a=(0,v.Z7)();if(a){var s=a.startChild({data:{...r.data,type:"xhr",method:r.method,url:r.url},description:`${r.method} ${r.url}`,op:"http.client"});if(t.xhr.__sentry_xhr_span_id__=s.spanId,n[t.xhr.__sentry_xhr_span_id__]=s,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",s.toTraceparent());var c=d(a.getDynamicSamplingContext());c&&t.xhr.setRequestHeader(o,c),a.metadata.propagations+=1}catch(u){}}}(t,u,_)}))}var q=(0,l.V)();var W={idleTimeout:f.$F,finalTimeout:f.nJ,markBackgroundTransactions:!0,routingInstrumentation:function(t,e=!0,n=!0){if(!q||!q.location)return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("Could not initialize routing instrumentation due to invalid location"));let r,a=q.location.href;e&&(r=t({name:q.location.pathname,op:"pageload",metadata:{source:"url"}})),n&&(0,M.O)("history",(({to:e,from:n})=>{void 0===n&&a&&-1!==a.indexOf(e)?a=void 0:n!==e&&(a=void 0,r&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.finish()),r=t({name:q.location.pathname,op:"navigation",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,_experiments:{enableLongTask:!0},...A};class z{__init(){this.name="BrowserTracing"}constructor(t){z.prototype.__init.call(this);let e=A.tracingOrigins;t&&(t.tracingOrigins&&Array.isArray(t.tracingOrigins)?e=t.tracingOrigins:("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._emitOptionsWarning=!0)),this.options={...W,...t,tracingOrigins:e};const{_metricOptions:n}=this.options;F(n&&n._reportAllChanges),function(t){let e,n=t[0],r=1;for(;r<t.length;){var i=t[r],a=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=a(n)):"call"!==i&&"optionalCall"!==i||(n=a(((...t)=>n.call(e,...t))),e=void 0)}return n}([this,"access",t=>t.options,"access",t=>t._experiments,"optionalAccess",t=>t.enableLongTask])&&T("longtask",(t=>{var e=(0,v.Z7)();if(e){var n=(0,v.rv)(y.k3+t.startTime),r=(0,v.rv)(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:n,endTimestamp:n+r})}}))}setupOnce(t,e){this._getCurrentHub=e,this._emitOptionsWarning&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`[Tracing] We added a reasonable default for you: ${A.tracingOrigins}`));const{routingInstrumentation:n,startTransactionOnLocationChange:r,startTransactionOnPageLoad:a,markBackgroundTransactions:s,traceFetch:o,traceXHR:c,tracingOrigins:u,shouldCreateSpanForRequest:_}=this.options;n((t=>this._createRouteTransaction(t)),a,r),s&&(m&&m.document?m.document.addEventListener("visibilitychange",(()=>{var t=(0,v.Z7)();if(m.document.hidden&&t){var e="cancelled";("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${t.op}`),t.status||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.finish()}})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("[Tracing] Could not set up background tab detection due to lack of global document")),H({traceFetch:o,traceXHR:c,tracingOrigins:u,shouldCreateSpanForRequest:_})}_createRouteTransaction(t){if(!this._getCurrentHub)return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`));const{beforeNavigate:e,idleTimeout:n,finalTimeout:o}=this.options;var _="pageload"===t.op,d=_?V("sentry-trace"):null,h=_?V("baggage"):null,f=d?function(t){var e=t.match(a);if(!t||!e)return;let n;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}(d):void 0,v=h?function(t){if(!(0,s.Kg)(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce(((t,e)=>({...t,...p(e)})),{});else{if(!t)return;e=p(t)}var n=Object.entries(e).reduce(((t,[e,n])=>(e.match(u)&&(t[e.slice(c.length)]=n),t)),{});return Object.keys(n).length>0?n:void 0}(h):void 0,m={...t,...f,metadata:{...t.metadata,dynamicSamplingContext:f&&!v?{}:v},trimEnd:!0},g="function"===typeof e?e(m):m,y=void 0===g?{...m,sampled:!1}:g;y.metadata=y.name!==m.name?{...y.metadata,source:"custom"}:y.metadata,!1===y.sampled&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`[Tracing] Will not send ${y.op} transaction because of beforeNavigate.`),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.log(`[Tracing] Starting ${y.op} transaction on scope`);var E=this._getCurrentHub();const{location:S}=(0,l.V)();var T=(0,r.pd)(E,y,n,o,!0,{location:S});return T.registerBeforeFinishCallback((t=>{j(t),t.setTag("sentry_reportAllChanges",Boolean(this.options._metricOptions&&this.options._metricOptions._reportAllChanges))})),T}}function V(t){var e=(0,h.NX)(`meta[name=${t}]`);return e?e.getAttribute("content"):null}("undefined"===typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,r.lk)()},29199:(t,e,n)=>{n.d(e,{L9:()=>u,lh:()=>c});var r=n(73914),i=n(69002),a=n(53107),s=n(10686),o=n(27445);class c{__init(){this.spans=[]}constructor(t=1e3){c.prototype.__init.call(this),this._maxlen=t}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class u{__init2(){this.traceId=(0,i.eJ)()}__init3(){this.spanId=(0,i.eJ)().substring(16)}__init4(){this.startTimestamp=(0,a.LU)()}__init5(){this.tags={}}__init6(){this.data={}}constructor(t){if(u.prototype.__init2.call(this),u.prototype.__init3.call(this),u.prototype.__init4.call(this),u.prototype.__init5.call(this),u.prototype.__init6.call(this),!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}startChild(t){var e=new u({...t,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e),e.transaction=this.transaction,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e.transaction){var n=`[Tracing] Starting '${t&&t.op||"< unknown op >"}' span on transaction '${e.transaction.name||"< unknown name >"}' (${e.transaction.spanId}).`;e.transaction.metadata.spanMetadata[e.spanId]={logMessage:n},s.vF.log(n)}return e}setTag(t,e){return this.tags={...this.tags,[t]:e},this}setData(t,e){return this.data={...this.data,[t]:e},this}setStatus(t){return this.status=t,this}setHttpStatus(t){this.setTag("http.status_code",String(t));var e=function(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(t);return"unknown_error"!==e&&this.setStatus(e),this}isSuccess(){return"ok"===this.status}finish(t){if(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:t}=this.transaction.metadata.spanMetadata[this.spanId];t&&s.vF.log(t.replace("Starting","Finishing"))}this.endTimestamp="number"===typeof t?t:(0,a.LU)()}toTraceparent(){let t="";return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${t}`}toContext(){return(0,o.Ce)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(t){return this.data=(0,r.S)(t.data,(()=>({}))),this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=(0,r.S)(t.spanId,(()=>this.spanId)),this.startTimestamp=(0,r.S)(t.startTimestamp,(()=>this.startTimestamp)),this.status=t.status,this.tags=(0,r.S)(t.tags,(()=>({}))),this.traceId=(0,r.S)(t.traceId,(()=>this.traceId)),this}getTraceContext(){return(0,o.Ce)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return(0,o.Ce)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}},44287:(t,e,n)=>{n.d(e,{Z:()=>u});var r=n(73914),i=n(46909),a=n(53107),s=n(10686),o=n(27445),c=n(29199);class u extends c.L9{__init(){this._measurements={}}__init2(){this._frozenDynamicSamplingContext=void 0}constructor(t,e){super(t),u.prototype.__init.call(this),u.prototype.__init2.call(this),this._hub=e||(0,i.BF)(),this._name=t.name||"",this.metadata={source:"custom",...t.metadata,spanMetadata:{},changes:[],propagations:0},this._trimEnd=t.trimEnd,this.transaction=this;var n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(t){this.setName(t)}setName(t,e="custom"){t===this.name&&e===this.metadata.source||this.metadata.changes.push({source:this.metadata.source,timestamp:(0,a.zf)(),propagations:this.metadata.propagations}),this._name=t,this.metadata.source=e}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new c.lh(t)),this.spanRecorder.add(this)}setMeasurement(t,e,n=""){this._measurements[t]={value:e,unit:n}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){if(void 0===this.endTimestamp){if(this.name||(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.vF.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(t),!0===this.sampled){var e=this.spanRecorder?this.spanRecorder.spans.filter((t=>t!==this&&t.endTimestamp)):[];this._trimEnd&&e.length>0&&(this.endTimestamp=e.reduce(((t,e)=>t.endTimestamp&&e.endTimestamp?t.endTimestamp>e.endTimestamp?t:e:t)).endTimestamp);var n=this.metadata,r={contexts:{trace:this.getTraceContext()},spans:e,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...n,dynamicSamplingContext:this.getDynamicSamplingContext()},...n.source&&{transaction_info:{source:n.source,changes:n.changes,propagations:n.propagations}}};return Object.keys(this._measurements).length>0&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.vF.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),r.measurements=this._measurements),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.vF.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(r)}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.vF.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var i=this._hub.getClient();i&&i.recordDroppedEvent("sample_rate","transaction")}}toContext(){var t=super.toContext();return(0,o.Ce)({...t,name:this.name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this.name=(0,r.S)(t.name,(()=>"")),this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;var t=this._hub||(0,i.BF)(),e=t&&t.getClient();if(!e)return{};const{environment:n,release:r}=e.getOptions()||{},{publicKey:a}=e.getDsn()||{};var s=this.metadata.sampleRate,c=void 0!==s?s.toString():void 0,u=t.getScope();const{segment:_}=u&&u.getUser()||{};var d=this.metadata.source,p=d&&"url"!==d?this.name:void 0;return(0,o.Ce)({environment:n,release:r,transaction:p,user_segment:_,public_key:a,trace_id:this.traceId,sample_rate:c})}}},70694:(t,e,n)=>{n.d(e,{Z7:()=>a,rv:()=>s,wt:()=>i});var r=n(46909);function i(t){var e=(0,r.BF)().getClient(),n=t||e&&e.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function a(t){var e=(t||(0,r.BF)()).getScope();return e&&e.getTransaction()}function s(t){return t/1e3}},988:(t,e,n)=>{n.d(e,{$N:()=>o,Hd:()=>a,NX:()=>c});var r=n(27833),i=n(83190);function a(t,e){try{let r=t;var n=[];let i=0,a=0;let o;for(;r&&i++<5&&(o=s(r,e),!("html"===o||i>1&&a+3*n.length+o.length>=80));)n.push(o),a+=o.length,r=r.parentNode;return n.reverse().join(" > ")}catch(r){return"<unknown>"}}function s(t,e){var n=t,r=[];let a,s,o,c,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());var _=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(_&&_.length)_.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),a=n.className,a&&(0,i.Kg)(a))for(s=a.split(/\s+/),u=0;u<s.length;u++)r.push(`.${s[u]}`);var d=["type","name","title","alt"];for(u=0;u<d.length;u++)o=d[u],c=n.getAttribute(o),c&&r.push(`[${o}="${c}"]`);return r.join("")}function o(){var t=(0,r.V)();try{return t.document.location.href}catch(e){return""}}function c(t){var e=(0,r.V)();return e.document&&e.document.querySelector?e.document.querySelector(t):null}},73914:(t,e,n)=>{function r(t,e){return null!=t?t:e()}n.d(e,{S:()=>r})},71639:(t,e,n)=>{n.d(e,{O:()=>l});var r=n(27833),i=n(83190),a=n(10686),s=n(27445),o=n(26219),c=n(14322),u=(0,r.V)(),_={},d={};function p(t){if(!d[t])switch(d[t]=!0,t){case"console":!function(){if(!("console"in u))return;a.Ow.forEach((function(t){t in u.console&&(0,s.GS)(u.console,t,(function(e){return function(...n){h("console",{args:n,level:t}),e&&e.apply(u.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in u))return;var t=h.bind(null,"dom"),e=S(t,!0);u.document.addEventListener("click",e,!1),u.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{var n=u[e]&&u[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,s.GS)(n,"addEventListener",(function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{var a=this,s=a.__sentry_instrumentation_handlers__=a.__sentry_instrumentation_handlers__||{},o=s[n]=s[n]||{refCount:0};if(!o.handler){var c=S(t);o.handler=c,e.call(this,n,c,i)}o.refCount+=1}catch(u){}return e.call(this,n,r,i)}})),(0,s.GS)(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{var i=this,a=i.__sentry_instrumentation_handlers__||{},s=a[e];s&&(s.refCount-=1,s.refCount<=0&&(t.call(this,e,s.handler,r),s.handler=void 0,delete a[e]),0===Object.keys(a).length&&delete i.__sentry_instrumentation_handlers__)}catch(o){}return t.call(this,e,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in u))return;var t=XMLHttpRequest.prototype;(0,s.GS)(t,"open",(function(t){return function(...e){var n=this,r=e[1],a=n.__sentry_xhr__={method:(0,i.Kg)(e[0])?e[0].toUpperCase():e[0],url:e[1]};(0,i.Kg)(r)&&"POST"===a.method&&r.match(/sentry_key/)&&(n.__sentry_own_request__=!0);var o=function(){if(4===n.readyState){try{a.status_code=n.status}catch(t){}h("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"===typeof n.onreadystatechange?(0,s.GS)(n,"onreadystatechange",(function(t){return function(...e){return o(),t.apply(n,e)}})):n.addEventListener("readystatechange",o),t.apply(n,e)}})),(0,s.GS)(t,"send",(function(t){return function(...e){return this.__sentry_xhr__&&void 0!==e[0]&&(this.__sentry_xhr__.body=e[0]),h("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}();break;case"fetch":!function(){if(!(0,c.m7)())return;(0,s.GS)(u,"fetch",(function(t){return function(...e){var n={args:e,fetchData:{method:f(e),url:v(e)},startTimestamp:Date.now()};return h("fetch",{...n}),t.apply(u,e).then((t=>(h("fetch",{...n,endTimestamp:Date.now(),response:t}),t)),(t=>{throw h("fetch",{...n,endTimestamp:Date.now(),error:t}),t}))}}))}();break;case"history":!function(){if(!(0,c.NJ)())return;var t=u.onpopstate;function e(t){return function(...e){var n=e.length>2?e[2]:void 0;if(n){var r=m,i=String(n);m=i,h("history",{from:r,to:i})}return t.apply(this,e)}}u.onpopstate=function(...e){var n=u.location.href,r=m;if(m=n,h("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(i){}},(0,s.GS)(u.history,"pushState",e),(0,s.GS)(u.history,"replaceState",e)}();break;case"error":T=u.onerror,u.onerror=function(t,e,n,r,i){return h("error",{column:r,error:i,line:n,msg:t,url:e}),!!T&&T.apply(this,arguments)};break;case"unhandledrejection":b=u.onunhandledrejection,u.onunhandledrejection=function(t){return h("unhandledrejection",t),!b||b.apply(this,arguments)};break;default:return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.vF.warn("unknown instrumentation type:",t))}}function l(t,e){_[t]=_[t]||[],_[t].push(e),p(t)}function h(t,e){if(t&&_[t])for(var n of _[t]||[])try{n(e)}catch(r){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.vF.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${(0,o.qQ)(n)}\nError:`,r)}}function f(t=[]){return"Request"in u&&(0,i.tH)(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function v(t=[]){return"string"===typeof t[0]?t[0]:"Request"in u&&(0,i.tH)(t[0],Request)?t[0].url:String(t[0])}let m;var g=1e3;let y,E;function S(t,e=!1){return n=>{if(n&&E!==n&&!function(t){if("keypress"!==t.type)return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(n){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===y||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(n){}return!1}(E,n))&&(t({event:n,name:r,global:e}),E=n),clearTimeout(y),y=u.setTimeout((()=>{y=void 0}),g)}}}let T=null;let b=null},83190:(t,e,n)=>{n.d(e,{BD:()=>o,Kg:()=>u,Qd:()=>d,Qg:()=>f,T2:()=>s,W6:()=>c,bJ:()=>i,gd:()=>h,mE:()=>v,sO:()=>_,tH:()=>g,vq:()=>l,xH:()=>p,yr:()=>m});var r=Object.prototype.toString;function i(t){switch(r.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return g(t,Error)}}function a(t,e){return r.call(t)===`[object ${e}]`}function s(t){return a(t,"ErrorEvent")}function o(t){return a(t,"DOMError")}function c(t){return a(t,"DOMException")}function u(t){return a(t,"String")}function _(t){return null===t||"object"!==typeof t&&"function"!==typeof t}function d(t){return a(t,"Object")}function p(t){return"undefined"!==typeof Event&&g(t,Event)}function l(t){return"undefined"!==typeof Element&&g(t,Element)}function h(t){return a(t,"RegExp")}function f(t){return Boolean(t&&t.then&&"function"===typeof t.then)}function v(t){return d(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function m(t){return"number"===typeof t&&t!==t}function g(t,e){try{return t instanceof e}catch(n){return!1}}},10686:(t,e,n)=>{n.d(e,{Ow:()=>a,pq:()=>s,vF:()=>c});var r=n(27833),i=(0,r.V)(),a=["debug","info","warn","error","log","assert","trace"];function s(t){var e=(0,r.V)();if(!("console"in e))return t();var n=e.console,i={};a.forEach((t=>{var r=n[t]&&n[t].__sentry_original__;t in e.console&&r&&(i[t]=n[t],n[t]=r)}));try{return t()}finally{Object.keys(i).forEach((t=>{n[t]=i[t]}))}}function o(){let t=!1;var e={enable:()=>{t=!0},disable:()=>{t=!1}};return"undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?a.forEach((n=>{e[n]=(...e)=>{t&&s((()=>{i.console[n](`Sentry Logger [${n}]:`,...e)}))}})):a.forEach((t=>{e[t]=()=>{}})),e}let c;c="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,r.B)("logger",o):o()},69002:(t,e,n)=>{n.d(e,{$X:()=>o,GR:()=>_,M6:()=>u,eJ:()=>a,gO:()=>c,k9:()=>d});var r=n(27833),i=n(27445);function a(){var t=(0,r.V)(),e=t.crypto||t.msCrypto;if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");var n=e&&e.getRandomValues?()=>e.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function s(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function o(t){const{message:e,event_id:n}=t;if(e)return e;var r=s(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function c(t,e,n){var r=t.exception=t.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=e||""),a.type||(a.type=n||"Error")}function u(t,e){var n=s(t);if(n){var r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){var i={...r&&r.data,...e.data};n.mechanism.data=i}}}function _(t){if(t&&t.__sentry_captured__)return!0;try{(0,i.my)(t,"__sentry_captured__",!0)}catch(e){}return!1}function d(t){return Array.isArray(t)?t:[t]}},42062:(t,e,n)=>{n.d(e,{Vw:()=>o,fj:()=>s,wD:()=>a});var r=n(62571);t=n.hmd(t);var i=n(29876);function a(){return!(0,r.Z)()&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof i?i:0)}function s(t,e){return t.require(e)}function o(e){let n;try{n=s(t,e)}catch(r){}try{const{cwd:r}=s(t,"process");n=s(t,`${r()}/node_modules/${e}`)}catch(r){}return n}},27445:(t,e,n)=>{n.d(e,{Ce:()=>f,GS:()=>s,HF:()=>h,W4:()=>d,my:()=>o,pO:()=>c,sp:()=>u,u4:()=>_});var r=n(988),i=n(83190),a=n(32207);function s(t,e,n){if(e in t){var r=t[e],i=n(r);if("function"===typeof i)try{c(i,r)}catch(a){}t[e]=i}}function o(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function c(t,e){var n=e.prototype||{};t.prototype=e.prototype=n,o(t,"__sentry_original__",e)}function u(t){return t.__sentry_original__}function _(t){return Object.keys(t).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`)).join("&")}function d(t){if((0,i.bJ)(t))return{message:t.message,name:t.name,stack:t.stack,...l(t)};if((0,i.xH)(t)){var e={type:t.type,target:p(t.target),currentTarget:p(t.currentTarget),...l(t)};return"undefined"!==typeof CustomEvent&&(0,i.tH)(t,CustomEvent)&&(e.detail=t.detail),e}return t}function p(t){try{return(0,i.vq)(t)?(0,r.Hd)(t):Object.prototype.toString.call(t)}catch(e){return"<unknown>"}}function l(t){if("object"===typeof t&&null!==t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function h(t,e=40){var n=Object.keys(d(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return(0,a.xv)(n[0],e);for(let i=n.length;i>0;i--){var r=n.slice(0,i).join(", ");if(!(r.length>e))return i===n.length?r:(0,a.xv)(r,e)}return""}function f(t){return v(t,new Map)}function v(t,e){if((0,i.Qd)(t)){if(void 0!==(a=e.get(t)))return a;var n={};for(var r of(e.set(t,n),Object.keys(t)))"undefined"!==typeof t[r]&&(n[r]=v(t[r],e));return n}if(Array.isArray(t)){var a;if(void 0!==(a=e.get(t)))return a;n=[];return e.set(t,n),t.forEach((t=>{n.push(v(t,e))})),n}return t}},26219:(t,e,n)=>{n.d(e,{gd:()=>i,qQ:()=>o,vk:()=>a});var r=50;function i(...t){var e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0)=>{var i=[];for(var a of t.split("\n").slice(n)){var s=a.replace(/\(error: (.*)\)/,"$1");for(var o of e){var c=o(s);if(c){i.push(c);break}}}return function(t){if(!t.length)return[];let e=t;var n=e[0].function||"",i=e[e.length-1].function||"";-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1));-1!==i.indexOf("sentryWrapped")&&(e=e.slice(0,-1));return e.slice(0,r).map((t=>({...t,filename:t.filename||e[0].filename,function:t.function||"?"}))).reverse()}(i)}}function a(t){return Array.isArray(t)?i(...t):t}var s="<anonymous>";function o(t){try{return t&&"function"===typeof t&&t.name||s}catch(e){return s}}},32207:(t,e,n)=>{n.d(e,{_c:()=>s,gt:()=>a,xv:()=>i});var r=n(83190);function i(t,e=0){return"string"!==typeof t||0===e||t.length<=e?t:`${t.substr(0,e)}...`}function a(t,e){if(!Array.isArray(t))return"";var n=[];for(let a=0;a<t.length;a++){var r=t[a];try{n.push(String(r))}catch(i){n.push("[value cannot be serialized]")}}return n.join(e)}function s(t,e){return!!(0,r.Kg)(t)&&((0,r.gd)(e)?e.test(t):"string"===typeof e&&-1!==t.indexOf(e))}},14322:(t,e,n)=>{n.d(e,{NJ:()=>c,ap:()=>s,m7:()=>o,vm:()=>a});var r=n(27833),i=n(10686);function a(){if(!("fetch"in(0,r.V)()))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function s(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function o(){if(!a())return!1;var t=(0,r.V)();if(s(t.fetch))return!0;let e=!1;var n=t.document;if(n&&"function"===typeof n.createElement)try{var o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o),o.contentWindow&&o.contentWindow.fetch&&(e=s(o.contentWindow.fetch)),n.head.removeChild(o)}catch(c){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",c)}return e}function c(){var t=(0,r.V)(),e=t.chrome,n=e&&e.app&&e.app.runtime,i="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!n&&i}},45688:(t,e,n)=>{n.d(e,{T2:()=>o,XW:()=>a,xg:()=>s});var r,i=n(83190);function a(t){return new o((e=>{e(t)}))}function s(t){return new o(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(r||(r={}));class o{__init(){this._state=r.PENDING}__init2(){this._handlers=[]}constructor(t){o.prototype.__init.call(this),o.prototype.__init2.call(this),o.prototype.__init3.call(this),o.prototype.__init4.call(this),o.prototype.__init5.call(this),o.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(e){this._reject(e)}}then(t,e){return new o(((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(i){r(i)}else n(e)},t=>{if(e)try{n(e(t))}catch(i){r(i)}else r(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new o(((e,n)=>{let r,i;return this.then((e=>{i=!1,r=e,t&&t()}),(e=>{i=!0,r=e,t&&t()})).then((()=>{i?n(r):e(r)}))}))}__init3(){this._resolve=t=>{this._setResult(r.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(r.REJECTED,t)}}__init5(){this._setResult=(t,e)=>{this._state===r.PENDING&&((0,i.Qg)(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state!==r.PENDING){var t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===r.RESOLVED&&t[1](this._value),this._state===r.REJECTED&&t[2](this._value),t[0]=!0)}))}}}}},53107:(t,e,n)=>{n.d(e,{LU:()=>_,k3:()=>p,lu:()=>c,zf:()=>u});var r=n(27833),i=n(42062);t=n.hmd(t);var a={nowSeconds:()=>Date.now()/1e3};var s=(0,i.wD)()?function(){try{return(0,i.fj)(t,"perf_hooks").performance}catch(e){return}}():function(){const{performance:t}=(0,r.V)();if(t&&t.now)return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),o=void 0===s?a:{nowSeconds:()=>(s.timeOrigin+s.now())/1e3},c=a.nowSeconds.bind(a),u=o.nowSeconds.bind(o),_=u;let d;var p=(()=>{const{performance:t}=(0,r.V)();if(t&&t.now){var e=36e5,n=t.now(),i=Date.now(),a=t.timeOrigin?Math.abs(t.timeOrigin+n-i):e,s=a<e,o=t.timing&&t.timing.navigationStart,c="number"===typeof o?Math.abs(o+n-i):e;return s||c<e?a<=c?(d="timeOrigin",t.timeOrigin):(d="navigationStart",o):(d="dateNow",i)}d="none"})()}}]);
|